import{$ as Ft,$a as Nt,$b as ih,A as eo,Aa as Fs,Ab as Ht,B as Vi,Ba as Qs,Bb as qt,C as rc,Ca as Br,Cb as ji,D as rs,Da as pc,Db as xn,E as ws,Ea as Vr,Eb as vt,F as to,Fa as It,Fb as Tn,G as ac,Ga as so,Gb as we,H as yn,Ha as Nu,Hb as Ki,I as oc,Ia as oe,Ib as _t,J as Ys,Ja as Ds,Jb as qr,K as as,Ka as vn,Kb as oo,L as lc,La as Xi,Lb as lo,M as Du,Ma as Ci,Mb as co,N as Uu,Na as ni,Nb as Xu,O as Pu,Oa as Bu,Ob as nn,P as cc,Pa as $i,Pb as Xn,Q as io,Qa as fc,Qb as $u,R as Gn,Ra as ro,Rb as Yu,S as bi,Sa as Vu,Sb as Ku,T as Ei,Ta as gc,Tb as Qu,U as wi,Ua as zt,Ub as $n,V as ti,Va as Ot,Vb as uo,W as Ks,Wa as Wt,Wb as Ju,X as ze,Xa as en,Xb as Zu,Y as Mt,Ya as Gi,Yb as eh,Z as Iu,Za as ju,Zb as gi,_ as Ge,_a as hi,_b as th,a as Fe,aa as ie,ab as tn,ac as Ai,b as Yt,ba as on,bb as Hu,bc as Ri,c as tc,ca as Lu,cb as jr,cc as ho,d as wu,da as ln,db as qu,e as Su,ea as wn,eb as Us,f as Ln,fa as Je,fb as Ye,g as gn,ga as Ze,gb as st,h as Tu,ha as Or,hb as rt,i as Rn,ia as Ru,ib as zu,j as ic,ja as Gt,jb as Hr,k as nc,ka as Dt,kb as Ps,l as St,la as Ss,lb as Is,m as zi,ma as dc,mb as xe,n as An,na as no,nb as ue,o as Li,oa as uc,ob as he,p as gt,pa as Zi,pb as Oe,q as xr,qa as ku,qb as Gu,r as sc,ra as xu,rb as Wu,s as Fu,sa as hc,sb as ao,t as Ut,ta as Sn,tb as Kt,u as Cs,ua as kn,ub as dt,v as mn,va as Vt,vb as fe,w as Ja,wa as Nr,wb as _n,x as Za,xa as Mu,xb as Yi,y as Mr,ya as Ts,yb as Wn,z as As,za as Ou,zb as ii}from"./chunk-2NL2JZKU.js";var qg=wu((Fl,hu)=>{"use strict";(function(s,a){typeof Fl=="object"&&typeof hu=="object"?hu.exports=a():typeof define=="function"&&define.amd?define([],a):typeof Fl=="object"?Fl.NpawPlugin=a():s.NpawPlugin=a()})(self,()=>(()=>{var s={61:(n,o,c)=>{"use strict";c.r(o),c.d(o,{default:()=>p});class p{}p.Products={VIDEO_ANALYTICS:"videoAnalytics",BALANCER:"balancer",DEVICE_ANALYTICS:"deviceAnalytics"},p.AnalyticsVariables={VIEW_CODE:"viewCode",METHOD_OPTION:"methodOption"},p.BalancerVariables={AS_ENABLED:"activeSwitchingEnabled",PROFILE_NAME:"profileName",BUCKET:"bucket",DECISION_FINISHED:"decisionFinished",LAST_USED_CDN:"lastUsedCdn",BALANCER_TRAFFIC:"balancerTraffic",BALANCER_BITRATE:"balancerBitrate"},p.Consumer={NQS:"NQS",PERSISTENT:"PERSISTENT",BLACK_HOLE:"BLACK_HOLE"},p.DeviceVariables={APP_ANALYTICS_DEVICE_STRING:"deviceString"}},108:(n,o,c)=>{"use strict";var p;c.d(o,{A:()=>A});class v{}p=v,v.VideoService={INIT:"/init",START:"/start",JOIN:"/joinTime",PAUSE:"/pause",RESUME:"/resume",SEEK:"/seek",BUFFER:"/bufferUnderrun",ERROR:"/error",STOP:"/stop",PING:"/ping",DATA_OBJECT:"/data"},v.Service=Object.assign(Object.assign({DATA:"/data",ADAPTERS:"/adapters",CONFIGURATION:"/configuration",APP_ANALYTICS_PLUGIN_LOGS:"/infinity/session/pluginLogs",VIDEO_PLUGIN_LOGS:"/infinity/video/pluginLogs"},p.VideoService),{CDN:"/cdn",VIDEO_EVENT:"/infinity/video/event",AD_INIT:"/adInit",AD_START:"/adStart",AD_JOIN:"/adJoin",AD_PAUSE:"/adPause",AD_RESUME:"/adResume",AD_BUFFER:"/adBufferUnderrun",AD_STOP:"/adStop",AD_CLICK:"/adClick",AD_ERROR:"/adError",AD_MANIFEST:"/adManifest",AD_POD_START:"/adBreakStart",AD_POD_STOP:"/adBreakStop",AD_QUARTILE:"/adQuartile",EVENT:"/infinity/session/event",SESSION_START:"/infinity/session/start",SESSION_STOP:"/infinity/session/stop",NAV:"/infinity/session/nav",BEAT:"/infinity/session/beat",OFFLINE_EVENTS:"/offlineEvents"});let A=v},245:(n,o,c)=>{var p=c(3948).extend({constructor:function(v){this.plugin=v},getAllData:function(){var v=this.getNonRandomData();return v.timestamp=this.getTimestamp(),v},getNonRandomData:function(){var v={};return v.userAgent=this.getUserAgent(),v.threads=this.getVirtualCores(),v.language=this.getLanguage(),v.langList=this.getAvailableLanguages(),v.resolution=this.getResolution(),v.colorDepth=this.getColorDepth(),v.deviceMemory=this.getMemory(),v.touchscreen=this.getTouchscreen(),v.localStorage=this.getLocalStorage(),v.sessionStorage=this.getSessionStorage(),v.cookiesAvailable=this.getCookiesAvailable(),v.flashAvailable=this.getHasFlash(),v.timeZone=this.getTimeZone(),v.plugins=this.getPluginList(),v},getUserAgent:function(){return this._getNavigatorValue("userAgent")},getVirtualCores:function(){return this._getNavigatorValue("hardwareConcurrency")},getLanguage:function(){return this._getNavigatorValue("language")},getAvailableLanguages:function(){return this._getNavigatorValue("languages")},getResolution:function(){var v=null;try{this._getNavigatorValue("screen")&&(v=navigator.screen.width.toString()+navigator.screen.height.toString())}catch{}return v},getColorDepth:function(){var v=null;try{this._getNavigatorValue("screen")&&(v=navigator.screen.colorDepth)}catch{}return v},getMemory:function(){return this._getNavigatorValue("deviceMemory")},getTouchscreen:function(){return this._getNavigatorValue("maxTouchPoints")||!1},getLocalStorage:function(){var v=!1;try{v=typeof localStorage<"u"}catch{}return v},getSessionStorage:function(){var v=!1;try{v=typeof sessionStorage<"u"}catch{}return v},getCookiesAvailable:function(){return this._getNavigatorValue("cookieEnabled")||!1},getHasFlash:function(){var v=!1;try{var A=this._getNavigatorValue("plugins");v=A&&typeof A["Shockwave Flash"]=="object"||typeof window<"u"&&window.ActiveXObject&&new ActiveXObject("ShockwaveFlash.ShockwaveFlash")!==!1}catch{}return v},getPluginList:function(){var v=null;try{var A=this._getNavigatorValue("plugins");if(A&&A.length!==0){for(var _="",m=0;m{var p=c(3948);let{default:v}=c(7276),{AnalyticsTag:A}=c(2784);var _=p.extend({constructor:function(m,y,C,T){this.prefix=m||"npaw",this.disableCookies=y,this.forceCookies=C,this.disabled=T},updateStorageOptions:function(m,y,C){this.disableCookies=m,this.forceCookies=y,this.disabled=C},isEnabled:function(){if(this.disabled)return!1;var m=!0;if(!this.forceCookies)try{localStorage.setItem(this.prefix+".test","true"),localStorage.removeItem(this.prefix+".test")}catch{m=!1}return m},setLocal:function(m,y){if(this.disabled)return null;var C=null;try{!this.forceCookies&&(typeof localStorage<"u"&&localStorage||this.disableCookies)?typeof localStorage<"u"&&localStorage&&(C=localStorage.setItem(this.prefix+"."+m,y)):C=this._setCookie(this.prefix+".local."+m,y)}catch{v.error(A,"Npaw App Analytics needs localStorage or cookies, not supported by your browser.")}return C},getLocal:function(m){return this.disabled?null:this._localGetRemove("getItem","_getCookie",m)},removeLocal:function(m){return this.disabled?null:this._localGetRemove("removeItem","_removeCookie",m)},_localGetRemove:function(m,y,C){var T=null;try{!this.forceCookies&&(typeof localStorage<"u"&&localStorage||this.disableCookies)?typeof localStorage<"u"&&localStorage&&(T=localStorage[m](this.prefix+"."+C)):T=this[y](this.prefix+".local."+C)}catch{v.error(A,"Npaw App Analytics needs localStorage or cookies, not supported by your browser.")}return T},setSession:function(m,y){if(this.disabled)return null;var C=null;try{C=!this.forceCookies&&(typeof sessionStorage<"u"&&sessionStorage||this.disableCookies)?sessionStorage.setItem(this.prefix+"."+m,y):this._setCookie(this.prefix+".session."+m,y)}catch{v.error(A,"Npaw App Analytics needs sessionStorage or cookies, not supported by your browser.")}return C},getSession:function(m){return this.disabled?null:this._sessionGetRemove("getItem","_getCookie",m)},removeSession:function(m){return this.disabled?null:this._sessionGetRemove("removeItem","_removeCookie",m)},_sessionGetRemove:function(m,y,C){var T=null;try{T=!this.forceCookies&&(typeof sessionStorage<"u"&&sessionStorage||this.disableCookies)?sessionStorage[m](this.prefix+"."+C):this[y](this.prefix+".session."+C)}catch{v.error(A,"Npaw App Analytics needs sessionStorage or cookies, not supported by your browser.")}return T},getStorages:function(m){return this.disabled?null:this.getSession(m)||this.getLocal(m)},setStorages:function(m,y){if(this.disabled)return null;this.setSession(m,y),this.setLocal(m,y)},removeStorages:function(m){if(this.disabled)return null;this.removeSession(m),this.removeLocal(m)},_setCookie:function(m,y){if(typeof document<"u"){var C=";";typeof location<"u"&&(C+="domain="+location.host.split(".").reverse().splice(0,2).reverse().join(".")+";path=/;"),document.cookie=m+"="+y+C}},_getCookie:function(m){if(typeof document<"u")for(var y=m+"=",C=decodeURIComponent(document.cookie).split(";"),T=0;T{"use strict";function c(A,_){return _===void 0&&(_=Object),_&&typeof _.freeze=="function"?_.freeze(A):A}var p=c({HTML:"text/html",isHTML:function(A){return A===p.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),v=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(A){return A===v.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});o.find=function(A,_,m){if(m===void 0&&(m=Array.prototype),A&&typeof m.find=="function")return m.find.call(A,_);for(var y=0;y{n.exports={cdnName:"FASTLY",parsers:[{element:"host",headerName:"X-Served-By",regex:/([^,\s]+)$/},{element:"type",headerName:"X-Cache",regex:/([^,\s]+)$/}],parseType:function(o){switch(o){case"HIT":return 1;case"MISS":return 2;default:return 0}}}},594:(n,o,c)=>{var p=c(7086);let{default:v}=c(7276),{AnalyticsTag:A}=c(2784);var _={getPlayrate:function(){return this.flags.isPaused?0:1},getFramesPerSecond:function(){},getDroppedFrames:function(){},getThroughput:function(){},getRendition:function(){},getTitle2:function(){},getIsLive:function(){},getCdnTraffic:function(){},getP2PTraffic:function(){},getUploadTraffic:function(){},getIsP2PEnabled:function(){},getSegmentDuration:function(){},getHouseholdId:function(){},getLatency:function(){},getPacketLoss:function(){},getPacketSent:function(){},getMetrics:function(){},getAudioCodec:function(){},getVideoCodec:function(){},getURLToParse:function(){},fireSeekBegin:function(m,y,C){if(this._discardFalseBuffers(),!(this.getVideo()&&this.getVideo().getIsLive()&&this.plugin.options["content.isLive.noSeek"])&&this.flags.isJoined&&!this.flags.isSeeking){if(this.flags.isBuffering){if(y===!1)return;v.notice(A,"Converting current buffer to seek"),this.chronos.seek=this.chronos.buffer.clone(),this.chronos.buffer.reset(),this.flags.isBuffering=!1}else this.chronos.seek.start();try{this.fireEventsStruct.seek=[],C?this.fireEventsStruct.seek.push(C):this.fireEventsStruct.seek.push("undefinedEvent")}catch{}this.flags.isSeeking=!0,this.emit(p.Event.SEEK_BEGIN,{params:m})}},fireSeekEnd:function(m,y){if(!(this.getVideo()&&this.getVideo().getIsLive()&&this.plugin.options["content.isLive.noSeek"])&&this.flags.isJoined&&this.flags.isSeeking){try{y?this.fireEventsStruct.seek.push(y):this.fireEventsStruct.seek.push("undefinedEvent")}catch{}(m=m||{}).triggeredEvents=this.fireEventsStruct.seek,this.cancelSeek(),this.emit(p.Event.SEEK_END,{params:m});try{this.chronos.pause.getDeltaTime(!1)>0&&this.chronos.pause.resume()}catch{}}},cancelSeek:function(m){this.flags.isJoined&&this.flags.isSeeking&&(this.flags.isSeeking=!1,this.chronos.seek.stop(),this.monitor&&this.monitor.skipNextTick())},fireEvent:function(m,y,C,T){if(m==="data")this.emit(p.Event.DATA_OBJECT,{params:T});else{var U=T||{};U.name=m||"",U.dimensions=y||{},U.values=C||{},this.emit(p.Event.VIDEO_EVENT,{params:U})}},storeNewRendition:function(m){this.getVideo().triggerUpdateRendition(m)}};n.exports=_},703:n=>{n.exports={Preroll:"pre",Midroll:"mid",Postroll:"post"}},825:n=>{n.exports={WILL_SEND_LOG_PLUGIN_INIT:"will-send-log-plugin-init",WILL_SEND_LOG_PLUGIN_SET_OPTIONS:"will-send-log-plugin-set-options",WILL_SEND_LOG_PLUGIN_RECEIVE_DATA:"will-send-log-plugin-receive-data",WILL_SEND_LOG_INFINITY_BEGIN:"will-send-log-infinity-begin",WILL_SEND_LOG_INFINITY_START:"will-send-log-infinity-start",WILL_SEND_LOG_INFINITY_EVENT:"will-send-log-infinity-event",WILL_SEND_LOG_INFINITY_NAV:"will-send-log-infinity-nav",WILL_SEND_LOG_INFINITY_NEW_SESSION:"will-send-log-infinity-new-session"}},1048:(n,o,c)=>{"use strict";let p=c(7991),v=c(9318),A=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;o.hp=y,o.IS=50;let _=2147483647;function m(b){if(b>_)throw new RangeError('The value "'+b+'" is invalid for option "size"');let F=new Uint8Array(b);return Object.setPrototypeOf(F,y.prototype),F}function y(b,F,k){if(typeof b=="number"){if(typeof F=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return U(b)}return C(b,F,k)}function C(b,F,k){if(typeof b=="string")return function(ye,ce){if(typeof ce=="string"&&ce!==""||(ce="utf8"),!y.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);let Pe=0|D(ye,ce),ht=m(Pe),kt=ht.write(ye,ce);return kt!==Pe&&(ht=ht.slice(0,kt)),ht}(b,F);if(ArrayBuffer.isView(b))return function(ye){if(je(ye,Uint8Array)){let ce=new Uint8Array(ye);return M(ce.buffer,ce.byteOffset,ce.byteLength)}return G(ye)}(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(je(b,ArrayBuffer)||b&&je(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(je(b,SharedArrayBuffer)||b&&je(b.buffer,SharedArrayBuffer)))return M(b,F,k);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let ne=b.valueOf&&b.valueOf();if(ne!=null&&ne!==b)return y.from(ne,F,k);let te=function(ye){if(y.isBuffer(ye)){let ce=0|S(ye.length),Pe=m(ce);return Pe.length===0||ye.copy(Pe,0,0,ce),Pe}return ye.length!==void 0?typeof ye.length!="number"||Le(ye.length)?m(0):G(ye):ye.type==="Buffer"&&Array.isArray(ye.data)?G(ye.data):void 0}(b);if(te)return te;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return y.from(b[Symbol.toPrimitive]("string"),F,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}function T(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function U(b){return T(b),m(b<0?0:0|S(b))}function G(b){let F=b.length<0?0:0|S(b.length),k=m(F);for(let ne=0;ne=_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_.toString(16)+" bytes");return 0|b}function D(b,F){if(y.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||je(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);let k=b.length,ne=arguments.length>2&&arguments[2]===!0;if(!ne&&k===0)return 0;let te=!1;for(;;)switch(F){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return Q(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*k;case"hex":return k>>>1;case"base64":return _e(b).length;default:if(te)return ne?-1:Q(b).length;F=(""+F).toLowerCase(),te=!0}}function B(b,F,k){let ne=!1;if((F===void 0||F<0)&&(F=0),F>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0)<=(F>>>=0))return"";for(b||(b="utf8");;)switch(b){case"hex":return Ie(this,F,k);case"utf8":case"utf-8":return se(this,F,k);case"ascii":return be(this,F,k);case"latin1":case"binary":return ve(this,F,k);case"base64":return H(this,F,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xe(this,F,k);default:if(ne)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),ne=!0}}function R(b,F,k){let ne=b[F];b[F]=b[k],b[k]=ne}function V(b,F,k,ne,te){if(b.length===0)return-1;if(typeof k=="string"?(ne=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),Le(k=+k)&&(k=te?0:b.length-1),k<0&&(k=b.length+k),k>=b.length){if(te)return-1;k=b.length-1}else if(k<0){if(!te)return-1;k=0}if(typeof F=="string"&&(F=y.from(F,ne)),y.isBuffer(F))return F.length===0?-1:$(b,F,k,ne,te);if(typeof F=="number")return F&=255,typeof Uint8Array.prototype.indexOf=="function"?te?Uint8Array.prototype.indexOf.call(b,F,k):Uint8Array.prototype.lastIndexOf.call(b,F,k):$(b,[F],k,ne,te);throw new TypeError("val must be string, number or Buffer")}function $(b,F,k,ne,te){let ye,ce=1,Pe=b.length,ht=F.length;if(ne!==void 0&&((ne=String(ne).toLowerCase())==="ucs2"||ne==="ucs-2"||ne==="utf16le"||ne==="utf-16le")){if(b.length<2||F.length<2)return-1;ce=2,Pe/=2,ht/=2,k/=2}function kt(bt,at){return ce===1?bt[at]:bt.readUInt16BE(at*ce)}if(te){let bt=-1;for(ye=k;yePe&&(k=Pe-ht),ye=k;ye>=0;ye--){let bt=!0;for(let at=0;atte&&(ne=te):ne=te;let ye=F.length,ce;for(ne>ye/2&&(ne=ye/2),ce=0;ce>8,ht=ce%256,kt.push(ht),kt.push(Pe);return kt}(F,b.length-k),b,k,ne)}function H(b,F,k){return F===0&&k===b.length?p.fromByteArray(b):p.fromByteArray(b.slice(F,k))}function se(b,F,k){k=Math.min(b.length,k);let ne=[],te=F;for(;te239?4:ye>223?3:ye>191?2:1;if(te+Pe<=k){let ht,kt,bt,at;switch(Pe){case 1:ye<128&&(ce=ye);break;case 2:ht=b[te+1],(192&ht)==128&&(at=(31&ye)<<6|63&ht,at>127&&(ce=at));break;case 3:ht=b[te+1],kt=b[te+2],(192&ht)==128&&(192&kt)==128&&(at=(15&ye)<<12|(63&ht)<<6|63&kt,at>2047&&(at<55296||at>57343)&&(ce=at));break;case 4:ht=b[te+1],kt=b[te+2],bt=b[te+3],(192&ht)==128&&(192&kt)==128&&(192&bt)==128&&(at=(15&ye)<<18|(63&ht)<<12|(63&kt)<<6|63&bt,at>65535&&at<1114112&&(ce=at))}}ce===null?(ce=65533,Pe=1):ce>65535&&(ce-=65536,ne.push(ce>>>10&1023|55296),ce=56320|1023&ce),ne.push(ce),te+=Pe}return function(ye){let ce=ye.length;if(ce<=Z)return String.fromCharCode.apply(String,ye);let Pe="",ht=0;for(;ht"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}}),y.poolSize=8192,y.from=function(b,F,k){return C(b,F,k)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array),y.alloc=function(b,F,k){return function(ne,te,ye){return T(ne),ne<=0?m(ne):te!==void 0?typeof ye=="string"?m(ne).fill(te,ye):m(ne).fill(te):m(ne)}(b,F,k)},y.allocUnsafe=function(b){return U(b)},y.allocUnsafeSlow=function(b){return U(b)},y.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==y.prototype},y.compare=function(b,F){if(je(b,Uint8Array)&&(b=y.from(b,b.offset,b.byteLength)),je(F,Uint8Array)&&(F=y.from(F,F.offset,F.byteLength)),!y.isBuffer(b)||!y.isBuffer(F))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===F)return 0;let k=b.length,ne=F.length;for(let te=0,ye=Math.min(k,ne);tene.length?(y.isBuffer(ye)||(ye=y.from(ye)),ye.copy(ne,te)):Uint8Array.prototype.set.call(ne,ye,te);else{if(!y.isBuffer(ye))throw new TypeError('"list" argument must be an Array of Buffers');ye.copy(ne,te)}te+=ye.length}return ne},y.byteLength=D,y.prototype._isBuffer=!0,y.prototype.swap16=function(){let b=this.length;if(b%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let F=0;FF&&(b+=" ... "),""},A&&(y.prototype[A]=y.prototype.inspect),y.prototype.compare=function(b,F,k,ne,te){if(je(b,Uint8Array)&&(b=y.from(b,b.offset,b.byteLength)),!y.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(F===void 0&&(F=0),k===void 0&&(k=b?b.length:0),ne===void 0&&(ne=0),te===void 0&&(te=this.length),F<0||k>b.length||ne<0||te>this.length)throw new RangeError("out of range index");if(ne>=te&&F>=k)return 0;if(ne>=te)return-1;if(F>=k)return 1;if(this===b)return 0;let ye=(te>>>=0)-(ne>>>=0),ce=(k>>>=0)-(F>>>=0),Pe=Math.min(ye,ce),ht=this.slice(ne,te),kt=b.slice(F,k);for(let bt=0;bt>>=0,isFinite(k)?(k>>>=0,ne===void 0&&(ne="utf8")):(ne=k,k=void 0)}let te=this.length-F;if((k===void 0||k>te)&&(k=te),b.length>0&&(k<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");ne||(ne="utf8");let ye=!1;for(;;)switch(ne){case"hex":return l(this,b,F,k);case"utf8":case"utf-8":return d(this,b,F,k);case"ascii":case"latin1":case"binary":return g(this,b,F,k);case"base64":return w(this,b,F,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,b,F,k);default:if(ye)throw new TypeError("Unknown encoding: "+ne);ne=(""+ne).toLowerCase(),ye=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};let Z=4096;function be(b,F,k){let ne="";k=Math.min(b.length,k);for(let te=F;tene)&&(k=ne);let te="";for(let ye=F;yek)throw new RangeError("Trying to access beyond buffer length")}function qe(b,F,k,ne,te,ye){if(!y.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>te||Fb.length)throw new RangeError("Index out of range")}function Be(b,F,k,ne,te){Ve(F,ne,te,b,k,7);let ye=Number(F&BigInt(4294967295));b[k++]=ye,ye>>=8,b[k++]=ye,ye>>=8,b[k++]=ye,ye>>=8,b[k++]=ye;let ce=Number(F>>BigInt(32)&BigInt(4294967295));return b[k++]=ce,ce>>=8,b[k++]=ce,ce>>=8,b[k++]=ce,ce>>=8,b[k++]=ce,k}function Qe(b,F,k,ne,te){Ve(F,ne,te,b,k,7);let ye=Number(F&BigInt(4294967295));b[k+7]=ye,ye>>=8,b[k+6]=ye,ye>>=8,b[k+5]=ye,ye>>=8,b[k+4]=ye;let ce=Number(F>>BigInt(32)&BigInt(4294967295));return b[k+3]=ce,ce>>=8,b[k+2]=ce,ce>>=8,b[k+1]=ce,ce>>=8,b[k]=ce,k+8}function J(b,F,k,ne,te,ye){if(k+ne>b.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function ee(b,F,k,ne,te){return F=+F,k>>>=0,te||J(b,0,k,4),v.write(b,F,k,ne,23,4),k+4}function ae(b,F,k,ne,te){return F=+F,k>>>=0,te||J(b,0,k,8),v.write(b,F,k,ne,52,8),k+8}y.prototype.slice=function(b,F){let k=this.length;(b=~~b)<0?(b+=k)<0&&(b=0):b>k&&(b=k),(F=F===void 0?k:~~F)<0?(F+=k)<0&&(F=0):F>k&&(F=k),F>>=0,F>>>=0,k||it(b,F,this.length);let ne=this[b],te=1,ye=0;for(;++ye>>=0,F>>>=0,k||it(b,F,this.length);let ne=this[b+--F],te=1;for(;F>0&&(te*=256);)ne+=this[b+--F]*te;return ne},y.prototype.readUint8=y.prototype.readUInt8=function(b,F){return b>>>=0,F||it(b,1,this.length),this[b]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(b,F){return b>>>=0,F||it(b,2,this.length),this[b]|this[b+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(b,F){return b>>>=0,F||it(b,2,this.length),this[b]<<8|this[b+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(b,F){return b>>>=0,F||it(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+16777216*this[b+3]},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(b,F){return b>>>=0,F||it(b,4,this.length),16777216*this[b]+(this[b+1]<<16|this[b+2]<<8|this[b+3])},y.prototype.readBigUInt64LE=Se(function(b){Ne(b>>>=0,"offset");let F=this[b],k=this[b+7];F!==void 0&&k!==void 0||We(b,this.length-8);let ne=F+256*this[++b]+65536*this[++b]+this[++b]*2**24,te=this[++b]+256*this[++b]+65536*this[++b]+k*2**24;return BigInt(ne)+(BigInt(te)<>>=0,"offset");let F=this[b],k=this[b+7];F!==void 0&&k!==void 0||We(b,this.length-8);let ne=F*2**24+65536*this[++b]+256*this[++b]+this[++b],te=this[++b]*2**24+65536*this[++b]+256*this[++b]+k;return(BigInt(ne)<>>=0,F>>>=0,k||it(b,F,this.length);let ne=this[b],te=1,ye=0;for(;++ye=te&&(ne-=Math.pow(2,8*F)),ne},y.prototype.readIntBE=function(b,F,k){b>>>=0,F>>>=0,k||it(b,F,this.length);let ne=F,te=1,ye=this[b+--ne];for(;ne>0&&(te*=256);)ye+=this[b+--ne]*te;return te*=128,ye>=te&&(ye-=Math.pow(2,8*F)),ye},y.prototype.readInt8=function(b,F){return b>>>=0,F||it(b,1,this.length),128&this[b]?-1*(255-this[b]+1):this[b]},y.prototype.readInt16LE=function(b,F){b>>>=0,F||it(b,2,this.length);let k=this[b]|this[b+1]<<8;return 32768&k?4294901760|k:k},y.prototype.readInt16BE=function(b,F){b>>>=0,F||it(b,2,this.length);let k=this[b+1]|this[b]<<8;return 32768&k?4294901760|k:k},y.prototype.readInt32LE=function(b,F){return b>>>=0,F||it(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},y.prototype.readInt32BE=function(b,F){return b>>>=0,F||it(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},y.prototype.readBigInt64LE=Se(function(b){Ne(b>>>=0,"offset");let F=this[b],k=this[b+7];F!==void 0&&k!==void 0||We(b,this.length-8);let ne=this[b+4]+256*this[b+5]+65536*this[b+6]+(k<<24);return(BigInt(ne)<>>=0,"offset");let F=this[b],k=this[b+7];F!==void 0&&k!==void 0||We(b,this.length-8);let ne=(F<<24)+65536*this[++b]+256*this[++b]+this[++b];return(BigInt(ne)<>>=0,F||it(b,4,this.length),v.read(this,b,!0,23,4)},y.prototype.readFloatBE=function(b,F){return b>>>=0,F||it(b,4,this.length),v.read(this,b,!1,23,4)},y.prototype.readDoubleLE=function(b,F){return b>>>=0,F||it(b,8,this.length),v.read(this,b,!0,52,8)},y.prototype.readDoubleBE=function(b,F){return b>>>=0,F||it(b,8,this.length),v.read(this,b,!1,52,8)},y.prototype.writeUintLE=y.prototype.writeUIntLE=function(b,F,k,ne){b=+b,F>>>=0,k>>>=0,ne||qe(this,b,F,k,Math.pow(2,8*k)-1,0);let te=1,ye=0;for(this[F]=255&b;++ye>>=0,k>>>=0,ne||qe(this,b,F,k,Math.pow(2,8*k)-1,0);let te=k-1,ye=1;for(this[F+te]=255&b;--te>=0&&(ye*=256);)this[F+te]=b/ye&255;return F+k},y.prototype.writeUint8=y.prototype.writeUInt8=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,1,255,0),this[F]=255&b,F+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,2,65535,0),this[F]=255&b,this[F+1]=b>>>8,F+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,2,65535,0),this[F]=b>>>8,this[F+1]=255&b,F+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,4,4294967295,0),this[F+3]=b>>>24,this[F+2]=b>>>16,this[F+1]=b>>>8,this[F]=255&b,F+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,4,4294967295,0),this[F]=b>>>24,this[F+1]=b>>>16,this[F+2]=b>>>8,this[F+3]=255&b,F+4},y.prototype.writeBigUInt64LE=Se(function(b,F=0){return Be(this,b,F,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeBigUInt64BE=Se(function(b,F=0){return Qe(this,b,F,BigInt(0),BigInt("0xffffffffffffffff"))}),y.prototype.writeIntLE=function(b,F,k,ne){if(b=+b,F>>>=0,!ne){let Pe=Math.pow(2,8*k-1);qe(this,b,F,k,Pe-1,-Pe)}let te=0,ye=1,ce=0;for(this[F]=255&b;++te>>=0,!ne){let Pe=Math.pow(2,8*k-1);qe(this,b,F,k,Pe-1,-Pe)}let te=k-1,ye=1,ce=0;for(this[F+te]=255&b;--te>=0&&(ye*=256);)b<0&&ce===0&&this[F+te+1]!==0&&(ce=1),this[F+te]=(b/ye|0)-ce&255;return F+k},y.prototype.writeInt8=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,1,127,-128),b<0&&(b=255+b+1),this[F]=255&b,F+1},y.prototype.writeInt16LE=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,2,32767,-32768),this[F]=255&b,this[F+1]=b>>>8,F+2},y.prototype.writeInt16BE=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,2,32767,-32768),this[F]=b>>>8,this[F+1]=255&b,F+2},y.prototype.writeInt32LE=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,4,2147483647,-2147483648),this[F]=255&b,this[F+1]=b>>>8,this[F+2]=b>>>16,this[F+3]=b>>>24,F+4},y.prototype.writeInt32BE=function(b,F,k){return b=+b,F>>>=0,k||qe(this,b,F,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[F]=b>>>24,this[F+1]=b>>>16,this[F+2]=b>>>8,this[F+3]=255&b,F+4},y.prototype.writeBigInt64LE=Se(function(b,F=0){return Be(this,b,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeBigInt64BE=Se(function(b,F=0){return Qe(this,b,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),y.prototype.writeFloatLE=function(b,F,k){return ee(this,b,F,!0,k)},y.prototype.writeFloatBE=function(b,F,k){return ee(this,b,F,!1,k)},y.prototype.writeDoubleLE=function(b,F,k){return ae(this,b,F,!0,k)},y.prototype.writeDoubleBE=function(b,F,k){return ae(this,b,F,!1,k)},y.prototype.copy=function(b,F,k,ne){if(!y.isBuffer(b))throw new TypeError("argument should be a Buffer");if(k||(k=0),ne||ne===0||(ne=this.length),F>=b.length&&(F=b.length),F||(F=0),ne>0&&ne=this.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("sourceEnd out of bounds");ne>this.length&&(ne=this.length),b.length-F>>=0,k=k===void 0?this.length:k>>>0,b||(b=0),typeof b=="number")for(te=F;te=ne+4;k-=3)F=`_${b.slice(k-3,k)}${F}`;return`${b.slice(0,k)}${F}`}function Ve(b,F,k,ne,te,ye){if(b>k||b3?F===0||F===BigInt(0)?`>= 0${ce} and < 2${ce} ** ${8*(ye+1)}${ce}`:`>= -(2${ce} ** ${8*(ye+1)-1}${ce}) and < 2 ** ${8*(ye+1)-1}${ce}`:`>= ${F}${ce} and <= ${k}${ce}`,new de.ERR_OUT_OF_RANGE("value",Pe,b)}(function(ce,Pe,ht){Ne(Pe,"offset"),ce[Pe]!==void 0&&ce[Pe+ht]!==void 0||We(Pe,ce.length-(ht+1))})(ne,te,ye)}function Ne(b,F){if(typeof b!="number")throw new de.ERR_INVALID_ARG_TYPE(F,"number",b)}function We(b,F,k){throw Math.floor(b)!==b?(Ne(b,k),new de.ERR_OUT_OF_RANGE(k||"offset","an integer",b)):F<0?new de.ERR_BUFFER_OUT_OF_BOUNDS:new de.ERR_OUT_OF_RANGE(k||"offset",`>= ${k?1:0} and <= ${F}`,b)}Te("ERR_BUFFER_OUT_OF_BOUNDS",function(b){return b?`${b} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Te("ERR_INVALID_ARG_TYPE",function(b,F){return`The "${b}" argument must be of type number. Received type ${typeof F}`},TypeError),Te("ERR_OUT_OF_RANGE",function(b,F,k){let ne=`The value of "${b}" is out of range.`,te=k;return Number.isInteger(k)&&Math.abs(k)>4294967296?te=Re(String(k)):typeof k=="bigint"&&(te=String(k),(k>BigInt(2)**BigInt(32)||k<-(BigInt(2)**BigInt(32)))&&(te=Re(te)),te+="n"),ne+=` It must be ${F}. Received ${te}`,ne},RangeError);let ct=/[^+/0-9A-Za-z-_]/g;function Q(b,F){let k;F=F||1/0;let ne=b.length,te=null,ye=[];for(let ce=0;ce55295&&k<57344){if(!te){if(k>56319){(F-=3)>-1&&ye.push(239,191,189);continue}if(ce+1===ne){(F-=3)>-1&&ye.push(239,191,189);continue}te=k;continue}if(k<56320){(F-=3)>-1&&ye.push(239,191,189),te=k;continue}k=65536+(te-55296<<10|k-56320)}else te&&(F-=3)>-1&&ye.push(239,191,189);if(te=null,k<128){if((F-=1)<0)break;ye.push(k)}else if(k<2048){if((F-=2)<0)break;ye.push(k>>6|192,63&k|128)}else if(k<65536){if((F-=3)<0)break;ye.push(k>>12|224,k>>6&63|128,63&k|128)}else{if(!(k<1114112))throw new Error("Invalid code point");if((F-=4)<0)break;ye.push(k>>18|240,k>>12&63|128,k>>6&63|128,63&k|128)}}return ye}function _e(b){return p.toByteArray(function(F){if((F=(F=F.split("=")[0]).trim().replace(ct,"")).length<2)return"";for(;F.length%4!=0;)F+="=";return F}(b))}function ke(b,F,k,ne){let te;for(te=0;te=F.length||te>=b.length);++te)F[te+k]=b[te];return te}function je(b,F){return b instanceof F||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===F.name}function Le(b){return b!=b}let et=function(){let b="0123456789abcdef",F=new Array(256);for(let k=0;k<16;++k){let ne=16*k;for(let te=0;te<16;++te)F[ne+te]=b[k]+b[te]}return F}();function Se(b){return typeof BigInt>"u"?Me:b}function Me(){throw new Error("BigInt not supported")}},1083:n=>{n.exports={ClientSide:"csai",ServerSide:"ssai"}},1129:(n,o,c)=>{var p=c(525),v=p.find,A=p.NAMESPACE;function _(z){return z!==""}function m(z,X){return z.hasOwnProperty(X)||(z[X]=!0),z}function y(z){if(!z)return[];var X=function(re){return re?re.split(/[\t\n\f\r ]+/).filter(_):[]}(z);return Object.keys(X.reduce(m,{}))}function C(z,X){for(var re in z)Object.prototype.hasOwnProperty.call(z,re)&&(X[re]=z[re])}function T(z,X){var re=z.prototype;if(!(re instanceof X)){let He=function(){};var Ee=He;He.prototype=X.prototype,C(re,He=new He),z.prototype=re=He}re.constructor!=z&&(typeof z!="function"&&console.error("unknown Class:"+z),re.constructor=z)}var U={},G=U.ELEMENT_NODE=1,M=U.ATTRIBUTE_NODE=2,S=U.TEXT_NODE=3,D=U.CDATA_SECTION_NODE=4,B=U.ENTITY_REFERENCE_NODE=5,R=U.ENTITY_NODE=6,V=U.PROCESSING_INSTRUCTION_NODE=7,$=U.COMMENT_NODE=8,l=U.DOCUMENT_NODE=9,d=U.DOCUMENT_TYPE_NODE=10,g=U.DOCUMENT_FRAGMENT_NODE=11,w=U.NOTATION_NODE=12,j={},H={},se=(j.INDEX_SIZE_ERR=(H[1]="Index size error",1),j.DOMSTRING_SIZE_ERR=(H[2]="DOMString size error",2),j.HIERARCHY_REQUEST_ERR=(H[3]="Hierarchy request error",3)),Z=(j.WRONG_DOCUMENT_ERR=(H[4]="Wrong document",4),j.INVALID_CHARACTER_ERR=(H[5]="Invalid character",5),j.NO_DATA_ALLOWED_ERR=(H[6]="No data allowed",6),j.NO_MODIFICATION_ALLOWED_ERR=(H[7]="No modification allowed",7),j.NOT_FOUND_ERR=(H[8]="Not found",8)),be=(j.NOT_SUPPORTED_ERR=(H[9]="Not supported",9),j.INUSE_ATTRIBUTE_ERR=(H[10]="Attribute in use",10));function ve(z,X){if(X instanceof Error)var re=X;else re=this,Error.call(this,H[z]),this.message=H[z],Error.captureStackTrace&&Error.captureStackTrace(this,ve);return re.code=z,X&&(this.message=this.message+": "+X),re}function Ie(){}function Xe(z,X){this._node=z,this._refresh=X,it(this)}function it(z){var X=z._node._inc||z._node.ownerDocument._inc;if(z._inc!==X){var re=z._refresh(z._node);if(Un(z,"length",re.length),!z.$$length||re.length=0))throw new ve(Z,new Error(z.tagName+"@"+re));for(var He=X.length-1;Ee"&&">")||z=="&"&&"&"||z=='"'&&"""||"&#"+z.charCodeAt()+";"}function Te(z,X){if(X(z))return!0;if(z=z.firstChild)do if(Te(z,X))return!0;while(z=z.nextSibling)}function Re(){this.ownerDocument=this}function Ve(z,X,re,Ee){z&&z._inc++,re.namespaceURI===A.XMLNS&&delete X._nsMap[re.prefix?re.localName:""]}function Ne(z,X,re){if(z&&z._inc){z._inc++;var Ee=X.childNodes;if(re)Ee[Ee.length++]=re;else{for(var He=X.firstChild,Et=0;He;)Ee[Et++]=He,He=He.nextSibling;Ee.length=Et,delete Ee[Ee.length]}}}function We(z,X){var re=X.previousSibling,Ee=X.nextSibling;return re?re.nextSibling=Ee:z.firstChild=Ee,Ee?Ee.previousSibling=re:z.lastChild=re,X.parentNode=null,X.previousSibling=null,X.nextSibling=null,Ne(z.ownerDocument,z),X}function ct(z){return z&&z.nodeType===ae.DOCUMENT_TYPE_NODE}function Q(z){return z&&z.nodeType===ae.ELEMENT_NODE}function _e(z){return z&&z.nodeType===ae.TEXT_NODE}function ke(z,X){var re=z.childNodes||[];if(v(re,Q)||ct(X))return!1;var Ee=v(re,ct);return!(X&&Ee&&re.indexOf(Ee)>re.indexOf(X))}function je(z,X){var re=z.childNodes||[];if(v(re,function(He){return Q(He)&&He!==X}))return!1;var Ee=v(re,ct);return!(X&&Ee&&re.indexOf(Ee)>re.indexOf(X))}function Le(z,X,re){var Ee=z.childNodes||[],He=X.childNodes||[];if(X.nodeType===ae.DOCUMENT_FRAGMENT_NODE){var Et=He.filter(Q);if(Et.length>1||v(He,_e))throw new ve(se,"More than one element or text in fragment");if(Et.length===1&&!ke(z,re))throw new ve(se,"Element in fragment can not be inserted before doctype")}if(Q(X)&&!ke(z,re))throw new ve(se,"Only one element can be added and only after doctype");if(ct(X)){if(v(Ee,ct))throw new ve(se,"Only one doctype is allowed");var Qt=v(Ee,Q);if(re&&Ee.indexOf(Qt)1||v(He,_e))throw new ve(se,"More than one element or text in fragment");if(Et.length===1&&!je(z,re))throw new ve(se,"Element in fragment can not be inserted before doctype")}if(Q(X)&&!je(z,re))throw new ve(se,"Only one element can be added and only after doctype");if(ct(X)){if(v(Ee,function(mt){return ct(mt)&&mt!==re}))throw new ve(se,"Only one doctype is allowed");var Qt=v(Ee,Q);if(re&&Ee.indexOf(Qt)=0;Hi--)if((Mi=He[Hi]).prefix===""&&Mi.namespace===z.namespaceURI){mi=Mi.namespace;break}}if(mi!==z.namespaceURI)for(Hi=He.length-1;Hi>=0;Hi--){var Mi;if((Mi=He[Hi]).namespace===z.namespaceURI){Mi.prefix&&(vi=Mi.prefix+":"+oi);break}}}X.push("<",vi);for(var Oi=0;Oi"),re&&/^script$/i.test(oi))for(;mt;)mt.data?X.push(mt.data):xi(mt,X,re,Ee,He.slice()),mt=mt.nextSibling;else for(;mt;)xi(mt,X,re,Ee,He.slice()),mt=mt.nextSibling;X.push("")}else X.push("/>");return;case l:case g:for(mt=z.firstChild;mt;)xi(mt,X,re,Ee,He.slice()),mt=mt.nextSibling;return;case M:return ai(X,z.name,z.value);case S:return X.push(z.data.replace(/[<&]/g,de).replace(/]]>/g,"]]>"));case D:return X.push("");case $:return X.push("");case d:var En=z.publicId,hn=z.systemId;if(X.push("");else if(hn&&hn!=".")X.push(" SYSTEM ",hn,">");else{var Cn=z.internalSubset;Cn&&X.push(" [",Cn,"]"),X.push(">")}return;case V:return X.push("");case B:return X.push("&",z.nodeName,";");default:X.push("??",z.nodeName)}}function es(z,X,re){var Ee;switch(X.nodeType){case G:(Ee=X.cloneNode(!1)).ownerDocument=z;case g:break;case M:re=!0}if(Ee||(Ee=X.cloneNode(!1)),Ee.ownerDocument=z,Ee.parentNode=null,re)for(var He=X.firstChild;He;)Ee.appendChild(es(z,He,re)),He=He.nextSibling;return Ee}function un(z,X,re){var Ee=new X.constructor;for(var He in X)if(Object.prototype.hasOwnProperty.call(X,He)){var Et=X[He];typeof Et!="object"&&Et!=Ee[He]&&(Ee[He]=Et)}switch(X.childNodes&&(Ee.childNodes=new Ie),Ee.ownerDocument=z,Ee.nodeType){case G:var Qt=X.attributes,mt=Ee.attributes=new qe,oi=Qt.length;mt._ownerElement=Ee;for(var vi=0;vi=0&&z0},lookupPrefix:function(z){for(var X=this;X;){var re=X._nsMap;if(re){for(var Ee in re)if(Object.prototype.hasOwnProperty.call(re,Ee)&&re[Ee]===z)return Ee}X=X.nodeType==M?X.ownerDocument:X.parentNode}return null},lookupNamespaceURI:function(z){for(var X=this;X;){var re=X._nsMap;if(re&&z in re&&Object.prototype.hasOwnProperty.call(re,z))return re[z];X=X.nodeType==M?X.ownerDocument:X.parentNode}return null},isDefaultNamespace:function(z){return this.lookupPrefix(z)==null}},C(U,ae),C(U,ae.prototype),Re.prototype={nodeName:"#document",nodeType:l,doctype:null,documentElement:null,_inc:1,insertBefore:function(z,X){if(z.nodeType==g){for(var re=z.firstChild;re;){var Ee=re.nextSibling;this.insertBefore(re,X),re=Ee}return z}return Se(this,z,X),z.ownerDocument=this,this.documentElement===null&&z.nodeType===G&&(this.documentElement=z),z},removeChild:function(z){return this.documentElement==z&&(this.documentElement=null),We(this,z)},replaceChild:function(z,X){Se(this,z,X,et),z.ownerDocument=this,X&&this.removeChild(X),Q(z)&&(this.documentElement=z)},importNode:function(z,X){return es(this,z,X)},getElementById:function(z){var X=null;return Te(this.documentElement,function(re){if(re.nodeType==G&&re.getAttribute("id")==z)return X=re,!0}),X},getElementsByClassName:function(z){var X=y(z);return new Xe(this,function(re){var Ee=[];return X.length>0&&Te(re.documentElement,function(He){if(He!==re&&He.nodeType===G){var Et=He.getAttribute("class");if(Et){var Qt=z===Et;if(!Qt){var mt=y(Et);Qt=X.every((oi=mt,function(vi){return oi&&oi.indexOf(vi)!==-1}))}Qt&&Ee.push(He)}}var oi}),Ee})},createElement:function(z){var X=new Me;return X.ownerDocument=this,X.nodeName=z,X.tagName=z,X.localName=z,X.childNodes=new Ie,(X.attributes=new qe)._ownerElement=X,X},createDocumentFragment:function(){var z=new kt;return z.ownerDocument=this,z.childNodes=new Ie,z},createTextNode:function(z){var X=new k;return X.ownerDocument=this,X.appendData(z),X},createComment:function(z){var X=new ne;return X.ownerDocument=this,X.appendData(z),X},createCDATASection:function(z){var X=new te;return X.ownerDocument=this,X.appendData(z),X},createProcessingInstruction:function(z,X){var re=new bt;return re.ownerDocument=this,re.tagName=re.nodeName=re.target=z,re.nodeValue=re.data=X,re},createAttribute:function(z){var X=new b;return X.ownerDocument=this,X.name=z,X.nodeName=z,X.localName=z,X.specified=!0,X},createEntityReference:function(z){var X=new ht;return X.ownerDocument=this,X.nodeName=z,X},createElementNS:function(z,X){var re=new Me,Ee=X.split(":"),He=re.attributes=new qe;return re.childNodes=new Ie,re.ownerDocument=this,re.nodeName=X,re.tagName=X,re.namespaceURI=z,Ee.length==2?(re.prefix=Ee[0],re.localName=Ee[1]):re.localName=X,He._ownerElement=re,re},createAttributeNS:function(z,X){var re=new b,Ee=X.split(":");return re.ownerDocument=this,re.nodeName=X,re.name=X,re.namespaceURI=z,re.specified=!0,Ee.length==2?(re.prefix=Ee[0],re.localName=Ee[1]):re.localName=X,re}},T(Re,ae),Me.prototype={nodeType:G,hasAttribute:function(z){return this.getAttributeNode(z)!=null},getAttribute:function(z){var X=this.getAttributeNode(z);return X&&X.value||""},getAttributeNode:function(z){return this.attributes.getNamedItem(z)},setAttribute:function(z,X){var re=this.ownerDocument.createAttribute(z);re.value=re.nodeValue=""+X,this.setAttributeNode(re)},removeAttribute:function(z){var X=this.getAttributeNode(z);X&&this.removeAttributeNode(X)},appendChild:function(z){return z.nodeType===g?this.insertBefore(z,null):function(X,re){return re.parentNode&&re.parentNode.removeChild(re),re.parentNode=X,re.previousSibling=X.lastChild,re.nextSibling=null,re.previousSibling?re.previousSibling.nextSibling=re:X.firstChild=re,X.lastChild=re,Ne(X.ownerDocument,X,re),re}(this,z)},setAttributeNode:function(z){return this.attributes.setNamedItem(z)},setAttributeNodeNS:function(z){return this.attributes.setNamedItemNS(z)},removeAttributeNode:function(z){return this.attributes.removeNamedItem(z.nodeName)},removeAttributeNS:function(z,X){var re=this.getAttributeNodeNS(z,X);re&&this.removeAttributeNode(re)},hasAttributeNS:function(z,X){return this.getAttributeNodeNS(z,X)!=null},getAttributeNS:function(z,X){var re=this.getAttributeNodeNS(z,X);return re&&re.value||""},setAttributeNS:function(z,X,re){var Ee=this.ownerDocument.createAttributeNS(z,X);Ee.value=Ee.nodeValue=""+re,this.setAttributeNode(Ee)},getAttributeNodeNS:function(z,X){return this.attributes.getNamedItemNS(z,X)},getElementsByTagName:function(z){return new Xe(this,function(X){var re=[];return Te(X,function(Ee){Ee===X||Ee.nodeType!=G||z!=="*"&&Ee.tagName!=z||re.push(Ee)}),re})},getElementsByTagNameNS:function(z,X){return new Xe(this,function(re){var Ee=[];return Te(re,function(He){He===re||He.nodeType!==G||z!=="*"&&He.namespaceURI!==z||X!=="*"&&He.localName!=X||Ee.push(He)}),Ee})}},Re.prototype.getElementsByTagName=Me.prototype.getElementsByTagName,Re.prototype.getElementsByTagNameNS=Me.prototype.getElementsByTagNameNS,T(Me,ae),b.prototype.nodeType=M,T(b,ae),F.prototype={data:"",substringData:function(z,X){return this.data.substring(z,z+X)},appendData:function(z){z=this.data+z,this.nodeValue=this.data=z,this.length=z.length},insertData:function(z,X){this.replaceData(z,0,X)},appendChild:function(z){throw new Error(H[se])},deleteData:function(z,X){this.replaceData(z,X,"")},replaceData:function(z,X,re){re=this.data.substring(0,z)+re+this.data.substring(z+X),this.nodeValue=this.data=re,this.length=re.length}},T(F,ae),k.prototype={nodeName:"#text",nodeType:S,splitText:function(z){var X=this.data,re=X.substring(z);X=X.substring(0,z),this.data=this.nodeValue=X,this.length=X.length;var Ee=this.ownerDocument.createTextNode(re);return this.parentNode&&this.parentNode.insertBefore(Ee,this.nextSibling),Ee}},T(k,F),ne.prototype={nodeName:"#comment",nodeType:$},T(ne,F),te.prototype={nodeName:"#cdata-section",nodeType:D},T(te,F),ye.prototype.nodeType=d,T(ye,ae),ce.prototype.nodeType=w,T(ce,ae),Pe.prototype.nodeType=R,T(Pe,ae),ht.prototype.nodeType=B,T(ht,ae),kt.prototype.nodeName="#document-fragment",kt.prototype.nodeType=g,T(kt,ae),bt.prototype.nodeType=V,T(bt,ae),at.prototype.serializeToString=function(z,X,re){return pi.call(z,X,re)},ae.prototype.toString=pi;try{if(Object.defineProperty){let z=function(X){switch(X.nodeType){case G:case g:var re=[];for(X=X.firstChild;X;)X.nodeType!==7&&X.nodeType!==8&&re.push(z(X)),X=X.nextSibling;return re.join("");default:return X.nodeValue}};var an=z;Object.defineProperty(Xe.prototype,"length",{get:function(){return it(this),this.$$length}}),Object.defineProperty(ae.prototype,"textContent",{get:function(){return z(this)},set:function(X){switch(this.nodeType){case G:case g:for(;this.firstChild;)this.removeChild(this.firstChild);(X||String(X))&&this.appendChild(this.ownerDocument.createTextNode(X));break;default:this.data=X,this.value=X,this.nodeValue=X}}}),Un=function(X,re,Ee){X["$$"+re]=Ee}}}catch{}o.DocumentType=ye,o.DOMException=ve,o.DOMImplementation=ee,o.Element=Me,o.Node=ae,o.NodeList=Ie,o.XMLSerializer=at},1146:(n,o,c)=>{"use strict";c.r(o),c.d(o,{default:()=>U});var p=c(9065),v=c(1577),A=c(9835),_=c.n(A),m=c(9637),y=c.n(m),C=c(5804),T=c.n(C);class U{constructor(M){this.options=M}getUsername(){return this.options.userId?this.options.userId:this.options["user.name"]}getProfileId(){return this.options.profileId}getPluginVersion(){return p.default.getPluginVersion()}getRequestNumber(){return Math.random()}getUserType(){return this.options["user.type"]}getAnonymousUser(){return this.options["user.anonymousId"]}getReferer(){let M=this.options.referer||"";return!M&&typeof window<"u"&&window.location&&(M=window.location.href),M}getReferral(){let M=this.options.referral||"";return M||typeof document>"u"||(M=document.referrer),M}getPageName(){let M=this.options.title||"";return M||typeof document>"u"||(M=document.title),M}getLanguage(){return typeof navigator<"u"?navigator.language:void 0}getScreenResolution(){let M;try{if(window&&window.screen){let S=window.devicePixelRatio||1;M=window.screen.width*S+"x"+window.screen.height*S}}catch{}return M}getDeviceInfo(){let M={};return this.getDeviceCode()&&(M.deviceCode=this.getDeviceCode()),this.getModel()&&(M.model=this.getModel()),this.getBrand()&&(M.brand=this.getBrand()),this.getDeviceType()&&(M.deviceType=this.getDeviceType()),this.getDeviceName()&&(M.deviceName=this.getDeviceName()),this.getOsName()&&(M.osName=this.getOsName()),this.getOsVersion()&&(M.osVersion=this.getOsVersion()),this.getBrowserName()&&(M.browserName=this.getBrowserName()),this.getBrowserVersion()&&(M.browserVersion=this.getBrowserVersion()),this.getBrowserType()&&(M.browserType=this.getBrowserType()),this.getBrowserEngine()&&(M.browserEngine=this.getBrowserEngine()),Object.keys(M).length!==0?M:void 0}getDeviceCode(){return this.options["device.code"]}getModel(){return this.options["device.model"]}getBrand(){return this.options["device.brand"]}getDeviceType(){return this.options["device.type"]}getDeviceName(){return this.options["device.name"]}getOsName(){return this.options["device.osName"]}getOsVersion(){return this.options["device.osVersion"]}getBrowserName(){return this.options["device.browserName"]}getBrowserVersion(){return this.options["device.browserVersion"]}getBrowserType(){return this.options["device.browserType"]}getBrowserEngine(){return this.options["device.browserEngine"]}getIsBlocked(){return this.options["ad.blockerDetected"]}isMethodPostEnabled(){return this.options.method&&this.options.method.toUpperCase()===y().POST}getDeviceUUID(){let M;return this.options["device.isAnonymous"]||(M=this.options["device.id"]||new(T())().getKey()),M}getLibVersion(){return _()}getAppName(){return this.options["app.name"]}getAppReleaseVersion(){return this.options["app.releaseVersion"]}getIp(){return this.options["network.ip"]}getIsp(){return this.options["network.isp"]}getConnectionType(){return this.options["network.connectionType"]}getEDID(){let M=this.options["device.EDID"];return M?M.toString():void 0}getObfuscateIp(){return this.options["user.obfuscateIp"]}getPrivacyProtocol(){let M=this.options["user.privacyProtocol"];return typeof M=="string"&&(M=M.toLowerCase()),M==="optin"||M==="optout"?M:void 0}getCustomDimensions(){let M=this.options["content.customDimensions"];return typeof M=="object"?M:void 0}getExtraparam1(){return this.options["content.customDimension.1"]}getExtraparam2(){return this.options["content.customDimension.2"]}getExtraparam3(){return this.options["content.customDimension.3"]}getExtraparam4(){return this.options["content.customDimension.4"]}getExtraparam5(){return this.options["content.customDimension.5"]}getExtraparam6(){return this.options["content.customDimension.6"]}getExtraparam7(){return this.options["content.customDimension.7"]}getExtraparam8(){return this.options["content.customDimension.8"]}getExtraparam9(){return this.options["content.customDimension.9"]}getExtraparam10(){return this.options["content.customDimension.10"]}getExtraparam11(){return this.options["content.customDimension.11"]}getExtraparam12(){return this.options["content.customDimension.12"]}getExtraparam13(){return this.options["content.customDimension.13"]}getExtraparam14(){return this.options["content.customDimension.14"]}getExtraparam15(){return this.options["content.customDimension.15"]}getExtraparam16(){return this.options["content.customDimension.16"]}getExtraparam17(){return this.options["content.customDimension.17"]}getExtraparam18(){return this.options["content.customDimension.18"]}getExtraparam19(){return this.options["content.customDimension.19"]}getExtraparam20(){return this.options["content.customDimension.20"]}isParseManifest(){return this.options["parse.manifest"]}isParseCdnNode(){return this.options["parse.cdnNode"]}isCdnSwitch(){return this.options["parse.cdnSwitchHeader"]}getParseCdnNodeList(){return this.options["parse.cdnNode.list"]}getParseCdnNodeNameHeader(){return this.options["parse.cdnNameHeader"]}getParseNodeHeader(){return this.options["parse.cdnNodeHeader"]}canOverwriteAdapters(){return v.default.parseBoolean(this.options["adapters.overwrite"])}getAdaptersProperties(){return this.options["adapters.properties"]}isAppAnalyticsAutoBegin(){return v.default.parseBoolean(this.options["check.appAnalytics.autoBegin"])}isAppAnalyticsEnabled(){return v.default.parseBoolean(this.options["check.appAnalytics.enabled"])}isVideoAnalyticsEnabled(){return v.default.parseBoolean(this.options["check.videoAnalytics.enabled"])}isRefreshLMAConfigurationEnabled(){return v.default.parseBoolean(this.options["lma.refresh.configuration.enabled"])}isPluginLogsEnabled(){return v.default.parseBoolean(this.options["debug.pluginLogs.enabled"])}isPlayerLogsEnabled(){return v.default.parseBoolean(this.options["debug.playerLogs.enabled"])}refreshLMAConfigurationSeconds(){return this.options["lma.refresh.configuration.seconds"]}getPlayheadMonitorEnabled(){return this.options["playhead.monitor"]}getReadyStateMonitorEnabled(){return this.options["readyState.monitor"]}}},1151:(n,o,c)=>{var p=c(2503),v=c(3168),A=c(3908),_=c(8187),m=c(3831),y=c(4387),C=c(1657),T=c(3782);let{AnalyticsTag:U}=c(2784),{default:G}=c(7276);var M=p.extend({constructor:function(S){M.__super__.constructor.apply(this,arguments),this.plugin=S,this._realResource=void 0,this._transportFormat=void 0,this._initResource=void 0,this._cdnName=void 0,this._cdnNodeHost=void 0,this._cdnNodeTypeString=void 0,this._cdnNodeType=void 0,this._responses={},this._isBusy=!1,this.transformName="Resource"},getResource:function(){return this._realResource},_getInitialCdnResource:function(){return this._realResource||this._initResource},getTransportFormat:function(){return this._transportFormat},getCdnName:function(){return this._cdnName},getNodeHost:function(){return this._cdnNodeHost},getNodeTypeString:function(){return this._cdnNodeTypeString},getNodeType:function(){return this._cdnNodeType},init:function(S){S?this._isBusy||(this._isBusy=!0,this._initResource=S,this._parseManifestEnabled=this.plugin.isParseManifest(),this._cdnEnabled=this.plugin.isParseCdnNode(),this._cdnList=this.plugin.getParseCdnNodeList().slice(),A.setBalancerHeaderName(this.plugin.getParseCdnNodeNameHeader(),this.plugin.getParseNodeHeader()),this._setTimeout(),this._parseManifestEnabled?this._isFinalUrl(this._initResource)?(this._realResource=this._initResource,this.done()):this.parseManifest():this._parseCDN()):this.done()},_isFinalUrl:function(S){let D=[".ts",".mp4",".m4s",".cmfv"];S=S||"";for(let B in D){let R=D[B];if(S.lastIndexOf(R)===S.length-R.length)return!0}return!1},_setTimeout:function(){let S=()=>{this._isBusy&&(this.done(),G.warn(U,"ResourceTransform has exceded the maximum execution time (3s) and will be aborted."))};try{this._parseTimeout=setTimeout(S,3e3)}catch(D){typeof atv<"u"?this._parseTimeout=atv.setTimeout(S,3e3):G.error(U,D)}},parseManifest:function(S,D){let B=this.plugin.options["parse.manifest.auth"],R=[new C(B),new m(B),new v(B)];this._parseManifest(R,S,D||this._initResource)},_parseManifest:function(S,D,B,R){if(S.length>0){let V=S[0];V.shouldExecute(D)?(V.on(y.Event.DONE,()=>{this._parseManifest(S.slice(1,S.length),V.getLastManifest(),V.getResource(),V.getTransportFormat()||R)}),V.parse(B,D)):this._parseManifest(S.slice(1,S.length),D,B,R)}else this._transportFormat=R,this._realResource=B,this._parseCDN()},_parseCDN:function(){if(this.plugin.isCdnSwitch())this.switchDetector=new _(this.plugin),this.switchDetector.on(_.Events.DONE,S=>{this._cdnName=S.data,this.done()}),this.switchDetector.on(_.Events.ERROR,()=>{this.done()}),this.switchDetector.init();else if(this._cdnEnabled&&this._cdnList.length>0){let S=this._cdnList.shift(),D=A.create(S);D?(D.on(A.Event.DONE,()=>{this._responses=D.getResponses(),this._cdnName=D.getParsedCdnName(),this._cdnNodeHost=D.getParsedNodeHost(),this._cdnNodeTypeString=D.getParsedNodeTypeString(),this._cdnNodeType=D.getParsedNodeType(),this.getNodeHost()?this.done():this._parseCDN()}),D.parse(this._getInitialCdnResource(),this._responses)):this._parseCDN()}else this.done()},parse:function(S){if(S.service===T.Service.START){let D=this.plugin.requestBuilder.lastSent;D.parsedResource=S.params.parsedResource=this.getResource()||S.params.parsedResource,D.transportFormat=S.params.transportFormat=this.getTransportFormat()||S.params.transportFormat,this._cdnEnabled&&(D.cdn=S.params.cdn=S.params.cdn||this.getCdnName(),D.nodeHost=S.params.nodeHost=this.getNodeHost()||S.params.nodeHost,D.nodeType=S.params.nodeType=this.getNodeType()||S.params.nodeType,D.nodeTypeString=S.params.nodeTypeString=this.getNodeTypeString()||S.params.nodeTypeString)}}});n.exports=M},1516:(n,o,c)=>{var p=c(1593),v=c(7680),A=c(7061);let{default:_}=c(7276);var m=c(3782),y=c(2507);let{default:C}=c(1577);var T=c(5292),U=c(2071),G=c(2995),M=c(6424);let{default:S}=c(6933),{default:D}=c(9065),{default:B}=c(3555),{default:R}=c(61),{Method:V,AnalyticsTag:$}=c(2784);var l=p.extend({constructor:function(d,g,w,j){this._key=d,this.plugin=g,this.isInitiated=!1,this.isAdsManifestSent=!1,this.playedPostrolls=0,this.isBreakStarted=!1,this.initChrono=new v,this.options=new A(w),this._adNumber=0,this._adNumberInBreak=0,this.requestBuilder=new U,this.hybridNetwork=new G,this.resizeScrollDetector=new M(g,this),this._adapter=null,this._adsAdapter=null,j&&this.setAdapter(j,g),this._pluginLogsQueue=[],this.lastEventTime=null,this.lastKnownLocation=void 0,this.isFetchingLocation=!1,this.sendingPings=!1,this._startPings()},mergeOptions:function(d){d&&this.options.setOptions(d,this.options)},setVideoOptions:function(d){d&&this.options.setOptions(d)},updateCustomMetrics:function(d){d&&this.options.setOptions(d,void 0,!0)},getVideoKey:function(){return this._key},nextView:function(){return this._viewIndex=new Date().getTime(),this._viewCode=D.getInstance().getFastDataSessionToken(),D.getInstance().registerCommonVariable(R.Products.VIDEO_ANALYTICS,R.AnalyticsVariables.VIEW_CODE,this._viewIndex),this.getViewCode()},getViewCode:function(){let d=D.getInstance().getFastDataSessionToken();return d.length===0||this._viewCode&&this._viewCode===d||(this._viewCode=d),this._viewCode+(this._viewIndex?`_${this._viewIndex}`:"")},setAdapter:function(d,g){for(var w in this.plugin=g,this._adapter=d,this._adapter.setIsAds(!1),this._adapter._setAdapter=!0,this.contentAdapterListeners={},this.contentAdapterListeners[T.Event.START]=this._startListener.bind(this),this.contentAdapterListeners[T.Event.JOIN]=this._joinListener.bind(this),this.contentAdapterListeners[T.Event.DATA_OBJECT]=this._advancedDataListener.bind(this),this.contentAdapterListeners[T.Event.PAUSE]=this._pauseListener.bind(this),this.contentAdapterListeners[T.Event.RESUME]=this._resumeListener.bind(this),this.contentAdapterListeners[T.Event.SEEK_BEGIN]=this._seekBufferBeginListener.bind(this),this.contentAdapterListeners[T.Event.SEEK_END]=this._seekEndListener.bind(this),this.contentAdapterListeners[T.Event.BUFFER_BEGIN]=this._seekBufferBeginListener.bind(this),this.contentAdapterListeners[T.Event.BUFFER_END]=this._bufferEndListener.bind(this),this.contentAdapterListeners[T.Event.ERROR]=this._errorListener.bind(this),this.contentAdapterListeners[T.Event.STOP]=this._stopListener.bind(this),this.contentAdapterListeners[T.Event.VIDEO_EVENT]=this._videoEventListener.bind(this),this.contentAdapterListeners)this._adapter.on(w,this.contentAdapterListeners[w]);this.options.enableExtraMetricCollection&&this.shouldStartRenditionTimer()},getAdapter:function(){return this._adapter},removeAdapter:function(){try{if(this._adapter){if(this._adapter.dispose(),this.contentAdapterListeners){for(var d in this.contentAdapterListeners)this._adapter.off(d,this.contentAdapterListeners[d]);delete this.contentAdapterListeners}this._adapter=null}}catch{_.error($,"Is not possible to remove adapter for video: "+this._key)}},getAdsAdapter:function(){return this._adsAdapter},fetchLocation:function(){if(this.isFetchingLocation=!0,navigator&&navigator.geolocation){let d={enableHighAccuracy:!0,timeout:1e4};this.lastKnownLocation=void 0,navigator.geolocation.getCurrentPosition(g=>{this.lastKnownLocation={latitude:g.coords.latitude,longitude:g.coords.longitude},this.isFetchingLocation=!1},g=>{this.isFetchingLocation=!1},d)}else this.lastKnownLocation=void 0,this.isFetchingLocation=!1},shouldStartRenditionTimer:function(){if(!this._adapter.getAdapterClass("detectQualityChange")&&!this.renditionInterval){let d=this.options.renditionQueryInterval<100?100:this.options.renditionQueryInterval;this.renditionInterval=setInterval(()=>{let g=this._adapter.getRendition();g&&this.triggerUpdateRendition(g)},d||250)}},triggerUpdateRendition:function(d){this.lastObservedRendition?this.lastObservedRendition!=d&&(this.lastObservedRendition=d):this.lastObservedRendition=d},fireInit:function(d,g){this.isInitiated||(!this.getAdapter()||this.getAdapter()&&!this.getAdapter().flags.isStarted)&&(this._viewIndex||this.plugin.getNextViewIndex(this),this._startPings(),this.initChrono.start(),this.isInitiated=!0,d=d||{},g&&(d.triggeredEvents=[g]),this._send(m.WillSendEvent.WILL_SEND_INIT,m.Service.INIT,d),this._adSavedError(),this._adSavedManifest(),_.notice($,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+m.Service.INIT+", title/res: "+(d.title||d.mediaResource)+(d.triggeredEvents?", eventsTriggered: "+d.triggeredEvents:"")))},fireError:function(d,g,w,j,H,se){this.fireInit();var Z=y.buildErrorParams(d,g,w);Z.entities=this.requestBuilder.getChangedEntities([this,this.plugin],this.options),Z.code&&delete Z.code,H&&(Z.triggeredEvents=[H]);try{(se=se||!1)&&this._adapter&&this._adapter.flags&&this._adapter.flags.isJoined&&((Z=Z||{}).errorType="fatal")}catch{}this._send(m.WillSendEvent.WILL_SEND_ERROR,m.Service.ERROR,Z),this._adSavedError(),this._adSavedManifest(),_.notice($,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+m.Service.ERROR+", errorType: "+Z.errorType+", errorCode: "+Z.errorCode+(Z.triggeredEvents?", eventsTriggered: "+Z.triggeredEvents:"")),Z.errorType==="fatal"&&this.fireStop()},fireFatalError:function(d,g,w,j,H){this.fireError(d,g,w,j,H,!0)},fireStop:function(d,g){if(this.isInitiated||this.isStarted){this._adapter&&(this._adapter.flags.isStopped=!0,this._adapter.monitor&&this._adapter.monitor.stop()),this._adsAdapter&&this.isBreakStarted&&(this._adsAdapter.fireStop(),this._adsAdapter.fireAdBreakStop()),(d=d||{}).entities=this.requestBuilder.getChangedEntities([this,this.plugin],this.options),g&&(d.triggeredEvents=[g]),S.getInstance().setTriedSendingNQSStats(!0),this._send(m.WillSendEvent.WILL_SEND_STOP,m.Service.STOP,d,void 0,void 0,()=>{S.getInstance().addNQSRequest(m.Service.STOP)});var w=this._adapter?this._adapter.chronos:null;w&&(w.total.stop(),w.join.reset(),w.pause.reset(),w.buffer.reset(),w.seek.reset()),this.lastKnownLocation=void 0,this.observedRenditions=[],this.renditionInterval&&(clearInterval(this.renditionInterval),this.renditionInterval=void 0),_.notice($,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+m.Service.STOP+" at "+d.playhead+"s"+(d.triggeredEvents?", eventsTriggered: "+d.triggeredEvents:"")),this._reset()}},fireOfflineEvents:function(d){this.options&&!this.options.offline?this.isInitiated||this._adapter&&this._adapter.flags.isStarted||this._adsAdapter&&this._adsAdapter.flags.isStarted?_.error($,"Adapters have to be stopped"):(this._offlineParams=d,D.getInstance().getFastDataService().getAccountCode()&&D.getInstance().getFastDataSessionToken()?this._generateAndSendOffline():this.offlineReference=this._generateAndSendOffline.bind(this)):_.error($,"To send offline events, offline option must be disabled")},_generateAndSendOffline:function(){if(this.options.disableStorage)return null;let d=this._offlineParams;for(;;){var g=this.requestBuilder.buildBody(m.Service.OFFLINE_EVENTS,[this,this.plugin]).viewJson;if(g[0]===null)break;var w=this.plugin.getNextViewIndex(this),j=g[0].replace(/CODE_PLACEHOLDER/g,w.toString()).replace(/,"sessionId":"SESSION_PLACEHOLDER"/g,"").replace(/,"sessionRoot":"ROOT_PLACEHOLDER"/g,"");this._send(m.WillSendEvent.WILL_SEND_OFFLINE_EVENTS,m.Service.OFFLINE_EVENTS,d,j,"POST",(function(H,se){this.plugin.offlineStorage.removeView(se.offlineId)}).bind(this),{offlineId:g[1]})}this.plugin.offlineStorage.sent(),this._offlineParams=null},_reset:function(){try{this._stopPings(),this._adapter&&this._adapter.flags.reset(),this._viewIndex=void 0,this.isInitiated=!1,this.isStarted=!1,this.startDelayed=!1,this.isAdsManifestSent=!1,this.initChrono.reset(),this._totalPrerollsTime=0,this.requestBuilder.lastSent.breakNumber=0,this.requestBuilder.lastSent.adNumber=0,this._savedAdManifest=null,this._savedAdError=null,this.playedPostrolls=0,this.isBreakStarted=!1,this._adNumber=0,this._adNumberInBreak=0}catch{}},_send:function(d,g,w,j,H,se,Z){let be=C.methodFromString(H),ve=new Date().getTime();this.options.preventZombieViews&&this.lastEventTime&&ve>this.lastEventTime+6e5&&this.plugin.getNextViewIndex(this),this.lastEventTime=g===m.Service.STOP?null:ve;let Ie=new B(g,w,this.getVideoKey(),be,void 0,se);this.plugin.resourceTransform.parse(Ie),w=this.requestBuilder.buildParams(w,g,[this,this.plugin],this.options),this.getIsLive()===!0&&(w.mediaDuration=this.options["content.duration"],w.playhead=void 0),Ie.setParams(w),j&&Ie.setBody(j),Ie.setMethod(be),this.plugin.isMethodPostEnabled()&&Ie.setMethod(V.POST);let Xe={params:Ie.getParams(),plugin:this,adapter:this.getAdapter(),adsAdapter:this.getAdsAdapter()};this.emit(d,Xe),this.plugin.analyticsRequestHandler&&(w!==null||H!==void 0)&&this.options.enabled&&(this.plugin.lastServiceSent=g,this.plugin.analyticsRequestHandler.sendRequest(Ie))},firePlayerLog:function(d){try{if(this.plugin.isPlayerLogsEnabled())if(this._adapter&&!this._adapter.isStarted())d.timemark=new Date().getTime(),this._pluginLogsQueue.push(d);else{for(;this._pluginLogsQueue.length>0;){var g=this._pluginLogsQueue.shift();this._sendPlayerLog(g)}this._sendPlayerLog(d)}}catch{}},_sendPlayerLog:function(d){try{d&&d.logType&&d.logAction&&_.notice($,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") PlayerLog "+d.logType+": Action "+d.logAction),this.plugin._comm&&d&&(d=this.requestBuilder.buildParams(d,m.Service.VIDEO_PLUGIN_LOGS,this,this.options))!==null&&this._send(null,m.Service.VIDEO_PLUGIN_LOGS,d)}catch{}}});y.assign(l.prototype,c(8037)),y.assign(l.prototype,c(5710)),y.assign(l.prototype,c(7355)),y.assign(l.prototype,c(5031)),n.exports=l},1527:(n,o,c)=>{var p=c(1593),v=c(3782),A=c(2507);let{default:_}=c(7276);var m=c(5651);let{default:y}=c(6075);var C=c(7061),T=c(470),U=(c(3455),c(2071)),G=c(1151),M=c(2101),S=c(9773),D=c(2635),B=c(5804);let{default:R}=c(3555),{Method:V,AnalyticsTag:$,BalancerTag:l}=c(2784),{default:d}=c(9065),{default:g}=c(61),{default:w}=c(1577),{default:j}=c(1146);function H(Z,be){return new Proxy(be,{set(ve,Ie,Xe){let it=ve[Ie];return ve[Ie]=Xe,it!==Xe&&Z.onOptionsChanged(Ie,Xe,it),!0}})}var se=p.extend({constructor:function(Z,be,ve,Ie){if(se.instance)return ve&&(this.commonGetters||(this.commonGetters=new j(this.options)),_.notice($,"Set Options for already existing instance"),se.instance.setOptions(ve),se.instance.storage.updateStorageOptions(se.instance.options.disableCookies,se.instance.options.forceCookies,se.instance.options.disableStorage)),Ie&&(_.notice($,"Set Adapter for already existing instance"),se.instance.setAdapter(Ie)),_.warn($,"Only a single plugin instance can be created on npaw context"),se.instance;this.options=new C(ve),this.options=H(this,this.options),this.commonGetters||(this.commonGetters=new j(this.options)),this.storage=new T(null,this.options.disableCookies,this.options.forceCookies,this.options.disableStorage),this.utils=c(2507),this.uuidGenerator=new B,this.videos=new m(this),this.analyticsRequestHandler=new y(this),this.adapterTemplates={},this.requestBuilder=new U,this.resourceTransform=new G(this),this.lastEventTime=null,this.browserLoadTimes=new M(Z),this.deviceDetector=new D,this.backgroundDetector=new S(this,be),this.options["background.enabled"]&&this.backgroundDetector.startDetection(),Ie&&this.setAdapter(Ie),this._logInitPluginEvent(ve),navigator&&navigator.userAgentData&&navigator.userAgentData.platform==="Windows"&&navigator.userAgentData.getHighEntropyValues&&navigator.userAgentData.getHighEntropyValues(["platformVersion"]).then(Xe=>{navigator.userAgentData.platform==="Windows"&&(this.majorPlatformVersion=parseInt(Xe.platformVersion.split(".")[0]))}),se.instance=this,this.fetchTvDeviceModelInfo()},addOnWillSendRequestListener(Z){this.analyticsRequestHandler.onWillSendVideoRequestListeners.push(Z)},removeOnWillSendRequestListener(Z){this.analyticsRequestHandler.onWillSendVideoRequestListeners=this.analyticsRequestHandler.onWillSendVideoRequestListeners.filter(be=>be!==Z)},destroy:function(){this.videos.removeAllAdapters(),this.videos.videos={}},_setAdapterTemplates:function(Z){this.adapterTemplates=Z},_receiveConfiguration:function(Z){try{if(Z.target.response.configurationOptions){var be=Z.target.response.configurationOptions;this.options.setOptions(be,this.options),this.videos.updateAllOptions(be)}this.isRefreshLMAConfigurationEnabled()&&this.fastDataTransform&&this.fastDataTransform._createConfigurationInterval()}catch{}},_reset:function(Z){this.videos.resetVideo(Z)},setOptions:function(Z){if(this._logSetOptionsEvent(Z),Z){typeof Z["parse.manifest"]=="boolean"&&Z["parse.manifest"]&&(Z.waitForMetadata=!0,Z.pendingMetadata||(Z.pendingMetadata=[]),Z.pendingMetadata.push("parsedResource")),Object.assign(this.options,Z),this.storage.updateStorageOptions(this.options.disableCookies,this.options.forceCookies,this.options.disableStorage);for(let be of this.videos.getVideoKeys())this.setVideoOptions(Z,be)}d.getInstance().registerCommonVariable(g.Products.VIDEO_ANALYTICS,g.AnalyticsVariables.METHOD_OPTION,w.methodFromString(Z.method)),d.getInstance().registerCommonVariable(g.Products.DEVICE_ANALYTICS,g.DeviceVariables.APP_ANALYTICS_DEVICE_STRING,this.getDeviceInfoString())},setVideoOptions:function(Z,be){if(be=be||"default",Z&&be&&this.videos.existsVideo(be)&&Object.keys(Z).length>0){this.videos.getVideo(be).setVideoOptions(Z);let ve=this.videos.getVideo(be);ve.options=H(this,ve.options),Object.assign(ve.options,Z)}},updateCustomMetrics:function(Z,be){be=be||"default",Z&&this.videos.existsVideo(be)&&Object.keys(Z).length>0&&this.videos.getVideo(be).updateCustomMetrics(Z)},disable:function(){this.setOptions({enabled:!1})},enable:function(){this.setOptions({enabled:!0})},getPingTime:function(){return d.getInstance().getFastDataService().getPingTime()},fetchTvDeviceModelInfo(){if(!this.options["device.model"]){let Z=this;typeof webOS<"u"?webOS.service.request("luna://com.webos.service.tv.systemproperty",{method:"getSystemInfo",parameters:{keys:["modelName"]},onComplete:function(be){be.returnValue?Z.lgDeviceModel=be.modelName:_.debug($,"Could not get LG device model name")}}):typeof webapis<"u"&&webapis.productinfo!==void 0&&(this.samsungDeviceModel=webapis.productinfo.getRealModel())}},_logInitPluginEvent:function(Z){var be={logs:Z,logAction:"initPlugin",logType:"pluginMethod"};this._sendPluginLogs(be,this.isMethodPostEnabled())},_logSetAdapterEvent:function(Z){var be={adapter:Z,logAction:"setAdapter",logType:"pluginMethod"};this._sendPluginLogs(be,this.isMethodPostEnabled())},_logSetOptionsEvent:function(Z){var be={logs:Z,logAction:"setOptions",logType:"pluginMethod"};this._sendPluginLogs(be,this.isMethodPostEnabled())},_logReceiveDataEvent:function(Z){var be="";Z.data&&Z.data.target&&Z.data.target.response&&Z.data.target.response.msg&&(be=JSON.parse(Z.data.target.response.msg));var ve={logs:be,logAction:"receiveData",logType:"internalMethod"};this._sendPluginLogs(ve,this.isMethodPostEnabled())},_sendPluginLogs:function(Z,be){if(be=be||!1,this.isPluginLogsEnabled()&&(Z&&Z.logType&&Z.logAction&&_.notice($,"PluginLog "+Z.logType+": Action "+Z.logAction),this.analyticsRequestHandler&&(Z=this.requestBuilder.buildParams(Z,v.Service.VIDEO_PLUGIN_LOGS,this))!==null)){var ve=be?V.POST:V.GET;let Ie=new R(v.Service.VIDEO_PLUGIN_LOGS,Z,"",ve);this.analyticsRequestHandler.sendRequest(Ie)}},onOptionsChanged:function(Z,be,ve){Z==="background.enabled"&&(be?this.backgroundDetector.startDetection():this.backgroundDetector.stopDetection()),d.getInstance().registerCommonVariable(g.Products.DEVICE_ANALYTICS,g.DeviceVariables.APP_ANALYTICS_DEVICE_STRING,this.getDeviceInfoString())},getDeviceInfoString:function(){if(this.options&&this.commonGetters){let Z=this.commonGetters.getDeviceInfo();if(Z)return JSON.stringify(Object.keys(Z).reduce((be,ve)=>(be[ve.replace(/([A-Z])/g,"_$1").toLowerCase()]=Z[ve],be),{}))}return JSON.stringify("{}")}},{Event:v.WillSendEvent});A.assign(se.prototype,c(9516)),A.assign(se.prototype,c(5901)),A.assign(se.prototype,c(1705)),A.assign(se.prototype,c(6083)),A.assign(se.prototype,c(6874)),se.instance=null,n.exports=se},1577:(n,o,c)=>{"use strict";c.r(o),c.d(o,{default:()=>A});var p=c(7276),v=c(2784);class A{static toQueryString(m){return"?"+Object.keys(m).map(y=>{if(m[y]!==null&&typeof m[y]=="object"){let C=JSON.stringify(m[y]);if(C!=="{}")return encodeURIComponent(y)+"="+encodeURIComponent(C)}else if(m[y]!==null&&m[y]!==void 0&&m[y]!=="")return encodeURIComponent(y)+"="+encodeURIComponent(m[y]);return""}).filter(y=>y!="").join("&")}static addProtocol(m,y){let C="http://localhost/";try{C="http://"+m,y||typeof window<"u"&&window.location.protocol.indexOf("https")===0?C="https://"+m:typeof window<"u"&&window.location.protocol.indexOf("http")===0&&(C="//"+m)}catch(T){p.default.warn(v.CoreTag,T)}return C}static parseBoolean(m){return typeof m=="string"?m.toLowerCase()==="true":!!m}static methodFromString(m){var y;let C=(y=m?.toUpperCase())!==null&&y!==void 0?y:"";return C in v.Method?v.Method[C]:v.Method.GET}static generateRandomString(m){let y="";for(let C=0;C{var p=c(3948),v=c(2467),A=p.extend({on:function(_,m){if(this._listeners=this._listeners||{},typeof m=="function")return this._listeners[_]=this._listeners[_]||[],this._listeners[_].push(m),this},off:function(_,m){if(this._listeners=this._listeners||{},this._listeners[_]){var y=this._listeners[_].indexOf(m);y!==-1&&this._listeners[_].splice(y,1)}return this},emit:function(_,m){return this._listeners=this._listeners||{},m=m||{},v(this._listeners[_])&&this._listeners[_].forEach(this._eachCallback.bind(this,_,m)),v(this._listeners["*"])&&this._listeners["*"].forEach(this._eachCallback.bind(this,_,m)),this},_eachCallback:function(_,m,y){typeof y=="function"&&y({type:_,data:m,target:this})}});n.exports=A},1657:(n,o,c)=>{var p=c(3821),v=c(4387).extend({parse:function(A,_){if(_)this._parseWithManifest(_);else{this._realResource=A;var m=new p(A,null,null,{cache:!0,requestHeaders:this._headers});m.on(p.Event.SUCCESS,(function(y){this._parseWithManifest(y)}).bind(this)),m.on(p.Event.ERROR,(function(y){this.done()}).bind(this)),m.send()}},_parseWithManifest:function(A){this._lastManifest=A;var _=A.getResponseHeaders(),m=!1;A&&A.xhr&&A.xhr.responseURL&&A.xhr.responseURL!==this._realResource?(this._realResource=A.xhr.responseURL,this.parse(this._realResource),m=!0):_.split(` `).forEach((function(y){y.startsWith("Location:")&&(this._realResource=y.slice(10),this.parse(this._realResource),m=!0)}).bind(this)),m||this.done()}});n.exports=v},1705:(n,o,c)=>{var p=c(2507),v=c(9637);let{default:A}=c(9065),{default:_}=c(61);var m={getAccountCode:function(){return A.getInstance().getFastDataService().getAccountCode()},getUsername:function(y){return this._getGenericOptionsValue("userId",y)?this._getGenericOptionsValue("userId",y):this._getGenericOptionsValue("user.name",y)},getProfileId:function(y){return this._getGenericOptionsValue("profileId",y)},getPluginVersion:function(){return A.getPluginVersion()},getRequestNumber:function(){return Math.random()},getUserType:function(y){return this._getGenericOptionsValue("user.type",y)},getAnonymousUser:function(y){return this._getGenericOptionsValue("user.anonymousId",y)},getReferer:function(){let y=this.options.referer||"";return!y&&typeof window<"u"&&window.location&&(y=window.location.href),y},getReferral:function(){let y=this.options.referral||"";return y||typeof document>"u"||(y=document.referrer),y},getLanguage:function(){let y;return typeof navigator<"u"&&(y=navigator.language),y},getScreenResolution:function(){let y;try{if(window&&window.screen){let C=window.devicePixelRatio||1;y=window.screen.width*C+"x"+window.screen.height*C}}catch{}return y},getDeviceInfo:function(y){let C={};return this.getDeviceCode(y)&&(C.deviceCode=this.getDeviceCode(y)),this.getModel(y)&&(C.model=this.getModel(y)),this.getBrand(y)&&(C.brand=this.getBrand(y)),this.getDeviceType(y)&&(C.deviceType=this.getDeviceType(y)),this.getDeviceName(y)&&(C.deviceName=this.getDeviceName(y)),this.getOsName(y)&&(C.osName=this.getOsName(y)),this.getOsVersion(y)&&(C.osVersion=this.getOsVersion(y)),this.getBrowserName(y)&&(C.browserName=this.getBrowserName(y)),this.getBrowserVersion(y)&&(C.browserVersion=this.getBrowserVersion(y)),this.getBrowserType(y)&&(C.browserType=this.getBrowserType(y)),this.getBrowserEngine(y)&&(C.browserEngine=this.getBrowserEngine(y)),C!=={}?C:void 0},getDeviceCode:function(y){return this._getGenericOptionsValue("device.code",y)},getModel:function(y){return this._getGenericOptionsValue("device.model",y)?this._getGenericOptionsValue("device.model",y):this.lgDeviceModel?this.lgDeviceModel:this.samsungDeviceModel?this.samsungDeviceModel:void 0},getBrand:function(y){return this._getGenericOptionsValue("device.brand",y)},getDeviceType:function(y){return this._getGenericOptionsValue("device.type",y)},getDeviceName:function(y){return this._getGenericOptionsValue("device.name",y)},getOsName:function(y){return this._getGenericOptionsValue("device.osName",y)},getOsVersion:function(y){let C=this._getGenericOptionsValue("device.osVersion",y);return C===void 0&&navigator&&navigator.userAgentData&&this.majorPlatformVersion&&navigator.userAgentData.platform==="Windows"&&this.majorPlatformVersion>=13&&(C="11"),C},getBrowserName:function(y){return this._getGenericOptionsValue("device.browserName",y)},getBrowserVersion:function(y){return this._getGenericOptionsValue("device.browserVersion",y)},getBrowserType:function(y){return this._getGenericOptionsValue("device.browserType",y)},getBrowserEngine:function(y){return this._getGenericOptionsValue("device.browserEngine",y)},getIsBlocked:function(y){return this._getGenericOptionsValue("ad.blockerDetected",y)},isMethodPostEnabled:function(){return this.options.method&&this.options.method.toUpperCase()===v.POST},getDeviceUUID:function(y){let C;return!y["device.isAnonymous"]&&y["device.id"]?y["device.id"]:(this.options["device.isAnonymous"]||(C=this.options["device.id"]||this.uuidGenerator.getKey()),C)},getLibVersion:function(){return A.getPluginVersion()},getAppName:function(y){return this._getGenericOptionsValue("app.name",y)},getAppReleaseVersion:function(y){return this._getGenericOptionsValue("app.releaseVersion",y)},getIp:function(y){return this._getGenericOptionsValue("network.ip",y)},getIsp:function(y){return this._getGenericOptionsValue("network.isp",y)},getConnectionType:function(y){return this._getGenericOptionsValue("network.connectionType",y)},getEDID:function(y){let C=this._getGenericOptionsValue("device.EDID",y);return C?C.toString():void 0},getObfuscateIp:function(y){return this._getGenericOptionsValue("user.obfuscateIp",y)},getPrivacyProtocol:function(y){let C=this._getGenericOptionsValue("user.privacyProtocol",y);return typeof C=="string"&&(C=C.toLowerCase()),C==="optin"||C==="optout"?C:void 0},getCustomDimensions:function(y){let C=this._getGenericOptionsValue("content.customDimensions",y);return typeof C=="object"?C:void 0},getExtraparam1:function(y){return this._getGenericOptionsValue("content.customDimension.1",y)},getExtraparam2:function(y){return this._getGenericOptionsValue("content.customDimension.2",y)},getExtraparam3:function(y){return this._getGenericOptionsValue("content.customDimension.3",y)},getExtraparam4:function(y){return this._getGenericOptionsValue("content.customDimension.4",y)},getExtraparam5:function(y){return this._getGenericOptionsValue("content.customDimension.5",y)},getExtraparam6:function(y){return this._getGenericOptionsValue("content.customDimension.6",y)},getExtraparam7:function(y){return this._getGenericOptionsValue("content.customDimension.7",y)},getExtraparam8:function(y){return this._getGenericOptionsValue("content.customDimension.8",y)},getExtraparam9:function(y){return this._getGenericOptionsValue("content.customDimension.9",y)},getExtraparam10:function(y){return this._getGenericOptionsValue("content.customDimension.10",y)},getExtraparam11:function(y){return this._getGenericOptionsValue("content.customDimension.11",y)},getExtraparam12:function(y){return this._getGenericOptionsValue("content.customDimension.12",y)},getExtraparam13:function(y){return this._getGenericOptionsValue("content.customDimension.13",y)},getExtraparam14:function(y){return this._getGenericOptionsValue("content.customDimension.14",y)},getExtraparam15:function(y){return this._getGenericOptionsValue("content.customDimension.15",y)},getExtraparam16:function(y){return this._getGenericOptionsValue("content.customDimension.16",y)},getExtraparam17:function(y){return this._getGenericOptionsValue("content.customDimension.17",y)},getExtraparam18:function(y){return this._getGenericOptionsValue("content.customDimension.18",y)},getExtraparam19:function(y){return this._getGenericOptionsValue("content.customDimension.19",y)},getExtraparam20:function(y){return this._getGenericOptionsValue("content.customDimension.20",y)},isParseManifest:function(y){return this._getGenericOptionsValue("parse.manifest",y)},isParseCdnNode:function(y){return this._getGenericOptionsValue("parse.cdnNode",y)},isCdnSwitch:function(y){return this._getGenericOptionsValue("parse.cdnSwitchHeader",y)},getParseCdnNodeList:function(y){return this._getGenericOptionsValue("parse.cdnNode.list",y)},getParseCdnNodeNameHeader:function(y){return this._getGenericOptionsValue("parse.cdnNameHeader",y)},getParseNodeHeader:function(y){return this._getGenericOptionsValue("parse.cdnNodeHeader",y)},canOverwriteAdapters:function(y){return p.parseBoolean(this._getGenericOptionsValue("adapters.overwrite",y))},getAdaptersProperties:function(y){return this._getGenericOptionsValue("adapters.properties",y)},getNetworkConnectionType:function(){if(!this.options.enableExtraMetricCollection||!navigator||!navigator.connection)return;let y=navigator.connection.type;return["wimax"].includes(y)?void 0:y},getNetworkCellType:function(){if(this.options.enableExtraMetricCollection&&navigator&&navigator.connection)return this.getNetworkConnectionType()&&this.getNetworkConnectionType()!=="wifi"?navigator.connection.effectiveType:"none"},getNetworkSignalStrength:function(){},getCpuUsed:function(){},getMemoryUsed:function(){if(this.options.enableExtraMetricCollection&&performance&&performance.memory)return performance.memory.usedJSHeapSize/1024/1024},getCacheStorageUsed:function(){if(!this.options.enableExtraMetricCollection)return;let y=0;if(typeof localStorage<"u"&&localStorage)for(let C in localStorage)localStorage.hasOwnProperty(C)&&(y+=2*(localStorage[C].length+C.length));if(typeof sessionStorage<"u"&&sessionStorage)for(let C in sessionStorage)sessionStorage.hasOwnProperty(C)&&(y+=2*(sessionStorage[C].length+C.length));return y!=0?y:void 0},getTransferredTraffic:function(){if(this.options.enableExtraMetricCollection)return A.getInstance().getCommonVariable(_.Products.BALANCER,_.BalancerVariables.BALANCER_TRAFFIC)},getImprovedBandwidth:function(){if(this.options.enableExtraMetricCollection)return A.getInstance().getCommonVariable(_.Products.BALANCER,_.BalancerVariables.BALANCER_BITRATE)},isAppAnalyticsAutoBegin:function(y){return p.parseBoolean(this._getGenericOptionsValue("check.appAnalytics.autoBegin",y))},isAppAnalyticsEnabled:function(y){return p.parseBoolean(this._getGenericOptionsValue("check.appAnalytics.enabled",y))},isVideoAnalyticsEnabled:function(y){return p.parseBoolean(this._getGenericOptionsValue("check.videoAnalytics.enabled",y))},isRefreshLMAConfigurationEnabled:function(y){return p.parseBoolean(this._getGenericOptionsValue("lma.refresh.configuration.enabled",y))},isPluginLogsEnabled:function(y){return p.parseBoolean(this._getGenericOptionsValue("debug.pluginLogs.enabled",y))},isPlayerLogsEnabled:function(y){return p.parseBoolean(this._getGenericOptionsValue("debug.playerLogs.enabled",y))},refreshLMAConfigurationSeconds:function(y){return this._getGenericOptionsValue("lma.refresh.configuration.seconds",y)},getPlayheadMonitorEnabled:function(y){return this._getGenericOptionsValue("playhead.monitor",y)},getReadyStateMonitorEnabled:function(y){return this._getGenericOptionsValue("readyState.monitor",y)},getPageName:function(){return this.options["content.title"]},_getGenericOptionsValue:function(y,C){return C&&C[y]?C[y]:this.options[y]}};n.exports=m},2047:n=>{n.exports={cdnName:"HIGHNEGR",parsers:[{element:"host+type",headerName:"X-HW",regex:/.+,[0-9]+\.(.+)\.(.+)/}],parseType:function(o){switch(o){case"c":case"x":return 1;default:return 2}}}},2071:(n,o,c)=>{var p=c(3948);let{default:v}=c(7276),{AnalyticsTag:A}=c(2784);var _=["accountCode","username","profileId","anonymousUser","rendition","deviceInfo","player","title","title2","live","segmentDuration","mediaDuration","mediaResource","parsedResource","transactionCode","properties","cdn","profile","bucket","playerVersion","param1","param2","param3","param4","param5","param6","param7","param8","param9","param10","param11","param12","param13","param14","param15","param16","param17","param18","param19","param20","dimensions","playerStartupTime","obfuscateIp","privacyProtocol","p2pEnabled","pluginVersion","pluginInfo","isp","connectionType","ip","referer","userType","streamingProtocol","transportFormat","householdId","adsBlocked","adsExpected","deviceUUID","smartswitchConfigCode","smartswitchGroupCode","smartswitchContractCode","libVersion","nodeHost","nodeType","appName","appReleaseVersion","package","saga","tvshow","season","titleEpisode","channel","imdbID","gracenoteID","contentType","genre","contentLanguage","subtitles","cost","price","playbackType","email","drm","videoCodec","audioCodec","codecSettings","codecProfile","containerFormat","contentId","contractedResolution","linkedViewId","edid","cdnBalancerResponseUUID","accur_geo_location","network_type","network_cell_type","network_signal_strengh","cpu_used","mem_used","cache_used"],m=["player","playhead","adTitle","position","adDuration","adCampaign","adCreativeId","adProvider","adResource","adPlayerVersion","adProperties","adAdapterVersion","adInsertionType","extraparam1","extraparam2","extraparam3","extraparam4","extraparam5","extraparam6","extraparam7","extraparam8","extraparam9","extraparam10","fullscreen","audio","skippable","adNumber","adNumberInBreak","breakNumber"],y=p.extend({constructor:function(){this.lastSent={}},fetchParams:function(C,T,U,G,M){C=C||{},T=T||[];for(let S=0;S{var p=c(3948),v=c(9474),A=p.extend({constructor:function(_){if(this.appAnalytics=_,this.timeObject=void 0,this.playerSetup=void 0,this.myTimesObject={},this.perfObject=void 0,typeof window<"u"&&typeof window.addEventListener=="function"&&(window.addEventListener("load",this._windowLoaded.bind(this)),window.performance&&window.performance.timing)){try{typeof window.performance.getEntriesByType=="function"&&(this.perfObject=window.performance)}catch{}this.timeObject=window.performance.timing}try{if(typeof PerformanceObserver=="function"){let m=new PerformanceObserver((y,C)=>{let T=y.getEntries();this.myTimesObject.largestContentfulPaint=T[T.length-1].renderTime});PerformanceObserver.supportedEntryTypes.indexOf("largest-contentful-paint")>-1&&m.observe({entryTypes:["largest-contentful-paint"]})}}catch{}},_windowLoaded:function(){this.myTimesObject.onLoad=new Date().getTime(),this._getEnoughFPS(),setTimeout(this._fireLoadTimesEvent.bind(this),1e3)},_fireLoadTimesEvent:function(){this._getLastMetrics(),this.appAnalytics&&this.appAnalytics.isActive()&&this.appAnalytics.fireEvent("loadTimes",{},this._getAllValues())},_getAllValues:function(){let _={PageLoadTime:this.getPageLoadTime(),DNSTime:this.getDnsTime(),TCPTime:this.getTcpTime(),HandshakeTime:this.getHandshakeTime(),DomReadyTime:this.getDomReadyTime(),BackendTime:this.getBackendTime(),FrontendTime:this.getFrontendTime(),VisualReady:this.getTimeToVisuallyReady(),TimeToInteractive:this.getTimeToInteractive(),JsTime:this.getJSTime(),CssTime:this.getCSSTime(),ImageTime:this.getImageTime(),FontTime:this.getFontTime(),AvgReqLatency:this.getAvgReqLatency(),MaxReqLatency:this.getMaxReqLatency(),FirstPaint:this.getFirstPaint(),FirstContentfulPaint:this.getFirstContentfulPaint(),LargestContentfulPaint:this.getLargestContentfulPaint(),SpeedIndex:this.getSpeedIndex()};for(let m in _)_[m]===null||_[m]===void 0||_[m]<0?delete _[m]:_[m]=Math.round(_[m]);return _},getPageLoadTime:function(){let _;return this.timeObject&&(_=this.timeObject.loadEventEnd-this.timeObject.navigationStart),_},getPlayerStartupTime:function(){let _;return this.timeObject&&this.playerSetup&&(_=this.playerSetup-this.timeObject.navigationStart),_},getDnsTime:function(){let _;return this.timeObject&&(_=this.timeObject.domainLookupEnd-this.timeObject.domainLookupStart),_},getTcpTime:function(){let _;return this.timeObject&&(_=this.timeObject.connectEnd-this.timeObject.connectStart),_},getHandshakeTime:function(){let _;return this.timeObject&&this.timeObject.secureConnectionStart&&(_=this.timeObject.connectEnd-this.timeObject.secureConnectionStart),_},getDomReadyTime:function(){let _;return this.timeObject&&(_=this.timeObject.domComplete-this.timeObject.navigationStart),_},getBackendTime:function(){let _;return this.timeObject&&(_=this.timeObject.responseStart-this.timeObject.navigationStart),_},getFrontendTime:function(){let _;return this.timeObject&&(_=this.myTimesObject.onLoad-this.timeObject.responseStart),_},getTimeToVisuallyReady:function(){let _=this.myTimesObject.firstPaint||0;return this.timeObject?Math.max(_,this.timeObject.domContentLoadedEventEnd-this.timeObject.navigationStart||0):_||void 0},getTimeToInteractive:function(){if(this.myTimesObject.fps&&this.getTimeToVisuallyReady())return Math.max(this.myTimesObject.fps,this.getTimeToVisuallyReady());setTimeout(()=>{this.getTimeToInteractive()},500)},getJSTime:function(){return this._getXTime("script")},getCSSTime:function(){return this._getXTime("css")},getImageTime:function(){return this._getXTime("img")},getFontTime:function(){return this._getXTime("css",[".woff",".otf",".ttf"])},getAvgReqLatency:function(){try{if(this.perfObject&&typeof this.perfObject.getEntriesByType=="function"){let m=0,y=0,C=this.perfObject.getEntriesByType("resource");for(var _ in C)C[_].requestStart&&C[_].responseStart&&(y+=C[_].responseStart-C[_].requestStart),m++;return y/m}}catch{}},getFirstPaint:function(){return this.myTimesObject?this.myTimesObject.firstPaint:void 0},getFirstContentfulPaint:function(){return this.myTimesObject?this.myTimesObject.firstContentfulPaint:void 0},getLargestContentfulPaint:function(){return this.myTimesObject?this.myTimesObject.largestContentfulPaint:void 0},getMaxReqLatency:function(){try{if(this.perfObject&&typeof this.perfObject.getEntriesByType=="function"){let _=this.perfObject.getEntriesByType("resource"),m=0;for(let y in _)_[y].requestStart&&_[y].responseStart&&(m=Math.max(m,_[y].responseStart-_[y].requestStart));return m}}catch{}},getSpeedIndex:function(){let _;if(typeof window<"u"&&window.performance&&typeof window.performance.getEntriesByType=="function")try{_=v()}catch{}return _},_getXTime:function(_,m){let y=0;try{if(this.perfObject&&typeof this.perfObject.getEntriesByType=="function"){let T=this.perfObject.getEntriesByType("resource");for(let U in T)if(T[U].initiatorType===_)if(m){let G=!1;for(var C in m)T[U].name.indexOf(m[C]>0)&&(G=!0);G&&(y+=T[U].duration)}else y+=T[U].duration}}catch{}return Math.round(y)||void 0},_getLastMetrics:function(){let _,m;try{if(this.perfObject&&typeof this.perfObject.getEntriesByType=="function"){let y=this.perfObject.getEntriesByType("paint");for(let C in y)y[C].name==="first-paint"?_=y[C].startTime:y[C].name==="first-contentful-paint"&&(m=y[C].startTime)}}catch{}!_&&this.timeObject&&(_=this.timeObject.msFirstPaint-this.timeObject.navigationStart),this.myTimesObject.firstPaint=_,this.myTimesObject.firstContentfulPaint=m,this.getTimeToInteractive()},_getEnoughFPS:function(){if(!this.timeObject||typeof window>"u")return!0;{let _=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(){};this.preFPS=new Date().getTime(),_(()=>{let m=new Date().getTime();mthis._getEnoughFPS(),50)})}},setPlayerSetupTime:function(){this.playerSetup=this.playerSetup||new Date().getTime()}});n.exports=A},2133:(n,o,c)=>{var p=c(525).NAMESPACE,v=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,A=new RegExp("[\\-\\.0-9"+v.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),_=new RegExp("^"+v.source+A.source+"*(?::"+v.source+A.source+"*)?$");function m(V,$){this.message=V,this.locator=$,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function y(){}function C(V,$){return $.lineNumber=V.lineNumber,$.columnNumber=V.columnNumber,$}function T(V,$,l,d,g,w){function j(Ie,Xe,it){l.attributeNames.hasOwnProperty(Ie)&&w.fatalError("Attribute "+Ie+" redefined"),l.addValue(Ie,Xe,it)}for(var H,se=++$,Z=0;;){var be=V.charAt(se);switch(be){case"=":if(Z===1)H=V.slice($,se),Z=3;else{if(Z!==2)throw new Error("attribute equal must after attrName");Z=3}break;case"'":case'"':if(Z===3||Z===1){if(Z===1&&(w.warning('attribute value must after "="'),H=V.slice($,se)),$=se+1,!((se=V.indexOf(be,$))>0))throw new Error("attribute value no end '"+be+"' match");j(H,ve=V.slice($,se).replace(/&#?\w+;/g,g),$-1),Z=5}else{if(Z!=4)throw new Error('attribute value must after "="');j(H,ve=V.slice($,se).replace(/&#?\w+;/g,g),$),w.warning('attribute "'+H+'" missed start quot('+be+")!!"),$=se+1,Z=5}break;case"/":switch(Z){case 0:l.setTagName(V.slice($,se));case 5:case 6:case 7:Z=7,l.closed=!0;case 4:case 1:break;case 2:l.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return w.error("unexpected end of input"),Z==0&&l.setTagName(V.slice($,se)),se;case">":switch(Z){case 0:l.setTagName(V.slice($,se));case 5:case 6:case 7:break;case 4:case 1:(ve=V.slice($,se)).slice(-1)==="/"&&(l.closed=!0,ve=ve.slice(0,-1));case 2:Z===2&&(ve=H),Z==4?(w.warning('attribute "'+ve+'" missed quot(")!'),j(H,ve.replace(/&#?\w+;/g,g),$)):(p.isHTML(d[""])&&ve.match(/^(?:disabled|checked|selected)$/i)||w.warning('attribute "'+ve+'" missed value!! "'+ve+'" instead!!'),j(ve,ve,$));break;case 3:throw new Error("attribute value missed!!")}return se;case"\x80":be=" ";default:if(be<=" ")switch(Z){case 0:l.setTagName(V.slice($,se)),Z=6;break;case 1:H=V.slice($,se),Z=2;break;case 4:var ve=V.slice($,se).replace(/&#?\w+;/g,g);w.warning('attribute "'+ve+'" missed quot(")!!'),j(H,ve,$);case 5:Z=6}else switch(Z){case 2:l.tagName,p.isHTML(d[""])&&H.match(/^(?:disabled|checked|selected)$/i)||w.warning('attribute "'+H+'" missed value!! "'+H+'" instead2!!'),j(H,H,$),$=se,Z=1;break;case 5:w.warning('attribute space is required"'+H+'"!!');case 6:Z=1,$=se;break;case 3:Z=4,$=se;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}se++}}function U(V,$,l){for(var d=V.tagName,g=null,w=V.length;w--;){var j=V[w],H=j.qName,se=j.value;if((Ie=H.indexOf(":"))>0)var Z=j.prefix=H.slice(0,Ie),be=H.slice(Ie+1),ve=Z==="xmlns"&&be;else be=H,Z=null,ve=H==="xmlns"&&"";j.localName=be,ve!==!1&&(g==null&&(g={},S(l,l={})),l[ve]=g[ve]=se,j.uri=p.XMLNS,$.startPrefixMapping(ve,se))}for(w=V.length;w--;)(Z=(j=V[w]).prefix)&&(Z==="xml"&&(j.uri=p.XML),Z!=="xmlns"&&(j.uri=l[Z||""]));var Ie;(Ie=d.indexOf(":"))>0?(Z=V.prefix=d.slice(0,Ie),be=V.localName=d.slice(Ie+1)):(Z=null,be=V.localName=d);var Xe=V.uri=l[Z||""];if($.startElement(Xe,be,d,V),!V.closed)return V.currentNSMap=l,V.localNSMap=g,!0;if($.endElement(Xe,be,d),g)for(Z in g)Object.prototype.hasOwnProperty.call(g,Z)&&$.endPrefixMapping(Z)}function G(V,$,l,d,g){if(/^(?:script|textarea)$/i.test(l)){var w=V.indexOf("",$),j=V.substring($+1,w);if(/[&<]/.test(j))return/^script$/i.test(l)?(g.characters(j,0,j.length),w):(j=j.replace(/&#?\w+;/g,d),g.characters(j,0,j.length),w)}return $+1}function M(V,$,l,d){var g=d[l];return g==null&&((g=V.lastIndexOf(""))<$&&(g=V.lastIndexOf("",$+4))>$?(l.comment(V,$+4,g-$-4),g+3):(d.error("Unclosed comment"),-1):-1;if(V.substr($+3,6)=="CDATA["){var g=V.indexOf("]]>",$+9);return l.startCDATA(),l.characters(V,$+9,g-$-9),l.endCDATA(),g+3}var w=function(ve,Ie){var Xe,it=[],qe=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(qe.lastIndex=Ie,qe.exec(ve);Xe=qe.exec(ve);)if(it.push(Xe),Xe[1])return it}(V,$),j=w.length;if(j>1&&/!doctype/i.test(w[0][0])){var H=w[1][0],se=!1,Z=!1;j>3&&(/^public$/i.test(w[2][0])?(se=w[3][0],Z=j>4&&w[4][0]):/^system$/i.test(w[2][0])&&(Z=w[3][0]));var be=w[j-1];return l.startDTD(H,se,Z),l.endDTD(),be.index+be[0].length}return-1}function B(V,$,l){var d=V.indexOf("?>",$);if(d){var g=V.substring($,d).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return g?(g[0].length,l.processingInstruction(g[1],g[2]),d+2):-1}return-1}function R(){this.attributeNames={}}m.prototype=new Error,m.prototype.name=m.name,y.prototype={parse:function(V,$,l){var d=this.domBuilder;d.startDocument(),S($,$={}),function(g,w,j,H,se){function Z(Se){var Me=Se.slice(1,-1);return Me in j?j[Me]:Me.charAt(0)==="#"?function(b){if(b>65535){var F=55296+((b-=65536)>>10),k=56320+(1023&b);return String.fromCharCode(F,k)}return String.fromCharCode(b)}(parseInt(Me.substr(1).replace("x","0x"))):(se.error("entity not found:"+Se),Se)}function be(Se){if(Se>J){var Me=g.substring(J,Se).replace(/&#?\w+;/g,Z);qe&&ve(J),H.characters(Me,0,Se-J),J=Se}}function ve(Se,Me){for(;Se>=Xe&&(Me=it.exec(g));)Ie=Me.index,Xe=Ie+Me[0].length,qe.lineNumber++;qe.columnNumber=Se-Ie+1}for(var Ie=0,Xe=0,it=/.*(?:\r\n?|\n)|.*$/g,qe=H.locator,Be=[{currentNSMap:w}],Qe={},J=0;;){try{var ee=g.indexOf("<",J);if(ee<0){if(!g.substr(J).match(/^\s*$/)){var ae=H.doc,de=ae.createTextNode(g.substr(J));ae.appendChild(de),H.currentElement=de}return}switch(ee>J&&be(ee),g.charAt(ee+1)){case"/":var Te=g.indexOf(">",ee+3),Re=g.substring(ee+2,Te).replace(/[ \t\n\r]+$/g,""),Ve=Be.pop();Te<0?(Re=g.substring(ee+2).replace(/[\s<].*/,""),se.error("end tag name: "+Re+" is not complete:"+Ve.tagName),Te=ee+1+Re.length):Re.match(/\sJ?J=Te:be(Math.max(ee,J)+1)}}(V,$,l,d,this.errorHandler),d.endDocument()}},R.prototype={setTagName:function(V){if(!_.test(V))throw new Error("invalid tagName:"+V);this.tagName=V},addValue:function(V,$,l){if(!_.test(V))throw new Error("invalid attribute:"+V);this.attributeNames[V]=this.length,this[this.length++]={qName:V,value:$,offset:l}},length:0,getLocalName:function(V){return this[V].localName},getLocator:function(V){return this[V].locator},getQName:function(V){return this[V].qName},getURI:function(V){return this[V].uri},getValue:function(V){return this[V].value}},o.XMLReader=y,o.ParseError=m},2370:n=>{n.exports={cdnName:"AMAZON",parsers:[{element:"host",headerName:"x-amz-cf-pop",regex:/(.+)/},{element:"type",headerName:"x-cache",regex:/(.+)\sfrom.+/}],parseType:function(o){return o.toLowerCase().indexOf("hit")!==-1?1:o.toLowerCase().indexOf("miss")!==-1?2:0}}},2467:n=>{n.exports=function(o){return Object.prototype.toString.call(o)==="[object Array]"}},2477:n=>{n.exports={INIT:"init",START:"start",JOIN:"join",JOIN_TIME:"joinTime",DATA_OBJECT:"data",PAUSE:"pause",RESUME:"resume",SEEK_BEGIN:"seek-begin",SEEK_END:"seek-end",BUFFER_BEGIN:"buffer-begin",BUFFER_END:"buffer-end",ERROR:"error",STOP:"stop",CLICK:"click",MANIFEST:"manifest",PODSTART:"break-start",PODSTOP:"break-stop",QUARTILE:"quartile",VIDEO_EVENT:"video-event"}},2503:(n,o,c)=>{var p=c(1593).extend({constructor:function(){this._isBusy=!0,this._sendRequest=!0,this.transformName="Transform"},parse:function(v){},isBlocking:function(v){return this._isBusy},done:function(){this._isBusy=!1,this.emit(p.Event.DONE)},hasToSend:function(v){return this._sendRequest},getState:function(){return this._sendRequest?this._isBusy?this.STATE_BLOCKED:this.STATE_NO_BLOCKED:this.STATE_OFFLINE}},{STATE_OFFLINE:2,STATE_BLOCKED:1,STATE_NO_BLOCKED:0,Event:{DONE:"done"}});n.exports=p},2507:(n,o,c)=>{let{default:p,LogLevel:v}=c(7276),{AnalyticsTag:A}=c(2784);var _={stripProtocol:function(m){var y=m;try{y=m.replace(/^(.*?:\/\/|\/\/)/i,"")}catch(C){p.warn(A,C)}return y},parseBoolean:function(m){return typeof m=="string"||m instanceof String?m.toLowerCase()==="true":!!m},elementIsInPage:function(m){try{return m!==document.body&&document.body.contains(m)}catch(y){p.warn(A,y)}return!0},addProtocol:function(m,y){var C="http://localhost/";try{C="http://"+m,y||typeof window<"u"&&window.location.protocol.indexOf("https")===0?C="https://"+m:typeof window<"u"&&window.location.protocol.indexOf("http")===0&&(C="//"+m)}catch(T){p.warn(A,T)}return C},parseNumber:function(m,y){return!isNaN(m)&&m>=0&&m!==1/0&&m!==-1/0&&m!=null?m:y},logAllEvents:function(m,y,C){try{if(p.logLevel<=v.DEBUG){C=C||function(G){p.debug(A,"Event: "+G.type)};var T=["canplay","buffering","waiting","ended","play","playing","pause","resume","error","abort","seek","seeking","seeked","stalled","dispose","loadeddata","loadstart"];y&&(y[0]===null?(y.shift(),T=y):T=T.concat(y));for(var U=0;U=1&&(T?T+="@":T="",T+=C<1e3?Math.round(C)+"bps":C<1e6?(C=Math.round(C/1e3))+"Kbps":(C=Math.round(C/1e4)/100)+"Mbps"),T},buildErrorParams:function(m,y,C){var T={};return typeof m=="object"&&m!==null?T=m:(T.errorCode=m||"FAILURE",T.msg=y||T.errorCode,T.errorMetadata=C),T},calculateAdViewability:function(m,y){var C=!0;if(typeof window<"u"&&m&&typeof m.getBoundingClientRect=="function"){var T=m.getBoundingClientRect();if(T.top>=window.innerHeight||T.bottom<=0||T.right<=0||T.left>=window.innerWidth)C=!1;else{var U=Math.trunc(T.height*T.width),G=T.top>0?T.top:0,M=T.bottom>window.innerHeight?window.innerHeight:T.bottom,S=T.left>0?T.left:0;C=((T.right>window.innerWidth?window.innerWidth:T.right)-S)*(M-G)*100>U*(y||50)}}return C},getMetricsFrom:function(m,y){var C=m||y;for(var T in C)if(typeof C[T]!="object"||!C[T].value){var U={};U.value=C[T],C[T]=U}return C},assign:c(4173),isArray:c(2467)};n.exports=_},2553:(n,o,c)=>{var p;p=typeof window<"u"?window:c.g!==void 0?c.g:typeof self<"u"?self:{},n.exports=p},2580:n=>{n.exports={parsers:[{element:"name",headerName:null,regex:/(.+)/},{element:"host",headerName:null,regex:/(.+)/}]}},2602:(n,o,c)=>{"use strict";c.d(o,{A:()=>p});class p{constructor(){this.host="lma.npaw.com",this.components={},this.host="lma.npaw.com",this.components={}}}},2635:(n,o,c)=>{var p=c(3948).extend({constructor:function(){typeof navigator<"u"&&navigator.userAgent&&(this._isSmartTVDevice=navigator.userAgent.toLowerCase().match(/smarttv/)||navigator.userAgent.toLowerCase().match(/smart-tv/)||navigator.userAgent.toLowerCase().match(/appletv/)||navigator.userAgent.toLowerCase().match(/apple tv/),this._isPlaystationDevice=navigator.userAgent.match(/PlayStation/)!==null,this._isIphoneDevice=navigator.userAgent.match(/iPhone|iPad|iPod/i)!==null,this._isAndroidDevice=navigator.userAgent.match(/Android/)!==null,this._isSmartphoneDevice=!this._isSmartTVDevice&&!this._isPlaystationDevice&&(this._isIphoneDevice||this._isAndroidDevice),this._isDesktopDevice=!this._isSmartphoneDevice&&!this._isSmartTVDevice&&!this._isPlaystationDevice)},isIphone:function(){return this._isIphoneDevice},isAndroid:function(){return this._isAndroidDevice},isSmartphone:function(){return this._isSmartphoneDevice},isDesktop:function(){return this._isDesktopDevice},isSmartTV:function(){return this._isSmartTVDevice},isPlayStation:function(){return this._isPlaystationDevice}});n.exports=p},2784:(n,o,c)=>{"use strict";var p;c.r(o),c.d(o,{AnalyticsTag:()=>A,AppAnalyticsTag:()=>_,BalancerTag:()=>y,CoreTag:()=>C,Method:()=>p,ProductAnalyticsTag:()=>m,SessionListeners:()=>T,SessionsTag:()=>v}),function(U){U.GET="GET",U.POST="POST"}(p||(p={}));let v="Sessions",A="Analytics",_="AppAnalytics",m="ProductAnalytics",y="Balancer",C="Core";var T;(function(U){U.START_BEFORE="beforeSessionStart",U.START_AFTER="afterSessionStart",U.STOP_BEFORE="beforeSessionStop",U.STOP_AFTER="afterSessionStop",U.EVENT_BEFORE="beforeSessionEvent",U.EVENT_AFTER="afterSessionEvent"})(T||(T={}))},2995:(n,o,c)=>{var p=c(3948).extend({getCdnTraffic:function(){let v;if(typeof CdnBalancerStats<"u"&&CdnBalancerStats.cdn)v=CdnBalancerStats.cdn.totalDownloadedBytes;else if(typeof Streamroot<"u")v=this._getStreamrootPeerObject("cdn",!1)||this._getStreamrootInstanceObject("cdnDownload");else if(typeof peer5<"u"&&peer5.getStats)v=peer5.getStats().totalHttpDownloaded;else if(typeof teltoo<"u"&&teltoo.getStats){var A=teltoo.getStats();v=A.totalReceivedBytes-A.p2pReceivedBytes}return v},getMultiCdnInfo:function(){let v;if(typeof CdnBalancerStats<"u"&&CdnBalancerStats.cdn&&CdnBalancerStats.cdn.cdns){let A=CdnBalancerStats.p2p;v={P2P:{downloaded_bytes:A.downloadedBytes,uploaded_bytes:A.uploadedBytes,downloaded_chunks:A.downloadedSegments,uploaded_chunks:A.uploadedSegments,errors:A.failedRequests?A.failedRequests.total:0,missed_downloaded_chunks:A.failedRequests?A.failedRequests.absent:0,timeout_errors:A.failedRequests?A.failedRequests.timeout:0,other_errors:A.failedRequests?A.failedRequests.error:0,late_uploaded_chunks:A.discardedUploadedSegments,late_uploaded_bytes:A.discardedUploadedBytes,late_downloaded_bytes:A.discardedDownloadedBytes,time:A.downloadMillis,active_peers:A.activePeers,peers:A.totalPeers}},CdnBalancerStats.cdn.cdns.forEach(function(_){v[_.name]={downloaded_bytes:_.bytes,downloaded_chunks:_.chunks,errors:_.failures,time:_.downloadMillis}})}return v},getSegmentDuration:function(){if(typeof CdnBalancerStats<"u"&&CdnBalancerStats.segmentDuration)return CdnBalancerStats.segmentDuration},getBalancerResponseId:function(){if(typeof CdnBalancerStats<"u"&&CdnBalancerStats.cdn)return CdnBalancerStats.cdn.responseUUID},getP2PTraffic:function(){let v;return typeof CdnBalancerStats<"u"&&CdnBalancerStats.p2p?v=CdnBalancerStats.p2p.downloadedBytes:typeof Streamroot<"u"?v=this._getStreamrootPeerObject("p2p",!0)||this._getStreamrootInstanceObject("dnaDownload"):typeof peer5<"u"&&peer5.getStats?v=peer5.getStats().totalP2PDownloaded:typeof teltoo<"u"&&teltoo.getStats&&(v=teltoo.getStats().p2pReceivedBytes),v},getUploadTraffic:function(){let v;return typeof CdnBalancerStats<"u"&&CdnBalancerStats.p2p?v=CdnBalancerStats.p2p.uploadedBytes:typeof Streamroot<"u"?v=this._getStreamrootPeerObject("upload",!0)||this._getStreamrootInstanceObject("dnaUpload"):typeof peer5<"u"&&peer5.getStats&&(v=peer5.getStats().totalP2PUploaded),v},getIsP2PEnabled:function(){let v=!1;if(typeof CdnBalancerStats<"u"&&CdnBalancerStats.p2p)v=CdnBalancerStats.p2p.downloadEnabled;else if(typeof Streamroot<"u")if(Streamroot.p2pAvailable&&Streamroot.peerAgents)for(var A in Streamroot.peerAgents)v=v||Streamroot.peerAgents[A].isP2PEnabled;else Streamroot.instances&&Streamroot.instances.forEach(function(_){v=v||_.dnaDownloadEnabled||_.dnaUploadEnabled});else typeof peer5<"u"&&peer5.isEnabled?v=peer5.isEnabled():typeof teltoo<"u"&&(v=!0);return v},_getStreamrootPeerObject:function(v,A){let _="";if(Streamroot.p2pAvailable&&Streamroot.peerAgents)for(let m in Streamroot.peerAgents){let y=Streamroot.peerAgents[m];!y.stats||A&&!y.isP2PEnabled||(_+=y.stats[v])}return _.length>0?_:void 0},_getStreamrootInstanceObject:function(v){let A="";return Streamroot.instances&&Streamroot.instances.forEach(function(_){_.stats&&_.stats.currentContent&&(A+=_.stats.currentContent[v])}),A.length>0?A:void 0}});n.exports=p},3003:n=>{n.exports={WILL_SEND_INIT:"will-send-init",WILL_SEND_START:"will-send-start",WILL_SEND_JOIN:"will-send-join",WILL_SEND_PAUSE:"will-send-pause",WILL_SEND_RESUME:"will-send-resume",WILL_SEND_SEEK:"will-send-seek",WILL_SEND_DATA_OBJECT:"will-send-data",WILL_SEND_BUFFER:"will-send-buffer",WILL_SEND_ERROR:"will-send-error",WILL_SEND_FATAL_ERROR:"will-send-fatal-error",WILL_SEND_STOP:"will-send-stop",WILL_SEND_PING:"will-send-ping",WILL_SEND_VIDEO_EVENT:"will-send-video-event",WILL_SEND_AD_START:"will-send-ad-start",WILL_SEND_AD_JOIN:"will-send-ad-join",WILL_SEND_AD_PAUSE:"will-send-ad-pause",WILL_SEND_AD_RESUME:"will-send-ad-resume",WILL_SEND_AD_BUFFER:"will-send-ad-buffer",WILL_SEND_AD_STOP:"will-send-ad-stop",WILL_SEND_AD_CLICK:"will-send-ad-click",WILL_SEND_AD_ERROR:"will-send-ad-error",WILL_SEND_AD_MANIFEST:"will-send-ad-manifest",WILL_SEND_AD_POD_START:"will-send-ad-break-start",WILL_SEND_AD_POD_STOP:"will-send-ad-break-stop",WILL_SEND_AD_QUARTILE:"will-send-ad-quartile",WILL_SEND_SESSION_START:"will-send-session-start",WILL_SEND_SESSION_STOP:"will-send-session-stop",WILL_SEND_NAV:"will-send-nav",WILL_SEND_BEAT:"will-send-beat",WILL_SEND_EVENT:"will-send-event",WILL_SEND_OFFLINE_EVENTS:"will-send-offline-events"}},3168:(n,o,c)=>{var p=c(3821),v=c(4387),A=c(7939);let{AnalyticsTag:_}=c(2784),{default:m}=c(7276);var y=v.extend({parse:function(C,T,U){U=U||"";var G=null;try{G=/((\S*?)(\.m3u8|\.m3u|\.ts|\.m4s|\.mp4|\.cmfv|\.m4a)((\?|;)\S*|\n|\r|$))/i.exec(C.replaceAll(",URI=",` `).replaceAll('"',"").replaceAll(",",` `))}catch(V){m.warn(_,"Parse HLS Regex failed",V),this.done()}if(G!==null){var M=G[1].trim(),S="",D=U.lastIndexOf("/");if(M.indexOf("http")!==0&&D!==-1){if(M[0]==="/"&&M[1]!=="/"){var B=U.indexOf("/")+1;B+=U.substr(B,U.length).indexOf("/")+1,B+=U.substr(B,U.length).indexOf("/"),M=U.slice(0,B)+M}else M=U.slice(0,D)+"/"+M;S=U.slice(0,D)+"/"}if(G[3]===".m3u8"||G[3]===".m3u")if(T)this._parseWithManifest(T,S,G);else{var R=new p(M,null,null,{cache:!0,requestHeaders:this._headers});R.on(p.Event.SUCCESS,(function(V){this._parseWithManifest(V,S,G)}).bind(this)),R.on(p.Event.ERROR,(function(V){this.done()}).bind(this)),R.send()}else{switch(G[3]){case".mp4":case".m4s":case".m4a":this._transportFormat=A.MP4;break;case".ts":this._transportFormat=A.MPEG2;break;case".cmfv":this._transportFormat=A.CMF}this._realResource=M,this.done()}}else this.done()},_parseWithManifest:function(C,T,U){this._lastManifest=C,this.parse(C.getResponseText(),null,T+U[2])},shouldExecute:function(C){var T=!0;return C&&(T=C.getResponseText().indexOf("#EXTM3U")!==-1),T}});n.exports=y},3381:(n,o,c)=>{var p=c(3948),v=c(4954),A=c(7680),_=p.extend({constructor:function(m,y,C){this._adapter=m,this._seekEnabled=y&_.Type.SEEK,this._bufferEnabled=y&_.Type.BUFFER,C=C||800,this._chrono=new A,this._lastPlayhead=0,C>0&&(this._timer=new v(this.progress.bind(this),C))},start:function(){this.stop(),this.canBeUsed()&&this._timer.start()},stop:function(){this._lastPlayhead=0,this._timer&&this._timer.stop()},skipNextTick:function(){this._lastPlayhead=0},progress:function(){var m=this._chrono.stop();this._chrono.start();var y=m*_.kBUFFER_THRESHOLD_RATIO,C=m*_.kSEEK_THRESHOLD_RATIO;this._adapter.getPlayrate&&this._adapter.getPlayrate()&&this._adapter.getPlayrate()!==1&&(y*=this._adapter.getPlayrate(),C*=this._adapter.getPlayrate());var T=this._getPlayhead(),U=1e3*Math.abs(this._lastPlayhead-T),G=typeof this._adapter.getVideoBufferLength=="function"?this._adapter.getVideoBufferLength():null;if(U0&&!this._adapter.flags.isPaused&&!this._adapter.flags.isSeeking){let M=this._adapter.getPlugin();M&&M.options&&M.options.checkVideoBufferInPlayheadMonitor?(G===null||G<=0)&&this._adapter.fireBufferBegin(null,!1,"playheadMonitor"):this._adapter.fireBufferBegin(null,!1,"playheadMonitor")}}else U>C?this._seekEnabled&&this._lastPlayhead>0&&this._adapter.fireSeekBegin(null,!1,"playheadMonitor"):(this._seekEnabled&&this._adapter.fireSeekEnd(null,"playheadMonitor"),this._bufferEnabled&&this._adapter.fireBufferEnd(null,"playheadMonitor"));this._lastPlayhead=T},canBeUsed:function(){let m=this._adapter.getVideo(),y=this._adapter.getPlugin();return!(!y||!y.getPlayheadMonitorEnabled()||!this._seekEnabled&&!this._bufferEnabled||m&&m.getIsLive()&&y.options["content.isLive.noMonitor"])},_getPlayhead:function(){return this._adapter.getPlayhead()}},{Type:{NONE:0,BUFFER:1,SEEK:2},kBUFFER_THRESHOLD_RATIO:.5,kSEEK_THRESHOLD_RATIO:2});n.exports=_},3398:(n,o,c)=>{var p=c(3948);let{default:v}=c(7276),{AnalyticsTag:A}=c(2784);var _=p.extend({exists:function(m){return _.Dictionary.hasOwnProperty(m)},getNewName:function(m){var y=_.Dictionary[m];return v.warn(A,'The option "'+m+'" is deprecated, use "'+y+'" instead'),y}},{Dictionary:{httpSecure:"app.https",username:"user.name",anonymousUser:"user.anonymousId",obfuscateIp:"user.obfuscateIp",userType:"user.type","content.title2":"content.program","background.settings.iphone":"background.settings.iOS","parse.hls":"parse.manifest","parse.dash":"parse.manifest","parse.locationHeader":"parse.manifest","extraparam.1":"content.customDimension.1","extraparam.2":"content.customDimension.2","extraparam.3":"content.customDimension.3","extraparam.4":"content.customDimension.4","extraparam.5":"content.customDimension.5","extraparam.6":"content.customDimension.6","extraparam.7":"content.customDimension.7","extraparam.8":"content.customDimension.8","extraparam.9":"content.customDimension.9","extraparam.10":"content.customDimension.10","extraparam.11":"content.customDimension.11","extraparam.12":"content.customDimension.12","extraparam.13":"content.customDimension.13","extraparam.14":"content.customDimension.14","extraparam.15":"content.customDimension.15","extraparam.16":"content.customDimension.16","extraparam.17":"content.customDimension.17","extraparam.18":"content.customDimension.18","extraparam.19":"content.customDimension.19","extraparam.20":"content.customDimension.20","ad.extraparam.1":"ad.customDimension.1","ad.extraparam.2":"ad.customDimension.2","ad.extraparam.3":"ad.customDimension.3","ad.extraparam.4":"ad.customDimension.4","ad.extraparam.5":"ad.customDimension.5","ad.extraparam.6":"ad.customDimension.6","ad.extraparam.7":"ad.customDimension.7","ad.extraparam.8":"ad.customDimension.8","ad.extraparam.9":"ad.customDimension.9","ad.extraparam.10":"ad.customDimension.10"}});n.exports=_},3455:(n,o,c)=>{var p=c(3948),v=c(470),A=p.extend({constructor:function(){this.storage=new v("npawOffline",!0),this.actualView=null,this.viewList=[],this.givenIds=[],this._getOldViewList()},_newView:function(){var _=this._getValidId();this.storage.setLocal(_,""),this.viewList.push(_),this.storage.setLocal("views",this.viewList),this.actualView=_},addEvent:function(_,m){if(_==="/start"&&this._newView(),_==="/init"||!this.actualView)return null;var y='{"request":"'+_.slice(1)+'",';for(var C in y+='"unixtime":'+Date.now()+",",m){if(m[C]===void 0)break;y+='"'+C+'":',C==="code"?y+='"CODE_PLACEHOLDER",':C==="sessionId"?y+='"SESSION_PLACEHOLDER",':C==="sessionRoot"?y+='"ROOT_PLACEHOLDER",':typeof m[C]=="string"?y+='"'+m[C]+'",':typeof m[C]=="object"?y+='"'+JSON.stringify(m[C]).replace(/"/g,'\\"')+'",':y+=m[C]+","}y=y.slice(0,-1),y+="}";var T=this.storage.getLocal(this.actualView);T!==""&&(T+=","),this.storage.setLocal(this.actualView,T+y)},getView:function(){if(this.viewList.length>this.givenIds.length)for(var _=0;;){var m=this.viewList[_];if(this.givenIds.indexOf(m)<0)return this.givenIds.push(m),["["+this.storage.getLocal(m)+"]",m];_++}return[null,null]},removeView:function(_){this.storage.removeLocal(_);var m=this.viewList.indexOf(_);m!==-1&&this.viewList.splice(m,1),(m=this.givenIds.indexOf(_))!==-1&&this.givenIds.splice(m,1),this.storage.setLocal("views",this.viewList.toString()),_===this.actualView&&(this.actualView=null)},_getOldViewList:function(){var _="";this.storage.getLocal("views")?_=this.storage.getLocal("views"):this.storage.setLocal("views",""),_===""?this.viewList=[]:typeof _.split=="function"&&(this.viewList=_.split(","))},_getValidId:function(){var _=Math.floor(1e8*Math.random()).toString();return this.viewList.indexOf(_)>=0?this._getValidId():_},sent:function(){this.givenIds=[]}});n.exports=A},3555:(n,o,c)=>{"use strict";c.r(o),c.d(o,{default:()=>v});var p=c(2784);class v{constructor(_,m,y,C,T,U,G){this.method=p.Method.GET,this.videoKey=y,this.service=_,this.method=C,this.params=m||{},this.body=T,this.onSuccessCallback=U,this.onFailCallback=G}getService(){return this.service}getMethod(){var _;return(_=this.method)!==null&&_!==void 0?_:p.Method.GET}setMethod(_){this.method=_}getParams(){return this.params}getOnSuccess(){return this.onSuccessCallback}getOnFail(){return this.onFailCallback}getVideoKey(){return this.videoKey}getParam(_){return this.params[_]}setParam(_,m){return this.params[_]=m,this}setParams(_){this.params=_}getBody(){return this.body}setBody(_){this.body=_}isPost(){return this.method===p.Method.POST}}},3713:n=>{n.exports={cdnName:"LEVEL3",parsers:[{element:"host+type",headerName:"X-WR-Diag",regex:/Host:(.+)\sType:(.+)/}],requestHeaders:{"X-WR-Diag":"host"},parseType:function(o){if(o){if(o.indexOf("TCP_HIT")===0||o.indexOf("TCP_MEM_HIT")===0||o.indexOf("TCP_IMS_HIT")===0)return 1;if(o.indexOf("TCP_MISS")===0)return 2}return 0}}},3782:(n,o,c)=>{let p=c(703),v=c(7086),A={AdPosition:p,ManifestError:c(8932),RequestMethod:c(9637),Service:c(7062),WillSendEvent:c(3003),WillSendLog:c(825),AdInsertionType:c(1083),Adapter:v,Metadata:c(8424)};n.exports=A},3821:(n,o,c)=>{var p=c(3948);let{default:v,LogLevel:A}=c(7276);var _=c(2507);let{AnalyticsTag:m}=c(2784);var y=p.extend({constructor:function(C,T,U,G,M){this.videoKey=M,this.xhr=this.createXHR(),this.host=C||"",this.service=T||"",this.params=U||{},this.options=_.assign({},y.defaultOptions,G),this.retries=0,this.sendPostRequest=!1,this.preparedPostRequest=!1,this.options.cache||this.params.timemark||this.setParam("timemark",new Date().getTime())},createXHR:function(){var C={};try{C=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}catch(T){v.error(m,T)}return C},getXHR:function(){return this.xhr},getResponse:function(){return this.xhr.response},getResponseText:function(){return this.xhr.responseText},getResponseHeaders:function(){return this.xhr.getAllResponseHeaders()},getUrl:function(){return this.host+this.service+this.getParamString()},getVideoKey:function(){return this.videoKey},on:function(C,T,U){return this.xhr.addEventListener?this.xhr.addEventListener(C,T.bind(this,this,U)):C===y.Event.SUCCESS&&(this.xhr.onreadystatechange=(function(){this.xhr.readyState===4&&T.bind(this,this,U)}).bind(this)),this},off:function(C,T){return this.xhr.removeEventListener(C,T),this},getParamString:function(){try{var C="?";for(var T in this.params){var U=this.params[T];if(U!==null&&typeof U=="object"){var G=JSON.stringify(U);G!=="{}"&&(C+=encodeURIComponent(T)+"="+encodeURIComponent(G)+"&")}else U!=null&&U!==""&&(C+=encodeURIComponent(T)+"="+encodeURIComponent(U)+"&")}return C.slice(0,-1)}catch(M){return v.error(m,M),""}},getParam:function(C){return this.params[C]},setParam:function(C,T){return this.params[C]=T,this},setBody:function(C){this.body=C},setPostRequest:function(C){this.sendPostRequest=C},getParamsForPostMessages:function(){var C={};try{var T=this.getParam("timemark"),U=this.getParam("code"),G=this.getParam("sessionRoot"),M=this.getParam("sessionId");T&&(C.timemark=T),U&&(C.code=U),G&&(C.sessionRoot=G),M&&(C.sessionId=M)}catch(S){v.error(m,S)}return C},send:function(){try{try{this.sendPostRequest&&!this.preparedPostRequest&&(this.options.method="POST",this.body=JSON.stringify(this.params),this.params=this.getParamsForPostMessages(),this.preparedPostRequest=!0)}catch{}if(this.xhr.open(this.options.method,this.getUrl(),!0),this.options.requestHeaders)for(var C in this.options.requestHeaders)this.options.requestHeaders.hasOwnProperty(C)&&this.xhr.setRequestHeader(C,this.options.requestHeaders[C]);for(var T in this.options.retryAfter>0&&this.options.maxRetries>0&&this.retries===0&&this.on(y.Event.ERROR,(function(){if(this.retries>=this.options.maxRetries)v.error(m,'Aborting failed request "'+this.service+'". Max retries reached.');else{v.warn(m,'YBRequest "'+this.service+'" failed. Retry '+(this.retries+1)+" of "+this.options.maxRetries+" in "+this.options.retryAfter+"ms.");try{setTimeout((function(){this.retries+=1,this.send()}).bind(this),this.options.retryAfter)}catch(U){typeof atv<"u"?atv.setTimeout((function(){this.retries+=1,this.send()}).bind(this),this.options.retryAfter):v.error(m,U)}}}).bind(this)),v.logLevel<=A.VERBOSE&&v.verbose(m,"XHR Req: "+this.getUrl()),y._globalListeners)y._globalListeners[T].forEach((function(U){this.on(T,U)}).bind(this));return this.xhr.send(this.body)}catch(U){v.error(m,U)}}},{Event:{SUCCESS:"load",LOAD:"load",ERROR:"error",ABORT:"abort"},defaultOptions:{method:"GET",requestHeaders:{},maxRetries:3,retryAfter:5e3,cache:!1},_globalListeners:{},onEvery:function(C,T){y._globalListeners[C]=y._globalListeners[C]||[],y._globalListeners[C].push(T)},offEvery:function(C,T){if(y._globalListeners[C]){var U=y._globalListeners[C].indexOf(T);U!==-1&&y._globalListeners[C].splice(U,1)}}});n.exports=y},3831:(n,o,c)=>{var p=c(3821),v=c(4387),A=c(7939);let{AnalyticsTag:_}=c(2784),{default:m}=c(7276);var y=v.extend({parse:function(C,T){if(T)this.parseLocation(T,C);else{var U=new p(C,null,null,{cache:!0,requestHeaders:this._headers});U.on(p.Event.SUCCESS,(function(G){this.parseLocation(G,C)}).bind(this)),U.on(p.Event.ERROR,(function(G){this.done()}).bind(this)),U.send()}},parseLocation:function(C,T){this.iterations--;var U=new RegExp(/([\s\S]+)<\/Location>/);try{this._lastManifest=C;var G=C.getResponseText(),M=U.exec(G);if(M&&M[1])var S=this._htmlDecode(M[1].replace(` `,""));S&&S!==T&&this.iterations>0?this.parse(S):this.parseFinalResource(G,T)}catch{m.warn(_,"Dash parse failed"),this.done()}},_htmlDecode:function(C){if(typeof document<"u"&&typeof document.createElement=="function"){var T=document.createElement("textarea");return T.innerHTML=C,T.childNodes&&T.childNodes.length?T.childNodes[0].nodeValue:C}return C},parseFinalResource:function(C,T){var U=new RegExp(/[\r\n]*(.*?)[\r\n]*<\/BaseURL>/),G=new RegExp(/0?this._realResource=S[1].substr(0,S[1].indexOf('"')).replace(` `,""):this._realResource=S[1].replace(` `,""):this._realResource=T}catch{m.warn(_,"Dash manifest parse failed")}this.done()},_getManifestMetadata:function(C){try{var T=new RegExp(/{var p=c(1593),v=c(2507);c(3821);let{AnalyticsTag:A}=c(2784),{default:_}=c(7276);var m=p.extend({constructor:function(y){this._options=v.assign({cdnName:null,parsers:[],requestMethod:"HEAD",requestHeaders:{},parseType:function(){return 0}},y),this._responses={}},done:function(){this.emit(m.Event.DONE)},addParser:function(y){return this._options.parsers.push(y),this},setCdnName:function(y){return this._options.cdnName=y,this},setRequestMethod:function(y){return this._options.requestMethod=y,this},setRequestHeader:function(y,C){return this._options.requestHeaders[y]=C,this},setParseType:function(y){return this._options.parseType=y,this},getParsedCdnName:function(){return this._cdnName},getParsedNodeHost:function(){return this._cdnNodeHost},getParsedNodeTypeString:function(){return this._cdnNodeTypeString},getParsedNodeType:function(){return this._cdnNodeType},getResponses:function(){return this._responses},parse:function(y,C){this._responses=C||{};var T=JSON.stringify(this._options.requestHeaders);this._responses[T]?this._parseResponse(this._responses[T]):this._requestResponse(y)},_requestResponse:function(y){var C=JSON.stringify(this._options.requestHeaders),T=C!=="{}";let U=new XMLHttpRequest;U.open(this._options.requestMethod,y);for(let G in this._options.requestHeaders)Object.prototype.hasOwnProperty(this._options.requestHeaders,G)&&U.setRequestHeader(G,this._options.requestHeaders[G]);U.onreadystatechange=()=>{U.readyState===4&&(U.status>=200&&U.status<400?(this._responses[C]=U.getAllResponseHeaders(),this._parseResponse(this._responses[C])):T?(this._options.requestHeaders={},this._requestResponse(y)):this.done())},U.send()},_parseResponse:function(y){this._options.parsers.forEach((function(C){if(typeof C.headerName=="string")this._parseHeaderResponse(y,C,C.headerName);else if(Array.isArray(C.headerName))for(var T=0,U=C.headerName.length;T{var p=c(4173),v=c(9600),A=function(){};A.prototype={constructor:function(){}},A.extend=function(_,m){var y,C=this;return y=_&&_.hasOwnProperty("constructor")?_.constructor:function(){return C.apply(this,arguments)},p(y,C,m),y.prototype=v(C.prototype),_&&p(y.prototype,_),y.prototype.constructor=y,y.__super__=C.prototype,y},n.exports=A},4173:n=>{n.exports=function(o){if(o==null)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(o),p=1;p{n.exports={cdnName:"NOSOTT",parsers:[{element:"host",headerName:"X-NOS-Server",regex:/(.+)/},{element:"type",headerName:"X-Cache",regex:/(.*)/}],parseType:function(o){switch(o){case"Hit":return 1;case"Miss":return 2;default:return 0}}}},4387:(n,o,c)=>{let p=c(1593).extend({constructor:function(v){this._realResource=void 0,this._lastManifest=void 0,this._transportFormat=void 0,this.iterations=3,this._headers=v},done:function(){this.iterations=3,this.emit(p.Event.DONE)},parse:function(v,A){},getResource:function(){return this._realResource},getTransportFormat:function(){return this._transportFormat},getLastManifest:function(){return this._lastManifest},shouldExecute:function(v){return!0}},{Event:{DONE:"done"}});n.exports=p},4607:n=>{n.exports=function(){Function.prototype.bind=Function.prototype.bind||function(o){var c=Array.prototype.slice,p=this,v=c.call(arguments,1);function A(){var _=p.prototype&&this instanceof p;return p.apply(!_&&o||this,v.concat(c.call(arguments)))}return A.prototype=p.prototype,A},Array.prototype.forEach=Array.prototype.forEach||function(o,c){if(typeof o!="function")throw new TypeError(o+" is not a function!");for(var p=this.length,v=0;v0?Math.floor(o):Math.ceil(o)}}},4954:(n,o,c)=>{var p=c(3948),v=c(7680),A=p.extend({constructor:function(_,m){this.callback=_,this.interval=m||5e3,this.isRunning=!1,this._timer=null,this.chrono=new v},start:function(){this.isRunning||(this.isRunning=!0,this._setTick())},stop:function(){if(this.isRunning=!1,this._timer)try{clearTimeout(this._timer),this._timer=null}catch{typeof atv<"u"&&(atv.clearTimeout(this._timer),this._timer=null)}},_setTick:function(){if(this.isRunning){this.chrono.start();try{this._timer=setTimeout((function(){this.callback(this.chrono.stop()),this._setTick()}).bind(this),this.interval)}catch{typeof atv<"u"&&(this._timer=atv.setTimeout((function(){this.callback(this.chrono.stop()),this._setTick()}).bind(this),this.interval))}}}});n.exports=A},5031:(n,o,c)=>{let{default:p}=c(7276);var v=c(3782);let{default:A}=c(6933),{default:_}=c(9065),{default:m}=c(3555),{AnalyticsTag:y,Method:C}=c(2784),{default:T}=c(1577),{default:U}=c(61);var G={_startPings:function(){if(!this.sendingPings){var M=this.plugin.isMethodPostEnabled()?C.POST:C.GET;let S=1e3*_.getInstance().getFastDataService().getPingTime();_.getInstance().pushPeriodicDataFromCallback(this.plugin.options.offline?U.Consumer.PERSISTENT:U.Consumer.NQS,this.getVideoKey(),v.Service.PING,S,M,this._sendPing.bind(this),this._onPingSuccess.bind(this)),this.sendingPings=!0}},_onPingSuccess:function(){A.getInstance().addNQSRequest(v.Service.PING),this.lastEventTime=new Date().getTime()},_stopPings:function(){_.getInstance().unregisterPeriodicPush(this.getVideoKey()),this.sendingPings=!1},_sendPing:function(){if(!this.plugin.analyticsRequestHandler.shouldSendStats())return;let M=new Date().getTime(),S=this.timeSinceLastPing?M-this.timeSinceLastPing:5e3;this.timeSinceLastPing=M;var D={diffTime:S,entities:this.requestBuilder.getChangedEntities([this,this.plugin],this.options)};if(this._adapter&&(D=this._adapter.flags.isPaused?this.requestBuilder.fetchParams(D,["pauseDuration"],!1,[this,this.plugin],this.options):this.requestBuilder.fetchParams(D,["bitrate","throughput","fps"],!1,[this,this.plugin],this.options),this._adapter.flags.isJoined&&(D=this.requestBuilder.fetchParams(D,["playhead"],!1,[this,this.plugin],this.options)),this._adapter.flags.isBuffering&&(D=this.requestBuilder.fetchParams(D,["bufferDuration"],!1,[this,this.plugin],this.options)),this._adapter.flags.isSeeking&&(D=this.requestBuilder.fetchParams(D,["seekDuration"],!1,[this,this.plugin],this.options))),this._adsAdapter&&!this.options["ad.ignore"]&&(this._adsAdapter.flags.isStarted&&(D=this.requestBuilder.fetchParams(D,["adPlayhead","adViewedDuration","adViewability"],!1,[this,this.plugin],this.options),D=this._adsAdapter.flags.isPaused?this.requestBuilder.fetchParams(D,["adPauseDuration"],!1,[this,this.plugin],this.options):this.requestBuilder.fetchParams(D,["adBitrate"],!1,[this,this.plugin],this.options)),this._adsAdapter.flags.isBuffering&&(D=this.requestBuilder.fetchParams(D,["adBufferDuration"],!1,[this,this.plugin],this.options))),D=this.requestBuilder.buildParams(D,v.Service.PING,[this,this.plugin],this.options),this.controlPlayerExists()&&this._adapter&&!this._adapter.checkExistsPlayer())return p.debug(y,"Detected player no exists, and fire stop event"),void this._adapter.fireStop();A.getInstance().setTriedSendingNQSStats(!0);var B=this.plugin.isMethodPostEnabled()?C.POST:C.GET;let R=new m(v.Service.PING,D,this.getVideoKey(),B),V=R.getVideoKey(),$=R.getService(),l=this.plugin.analyticsRequestHandler.onWillSendVideoRequestListeners;for(let d of l)d($,V,D);return this.plugin.analyticsRequestHandler.prepareParams(R),p.verbose(y,v.Service.PING),this.startDelayed&&this._retryStart(),R.getParams()}};n.exports=G},5040:n=>{n.exports={cdnName:"TELEFO",parsers:[{element:"host+type",headerName:"x-tcdn",regex:/Host:(.+)\sType:(.+)/}],requestHeaders:{"x-tcdn":"host"},parseType:function(o){if(o){if(o.indexOf("p")!==-1||o.indexOf("c")!==-1)return 1;if(o.indexOf("i")!==-1||o.indexOf("m")!==-1)return 2}return 0}}},5200:(n,o,c)=>{var p=c(3948),v=c(7680),A=p.extend({constructor:function(){this.reset()},reset:function(){this.join=new v,this.seek=new v,this.pause=new v,this.buffer=new v,this.total=new v,this.viewedMax=[]}});n.exports=A},5292:(n,o,c)=>{var p=c(1593);let{default:v}=c(7276);var A=c(2507),_=c(9835),m=c(5200),y=c(7255),C=c(3381),T=c(8490),U=c(7086),G=c(6777);let{AnalyticsTag:M}=c(2784),{default:S}=c(9065),{default:D}=c(61);var B=p.extend({constructor:function(R,V,$,l,d,g){this._key=R,this._setAdapter=!1,this._npawVideo=V,this._loadedAdapterImplementation=!1,this.flags=new y,this.chronos=new m,this._adapterClasses={},this.fireEventsStruct={},this.fireEventsStruct.buffer=[],this.fireEventsStruct.seek=[],this.monitor=null,this.plugin=$,this.player&&this.unregisterListeners(),this.player=null,this._isAdsAdapter=null,this.log=v,this.log.loadLevelFromUrl(),this.npaw=c(6014),this.setPlayer(d);let w=typeof g!="object",j,H=w?JSON.parse(g):void 0;if(this._adapterName=w?this.getAdapterName(H):this.getAdapterNameFromClass(g),w&&this.plugin&&this.plugin.canOverwriteAdapters()&&(j=this._getAdapterFromTemplates(this._adapterName),j&&v.notice(M,"Overwrite Adapter: "+this._adapterName)),w&&!j)if(g)try{j=H}catch{v.warn(M,"Problem parsing adapter json code (to object conversion)")}else j=this._getAdapterFromTemplates(this._adapterName);this.tag=this.player,w&&j?(this.evalAdapterJson(j,!1),this.registerListeners()):!w&&g&&(this.loadAdapterClasses(g,!1),this.registerListeners()),this.plugin.options.enableExtraMetricCollection&&this._npawVideo.fetchLocation(),v.notice(M,"Adapter "+this.getVersion()+" with Lib "+_+" is ready.")},_updatePlayer:function(R){this.player&&this.unregisterListeners(),this.player=null,this.setPlayer(R),this.tag=this.player,this.registerListeners()},isSetAdapter:function(){return this._setAdapter},getVideo:function(){return this._npawVideo},getPlugin:function(){return this.plugin},getNpawUtils:function(){return this.plugin.utils},getNpawReference:function(){return this.npaw},getLog:function(){return this.log},isStarted:function(){return!!this.flags&&this.flags.isStarted},getAdapterClass:function(R){var V=this._adapterClasses;return V[R]?V[R]:null},getAdapterName:function(R){if(R&&R["adapter,getVersion"])try{return window.Function(R["adapter,getVersion"])()}catch{}return"undefined"},getAdapterNameFromClass:function(R){if(R&&R.getVersion)try{return R.getVersion()}catch{}return"undefined"},getAdapterClasses:function(){return this._adapterClasses},updateAdapterTemplates:function(R){if(this.plugin.canOverwriteAdapters()){var V=this._getAdapterFromTemplates(this._adapterName,R);V&&(this.evalAdapterJson(V,!0),this.registerListeners())}},_getAdapterFromTemplates:function(R,V){var $=null;V||(V=this.plugin.adapterTemplates);try{R&&V&&V[R.toLowerCase()]&&($=JSON.parse(V[R.toLowerCase()]))}catch{v.warn(M,"Adapter "+R+" not found on repository")}return $},evalAdapterJson:function(R,V){V=V||!1;var $=0,l=0,d="";try{for(var g in R){var w=g.split(","),j=w.shift(),H=w.shift();d=H;var se=null;if(w&&w.length>=1){var Z=w;se=window.Function(Z,R[g])}else se=window.Function(R[g]);se&&(j.toLowerCase()==="adapter"?(this[H]=se,$++):j.indexOf(".adapter")>0?(j=j.replace(".adapter",""),this.getAdapterClasses()[j]||(this.getAdapterClasses()[j]=new B(this._key,this._npawVideo,this.getPlugin(),null,this.player,null,null,{})),this.getAdapterClasses()[j][H]=se,l++):(this.getAdapterClasses()[j]||(this.getAdapterClasses()[j]={},this.getAdapterClasses()[j].constructor=function(){},this.getAdapterClasses()[j].plugin=this.plugin,this.getAdapterClasses()[j].getNpawUtils=function(){return this.plugin.utils}),this.getAdapterClasses()[j][H]=se,l++))}this._loadedAdapterImplementation=!0,this._adapterEvaluatedCode=R;try{this.adapterHash=G(typeof R=="string"?R.trim():JSON.stringify(R).trim())}catch{this.adapterHash="Undefined"}v.notice(M,"["+this.getAdapterKey()+"] Loaded adapter ("+this.getVersion()+") (Hash "+this.adapterHash+") implementation from JSON; From templates: "+V+"; Integrated adapter methods: "+$+", external methods: "+l)}catch{v.error(M,"Can't be evaluated adapter json correctly; From templates: "+V+", Last method evaluated: "+d)}},loadAdapterClasses:function(R,V){V=V||!1;let $=0,l=0,d="",g=Object.getPrototypeOf(R);try{let w="",j=new Map;for(;g!==Object.prototype;)Object.getOwnPropertyNames(g).forEach(H=>{typeof g[H]!="function"||H==="constructor"||j.has(H)||j.set(H,g[H])}),g=Object.getPrototypeOf(g);if(j.forEach((H,se)=>{this[se]=H,w+=H.toString(),$++}),d="Adapter Class",R.adsAdapters!==void 0)for(let H of Object.keys(R.adsAdapters))this.getAdapterClasses()[H]=new B(this._key,this._npawVideo,this.getPlugin(),null,this.player,new R.adsAdapters[H]),d="Ads Adapter -> "+H;if(R.additionalContexts!==void 0){for(let H of Object.keys(R.additionalContexts)){this.getAdapterClasses()[H]||(this.getAdapterClasses()[H]={},this.getAdapterClasses()[H].constructor=function(){},this.getAdapterClasses()[H].plugin=this.plugin,this.getAdapterClasses()[H].getNpawUtils=function(){return this.plugin.utils});let se=new R.additionalContexts[H],Z=Object.getPrototypeOf(se),be=Object.getOwnPropertyNames(Z).filter(ve=>typeof se[ve]=="function"&&ve!=="constructor");for(let ve of be)this.getAdapterClasses()[H][ve]=se[ve],l++}d="Additional Contexts"}this._loadedAdapterImplementation=!0;try{this.adapterHash=G(w.trim())}catch{this.adapterHash="Undefined"}v.notice(M,"["+this.getAdapterKey()+"] Loaded adapter ("+this.getVersion()+") (Hash "+this.adapterHash+") implementation from class; From templates: "+V+"; Integrated adapter methods: "+$+", external methods: "+l)}catch{v.error(M,"Can't be evaluated adapter class correctly; From templates: "+V+", Last method evaluated: "+d)}},getAdapterKey:function(){return this._key},setPlayer:function(R){typeof R=="string"&&typeof document<"u"?this.player=document.getElementById(R):this.player=R},registerListeners:function(){},unregisterListeners:function(){},dispose:function(){try{this.stopMonitor(),this.stopReadyStateMonitor(),this.unregisterListeners(),this.player=null,this.tag=null}catch{v.error(M,"Can't process dispose for video "+this._key)}},monitorPlayhead:function(R,V,$){this.stopMonitor();var l=0;R&&(l|=C.Type.BUFFER),V&&(l|=C.Type.SEEK),this.monitor&&this.monitor._timer.isRunning?this.monitor.skipNextTick():this.monitor=new C(this,l,$)},stopMonitor:function(){this.monitor&&this.monitor.stop()},monitorReadyState:function(R){this.stopReadyStateMonitor(),this.stateMonitor=new T(this,R)},startReadyStateMonitor:function(){this.stateMonitor&&this.stateMonitor.start()},stopReadyStateMonitor:function(){this.stateMonitor&&this.stateMonitor.stop()},checkReadyState:function(R,V){try{this.plugin&&this.plugin.getReadyStateMonitorEnabled()&&R&&(R>3&&!this.flags.isSeeking?this.flags.isBuffering?this.fireBufferEnd({},V+"-readyState"):this.flags.isJoined||this.fireJoin({},V+"-readyState"):R<4&&!this.flags.isBuffering&&!this.flags.isPaused&&this.fireBufferBegin({},!1,V+"-readyState",!0))}catch{v.error(M,"Can't check readyState property correctly")}},getPlayhead:function(){return null},getDuration:function(){return null},getBitrate:function(){return null},getTotalBytes:function(){return null},getTitle:function(){return null},getResource:function(){return null},getPlayerVersion:function(){return null},getPlayerName:function(){return null},getVersion:function(){return _+"-generic-js"},getVideoObject:function(){return null},getLastUsedCdn:function(){return S.getInstance().getCommonVariable(D.Products.BALANCER,D.BalancerVariables.LAST_USED_CDN)||void 0},checkExistsPlayer:function(){return!0},checkExistsObjectOnPage:function(R){return A.elementIsInPage(R)},fireInit:function(R,V){if(this._npawVideo&&this._npawVideo.controlPlayerExists()&&!this.checkExistsPlayer())return v.warn(M,"Cannot fire init event because player not exists on the document"),null;this.adapterHash&&((R=R||{}).pluginHash=this.adapterHash),this._npawVideo&&this._npawVideo.fireInit(R,V)},fireStart:function(R,V){return this._npawVideo&&this._npawVideo.controlPlayerExists()&&!this.checkExistsPlayer()?(v.warn(M,"Cannot fire start event because player not exists on the document"),null):this.plugin&&this.plugin.backgroundDetector&&this.plugin.backgroundDetector.canBlockStartCalls()?null:void(this.flags.isStarted||(this.flags.isStarted=!0,this.chronos.total.start(),this.chronos.join.start(),V&&((R=R||{}).triggeredEvents=[V]),this.adapterHash&&((R=R||{}).pluginHash=this.adapterHash),this.startReadyStateMonitor(),this.emit(U.Event.START,{params:R}),this.plugin._logSetAdapterEvent(this._adapterEvaluatedCode)))},fireJoin:function(R,V){this.flags.isJoined||this.flags.isStarted||this._isAds()||!this._npawVideo||!this._npawVideo.isInitiated||this.fireStart(),this.flags.isStarted&&!this.flags.isJoined&&(this.flags.isStarted=!0,this.monitor&&this.monitor.start(),this.flags.isJoined=!0,this.chronos.join.stop(),V&&((R=R||{}).triggeredEvents=[V]),this.emit(U.Event.JOIN,{params:R}))},firePause:function(R,V){this._discardFalseBuffers(),this.flags.isBuffering&&this.fireBufferEnd(null,"firePauseCall"),this.flags.isJoined&&!this.flags.isPaused&&(this.flags.isPaused=!0,this.chronos.pause.start(),V&&((R=R||{}).triggeredEvents=[V]),this.emit(U.Event.PAUSE,{params:R}))},fireResume:function(R,V){if(this._discardFalseBuffers(),this.flags.isJoined&&this.flags.isPaused){this.flags.isPaused=!1;try{this._npawVideo.ignorePauseSmallEvents()&&this.chronos.pause.getDeltaTime(!1)<=50?this.chronos.pause.reset():this.chronos.pause.stop()}catch{this.chronos.pause.stop()}this.monitor&&this.monitor.skipNextTick(),V&&((R=R||{}).triggeredEvents=[V]),this.emit(U.Event.RESUME,{params:R})}},fireBufferBegin:function(R,V,$,l){if(l=l||!1,this.flags.isJoined&&!this.flags.isBuffering){if(this.flags.isSeeking){if(!V)return;v.notice(M,"Converting current buffer to seek"),this.chronos.buffer=this.chronos.seek.clone(),this.chronos.seek.reset(),this.flags.isSeeking=!1}else this.chronos.buffer.start();try{this.fireEventsStruct.buffer=[],$?this.fireEventsStruct.buffer.push($):this.fireEventsStruct.buffer.push("undefinedEvent")}catch{}this.flags.isBuffering=!0,this.flags.isVideoStateBuffering=l,this.emit(U.Event.BUFFER_BEGIN,{params:R})}},fireBufferEnd:function(R,V){if(this.flags.isJoined&&this.flags.isBuffering){try{V?this.fireEventsStruct.buffer.push(V):this.fireEventsStruct.buffer.push("undefinedEvent")}catch{}(R=R||{}).triggeredEvents=this.fireEventsStruct.buffer,this.cancelBuffer(),this.emit(U.Event.BUFFER_END,{params:R});try{this.chronos.pause.getDeltaTime(!1)>0&&this.chronos.pause.resume()}catch{}}},_discardFalseBuffers:function(){try{this.flags.isBuffering&&this.flags.isVideoStateBuffering&&this._getDeltaBufferTime()<=100&&this.cancelBuffer()}catch{}},cancelBuffer:function(R){this.flags.isJoined&&this.flags.isBuffering&&(this.flags.isBuffering=!1,this.flags.isVideoStateBuffering=!1,this.chronos.buffer.stop(),this.monitor&&this.monitor.skipNextTick())},_getDeltaBufferTime:function(){return this.chronos&&this.chronos.buffer?this.chronos.buffer.getDeltaTime(!1):0},fireStop:function(R,V){try{if((this._isAds()||this._npawVideo._isStopReady())&&(this._isAds()&&this.flags.isStarted||!this._isAds()&&(this.flags.isStarted||this._npawVideo.isInitiated))){if(this.stopMonitor(),this.stopReadyStateMonitor(),this._isAds()&&(R=R||{},this.flags.isPaused)){let $=this.chronos.pause.getDeltaTime();R.adPauseDuration=$}this.flags.reset(),this.chronos.total.stop(),this.chronos.join.reset(),this.chronos.pause.stop(),this.chronos.buffer.stop(),this.chronos.seek.stop(),V&&((R=R||{}).triggeredEvents=[V]),this.emit(U.Event.STOP,{params:R}),this.chronos.pause.reset(),this.chronos.buffer.reset(),this.chronos.seek.reset(),this.chronos.viewedMax.splice(0,this.chronos.viewedMax.length)}}catch{v.warn(M,"Issue firing Stop event")}},firePlayerLog:function(R,V){if(this._npawVideo){var $={logs:V,logAction:R,logType:"playerEvent"};this._npawVideo.firePlayerLog($)}},setIsAds:function(R){this._isAdsAdapter=R},_isAds:function(){return this._isAdsAdapter},fireCasted:function(R,V){R||(R={}),R.casted=!0,this.fireStop(R,V)},fireError:function(R,V,$,l,d,g){let w=A.buildErrorParams(R,V,$);w.code&&delete w.code,d&&(w=w||{},w.triggeredEvents=[d]);let j=this._npawVideo?this._npawVideo.options:{};w.errorCode!==void 0&&j["errors.ignore"]&&j["errors.ignore"].indexOf(w.errorCode.toString())>-1||(((g=g||!1)||w.errorCode!==void 0&&j["errors.fatal"]&&j["errors.fatal"].indexOf(w.errorCode.toString())>-1)&&this.flags.isJoined&&(w=w||{},w.errorType="fatal"),this.emit(U.Event.ERROR,{params:w}))},fireFatalError:function(R,V,$,l,d){this.fireError(R,V,$,l,d,!0)},isLegacyBufferBehaviourEnabled:function(){return(this._npawVideo?this._npawVideo.options:{}).enableLegacyBufferBehaviour||!1}},{Event:U.Event});A.assign(B.prototype,c(9393)),A.assign(B.prototype,c(594)),n.exports=B},5298:n=>{n.exports={cdnName:"AKAMAI",parsers:[{element:"type+host",headerName:"X-Cache",regex:/(.+)\sfrom.+AkamaiGHost\/(.+)\).+/},{element:"host",headerName:"akamai-mon-iucid-del",regex:/(.*)/},{element:"type",headerName:"akamai-cache-status",regex:/(.+)\sfrom\schild/}],requestHeaders:{Pragma:"akamai-x-cache-on"},parseType:function(o){var c=o.toLowerCase();return c.indexOf("hit")!==-1?1:c.indexOf("miss")!==-1?2:0}}},5438:(n,o,c)=>{"use strict";c.d(o,{CE:()=>R,Ji:()=>w,LI:()=>$,Lg:()=>M,Ow:()=>D,Y4:()=>C,Zq:()=>se,_C:()=>g,b3:()=>V,dR:()=>d,df:()=>y,hj:()=>U,jQ:()=>l,m:()=>S,mH:()=>B,w2:()=>T,wc:()=>j,xC:()=>v,yL:()=>A,yl:()=>_,zU:()=>G});let p=m;(function(Z){let be=m,ve=Z();for(;;)try{if(parseInt(be(184))/1+parseInt(be(182))/2+parseInt(be(176))/3+parseInt(be(199))/4+-parseInt(be(211))/5+-parseInt(be(187))/6*(-parseInt(be(210))/7)+-parseInt(be(172))/8==220217)break;ve.push(ve.shift())}catch{ve.push(ve.shift())}})(H);let v={CDN:"/cdn"},A={Success:"ok",Fail:p(166),Progress:"pr"},_={Updated:p(203),Success:"ok",Fail:p(166)};function m(Z,be){let ve=H();return(m=function(Ie,Xe){return ve[Ie-=166]})(Z,be)}let y={host:p(201),devHost:p(206),devDomains:[p(202),p(167)],service:p(197),decisionCallWaitTime:3e4,decisionReloadIntervalPerManifestMilliseconds:3e4},C=[p(188),p(212),p(183),".cmf",p(177),p(173)],T=[".m3u8",p(205)],U=[p(179)],G=[p(196),".vtt",p(207),p(190)],M={connect:p(192),close:p(180),error:p(186),data:"data",ping:p(178),pong:"pong"},S={optimizedScore:p(208),optimizedFeedback:"optimizedFeedback",bestScore:"bestScore",qualityPriority:p(185),cdnPriority:p(204)},D={max:25e6,min:2e5,default:2e5},B=(p(198),p(171),{data:p(168),absent:p(169),map:p(189),newSegmentAvailable:"NEW_SEGMENT_AVAILABLE",request:p(174),cancel:p(195),ping:p(175),pong:p(213)}),R={command:p(194),id:p(181),size:p(200),storageSize:"ss",map:p(209),identifier:p(191),splits:p(193),time:0,simpleMapKeys:"k",simpleMapSize:"s",dateTime:"dt",createdAt:"ca"},V={bandwidth_test:2,message:1,data:0},$={maxMessageSize:65532,probability:1,timeout:2500,maxConcurrency:6,maxConnectedPeers:40,tracker:p(170),upload:!1},l={version:2},d={expiration:3e5,count:60,safeMaxCount:300},g={retries:5,retryDelay:100,defaultBwThreshold:2e5,connectTimeoutMilliseconds:1e4,readTimeoutMilliseconds:3e3,minRequestSizeForBwEstimateKB:100},w={totalDataInterval:6e4},j={callTimeoutMilliseconds:500,timeBetweenCallsMilliseconds:1e3,timeBetweenBurstsMilliseconds:5e3};function H(){let Z=["size","gnsnpaw.com","stage.npaw.com","updated","cdnPriority",".mpd","stage-smartswitchv2.youbora.com",".ssa","optimizedScore","keys","837571wsnEVn","188835SagOrY",".m4s","PONG","nok","qa.npaw.com","SEGMENT_DATA","SEGMENT_ABSENT","wss://p2p-tracker.youbora.com/webrtc","default","6301704XRpDUg",".m4f","SEGMENT_REQUEST","PING","125853tPLqcj",".dash","ping",".aac","close","data_spec_key","737752wadsel",".ts","55909vklpPS","qualityPriority","error","18qlmrVX",".mp4","SEGMENTS_MAP",".ass","identifier","connect","splits","command","CANCEL_SEGMENT_REQUEST",".srt","/decision","random","880008JqViSh"];return(H=function(){return Z})()}let se={lastMeasurementWeight:.5,maximumRelativeDeltaForTrial:.2,minimumDurationSinceLastUsedForTrialMilliseconds:3e4,chunkExpirationProbingMs:6e4}},5651:(n,o,c)=>{var p=c(1593);let{default:v}=c(7276),{AnalyticsTag:A}=c(2784);var _=p.extend({constructor:function(m){this.plugin=m,this.videos={}},existsVideo:function(m){return m=m||"default",!!this.videos[m]},getVideo:function(m){if(m=m||"default",this.videos[m])return this.videos[m]},setVideo:function(m){this.videos[this._parseVideoKey(m.getVideoKey())]=m},getVideoKeys:function(){return Object.keys(this.videos)},existsAdapter:function(m){return m=m||"default",!(!this.videos[m]||!this.videos[m]._adapter)},getAdapter:function(m){if(m=m||"default",this.videos[m])return this.videos[m].getAdapter()},setAdapter:function(m,y){y=y||"default",this.videos[y]&&this.videos[y].setAdapter(m,this.plugin)},getAdsAdapter:function(m){if(m=m||"default",this.videos[m])return this.videos[m].getAdsAdapter()},removeAdapter:function(m,y){y=y||"default";try{this.videos[y]&&this.videos[y].removeAdapter()}catch{v.error(A,"Is not possible to remove adapter for video: "+y)}},removeAllAdapters:function(){for(let m of Object.keys(this.videos))this.videos[m].removeAdapter(),this.videos[m].removeAdsAdapter()},sendRequest:function(m,y,C,T,U,G,M,S){m=m||"default",this.videos[m]?this.videos._send(this._key,y,C,T,U,G,M,S):v.error(A,"Can't send request for not existent video object")},updateAllOptions:function(m){for(let y in this.videos)for(let C in m)this.videos[y].options[C]=m[C];m["adapters.templates"]&&(this.plugin._setAdapterTemplates(m["adapters.templates"]),this.updateAdapterTemplates(m["adapters.templates"]))},updatePingInterval:function(m){for(var y in this.videos)this.videos[y]._ping.interval=m},updateAdapterTemplates:function(m){if(m&&this.videos)for(var y in this.videos)this.videos[y]._adapter&&this.videos[y]._adapter.updateAdapterTemplates(m)},resetVideo:function(m){m=m||"default",this.video[m]&&this.video[m]._reset()},_parseVideoKey:function(m){return m||"default"}});n.exports=_},5710:(n,o,c)=>{let{default:p}=c(6933);var v=c(3782);let A=c(2477),{default:_}=c(7276);var m=c(2507),y=c(5292);let{AnalyticsTag:C}=c(2784),{default:T}=c(61),{default:U}=c(9065);var G={_startListener:function(M){!this.plugin.options.enableExtraMetricCollection||this.lastKnownLocation||this.isFetchingLocation||this.fetchLocation(),this.isInitiated?this.initChrono.startTime!==0&&(this._adapter.chronos.join.startTime=this.initChrono.startTime):(this._viewIndex||this.plugin.getNextViewIndex(this),this._startPings());var S=M.data.params||{};p.getInstance().addNQSEvent(y.Event.START,S);var D=this.getResource()&&typeof this.getIsLive()=="boolean"&&(this.getIsLive()||typeof this.getDuration()=="number"&&this.getDuration()>0)&&this.getTitle(),B=U.getInstance().getCommonVariable(T.Products.BALANCER,T.BalancerVariables.DECISION_FINISHED);B===void 0&&(B=!0),(D=!this.options.forceInit&&D&&this._isExtraMetadataReady()&&B&&this._isRequiredMetadataReady())&&!this.isInitiated?(p.getInstance().setTriedSendingNQSStats(!0),this._send(v.WillSendEvent.WILL_SEND_START,v.Service.START,S,void 0,void 0,()=>{p.getInstance().addNQSRequest(v.Service.START)}),this._adSavedError(),this._adSavedManifest(),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+v.Service.START+", title/res: "+(S.title||S.mediaResource)+(S.triggeredEvents?", eventsTriggered: "+S.triggeredEvents:"")),this.isStarted=!0):this.isInitiated||(this.isInitiated=!0,this._adapter.chronos.join.start(),p.getInstance().setTriedSendingNQSStats(!0),this._send(v.WillSendEvent.WILL_SEND_INIT,v.Service.INIT,S,void 0,void 0,()=>{p.getInstance().addNQSRequest(v.Service.INIT)}),this._adSavedError(),this._adSavedManifest(),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+v.Service.INIT+", title/res: "+(S.title||S.mediaResource)+(S.triggeredEvents?", eventsTriggered: "+S.triggeredEvents:""))),this.options.enableExtraMetricCollection&&this.shouldStartRenditionTimer()},_retryStart:function(M){var S=U.getInstance().getCommonVariable(T.Products.BALANCER,T.BalancerVariables.DECISION_FINISHED);S===void 0&&(S=!0),this._isExtraMetadataReady()&&S&&this._isRequiredMetadataReady()&&(this._send(v.WillSendEvent.WILL_SEND_START,v.Service.START,{triggeredEvents:["retryStart"]}),this.startDelayed=!1)},_joinListener:function(M){var S={};if(m.assign(S,M.data.params||{}),this._adsAdapter&&this._adsAdapter.flags.isStarted)this._adapter.monitor&&this._adapter.monitor.stop(),this._adapter.flags.isJoined=!1,this._adapter.chronos.join.stopTime=0;else{if(p.getInstance().addNQSEvent(y.Event.JOIN,S),this._adapter&&(this._adapter.chronos.join.startTime=Math.min(this._adapter.chronos.join.startTime+(this._totalPrerollsTime||0),new Date().getTime()),this._totalPrerollsTime=0),this.isInitiated&&!this.isStarted){var D=U.getInstance().getCommonVariable(T.Products.BALANCER,T.BalancerVariables.DECISION_FINISHED);D===void 0&&(D=!0),this._isExtraMetadataReady()&&D&&this._isRequiredMetadataReady()?(p.getInstance().setTriedSendingNQSStats(!0),this._send(v.WillSendEvent.WILL_SEND_START,v.Service.START,S,void 0,void 0,()=>{p.getInstance().addNQSRequest(v.Service.START)})):this.startDelayed=!0,this._adSavedError(),this._adSavedManifest(),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+v.Service.START+", title/res: "+(S.title||S.mediaResource)+(S.triggeredEvents?", eventsTriggered: "+S.triggeredEvents:"")),this.isStarted=!0}S=M.data.params||{},p.getInstance().addNQSEvent(A.JOIN_TIME,S),this._adsAdapter&&this.isBreakStarted&&this._adsAdapter.fireAdBreakStop(),p.getInstance().setTriedSendingNQSStats(!0),this._send(v.WillSendEvent.WILL_SEND_JOIN,v.Service.JOIN,S,void 0,void 0,()=>{p.getInstance().addNQSRequest(v.Service.JOIN)}),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+v.Service.JOIN+", duration: "+S.joinDuration+"ms"+(S.triggeredEvents?", eventsTriggered: "+S.triggeredEvents:""))}},_advancedDataListener:function(M){var S=M.data.params||{};this._send(v.WillSendEvent.WILL_SEND_DATA_OBJECT,v.Service.DATA_OBJECT,S),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+v.Service.DATA_OBJECT+(S.triggeredEvents?", eventsTriggered: "+S.triggeredEvents:""))},_pauseListener:function(M){this._adapter&&(this._adapter.flags.isBuffering||this._adapter.flags.isSeeking||this._adsAdapter&&this._adsAdapter.flags.isStarted)&&this._adapter.chronos.pause.reset();var S=M.data.params||{};p.getInstance().addNQSEvent(y.Event.PAUSE,S),this._send(v.WillSendEvent.WILL_SEND_PAUSE,v.Service.PAUSE,S),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+v.Service.PAUSE+" at "+S.playhead+"s"+(S.triggeredEvents?", eventsTriggered: "+S.triggeredEvents:""))},_resumeListener:function(M){this._adsAdapter&&this.isBreakStarted&&!this._adsAdapter.flags.isStarted&&this._adsAdapter.fireAdBreakStop();var S=M.data.params||{};p.getInstance().addNQSEvent(y.Event.RESUME,S),this._send(v.WillSendEvent.WILL_SEND_RESUME,v.Service.RESUME,S),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+v.Service.RESUME+", duration: "+S.pauseDuration+"ms"+(S.triggeredEvents?", eventsTriggered: "+S.triggeredEvents:"")),this._adapter.chronos.pause.reset()},_seekBufferBeginListener:function(M){this._adapter&&this._adapter.flags.isPaused&&this._adapter.chronos.pause.pause(),M.type&&M.type.includes("buffer")?(p.getInstance().addNQSEvent(y.Event.BUFFER_BEGIN,{}),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+M.type+", eventsTriggered: "+this._adapter.fireEventsStruct.buffer)):(p.getInstance().addNQSEvent(y.Event.SEEK_BEGIN,{}),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+M.type+", eventsTriggered: "+this._adapter.fireEventsStruct.seek))},_seekEndListener:function(M){var S=M.data.params||{};p.getInstance().addNQSEvent(y.Event.SEEK_END,S),this._send(v.WillSendEvent.WILL_SEND_SEEK,v.Service.SEEK,S),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+v.Service.SEEK+" to "+S.playhead+" in "+S.seekDuration+"ms"+(S.triggeredEvents?", eventsTriggered: "+S.triggeredEvents:""))},_bufferEndListener:function(M){var S=M.data.params||{};S.entities=this.requestBuilder.getChangedEntities([this,this.plugin],this.options),p.getInstance().addNQSEvent(y.Event.BUFFER_END,S),this._send(v.WillSendEvent.WILL_SEND_BUFFER,v.Service.BUFFER,S),_.notice(C,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+v.Service.BUFFER+" to "+S.playhead+" in "+S.bufferDuration+"ms"+(S.triggeredEvents?", eventsTriggered: "+S.triggeredEvents:""))},_errorListener:function(M){this._blockError(M.data.params)||(p.getInstance().addNQSEvent(y.Event.ERROR,M.data.params),this.fireError(M.data.params||{}),this._adSavedError(),this._adSavedManifest())},_blockError:function(M){var S=Date.now();return this._lastErrorParams&&this._lastErrorParams.errorCode===M.errorCode&&this._lastErrorParams.msg===M.msg&&this._lastErrorTime+5e3>S?(this._lastErrorTime=S,!0):(this._lastErrorTime=S,this._lastErrorParams=M,!1)},_stopListener:function(M){p.getInstance().addNQSEvent(y.Event.STOP,M.data.params),this.fireStop(M.data.params||{})},_isStopReady:function(M){let S=!1;if(!this.requestBuilder.lastSent.live&&this._adsAdapter&&this._adapter&&(!this._adapter.getPlayhead()||this._adapter.getPlayhead()>=this.requestBuilder.lastSent.mediaDuration-1)){let D=0,B=this.options["ad.expectedPattern"];if(B&&B.post&&B.post[0])D=B.post[0];else if(this.requestBuilder.lastSent.breaksTime){if(this.requestBuilder.lastSent.position===v.AdPosition.Postroll&&(D=this.requestBuilder.lastSent.givenAds),!D&&this.requestBuilder.lastSent.breaksTime){let R=this.requestBuilder.lastSent.breaksTime;R.length>0&&this.requestBuilder.lastSent.mediaDuration&&Math.round(R[R.length-1])+1>=this.requestBuilder.lastSent.mediaDuration&&(D=1)}}else S=!0;D<=this.playedPostrolls&&(S=!0)}else S=!0;return S},_videoEventListener:function(M){p.getInstance().addNQSEvent(y.Event.VIDEO_EVENT,M.data.params),this._send(v.WillSendEvent.WILL_SEND_VIDEO_EVENT,v.Service.VIDEO_EVENT,M.data.params)},_isExtraMetadataReady:function(M){if(!this.options.waitForMetadata||this.options.pendingMetadata.length<1)return!0;try{let S=this.requestBuilder.getGetters();return this.options.pendingMetadata.map((function(D){if(S.hasOwnProperty(D)){if(this[S[D]])return!!this[S[D]]();if(this.plugin[S[D]])return!!this.plugin[S[D]]()}}).bind(this)).indexOf(!1)<0}catch{_.warn("["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Error processing isExtraMetadataReady method.")}return!0},_isRequiredMetadataReady:function(){if(new Date().getTime()-this._adapter.chronos.join.startTime{var p=c(245),v=c(3948),A=c(6777);let{default:_}=c(9065);var m=v.extend({constructor:function(){this.dataExtractor=new p,this.key=this.getPreviousKey()},generateHashKey:function(){if(!this.key){var y=this.dataExtractor.getAllData();this.key=this._hashFunction(y),_.getInstance().getCoreStorage().setLocal("npawDeviceUUID",this.key)}},getKey:function(){return this.key||this.generateHashKey(),this.key},_hashFunction:function(y){var C=y;return typeof y!="string"&&(C=JSON.stringify(y)),A(C)},_reset:function(){this.key=void 0},getPreviousKey:function(){return _.getInstance().getCoreStorage().getLocal("npawDeviceUUID")}});n.exports=m},5901:(n,o,c)=>{var p=c(5292),v=c(1516);let{default:A}=c(6933);var _={registerAdsAdapter:function(m,y,C,T){if(y)if(T=T||"default",this.videos.existsVideo(T))this.videos.getVideo(T).mergeOptions(C),this.setAdsAdapter(new p(T,this.videos.getVideo(T),this,this.adapterTemplates,m,y),T);else{var U=new v(T,this,this.options,null,null);U.mergeOptions(C),this.videos.setVideo(U);var G=new p(T,U,this,this.adapterTemplates,m,y);this.setAdsAdapter(G,T)}else Log.error(AnalyticsTag,"Register Ads Adapter needs an adapter to initialize")},updateAdsAdapter:function(m,y){y=y||"default",m&&(videoObj=this.videos.getVideo(y),videoObj&&videoObj.getAdapter()&&(adsAdapter=videoObj.getAdapter().getAdapterClass(m),adsAdapter&&videoObj.setAdsAdapter(adsAdapter,this,!0)))},getAdsAdapter:function(m){m=m||"default";let y=this.videos.getVideo(m);return y!==void 0?y.getAdsAdapter():void 0},setAdsAdapter:function(m,y){y=y||"default",this.videos.getVideo(y).setAdsAdapter(m,this),A.getInstance().registeredAdsPlayer(!0)},removeAdsAdapter:function(m){m=m||"default",this.videos.existsVideo(m)&&this.videos.getVideo(m).removeAdsAdapter()}};n.exports=_},6014:(n,o,c)=>{var p=v,v={noConflict:function(){return v=p,this}};v.VERSION=c(9835),v.polyfills=c(4607),v.polyfills(),v.Object=c(3948),v.Emitter=c(1593);let{default:A}=c(7276);v.Log=A,v.Log.loadLevelFromUrl(),v.Util=c(2507),v.HybridNetwork=c(2995),v.Chrono=c(7680),v.Timer=c(4954),v.Constants=c(3782),v.Transform=c(2503),v.ResourceTransform=c(1151),v.CdnParser=c(3908),v.HlsParser=c(3168),v.DashParser=c(3831),v.LocationheaderParser=c(1657),v.Options=c(7061),v.Plugin=c(1527),v.Storage=c(470),v.RequestBuilder=c(2071),v.PlayheadMonitor=c(3381),v.Adapter=c(5292),v.adapters={},v.BackgroundDetector=c(9773),v.DeviceDetector=c(2635),v.UUIDGenerator=c(5804),v.registerAdapter=(function(_,m){this.adapters[_]=m}).bind(v),v.unregisterAdapter=(function(_){this.adapters[_]=null}).bind(v),n.exports=v},6075:(n,o,c)=>{"use strict";c.r(o),c.d(o,{default:()=>y});var p=c(108),v=c(9065),A=c(3555),_=c(2784),m=c(61);class y{constructor(T){this.readyToSend=!1,this.servicesToWait=[p.A.Service.INIT,p.A.Service.START],this.onWillSendVideoRequestListeners=[],this.pluginRef=T,this._requests=[],this._waitingForToken=[],this._waitingForMetadata=[]}shouldSendStats(){return this.readyToSend}sendRequest(T){if(v.default.getInstance().getFastDataSessionToken()==="")return void this._waitingForToken.push(T);this._waitingForToken.forEach(S=>this.prepareParams(S)),this._requests.push(...this._waitingForToken),this._waitingForToken=[];let U=T.getVideoKey(),G=T.getParams(),M=T.getService();for(let S of this.onWillSendVideoRequestListeners)S(M,U,G);this.prepareParams(T),this._requests.push(T),this._processRequests()}prepareParams(T){let U=T.getService();U!=p.A.Service.START&&U!=p.A.Service.PING||(T.setParam("pingTime",T.getParam("pingTime")||v.default.getInstance().getFastDataService().getPingTime()),v.default.getInstance().getCommonVariable("appAnalytics","isEnabled")&&T.setParam("sessionParent",T.getParam("sessionParent")||v.default.getInstance().getFastDataSessionToken()));let G=T.getVideoKey();this.pluginRef.videos.existsVideo(G)&&T.setParam("code",T.getParam("code")||this.pluginRef.videos.getVideo(G).getViewCode()),U!==p.A.Service.INIT&&U!==p.A.Service.START&&U!==p.A.Service.ERROR||v.default.getInstance().getCommonVariable("appAnalytics","isEnabled")&&(T.setParam("parentId",T.getParam("sessionRoot")),T.setParam("navContext",T.getParam("navContext")||v.default.getInstance().getCommonVariable("appAnalytics","context")))}buildRequest(T,U,G,M,S,D){G=G??_.Method.GET;let B=new A.default(T,U,"",G,M,S,D);return B.setMethod(G),B}_processRequests(){let T=this._requests;this._requests=[],T.forEach(U=>{if(this.servicesToWait.indexOf(U.getService())!==-1&&(this.readyToSend=!0),this.readyToSend){for(;this._waitingForMetadata.length;){let G=this._waitingForMetadata.shift();v.default.getInstance().pushData(v.default.getInstance().getOptions().offline?m.default.Consumer.PERSISTENT:m.default.Consumer.NQS,G.getService(),G.getMethod(),G.getParams(),G.getOnSuccess(),G.getOnFail())}v.default.getInstance().pushData(v.default.getInstance().getOptions().offline?m.default.Consumer.PERSISTENT:m.default.Consumer.NQS,U.getService(),U.getMethod(),U.getParams(),U.getOnSuccess(),U.getOnFail())}else this._waitingForMetadata.push(U)})}}},6083:n=>{n.exports={fireInit:function(o,c,p){p=p||"default",this.videos.getVideo(p).fireInit(o,c)},fireError:function(o,c,p,v,A,_){_=_||"default",this.videos.getVideo(_).fireError(o,c,p,v,A)},fireFatalError:function(o,c,p,v,A,_){_=_||"default",this.videos.getVideo(_).fireFatalError(o,c,p,v,A)},fireStop:function(o,c,p){p=p||"default",this.videos.getVideo(p).fireStop(o,c)},fireOfflineEvents:function(o,c){c=c||"default",this.videos.getVideo(c).fireOfflineEvents(o)}}},6424:(n,o,c)=>{var p=c(3948).extend({constructor:function(v,A){this.plugin=v,this.video=A,this.listenerReference=this._changeListener.bind(this),this.loadReference=this._loadListener.bind(this),this.isEnabled=!1,this.pageHeight=0,this.maxHeight=0,this.startDetection()},startDetection:function(){this.isEnabled||typeof window>"u"||typeof window.addEventListener!="function"||(window.addEventListener("scroll",this.listenerReference),window.addEventListener("resize",this.listenerReference),window.addEventListener("load",this.loadReference),this.isEnabled=!0)},stopDetection:function(){this.isEnabled&&typeof window<"u"&&typeof window.removeEventListener=="function"&&(window.removeEventListener("scroll",this.listenerReference),window.removeEventListener("resize",this.listenerReference),window.removeEventListener("load",this.loadReference),this.isEnabled=!1)},getScrollDepth:function(){var v=null;return this.maxHeight&&this.pageHeight&&(v=Math.min(Math.trunc(this.maxHeight/this.pageHeight*100),100)),v},_loadListener:function(){if(typeof document<"u"){var v=document.documentElement;v&&(this.pageHeight=Math.round(v.scrollHeight,v.clientHeight,v.offsetHeight),this.maxHeight=window.innerHeight,this._updateCompletionRate())}},_changeListener:function(){if(this.pageHeight){var v=this.maxHeight;this.maxHeight=Math.max(this.maxHeight,window.pageYOffset+window.innerHeight),v!==this.maxHeight&&this._updateCompletionRate()}var A=this.video.getAdsAdapter();A&&A.flags.isStarted&&(A.getIsVisible()?A.startChronoView():A.stopChronoView())},_updateCompletionRate:function(){setTimeout((function(){this.plugin.storage.setSession("pageScrollDepth",this.getScrollDepth())}).bind(this),3e3)}});n.exports=p},6598:(n,o,c)=>{"use strict";var p=c(525).freeze;o.XML_ENTITIES=p({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),o.HTML_ENTITIES=p({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),o.entityMap=o.HTML_ENTITIES},6777:n=>{n.exports=function(o){function c($,l){return $<>>32-l}function p($,l){var d,g,w,j,H;return w=2147483648&$,j=2147483648&l,H=(1073741823&$)+(1073741823&l),(d=1073741824&$)&(g=1073741824&l)?2147483648^H^w^j:d|g?1073741824&H?3221225472^H^w^j:1073741824^H^w^j:H^w^j}function v($,l,d,g,w,j,H){return $=p($,p(p(function(se,Z,be){return se&Z|~se&be}(l,d,g),w),H)),p(c($,j),l)}function A($,l,d,g,w,j,H){return $=p($,p(p(function(se,Z,be){return se&be|Z&~be}(l,d,g),w),H)),p(c($,j),l)}function _($,l,d,g,w,j,H){return $=p($,p(p(function(se,Z,be){return se^Z^be}(l,d,g),w),H)),p(c($,j),l)}function m($,l,d,g,w,j,H){return $=p($,p(p(function(se,Z,be){return Z^(se|~be)}(l,d,g),w),H)),p(c($,j),l)}function y($){var l,d="",g="";for(l=0;l<=3;l++)d+=(g="0"+($>>>8*l&255).toString(16)).substr(g.length-2,2);return d}var C,T,U,G,M,S,D,B,R,V=Array();for(V=function($){for(var l,d=$.length,g=d+8,w=16*((g-g%64)/64+1),j=Array(w-1),H=0,se=0;se>>29,j}(o=function($){$=$.replace(/rn/g,"n");for(var l="",d=0;d<$.length;d++){var g=$.charCodeAt(d);g<128?l+=String.fromCharCode(g):g>127&&g<2048?(l+=String.fromCharCode(g>>6|192),l+=String.fromCharCode(63&g|128)):(l+=String.fromCharCode(g>>12|224),l+=String.fromCharCode(g>>6&63|128),l+=String.fromCharCode(63&g|128))}return l}(o)),S=1732584193,D=4023233417,B=2562383102,R=271733878,C=0;C{var p=c(2507);let{default:v}=c(9065);var A={getFastDataConfig:function(){return this.fastDataTransform.response.msg},getHost:function(){let _=v.getInstance().getOptions().getFastDataHost();return this.fastDataTransform&&this.fastDataTransform.response&&this.fastDataTransform.response.host&&(_=this.fastDataTransform.response.host),p.addProtocol(p.stripProtocol(_),this.options["app.https"])},getFastDataHost:function(){return p.addProtocol(p.stripProtocol(v.getInstance().getOptions().getFastDataHost()),this.options["app.https"])},getSession:function(){var _=v.getInstance().getCoreStorage().getStorages("session");if(_==="undefined"&&(_=void 0),!_){var m=this.getStoredData();if(m)try{_=JSON.parse(m).q.c}catch{}}return _},getStorageHost:function(){let _=null,m=this.getStoredData();if(m)try{_=JSON.parse(m).q.h}catch{}return _&&p.addProtocol(_,this.options["app.https"])},getStoredData:function(){return v.getInstance().getCoreStorage().getStorages("data")},getDataTime:function(){return v.getInstance().getCoreStorage().getStorages("dataTime")},setStoredData:function(_){this.storage.setStorages("data",_)},setSession:function(_){this.storage.setStorages("session",_)},setDataTime:function(_){this.storage.setStorages("dataTime",_)}};n.exports=A},6933:(n,o,c)=>{"use strict";c.r(o),c.d(o,{default:()=>M});var p,v=c(2477),A=c.n(v),_=c(7276);(function(S){S.BLACK="\x1B[30m",S.RED="\x1B[31m",S.GREEN="\x1B[32m",S.YELLOW="\x1B[33m",S.BLUE="\x1B[34m",S.MAGENTA="\x1B[35m",S.CYAN="\x1B[36m",S.WHITE="\x1B[37m"})(p||(p={}));class m{static colorizeText(D,B){return`${B}${D}${this.RESET}`}static header(D){_.default.getLogLevel()<_.LogLevel.SILENT&&console.log(this.BOLD+D+this.RESET)}static log(D,B){_.default.getLogLevel()<_.LogLevel.SILENT&&console.log(D,B||"")}static logWithPrefix(D,B,R=1){if(_.default.getLogLevel()<_.LogLevel.SILENT){let V=B.repeat(R)+D;console.log(V)}}}m.logIdent=" ",m.BOLD="\x1B[1m",m.RESET="\x1B[0m";class y{constructor(D,B){this.eventType=D,this.params=B,this.columns=["Event","Params"]}generateRow(){return this.eventType.padEnd(15)+this.getParamsString().padEnd(15)}getParamsString(){if(!this.params)return m.colorizeText("Data not defined",p.YELLOW);let D=[];switch(this.eventType){case A().INIT:case A().START:this.params.player&&D.push(`Player: ${this.params.player}`),this.params.pluginVersion&&D.push(`Plugin Version: ${this.params.pluginVersion}`),this.params.playerStartupTime&&D.push(`Player Startup Time: ${this.params.playerStartupTime} ms`),this.params.playhead&&D.push(`Playhead: ${this.params.playhead}`),this.params.position&&D.push(`Position: ${this.params.position}`),this.params.breakNumber&&D.push(`Break Number: ${this.params.breakNumber}`),this.params.adAdapterVersion&&D.push(`Ad Adapter Version: ${this.params.adAdapterVersion}`),this.params.adDuration&&D.push(`Ad Duration: ${this.params.adDuration}`);break;case A().JOIN:this.params.rendition&&D.push(`Rendition: ${this.params.rendition}`),this.params.pingTime&&D.push(`Ping Time: ${this.params.pingTime} s`),this.params.playhead&&D.push(`Playhead: ${this.params.playhead}`),this.params.position&&D.push(`Position: ${this.params.position}`),this.params.breakNumber&&D.push(`Break Number: ${this.params.breakNumber}`),this.params.adJoinDuration&&D.push(`Ad Join Duration: ${this.params.adJoinDuration}`),this.params.adPlayhead&&D.push(`Ad Playhead: ${this.params.adPlayhead}`);break;case A().JOIN_TIME:this.params.joinDuration&&D.push(`Join Time: ${this.params.joinDuration} ms`),this.params.bitrate&&D.push(`Bitrate: ${(this.params.bitrate/1e6).toFixed(2)} MB/s`);break;case A().PAUSE:this.params.playhead&&D.push(`Playhead: ${this.params.playhead}`);break;case A().RESUME:this.params.playhead&&D.push(`Playhead: ${this.params.playhead}`),this.params.pauseDuration&&D.push(`Pause Duration: ${this.params.pauseDuration} ms`);break;case A().SEEK_BEGIN:break;case A().SEEK_END:this.params.seekDuration&&D.push(`Seek Duration: ${this.params.seekDuration} ms`);break;case A().BUFFER_BEGIN:break;case A().BUFFER_END:this.params.bufferDuration&&D.push(`Buffer Duration: ${this.params.bufferDuration} ms`);break;case A().ERROR:break;case A().STOP:this.params.playhead&&D.push(`Playhead: ${this.params.playhead}`),this.params.bitrate&&this.params.bitrate!==-1?D.push(`Bitrate: ${(this.params.bitrate/1e6).toFixed(2)} MB/s`):this.params.bitrate&&D.push(`Bitrate: ${this.params.bitrate}`),this.params.position&&D.push(`Position: ${this.params.position}`),this.params.breakNumber&&D.push(`Break Number: ${this.params.breakNumber}`),this.params.adPlayhead&&D.push(`Ad Playhead: ${this.params.adPlayhead}`),this.params.adJoinDuration&&D.push(`Ad Join Duration: ${this.params.adJoinDuration}`),this.params.adViewedDuration&&D.push(`Ad Viewed Duration: ${this.params.adViewedDuration}`),this.params.adTotalDuration&&D.push(`Ad Total Duration: ${this.params.adTotalDuration}`),this.params.adBitrate&&D.push(`Ad Bitrate: ${this.params.adBitrate}`);break;case A().VIDEO_EVENT:break;case A().QUARTILE:this.params.position&&D.push(`Position: ${this.params.position}`),this.params.breakNumber&&D.push(`Break Number: ${this.params.breakNumber}`),this.params.quartile&&D.push(`Quartile: ${this.params.quartile}`),this.params.adViewedDuration&&D.push(`Ad Viewed Duration: ${this.params.adViewedDuration}`);break;case A().PODSTART:this.params.position&&D.push(`Position: ${this.params.position}`),this.params.breakNumber&&D.push(`Break Number: ${this.params.breakNumber}`),this.params.adInsertionType&&D.push(`Ad Insertion Type: ${this.params.adInsertionType}`);break;case A().PODSTOP:this.params.position&&D.push(`Position: ${this.params.position}`),this.params.breakNumber&&D.push(`Break Number: ${this.params.breakNumber}`);case A().CLICK:case A().MANIFEST:}return D.length===0?m.colorizeText("Data not defined",p.YELLOW):D.join(" | ")}}var C=c(3782),T=c.n(C),U=c(1577),G=c(9065);let M=(()=>{class S{constructor(){this.integrationMessageColors={RED:"#FF1515",GREEN:"#0f0",YELLOW:"#F6D500"},this.balancerEnabled=!0,this.videoAnalyticsEnabled=!0,this.adsAnalyticsEnabled=!0,this.reportTimeoutDuration=S.defaultReportTimeout,this.reportTimeoutStarted=!1,this.runningOffline=!1,this.balancerInterceptedRequests=!1,this.successfulResponseFromSelector=!1,this.usedSelectorAPI=!1,this.activeSwitchingEnabled=!1,this.asDecisionPerformed=!1,this.switchedCdns=!1,this.cdnList=new Map,this.triedSendingBalancerStats=!1,this.mandatoryBalancerRequests=["cdn"],this.capturedEvents=[],this.successfulNQSRequests=new Set,this.hasPlayerRegistered=!1,this.triedSendingNQSStats=!1,this.mandatoryNQSRequests=[A().START,A().JOIN_TIME,"ping",A().STOP],this.shouldIgnoreAds=!1,this.capturedAdsEvents=[],this.successfulNQSAdsRequests=new Set,this.hasAdsPlayerRegistered=!1,this.triedSendingNQSAdStats=!1,this.mandatoryNQSAdsRequests=[T().Service.AD_START,T().Service.AD_MANIFEST,T().Service.AD_JOIN,T().Service.AD_STOP,T().Service.AD_POD_START,T().Service.AD_QUARTILE,T().Service.AD_POD_STOP].map(B=>B.slice(1))}static getInstance(B=!1){return this._instance&&!B||(this._instance=new S),this._instance}destroy(){this.clearReportTimeout(),this.cleanCdnList(),this.capturedEvents=[],this.successfulNQSRequests.clear(),this.reportTimeoutStarted=!1}start(B){B&&(this.npawPluginInstance=B),this.reportTimeoutStarted||(this.reportTimeout=setTimeout(()=>{this.report(),this.videoAnalyticsEnabled=!1,this.balancerEnabled=!1,this.adsAnalyticsEnabled=!1},this.reportTimeoutDuration),this.reportTimeoutStarted=!0)}setSettings(B){if(!B||typeof B!="object")return;let R={balancerEnabled:this.balancerEnabled,videoAnalyticsEnabled:this.videoAnalyticsEnabled,adsAnalyticsEnabled:this.adsAnalyticsEnabled,timeout:this.reportTimeoutDuration},V={balancerEnabled:B.balancerEnabled!==void 0?B.balancerEnabled:R.balancerEnabled,videoAnalyticsEnabled:B.videoAnalyticsEnabled!==void 0?B.videoAnalyticsEnabled:R.videoAnalyticsEnabled,adsAnalyticsEnabled:B.adsAnalyticsEnabled!==void 0?B.adsAnalyticsEnabled:R.adsAnalyticsEnabled,timeout:B.timeout!==void 0?B.timeout:R.timeout};JSON.stringify(R)!==JSON.stringify({balancerEnabled:V.balancerEnabled,videoAnalyticsEnabled:V.videoAnalyticsEnabled,adsAnalyticsEnabled:V.adsAnalyticsEnabled,timeout:V.timeout})&&(this.balancerEnabled=V.balancerEnabled,this.videoAnalyticsEnabled=V.videoAnalyticsEnabled,this.adsAnalyticsEnabled=V.adsAnalyticsEnabled,this.reportTimeoutDuration=V.timeout,this.setReportTimeout(this.reportTimeoutDuration))}clearReportTimeout(){clearTimeout(this.reportTimeout),this.reportTimeoutStarted=!1,this.reportTimeout=void 0}setOptions(B){B&&(B["ad.ignore"]&&(this.shouldIgnoreAds=U.default.parseBoolean(B["ad.ignore"])),B.offline&&(this.runningOffline=U.default.parseBoolean(B.offline)))}setBalancerEnabled(B){this.balancerEnabled=B??this.balancerEnabled}setVideoAnalyticsEnabled(B){this.videoAnalyticsEnabled=B??this.videoAnalyticsEnabled}setAdsAnalyticsEnabled(B){this.adsAnalyticsEnabled=B??this.adsAnalyticsEnabled}getReportTimeout(){return this.reportTimeoutDuration}setReportTimeout(B){B&&B>0&&(this.reportTimeoutDuration=B??this.reportTimeoutDuration,this.clearReportTimeout(),this.start())}cleanCdnList(){this.cdnList.clear()}addCdn(B,R){this.cdnList.set(B,R)}updateCdnInfo(B,R,V,$){if(this.balancerEnabled){let l=this.cdnList.get(B);l&&(l.setRequestsPerformed(R),l.setTrafficServerInBytes(V),l.setFailedRequests($))}}wasSelectorCommunicationSuccessful(B,R){this.successfulResponseFromSelector=B,R&&(this.apiErrorMessage=R)}setInterceptedRequests(B){this.balancerInterceptedRequests=B}setActiveSwitchingEnabled(B){this.activeSwitchingEnabled=B}wasActiveSwitchingDecisionPerformed(B){this.asDecisionPerformed=B}setSwitchedCdns(B){this.switchedCdns=B}usedSelectorAPIResponse(B){this.usedSelectorAPI=B}setTriedSendingBalancerStats(B){this.triedSendingBalancerStats=B}addNQSRequest(B){(this.videoAnalyticsEnabled||this.balancerEnabled)&&this.successfulNQSRequests.add(B)}addNQSEvent(B,R){this.videoAnalyticsEnabled&&this.capturedEvents.push(new y(B,R)),B==="stop"&&setTimeout(()=>{this.report(),this.clearReportTimeout()},500)}registeredPlayer(B){this.hasPlayerRegistered=B}setTriedSendingNQSStats(B){this.triedSendingNQSStats=B}addNQSAdRequest(B){this.adsAnalyticsEnabled&&this.successfulNQSAdsRequests.add(B)}addNQSAdEvent(B,R){this.adsAnalyticsEnabled&&this.capturedAdsEvents.push(new y(B,R))}registeredAdsPlayer(B){this.hasAdsPlayerRegistered=B}setTriedSendingNQSAdStats(B){this.triedSendingNQSAdStats=B}report(){if(this.balancerEnabled||this.videoAnalyticsEnabled||this.adsAnalyticsEnabled){let B="------- Certification Tool -------";m.header(B),this.apiErrorMessage==="ERROR_INVALID_ACCOUNT"?m.log("%cAccount code is invalid!","color: #FF1515; font-size: 12px; font-weight: bold;"):(this.logBalancerDiagnostic(),G.default.getInstance().isUsingLegacy()||(this.logVideoAnalyticsDiagnostic(),this.logAdsAnalyticsDiagnostic())),this.videoAnalyticsEnabled=!1,this.balancerEnabled=!1,this.adsAnalyticsEnabled=!1,this.clearReportTimeout(),m.header("".padEnd(B.length,"-"))}}logBalancerDiagnostic(){var B,R;if(!this.balancerEnabled||(R=(B=this.npawPluginInstance)===null||B===void 0?void 0:B.isBalancerEnabled())!==null&&R!==void 0&&!R)return;let V=Array.from(this.successfulNQSRequests).map(H=>H.slice(1)),$=this.mandatoryBalancerRequests.some(H=>V.includes(H)),l=this.mandatoryBalancerRequests.filter(H=>!V.includes(H));if(m.header("Balancer Diagnostic"),m.logWithPrefix("Intercepted requests: "+(this.balancerInterceptedRequests?m.colorizeText("Yes",p.GREEN):m.colorizeText("No",p.RED)),m.logIdent),this.runningOffline?m.logWithPrefix("Ignoring Balancer stats since running in offline mode",m.logIdent):this.triedSendingBalancerStats?m.logWithPrefix("Any event sent to server: "+($?m.colorizeText("Yes",p.GREEN):m.colorizeText("No",p.RED)),m.logIdent):m.logWithPrefix("Reached stats server: Unknown",m.logIdent),!this.runningOffline&&l.length>0&&this.triedSendingBalancerStats&&m.logWithPrefix(m.colorizeText("Missing requests: "+l.join(", "),p.YELLOW),m.logIdent),m.logWithPrefix("Request to the Selector API: "+(this.successfulResponseFromSelector?m.colorizeText("Successful",p.GREEN):m.colorizeText("Unsuccessful",p.RED)),m.logIdent),this.apiErrorMessage&&!this.successfulResponseFromSelector&&m.logWithPrefix(this.getApiErrorMessage(),m.logIdent,2),m.logWithPrefix("Took decision based on Selector API: "+(this.usedSelectorAPI?m.colorizeText("Yes",p.GREEN):m.colorizeText("No",p.RED)),m.logIdent),this.activeSwitchingEnabled?m.logWithPrefix("Active switching decision: "+(this.asDecisionPerformed?m.colorizeText("Performed",p.GREEN):m.colorizeText("Not performed",p.RED)),m.logIdent):m.logWithPrefix("Active switching decision: "+m.colorizeText("Active Switching Disabled!",p.YELLOW),m.logIdent),m.logWithPrefix("CDN List: ",m.logIdent),this.cdnList.size>0){let H=this.cdnList.values().next().value.columns.map(se=>se.padEnd(18)).join("");m.logWithPrefix(H,m.logIdent,2)}else m.logWithPrefix(m.colorizeText("The list is empty!",p.RED),m.logIdent,2);for(let H of this.cdnList.values()){let se=H.generateRow();m.log(m.logIdent.repeat(2)+se.row,"color: "+se.color)}let d=Array.from(this.cdnList.values()).filter(H=>H.getFailedRequestsPercentage()>30).length,g=this.successfulResponseFromSelector&&this.balancerInterceptedRequests&&this.usedSelectorAPI&&this.cdnList.size>0&&(!this.triedSendingBalancerStats||$),w=this.integrationMessageColors.YELLOW,j="%cCDN Balancer might not be integrated!";g?this.triedSendingBalancerStats&&l.length===0&&dd.slice(1)),R=this.mandatoryNQSRequests.filter(d=>!B.includes(d));if(m.header("Video Analytics Diagnostic"),m.logWithPrefix("Events sent to server/storage: "+(B.length!==0?m.colorizeText("Yes",p.GREEN):m.colorizeText("No",p.RED)),m.logIdent),m.logWithPrefix("All mandatory events sent to server/storage: "+(R.length===0?m.colorizeText("Yes",p.GREEN):m.colorizeText("No",p.RED)),m.logIdent),R.length>0&&this.triedSendingNQSStats&&m.logWithPrefix("Missing stats requests: "+m.colorizeText(R.join(", "),p.RED),m.logIdent),m.logWithPrefix("Was able to capture events: "+(this.capturedEvents.length>0?m.colorizeText("Yes",p.GREEN):m.colorizeText("No",p.RED)),m.logIdent),m.logWithPrefix("Captured events:",m.logIdent),this.capturedEvents.length>0){let d=this.capturedEvents[0].columns.map(g=>g.padEnd(15)).join("");m.logWithPrefix(d,m.logIdent,2)}else m.logWithPrefix(m.colorizeText("No events captured!",p.RED),m.logIdent,2);for(let d of this.capturedEvents)m.logWithPrefix(d.generateRow(),m.logIdent,2);let V=this.hasPlayerRegistered&&B.length!==0&&this.capturedEvents.length>0,$=this.integrationMessageColors.YELLOW,l="%cVideo Analytics might not be integrated!";V?this.triedSendingNQSStats&&R.length===0&&(l="%cVideo Analytics is integrated!",$=this.integrationMessageColors.GREEN):(l="%cVideo Analytics is NOT integrated!",$=this.integrationMessageColors.RED),m.log(l,`color: ${$}; font-size: 12px; font-weight: bold;`)}logAdsAnalyticsDiagnostic(){if(!this.adsAnalyticsEnabled)return;let B=Array.from(this.successfulNQSAdsRequests).map(V=>V.slice(1)),R=this.mandatoryNQSAdsRequests.filter(V=>!B.includes(V));if(m.header("Ads Analytics Diagnostic"),this.shouldIgnoreAds&&m.log("%cIgnoring Ads Analytics because ad.ignore option is set to true",`color: ${this.integrationMessageColors.YELLOW}; font-size: 12px; font-weight: bold;`),this.hasAdsPlayerRegistered||B.length!==0){if(m.logWithPrefix("Events sent to server/storage: "+(B.length!==0?m.colorizeText("Yes",p.GREEN):m.colorizeText("No",p.RED)),m.logIdent),m.logWithPrefix("All mandatory events sent to server/storage: "+(R.length===0?m.colorizeText("Yes",p.GREEN):m.colorizeText("No",p.RED)),m.logIdent),R.length>0&&this.triedSendingNQSAdStats&&m.logWithPrefix("Missing ad stats requests: "+m.colorizeText(R.join(", "),p.RED),m.logIdent),m.logWithPrefix("Was able to capture ads events: "+(this.capturedAdsEvents.length>0?m.colorizeText("Yes",p.GREEN):m.colorizeText("No",p.RED)),m.logIdent),m.logWithPrefix("Captured events:",m.logIdent),this.capturedAdsEvents.length>0){let d=this.capturedAdsEvents[0].columns.map(g=>g.padEnd(15)).join("");m.logWithPrefix(d,m.logIdent,2)}else m.logWithPrefix(m.colorizeText("No events captured!",p.RED),m.logIdent,2);for(let d of this.capturedAdsEvents)m.logWithPrefix(d.generateRow(),m.logIdent,2);let V=(this.hasAdsPlayerRegistered||B.length!=0)&&this.capturedAdsEvents.length>0,$=this.integrationMessageColors.YELLOW,l="%cAds Analytics might not be integrated!";V?R.length===0&&(l="%cAds Analytics is integrated!",$=this.integrationMessageColors.GREEN):(l="%cAds Analytics is NOT integrated!",$=this.integrationMessageColors.RED),m.log(l,`color: ${$}; font-size: 12px; font-weight: bold;`)}else m.log("%cIgnoring Ads Analytics because no ads adapter was registered",`color: ${this.integrationMessageColors.YELLOW}; font-size: 12px; font-weight: bold;`)}getApiErrorMessage(){return this.apiErrorMessage==="ERROR_CONFIGURATION_NOT_FOUND"?m.colorizeText(`${this.apiErrorMessage} - Default profile not set or profile doesn't exist`,p.YELLOW):this.apiErrorMessage}}return S.defaultReportTimeout=3e5,S})()},7061:(n,o,c)=>{let p=c(3948),v=c(3398),{default:A}=c(7276),_=c(7939),m=c(8472),y=c(9637),{AnalyticsTag:C}=c(2784);var T=p.extend({constructor:function(U){this.enabled=!0,this.authToken=void 0,this.authType="Bearer",this.preventZombieViews=!0,this.offline=!1,this.referer=void 0,this.referral=void 0,this.disableCookies=!0,this.forceCookies=!1,this.disableStorage=!1,this["user.email"]=void 0,this["user.type"]=void 0,this["user.name"]=void 0,this.userId=void 0,this.profileId=void 0,this["user.obfuscateIp"]=!1,this["user.anonymousId"]=void 0,this["user.privacyProtocol"]=void 0,this["parse.manifest"]=!1,this["parse.manifest.auth"]={},this["parse.cdnNameHeader"]=["x-cdn-forward"],this["parse.cdnNodeHeader"]="",this["parse.cdnNode"]=!1,this["parse.cdnNode.list"]=["Akamai","Amazon","Cloudfront","Level3","Fastly","Highwinds","Telefonica","Edgecast","NosOtt"],this["parse.fdsResponseHost"]=void 0,this["parse.cdnSwitchHeader"]=!1,this["parse.cdnTTL"]=60,this["network.ip"]=void 0,this["network.isp"]=void 0,this["network.connectionType"]=void 0,this["device.id"]=void 0,this["device.code"]=void 0,this["device.model"]=void 0,this["device.brand"]=void 0,this["device.type"]=void 0,this["device.name"]=void 0,this["device.osName"]=void 0,this["device.osVersion"]=void 0,this["device.browserName"]=void 0,this["device.browserVersion"]=void 0,this["device.browserType"]=void 0,this["device.browserEngine"]=void 0,this["device.EDID"]=void 0,this["device.isAnonymous"]=!1,this["content.transactionCode"]=void 0,this["content.resource"]=void 0,this["content.isLive"]=void 0,this["content.isLive.noSeek"]=!1,this["content.isLive.noMonitor"]=!1,this["content.title"]=void 0,this["content.program"]=void 0,this["content.duration"]=void 0,this["content.fps"]=void 0,this["content.segmentDuration"]=void 0,this["content.bitrate"]=void 0,this["content.totalBytes"]=void 0,this["content.sendTotalBytes"]=!1,this["content.throughput"]=void 0,this["content.rendition"]=void 0,this["content.cdn"]=void 0,this["content.cdnNode"]=void 0,this["content.cdnType"]=void 0,this["content.metadata"]={},this["content.metrics"]={},this["content.streamingProtocol"]=void 0,this["content.transportFormat"]=void 0,this["content.package"]=void 0,this["content.saga"]=void 0,this["content.tvShow"]=void 0,this["content.season"]=void 0,this["content.episodeTitle"]=void 0,this["content.channel"]=void 0,this["content.id"]=void 0,this["content.imdbId"]=void 0,this["content.gracenoteId"]=void 0,this["content.type"]=void 0,this["content.genre"]=void 0,this["content.language"]=void 0,this["content.autodetect.language"]=!0,this["content.subtitles"]=void 0,this["content.autodetect.subtitles"]=!0,this["content.contractedResolution"]=void 0,this["content.cost"]=void 0,this["content.price"]=void 0,this["content.playbackType"]=void 0,this["content.drm"]=void 0,this["content.encoding.videoCodec"]=void 0,this["content.encoding.audioCodec"]=void 0,this["content.encoding.codecSettings"]=void 0,this["content.encoding.codecProfile"]=void 0,this["content.encoding.containerFormat"]=void 0,this["ad.metadata"]={},this["ad.campaign"]=void 0,this["ad.creativeId"]=void 0,this["ad.provider"]=void 0,this["ad.resource"]=void 0,this["ad.title"]=void 0,this["ad.duration"]=void 0,this["ad.expectedPattern"]=void 0,this["ad.givenAds"]=void 0,this["ad.breaksTime"]=void 0,this["ad.expectedBreaks"]=void 0,this["ad.givenBreaks"]=void 0,this["ad.ignore"]=!1,this["ad.blockerDetected"]=void 0,this["ad.postRollTimeout"]=1e3,this["app.name"]=void 0,this["app.releaseVersion"]=void 0,this["app.https"]=!0,this["background.enabled"]=!0,this["background.settings"]=void 0,this["background.settings.android"]="stop",this["background.settings.iOS"]="stop",this["background.settings.desktop"]=void 0,this["background.settings.tv"]="stop",this["background.settings.playstation"]="stop",this["smartswitch.configCode"]=void 0,this["smartswitch.groupCode"]=void 0,this["smartswitch.contractCode"]=void 0,this["content.customDimensions"]={},this["content.customDimension.1"]=void 0,this["content.customDimension.2"]=void 0,this["content.customDimension.3"]=void 0,this["content.customDimension.4"]=void 0,this["content.customDimension.5"]=void 0,this["content.customDimension.6"]=void 0,this["content.customDimension.7"]=void 0,this["content.customDimension.8"]=void 0,this["content.customDimension.9"]=void 0,this["content.customDimension.10"]=void 0,this["content.customDimension.11"]=void 0,this["content.customDimension.12"]=void 0,this["content.customDimension.13"]=void 0,this["content.customDimension.14"]=void 0,this["content.customDimension.15"]=void 0,this["content.customDimension.16"]=void 0,this["content.customDimension.17"]=void 0,this["content.customDimension.18"]=void 0,this["content.customDimension.19"]=void 0,this["content.customDimension.20"]=void 0,this["ad.customDimension.1"]=void 0,this["ad.customDimension.2"]=void 0,this["ad.customDimension.3"]=void 0,this["ad.customDimension.4"]=void 0,this["ad.customDimension.5"]=void 0,this["ad.customDimension.6"]=void 0,this["ad.customDimension.7"]=void 0,this["ad.customDimension.8"]=void 0,this["ad.customDimension.9"]=void 0,this["ad.customDimension.10"]=void 0,this.forceInit=!1,this["session.metrics"]={},this["session.context"]=!1,this["errors.fatal"]=[],this["errors.nonFatal"]=[],this["errors.ignore"]=[],this["pause.ignoreSmallEvents"]=!0,this["check.playerExists"]=!0,this["check.appAnalytics.autoBegin"]=!1,this["check.appAnalytics.enabled"]=!0,this["debug.playerLogs.enabled"]=!1,this["debug.pluginLogs.enabled"]=!1,this["check.videoAnalytics.enabled"]=!0,this["lma.refresh.configuration.enabled"]=!1,this["lma.refresh.configuration.seconds"]=300,this.linkedViewId=void 0,this.waitForMetadata=!1,this.pendingMetadata=[],this.method=y.GET,this["playhead.monitor"]=!0,this["readyState.monitor"]=!0,this["adapters.overwrite"]=!1,this["adapters.templates"]={},this["adapters.properties"]={},this.enableExtraMetricCollection=!1,this.renditionQueryInterval=250,this.enableLegacyBufferBehaviour=!1,this.ignoreSeekInTimeUpdate=!1,this.checkVideoBufferInPlayheadMonitor=!1,this.setOptions(U)},setOptions:function(U,G,M=!1){let S,D=!1;if(G===void 0&&(G=this,D=!0,S=new v),U!==void 0)for(var B in U){let R,V=!1;D&&(this.hasOwnProperty(B)||(S.exists(B)?(R=S.getNewName(B),V=!0):typeof U[B]!="function"&&A.warn(C,'The option "'+B+'" does not exist, so it cannot be set'))),M||typeof G[B]=="object"&&G[B]!==void 0&&!Array.isArray(G[B])&&B==="parse.cdnNode.list"?this.setOptions(U[B],G[B]):V?G[R]=U[B]:G[B]=U[B]}},setExtraParams:function(U){if(typeof U=="object"&&U.length){for(U.length>=20&&(U=U.slice(0,20));U.length<20;)U.push(void 0);U.forEach((G,M)=>{this["content.customDimension."+(M+1).toString()]=G})}},setCustomDimensions:function(){T.prototype.setExtraParams.apply(this,arguments)},setAdExtraParams:function(U){if(typeof U=="object"&&U.length){for(U.length>=10&&(U=U.slice(0,10));U.length<10;)U.push(void 0);U.forEach((G,M)=>{this["ad.customDimension."+(M+1).toString()]=G})}},setAdCustomDimensions:function(){T.prototype.setAdExtraParams.apply(this,arguments)},setEnableLegacyBufferBehaviour:function(){T.prototype.setEnableLegacyBufferBehaviour.apply(this,arguments)}},{StreamingProtocol:m,TransportFormat:_,RequestMethod:y});n.exports=T},7062:n=>{n.exports={DATA:"/data",ADAPTERS:"/adapters",CONFIGURATION:"/configuration",APP_ANALYTICS_PLUGIN_LOGS:"/infinity/session/pluginLogs",SESSION_PLUGIN_LOGS:"/infinity/session/pluginLogs",VIDEO_PLUGIN_LOGS:"/infinity/video/pluginLogs",INIT:"/init",START:"/start",JOIN:"/joinTime",DATA_OBJECT:"/data",PAUSE:"/pause",RESUME:"/resume",SEEK:"/seek",BUFFER:"/bufferUnderrun",ERROR:"/error",STOP:"/stop",PING:"/ping",CDN:"/cdn",VIDEO_EVENT:"/infinity/video/event",AD_INIT:"/adInit",AD_START:"/adStart",AD_JOIN:"/adJoin",AD_PAUSE:"/adPause",AD_RESUME:"/adResume",AD_BUFFER:"/adBufferUnderrun",AD_STOP:"/adStop",AD_CLICK:"/adClick",AD_ERROR:"/adError",AD_MANIFEST:"/adManifest",AD_POD_START:"/adBreakStart",AD_POD_STOP:"/adBreakStop",AD_QUARTILE:"/adQuartile",EVENT:"/infinity/session/event",SESSION_START:"/infinity/session/start",SESSION_STOP:"/infinity/session/stop",NAV:"/infinity/session/nav",BEAT:"/infinity/session/beat",OFFLINE_EVENTS:"/offlineEvents"}},7086:(n,o,c)=>{var p={Event:c(2477)};n.exports=p},7255:(n,o,c)=>{var p=c(3948).extend({constructor:function(){this.reset()},reset:function(){this.isStarted=!1,this.isJoined=!1,this.isPaused=!1,this.isSeeking=!1,this.isBuffering=!1,this.isVideoStateBuffering=!1,this.isEnded=!1,this.isStopped=!1,this.lastQuartileSent=0,this.isAdPaused=!1}});n.exports=p},7276:(n,o,c)=>{"use strict";var p;c.r(o),c.d(o,{LogLevel:()=>p,default:()=>v}),function(A){A[A.SILENT=6]="SILENT",A[A.ERROR=5]="ERROR",A[A.WARNING=4]="WARNING",A[A.NOTICE=3]="NOTICE",A[A.DEBUG=2]="DEBUG",A[A.VERBOSE=1]="VERBOSE"}(p||(p={}));class v{static report(_,m,y,C){if(typeof console<"u"&&console.log){C=C||"darkcyan";let U={5:"e",4:"w",3:"n",2:"d",1:"v"}[y=y||p.NOTICE],G=`[NPAW - ${_}]`+this._getCurrentTime()+" "+U+":";if(v.logLevel<=y)if(v.plainLogs||typeof document<"u"&&document.documentMode)this._plainReport(m,G);else{let M;M=y===p.ERROR&&console.error?console.error:y===p.WARNING&&console.warn?console.warn:y===p.DEBUG&&console.debug?console.debug:console.log,G="%c"+G,T=m,Object.prototype.toString.call(T)==="[object Array]"?(m.splice(0,0,G,"color: "+C),M.apply(console,m)):M.call(console,G,"color: "+C,m)}}var T}static _getCurrentTime(){let _=new Date;return"["+("0"+_.getDate()).slice(-2)+":"+("0"+_.getMinutes()).slice(-2)+":"+("0"+_.getSeconds()).slice(-2)+"."+("00"+_.getMilliseconds()).slice(-3)+"]"}static _plainReport(_,m){if(_ instanceof Array)for(let y in _)this._plainReport(_[y],m);else typeof _=="string"?console.log(m+" "+_):(console.log(m+" "),console.log(_))}static setLogLevel(_){this.logLevel=_}static getLogLevel(){return this.logLevel}static error(_,...m){this.report(_,[].slice.call(arguments,1),p.ERROR,"darkred")}static warn(_,...m){this.report(_,[].slice.call(arguments,1),p.WARNING,"darkorange")}static notice(_,...m){this.report(_,[].slice.call(arguments,1),p.NOTICE,"darkgreen")}static debug(_,...m){this.report(_,[].slice.call(arguments,1),p.DEBUG,"indigo")}static verbose(_,...m){this.report(_,[].slice.call(arguments,1),p.VERBOSE,"navy")}static loadLevelFromUrl(){typeof window<"u"&&window.location&&this._parseLevelFromUrl(window.location.search)}static _parseLevelFromUrl(_){if(_){let m=/\?.*&*npaw-debug=(.+)/i.exec(_);m!==null&&(this.logLevel=Number(m[1])),/\?.*&*npaw-debug=plain/i.exec(_)!==null&&(this.plainLogs=!0)}}}v.logLevel=p.ERROR,v.plainLogs=!1},7286:n=>{n.exports={cdnName:"CLOUDFRT",parsers:[{element:"host",headerName:"X-Amz-Cf-Id",regex:/(.+)/},{element:"type",headerName:"X-Cache",regex:/(\S+)\s.+/}],parseType:function(o){switch(o){case"Hit":return 1;case"Miss":return 2;default:return 0}}}},7355:(n,o,c)=>{let p=c(2507),{default:v}=c(7276),A=c(9835),_=c(8472),m=c(7939),y=c(3782),{default:C}=c(9065),{AnalyticsTag:T}=c(2784),{default:U}=c(61);var G={getPlayhead:function(){var M=this._safeGetterAdapter("getPlayhead");return p.parseNumber(M,0)},getPlayrate:function(){let M=0;if(this._adapter&&this._adapter.flags&&!this._adapter.flags.isPaused)try{M=this._adapter.getPlayrate()}catch(S){v.warn(T,"An error occured while calling getPlayrate",S)}return M},getFramesPerSecond:function(){return this._safeGetterAdapter("getFramesPerSecond","content.fps")},getSegmentDuration:function(){return this.hybridNetwork.getSegmentDuration()||this._safeGetterAdapter("getSegmentDuration","content.segmentDuration")},getDroppedFrames:function(){let M=this._safeGetterAdapter("getDroppedFrames");return M||(M=this.getWebkitDroppedFrames()),p.parseNumber(M,0)},getWebkitDroppedFrames:function(){if(this._adapter&&this._adapter.tag&&this._adapter.tag.webkitDroppedFrameCount)return this._adapter.tag.webkitDroppedFrameCount},getDuration:function(){let M=this._safeGetterAdapter("getDuration","content.duration")||void 0;return p.parseNumber(Math.round(M),void 0)},getBitrate:function(){let M=this._safeGetterAdapter("getBitrate","content.bitrate");return M&&M!==-1||(M=this.getWebkitBitrate()),p.parseNumber(M,-1)},getTotalBytes:function(){return this.options["content.sendTotalBytes"]?this._safeGetterAdapter("getTotalBytes","content.totalBytes"):void 0},getWebkitBitrate:function(){try{if(this._adapter&&this._adapter.tag&&this._adapter.tag.webkitVideoDecodedByteCount){let S=this._adapter.tag.webkitVideoDecodedByteCount;if(this._lastWebkitBitrate){var M=this._adapter.tag.webkitVideoDecodedByteCount-this._lastWebkitBitrate;S=Math.round(M/this.plugin.fastDataTransform.response.pingTime*8)}return this._lastWebkitBitrate=this._adapter.tag.webkitVideoDecodedByteCount,S!==0?S:-1}}catch{}return-1},getThroughput:function(){let M=this._safeGetterAdapter("getThroughput","content.throughput");return p.parseNumber(M,-1)},getRendition:function(){return this._safeGetterAdapter("getRendition","content.rendition")},getTitle:function(){return this._safeGetterAdapter("getTitle","content.title")},getTitle2:function(){return this._safeGetterAdapter("getTitle2","content.program")},getIsLive:function(){let M=this.options["content.isLive"];return M||M===!1||(M=this._safeGetterAdapter("getIsLive")||!1),M},getResource:function(){return this._safeGetterAdapter("getResource","content.resource")},getParsedResource:function(){let M=this.plugin.resourceTransform.getResource();return M=M||this._safeGetterAdapter("getURLToParse"),M===this.getResource()?void 0:M},getTransactionCode:function(){return this.options["content.transactionCode"]},getMetadata:function(){return this.options["content.metadata"]},getPlayerVersion:function(){return this._safeGetterAdapter("getPlayerVersion")||""},getPlayerName:function(){return this._safeGetterAdapter("getPlayerName")||""},getCdn:function(){let M;return M=C.getInstance().getCommonVariable(U.Products.BALANCER,U.BalancerVariables.AS_ENABLED)?"ACTVSWIT":this.plugin.resourceTransform.getCdnName(),M||this.options["content.cdn"]},getProfileName:function(){return C.getInstance().getCommonVariable(U.Products.BALANCER,U.BalancerVariables.PROFILE_NAME)},getBucketName:function(){return C.getInstance().getCommonVariable(U.Products.BALANCER,U.BalancerVariables.BUCKET)},getPluginVersion:function(){return this.getAdapterVersion()},getAdapterVersion:function(){return this._safeGetterAdapter("getVersion")},getCdnTraffic:function(){return this._safeGetterAdapter("getCdnTraffic")||this.hybridNetwork.getCdnTraffic()},getMultiCdnInfo:function(){return this.hybridNetwork.getMultiCdnInfo()},getBalancerResponseId:function(){return this.hybridNetwork.getBalancerResponseId()},getP2PTraffic:function(){return this._safeGetterAdapter("getP2PTraffic")||this.hybridNetwork.getP2PTraffic()},getUploadTraffic:function(){return this._safeGetterAdapter("getUploadTraffic")||this.hybridNetwork.getUploadTraffic()},getIsP2PEnabled:function(){return this._safeGetterAdapter("getIsP2PEnabled")||this.hybridNetwork.getIsP2PEnabled()},getStreamingProtocol:function(){let M=this.options["content.streamingProtocol"];if(M){for(var S in _)if(_[S]===M)return M}},getTransportFormat:function(){let M=this.options["content.transportFormat"];if(!M&&this.options["parse.manifest"]&&(M=this.plugin.resourceTransform.getTransportFormat()),M){for(let S in m)if(m[S]===M)return M}},getHouseholdId:function(){return this._safeGetterAdapter("getHouseholdId")},getLatency:function(){return this.getIsLive()?this._safeGetterAdapter("getLatency"):void 0},getPacketLoss:function(){return this._safeGetterAdapter("getPacketLoss")},getPacketSent:function(){return this._safeGetterAdapter("getPacketSent")},getVideoMetrics:function(){return p.getMetricsFrom(this._adapter?this._adapter.getMetrics():void 0,this.options["content.metrics"])},getPlayerStartupTime:function(){return this.plugin.browserLoadTimes.getPlayerStartupTime()},getJoinDuration:function(){return this._adapter?this._adapter.chronos.join.getDeltaTime(!1):-1},getBufferDuration:function(){return this._adapter?this._adapter.chronos.buffer.getDeltaTime(!1):-1},getSeekDuration:function(){return this._adapter?this._adapter.chronos.seek.getDeltaTime(!1):-1},getPauseDuration:function(){return this._adapter?this._adapter.chronos.pause.getDeltaTime(!1):0},getPackage:function(){return this.options["content.package"]},getSaga:function(){return this.options["content.saga"]},getTvShow:function(){return this.options["content.tvShow"]},getSeason:function(){return this.options["content.season"]},getEpisodeTitle:function(){return this.options["content.episodeTitle"]},getChannel:function(){return this.options["content.channel"]},getID:function(){return this.options["content.id"]},getImdbId:function(){return this.options["content.imdbId"]},getGracenoteID:function(){return this.options["content.gracenoteId"]},getType:function(){return this.options["content.type"]},getGenre:function(){return this.options["content.genre"]},getVideoLanguage:function(){return this.options["content.language"]},getSubtitles:function(){return this.options["content.subtitles"]},getContractedResolution:function(){return this.options["content.contractedResolution"]},getCost:function(){return this.options["content.cost"]},getPrice:function(){return this.options["content.price"]},getPlaybackType:function(){let M=this.options["content.playbackType"];if(!M){let S=this.options["content.isLive"];typeof S!="boolean"&&(S=this._safeGetterAdapter("getIsLive")),typeof S=="boolean"&&(M=S?"Live":"VoD")}return M},getDRM:function(){return this.options["content.drm"]},getVideoCodec:function(){return this._safeGetterAdapter("getVideoCodec","content.encoding.videoCodec")},getAudioCodec:function(){return this._safeGetterAdapter("getAudioCodec","content.encoding.audioCodec")},getCodecSettings:function(){return this.options["content.encoding.codecSettings"]},getCodecProfile:function(){return this.options["content.encoding.codecProfile"]},getContainerFormat:function(){return this.options["content.encoding.containerFormat"]},getLinkedViewId:function(){return this.options.linkedViewId},_safeGetterAdapter:function(M,S){let D;if(S&&this.options[S])D=this.options[S];else try{this._adapter&&typeof this._adapter[M]=="function"&&(D=this._adapter[M]())}catch(B){v.warn(T,"An error occured while calling "+M,B)}return D||void 0},getCustomDimensions:function(){let M=this.options["content.customDimensions"];return typeof M=="object"?M:void 0},getAdExtraparam1:function(){return this.options["ad.customDimension.1"]},getAdExtraparam2:function(){return this.options["ad.customDimension.2"]},getAdExtraparam3:function(){return this.options["ad.customDimension.3"]},getAdExtraparam4:function(){return this.options["ad.customDimension.4"]},getAdExtraparam5:function(){return this.options["ad.customDimension.5"]},getAdExtraparam6:function(){return this.options["ad.customDimension.6"]},getAdExtraparam7:function(){return this.options["ad.customDimension.7"]},getAdExtraparam8:function(){return this.options["ad.customDimension.8"]},getAdExtraparam9:function(){return this.options["ad.customDimension.9"]},getAdExtraparam10:function(){return this.options["ad.customDimension.10"]},getPluginInfo:function(){return JSON.stringify({lib:A,adapter:this.getAdapterVersion(),adAdapter:this.getAdAdapterVersion()})},getAccountCode:function(){return C.getInstance().getFastDataService().getAccountCode()},getUsername:function(){return this.options.userId?this.options.userId:this.options["user.name"]},getProfileId:function(){return this.options.profileId},getEmail:function(){return this.options["user.email"]},getNodeHost:function(){return this.options["content.cdnNode"]||this.plugin.resourceTransform.getNodeHost()},getNodeType:function(){return this.options["content.cdnType"]||this.plugin.resourceTransform.getNodeType()},getNodeTypeString:function(){return this.plugin.resourceTransform.getNodeTypeString()},getRequestNumber:function(){return Math.random()},getOfflineView:function(){let M;return this.plugin.offlineStorage&&(M=this.plugin.offlineStorage.getView()),M},getSmartswitchConfigCode:function(){return this.options["smartswitch.configCode"]},getSmartswitchGroupCode:function(){return this.options["smartswitch.groupCode"]},getSmartswitchContractCode:function(){return this.options["smartswitch.contractCode"]},controlPlayerExists:function(){return this.options["check.playerExists"]},ignorePauseSmallEvents:function(){return this.options["pause.ignoreSmallEvents"]},getAdPlayerVersion:function(){return this._safeGetterAdsAdapter("getPlayerVersion")||""},getAdPosition:function(){let M=y.AdPosition.Preroll;if(this._adsAdapter)try{var S=this._adsAdapter.getPosition();y.AdPosition.Preroll!==S&&y.AdPosition.Midroll!==S&&y.AdPosition.Postroll!==S||(M=S)}catch(D){v.warn(T,"An error occured while calling getAdPosition",D)}return!M&&this._adapter&&(M=this._adapter.flags.isJoined?y.AdPosition.Midroll:y.AdPosition.Preroll),M},getAdNumber:function(){return this.requestBuilder.lastSent.adNumber||0},getAdNumberInBreak:function(){return this.requestBuilder.lastSent.adNumberInBreak||0},getBreakNumber:function(){return this.requestBuilder.lastSent.breakNumber||0},getAdPlayhead:function(){let M=this._safeGetterAdsAdapter("getPlayhead");return p.parseNumber(M,0)},getAdDuration:function(){let M=this._safeGetterAdsAdapter("getDuration","ad.duration");return p.parseNumber(M,0)},getAdBitrate:function(){let M=this._safeGetterAdsAdapter("getBitrate");return M&&M!==-1||(M=this.getWebkitAdBitrate()),p.parseNumber(M,-1)},getWebkitAdBitrate:function(){try{if(this._adsAdapter&&this._adsAdapter.tag&&this._adsAdapter.tag.webkitVideoDecodedByteCount){let M=this._adsAdapter.tag.webkitVideoDecodedByteCount;if(this._lastWebkitAdBitrate){let S=this._adsAdapter.tag.webkitVideoDecodedByteCount-this._lastWebkitAdBitrate;M=Math.round(S/this.plugin.fastDataTransform.response.pingTime*8)}return this._lastWebkitAdBitrate=this._adsAdapter.tag.webkitVideoDecodedByteCount,M!==0?M:-1}}catch{}return-1},getAdTitle:function(){return this._safeGetterAdsAdapter("getTitle","ad.title")},getAdResource:function(){return this._safeGetterAdsAdapter("getResource","ad.resource")},getAdCampaign:function(){return this._safeGetterAdsAdapter("getCampaign","ad.campaign")},getAdCreativeId:function(){return this._safeGetterAdsAdapter("getCreativeId","ad.creativeId")},getAdProvider:function(){return this._safeGetterAdsAdapter("getProvider","ad.provider")},getAdAdapterVersion:function(){return this._safeGetterAdsAdapter("getVersion")},getAdMetadata:function(){return this.options["ad.metadata"]},getAdInsertionType:function(){return this._safeGetterAdsAdapter("getAdInsertionType")},getGivenBreaks:function(){return this._safeGetterAdsAdapter("getGivenBreaks","ad.givenBreaks")},getExpectedBreaks:function(){let M,S=this.options["ad.expectedBreaks"],D=this.options["ad.expectedPattern"];if(S)M=S;else if(D)M=0,M=D.pre?D.pre.length:0,M+=D.mid?D.mid.length:0,M+=D.post?D.post.length:0;else if(this._adsAdapter)try{M=this._adsAdapter.getExpectedBreaks()}catch(B){v.warn(T,"An error occured while calling expectedBreaks",B)}return M},getExpectedPattern:function(){return this._safeGetterAdsAdapter("getExpectedPattern","ad.expectedPattern")},getBreaksTime:function(){return this._safeGetterAdsAdapter("getBreaksTime","ad.breaksTime")},getGivenAds:function(){return this._safeGetterAdsAdapter("getGivenAds","ad.givenAds")},getExpectedAds:function(){let M;try{if(this._adsAdapter){let S=this.options["ad.expectedPattern"];if(S&&this.getAdPosition()){let D=[];if(S.pre&&(D=D.concat(S.pre)),S.mid&&(D=D.concat(S.mid)),S.post&&(D=D.concat(S.post)),D.length>0){let B=this.requestBuilder.lastSent.breakNumber;B>D.length&&(B=D.length),M=D[B-1]}}else M=this._adsAdapter.getExpectedAds()}}catch(S){v.warn(T,"An error occured while calling expectedAds",S)}return M},getAdsExpected:function(){let M;try{M=this.getExpectedPattern()||this.getGivenAds()||!1}catch(S){v.warn(T,"An error occured while calling givenAds or expectedPattern",S)}return M},getAdJoinDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.join.getDeltaTime(!1):-1},getAdBufferDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.buffer.getDeltaTime(!1):-1},getAdPauseDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.pause.getDeltaTime(!1):0},getAdTotalDuration:function(){return this._adsAdapter?this._adsAdapter.chronos.total.getDeltaTime(!1):-1},getAdViewedDuration:function(){return this._getTimeMaxOrAcum(!0)},getAdViewability:function(){return this._getTimeMaxOrAcum()},_getTimeMaxOrAcum:function(M){let S=0;return this._adsAdapter&&this._adsAdapter.chronos.viewedMax.forEach(function(D){M?S+=D.getDeltaTime(!1):S=Math.max(D.getDeltaTime(!1),S)}),S},getAudioEnabled:function(){return this._safeGetterAdsAdapter("getAudioEnabled")},getIsSkippable:function(){return this._safeGetterAdsAdapter("getIsSkippable")},getIsFullscreen:function(){return this._safeGetterAdsAdapter("getIsFullscreen")},_safeGetterAdsAdapter:function(M,S){let D;if(S&&this.options[S])D=this.options[S];else try{this._adsAdapter&&typeof this._adsAdapter[M]=="function"&&(D=this._adsAdapter[M]())}catch(B){v.warn(T,"An error occured while calling "+M,B)}return D},getNewAdNumber:function(){let M=this.requestBuilder.lastSent.adNumber;return M&&this.requestBuilder.lastSent.position===this.getAdPosition()?M+=1:M=1,this.requestBuilder.lastSent.adNumber=M,M},getNewAdNumberInBreak:function(){return this._adNumberInBreak++,this.requestBuilder.lastSent.adNumberInBreak=this._adNumberInBreak,this._adNumberInBreak},getNewBreakNumber:function(){let M=1;return this._adNumberInBreak=0,this.requestBuilder.lastSent.breakNumber&&(M=this.requestBuilder.lastSent.breakNumber+1),M&&this.requestBuilder.lastSent.position!==this.getAdPosition()&&(M=1),this.requestBuilder.lastSent.breakNumber=M,M},getAccurateGeoLocation:function(){return this.lastKnownLocation}};n.exports=G},7660:n=>{n.exports={cdnName:"EDGECAST",parsers:[{element:"host",headerName:"Server",regex:/\((.+)\/.+\)/},{element:"type",headerName:"X-Cache",regex:/(.+)/}],parseType:function(o){return o==="HIT"?1:2}}},7680:(n,o,c)=>{var p=c(3948).extend({constructor:function(){this.reset()},reset:function(){this.startTime=0,this.stopTime=0,this.pauseTime=0,this.offset=0},getDeltaTime:function(v){var A=-1,_=new Date().getTime();if(this.startTime){v&&!this.stopTime&&(this.stopTime=_);var m=this.pauseTime?_-this.pauseTime:0,y=this.stopTime?this.stopTime:_;A=this.offset-m+(y-this.startTime)}return A},start:function(){this.startTime=new Date().getTime(),this.stopTime=0,this.offset=0},stop:function(){return this.pauseTime&&this.resume(),this.stopTime=new Date().getTime(),this.startTime?this.offset+(this.stopTime-this.startTime):-1},pause:function(){this.pauseTime=new Date().getTime()},resume:function(){this.offset-=new Date().getTime()-this.pauseTime,this.pauseTime=0},clone:function(){var v=new p;return v.startTime=this.startTime,v.stopTime=this.stopTime,v.offset=this.offset,v}});n.exports=p},7937:(n,o,c)=>{var p=c(1129);p.DOMImplementation,p.XMLSerializer,o.DOMParser=c(8633).DOMParser},7939:n=>{n.exports={MP4:"MP4",MPEG2:"TS",CMF:"CMF"}},7991:(n,o)=>{"use strict";o.byteLength=function(C){var T=m(C),U=T[0],G=T[1];return 3*(U+G)/4-G},o.toByteArray=function(C){var T,U,G=m(C),M=G[0],S=G[1],D=new v(function(V,$,l){return 3*($+l)/4-l}(0,M,S)),B=0,R=S>0?M-4:M;for(U=0;U>16&255,D[B++]=T>>8&255,D[B++]=255&T;return S===2&&(T=p[C.charCodeAt(U)]<<2|p[C.charCodeAt(U+1)]>>4,D[B++]=255&T),S===1&&(T=p[C.charCodeAt(U)]<<10|p[C.charCodeAt(U+1)]<<4|p[C.charCodeAt(U+2)]>>2,D[B++]=T>>8&255,D[B++]=255&T),D},o.fromByteArray=function(C){for(var T,U=C.length,G=U%3,M=[],S=16383,D=0,B=U-G;DB?B:D+S));return G===1?(T=C[U-1],M.push(c[T>>2]+c[T<<4&63]+"==")):G===2&&(T=(C[U-2]<<8)+C[U-1],M.push(c[T>>10]+c[T>>4&63]+c[T<<2&63]+"=")),M.join("")};for(var c=[],p=[],v=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_=0;_<64;++_)c[_]=A[_],p[A.charCodeAt(_)]=_;function m(C){var T=C.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=C.indexOf("=");return U===-1&&(U=T),[U,U===T?0:4-U%4]}function y(C,T,U){for(var G,M,S=[],D=T;D>18&63]+c[M>>12&63]+c[M>>6&63]+c[63&M]);return S.join("")}p[45]=62,p[95]=63},8037:(n,o,c)=>{var p=c(3782),v=c(2507),A=c(5292);let{AnalyticsTag:_}=c(2784),{default:m}=c(7276),{default:y}=c(6933);var C={getAdsAdapter:function(){return this._adsAdapter},setAdsAdapter:function(T,U,G){if(G=G||!1,T.isSetAdapter())m.warn(_,"Adapters can only be added to a single plugin");else try{for(var M in this.removeAdsAdapter(),this.plugin=U,this._adsAdapter=T,this._adsAdapter.setIsAds(!0),this.adsAdapterListeners={},this.adsAdapterListeners[A.Event.START]=this._adStartListener.bind(this),this.adsAdapterListeners[A.Event.JOIN]=this._adJoinListener.bind(this),this.adsAdapterListeners[A.Event.DATA_OBJECT]=this._adAdvancedDataListener.bind(this),this.adsAdapterListeners[A.Event.PAUSE]=this._adPauseListener.bind(this),this.adsAdapterListeners[A.Event.RESUME]=this._adResumeListener.bind(this),this.adsAdapterListeners[A.Event.BUFFER_BEGIN]=this._adBufferBeginListener.bind(this),this.adsAdapterListeners[A.Event.BUFFER_END]=this._adBufferEndListener.bind(this),this.adsAdapterListeners[A.Event.STOP]=this._adStopListener.bind(this),this.adsAdapterListeners[A.Event.ERROR]=this._adErrorListener.bind(this),this.adsAdapterListeners[A.Event.CLICK]=this._adClickListener.bind(this),this.adsAdapterListeners[A.Event.MANIFEST]=this._adManifestListener.bind(this),this.adsAdapterListeners[A.Event.PODSTART]=this._adBreakStartListener.bind(this),this.adsAdapterListeners[A.Event.PODSTOP]=this._adBreakStopListener.bind(this),this.adsAdapterListeners[A.Event.QUARTILE]=this._adQuartileListener.bind(this),this.adsAdapterListeners)this._adsAdapter.on(M,this.adsAdapterListeners[M]);G&&(m.notice(_,"Registering listeners for registered AdsAdapter"),this._adsAdapter.registerListeners())}catch{m.warn(_,"Problem during setAdsAdapter process")}},removeAdsAdapter:function(){if(this._adsAdapter){if(this._adsAdapter.dispose(),this.adsAdapterListeners){for(var T in this.adsAdapterListeners)this._adsAdapter.off(T,this.adsAdapterListeners[T]);delete this.adsAdapterListeners}this.resizeScrollDetector.stopDetection(),this._adsAdapter=void 0}},_adStartListener:function(T){this._adapter?(this._adapter.fireBufferEnd(null,"adStartListener"),this._adapter.fireSeekEnd(null,"adStartListener"),this.isInitiated||this._adapter.flags.isStarted||this._adapter.fireStart(),this._adapter.flags.isPaused&&this._adapter.chronos.pause.reset()):this.fireInit(),this._adsAdapter&&(this._adsAdapter.chronos.viewedMax=[]);let U=T.data.params||{};U.adNumber=this.getNewAdNumber(),(this.getAdResource()||this.getAdTitle())&&typeof this.getAdDuration()=="number"?(this.adStartSent=!0,this._adsAdapter.fireManifest(),this._adsAdapter.fireAdBreakStart(),U.adNumberInBreak=this.getNewAdNumberInBreak(),y.getInstance().addNQSAdEvent(A.Event.START,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_START,p.Service.AD_START,U)):(this.adInitSent=!0,U.adNumberInBreak=this.getNewAdNumberInBreak(),y.getInstance().addNQSAdEvent(A.Event.INIT,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_INIT,p.Service.AD_INIT,U))},_adJoinListener:function(T){let U={};v.assign(U,T.data.params||{}),this.adInitSent&&!this.adStartSent&&(this._adsAdapter.fireManifest(),this._adsAdapter.fireAdBreakStart(),y.getInstance().addNQSAdEvent(A.Event.START,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_START,p.Service.AD_START,U)),this._adsAdapter.startChronoView(),this.adConnected&&(this._adsAdapter.chronos.join.startTime=this.adConnectedTime,this._adsAdapter.chronos.total.startTime=this.adConnectedTime,this.adConnectedTime=0,this.adConnected=!1),U=T.data.params||{},y.getInstance().addNQSAdEvent(A.Event.JOIN,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_JOIN,p.Service.AD_JOIN,U),this.adInitSent=!1,this.adStartSent=!1},_adAdvancedDataListener:function(T){var U=T.data.params||{};this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_DATA_OBJECT,p.Service.DATA_OBJECT,U)},_adPauseListener:function(T){let U=T.data.params||{};this._adsAdapter.stopChronoView(),y.getInstance().addNQSAdEvent(A.Event.PAUSE,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_PAUSE,p.Service.AD_PAUSE,U)},_adResumeListener:function(T){let U=T.data.params||{};this._adsAdapter.startChronoView(),y.getInstance().addNQSAdEvent(A.Event.RESUME,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_RESUME,p.Service.AD_RESUME,U)},_adBufferBeginListener:function(T){m.notice(_,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") Ad Buffer Begin"),this._adsAdapter.stopChronoView(),this._adsAdapter&&this._adsAdapter.flags.isPaused&&this._adsAdapter.chronos.pause.reset()},_adBufferEndListener:function(T){let U=T.data.params||{};this._adsAdapter.startChronoView(),y.getInstance().addNQSAdEvent(A.Event.BUFFER_END,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_BUFFER,p.Service.AD_BUFFER,U)},_adStopListener:function(T){let U=T.data.params||{};if(this._adsAdapter.stopChronoView(),this._adsAdapter.flags.reset(),this._totalPrerollsTime=(this._totalPrerollsTime||0)+this._adsAdapter.chronos.total.getDeltaTime(),U.position=this.requestBuilder.lastSent.position,y.getInstance().addNQSAdEvent(A.Event.STOP,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_STOP,p.Service.AD_STOP,U),this.requestBuilder.lastSent.position===p.AdPosition.Postroll){let G=this.options["ad.expectedPattern"];this.playedPostrolls++,(this.requestBuilder.lastSent.givenAds&&this.requestBuilder.lastSent.givenAds<=this.playedPostrolls||!this.requestBuilder.lastSent.givenAds&&G&&G.post&&G.post[0]&&G.post[0]<=this.playedPostrolls)&&this._adapter.fireStop({},"_adStopListener")}this.adConnected=!0,this.adConnectedTime=new Date().getTime()},_adErrorListener:function(T){let U=T.data.params||{};!this._adapter||this._adapter.flags.isStarted||this.isInitiated?this._blockAdError(T.data.params)||(this._adsAdapter&&(this._adsAdapter.fireManifest(),this._adsAdapter.fireAdBreakStart()),this._adsAdapter&&this._adsAdapter.flags.isStarted||(U.adNumber=this.getNewAdNumber(),U.adNumberInBreak=this.getNewAdNumberInBreak()),this.isBreakStarted||(U.breakNumber=this.getNewBreakNumber()),y.getInstance().addNQSAdEvent(A.Event.ERROR,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_ERROR,p.Service.AD_ERROR,U)):this._savedAdError=T},_adSavedError:function(){this._savedAdError&&(this._adErrorListener(this._savedAdError),this._savedAdError=null)},_adSavedManifest:function(){this._savedAdManifest&&(this._adManifestListener(this._savedAdManifest),this._savedAdManifest=null)},_blockAdError:function(T){let U=Date.now();return this._lastAdErrorParams&&this._lastAdErrorParams.errorCode===T.errorCode&&this._lastAdErrorParams.msg===T.msg&&this._lastAdErrorParams.adCreativeId===this.getAdCreativeId()&&this._lastAdErrorTime+5e3>U?(this._lastAdErrorTime=U,!0):(this._lastAdErrorTime=U,this._lastAdErrorParams=T,!1)},_adClickListener:function(T){let U=T.data.params||{};this._adsAdapter.stopChronoView(),y.getInstance().addNQSAdEvent(A.Event.CLICK,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_CLICK,p.Service.AD_CLICK,U)},_adManifestListener:function(T){if(!this.isAdsManifestSent){if(this._adapter&&!this._adapter.flags.isStarted&&!this.isInitiated)return void(this._savedAdManifest=T);let U=T.data.params||{};this.isAdsManifestSent=!0,y.getInstance().addNQSAdEvent(A.Event.MANIFEST,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_MANIFEST,p.Service.AD_MANIFEST,U)}},_adBreakStartListener:function(T){if(!this.isBreakStarted){this.isBreakStarted=!0,this._adapter&&this._adapter.firePause();let U=T.data.params||{};U.breakNumber=this.getNewBreakNumber(),y.getInstance().addNQSAdEvent(A.Event.PODSTART,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_POD_START,p.Service.AD_POD_START,U),this.adConnected=!1}},_adBreakStopListener:function(T){if(this.isBreakStarted){this.isBreakStarted=!1;let U=T.data.params||{};U.position=this.requestBuilder.lastSent.position,y.getInstance().addNQSAdEvent(A.Event.PODSTOP,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_POD_STOP,p.Service.AD_POD_STOP,U),this.adConnected=!1,this._adapter&&this._adapter.fireResume()}},_adQuartileListener:function(T){let U=T.data.params||{};U.quartile&&(y.getInstance().addNQSAdEvent(A.Event.QUARTILE,U),this._sendAdEventIfAllowed(p.WillSendEvent.WILL_SEND_AD_QUARTILE,p.Service.AD_QUARTILE,U))},_sendAdEventIfAllowed:function(T,U,G){this.options["ad.ignore"]||(y.getInstance().setTriedSendingNQSAdStats(!0),this._send(T,U,G,void 0,void 0,()=>{y.getInstance().addNQSAdRequest(U)})),m.notice(_,"["+this.getViewCode()+"] (Video Space "+this.getVideoKey()+") "+U)}};n.exports=C},8187:(n,o,c)=>{var p=c(1593),v=c(3821);let{AnalyticsTag:A}=c(2784),{default:_}=c(7276);var m=p.extend({constructor:function(y){this.plugin=y,this.headerName="x-cdn"},init:function(){var y=null;this.plugin&&(y=this.plugin.getAdapter()&&this.plugin.getAdapter().getURLToParse()?this.plugin.getAdapter().getURLToParse():this.plugin.getResource()),this.plugin&&this.plugin.getAdapter()&&this.plugin.getAdapter().flags.isStarted&&this._request(y)},done:function(y){this.emit(m.Events.DONE,y)},error:function(){this.emit(m.Events.ERROR)},_successfulRequest:function(y){setTimeout(this.init.bind(this),1e3*parseInt(this.plugin.options["parse.cdnTTL"]));var C=y.getResponseHeaders().split(` `),T=null;for(var U in C){var G=C[U],M=G.indexOf(this.headerName);M>-1&&(T=G.substring(M+this.headerName.length+1,G.length-1).replace(" ",""))}this.done(T)},_failedRequest:function(){setTimeout(this.init.bind(this),1e3*parseInt(this.plugin.options["parse.cdnTTL"])),_.warn(A,"CDN switch detection request failed"),this.error()},_request:function(y){var C=new v(y,null,null,{method:"HEAD",cache:!0});C.on(v.Event.SUCCESS,this._successfulRequest.bind(this)),C.on(v.Event.ERROR,this._failedRequest.bind(this)),C.send()}},{Events:{DONE:"done",ERROR:"error"}});n.exports=m},8424:n=>{n.exports={REQUIRED_METADATA_TIMEOUT:1e4}},8472:n=>{n.exports={HDS:"HDS",HLS:"HLS",MSS:"MSS",DASH:"DASH",RTMP:"RTMP",RTP:"RTP",RTSP:"RTSP",DVB:"DVB",DVBC:"DVB-C",DVBT:"DVB-T",DVBT2:"DVB-T2",MULTICAST:"MULTICAST"}},8490:(n,o,c)=>{var p=c(3948);let{default:v}=c(7276),{AnalyticsTag:A}=c(2784);var _=p.extend({constructor:function(m,y){this._adapter=m,this._videoElement=m.getVideoObject(),this._startedStateCheck=!1,this._intervalCheckId=null,this._intervalMilliseconds=y||300},start:function(){var m=this._adapter.plugin;m&&m.getReadyStateMonitorEnabled()&&this._videoElement&&!this._startedStateCheck&&(this._intervalCheckId=setInterval(this.checkStateProperty.bind(this),this._intervalMilliseconds),this._startedStateCheck=!0)},stop:function(){try{this._startedStateCheck&&this._intervalCheckId&&clearInterval(this._intervalCheckId),this._intervalCheckId=null,this._startedStateCheck=!1}catch{v.error(A,"Produced error stopping the network monitor")}},checkStateProperty:function(m){try{this._videoElement&&this._adapter&&this._videoElement.readyState&&(this._videoElement.readyState>3&&!this._adapter.flags.isSeeking?this._adapter.flags.isBuffering?this.fireBufferEnd({},"stateMonitor"):this._adapter.flags.isJoined||this.fireJoin({},"stateMonitor"):this._videoElement.readyState<4&&!this._adapter.flags.isBuffering&&this.fireBufferBegin({},!1,"stateMonitor",!0))}catch{}}});n.exports=_},8633:(n,o,c)=>{var p=c(525),v=c(1129),A=c(6598),_=c(2133),m=v.DOMImplementation,y=p.NAMESPACE,C=_.ParseError,T=_.XMLReader;function U(R){this.options=R||{locator:{}}}function G(){this.cdata=!1}function M(R,V){V.lineNumber=R.lineNumber,V.columnNumber=R.columnNumber}function S(R){if(R)return` @`+(R.systemId||"")+"#[line:"+R.lineNumber+",col:"+R.columnNumber+"]"}function D(R,V,$){return typeof R=="string"?R.substr(V,$):R.length>=V+$||V?new java.lang.String(R,V,$)+"":R}function B(R,V){R.currentElement?R.currentElement.appendChild(V):R.doc.appendChild(V)}U.prototype.parseFromString=function(R,V){var $=this.options,l=new T,d=$.domBuilder||new G,g=$.errorHandler,w=$.locator,j=$.xmlns||{},H=/\/x?html?$/.test(V),se=H?A.HTML_ENTITIES:A.XML_ENTITIES;return w&&d.setDocumentLocator(w),l.errorHandler=function(Z,be,ve){if(!Z){if(be instanceof G)return be;Z=be}var Ie={},Xe=Z instanceof Function;function it(qe){var Be=Z[qe];!Be&&Xe&&(Be=Z.length==2?function(Qe){Z(qe,Qe)}:Z),Ie[qe]=Be&&function(Qe){Be("[xmldom "+qe+"] "+Qe+S(ve))}||function(){}}return ve=ve||{},it("warning"),it("error"),it("fatalError"),Ie}(g,d,w),l.domBuilder=$.domBuilder||d,H&&(j[""]=y.HTML),j.xml=j.xml||y.XML,R&&typeof R=="string"?l.parse(R,j,se):l.errorHandler.error("invalid doc source"),d.doc},G.prototype={startDocument:function(){this.doc=new m().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(R,V,$,l){var d=this.doc,g=d.createElementNS(R,$||V),w=l.length;B(this,g),this.currentElement=g,this.locator&&M(this.locator,g);for(var j=0;j{var p,v=c(1048).hp;p=()=>{return A={851:(m,y,C)=>{var T=C(771),U=T.getOptions,G=T.setOptions,M=C(463),S=C(367),D=C(890);m.exports={parse:M,stringify:S,types:D,getOptions:U,setOptions:G}},463:(m,y,C)=>{function T(Q,_e){return function(ke){if(Array.isArray(ke))return ke}(Q)||function(ke,je){var Le=ke==null?null:typeof Symbol<"u"&&ke[Symbol.iterator]||ke["@@iterator"];if(Le!=null){var et,Se,Me,b,F=[],k=!0,ne=!1;try{if(Me=(Le=Le.call(ke)).next,je===0){if(Object(Le)!==Le)return;k=!1}else for(;!(k=(et=Me.call(Le)).done)&&(F.push(et.value),F.length!==je);k=!0);}catch(te){ne=!0,Se=te}finally{try{if(!k&&Le.return!=null&&(b=Le.return(),Object(b)!==b))return}finally{if(ne)throw Se}}return F}}(Q,_e)||G(Q,_e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function U(Q,_e){var ke=typeof Symbol<"u"&&Q[Symbol.iterator]||Q["@@iterator"];if(!ke){if(Array.isArray(Q)||(ke=G(Q))||_e&&Q&&typeof Q.length=="number"){ke&&(Q=ke);var je=0,Le=function(){};return{s:Le,n:function(){return je>=Q.length?{done:!0}:{done:!1,value:Q[je++]}},e:function(b){throw b},f:Le}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var et,Se=!0,Me=!1;return{s:function(){ke=ke.call(Q)},n:function(){var b=ke.next();return Se=b.done,b},e:function(b){Me=!0,et=b},f:function(){try{Se||ke.return==null||ke.return()}finally{if(Me)throw et}}}}function G(Q,_e){if(Q){if(typeof Q=="string")return M(Q,_e);var ke=Object.prototype.toString.call(Q).slice(8,-1);return ke==="Object"&&Q.constructor&&(ke=Q.constructor.name),ke==="Map"||ke==="Set"?Array.from(Q):ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ke)?M(Q,_e):void 0}}function M(Q,_e){(_e==null||_e>Q.length)&&(_e=Q.length);for(var ke=0,je=new Array(_e);ke<_e;ke++)je[ke]=Q[ke];return je}var S=C(771),D=C(890),B=D.Rendition,R=D.Variant,V=D.SessionData,$=D.Key,l=D.MediaInitializationSection,d=D.DateRange,g=D.SpliceInfo,w=D.MasterPlaylist,j=D.MediaPlaylist,H=D.Segment,se=D.PartialSegment,Z=D.PrefetchSegment,be=D.RenditionReport;function ve(Q){return S.trim(Q,'"')}function Ie(Q){var _e=S.splitAt(Q,",");return{duration:S.toNumber(_e[0]),title:decodeURIComponent(escape(_e[1]))}}function Xe(Q){var _e=S.splitAt(Q,"@");return{length:S.toNumber(_e[0]),offset:_e[1]?S.toNumber(_e[1]):-1}}function it(Q){var _e=S.splitAt(Q,"x");return{width:S.toNumber(_e[0]),height:S.toNumber(_e[1])}}function qe(Q){var _e="ALLOWED-CPC: Each entry must consit of KEYFORMAT and Content Protection Configuration",ke=Q.split(",");ke.length===0&&S.INVALIDPLAYLIST(_e);var je,Le=[],et=U(ke);try{for(et.s();!(je=et.n()).done;){var Se=je.value,Me=T(S.splitAt(Se,":"),2),b=Me[0],F=Me[1];b&&F?Le.push({format:b,cpcList:F.split("/")}):S.INVALIDPLAYLIST(_e)}}catch(k){et.e(k)}finally{et.f()}return Le}function Be(Q){return Q.startsWith('"')?ve(Q):Q.startsWith("0x")||Q.startsWith("0X")?S.hexToByteSequence(Q):S.toNumber(Q)}function Qe(Q,_e){_e.IV&&Q.compatibleVersion<2&&(Q.compatibleVersion=2),(_e.KEYFORMAT||_e.KEYFORMATVERSIONS)&&Q.compatibleVersion<5&&(Q.compatibleVersion=5)}function J(Q){var _e,ke,je,Le={},et=U(S.splitByCommaWithPreservingQuotes(Q));try{for(et.s();!(_e=et.n()).done;){var Se=_e.value,Me=T(S.splitAt(Se,"="),2),b=Me[0],F=Me[1],k=ve(F);switch(b){case"URI":Le[b]=k;break;case"START-DATE":case"END-DATE":Le[b]=new Date(k);break;case"IV":Le[b]=(ke=k,(je=S.hexToByteSequence(ke)).length!==16&&S.INVALIDPLAYLIST("IV must be a 128-bit unsigned integer"),je);break;case"BYTERANGE":Le[b]=Xe(k);break;case"RESOLUTION":Le[b]=it(k);break;case"ALLOWED-CPC":Le[b]=qe(k);break;case"END-ON-NEXT":case"DEFAULT":case"AUTOSELECT":case"FORCED":case"PRECISE":case"CAN-BLOCK-RELOAD":case"INDEPENDENT":case"GAP":Le[b]=k==="YES";break;case"DURATION":case"PLANNED-DURATION":case"BANDWIDTH":case"AVERAGE-BANDWIDTH":case"FRAME-RATE":case"TIME-OFFSET":case"CAN-SKIP-UNTIL":case"HOLD-BACK":case"PART-HOLD-BACK":case"PART-TARGET":case"BYTERANGE-START":case"BYTERANGE-LENGTH":case"LAST-MSN":case"LAST-PART":case"SKIPPED-SEGMENTS":case"SCORE":Le[b]=S.toNumber(k);break;default:b.startsWith("SCTE35-")?Le[b]=S.hexToByteSequence(k):b.startsWith("X-")?Le[b]=Be(F):(b==="VIDEO-RANGE"&&k!=="SDR"&&k!=="HLG"&&k!=="PQ"&&S.INVALIDPLAYLIST('VIDEO-RANGE: unknown value "'.concat(k,'"')),Le[b]=k)}}}catch(ne){et.e(ne)}finally{et.f()}return Le}function ee(){S.INVALIDPLAYLIST("The file contains both media and master playlist tags.")}function ae(Q,_e,ke){var je,Le=(je=_e.attributes,new B({type:je.TYPE,uri:je.URI,groupId:je["GROUP-ID"],language:je.LANGUAGE,assocLanguage:je["ASSOC-LANGUAGE"],name:je.NAME,isDefault:je.DEFAULT,autoselect:je.AUTOSELECT,forced:je.FORCED,instreamId:je["INSTREAM-ID"],characteristics:je.CHARACTERISTICS,channels:je.CHANNELS})),et=Q[S.camelify(ke)],Se=function(Me,b){var F,k=!1,ne=U(Me);try{for(ne.s();!(F=ne.n()).done;){var te=F.value;if(te.name===b.name)return"All EXT-X-MEDIA tags in the same Group MUST have different NAME attributes.";te.isDefault&&(k=!0)}}catch(ye){ne.e(ye)}finally{ne.f()}return k&&b.isDefault?"EXT-X-MEDIA A Group MUST NOT have more than one member with a DEFAULT attribute of YES.":""}(et,Le);Se&&S.INVALIDPLAYLIST(Se),et.push(Le),Le.isDefault&&(Q.currentRenditions[S.camelify(ke)]=et.length-1)}function de(Q,_e,ke,je,Le){var et,Se=new R({uri:ke,bandwidth:_e.BANDWIDTH,averageBandwidth:_e["AVERAGE-BANDWIDTH"],score:_e.SCORE,codecs:_e.CODECS,resolution:_e.RESOLUTION,frameRate:_e["FRAME-RATE"],hdcpLevel:_e["HDCP-LEVEL"],allowedCpc:_e["ALLOWED-CPC"],videoRange:_e["VIDEO-RANGE"],stableVariantId:_e["STABLE-VARIANT-ID"]}),Me=U(Q);try{for(Me.s();!(et=Me.n()).done;){var b=et.value;if(b.name==="EXT-X-MEDIA"){var F=b.attributes,k=F.TYPE;if(k&&F["GROUP-ID"]||S.INVALIDPLAYLIST("EXT-X-MEDIA TYPE attribute is REQUIRED."),_e[k]===F["GROUP-ID"]&&(ae(Se,b,k),k==="CLOSED-CAPTIONS")){var ne,te=U(Se.closedCaptions);try{for(te.s();!(ne=te.n()).done;){var ye=ne.value.instreamId;if(ye&&ye.startsWith("SERVICE")&&Le.compatibleVersion<7){Le.compatibleVersion=7;break}}}catch(ce){te.e(ce)}finally{te.f()}}}}}catch(ce){Me.e(ce)}finally{Me.f()}return function(ce,Pe,ht){for(var kt=function(){var pi=at[bt];pi==="CLOSED-CAPTIONS"&&ce[pi]==="NONE"?(ht.isClosedCaptionsNone=!0,Pe.closedCaptions=[]):ce[pi]&&!Pe[S.camelify(pi)].some(function(ri){return ri.groupId===ce[pi]})&&S.INVALIDPLAYLIST("".concat(pi," attribute MUST match the value of the GROUP-ID attribute of an EXT-X-MEDIA tag whose TYPE attribute is ").concat(pi,"."))},bt=0,at=["AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS"];btSe.targetDuration&&S.INVALIDPLAYLIST("EXTINF duration, when rounded to the nearest integer, MUST be less than or equal to the target duration"),Me.duration=ye.duration,Me.title=ye.title;else if(te==="EXT-X-BYTERANGE")Se.compatibleVersion<4&&(Se.compatibleVersion=4),Me.byterange=ye;else if(te==="EXT-X-DISCONTINUITY")Me.parts.length>0&&S.INVALIDPLAYLIST("EXT-X-DISCONTINUITY must appear before the first EXT-X-PART tag of the Parent Segment."),Me.discontinuity=!0;else if(te==="EXT-X-KEY")Me.parts.length>0&&S.INVALIDPLAYLIST("EXT-X-KEY must appear before the first EXT-X-PART tag of the Parent Segment."),Qe(Se,ce),Me.key=new $({method:ce.METHOD,uri:ce.URI,iv:ce.IV,format:ce.KEYFORMAT,formatVersion:ce.KEYFORMATVERSIONS});else if(te==="EXT-X-MAP")Me.parts.length>0&&S.INVALIDPLAYLIST("EXT-X-MAP must appear before the first EXT-X-PART tag of the Parent Segment."),Se.compatibleVersion<5&&(Se.compatibleVersion=5),Se.hasMap=!0,Me.map=new l({uri:ce.URI,byterange:ce.BYTERANGE});else if(te==="EXT-X-PROGRAM-DATE-TIME")Me.programDateTime=ye;else if(te==="EXT-X-DATERANGE"){for(var Pe={},ht=0,kt=Object.keys(ce);ht0){var ne=k[k.length-1];ne.byterange&&ne.uri===F?b.offset=ne.byterange.offset+ne.byterange.length:S.INVALIDPLAYLIST("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST be a sub-range of the same media resource")}else S.INVALIDPLAYLIST("If offset of EXT-X-BYTERANGE is not present, a previous Media Segment MUST appear in the Playlist file")}return Q.segments.push(_e),[_e.discontinuitySequence,_e.key,_e.map]}function We(Q,_e){var ke=function(F){var k=F.indexOf(":");return k===-1?[F.slice(1).trim(),null]:[F.slice(1,k).trim(),F.slice(k+1).trim()]}(Q),je=T(ke,2),Le=je[0],et=je[1],Se=function(F){switch(F){case"EXTM3U":case"EXT-X-VERSION":return"Basic";case"EXTINF":case"EXT-X-BYTERANGE":case"EXT-X-DISCONTINUITY":case"EXT-X-PREFETCH-DISCONTINUITY":case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-PROGRAM-DATE-TIME":case"EXT-X-DATERANGE":case"EXT-X-CUE-OUT":case"EXT-X-CUE-IN":case"EXT-X-CUE-OUT-CONT":case"EXT-X-CUE":case"EXT-OATCLS-SCTE35":case"EXT-X-ASSET":case"EXT-X-SCTE35":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":return"Segment";case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":case"EXT-X-ENDLIST":case"EXT-X-PLAYLIST-TYPE":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PREFETCH":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return"MediaPlaylist";case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":return"MasterPlaylist";case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-START":return"MediaorMasterPlaylist";default:return"Unknown"}}(Le);if(function(F,k){if(F==="Segment"||F==="MediaPlaylist")return k.isMasterPlaylist===void 0?void(k.isMasterPlaylist=!1):void(k.isMasterPlaylist&&ee());if(F==="MasterPlaylist"){if(k.isMasterPlaylist===void 0)return void(k.isMasterPlaylist=!0);k.isMasterPlaylist===!1&&ee()}}(Se,_e),Se==="Unknown")return null;Se==="MediaPlaylist"&&Le!=="EXT-X-RENDITION-REPORT"&&Le!=="EXT-X-PREFETCH"&&(_e.hash[Le]&&S.INVALIDPLAYLIST("There MUST NOT be more than one Media Playlist tag of each type in any Media Playlist"),_e.hash[Le]=!0);var Me=function(F,k){switch(F){case"EXTM3U":case"EXT-X-DISCONTINUITY":case"EXT-X-ENDLIST":case"EXT-X-I-FRAMES-ONLY":case"EXT-X-INDEPENDENT-SEGMENTS":case"EXT-X-CUE-IN":return[null,null];case"EXT-X-VERSION":case"EXT-X-TARGETDURATION":case"EXT-X-MEDIA-SEQUENCE":case"EXT-X-DISCONTINUITY-SEQUENCE":return[S.toNumber(k),null];case"EXT-X-CUE-OUT":return Number.isNaN(Number(k))?[null,J(k)]:[S.toNumber(k),null];case"EXT-X-KEY":case"EXT-X-MAP":case"EXT-X-DATERANGE":case"EXT-X-MEDIA":case"EXT-X-STREAM-INF":case"EXT-X-I-FRAME-STREAM-INF":case"EXT-X-SESSION-DATA":case"EXT-X-SESSION-KEY":case"EXT-X-START":case"EXT-X-SERVER-CONTROL":case"EXT-X-PART-INF":case"EXT-X-PART":case"EXT-X-PRELOAD-HINT":case"EXT-X-RENDITION-REPORT":case"EXT-X-SKIP":return[null,J(k)];case"EXTINF":return[Ie(k),null];case"EXT-X-BYTERANGE":return[Xe(k),null];case"EXT-X-PROGRAM-DATE-TIME":return[new Date(k),null];default:return[k,null]}}(Le,et),b=T(Me,2);return{name:Le,category:Se,value:b[0],attributes:b[1]}}function ct(Q,_e){var ke;return _e.isMasterPlaylist?ke=function(je,Le){var et,Se=new w,Me=!1,b=U(je.entries());try{for(b.s();!(et=b.n()).done;){var F=T(et.value,2),k=F[0],ne=F[1],te=ne.name,ye=ne.value,ce=ne.attributes;if(te==="EXT-X-VERSION")Se.version=ye;else if(te==="EXT-X-STREAM-INF"){var Pe=je[k+1];(typeof Pe!="string"||Pe.startsWith("#EXT"))&&S.INVALIDPLAYLIST("EXT-X-STREAM-INF must be followed by a URI line");var ht=de(je,ce,Pe,!1,Le);ht&&(typeof ht.score=="number"&&(Me=!0,ht.score<0&&S.INVALIDPLAYLIST("SCORE attribute on EXT-X-STREAM-INF must be positive decimal-floating-point number.")),Se.variants.push(ht))}else if(te==="EXT-X-I-FRAME-STREAM-INF"){var kt=de(je,ce,ce.URI,!0,Le);kt&&Se.variants.push(kt)}else te==="EXT-X-SESSION-DATA"?function(){var ai=new V({id:ce["DATA-ID"],value:ce.VALUE,uri:ce.URI,language:ce.LANGUAGE});Se.sessionDataList.some(function(xi){return xi.id===ai.id&&xi.language===ai.language})&&S.INVALIDPLAYLIST("A Playlist MUST NOT contain more than one EXT-X-SESSION-DATA tag with the same DATA-ID attribute and the same LANGUAGE attribute."),Se.sessionDataList.push(ai)}():te==="EXT-X-SESSION-KEY"?function(){ce.METHOD==="NONE"&&S.INVALIDPLAYLIST("EXT-X-SESSION-KEY: The value of the METHOD attribute MUST NOT be NONE");var ai=new $({method:ce.METHOD,uri:ce.URI,iv:ce.IV,format:ce.KEYFORMAT,formatVersion:ce.KEYFORMATVERSIONS});Se.sessionKeyList.some(function(xi){return Te(xi,ai)})&&S.INVALIDPLAYLIST("A Master Playlist MUST NOT contain more than one EXT-X-SESSION-KEY tag with the same METHOD, URI, IV, KEYFORMAT, and KEYFORMATVERSIONS attribute values."),Qe(Le,ce),Se.sessionKeyList.push(ai)}():te==="EXT-X-INDEPENDENT-SEGMENTS"?(Se.independentSegments&&S.INVALIDPLAYLIST("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),Se.independentSegments=!0):te==="EXT-X-START"&&(Se.start&&S.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),typeof ce["TIME-OFFSET"]!="number"&&S.INVALIDPLAYLIST("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),Se.start={offset:ce["TIME-OFFSET"],precise:ce.PRECISE||!1})}}catch(ai){b.e(ai)}finally{b.f()}if(Me){var bt,at=U(Se.variants);try{for(at.s();!(bt=at.n()).done;)typeof bt.value.score!="number"&&S.INVALIDPLAYLIST("If any Variant Stream contains the SCORE attribute, then all Variant Streams in the Master Playlist SHOULD have a SCORE attribute")}catch(ai){at.e(ai)}finally{at.f()}}if(Le.isClosedCaptionsNone){var pi,ri=U(Se.variants);try{for(ri.s();!(pi=ri.n()).done;)pi.value.closedCaptions.length>0&&S.INVALIDPLAYLIST("If there is a variant with CLOSED-CAPTIONS attribute of NONE, all EXT-X-STREAM-INF tags MUST have this attribute with a value of NONE")}catch(ai){ri.e(ai)}finally{ri.f()}}return Se}(Q,_e):!(ke=function(je,Le){var et,Se=new j,Me=-1,b=0,F=!1,k=!1,ne=0,te=null,ye=null,ce=!1,Pe=U(je.entries());try{for(Pe.s();!(et=Pe.n()).done;){var ht=T(et.value,2),kt=ht[0],bt=ht[1],at=bt.name,pi=bt.value,ri=bt.attributes;if(bt.category!=="Segment"){if(at==="EXT-X-VERSION")Se.version===void 0?Se.version=pi:S.INVALIDPLAYLIST("A Playlist file MUST NOT contain more than one EXT-X-VERSION tag.");else if(at==="EXT-X-TARGETDURATION")Se.targetDuration=Le.targetDuration=pi;else if(at==="EXT-X-MEDIA-SEQUENCE")Se.segments.length>0&&S.INVALIDPLAYLIST("The EXT-X-MEDIA-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),Se.mediaSequenceBase=b=pi;else if(at==="EXT-X-DISCONTINUITY-SEQUENCE")Se.segments.length>0&&S.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before the first Media Segment in the Playlist."),F&&S.INVALIDPLAYLIST("The EXT-X-DISCONTINUITY-SEQUENCE tag MUST appear before any EXT-X-DISCONTINUITY tag."),Se.discontinuitySequenceBase=ne=pi;else if(at==="EXT-X-ENDLIST")Se.endlist=!0;else if(at==="EXT-X-PLAYLIST-TYPE")Se.playlistType=pi;else if(at==="EXT-X-I-FRAMES-ONLY")Le.compatibleVersion<4&&(Le.compatibleVersion=4),Se.isIFrame=!0;else if(at==="EXT-X-INDEPENDENT-SEGMENTS")Se.independentSegments&&S.INVALIDPLAYLIST("EXT-X-INDEPENDENT-SEGMENTS tag MUST NOT appear more than once in a Playlist"),Se.independentSegments=!0;else if(at==="EXT-X-START")Se.start&&S.INVALIDPLAYLIST("EXT-X-START tag MUST NOT appear more than once in a Playlist"),typeof ri["TIME-OFFSET"]!="number"&&S.INVALIDPLAYLIST("EXT-X-START: TIME-OFFSET attribute is REQUIRED"),Se.start={offset:ri["TIME-OFFSET"],precise:ri.PRECISE||!1};else if(at==="EXT-X-SERVER-CONTROL")ri["CAN-BLOCK-RELOAD"]||S.INVALIDPLAYLIST("EXT-X-SERVER-CONTROL: CAN-BLOCK-RELOAD=YES is mandatory for Low-Latency HLS"),Se.lowLatencyCompatibility={canBlockReload:ri["CAN-BLOCK-RELOAD"],canSkipUntil:ri["CAN-SKIP-UNTIL"],holdBack:ri["HOLD-BACK"],partHoldBack:ri["PART-HOLD-BACK"]};else if(at==="EXT-X-PART-INF")ri["PART-TARGET"]||S.INVALIDPLAYLIST("EXT-X-PART-INF: PART-TARGET attribute is mandatory"),Se.partTargetDuration=ri["PART-TARGET"];else if(at==="EXT-X-RENDITION-REPORT")ri.URI||S.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI attribute is mandatory"),ri.URI.search(/^[a-z]+:/)===0&&S.INVALIDPLAYLIST("EXT-X-RENDITION-REPORT: URI must be relative to the playlist uri"),Se.renditionReports.push(new be({uri:ri.URI,lastMSN:ri["LAST-MSN"],lastPart:ri["LAST-PART"]}));else if(at==="EXT-X-SKIP")ri["SKIPPED-SEGMENTS"]||S.INVALIDPLAYLIST("EXT-X-SKIP: SKIPPED-SEGMENTS attribute is mandatory"),Le.compatibleVersion<9&&(Le.compatibleVersion=9),Se.skip=ri["SKIPPED-SEGMENTS"],b+=Se.skip;else if(at==="EXT-X-PREFETCH"){var ai=Ve(je,pi,Me===-1?kt:Me,kt-1,b++,ne,Le);ai&&(ai.discontinuity&&(ai.discontinuitySequence++,ne=ai.discontinuitySequence),ai.key?te=ai.key:ai.key=te,Se.prefetchSegments.push(ai)),k=!0,Me=-1}else if(typeof bt=="string"){Me===-1&&S.INVALIDPLAYLIST("A URI line is not preceded by any segment tags"),Se.targetDuration||S.INVALIDPLAYLIST("The EXT-X-TARGETDURATION tag is REQUIRED"),k&&S.INVALIDPLAYLIST("These segments must appear after all complete segments.");var xi=Re(je,bt,Me,kt-1,b++,ne,Le);if(xi){var es=T(Ne(Se,xi,ne,te,ye),3);ne=es[0],te=es[1],ye=es[2],!ce&&xi.parts.length>0&&(ce=!0)}Me=-1}}else Me===-1&&(Me=kt),at==="EXT-X-DISCONTINUITY"&&(F=!0)}}catch(an){Pe.e(an)}finally{Pe.f()}if(Me!==-1){var un=Re(je,"",Me,je.length-1,b++,ne,Le);if(un){var Un=un.parts;Un.length>0&&!Se.endlist&&!Un[Un.length-1].hint&&S.INVALIDPLAYLIST("If the Playlist contains EXT-X-PART tags and does not contain an EXT-X-ENDLIST tag, the Playlist must contain an EXT-X-PRELOAD-HINT tag with a TYPE=PART attribute"),Ne(Se,un,te,ye),!ce&&un.parts.length>0&&(ce=!0)}}return function(an){for(var z=new Map,X=new Map,re=!1,Ee=!1,He=an.length-1;He>=0;He--){var Et=an[He],Qt=Et.programDateTime,mt=Et.dateRange;if(Qt&&(Ee=!0),mt&&mt.start){re=!0,mt.endOnNext&&(mt.end||mt.duration)&&S.INVALIDPLAYLIST("An EXT-X-DATERANGE tag with an END-ON-NEXT=YES attribute MUST NOT contain DURATION or END-DATE attributes.");var oi=mt.start.getTime(),vi=mt.duration||0;mt.end&&mt.duration&&oi+1e3*vi!==mt.end.getTime()&&S.INVALIDPLAYLIST("END-DATE MUST be equal to the value of the START-DATE attribute plus the value of the DURATION"),mt.endOnNext&&(mt.end=z.get(mt.classId)),z.set(mt.classId,mt.start);var mi=mt.end?mt.end.getTime():mt.start.getTime()+1e3*(mt.duration||0),Tt=X.get(mt.classId);if(Tt){var Hi,Mi=U(Tt);try{for(Mi.s();!(Hi=Mi.n()).done;){var Oi=Hi.value;(Oi.start<=oi&&Oi.end>oi||Oi.start>=oi&&Oi.start0&&HiEe&&S.INVALIDPLAYLIST("PART-TARGET is the maximum duration of any Partial Segment"),Hn0&&(Pn.lastPart=Xs.parts.length-1)}}catch(bs){Cn.e(bs)}finally{Cn.f()}}(Se,ce),Se}(Q,_e)).isIFrame&&_e.hasMap&&_e.compatibleVersion<6&&(_e.compatibleVersion=6),_e.compatibleVersion>1&&(!ke.version||ke.version<_e.compatibleVersion)&&S.INVALIDPLAYLIST("EXT-X-VERSION needs to be ".concat(_e.compatibleVersion," or higher.")),ke}m.exports=function(Q){var _e={version:void 0,isMasterPlaylist:void 0,hasMap:!1,targetDuration:0,compatibleVersion:1,isClosedCaptionsNone:!1,hash:{}},ke=function(Le,et){var Se,Me=[],b=U(Le.split(` `));try{for(b.s();!(Se=b.n()).done;){var F=Se.value,k=v.from(F.trim()).toString();if(k)if(k.startsWith("#")){if(k.startsWith("#EXT")){var ne=We(k,et);ne&&Me.push(ne)}}else Me.push(k)}}catch(te){b.e(te)}finally{b.f()}return Me.length!==0&&Me[0].name==="EXTM3U"||S.INVALIDPLAYLIST("The EXTM3U tag MUST be the first line."),Me}(Q,_e),je=ct(ke,_e);return je.source=Q,je}},367:(m,y,C)=>{function T(J){return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ee){return typeof ee}:function(ee){return ee&&typeof Symbol=="function"&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},T(J)}function U(J,ee){return function(ae){if(Array.isArray(ae))return ae}(J)||function(ae,de){var Te=ae==null?null:typeof Symbol<"u"&&ae[Symbol.iterator]||ae["@@iterator"];if(Te!=null){var Re,Ve,Ne,We,ct=[],Q=!0,_e=!1;try{if(Ne=(Te=Te.call(ae)).next,de===0){if(Object(Te)!==Te)return;Q=!1}else for(;!(Q=(Re=Ne.call(Te)).done)&&(ct.push(Re.value),ct.length!==de);Q=!0);}catch(ke){_e=!0,Ve=ke}finally{try{if(!Q&&Te.return!=null&&(We=Te.return(),Object(We)!==We))return}finally{if(_e)throw Ve}}return ct}}(J,ee)||M(J,ee)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function G(J,ee){var ae=typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(!ae){if(Array.isArray(J)||(ae=M(J))||ee&&J&&typeof J.length=="number"){ae&&(J=ae);var de=0,Te=function(){};return{s:Te,n:function(){return de>=J.length?{done:!0}:{done:!1,value:J[de++]}},e:function(We){throw We},f:Te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Re,Ve=!0,Ne=!1;return{s:function(){ae=ae.call(J)},n:function(){var We=ae.next();return Ve=We.done,We},e:function(We){Ne=!0,Re=We},f:function(){try{Ve||ae.return==null||ae.return()}finally{if(Ne)throw Re}}}}function M(J,ee){if(J){if(typeof J=="string")return S(J,ee);var ae=Object.prototype.toString.call(J).slice(8,-1);return ae==="Object"&&J.constructor&&(ae=J.constructor.name),ae==="Map"||ae==="Set"?Array.from(J):ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae)?S(J,ee):void 0}}function S(J,ee){(ee==null||ee>J.length)&&(ee=J.length);for(var ae=0,de=new Array(ee);ae"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d(J,ee){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ae,de){return ae.__proto__=de,ae},d(J,ee)}function g(J){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ee){return ee.__proto__||Object.getPrototypeOf(ee)},g(J)}var w=C(771),j=["#EXTINF","#EXT-X-BYTERANGE","#EXT-X-DISCONTINUITY","#EXT-X-STREAM-INF","#EXT-X-CUE-OUT","#EXT-X-CUE-IN","#EXT-X-KEY","#EXT-X-MAP"],H=["#EXT-X-MEDIA"],se=function(J){(function(Ne,We){if(typeof We!="function"&&We!==null)throw new TypeError("Super expression must either be null or a function");Ne.prototype=Object.create(We&&We.prototype,{constructor:{value:Ne,writable:!0,configurable:!0}}),Object.defineProperty(Ne,"prototype",{writable:!1}),We&&d(Ne,We)})(Ve,J);var ee,ae,de,Te,Re=(ee=Ve,ae=l(),function(){var Ne,We=g(ee);if(ae){var ct=g(this).constructor;Ne=Reflect.construct(We,arguments,ct)}else Ne=We.apply(this,arguments);return R(this,Ne)});function Ve(Ne){var We;return function(ct,Q){if(!(ct instanceof Q))throw new TypeError("Cannot call a class as a function")}(this,Ve),(We=Re.call(this)).baseUri=Ne,We}return de=Ve,Te=[{key:"push",value:function(){for(var Ne=this,We=arguments.length,ct=new Array(We),Q=0;Q0){de.push('AUDIO="'.concat(ee.audio[0].groupId,'"'));var Te,Re=G(ee.audio);try{for(Re.s();!(Te=Re.n()).done;){var Ve=Te.value;J.push(Xe(Ve))}}catch(te){Re.e(te)}finally{Re.f()}}if(ee.video.length>0){de.push('VIDEO="'.concat(ee.video[0].groupId,'"'));var Ne,We=G(ee.video);try{for(We.s();!(Ne=We.n()).done;){var ct=Ne.value;J.push(Xe(ct))}}catch(te){We.e(te)}finally{We.f()}}if(ee.subtitles.length>0){de.push('SUBTITLES="'.concat(ee.subtitles[0].groupId,'"'));var Q,_e=G(ee.subtitles);try{for(_e.s();!(Q=_e.n()).done;){var ke=Q.value;J.push(Xe(ke))}}catch(te){_e.e(te)}finally{_e.f()}}if(w.getOptions().allowClosedCaptionsNone&&ee.closedCaptions.length===0)de.push("CLOSED-CAPTIONS=NONE");else if(ee.closedCaptions.length>0){de.push('CLOSED-CAPTIONS="'.concat(ee.closedCaptions[0].groupId,'"'));var je,Le=G(ee.closedCaptions);try{for(Le.s();!(je=Le.n()).done;){var et=je.value;J.push(Xe(et))}}catch(te){Le.e(te)}finally{Le.f()}}if(ee.score&&de.push("SCORE=".concat(ee.score)),ee.allowedCpc){var Se,Me=[],b=G(ee.allowedCpc);try{for(b.s();!(Se=b.n()).done;){var F=Se.value,k=F.format,ne=F.cpcList;Me.push("".concat(k,":").concat(ne.join("/")))}}catch(te){b.e(te)}finally{b.f()}de.push('ALLOWED-CPC="'.concat(Me.join(","),'"'))}ee.videoRange&&de.push("VIDEO-RANGE=".concat(ee.videoRange)),ee.stableVariantId&&de.push('STABLE-VARIANT-ID="'.concat(ee.stableVariantId,'"')),J.push("".concat(ae,":").concat(de.join(","))),ee.isIFrameOnly||J.push("".concat(ee.uri))}function Xe(J){var ee=["TYPE=".concat(J.type),'GROUP-ID="'.concat(J.groupId,'"'),'NAME="'.concat(J.name,'"')];return J.isDefault!==void 0&&ee.push("DEFAULT=".concat(J.isDefault?"YES":"NO")),J.autoselect!==void 0&&ee.push("AUTOSELECT=".concat(J.autoselect?"YES":"NO")),J.forced!==void 0&&ee.push("FORCED=".concat(J.forced?"YES":"NO")),J.language&&ee.push('LANGUAGE="'.concat(J.language,'"')),J.assocLanguage&&ee.push('ASSOC-LANGUAGE="'.concat(J.assocLanguage,'"')),J.instreamId&&ee.push('INSTREAM-ID="'.concat(J.instreamId,'"')),J.characteristics&&ee.push('CHARACTERISTICS="'.concat(J.characteristics,'"')),J.channels&&ee.push('CHANNELS="'.concat(J.channels,'"')),J.uri&&ee.push('URI="'.concat(J.uri,'"')),"#EXT-X-MEDIA:".concat(ee.join(","))}function it(J,ee,ae,de){var Te=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,Re=!1,Ve="";if(ee.discontinuity&&J.push("#EXT-X-DISCONTINUITY"),ee.key){var Ne=ve(ee.key);Ne!==ae&&(J.push(Ne),ae=Ne)}if(ee.map){var We=function(Q){var _e=['URI="'.concat(Q.uri,'"')];return Q.byterange&&_e.push('BYTERANGE="'.concat(qe(Q.byterange),'"')),"#EXT-X-MAP:".concat(_e.join(","))}(ee.map);We!==de&&(J.push(We),de=We)}if(ee.programDateTime&&J.push("#EXT-X-PROGRAM-DATE-TIME:".concat(w.formatDate(ee.programDateTime))),ee.dateRange&&J.push(function(Q){var _e=['ID="'.concat(Q.id,'"')];Q.start&&_e.push('START-DATE="'.concat(w.formatDate(Q.start),'"')),Q.end&&_e.push('END-DATE="'.concat(Q.end,'"')),Q.duration&&_e.push("DURATION=".concat(Q.duration)),Q.plannedDuration&&_e.push("PLANNED-DURATION=".concat(Q.plannedDuration)),Q.classId&&_e.push('CLASS="'.concat(Q.classId,'"')),Q.endOnNext&&_e.push("END-ON-NEXT=YES");for(var ke=0,je=Object.keys(Q.attributes);ke0&&(Ve=Be(J,ee.markers)),ee.parts.length>0&&(Re=Qe(J,ee.parts)),Re)return[ae,de];var ct=Te<3?Math.round(ee.duration):Z(ee.duration,function(Q){var _e=Q.toString(10),ke=_e.indexOf(".");return ke===-1?0:_e.length-ke-1}(ee.duration));return J.push("#EXTINF:".concat(ct,",").concat(unescape(encodeURIComponent(ee.title||"")))),ee.byterange&&J.push("#EXT-X-BYTERANGE:".concat(qe(ee.byterange))),Array.prototype.push.call(J,"".concat(ee.uri)),[ae,de,Ve]}function qe(J){var ee=J.offset,ae=J.length;return"".concat(ae,"@").concat(ee)}function Be(J,ee){var ae,de="",Te=G(ee);try{for(Te.s();!(ae=Te.n()).done;){var Re=ae.value;if(Re.type==="OUT")de="OUT",J.push("#EXT-X-CUE-OUT:DURATION=".concat(Re.duration));else if(Re.type==="IN")de="IN",J.push("#EXT-X-CUE-IN");else if(Re.type==="RAW"){var Ve=Re.value?":".concat(Re.value):"";J.push("#".concat(Re.tagName).concat(Ve))}}}catch(Ne){Te.e(Ne)}finally{Te.f()}return de}function Qe(J,ee){var ae,de=!1,Te=G(ee);try{for(Te.s();!(ae=Te.n()).done;){var Re=ae.value;if(Re.hint){var Ve=[];if(Ve.push("TYPE=PART",'URI="'.concat(Re.uri,'"')),Re.byterange){var Ne=Re.byterange,We=Ne.offset,ct=Ne.length;Ve.push("BYTERANGE-START=".concat(We)),ct&&Ve.push("BYTERANGE-LENGTH=".concat(ct))}J.push("#EXT-X-PRELOAD-HINT:".concat(Ve.join(","))),de=!0}else{var Q=[];Q.push("DURATION=".concat(Re.duration),'URI="'.concat(Re.uri,'"')),Re.byterange&&Q.push("BYTERANGE=".concat(qe(Re.byterange))),Re.independent&&Q.push("INDEPENDENT=YES"),Re.gap&&Q.push("GAP=YES"),J.push("#EXT-X-PART:".concat(Q.join(",")))}}}catch(_e){Te.e(_e)}finally{Te.f()}return de}m.exports=function(J){w.PARAMCHECK(J),w.ASSERT("Not a playlist",J.type==="playlist");var ee=new se(J.uri);return ee.push("#EXTM3U"),J.version&&ee.push("#EXT-X-VERSION:".concat(J.version)),J.independentSegments&&ee.push("#EXT-X-INDEPENDENT-SEGMENTS"),J.start&&ee.push("#EXT-X-START:TIME-OFFSET=".concat(Z(J.start.offset)).concat(J.start.precise?",PRECISE=YES":"")),J.isMasterPlaylist?function(ae,de){var Te,Re=G(de.sessionDataList);try{for(Re.s();!(Te=Re.n()).done;){var Ve=Te.value;ae.push(be(Ve))}}catch(ke){Re.e(ke)}finally{Re.f()}var Ne,We=G(de.sessionKeyList);try{for(We.s();!(Ne=We.n()).done;){var ct=Ne.value;ae.push(ve(ct,!0))}}catch(ke){We.e(ke)}finally{We.f()}var Q,_e=G(de.variants);try{for(_e.s();!(Q=_e.n()).done;)Ie(ae,Q.value)}catch(ke){_e.e(ke)}finally{_e.f()}}(ee,J):function(ae,de){var Te="",Re="",Ve=!1;if(de.targetDuration&&ae.push("#EXT-X-TARGETDURATION:".concat(de.targetDuration)),de.lowLatencyCompatibility){var Ne=de.lowLatencyCompatibility,We=Ne.canBlockReload,ct=Ne.canSkipUntil,Q=Ne.holdBack,_e=Ne.partHoldBack,ke=[];ke.push("CAN-BLOCK-RELOAD=".concat(We?"YES":"NO")),ct!==void 0&&ke.push("CAN-SKIP-UNTIL=".concat(ct)),Q!==void 0&&ke.push("HOLD-BACK=".concat(Q)),_e!==void 0&&ke.push("PART-HOLD-BACK=".concat(_e)),ae.push("#EXT-X-SERVER-CONTROL:".concat(ke.join(",")))}de.partTargetDuration&&ae.push("#EXT-X-PART-INF:PART-TARGET=".concat(de.partTargetDuration)),de.mediaSequenceBase&&ae.push("#EXT-X-MEDIA-SEQUENCE:".concat(de.mediaSequenceBase)),de.discontinuitySequenceBase&&ae.push("#EXT-X-DISCONTINUITY-SEQUENCE:".concat(de.discontinuitySequenceBase)),de.playlistType&&ae.push("#EXT-X-PLAYLIST-TYPE:".concat(de.playlistType)),de.isIFrame&&ae.push("#EXT-X-I-FRAMES-ONLY"),de.skip>0&&ae.push("#EXT-X-SKIP:SKIPPED-SEGMENTS=".concat(de.skip));var je,Le=G(de.segments);try{for(Le.s();!(je=Le.n()).done;){var et,Se=U(it(ae,je.value,Te,Re,de.version),3);Te=Se[0],Re=Se[1],(et=Se[2])==="OUT"?Ve=!0:et==="IN"&&Ve&&(Ve=!1)}}catch(ce){Le.e(ce)}finally{Le.f()}de.playlistType==="VOD"&&Ve&&ae.push("#EXT-X-CUE-IN"),de.prefetchSegments.length>2&&w.INVALIDPLAYLIST("The server must deliver no more than two prefetch segments");var Me,b=G(de.prefetchSegments);try{for(b.s();!(Me=b.n()).done;){var F=Me.value;F.discontinuity&&ae.push("#EXT-X-PREFETCH-DISCONTINUITY"),ae.push("#EXT-X-PREFETCH:".concat(F.uri))}}catch(ce){b.e(ce)}finally{b.f()}de.endlist&&ae.push("#EXT-X-ENDLIST");var k,ne=G(de.renditionReports);try{for(ne.s();!(k=ne.n()).done;){var te=k.value,ye=[];ye.push('URI="'.concat(te.uri,'"'),"LAST-MSN=".concat(te.lastMSN)),te.lastPart!==void 0&&ye.push("LAST-PART=".concat(te.lastPart)),ae.push("#EXT-X-RENDITION-REPORT:".concat(ye.join(",")))}}catch(ce){ne.e(ce)}finally{ne.f()}}(ee,J),ee.join(` `)}},890:(m,y,C)=>{function T(Qe){return T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},T(Qe)}function U(Qe,J){if(typeof J!="function"&&J!==null)throw new TypeError("Super expression must either be null or a function");Qe.prototype=Object.create(J&&J.prototype,{constructor:{value:Qe,writable:!0,configurable:!0}}),Object.defineProperty(Qe,"prototype",{writable:!1}),J&&G(Qe,J)}function G(Qe,J){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ee,ae){return ee.__proto__=ae,ee},G(Qe,J)}function M(Qe){var J=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ee,ae=D(Qe);if(J){var de=D(this).constructor;ee=Reflect.construct(ae,arguments,de)}else ee=ae.apply(this,arguments);return S(this,ee)}}function S(Qe,J){if(J&&(T(J)==="object"||typeof J=="function"))return J;if(J!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(ee){if(ee===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ee}(Qe)}function D(Qe){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(J){return J.__proto__||Object.getPrototypeOf(J)},D(Qe)}function B(Qe,J){for(var ee=0;ee=0],[Ve,Ve>=0]),this.id=ee,this.classId=ae,this.start=de,this.end=Te,this.duration=Re,this.plannedDuration=Ve,this.endOnNext=Ne,this.attributes=ct}),se=R(function Qe(J){var ee=J.type,ae=J.duration,de=J.tagName,Te=J.value;V(this,Qe),$.PARAMCHECK(ee),$.CONDITIONALPARAMCHECK([ee==="OUT",ae]),$.CONDITIONALPARAMCHECK([ee==="RAW",de]),this.type=ee,this.duration=ae,this.tagName=de,this.value=Te}),Z=R(function Qe(J){V(this,Qe),$.PARAMCHECK(J),this.type=J}),be=function(Qe){U(ee,Qe);var J=M(ee);function ee(ae){var de,Te=ae.isMasterPlaylist,Re=ae.uri,Ve=ae.version,Ne=ae.independentSegments,We=Ne!==void 0&&Ne,ct=ae.start,Q=ae.source;return V(this,ee),de=J.call(this,"playlist"),$.PARAMCHECK(Te),de.isMasterPlaylist=Te,de.uri=Re,de.version=Ve,de.independentSegments=We,de.start=ct,de.source=Q,de}return R(ee)}(Z),ve=function(Qe){U(ee,Qe);var J=M(ee);function ee(){var ae,de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};V(this,ee),de.isMasterPlaylist=!0,ae=J.call(this,de);var Te=de.variants,Re=Te===void 0?[]:Te,Ve=de.currentVariant,Ne=de.sessionDataList,We=Ne===void 0?[]:Ne,ct=de.sessionKeyList,Q=ct===void 0?[]:ct;return ae.variants=Re,ae.currentVariant=Ve,ae.sessionDataList=We,ae.sessionKeyList=Q,ae}return R(ee)}(be),Ie=function(Qe){U(ee,Qe);var J=M(ee);function ee(){var ae,de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};V(this,ee),de.isMasterPlaylist=!1,ae=J.call(this,de);var Te=de.targetDuration,Re=de.mediaSequenceBase,Ve=Re===void 0?0:Re,Ne=de.discontinuitySequenceBase,We=Ne===void 0?0:Ne,ct=de.endlist,Q=ct!==void 0&&ct,_e=de.playlistType,ke=de.isIFrame,je=de.segments,Le=je===void 0?[]:je,et=de.prefetchSegments,Se=et===void 0?[]:et,Me=de.lowLatencyCompatibility,b=de.partTargetDuration,F=de.renditionReports,k=F===void 0?[]:F,ne=de.skip,te=ne===void 0?0:ne,ye=de.hash;return ae.targetDuration=Te,ae.mediaSequenceBase=Ve,ae.discontinuitySequenceBase=We,ae.endlist=Q,ae.playlistType=_e,ae.isIFrame=ke,ae.segments=Le,ae.prefetchSegments=Se,ae.lowLatencyCompatibility=Me,ae.partTargetDuration=b,ae.renditionReports=k,ae.skip=te,ae.hash=ye,ae}return R(ee)}(be),Xe=function(Qe){U(ee,Qe);var J=M(ee);function ee(ae){var de,Te=ae.uri,Re=ae.mimeType,Ve=ae.data,Ne=ae.duration,We=ae.title,ct=ae.byterange,Q=ae.discontinuity,_e=ae.mediaSequenceNumber,ke=_e===void 0?0:_e,je=ae.discontinuitySequence,Le=je===void 0?0:je,et=ae.key,Se=ae.map,Me=ae.programDateTime,b=ae.dateRange,F=ae.markers,k=F===void 0?[]:F,ne=ae.parts,te=ne===void 0?[]:ne;return V(this,ee),(de=J.call(this,"segment")).uri=Te,de.mimeType=Re,de.data=Ve,de.duration=Ne,de.title=We,de.byterange=ct,de.discontinuity=Q,de.mediaSequenceNumber=ke,de.discontinuitySequence=Le,de.key=et,de.map=Se,de.programDateTime=Me,de.dateRange=b,de.markers=k,de.parts=te,de}return R(ee)}(Z),it=function(Qe){U(ee,Qe);var J=M(ee);function ee(ae){var de,Te=ae.hint,Re=Te!==void 0&&Te,Ve=ae.uri,Ne=ae.duration,We=ae.independent,ct=ae.byterange,Q=ae.gap;return V(this,ee),de=J.call(this,"part"),$.PARAMCHECK(Ve),de.hint=Re,de.uri=Ve,de.duration=Ne,de.independent=We,de.duration=Ne,de.byterange=ct,de.gap=Q,de}return R(ee)}(Z),qe=function(Qe){U(ee,Qe);var J=M(ee);function ee(ae){var de,Te=ae.uri,Re=ae.discontinuity,Ve=ae.mediaSequenceNumber,Ne=Ve===void 0?0:Ve,We=ae.discontinuitySequence,ct=We===void 0?0:We,Q=ae.key;return V(this,ee),de=J.call(this,"prefetch"),$.PARAMCHECK(Te),de.uri=Te,de.discontinuity=Re,de.mediaSequenceNumber=Ne,de.discontinuitySequence=ct,de.key=Q,de}return R(ee)}(Z),Be=R(function Qe(J){var ee=J.uri,ae=J.lastMSN,de=J.lastPart;V(this,Qe),$.PARAMCHECK(ee),this.uri=ee,this.lastMSN=ae,this.lastPart=de});m.exports={Rendition:l,Variant:d,SessionData:g,Key:w,MediaInitializationSection:j,DateRange:H,SpliceInfo:se,Playlist:be,MasterPlaylist:ve,MediaPlaylist:Ie,Segment:Xe,PartialSegment:it,PrefetchSegment:qe,RenditionReport:Be}},771:m=>{function y(D,B){return function(R){if(Array.isArray(R))return R}(D)||function(R,V){var $=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if($!=null){var l,d,g,w,j=[],H=!0,se=!1;try{if(g=($=$.call(R)).next,V===0){if(Object($)!==$)return;H=!1}else for(;!(H=(l=g.call($)).done)&&(j.push(l.value),j.length!==V);H=!0);}catch(Z){se=!0,d=Z}finally{try{if(!H&&$.return!=null&&(w=$.return(),Object(w)!==w))return}finally{if(se)throw d}}return j}}(D,B)||T(D,B)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function C(D,B){var R=typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(!R){if(Array.isArray(D)||(R=T(D))||B&&D&&typeof D.length=="number"){R&&(D=R);var V=0,$=function(){};return{s:$,n:function(){return V>=D.length?{done:!0}:{done:!1,value:D[V++]}},e:function(w){throw w},f:$}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,d=!0,g=!1;return{s:function(){R=R.call(D)},n:function(){var w=R.next();return d=w.done,w},e:function(w){g=!0,l=w},f:function(){try{d||R.return==null||R.return()}finally{if(g)throw l}}}}function T(D,B){if(D){if(typeof D=="string")return U(D,B);var R=Object.prototype.toString.call(D).slice(8,-1);return R==="Object"&&D.constructor&&(R=D.constructor.name),R==="Map"||R==="Set"?Array.from(D):R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R)?U(D,B):void 0}}function U(D,B){(B==null||B>D.length)&&(B=D.length);for(var R=0,V=new Array(B);R1&&arguments[1]!==void 0?arguments[1]:10;if(typeof D=="number")return D;var R=B===10?Number.parseFloat(D,B):Number.parseInt(D,B);return Number.isNaN(R)?0:R}m.exports={THROW:M,ASSERT:function(D){for(var B=arguments.length,R=new Array(B>1?B-1:0),V=1;V1&&arguments[1]!==void 0?arguments[1]:0,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:D.length;R<=B&&M(new Error("end must be larger than start : start=".concat(B,", end=").concat(R)));for(var V=[],$=B;$2&&arguments[2]!==void 0?arguments[2]:0,V=-1,$=0,l=0;$1&&arguments[1]!==void 0?arguments[1]:" ";return D&&(D=D.trim(),B===" "||(D.startsWith(B)&&(D=D.slice(1)),D.endsWith(B)&&(D=D.slice(0,-1))),D)},splitByCommaWithPreservingQuotes:function(D){for(var B=[],R=!0,V=0,$=[],l=0;l0&&arguments[0]!==void 0?arguments[0]:{};G=Object.assign(G,D)},getOptions:function(){return Object.assign({},G)}}}},_={},function m(y){var C=_[y];if(C!==void 0)return C.exports;var T=_[y]={exports:{}};return A[y](T,T.exports,m),T.exports}(851);var A,_},n.exports=p()},8932:n=>{n.exports={NO_RESPONSE:"NO_RESPONSE",EMPTY:"EMPTY_RESPONSE",WRONG:"WRONG_RESPONSE"}},9065:(n,o,c)=>{"use strict";c.r(o),c.d(o,{default:()=>$});var p=c(108),v=c(1577),A=c(2784),_=c(7276),m=c(9907);class y{constructor(d,g,w,j,H){var se,Z,be;this.response={},this._session="",this.sessionExpire=120,this.retries=0,this.isUsingLegacy=!1,this.options=d,this.npawPluginOptions=H,this.accountCode=g,this.coreStorage=w,this.browserStorage=j,this._fastDataHost=this.options.getFastDataHost();let ve=(se=m.env.IS_STANDALONE==="true")!==null&&se!==void 0&&se;this.isUsingLegacy=ve&&(be=((Z=H?.legacyPlugin)===null||Z===void 0?void 0:Z.viewTransform)!==void 0)!==null&&be!==void 0&&be,this._createConfigurationInterval()}init(){var d,g;if(this.options&&this.options.offline)return this.response.host="OFFLINE",this.response.code="OFFLINE",this.response.pingTime=60,this.response.beatTime=60,void(this._session=v.default.generateRandomString(15));if(this.isUsingLegacy)return;if(this.browserStorage&&this.browserStorage.isEnabled()&&new Date().getTime()<1e3*((d=Number(this.browserStorage.getLocal("sessionExpire")))!==null&&d!==void 0?d:this.sessionExpire)+(Number(this.coreStorage.getDataTime())||0)&&this.coreStorage.getStoredData())return void this.setData((g=this.coreStorage.getStoredData())!==null&&g!==void 0?g:"");let w=p.A.Service.DATA,j={system:this.accountCode,pluginVersion:$.getPluginVersion(),requestNumber:this.getRequestNumber()};this.loadConfiguration();try{_.default.notice(A.CoreTag,w+" "+j.system),j.system==="nicetest"&&_.default.error(A.CoreTag,"No accountCode has been set. Please set your accountCode inside plugin's options."),this.performRequestToFastData(w,j,this._receiveData.bind(this),this._failedData.bind(this))}catch{_.default.error(A.CoreTag,"Error doing get data request to FastData service.")}}updateOptions(d){this.options.updateOptions(d),this.options.offline&&(this.reset(),this.init())}getSessionExpireTime(){return this.sessionExpire}refreshSessionToken(){this._session="",this.browserStorage.removeStorages("data"),this.init()}loadConfiguration(){let d=p.A.Service.CONFIGURATION,g={system:this.accountCode,pluginVersion:$.getPluginVersion(),requestNumber:this.getRequestNumber()};this.performRequestToFastData(d,g,this._receiveConfiguration.bind(this),this._failedConfiguration.bind(this))}getSession(){var d,g;return this.isUsingLegacy?(g=(d=this.npawPluginOptions)===null||d===void 0?void 0:d.legacyPlugin)===null||g===void 0?void 0:g.viewTransform._session:this._session}setSession(d){this._session=d}setHost(d){this.response.host=d}getPingTime(){var d;return(d=this.pingTime)!==null&&d!==void 0?d:5}getBeatTime(){var d;return(d=this.beatTime)!==null&&d!==void 0?d:30}setData(d){try{let g=JSON.parse(d);this.options["parse.fdsResponseHost"]&&(d=d.replace(g.q.h,this.options["parse.fdsResponseHost"](g.q.h)),g=JSON.parse(d)),this.response={msg:d,host:g.q.h,code:g.q.c,pingTime:g.q.pt||5,beatTime:g.q.i&&g.q.i.bt||30,sessionExpire:g.q.st&&g.q.st||120},this._session=this.response.code,this.browserStorage.setLocal("sessionExpire",this.response.sessionExpire),this.browserStorage.setStorages("accCode",this.accountCode),this.browserStorage.setStorages("session",this.response.code),this.coreStorage.setStoredData(this.response.msg),this.coreStorage.setDataTime(new Date().getTime().toString()),this.pingTime=this.response.pingTime,this.beatTime=this.response.beatTime,this.sessionExpire=this.response.sessionExpire}catch{_.default.error(A.CoreTag,"Fastdata response is invalid.")}}setConfiguration(d){try{this.response.configurationOptions=JSON.parse(d)}catch{_.default.error(A.CoreTag,"Configuration response is invalid.")}}getFastDataResponse(){return this.response}getAccountCode(){return this.accountCode}getRequestNumber(){return Math.random()}reset(){this.coreStorage.removeStoredData(),this.coreStorage.removeSession(),this.browserStorage.removeLocal("sessionExpire"),this.browserStorage.removeStorages("accCode"),this.browserStorage.removeStorages("session")}performRequestToFastData(d,g,w,j){if(this.options.offline)return;g.timemark=new Date().getTime(),g.outputFormat="json";let H=this,se=new XMLHttpRequest;se.open("GET",`https://${this._fastDataHost}${d}${v.default.toQueryString(g)}`),se.onload=function(Z){H.options.offline||(se.status>=200&&se.status<400?w(this,Z):j(this,Z))},se.onerror=function(Z){j(this,Z)},se.send()}_createConfigurationInterval(){this.isUsingLegacy||!this.options.isRefreshLMAConfigurationEnabled()||this._refreshInterval||(this._refreshInterval=setInterval(this.loadConfiguration.bind(this),1e3*this.options.refreshLMAConfigurationSeconds()))}_receiveData(d,g){this.setData(d.response)}_receiveConfiguration(d,g){this.setConfiguration(d.response)}_failedData(d,g){_.default.error(A.CoreTag,"Fastdata request has failed."),++this.retries<5&&setTimeout(this.init.bind(this),5e3)}_failedConfiguration(d,g){_.default.error(A.CoreTag,"Fastdata configuration request has failed."),++this.retries<5&&setTimeout(this.init.bind(this),5e3)}}var C=c(2602);class T{constructor(){this.offline=!1,this.host="lma.npaw.com",this.disableCookies=!0,this.forceCookies=!1,this.disableStorage=!1,this.authToken=void 0,this.authType="Bearer",this["app.https"]=!0,this["lma.refresh.configuration.enabled"]=!1,this["lma.refresh.configuration.seconds"]=300,this["parse.fdsResponseHost"]=null}updateOptions(d){let g=new C.A;Object.keys(this).forEach(w=>{d[w]==null||Object.keys(g).includes(w)||(this[w]=d[w])})}setNpawPluginOptions(d){Object.keys(this).forEach(g=>{d[g]!=null&&(this[g]=d[g])})}isRefreshLMAConfigurationEnabled(){return this["lma.refresh.configuration.enabled"]}refreshLMAConfigurationSeconds(){return this["lma.refresh.configuration.seconds"]}getHost(){return this.host}getFastDataHost(){return this.host}}class U{constructor(d,g,w,j,H,se,Z){this.method=A.Method.GET,this.headers={},this.xhr=new XMLHttpRequest,this.retries=0,this.hadBody=!1,this.isHttps=d,this.host=g,this.service=w,this.method=j,this.params=H,this.onSuccessCallback=se,this.onFailCallback=Z}performHttps(){return this.isHttps}getHost(){return this.host}getService(){return this.service}getMethod(){return this.method}getParams(){return this.params}getBody(){return this.body}setBody(d){this.body=d}addHeader(d,g){this.headers[d]=g}getRetries(){return this.retries}send(d,g){if(this.params.timemark=Date.now(),this.params.sessionRoot=$.getInstance().getFastDataSessionToken(),this.params.system=$.getInstance().getFastDataService().getAccountCode(),this.body&&(this.hadBody=!0),this.method===A.Method.POST&&!this.body){let w={};w.timemark=this.params.timemark,this.params.code&&(w.code=this.params.code),w.sessionRoot=this.params.sessionRoot,w.system=this.params.system,w.sessionId=this.params.sessionId&&this.params.sessionId!=""?this.params.sessionId:$.getInstance().getFastDataSessionToken(),this.body=JSON.stringify(this.params),this.params=w}try{this.getUrl()}catch(w){console.log(w)}this.xhr.open(this.method,this.getUrl()),this.xhr.onreadystatechange=()=>{this.xhr.readyState===4&&this.xhr.status>=200&&this.xhr.status<400?(g&&g(),this.onSuccessCallback&&this.onSuccessCallback()):this.xhr.readyState===4&&(this.retries++,!this.hadBody&&this.method===A.Method.POST&&this.body&&(this.params=JSON.parse(this.body),this.body=void 0),d(),this.onFailCallback&&this.onFailCallback())};for(let w in this.headers)this.xhr.setRequestHeader(w,this.headers[w]);this.xhr.send(this.body)}asyncSend(){return d=this,g=void 0,j=function*(){return new Promise((H,se)=>{this.send(se,H)})},new((w=void 0)||(w=Promise))(function(H,se){function Z(Ie){try{ve(j.next(Ie))}catch(Xe){se(Xe)}}function be(Ie){try{ve(j.throw(Ie))}catch(Xe){se(Xe)}}function ve(Ie){var Xe;Ie.done?H(Ie.value):(Xe=Ie.value,Xe instanceof w?Xe:new w(function(it){it(Xe)})).then(Z,be)}ve((j=j.apply(d,g||[])).next())});var d,g,w,j}toLocalStorageString(){let d={},g=this.service.split("/");d.request=g[g.length-1],d.unixtime=this.params.timemark;for(let w in this.params)this.params[w]!==void 0&&(w==="sessionId"||w==="sessionRoot"?d[w]="":w==="code"?d[w]="CODE_PLACEHOLDER":typeof this.params[w]=="object"?d[w]=JSON.stringify(this.params[w]):d[w]=this.params[w]);return JSON.stringify(d)}getUrl(){return`${this.isHttps?"https":"http"}://${this.host}${this.service}${v.default.toQueryString(this.params)}`}}var G=c(5438);let M=[p.A.Service.ERROR,p.A.Service.AD_ERROR];class S{constructor(d,g,w){this.freshRequests=[],this.retryRequests=[],this.databaseSendingInterval=12e4,this.isDestroyed=!1,this.servicesToWait=[p.A.Service.INIT,p.A.Service.START],this.sentStart=!1,this.options=d,this.coreStorage=g,this.fastDataService=w}destroy(){this.freshRequests=[],this.retryRequests=[],this.isDestroyed=!0,this.timeWhenLastSentFromDatabase=new Date().getTime()}send(d,g,w,j,H){var se;if(this.isDestroyed)return;let Z=new U((se=this.options["app.https"])===null||se===void 0||se,this.coreStorage.getHost(),d,g,w??{},j,H);this.options.authToken!==void 0&&this.options.authType!==void 0&&d!==G.xC.CDN&&(_.default.verbose(A.AnalyticsTag,"Adding Authorization header with type "+this.options.authType),Z.addHeader("Authorization",this.options.authType+" "+this.options.authToken)),this.freshRequests.push(Z),this._processRequests()}getTimeOfLastSentRequest(){return this.timeOfLastSentRequest}wasStartSent(){return this.sentStart}_processRequests(){return d=this,g=void 0,j=function*(){if(this.isDestroyed)return;let H=this.retryRequests.splice(0,this.retryRequests.length),se=this.freshRequests.splice(0,this.freshRequests.length);H.length>0&&_.default.verbose(A.CoreTag,"Retrying to send these requests:",...H.map(ve=>ve.getService()));let Z=[],be=!1;for(let ve of H)if(be)Z.push(ve);else try{yield ve.asyncSend(),this.timeOfLastSentRequest=new Date().getTime(),this.coreStorage.setDataTime(this.timeOfLastSentRequest.toString())}catch{be=!0,Z.push(ve)}for(let ve of se)try{yield ve.asyncSend(),this.servicesToWait.includes(ve.getService())&&(this.sentStart=!0),this.timeOfLastSentRequest=new Date().getTime(),this.coreStorage.setDataTime(this.timeOfLastSentRequest.toString())}catch{M.includes(ve.getService())&&Z.push(ve)}this.retryRequests.push(...Z.slice(-25))},new((w=void 0)||(w=Promise))(function(H,se){function Z(Ie){try{ve(j.next(Ie))}catch(Xe){se(Xe)}}function be(Ie){try{ve(j.throw(Ie))}catch(Xe){se(Xe)}}function ve(Ie){var Xe;Ie.done?H(Ie.value):(Xe=Ie.value,Xe instanceof w?Xe:new w(function(it){it(Xe)})).then(Z,be)}ve((j=j.apply(d,g||[])).next())});var d,g,w,j}}class D{constructor(d,g,w){this.prefix="npaw",this.disableCookies=d,this.forceCookies=g,this.disabled=w}updateStorageOptions(d,g,w){this.disableCookies=d,this.forceCookies=g,this.disabled=w}isEnabled(){if(this.disabled)return!1;let d=!0;if(!this.forceCookies)try{localStorage.setItem(this.prefix+".test","true"),localStorage.removeItem(this.prefix+".test")}catch{d=!1}return d}setLocal(d,g){if(!this.disabled)try{!this.forceCookies&&(typeof localStorage<"u"&&localStorage||this.disableCookies)?typeof localStorage<"u"&&localStorage&&localStorage.setItem(this.prefix+"."+d,g):this._setCookie(this.prefix+".local."+d,g)}catch{_.default.debug(A.CoreTag,"App Analytics needs localStorage or cookies, not supported by your browser.")}}getLocal(d){if(!this.disabled)return this._localGetRemove("getItem","_getCookie",d)}removeLocal(d){if(!this.disabled)return this._localGetRemove("removeItem","_removeCookie",d)}_localGetRemove(d,g,w){try{if(this.forceCookies||!(typeof localStorage<"u"&&localStorage||this.disableCookies))return this[g](this.prefix+".local."+w);if(typeof localStorage<"u"&&localStorage)return localStorage[d](this.prefix+"."+w)}catch{_.default.debug(A.CoreTag,"App Analytics needs localStorage or cookies, not supported by your browser.")}}setSession(d,g){if(!this.disabled)try{!this.forceCookies&&(typeof sessionStorage<"u"&&sessionStorage||this.disableCookies)?typeof sessionStorage<"u"&&sessionStorage&&sessionStorage.setItem(this.prefix+"."+d,g):this._setCookie(this.prefix+".session."+d,g)}catch{_.default.debug(A.CoreTag,"App Analytics needs sessionStorage or cookies, not supported by your browser.")}}getSession(d){if(!this.disabled)return this._sessionGetRemove("getItem","_getCookie",d)}removeSession(d){if(!this.disabled)return this._sessionGetRemove("removeItem","_removeCookie",d)}_sessionGetRemove(d,g,w){try{if(this.forceCookies||!(typeof sessionStorage<"u"&&sessionStorage||this.disableCookies))return this[g](this.prefix+".session."+w);if(typeof sessionStorage<"u"&&sessionStorage)return sessionStorage[d](this.prefix+"."+w)}catch{_.default.debug(A.CoreTag,"App Analytics needs sessionStorage or cookies, not supported by your browser.")}}getStorages(d){if(!this.disabled)return this.getSession(d)||this.getLocal(d)}setStorages(d,g){this.disabled||(this.setSession(d,g),this.setLocal(d,g))}removeStorages(d){this.disabled||(this.removeSession(d),this.removeLocal(d))}_setCookie(d,g){if(typeof document<"u"){let w=";";typeof location<"u"&&(w+="domain="+location.host.split(".").reverse().splice(0,2).reverse().join(".")+";path=/;"),document.cookie=d+"="+g+w}}_getCookie(d){if(typeof document<"u"){let g=d+"=",w=decodeURIComponent(document.cookie).split(";");for(let j=0;j1e3*this.fastDataService.getSessionExpireTime()}pushData(d,g,w,j,H,se){this.handleDataToSend(d,g,w,j,H,se)}pushPeriodicDataFromCallback(d,g,w,j,H,se,Z,be){let ve=setInterval(()=>{let Ie=se();Ie&&this.handleDataToSend(d,w,H,Ie,Z,be)},j<1e3?1e3:j);this.registeredPeriodicPushes.has(g)?(clearInterval(this.registeredPeriodicPushes.get(g)),this.registeredPeriodicPushes.set(g,ve)):this.registeredPeriodicPushes.set(g,ve)}unregisterPeriodicPush(d){clearInterval(this.registeredPeriodicPushes.get(d)),this.registeredPeriodicPushes.delete(d)}unregisterAllPeriodicPushes(){if(this.registeredPeriodicPushes.size===0)return;_.default.debug(A.CoreTag,`Unregistering ${this.registeredPeriodicPushes.size} periodic pushes`);let d=Array.from(this.registeredPeriodicPushes.keys());for(let g of d)clearInterval(this.registeredPeriodicPushes.get(g)),this.registeredPeriodicPushes.delete(g);_.default.debug(A.CoreTag,"Finished unregistering all pushes")}deleteOldOfflineEntries(){var d,g,w,j;let H=(g=(d=this.coreStorage.getLocal("offlineViews"))===null||d===void 0?void 0:d.split(","))!==null&&g!==void 0?g:[];for(let se of H){let Z=(j=(w=this.coreStorage.getLocal("offlineViews."+se))===null||w===void 0?void 0:w.split(","))!==null&&j!==void 0?j:[];Z.length>0&&Date.now()-JSON.parse("["+Z+"]")[0].timemark>2592e6&&this.deleteViewDataFromLocalStorage(se)}}sendOfflineEvents(){var d,g,w,j,H,se;return w=this,j=void 0,se=function*(){if(this.options.offline)return void _.default.notice(A.AnalyticsTag,"Unable to send offline events because offline option is enabled");if(this.sendingOffline)return;this.sendingOffline=!0;let Z=15,be=!1;for(;!be&&Z-- >0;)this.getFastDataSessionToken()===""?yield new Promise(Ie=>setTimeout(Ie,100)):be=!0;if(Z<1)return;let ve=((g=(d=this.coreStorage.getLocal("offlineViews"))===null||d===void 0?void 0:d.split(","))!==null&&g!==void 0?g:[]).map(Ie=>new Promise((Xe,it)=>{var qe;let Be=(qe=this.coreStorage.getLocal("offlineViews."+Ie))!==null&&qe!==void 0?qe:"";if(Be=Be.replace(/CODE_PLACEHOLDER/g,$.getInstance().getFastDataSessionToken()+"_"+Ie.split("_")[1]),Be.length>0){let Qe=new U(!0,this.coreStorage.getHost(),p.A.Service.OFFLINE_EVENTS,A.Method.POST,{code:$.getInstance().getFastDataSessionToken()+"_"+Ie.split("_")[1]},()=>{this.deleteViewDataFromLocalStorage(Ie),Xe()},()=>Xe());Qe.setBody("["+Be+"]"),Qe.send(function(){})}}));yield Promise.all(ve).finally(()=>{this.sendingOffline=!1})},new((H=void 0)||(H=Promise))(function(Z,be){function ve(it){try{Xe(se.next(it))}catch(qe){be(qe)}}function Ie(it){try{Xe(se.throw(it))}catch(qe){be(qe)}}function Xe(it){var qe;it.done?Z(it.value):(qe=it.value,qe instanceof H?qe:new H(function(Be){Be(qe)})).then(ve,Ie)}Xe((se=se.apply(w,j||[])).next())})}deleteViewDataFromLocalStorage(d){var g,w;this.coreStorage.removeLocal("offlineViews."+d);let j=(w=(g=this.coreStorage.getLocal("offlineViews"))===null||g===void 0?void 0:g.split(","))!==null&&w!==void 0?w:[],H=j.indexOf(d);H!=-1&&j.splice(H,1),this.coreStorage.setLocal("offlineViews",j.toString())}handleDataToSend(d,g,w,j,H,se){if(!this.isDestroyed)switch(d){case R.default.Consumer.NQS:this.nqsService.send(g,w,j,H,se);break;case R.default.Consumer.PERSISTENT:if(H!==void 0&&H(),g===p.A.Service.VIDEO_PLUGIN_LOGS||g===p.A.Service.INIT)break;j.timemark=Date.now();let Z=new U(this.options["app.https"],"",g,w,j,H,se),be=this.coreStorage.getLocal("offlineViews");if(be){let Ie=be.split(",");Ie.includes(j.code)||(Ie.push(j.code),this.coreStorage.setLocal("offlineViews",Ie.toString()))}else this.coreStorage.setLocal("offlineViews",j.code);let ve=this.coreStorage.getLocal("offlineViews."+j.code);if(ve){let Ie=ve.split(",");Ie.push(Z.toLocalStorageString()),this.coreStorage.setLocal("offlineViews."+j.code,Ie.toString())}else this.coreStorage.setLocal("offlineViews."+j.code,Z.toLocalStorageString());break;case R.default.Consumer.BLACK_HOLE:H!==void 0&&H()}}}},9318:(n,o)=>{o.read=function(c,p,v,A,_){var m,y,C=8*_-A-1,T=(1<>1,G=-7,M=v?_-1:0,S=v?-1:1,D=c[p+M];for(M+=S,m=D&(1<<-G)-1,D>>=-G,G+=C;G>0;m=256*m+c[p+M],M+=S,G-=8);for(y=m&(1<<-G)-1,m>>=-G,G+=A;G>0;y=256*y+c[p+M],M+=S,G-=8);if(m===0)m=1-U;else{if(m===T)return y?NaN:1/0*(D?-1:1);y+=Math.pow(2,A),m-=U}return(D?-1:1)*y*Math.pow(2,m-A)},o.write=function(c,p,v,A,_,m){var y,C,T,U=8*m-_-1,G=(1<>1,S=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=A?0:m-1,B=A?1:-1,R=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(C=isNaN(p)?1:0,y=G):(y=Math.floor(Math.log(p)/Math.LN2),p*(T=Math.pow(2,-y))<1&&(y--,T*=2),(p+=y+M>=1?S/T:S*Math.pow(2,1-M))*T>=2&&(y++,T/=2),y+M>=G?(C=0,y=G):y+M>=1?(C=(p*T-1)*Math.pow(2,_),y+=M):(C=p*Math.pow(2,M-1)*Math.pow(2,_),y=0));_>=8;c[v+D]=255&C,D+=B,C/=256,_-=8);for(y=y<<_|C,U+=_;U>0;c[v+D]=255&y,D+=B,y/=256,U-=8);c[v+D-B]|=128*R}},9393:(n,o,c)=>{var p=c(7086),v=c(7680),A={getPosition:function(){return null},getGivenBreaks:function(){return null},getExpectedBreaks:function(){return null},getExpectedPattern:function(){return null},getBreaksTime:function(){return null},getGivenAds:function(){return null},getExpectedAds:function(){return null},getIsVisible:function(){return!0},getAudioEnabled:function(){return null},getIsSkippable:function(){return null},getIsFullscreen:function(){return null},getCampaign:function(){return null},getCreativeId:function(){return null},getProvider:function(){return null},getAdInsertionType:function(){return null},fireClick:function(_){typeof _=="string"&&(_={url:_}),this.emit(p.Event.CLICK,{params:_})},fireQuartile:function(_){this.flags.isStarted&&typeof _=="number"&&_>this.flags.lastQuartileSent&&_<4&&(this.flags.lastQuartileSent++,this.emit(p.Event.QUARTILE,{params:{quartile:_}}))},startChronoView:function(){if(this.getIsVisible()&&this.plugin.backgroundDetector&&!this.plugin.backgroundDetector.isInBackground){var _=this.chronos.viewedMax;_.length!==0&&_[_.length-1].stopTime===0||(_.push(new v),_[_.length-1].start())}},stopChronoView:function(){var _=this.chronos.viewedMax;_[0]&&_.length>0&&_[_.length-1].stopTime===0&&_[_.length-1].stop()},fireManifest:function(_,m){var y={params:_};typeof _=="string"&&(y={params:{errorType:_,errorMessage:m}}),this.emit(p.Event.MANIFEST,y)},fireSkip:function(_){_===void 0&&(_={}),_.skipped=!0,this.fireStop(_)},fireBreakStart:function(_){this.fireAdBreakStart(_)},fireBreakStop:function(_){this.fireAdBreakStop(_)},fireAdBreakStart:function(_){this.emit(p.Event.PODSTART,{params:_})},fireAdBreakStop:function(_){this.emit(p.Event.PODSTOP,{params:_})}};n.exports=A},9474:n=>{var o=function(c){var p,v,A=(c=c||window).document,_=function(U){var G=!1;if(U.getBoundingClientRect){var M=U.getBoundingClientRect();(G={top:Math.max(M.top,0),left:Math.max(M.left,0),bottom:Math.min(M.bottom,c.innerHeight||A.documentElement.clientHeight),right:Math.min(M.right,c.innerWidth||A.documentElement.clientWidth)}).bottom<=G.top||G.right<=G.left?G=!1:G.area=(G.bottom-G.top)*(G.right-G.left)}return G},m=function(U,G){if(G){var M=_(U);M&&y.push({url:G,area:M.area,rect:M})}},y=[],C=[];try{var T=c.performance.timing.navigationStart;(function(){for(var U=A.getElementsByTagName("*"),G=/url\(.*(http.*)\)/gi,M=0;M1&&m(S,B[1].replace('"',""))}if(S.tagName==="IFRAME")try{var R=_(S);if(R){var V=o(S.contentWindow);V&&y.push({tm:V,area:R.area,rect:R})}}catch{}}})(),function(){for(var U={},G=c.performance.getEntriesByType("resource"),M=0;M12e4){p=c.performance.timing.responseStart-T;for(var M={},S=A.getElementsByTagName("head")[0].children,D=0;Dp)&&(p=l)}}p=Math.max(p,0)}(),function(){for(var U={0:0},G=0,M=0;Mp&&(S=y[M].tm),U[S]===void 0&&(U[S]=0),U[S]+=y[M].area,G+=y[M].area}var D=Math.max(A.documentElement.clientWidth,c.innerWidth||0)*Math.max(A.documentElement.clientHeight,c.innerHeight||0);if(D>0&&(D=.1*Math.max(D-G,0),U[p]===void 0&&(U[p]=0),U[p]+=D,G+=D),G){for(var B in U)U.hasOwnProperty(B)&&C.push({tm:B,area:U[B]});C.sort(function($,l){return $.tm-l.tm});for(var R=0,V=0;V0&&G<1&&(v+=(1-G)*S),U=C[M].tm,G=C[M].progress}}else v=p}()}catch{}return v};n.exports=o},9516:(n,o,c)=>{let{default:p}=c(7276);var v=c(5292),A=c(1516);let{default:_}=c(6933),{AnalyticsTag:m}=c(2784);var y={registerAdapter:function(C,T,U,G){if(!T)return void p.error(m,"Register Adapter needs an adapter to initialize");if(U=U||{},G=G||"default",this.videos.existsVideo(G))U=U||{},this.videos.getVideo(G).mergeOptions(U),this.setAdapter(new v(G,this.videos.getVideo(G),this,this.adapterTemplates,C,T),G);else{var M=new A(G,this,this.options,null,null);this.getNextViewIndex(M),U=U||{},M.setVideoOptions(U),this.videos.setVideo(M);var S=new v(G,M,this,this.adapterTemplates,C,T);this.setAdapter(S,G)}_.getInstance().registeredPlayer(!0);let D=U["content.resource"];!D&&this.videos.existsAdapter(G)&&(D=this.videos.getAdapter(G).getURLToParse(),D||(D=this.videos.getAdapter(G).getResource())),this.resourceTransform.init(D)},setAdapter:function(C,T){if(T=T||"default",this.browserLoadTimes&&this.browserLoadTimes.setPlayerSetupTime(),C.isSetAdapter())p.warn(m,"Adapters can only be added to a single plugin");else{var U=this.getAdapter(T);U&&(C.flags=U.flags,C.chronos=U.chronos,C.fireEventsStruct=U.fireEventsStruct),this.removeAdapter(T),this.videos.setAdapter(C,T)}},getAdapter:function(C){return C=C||"default",this.videos.getAdapter(C)},removeAdapter:function(C){C=C||"default",this.videos.existsVideo(C)&&this.videos.removeAdapter(this.contentAdapterListeners,C)},getNextViewIndex:function(C){C.nextView();let T=!0;for(;T;){let U=!1;for(let G of this.videos.getVideoKeys().filter(M=>M!==C.getVideoKey()))if(C.getViewCode()===this.videos.getVideo(G).getViewCode()){U=!0;break}U&&C.nextView(),T=U}}};n.exports=y},9600:n=>{var o=function(){};n.exports=function(c){if(arguments.length>1)throw Error("Second argument not supported");if(c===null)throw Error("Cannot set a null [[Prototype]]");if(typeof c!="object")throw TypeError("Argument must be an object");return o.prototype=c,new o}},9637:n=>{n.exports={GET:"GET",POST:"POST"}},9731:function(n){var o,c,p,v,A;o=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,c=/^(?=([^\/?#]*))\1([^]*)$/,p=/(?:\/|^)\.(?=\/)/g,v=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,A={buildAbsoluteURL:function(_,m,y){if(y=y||{},_=_.trim(),!(m=m.trim())){if(!y.alwaysNormalize)return _;var C=A.parseURL(_);if(!C)throw new Error("Error trying to parse base URL.");return C.path=A.normalizePath(C.path),A.buildURLFromParts(C)}var T=A.parseURL(m);if(!T)throw new Error("Error trying to parse relative URL.");if(T.scheme)return y.alwaysNormalize?(T.path=A.normalizePath(T.path),A.buildURLFromParts(T)):m;var U=A.parseURL(_);if(!U)throw new Error("Error trying to parse base URL.");if(!U.netLoc&&U.path&&U.path[0]!=="/"){var G=c.exec(U.path);U.netLoc=G[1],U.path=G[2]}U.netLoc&&!U.path&&(U.path="/");var M={scheme:U.scheme,netLoc:T.netLoc,path:null,params:T.params,query:T.query,fragment:T.fragment};if(!T.netLoc&&(M.netLoc=U.netLoc,T.path[0]!=="/"))if(T.path){var S=U.path,D=S.substring(0,S.lastIndexOf("/")+1)+T.path;M.path=A.normalizePath(D)}else M.path=U.path,T.params||(M.params=U.params,T.query||(M.query=U.query));return M.path===null&&(M.path=y.alwaysNormalize?A.normalizePath(T.path):T.path),A.buildURLFromParts(M)},parseURL:function(_){var m=o.exec(_);return m?{scheme:m[1]||"",netLoc:m[2]||"",path:m[3]||"",params:m[4]||"",query:m[5]||"",fragment:m[6]||""}:null},normalizePath:function(_){for(_=_.split("").reverse().join("").replace(p,"");_.length!==(_=_.replace(v,"")).length;);return _.split("").reverse().join("")},buildURLFromParts:function(_){return _.scheme+_.netLoc+_.path+_.params+_.query+_.fragment}},n.exports=A},9773:(n,o,c)=>{var p=c(3948).extend({constructor:function(v,A){this.plugin=v,this.session=A,this.isInBackground=!1,this.listenerReference=this._visibilityListener.bind(this),this._reset()},startDetection:function(){this.isBackgroundDetectorStarted||typeof document>"u"||(this.isBackgroundDetectorStarted=!0,document.addEventListener("visibilitychange",this.listenerReference))},stopDetection:function(){this.isBackgroundDetectorStarted&&typeof document<"u"&&(document.removeEventListener("visibilitychange",this.listenerReference),this._reset())},_reset:function(){this.isBackgroundDetectorStarted=!1},_visibilityListener:function(v){if(typeof document<"u"){var A=this._getSettings();document.visibilityState==="hidden"?this._toBackground(A):document.visibilityState==="visible"&&this._toForeground(A)}},_toBackground:function(v){this.isInBackground=!0;try{if(this.plugin&&this.plugin.videos)for(var A=0;A{let p="7.3.4"+(c(9907).env.NWF||"");n.exports=p},9907:n=>{var o,c,p=n.exports={};function v(){throw new Error("setTimeout has not been defined")}function A(){throw new Error("clearTimeout has not been defined")}function _(D){if(o===setTimeout)return setTimeout(D,0);if((o===v||!o)&&setTimeout)return o=setTimeout,setTimeout(D,0);try{return o(D,0)}catch{try{return o.call(null,D,0)}catch{return o.call(this,D,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:v}catch{o=v}try{c=typeof clearTimeout=="function"?clearTimeout:A}catch{c=A}})();var m,y=[],C=!1,T=-1;function U(){C&&m&&(C=!1,m.length?y=m.concat(y):T=-1,y.length&&G())}function G(){if(!C){var D=_(U);C=!0;for(var B=y.length;B;){for(m=y,y=[];++T1)for(var R=1;R{var o=n&&n.__esModule?()=>n.default:()=>n;return e.d(o,{a:o}),o},e.d=(n,o)=>{for(var c in o)e.o(o,c)&&!e.o(n,c)&&Object.defineProperty(n,c,{enumerable:!0,get:o[c]})},e.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),e.o=(n,o)=>Object.prototype.hasOwnProperty.call(n,o),e.r=n=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var t={};return(()=>{"use strict";e.d(t,{default:()=>Hm});var n=e(9065),o=e(7276),c=e(2784),p=e(5438);let v=A;function A(x,i){let r=m();return(A=function(u,h){return r[u-=439]})(x,i)}(function(x){let i=A,r=x();for(;;)try{if(-parseInt(i(477))/1*(-parseInt(i(450))/2)+parseInt(i(479))/3*(-parseInt(i(443))/4)+-parseInt(i(475))/5*(parseInt(i(452))/6)+parseInt(i(458))/7*(-parseInt(i(466))/8)+-parseInt(i(468))/9+-parseInt(i(453))/10*(-parseInt(i(476))/11)+parseInt(i(439))/12==925543)break;r.push(r.shift())}catch{r.push(r.shift())}})(m);class _{static[v(483)](i){let r=v,u=new URL(i),h=u[r(486)]+u.pathname,f=h[r(462)]("/")+1;return{route:h[r(465)](0,f),fileName:h[r(465)](f)}}static[v(485)](i){let r=v;return{path:new URL(i)[r(444)]}}static[v(478)](i){return new Promise(r=>setTimeout(r,i))}static findPathMach(i,r,u){let h=v,f=u[h(481)];i=i[h(440)]("?")[0];let I=new URL(i),L=new URL(r);I[h(449)]!=L.host&&(I[h(449)]=L[h(449)],i=I.toString());let P=r;if(r!=null&&r!="")for(;!i.includes(P)&&P[h(448)]("/");){P.endsWith("/")&&(P=P[h(482)](0,P[h(459)]-1));let le=P[h(482)](P[h(462)]("/"),P[h(459)]);if((f[h(470)](le)||f[h(470)](le+"/"))&&(f[h(470)]("/")&&(f=f[h(482)](0,f[h(459)]-1)),f=f.substr(0,f.lastIndexOf("/")+1)),P=P[h(482)](0,P[h(462)]("/")+1),P==h(464)||P==h(460))return""}return i[h(455)](P,f)}static[v(472)](i,r=!1){let u=v,h=[i[u(484)]("?")];return r&&h.push(i[u(484)](";")),h=h[u(451)](f=>f!=-1),i[u(465)](0,Math.min(...h))}static[v(473)](i){let r=v,u=!1;return p.Y4[r(445)](h=>{u=u||i[r(470)](h)}),u}static[v(471)](i,r=!1){let u=v,h=!1,f=r?_[u(472)](i,r):i;return p.w2[u(445)](I=>{h=h||f[u(470)](I)}),h}static isAudio(i){let r=v,u=!1;return p.hj[r(445)](h=>{u=u||i[r(470)](h)}),u}static[v(461)](i){let r=v,u=!1;return p.zU[r(445)](h=>{u=u||i[r(470)](h)}),u}static[v(441)](i){return String[v(454)].apply(null,new Uint8Array(i))}static returnRandom(i){let r=v,u="",h=i[r(459)]-1;return h>0&&(u=i[Math.round(Math[r(487)]()*h)]),u}static formatParameters(i){let r=v;return"?"+Object[r(457)](i)[r(480)](function(u){return i[u]===""?"":u+"="+encodeURIComponent(i[u])}).join("&")}static[v(467)](i){let r=v;if(typeof i!=r(446)){let h=new Uint8Array(i),f="";for(var u=0;uf)[u(448)](i):r[u(442)]===u(447)&&(h=new RegExp(r[u(456)])[u(463)](i)),h}}function m(){let x=["ifByteArrayToString","12843954mNEHdT","isHeaderMatch","endsWith","isManifest","sliceByFirstSpecial","isMedia","isValidUrl","12655CtTvTU","17314anGdRW","374789iMoSbZ","delay","6roTVSX","map","url","substr","getRouteAndFilename","indexOf","getPath","origin","random","42810504PyQlvv","split","bufferToString","type","1536200RtJCyf","pathname","forEach","string","regex","includes","host","2aJayeW","filter","1434EfmJpX","790AdkvXj","fromCharCode","replace","pattern","keys","341019beELvF","length","http://","isSubtitles","lastIndexOf","test","https://","slice","56WPcsig"];return(m=function(){return x})()}let y=C;function C(x,i){let r=T();return(C=function(u,h){return r[u-=415]})(x,i)}function T(){let x=["7859180UbANdX","now","9FVaxdw","waitUntil","unload","manifest","_cdnBalancer","status","_player","headers","url","open","endsWith","network","string","setRequestHeader","2216670rCgsDv","115936gdVfow","9463487NKVniP","removeRequestInterceptor","responseType","byteLength","setEstimator","verbose","Theoplayer interceptor - Intercepting request to -> ","ifByteArrayToString","readyState","useTheoplayer","load","13228ctgPzx","168456irians",".mpd","respondWith","_totalDownloadTime","response","_interceptor","send","5814BPPpJg","arraybuffer","method","259vvSdiL","isNaN","279XNwCsy","27byazHI",".m3u8","length","_totalDownloadedBytes"];return(T=function(){return x})()}(function(x){let i=C,r=x();for(;;)try{if(parseInt(i(443))/1*(parseInt(i(437))/2)+parseInt(i(442))/3*(-parseInt(i(429))/4)+-parseInt(i(416))/5+-parseInt(i(430))/6+parseInt(i(440))/7*(-parseInt(i(417))/8)+parseInt(i(449))/9*(parseInt(i(447))/10)+parseInt(i(418))/11==409559)break;r.push(r.shift())}catch{r.push(r.shift())}})(T);class U{constructor(i,r){let u=C;this._totalDownloadedBytes=0,this[u(433)]=0,this[u(455)]=i,this._cdnBalancer=r}[y(428)](){let i=y;this._player&&this[i(453)]&&(this[i(446)]=0,this[i(433)]=0,this._cdnBalancer[i(427)](),this.addRequestInterceptor())}[y(451)](){let i=y;this[i(455)][i(460)][i(419)](this[i(435)])}addRequestInterceptor(){let i=y;this._interceptor=r=>{let u=C;r[u(450)](h=>{let f=u,I=new XMLHttpRequest,L=0,P=0,le=0;r.responseType==="stream"?I[f(420)]=f(438):I[f(420)]=r[f(420)],I.onreadystatechange=K=>{let O=f;if(I[O(426)]===1&&r.type!==O(452)&&(L=Date[O(448)]()),I.readyState===2&&r.type!==O(452)&&(P=Date[O(448)](),le=P-L),I[O(426)]===4){let q={status:I.status,statusText:I.statusText,body:void 0};if(I.status>=200&&I[O(454)]<400){let E=new URL(r[O(457)]).pathname;if(E[O(459)](O(444))||E[O(459)](O(431))?q.body=_[O(425)](I[O(434)]):q.body=I[O(434)],r.type!=="manifest"&&le>0){let W=Date[O(448)]()-P;this[O(433)]+=W,this._totalDownloadedBytes+=I.response[O(421)];let Ae=this[O(446)]/(this._totalDownloadTime/1e3);Number[O(441)](Ae)&&(Ae=(typeof I[O(434)]===O(461)?I[O(434)][O(445)]:I.response[O(421)])/(le/1e3)),this[O(455)][O(460)][O(422)]({bandwidth:8*Ae,roundTripTime:le/1e3,createMeasurer:()=>{}})}r[O(432)](q)}else r.respondWith(q);o.default[O(423)](c.BalancerTag,"Theoplayer interceptor - Completed request for -> "+I.responseURL),h()}},o.default.verbose(c.BalancerTag,f(424)+r.url),I[f(458)](r[f(439)],r.url);for(let K in r.headers)I[f(415)](K,r[f(456)][K]);I[f(436)](r.body)})},this[i(455)][i(460)].addRequestInterceptor(this[i(435)])}}let G=S;function M(){let x=["47817uVvNfg","1057725yikeAB","171zcmvag","load","toLowerCase","_cdnBalancer","loadedInterceptors","18550068VoGbQM","231048kLQGlF","11HDEBVJ","65218XmOTum","removeInterceptors","284bHIMUD","22790KLnliC","theoplayer","unload","15xwrlEB","5824990ABpJnm","push","loadInterceptor","390IDTJgf"];return(M=function(){return x})()}function S(x,i){let r=M();return(S=function(u,h){return r[u-=317]})(x,i)}(function(x){let i=S,r=x();for(;;)try{if(parseInt(i(329))/1+-parseInt(i(317))/2*(parseInt(i(323))/3)+-parseInt(i(319))/4*(parseInt(i(320))/5)+-parseInt(i(327))/6*(parseInt(i(328))/7)+-parseInt(i(336))/8*(parseInt(i(330))/9)+-parseInt(i(324))/10+-parseInt(i(337))/11*(-parseInt(i(335))/12)==541648)break;r.push(r.shift())}catch{r.push(r.shift())}})(M);class D{constructor(i){let r=S;this[r(334)]=[],this[r(333)]=i}[G(326)](i,r){let u=G,h;i[u(332)]()===u(321)&&(h=new U(r,this._cdnBalancer)),h&&(h[u(331)](),this.loadedInterceptors[u(325)](h))}[G(318)](){let i=G;for(let r of this[i(334)])r?.[i(322)]()}}function B(x,i){var r=R();return(B=function(u,h){return r[u-=292]})(x,i)}function R(){var x=["479943OwbEYg","domainWhitelistRegex","probeOnlyOnBanned","jwtAuthType","balanceAudio","isLive","stripPathRegex","1980369ebpAht","profileName","chunkExpirationProbingMs","Bearer","resource","10DwAail","forceDecisionCall","allowSpecialDelimitersInUrl","timeBetweenHeads","bucketName","videoId","41200RvMSnF","jwtToken","stripPathForDomainRegex","2297956KdHKoD","signManifestUsingApi","13678meoAmX","noProbing","1576546WljvfJ","reportTime","updateTime","debug","4167324gjDiGt","1504tZUBjR","5raSReY","domainWhitelist","dynamicRules","balanceManifests","isDev","balanceSubtitles"];return(R=function(){return x})()}(function(x){for(var i=B,r=x();;)try{if(parseInt(i(322))/1+parseInt(i(292))/2+-parseInt(i(311))/3+-parseInt(i(325))/4*(-parseInt(i(298))/5)+-parseInt(i(296))/6+-parseInt(i(327))/7*(-parseInt(i(297))/8)+-parseInt(i(304))/9*(-parseInt(i(316))/10)==469964)break;r.push(r.shift())}catch{r.push(r.shift())}})(R);class V{constructor(i){var r,u,h,f,I,L,P,le,K,O,q,E,W,Ae,N=B;this[N(309)]=!1,this[N(294)]=0,this[N(293)]=5,this[N(317)]=!1,this.domainWhitelist=[],this[N(305)]=[],this[N(306)]=!1,this[N(328)]=!1,this[N(318)]=!1,this.signManifestUsingApi=!1,this[N(301)]=!1,this[N(308)]=!0,this.balanceSubtitles=!0,this.dynamicRules={},this.stripPathForDomainRegex=[],this.profileName=i?.[N(312)],this[N(320)]=i?.[N(320)],this[N(309)]=i?.isLive||!1,this[N(321)]=i?.[N(321)],this[N(315)]=i?.[N(315)],this[N(294)]=(r=i?.updateTime)!==null&&r!==void 0?r:0,this[N(293)]=(u=i?.[N(293)])!==null&&u!==void 0?u:0,this[N(295)]=i?.[N(295)],this[N(302)]=i?.isDev,this[N(319)]=i?.[N(319)],this[N(299)]=(h=i?.[N(299)])!==null&&h!==void 0?h:[],this[N(305)]=(f=i?.[N(305)])!==null&&f!==void 0?f:[],this[N(306)]=(I=i?.probeOnlyOnBanned)!==null&&I!==void 0&&I,this[N(328)]=(L=i?.[N(328)])!==null&&L!==void 0&&L,this[N(318)]=(P=i?.[N(318)])!==null&&P!==void 0&&P,this[N(326)]=(le=i?.[N(326)])!==null&&le!==void 0&&le,this[N(301)]=(K=i?.balanceManifests)!==null&&K!==void 0&&K,this[N(308)]=(O=i?.[N(308)])===null||O===void 0||O,this[N(303)]=(q=i?.balanceSubtitles)===null||q===void 0||q,this[N(300)]=(E=i?.[N(300)])!==null&&E!==void 0?E:{},this[N(323)]=i?.[N(323)],this[N(307)]=(W=i?.jwtAuthType)!==null&&W!==void 0?W:N(314),this[N(324)]=(Ae=i?.stripPathForDomainRegex)!==null&&Ae!==void 0?Ae:[],this[N(310)]=i?.stripPathRegex,this[N(313)]=i?.chunkExpirationProbingMs}}let $=l;function l(x,i){let r=g();return(l=function(u,h){return r[u-=189]})(x,i)}(function(x){let i=l,r=x();for(;;)try{if(-parseInt(i(196))/1+-parseInt(i(197))/2*(-parseInt(i(190))/3)+parseInt(i(198))/4+-parseInt(i(189))/5*(-parseInt(i(195))/6)+parseInt(i(201))/7*(parseInt(i(205))/8)+-parseInt(i(199))/9*(-parseInt(i(194))/10)+-parseInt(i(192))/11==670031)break;r.push(r.shift())}catch{r.push(r.shift())}})(g);class d{constructor(){this[l(193)]={}}on(i,r){let u=l;return!this._listeners[i]&&(this[u(193)][i]=[]),this._listeners[i][u(202)](r),this}[$(206)](i,r){let u=$;if(this[u(193)][i])if(r){let h=this._listeners[i][u(204)](r);h!==-1&&this[u(193)][i].splice(h,1)}else this[u(193)][i]=[];return this}[$(203)](i,r={},u){return[i,"*"][$(191)](h=>{this._listeners[h]&&this._listeners[h].forEach(f=>{let I=u||l(200);f({type:i,[I]:r})})}),this}}function g(){let x=["300jQHfMz","463674rjKDVZ","forEach","32311928Kvheze","_listeners","13400saXcPo","93948kyLrTJ","916346kfyuLs","2ZYDVfX","4963196tFZzSG","6489oAIAwf","data","8106svsKGo","push","emit","indexOf","8448Dwlybz","off"];return(g=function(){return x})()}var w=e(1048).hp;function j(){let x=["indexOf","getStorage","command","totalErrors","size","_ip","_loader","_lastLatencySegment","isBehind","_getLastSecondsTraffic","_peer","foreSegmentsInfo","_lastBandwith","concat","_totalDownloadedBytes","peerCloseListener","getDownloadBandwidth","3361398NMRqxs","_cancel","_lastSent","forEach","_onData","_lastResponses","testLatencyResult","Timeout ","consecutiveHaveSegment","getSegmentMap","sendMap","apply","peerSegmentLoaded","split","then","_destroyed","_startTimeout","timeout","P2P Upload canceled.","P2P Pong to ","_cancelRequest","time","_totalSendBytes","Absent","601380ChzrSu","realBodySize","maxMessageSize","getDownloadedBytes","value","Closing p2p download ","verbose","Could not send message to peer (maybe it was destroyed)","_send","CREATEPEERCONNECTING?","from","getTotalSendSegments","sctp-failure","floor","getIp","get","getSegment","getLastUploadsTraffic","getIceAnswer","216773folsho","next","getLastSegmentDataMessagesTime","144UVeqaK","1232995xNUTRQ","now","_answer","debug","testLatencyDone","sdp","identifier","peerCanceledSegmentUpload","getLastBandwith","_segmentMap","send","getLastLatencyP2P","getVersion","_onClose","message","getLastDownloadsTraffic","getTotalSendTime","4791808QJZqxp","error","_lastSegmendDataMessagesTime","PTT-> TIMEOUT CREATION ","stringify","_onConnect","push","4KJhxYy","dateTime","splits","p2p not wrong -> ","slice","_totalSendSegments","peerSegmentUploadRequest","request"," not an active download id","_identifierShort"," download end ","getSegmentDataMessages","__awaiter","destroy","bind","parse","close","P2P onError to ","ping","SOMETHING IS WRONG, Total p2p file size is bigger than expected size. ","done","timeGap","getOldestRequestTS","random","isAhead","map","getIdentifierFromByteArray","throw","trim","P2P Ping to ","clear","totalDataInterval","getTotalSendBytes","peerConnect","newSegmentAvailable","activeP2PSendProcesses","delete","pop","timeouts","byteLength","Canceling operation -> 0 ","P2P onConnect to ","startTime","pong","connect","testBandwidthResult","_totalSendTime","set","Download ended ","version","977830krPFdt","data","errorDetail","addPeerLatency","storageSize","_activeDownloads","splice","_operationId","createdAt","_endDownload","sendSegment","getByteArrayFromIdentifier","length","getDownloadedChunks","7jqvyVa","absent","_segmendDataMessages","_onError","min","peerFailedSegmentAbsent","_decoder","_downloaded","downloadingProcessActive","_totalDownloaded","_version","506505ReDztr","_totalDownloadTime"];return(j=function(){return x})()}let H=Z;(function(x){let i=Z,r=x();for(;;)try{if(parseInt(i(407))/1+-parseInt(i(485))/2+-parseInt(i(510))/3+parseInt(i(435))/4*(-parseInt(i(411))/5)+-parseInt(i(364))/6*(parseInt(i(499))/7)+parseInt(i(428))/8+-parseInt(i(410))/9*(-parseInt(i(388))/10)==313375)break;r.push(r.shift())}catch{r.push(r.shift())}})(j);var se=function(x,i,r,u){return new(r||(r=Promise))(function(h,f){let I=Z;function L(K){let O=Z;try{le(u[O(408)](K))}catch(q){f(q)}}function P(K){let O=Z;try{le(u[O(462)](K))}catch(q){f(q)}}function le(K){let O=Z;var q;K[O(455)]?h(K[O(392)]):(q=K[O(392)],q instanceof r?q:new r(function(E){E(q)}))[O(378)](L,P)}le((u=u[I(375)](x,i||[]))[I(408)]())})};function Z(x,i){let r=j();return(Z=function(u,h){return r[u-=353]})(x,i)}class be extends d{[H(406)](){return this[H(413)]}[H(467)](){return this[H(386)]}[H(427)](){return this[H(481)]}[H(399)](){return this[H(440)]}[H(391)](){return this[H(361)]}[H(498)](){return this._totalDownloaded}[H(363)](){let i=H;return this._totalDownloadTime==0?0:this._totalDownloadedBytes*(this[i(511)]/1e3)}[H(422)](){return this._lastLatencyP2P}getLastLatencySegment(){return this[H(354)]}[H(419)](){return this[H(359)]}[H(402)](){let i=H;var r;if(this[i(517)]!=null)return this._ip;let u=(r=this[i(413)])===null||r===void 0?void 0:r[i(416)];if(u!=null)try{let h=u[i(377)]("c=IN IP4")[1];h=h[i(463)]();let f=h[i(377)](" ")[0];f=h.split("a=")[0],f=f[i(463)](),this[i(517)]=f}catch{}}getLastResponses(){return this[H(369)]}constructor(i,r,u){let h=H;super(),this[h(420)]=[],this[h(490)]=new Map,this[h(369)]=[],this[h(366)]=[],this[h(505)]=new TextDecoder,this[h(444)]=Math.round(65536*Math[h(458)]())-32768,this._downloaded=[],this[h(508)]=0,this[h(361)]=0,this[h(511)]=0,this[h(372)]=0,this[h(473)]=0,this[h(507)]=!1,this._version=0,this[h(386)]=0,this[h(481)]=0,this[h(440)]=0,this._lastLatencyP2P=0,this[h(354)]=0,this[h(359)]=0,this[h(517)]=void 0,this[h(501)]=0,this._lastSegmendDataMessagesTime=0,this[h(379)]=!1,this[h(358)]=!1,this[h(459)]=!1,this[h(355)]=!1,this[h(456)]=0,this[h(492)]=0,this[h(515)]=0,this[h(365)]=new Map,this[h(415)]=!1,this.testBandwidthDone=!1,this[h(370)]=0,this[h(480)]=0,this._answer=u,this.id=r.id,this[h(357)]=r,this[h(353)]=i,r.on(p.Lg[h(479)],this[h(433)].bind(this)),r.on(p.Lg[h(451)],this[h(424)][h(449)](this)),r.on(p.Lg[h(429)],this._onError[h(449)](this)),r.on(p.Lg.data,this._onData[h(449)](this))}[H(423)](){return this._version}isDownloading(){let i=H;return this._activeDownloads[i(516)]>0}[H(446)](){return this._segmendDataMessages}[H(409)](){return this[H(430)]}[H(448)](){let i=H;this._peer[i(448)](),this._onClose(),this[i(379)]=!0}[H(433)](){let i=H;o.default[i(394)](c.BalancerTag,i(397)+this.id),this[i(379)]||(o.default[i(414)](c.BalancerTag,i(476)+this.id),this._loader[i(468)](this))}[H(502)](i){let r=H;var u,h;o.default[r(414)](c.BalancerTag,r(452)+this.id+" "+((u=i?.[r(429)])===null||u===void 0?void 0:u[r(487)])),((h=i?.[r(429)])===null||h===void 0?void 0:h.errorDetail)===r(400)&&this[r(424)](),this[r(372)]=0,this[r(515)]++}[H(424)](){let i=H;this._peer.destroy(),this[i(490)][i(465)](),this[i(494)]("Close callback",0),this[i(353)][i(362)](this)}[H(494)](i,r){let u=H;i===u(387)&&(o.default[u(414)](c.BalancerTag,"Probable algorithm failed"),this.consecutiveHaveSegment=0);let h=this[u(490)][u(403)](r);h&&o.default[u(414)](c.BalancerTag,u(393)+h.id),this._activeDownloads[u(471)](r)}[H(368)](i){let r=H;if(this._destroyed)return;let u=i.slice(0,4),h=i[r(439)](4,i[r(474)]),f=u[0],I=this.getIdentifierFromByteArray(i[r(439)](1,3)),L=u[3];if(this[r(509)]=0?(this[r(459)]=!0,this[r(355)]=!1):(this[r(459)]=!1,this.isBehind=!0),this[r(420)].unshift(le),this[r(420)][r(497)]>K&&this[r(420)][r(472)]();break;case p.mH[r(453)]:let E=P[p.CE[r(417)]],W=P[p.CE[r(385)]];this[r(478)](E,W);break;case p.mH[r(478)]:let Ae=Date[r(412)]()-P[p.CE[r(385)]];this[r(353)][r(488)](Ae);break;case p.mH.cancel:this[r(365)].set(P[p.CE[r(417)]],P[p.CE.identifier]);break;case p.mH.absent:{let N=P[p.CE[r(417)]]||0,De=this[r(490)].get(N);De&&De.id===P[p.CE.id]&&(this[r(353)][r(504)](this,De.id),this[r(494)]("Absent",I))}break;case p.mH[r(486)]:{let N=this[r(490)][r(403)](P[p.CE[r(417)]]);if(N&&(N[r(516)]=P[p.CE.size],N[r(477)]==0&&(N[r(477)]=Date[r(412)]()),this[r(508)]>=3&&this[r(363)]()>0)){let De=1e3*N.size/this[r(363)]();De>1.15*p.LI[r(381)]&&o.default.verbose(c.BalancerTag,"This peer may timeout in "+De+"ms")}}}}else if(f==p.b3[r(486)]){let P=this[r(490)][r(403)](I);if(P&&P.id){P[r(477)]==0&&(P[r(477)]=Date[r(412)]()),P[r(486)][r(434)](h);let le=0;P.data[r(367)](O=>{le+=O.byteLength});let K=Date[r(412)]()-(P.startTime||Date[r(412)]());if(le>P[r(516)]&&o.default[r(414)](c.BalancerTag,r(454)+le+" "+P[r(516)]),le==P[r(516)]){let O=0,q=new Uint8Array(le);for(let N of P[r(486)])q.set(new Uint8Array(N),O),O+=N[r(474)];this._totalDownloadedBytes=this[r(361)]+q[r(474)],this[r(508)]++,this._totalDownloadTime=this[r(511)]+K;let E={time:Date[r(412)](),size:q.byteLength};this._lastResponses[r(434)](E),this._loader.addPeerResponse(E);let W=(Date[r(412)]()-P[r(477)])/1e3,Ae=P[r(516)]/W;this[r(359)]=Ae,this[r(506)][r(434)](P.id),this[r(353)][r(376)](this,P.id,K,q.buffer),o.default[r(414)](c.BalancerTag,r(438)+P.id+r(445)+P[r(516)]),this[r(494)](r(483)+P.id+" "+P.size+" | "+le,I)}else{let O=0,q=new Uint8Array(le);for(let E of P[r(486)])q[r(482)](new Uint8Array(E),O),O+=E[r(474)];P[r(516)]!=0&&this[r(353)].peerSegmentProgress(this,P.id,K,q,P.size)}}else o.default[r(414)](c.BalancerTag,"P2P: "+this.id+r(443))}}[H(442)](i){let r=H;if(this._destroyed)return;this[r(509)]>=2&&(this[r(492)]++,this[r(492)]==0&&this[r(492)]++);let u=this[r(492)];o.default[r(414)](c.BalancerTag,"OPERATION ID -> "+u),this._startTimeout(i,u),this[r(396)]({[p.CE[r(514)]]:p.mH[r(442)],[p.CE.id]:i,[p.CE[r(417)]]:u},p.b3[r(425)])}[H(453)](i){let r=H;o.default[r(414)](c.BalancerTag,r(464)+this.id),this[r(396)]({[p.CE.command]:p.mH[r(453)],[p.CE[r(385)]]:Date.now(),[p.CE.id]:i,[p.CE[r(417)]]:this.id},p.b3[r(425)])}[H(478)](i,r){let u=H;o.default.debug(c.BalancerTag,u(383)+this.id),this._send({[p.CE[u(514)]]:p.mH[u(478)],[p.CE.time]:r,[p.CE.id]:i,[p.CE[u(417)]]:this.id},p.b3.message)}[H(384)](i,r){let u=H;this[u(396)]({[p.CE.command]:p.mH.cancel,[p.CE.id]:i,[p.CE[u(417)]]:r},p.b3[u(425)])}[H(374)](i){return se(this,void 0,void 0,function*(){let r=Z;this[r(379)]||this[r(396)]({[p.CE[r(514)]]:p.mH.map,[p.CE.map]:i},p.b3[r(425)])})}[H(495)](i,r,u){var h;return se(this,void 0,void 0,function*(){let f=Z;if(!this[f(379)]){if(r[f(486)]&&this[f(365)]&&this[f(365)][f(403)](u)==null){this[f(396)]({[p.CE[f(514)]]:p.mH[f(486)],[p.CE.id]:i,[p.CE[f(516)]]:r[f(389)],[p.CE[f(417)]]:u,[p.CE[f(437)]]:Math[f(401)](r[f(486)][f(474)]/p.LI[f(390)])+1},p.b3[f(425)]);let I=r[f(389)],L=0,P=this[f(496)](u),le=w[f(398)]([p.b3[f(486)],P[0],P[1],0]),K=I;r.activeP2PSendProcesses++;let O=Date[f(412)]();try{for(;K>0&&!this[f(365)][f(403)](u);){let q=Math[f(503)](K,p.LI[f(390)]);for(;r&&r[f(486)]&&r[f(486)].byteLength&&q+L>r[f(486)][f(474)]&&!this[f(365)][f(403)](u);)yield new Promise(E=>setTimeout(E,2));this[f(357)][f(421)](w[f(360)]([le,w[f(398)](r[f(486)],((h=r[f(486)])===null||h===void 0?void 0:h.byteLength)-K,q)])),L+=q,K-=q}}catch{o.default[f(414)](c.BalancerTag,f(395))}this[f(386)]=this[f(386)]+L,this[f(481)]=Date[f(412)]()-O,this[f(440)]++,r[f(470)]--,this[f(365)][f(403)](u)?this[f(353)][f(418)](r[f(486)][f(474)]-K):(this[f(366)].push({time:Date[f(412)](),size:r[f(486)][f(474)]}),this._loader.peerSegmentUpload(r[f(486)][f(474)]))}else o.default[f(414)](c.BalancerTag,f(382));this[f(365)].get(u)!=null&&(o.default[f(414)](c.BalancerTag,f(475)),this[f(365)][f(471)](u))}})}[H(496)](i){let r=[0,0];return r[0]=i>>8&255,r[1]=255&i,r}[H(461)](i){return(255&i[0])<<8|255&i[1]}sendNoSegment(i,r){let u=H;this[u(396)]({[p.CE[u(514)]]:p.mH[u(500)],[p.CE.id]:i,[p.CE[u(417)]]:r},p.b3.message)}sendNewSegmentAvailable(i,r,u,h){return se(this,void 0,void 0,function*(){let f=Z;this[f(379)]||this[f(396)]({[p.CE[f(514)]]:p.mH[f(469)],[p.CE.id]:i,[p.CE.size]:r,[p.CE[f(489)]]:u,[p.CE.dateTime]:Date.now(),[p.CE[f(493)]]:h},p.b3[f(425)])})}[H(396)](i,r){let u=H;try{this[u(357)][u(421)](w.concat([w[u(398)]([r,0,0,p.jQ[u(484)]]),w[u(398)](JSON[u(432)](i))]))}catch{o.default[u(414)](c.BalancerTag,u(395))}}[H(373)](){return this[H(420)]}[H(380)](i,r){let u=H;o.default[u(414)](c.BalancerTag,u(431)+r),this[u(490)].set(r,{id:i,data:[],startTime:0,size:0}),setTimeout(()=>{let h=u;var f;let I=this[h(506)][h(512)](i);if(I<0){this[h(384)](i,r);let L=0;L=((f=this[h(490)][h(403)](r))===null||f===void 0?void 0:f.size)||0,this[h(353)].peerFailedSegmentTimeout(this,i,L),this[h(494)](h(371)+i+" "+p.LI[h(381)],r)}else this[h(506)][h(491)](I,1)},p.LI.timeout)}[H(457)](){let i=H;var r;return((r=this[i(369)][0])===null||r===void 0?void 0:r[i(385)])||0}static _getLastSecondsTraffic(i){let r=H,u=0,h=Date[r(412)]();for(let f=0;fthis[r(173)];)this[r(183)]()}[ve(183)](){let i=ve;if(!this.isEmpty())return this.array[i(191)]()}[ve(193)](){if(!this.isEmpty())return this.array[0]}[ve(180)](){let i=ve;return this[i(179)][i(185)]===0}copyArray(){return Object.assign([],this[ve(179)])}lastn(i){let r=ve,u=Object[r(186)]([],this[r(179)]);return u[r(185)]<=i?u:u.splice(u[r(185)]-i)}}function it(){let x=["add","325580XUTZoJ","shift","252JXYOKp","peek","248256vMGJwd","size","1505464GGGNNg","1475771BUEDXe","861154FsRQPk","1COnQng","2617475UVmpUj","array","isEmpty","3LNzhQB","push","removeFirst","369ClWrxZ","length","assign","4741816kEiaQl","182OsUEmL"];return(it=function(){return x})()}var qe=e(6933);let Be=Qe;function Qe(x,i){let r=J();return(Qe=function(u,h){return r[u-=267]})(x,i)}function J(){let x=["downloadedSegments","absolute","http2xxResponses","highestSegmentBandwidth","bandwidth","retries","switchesDueToConnectivity","865vWsNLH","compressedBytes","_lastResponses","avgPingTime","forEach","switchesDueToErrors","_parser","downloadTimeMs","rendition","trunc","downloadMillis","getAvgResponseTime","undefined","push","bannedRefTicToc","isChecked","url","minResponseBytes","lastPingTime","length","numberOfCdnCacheMisses","updateAvailability","weight","copyArray","highestRenditionBandwidth","numberOfCdnCacheUnknowns","lastPreferedVideoChunkSize","fromEntries","samplesNetworkLatency","bannedCount","addResp","lastMeasurementWeight","numberOfCdnCacheHits","minResponseTime","maxBandwidth","Audio","cdnName","pushLastPreferedVideoBandwidth","_checked","CODAVEL","minRequestSizeForBwEstimateKB","_accumBw","lastPreferedVideoChunkDownloadTime","lastUpdatedState","lowestPingTime","downloadedBytesForScoring","path","lastPreferedVideoBandwidth","calculateEffectiveBandwidth","MB/s size-> ","targetDuration","isCodavel","min","name","incrementSwitchesDueToErrors","map","usedOnce","headers","usedOrProbed","1143144hapQmd","dnsEnabled","getLastResponse","unbannedTime","now","minNetworkLatency","type","5061654kdLqtj","downloadedChunks","isHeaderMatch","http5xxResponses","switchesDueToQuality","unBannedCount","sumThroughput","kb in ","s from ","switches","getBandwidthInBits","initialBw","browserCacheHits","getInstance","http1xxResponses","getVideoBandwidth","statusCode","samplesThroughput","score","samplesResponseBytes","48HaukTi","failed","setBandwidth","incrementSwitchesDueToQuality","sumVideoBytes","sumResponseTime","STREBOOS","uncompressedBytes","_updateCacheCounts","130VMDneG","minThroughput","shift","pattern","1789071MXtWQM","14695659jTJTjw","provider","_lastsPreferedVideoBandwidth","getAvgWBandwidth","STREBOPX","950dXiylQ","firstHugeChunkSize","addResponse","maxNetworkLatency","sumResponseBytes"," at ","toFixed","indexOf","http3xxResponses","downloadMillisVideo","downloadedBytesVideo","25000ZfHlGR","downloadTimeForScoring","resetBandwidth","add","original","getAvgLastVideoBandwidth","list","entries","downloadedBytes","setChecked","_incrementCacheCount","sumNetworkLatency","setLastResponses","maxThroughput","toLowerCase","includes","lastn","131688gHGSIx","assign","maxResponseTime","samplesResponseTime","1994SPtfMK","sumVideoTime","max"," segment of ","clone","test","getCdnCacheHits","addProbe","host","wBandwidthForScoring","failures","bannedTime","wBandwidth","active","http4xxResponses","downloadedChunksVideo","internal_provider","getAvgRecentWBandwidth","hugeChunks","lowestSegmentBandwidth","updateStatusCodeCounters","483BMugSJ","Unknown","header","totalFail","updateCdnInfo","isAudio","getAvgBandwidth","bandwidthForScoring","maxResponseBytes","cache"];return(J=function(){return x})()}(function(x){let i=Qe,r=x();for(;;)try{if(-parseInt(i(276))/1*(-parseInt(i(308))/2)+parseInt(i(270))/3+-parseInt(i(287))/4*(-parseInt(i(346))/5)+parseInt(i(412))/6+parseInt(i(329))/7*(parseInt(i(304))/8)+-parseInt(i(405))/9*(-parseInt(i(441))/10)+parseInt(i(271))/11*(-parseInt(i(432))/12)==911507)break;r.push(r.shift())}catch{r.push(r.shift())}})(J);class ee{constructor(i,r,u,h,f,I,L,P,le,K,O,q,E){let W=Qe;this[W(375)]=0,this[W(417)]=0,this[W(413)]=0,this[W(295)]=0,this.downloadedBytesForScoring=0,this.downloadTimeForScoring=0,this.hugeChunks=0,this.firstHugeChunkSize=0,this[W(336)]=new Xe(20),this[W(317)]=new Xe(20),this[W(318)]=0,this[W(344)]=0,this[W(332)]=0,this[W(424)]=0,this[W(378)]=0,this[W(366)]=0,this.numberOfCdnCacheUnknowns=0,this[W(356)]=0,this[W(402)]=!1,this[W(286)]=0,this[W(285)]=0,this[W(323)]=0,this[W(408)]=0,this[W(319)]=0,this[W(360)]=Date[W(409)](),this[W(389)]=0,this[W(380)]=1e12,this[W(393)]=0,this[W(273)]=[],this[W(370)]=0,this[W(372)]=0,this[W(388)]=0,this[W(364)]=0,this[W(387)]=ee[W(423)],this.bandwidth=new Xe(20),this[W(320)]=new Xe(20),this[W(348)]=[],this[W(342)]=0,this[W(327)]=Number.MAX_SAFE_INTEGER,this.highestPingTime=0,this[W(390)]=Number.MAX_SAFE_INTEGER,this[W(349)]=0,this.isRangeCompatible=!0,this[W(384)]=!1,this[W(339)]=new Array,this[W(404)]=!1,this[W(272)]=i,this[W(324)]=[W(385),W(438),W(275)][W(302)](i)?r:i,this[W(399)]=r,this[W(316)]=u,this[W(392)]=h,this[W(362)]=f,this.score=I,this.price=P,this[W(368)]=le,this[W(340)]=K,this.dnsEnabled=O,this.auth=q,this[W(291)]=L,this[W(321)]=!0,this.banned=!1,this._parser=E}[Be(383)](i){let r=Be;this._lastsPreferedVideoBandwidth[r(359)](i),this[r(273)].length>5&&this[r(273)][r(268)]()}[Be(292)](){let i=Be,r=0,u=0;for(u=0;u[I.toLowerCase(),L])),{hit:h,miss:f}=this[r(352)][r(338)];h&&f?this._updateCacheCounts(h,f,u):this._updateCacheCount(h||f,u,!!h)}[Be(440)](i,r,u){let h=Be;var f,I;let L=(f=i?.[h(331)][h(301)]())!==null&&f!==void 0?f:"",P=(I=r?.[h(331)][h(301)]())!==null&&I!==void 0?I:"",le=L in u&&_[h(414)](u[L],i),K=P in u&&_[h(414)](u[P],r);le?this.numberOfCdnCacheHits++:K?this[h(366)]++:this[h(371)]++}_updateCacheCount(i,r,u){let h=Be;var f;let I=(f=i?.[h(331)][h(301)]())!==null&&f!==void 0?f:"";if(I in r){let L=r[I],P=!1;i[h(411)]===h(293)?P=i[h(269)][h(302)](L):i.type==="regex"&&(P=new RegExp(i[h(269)])[h(313)](L)),P?this[h(297)](u):this[h(297)](!u)}else this[h(297)](!u)}_incrementCacheCount(i){let r=Be;i?this.numberOfCdnCacheHits++:this[r(366)]++}[Be(376)](i){let r=Be;var u,h;let f=i.route,I=i[r(343)]||0,L=i.size||0,P=i[r(353)]||0,le=i[r(433)];if(this[r(404)]=!0,this[r(328)](i[r(428)]),le)return this[r(344)]++,this[r(332)]++,void qe.default[r(425)]().updateCdnInfo(this[r(399)],this[r(413)],this[r(295)],this[r(332)]);this[r(413)]++,this[r(295)]+=L,this.sumResponseBytes===void 0?this[r(280)]=L:this.sumResponseBytes+=L,typeof this[r(363)]===r(358)?this.minResponseBytes=L:this[r(363)]=Math[r(398)](this[r(363)],L),typeof this.maxResponseBytes===r(358)?this.maxResponseBytes=L:this.maxResponseBytes=Math.max(this[r(337)],L),typeof this[r(431)]===r(358)?this[r(431)]=1:this[r(431)]+=1,i.compressedBytes!=null&&i[r(439)]!=null&&(typeof this[r(347)]===r(358)?this[r(347)]=i[r(347)]:this[r(347)]+=i[r(347)],typeof this[r(439)]===r(358)?this.uncompressedBytes=i[r(439)]:this[r(439)]+=i[r(439)]),this._processCdnCache(i),qe.default[r(425)]()[r(333)](this[r(399)],this.downloadedChunks,this[r(295)],this[r(332)]),i[r(354)]!=null&&i[r(354)][r(334)]&&this[r(326)]==0&&(this[r(402)]=!1),(i[r(354)]==null||!i[r(354)][r(334)])&&(this.downloadedBytesForScoring+=L,this.downloadTimeForScoring+=P,this.usedOnce=!0,this[r(326)]++,this[r(277)]==0&&(this[r(277)]=L)),p.Y4[r(350)](q=>{let E=r;if(f[E(283)](q)>=0){let W=!0;I>0?(L>1e3*p._C[E(386)]&&(W=!1,this._accumBw=this[E(387)]!==ee[E(423)]?Math[E(355)](this[E(387)]*(1-p.Zq[E(377)])+I*p.Zq[E(377)]):I),this[E(343)][E(290)](I),this[E(320)][E(290)]({bw:I*L,ct:L}),(i.rendition==null||!i[E(354)].isAudio)&&(this[E(336)][E(290)](I),this.wBandwidthForScoring.add({bw:I*L,ct:L}),this[E(285)]+=P,this[E(286)]+=L,this[E(323)]++,typeof this[E(418)]===E(358)?this.sumThroughput=I:this[E(418)]+=I,typeof this.minThroughput===E(358)?this[E(267)]=I:this.minThroughput=Math.min(this[E(267)],I),typeof this[E(300)]===E(358)?this[E(300)]=I:this[E(300)]=Math.max(this[E(300)],I),typeof this[E(429)]===E(358)?this[E(429)]=1:this[E(429)]+=1,typeof this[E(436)]===E(358)?this.sumVideoBytes=L:this[E(436)]+=L,this[E(309)]===void 0?this[E(309)]=P:this.sumVideoTime+=P)):this[E(424)]++,this[E(387)]==0&&!W&&(this[E(402)]=!1)}}),this.downloadedBytes==0&&(this[r(402)]=!1),I>this[r(342)]&&(this[r(342)]=I),I0?r/u:0}getAvgRecentBandwidth(){let i=Be,r=0,u=0;for(let h of this[i(343)][i(303)](4))r+=h,u++;return u>0?r/u:0}[Be(274)](){let i=Be,r=0,u=0;for(let h of this[i(317)][i(369)]())r+=h.bw,u+=h.ct;return u>0?r/u:0}[Be(325)](){let i=Be,r=0,u=0;for(let h of this[i(317)][i(303)](4))r+=h.bw,u+=h.ct;return u>0?r/u:0}getWeightedBandwidth(){let i=Be;return .45*this[i(274)]()+.55*this[i(325)]()}[Be(289)](){let i=Be;this[i(387)]=ee[i(423)]}getOldestRequestTS(){var i;return((i=this._lastResponses[0])===null||i===void 0?void 0:i.time)||0}[Be(312)](){let i=Be,r=new ee(this[i(272)],this[i(399)],this[i(316)],this.path,this[i(362)],this[i(430)],this[i(291)],this.price,this[i(368)],this[i(340)],this[i(406)],this.auth,this[i(352)]);return Object.keys(this).forEach(u=>{let h=i,f=u,I={};I[f]=this[f],Object[h(305)](r,I)}),r}[Be(315)](i){let r=Be;typeof this[r(298)]===r(358)?this[r(298)]=i:this[r(298)]+=i,typeof this[r(410)]===r(358)?this[r(410)]=i:this[r(410)]=Math[r(398)](this[r(410)],i),typeof this.maxNetworkLatency===r(358)?this[r(279)]=i:this.maxNetworkLatency=Math[r(310)](this[r(279)],i),typeof this[r(374)]===r(358)?this[r(374)]=1:this.samplesNetworkLatency+=1}updateStatusCodeCounters(i){let r=Be;i!=null&&(i>=100&&i<=199?this[r(426)]=(this[r(426)]||0)+1:i>=200&&i<=299?this.http2xxResponses=(this[r(341)]||0)+1:i>=300&&i<=399?this.http3xxResponses=(this[r(284)]||0)+1:i>=400&&i<=499?this[r(322)]=(this[r(322)]||0)+1:i>=500&&i<=599&&(this.http5xxResponses=(this[r(415)]||0)+1))}[Be(367)](){let i=Be,r=Date[i(409)]();this.banned?(this[i(319)]+=r-this.bannedRefTicToc,this[i(360)]=r):(this[i(408)]+=r-this.bannedRefTicToc,this.bannedRefTicToc=r)}incrementSwitches(){let i=Be;typeof this[i(421)]===i(358)?this[i(421)]=1:this[i(421)]+=1}[Be(435)](){let i=Be;typeof this.switchesDueToQuality===i(358)?this[i(416)]=1:this[i(416)]+=1}incrementSwitchesDueToConnectivity(){let i=Be;typeof this[i(345)]===i(358)?this.switchesDueToConnectivity=1:this[i(345)]+=1}[Be(400)](){let i=Be;this.switchesDueToErrors===void 0?this[i(351)]=1:this.switchesDueToErrors+=1}resetOnPing(){let i=Be;this[i(280)]=void 0,this[i(363)]=void 0,this[i(337)]=void 0,this[i(431)]=void 0,this[i(437)]=void 0,this[i(379)]=void 0,this.maxResponseTime=void 0,this[i(307)]=void 0,this.sumNetworkLatency=void 0,this.minNetworkLatency=void 0,this[i(279)]=void 0,this.samplesNetworkLatency=void 0,this.sumThroughput=void 0,this[i(267)]=void 0,this[i(300)]=void 0,this[i(429)]=void 0,this[i(436)]=void 0,this[i(309)]=void 0,this.unbannedTime=0,this[i(319)]=0,this[i(360)]=Date[i(409)]()}[Be(397)](){let i=Be;return[i(385),i(438),i(275)][i(302)](this[i(272)])}[Be(296)](){this[Be(384)]=!0}[Be(361)](){return this[Be(384)]}}function ae(x,i){var r=Te();return(ae=function(u,h){return r[u-=208]})(x,i)}ee[Be(423)]=9e12;var de=ae;function Te(){var x=["min","_minPing","averagePing","208449fEGCzX","getAvgPingTime","42miwCaL","790936QhkeDf","9Wfmldn","56zHVwBp","10YuhUrJ","10080430nGWzvB","42244icNVYP","add","1175882uHOUKj","pingsTime","getSimpleAveragePingTime","lastMeasurementWeight","14700466tcDQqS","_maxPing","pingsCounter","2263146JNtBNn"];return(Te=function(){return x})()}(function(x){for(var i=ae,r=x();;)try{if(parseInt(i(227))/1+parseInt(i(216))/2+-parseInt(i(208))/3*(-parseInt(i(214))/4)+parseInt(i(212))/5*(parseInt(i(223))/6)+parseInt(i(211))/7*(-parseInt(i(209))/8)+parseInt(i(210))/9*(parseInt(i(213))/10)+-parseInt(i(220))/11==579327)break;r.push(r.shift())}catch{r.push(r.shift())}})(Te);class Re{constructor(){var i=ae;this.pingsCounter=0,this[i(217)]=0,this[i(226)]=0,this[i(221)]=0,this[i(225)]=Number.MAX_SAFE_INTEGER}[de(215)](i){var r=de;this[r(221)]=Math.max(this[r(221)],i),this[r(225)]=Math[r(224)](this[r(225)],i),this[r(217)]+=i,this[r(222)]++,this[r(226)]=this[r(226)]===0?i:Math.trunc(this[r(226)]*(1-p.Zq[r(219)])+i*p.Zq[r(219)])}[de(228)](){return this.averagePing}getMaxPingTime(){return this._maxPing}getMinPingTime(){return this[de(225)]}[de(218)](){var i=de;return this[i(217)]/this[i(222)]}}let Ve=We;(function(x){let i=We,r=x();for(;;)try{if(parseInt(i(292))/1*(-parseInt(i(295))/2)+-parseInt(i(283))/3+-parseInt(i(304))/4*(-parseInt(i(289))/5)+-parseInt(i(285))/6+parseInt(i(299))/7*(parseInt(i(307))/8)+-parseInt(i(306))/9+parseInt(i(294))/10==936195)break;r.push(r.shift())}catch{r.push(r.shift())}})(Ne);function Ne(){let x=["_lastPingBroadcast","10804716YrQIrR","40qwgLPA","_pingBroadcastTimeInSeconds","ping","getPeersWithContent","then","_instance","apply","bandwidth","4037211nsKozv","testPeer","1528998xnPZlQ","done","value","newDownloadedSegment","1207480jNwVxC","lastDownloadedSegment","values","2973XhiNkp","__awaiter","26885990mnWacm","214WSPvHW","next","getInstance","now","1575427xChnhy","timeBetweenBurstsMilliseconds","p2pLoader","pingTime","_isMonitoring","4SHwMvd"];return(Ne=function(){return x})()}function We(x,i){let r=Ne();return(We=function(u,h){return r[u-=279]})(x,i)}class ct{constructor(i){let r=Ve;this[r(282)]=new Map,this[r(302)]=new Map,this[r(303)]=!1,this[r(308)]=60,this[r(305)]=Date[r(298)](),this[r(301)]=i}[Ve(288)](i){this[Ve(290)]=i}monitor(){return i=this,r=void 0,h=function*(){let f=We;if(!this._isMonitoring)for(this[f(303)]=!0;;){if(Date[f(298)]()-this._lastPingBroadcast>1e3*this[f(308)])for(let I of this[f(301)].getPeers()[f(291)]())this[f(284)](I);else{for(;!this[f(290)];)yield new Promise(L=>setTimeout(L,1e3));let I=this.p2pLoader[f(310)](this[f(290)]);I.length>0&&this[f(284)](I[0])}yield new Promise(I=>setTimeout(I,p.wc[f(300)]))}},new((u=void 0)||(u=Promise))(function(f,I){let L=We;function P(O){let q=We;try{K(h[q(296)](O))}catch(E){I(E)}}function le(O){try{K(h.throw(O))}catch(q){I(q)}}function K(O){let q=We;var E;O[q(286)]?f(O[q(287)]):(E=O.value,E instanceof u?E:new u(function(W){W(E)}))[q(279)](P,le)}K((h=h[L(281)](i,r||[]))[L(296)]())});var i,r,u,h}[Ve(284)](i){let r=Ve;this[r(301)].isEnabled()&&i[r(309)](i.id)}static[Ve(297)](i){let r=Ve;return i!=null&&(this[r(280)]=new ct(i)),this[r(280)]}}let Q=_e;function _e(x,i){let r=ke();return(_e=function(u,h){return r[u-=488]})(x,i)}function ke(){let x=["getLastBandwith","max","https://localhost","enabled","upload","_offerInterval","837513POOIjj","Error","_packageFound","_activeDownloadIds","getLastLatencyP2P","reduce","set","_byteUploadDiscardedCount","_maxConcurrent","from","_maxConnectedPeers","setContent","createMap","_timeoutDiscardedBytes","_failedRequests","Max peers reached -> ","rendition","getMinPingTime","getLastUploadsTraffic","random","_sumNetworkLatency","_samplesNetworkLatency","_errorRequests","getMaxPeers","request","WebRtcEvents","delete","_peersAvailable","push","P2P Requesting new segment ","_maxPeersParallelUsed","getStats","_warningListener","getLastSegmentDataMessagesTime","_minPeersParallelUsed","add","_uploadRequestsFailed","getPeersAhead","notice","P2PManager","maxConnectedPeers","_downloadedBytesVideo","P2P peer already exist. ","_downloadMillisVideo","_maxResponseBytes","2020818OsoNtv","_minResponseBytes","getUploadedBytes","getLastResponses","_peerDiscoveryTime","_updatePeersMetricsRefCounter","sendSegment","5122502hXUqNT","Problem max concurrency ","data","monitor","peerSegmentProgress","debug","P2P ADDPEERCANDIDATE - received message from ","_sumThroughput"," peer-timeouts: ","pathname","getUploadedUniqPeers","isBehind","getUploadRequests","setSettings"," available from peer ","getMaxSize","getLastDownloadsTraffic","p2p","_samplesResponseTime","isMaxPeers"," / ","videoId","_downloadMillis","getLastSegmentCreatedAt","2795408BBbHTl","start","addPeerResponse","_samplesResponseBytes","getSegmentMap","now","isAudio","1021364HFebLE","peerSegmentUpload","_p2pManager","getPeersBehind","enable","Already have max peers","_sumVideoTime","verbose","Warning","_timeoutRequests","initialBw","_activePeerSet","getOldestRequestTS","bind","startMonitoring","resetOnPing"," audio -> ","getDownloadBandwidth","P2P Unable to request to more peers max concurrency (","_accumBw","storeSegment","_peersUsed","splice","getSegment","_monitoringStarted"," SM Size-> ","peerFailedSegmentTimeout","_minThroughput","realBodySize","avgPingTime","_peersParallelUsed","tracker","_peerConnectionTime","_uplodadedPeers","1237876kEFuot","onOffer","values","warn","onConnected","_maxPeersAvailable","_chunkDownloadCount","forEach","_segmentAbsentRequests","destroy","P2P","_downloadedPeers","Already banned peer -> ","p2pId"," delay ","561885UUdCtn","10pnpsgs","_chunkUploadCount","indexOf","_minResponseTime","get","byteLength","sendNewSegmentAvailable","_segmentsRequested","peer","_sendMapToPeer","_destroyed","getPeers","length","onDiscovery","P2P Warning ","_byteDownloadCount","getSegmentDataMessages","P2P Error: ","P2PRS Requesting segment ","_availablePeersMap","getVersion","_minBandwidth","addPeerLatency","_cdnObject","getPeersNothing","_samplesThroughput","_sendMapToAllPeersV0","_uploadRequests","Active downloads vs max concurrencui P2PMO -> ","getUploadedChunks","undefined","min","_performReset","isAhead","trunc","_minPeersAvailable","s messages: ","announcedP2P","P2P Requesting segment ","resetP2PConnection","peerCloseListener","trackerAnnounce","P2P adding the candidate. ","_activeDownloads","Constants","P2P support disabled.","_sumResponseBytes","sendMap","_peers","maxParallelP2PDownloads","getId","setBandwidth","P2P support enabled ","_minNetworkLatency","time","peerSegmentLoaded","_sumVideoBytes","_maxThroughput","getCdnObject"," | ","consumeOnly","_maxBandwidth","updatePeerMetrics","has","peerCanceledSegmentUpload","_options","_byteUploadCount","_isEnabled","origRes","endTime","_cdnPingTimeBean","_storage","getUploadRequestsFailed","timeouts","_candidates","getPeersWithContent","getInstance","peerConnect","P2P MAP send map to peer ","maxConcurrency","_totalPeerSet","noContentObtained","concat","P2P New peer candidate ","_sumResponseTime","_maxNetworkLatency","sort","getBannedPeers","map","slice","sendJoin","_downloadedChunksVideo","isDownloading","_sendNewSegmentToAllPeersV1","_maxResponseTime","_bannedPeers","_chunkUploadDiscardedCount","size","_accountCode","rejoin"];return(ke=function(){return x})()}(function(x){let i=_e,r=x();for(;;)try{if(parseInt(i(708))/1+-parseInt(i(659))/2+parseInt(i(576))/3+-parseInt(i(693))/4*(parseInt(i(709))/5)+-parseInt(i(621))/6+parseInt(i(628))/7+parseInt(i(652))/8==455845)break;r.push(r.shift())}catch{r.push(r.shift())}})(ke);class je{constructor(i,r,u){let h=_e;this[h(574)]=p.LI.upload,this[h(537)]=!1,this[h(578)]=!1,this[h(584)]=p.LI[h(549)],this[h(586)]=p.LI.maxConnectedPeers,this[h(518)]=new Map,this._bannedPeers=new Map,this._candidates=new Map,this[h(513)]=0,this[h(716)]=new Map,this[h(579)]=[],this[h(683)]=!1,this[h(502)]=!1,this[h(704)]=new Map,this[h(692)]=new Map,this[h(531)]=0,this._minBandwidth=Number.MAX_SAFE_INTEGER,this[h(589)]=0,this[h(590)]=0,this[h(668)]=0,this[h(701)]=0,this[h(598)]=0,this._downloadMillis=0,this._byteDownloadCount=0,this[h(699)]=0,this[h(550)]=new Set,this._activePeerSet=new Set,this[h(489)]=new Map,this[h(626)]=0,this[h(575)]=45e3,this[h(678)]=ee[h(669)],this[h(619)]=0,this[h(617)]=0,this[h(561)]=0,this._byteUploadDiscardedCount=0,this[h(566)]=0,this[h(710)]=0,this[h(536)]=0,this[h(497)]=0,this[h(612)]=0,this._destroyed=!1,this[h(568)]=i,this[h(535)]=r,this[h(541)]=u,this[h(493)]=new ee("P2P",h(703),"","","",1,!1,0,0,!1,!1),this._cdnObject[h(521)](this[h(678)]),this._cdnObject.setLastResponses(this[h(624)]()),this[h(540)]=new Re,window[h(615)]?this._packageFound=!0:o.default[h(614)](c.BalancerTag,"P2P dependency does not exist. Disabling P2P!")}isEnabled(){let i=_e;return this._packageFound&&this[i(537)]}[Q(663)](){this[Q(537)]=!0}disable(){this[Q(537)]=!1}getStorage(){return this[Q(541)]}[Q(638)](){let i=Q;return this[i(692)][i(567)]}[Q(613)](){let i=Q,r=0;for(let u of this[i(518)][i(695)]())u[i(503)]&&r++;return r}[Q(662)](){let i=Q,r=0;for(let u of this._peers[i(695)]())u[i(639)]&&r++;return r}[Q(494)](){let i=Q,r=0;for(let u of this[i(518)].values())u[i(503)]||u.isBehind||r++;return r}[Q(520)](){let i=Q;var r;return(r=this[i(661)])===null||r===void 0?void 0:r[i(520)]()}[Q(528)](){return this[Q(493)]}[Q(509)](){this._performReset=!0}[Q(560)](){let i=Q;var r,u;if(this._packageFound&&this[i(537)]){let h=new URL((r=this[i(535)].resource)!==null&&r!==void 0?r:i(572)),f=this[i(568)]+(this[i(535)][i(649)]||h[i(637)]);(u=this[i(661)])===null||u===void 0||u[i(569)](f)}}[Q(641)](i){let r=Q;var u;if(this[r(578)]&&!this[r(537)])if(i[r(645)]&&i[r(645)][r(573)]){this[r(537)]=!0,this[r(574)]=!i[r(645)][r(530)]||p.LI[r(574)],this[r(584)]=i.p2p[r(519)]||p.LI.maxConcurrency,this._maxConnectedPeers=i.p2p[r(616)]||p.LI[r(616)];let h=new URL((u=this[r(535)].resource)!==null&&u!==void 0?u:r(572)),f=this[r(568)]+(this[r(535)][r(649)]||h.pathname);this._p2pManager=new window[r(615)](this,f,{tracker:i.p2p[r(511)]||p.LI[r(690)],accountCode:this[r(568)],announcePeers:i[r(645)].peerRequestsPerAnnounce}),this[r(661)].on(window[r(615)][r(514)][r(601)][r(577)],je._errorListener.bind(this)).on(window[r(615)][r(514)][r(601)][r(667)],je[r(608)][r(672)](this))[r(653)](),o.default[r(633)](c.BalancerTag,r(522)+this[r(520)]())}else o.default[r(633)](c.BalancerTag,r(515)),this[r(537)]=!1}[Q(673)](){let i=Q;this[i(683)]||(this[i(683)]=!0,ct[i(546)]()[i(631)]())}[Q(647)](){let i=Q;return this[i(518)][i(567)]>this[i(586)]&&(o.default[i(666)](c.BalancerTag,i(591)+this[i(518)][i(567)]),!0)}getMissingPeers(){let i=Q;return this[i(586)]-this[i(518)][i(567)]}[Q(599)](){return this._maxConnectedPeers}[Q(557)](){return this[Q(565)]}[Q(640)](){return this[Q(497)]}[Q(542)](){return this[Q(612)]}[Q(682)](i){let r=Q;return this[r(541)][r(682)](i[r(706)])}[Q(545)](i){let r=Q;if(this[r(719)]||this[r(518)][r(567)]==0)return[];let u=[];for(let f of this[r(518)][r(695)]())if(f.getSegmentMap()[r(721)]==0){let I=Date.now()-f[r(609)]();(I>3e4&&f[r(725)]()<2||I>12e4)&&(this[r(565)][r(582)](f.id,!0),f[r(702)](),this[r(510)](f),o.default[r(666)](c.BalancerTag,"BANNING Peer -> "+f.id+r(684)+f[r(656)]()[r(721)]+" last msg -> "+I/1e3+r(506)+f[r(725)]()))}else(!f[r(562)]()||f[r(490)]()>=2)&&f[r(656)]()[r(721)]>0&&f.getSegmentMap()[r(711)](i.p2pId)>=0&&u[r(604)](f);if(u[r(721)]==0)return[];let h=[];for(let f of u)f[r(580)]()>0&&f[r(580)]()<5&&h[r(604)](f);if(h[r(721)]==0)for(let f of u)f[r(580)]()>0&&f[r(580)]()<7&&h[r(604)](f);if(h[r(721)]==0){let f=[];for(let I of u)I[r(570)]()==0&&I.timeouts==0&&h[r(604)](I),I[r(570)]()>0&&f.push(I);f=f[r(556)]((I,L)=>L[r(570)]()-I.getLastBandwith()),h=f[r(721)]<4?h[r(552)](f):h.concat(f[r(559)](0,3))}return h[r(721)]==0&&(h=u),h}[Q(600)](i,r){let u=Q;var h,f,I;if(!this[u(578)])return!1;if(o.default[u(666)](c.BalancerTag,u(498)+this._activeDownloads+" "+this[u(584)]),this[u(513)]>this[u(584)]&&o.default[u(666)](c.BalancerTag,u(629)+this._activeDownloads),!(this[u(513)]<=this._maxConcurrent))return o.default[u(633)](c.BalancerTag,u(677)+this[u(584)]+") already reached"),!1;{o.default[u(666)](c.BalancerTag,u(605)+i[u(706)]+u(529)+((h=i[u(592)])===null||h===void 0?void 0:h[u(658)])+" peers: "+this[u(518)][u(567)]);let L=this[u(545)](i);if(L[u(721)]>0){let P=Array[u(585)](L).sort((le,K)=>.5-Math[u(595)]())[0];return this._segmentsRequested[u(582)](i[u(706)],i),this[u(513)]++,i.triedP2P=!0,P[u(600)](i[u(706)]),i[u(717)]=P,P.consecutiveHaveSegment++,o.default[u(666)](c.BalancerTag,u(488)+i.p2pId+u(675)+((f=i.rendition)===null||f===void 0||f[u(658)],"no")+u(642)+P.id+" size -> "+P[u(656)]()[u(721)]+" pos: "+P.getSegmentMap()[u(711)](i[u(706)])+u(636)+P[u(543)]),!0}}return o.default[u(666)](c.BalancerTag,u(508)+i.p2pId+u(675)+((I=i[u(592)])===null||I===void 0?void 0:I.isAudio)+" not available "),!1}[Q(654)](i){this[Q(493)].addResponse(i)}[Q(624)](){let i=Q;return Array[i(585)](this[i(518)].values())[i(558)](r=>r[i(624)]())[i(581)]((r,u)=>[...r,...u],[]).sort((r,u)=>u[i(524)]-r.time)}[Q(492)](i){let r=Q;this._cdnPingTimeBean.add(i),this[r(493)][r(688)]=this[r(540)].getAvgPingTime(),typeof this[r(596)]===r(500)?this[r(596)]=i:this._sumNetworkLatency+=i,typeof this[r(523)]===r(500)?this[r(523)]=i:this[r(523)]=Math[r(501)](this._minNetworkLatency,i),typeof this[r(555)]===r(500)?this[r(555)]=i:this[r(555)]=Math.max(this[r(555)],i),this[r(597)]===void 0?this[r(597)]=1:this[r(597)]+=1}static _errorListener(i){let r=Q;o.default.error(c.BalancerTag,r(726),i)}static[Q(608)](i){let r=Q;o.default[r(696)](c.BalancerTag,r(723),i)}[Q(679)](i){let r=Q;if(this[r(574)]){let u=this[r(541)][r(679)](i);!i[r(507)]&&u&&(i[r(507)]=!0,this[r(563)](i),this[r(496)]());let h=this[r(579)].indexOf(i[r(706)]);h>=0&&this[r(579)].splice(h)}else if(!i[r(507)]){i[r(507)]=!0;let u=this[r(541)][r(588)]();this._peers[r(700)](h=>{h[r(517)](u)})}}[Q(496)](){let i=Q;if(this[i(719)])return;let r=this[i(541)][i(588)](),u=Date[i(657)]()-this._storage[i(651)]();o.default.verbose(c.BalancerTag,"P2PSMAP Send map all v0 size: "+r.length+i(648)+this[i(518)][i(567)]+i(707)+u),r[i(721)]>0&&this[i(518)].forEach(h=>{let f=i;h[f(490)]()==0&&h[f(517)](r)})}[Q(563)](i){let r=Q;if(this[r(719)])return;let u=this[r(541)][r(588)]();o.default[r(666)](c.BalancerTag,"P2PSMAP new segment to all peers: "+u.length),u[r(721)]>0&&this[r(518)][r(700)](h=>{let f=r;h[f(490)]()>0&&h[f(715)](i.p2pId,i[f(567)],this[f(541)][f(643)](),i.createdAt)})}[Q(718)](i){let r=Q;if(this[r(719)])return;let u=this[r(541)].createMap();o.default[r(666)](c.BalancerTag,r(548)+u[r(721)]+" "+i);let h=!1;this._peers[r(700)](f=>{f.id==i&&(f.sendMap(u),h=!0)}),!h&&o.default[r(666)](c.BalancerTag,"Problem peer doen't exists?")}addPeerCandidate(i,r){let u=Q;var h;if(!this._destroyed)if(this._availablePeersMap.set(i.id,Date[u(657)]()),this[u(565)][u(713)](i.id)==null)if(o.default[u(666)](c.BalancerTag,u(634)+i.id+" "),this[u(647)]())o.default[u(633)](c.BalancerTag,u(664));else{if(!this[u(518)][u(533)](i.id)){!this._candidates.has(i.id)&&this._candidates[u(582)](i.id,[]);let f=new be(this,i,r);(h=this._candidates[u(713)](i.id))===null||h===void 0||h.push(f),o.default[u(666)](c.BalancerTag,u(553)+f.id)}this[u(532)]()}else o.default[u(633)](c.BalancerTag,u(705)+i.id)}[Q(547)](i){let r=Q;var u;o.default.verbose(c.BalancerTag,"CREATEPEERCONNECTING"),this[r(719)]||(this[r(489)][r(582)](i.id,Date[r(657)]()),this[r(557)]()[r(713)](i.id)||(this[r(647)]()?o.default[r(633)](c.BalancerTag,"Already have max peers"):(this[r(518)][r(533)](i.id)?(o.default[r(633)](c.BalancerTag,r(618)+i.id),i[r(702)]()):(o.default[r(633)](c.BalancerTag,r(512)+i.id),this[r(518)][r(582)](i.id,i),this[r(670)][r(611)](i.id),this[r(550)].add(i.id),(u=this[r(544)].get(i.id))===null||u===void 0||u[r(700)](h=>{i!=h&&h[r(702)]()}),this[r(544)][r(602)](i.id),this[r(718)](i.id)),this.updatePeerMetrics())))}[Q(510)](i){let r=Q,u=i;this[r(518)][r(602)](u.id),this._activePeerSet.delete(u.id);let h=this[r(544)][r(713)](u.id);if(h){let f=h[r(711)](u);f>-1&&(h[r(681)](f,1),!h[r(721)]&&this[r(544)][r(602)](u.id))}this.updatePeerMetrics()}peerSegmentUploadRequest(i,r,u){let h=Q;this[h(497)]++;let f=this._uplodadedPeers[h(713)](i.id);if(f==null&&(f=0),this[h(692)][h(582)](i.id,f),this[h(719)])return;let I=this[h(541)][h(682)](r),L=!1;I&&I[h(630)][h(714)]>1?(i[h(627)](r,I,u),L=!0):(i.sendNoSegment(r,u),this[h(718)](i.id),this[h(612)]++),o.default[h(666)](c.BalancerTag,"P2PUR Peer requested segment -> "+L+h(529)+r+" "+I?.size+" "+I?.data[h(714)]+" | "+i.id+" "+u+" "+I?.[h(538)])}[Q(525)](i,r,u,h){let f=Q;var I;this._activeDownloads--,this[f(699)]++,this[f(650)]+=u,this[f(724)]+=h[f(714)],typeof this._sumResponseBytes===f(500)?this[f(516)]=h[f(714)]:this[f(516)]+=h.byteLength,this[f(622)]===void 0?this[f(622)]=h[f(714)]:this[f(622)]=Math[f(501)](this[f(622)],h[f(714)]),typeof this[f(620)]===f(500)?this[f(620)]=h[f(714)]:this[f(620)]=Math[f(571)](this[f(620)],h[f(714)]),this[f(655)]===void 0?this[f(655)]=1:this[f(655)]+=1,(I=this[f(716)][f(713)](r))===null||I===void 0||I[f(587)](h);let L=Math[f(504)](h[f(714)]/(u/1e3));this[f(678)]=this[f(678)]!==ee[f(669)]?Math.trunc(this[f(678)]*(1-p.Zq.lastMeasurementWeight)+L*p.Zq.lastMeasurementWeight):L,this[f(493)][f(521)](this[f(678)]),this[f(635)]===void 0?this._sumThroughput=L:this._sumThroughput+=L,typeof this[f(686)]===f(500)?this[f(686)]=L:this._minThroughput=Math[f(501)](this._minThroughput,L),this[f(527)]===void 0?this[f(527)]=L:this[f(527)]=Math[f(571)](this._maxThroughput,L),this[f(495)]===void 0?this._samplesThroughput=1:this[f(495)]+=1,typeof this._sumVideoBytes===f(500)?this[f(526)]=h[f(714)]:this[f(526)]+=h[f(714)],this[f(665)]===void 0?this[f(665)]=u:this[f(665)]+=u,this[f(554)]===void 0?this._sumResponseTime=u:this[f(554)]+=u,typeof this[f(712)]===f(500)?this[f(712)]=u:this[f(712)]=Math[f(501)](this._minResponseTime,u),typeof this[f(564)]===f(500)?this._maxResponseTime=u:this[f(564)]=Math[f(571)](this[f(564)],u),typeof this[f(646)]===f(500)?this[f(646)]=1:this._samplesResponseTime+=1;let P=this[f(716)].get(r);if(P){let le=P.route;p.Y4[f(700)](K=>{let O=f;le[O(711)](K)>=0&&(P[O(592)]==null||!P[O(592)][O(658)])&&(this[O(619)]+=u,this[O(617)]+=h.byteLength,this[O(561)]++)}),P[f(539)]=Date[f(657)](),P[f(687)]=h.byteLength,this[f(679)](P),this[f(716)][f(602)](r)}}[Q(632)](i,r,u,h,f){let I=Q;if(f==0)return;let L=this[I(716)].get(r);if(L&&(L[I(539)]=Date.now()),L&&!this[I(541)][I(682)](L.id)&&(f>0&&(L[I(687)]=f),this.storeSegment(L)),L&&(L[I(630)]=h),L&&L.id){let P=this[I(541)].getSegment(L.id);P&&(P[I(630)]=h)}}[Q(685)](i,r,u){let h=Q;var f;this._timeoutDiscardedBytes+=u||0,this[h(668)]++,this[h(513)]--,this[h(590)]++,(f=this[h(716)][h(713)](r))===null||f===void 0||f[h(551)](),this[h(716)].delete(r)}peerFailedSegmentAbsent(i,r){let u=Q;var h;this[u(701)]++,this[u(513)]--,this[u(590)]++,(h=this[u(716)].get(r))===null||h===void 0||h[u(551)](),this._segmentsRequested.delete(r)}[Q(660)](i){let r=Q;this[r(536)]+=i,this[r(710)]++}[Q(623)](){return this[Q(536)]}[Q(499)](){return this._chunkUploadCount}[Q(534)](i){let r=Q;this[r(583)]+=i,this[r(566)]++}[Q(702)](){let i=Q;if(this[i(661)])try{this[i(661)][i(702)](),delete this[i(661)]}catch{}for(let[,r]of this[i(544)])r[i(700)](u=>{u.destroy()});for(let[,r]of this[i(518)])r[i(702)]();try{this[i(719)]=!0,this._storage[i(702)]()}catch{}}[Q(671)](){let i=Q,r=Date[i(657)]();return this[i(518)][i(700)](u=>{let h=u[i(671)]();h&&(r=Math.min(r,h))}),r}[Q(720)](){return this[Q(518)]}[Q(607)](){let i=Q,r=0,u=0,h=0,f=0,I=0;return this._peers[i(700)](L=>{let P=i;L[P(676)]()>0&&(r+=L[P(676)](),this._maxBandwidth=Math[P(504)](Math[P(571)](this[P(531)],L.getDownloadBandwidth())),this[P(491)]=Math[P(504)](Math.min(this[P(491)],L[P(676)]())),u++),h+=L[P(644)](),f+=L[P(594)](),I+=L.getTotalSendTime()}),r/=u||1,r=Math.trunc(r),{downloadEnabled:!0,uploadEnabled:this[i(574)],uploadedBytes:this[i(536)],uploadedTime:I,uploadedChunks:this[i(710)],discardedUploadedChunks:this[i(566)],discardedUploadedBytes:this._byteUploadDiscardedCount,downloadedSegments:this[i(699)],downloadedBytes:this[i(724)],discardedDownloadedBytes:this[i(589)],failedRequests:{total:this._failedRequests,absent:this._segmentAbsentRequests,timeout:this[i(668)],error:this._errorRequests},activePeers:this[i(518)][i(567)],totalPeers:this[i(518)].size,downloadMillis:this[i(650)],maxBandwidth:this._maxBandwidth,minBandwidth:this[i(491)],downloadAvgBw:r,lastSecondsDownloadTraffic:h,lastSecondsUploadTraffic:f,downloadMillisVideo:this[i(619)],downloadBytesVideo:this[i(617)],downloadChunksVideo:this[i(561)],avgPingTime:this[i(540)].getAvgPingTime(),minPingTime:this[i(540)][i(593)](),maxPingTime:this[i(540)].getMaxPingTime(),sumResponseBytes:this[i(516)],minResponseBytes:this._minResponseBytes,maxResponseBytes:this[i(620)],samplesResponseBytes:this._samplesResponseBytes,sumResponseTime:this[i(554)],minResponseTime:this[i(712)],maxResponseTime:this[i(564)],samplesResponseTime:this._samplesResponseTime,sumNetworkLatency:this._sumNetworkLatency,minNetworkLatency:this[i(523)],maxNetworkLatency:this._maxNetworkLatency,samplesNetworkLatency:this[i(597)],sumThroughput:this[i(635)],minThroughput:this[i(686)],maxThroughput:this._maxThroughput,samplesThroughput:this[i(495)],sumVideoBytes:this[i(526)],sumVideoTime:this[i(665)],peersAvailable:this[i(603)],maxPeersAvailable:this[i(698)],minPeersAvailable:this[i(505)],peersUsed:this[i(680)],peersParallelUsed:this._peersParallelUsed,maxPeersParallelUsed:this[i(606)],minPeersParallelUsed:this._minPeersParallelUsed,peerDiscoveryTime:this[i(625)],peerConnectionTime:this._peerConnectionTime}}[Q(674)](){let i=Q;this[i(516)]=void 0,this[i(622)]=void 0,this[i(620)]=void 0,this[i(655)]=void 0,this[i(554)]=void 0,this[i(712)]=void 0,this[i(564)]=void 0,this[i(646)]=void 0,this[i(596)]=void 0,this[i(523)]=void 0,this[i(555)]=void 0,this._samplesNetworkLatency=void 0,this[i(635)]=void 0,this[i(686)]=void 0,this._maxThroughput=void 0,this[i(495)]=void 0,this._sumVideoBytes=void 0,this[i(665)]=void 0,this[i(691)]=void 0,this._peerDiscoveryTime=void 0,this._updatePeersMetricsRefCounter=0}[Q(694)](i,r){let u=Q;this._offerInterval=r,this[u(489)][u(582)](i,Date[u(657)]())}[Q(532)](){let i=Q,r=Date[i(657)]()-this[i(575)]+15e3;this[i(489)][i(700)]((u,h)=>{uthis[i(670)][i(567)])&&(this._minPeersParallelUsed=this[i(670)][i(567)]),(this[i(606)]==null||this[i(606)]this[i(489)][i(567)])&&(this[i(505)]=this[i(489)][i(567)]),(this[i(698)]==null||this[i(698)] ","9GpUlYO","104IPOSCq","Fastest CDN is -> ","_cdnList","verbose","setChecked","24JEMpHh","204beaTAu","58862aEgqlw","active","5781670VdmHgb","getPeersWithContent","_cdnPriority","getLastResponse","CDN Candidates -> ","maximumRelativeDeltaForTrial","Original","noProbing","_getNotUsedCdn","indexOf","toFixed","delete","random","Current bandwidth for "," of ","getBandwidthInBits","downloadedChunks","_p2pLoader","size","get","setSwitchedCdns","useP2P","5804988JYGuSR","1041515oeEOmU","Estimated bandwidth based on ","7874320bYggRw","_qualityPriority","currentCDN","usedOnce","7YWYwIU","filter","Performing probe to ","getCDN","isChecked","3xAGmMn","now","sort","cdnPriority","getVideoBandwidth","push","trim","960756bxAkrQ"," Mbps","name","minimumDurationSinceLastUsedForTrialMilliseconds","banned","avgPingTime"," | estimated bandwidth ","_highetsSegmentBandwidth","661298sGrebl","isManifest","values","time","_getCdnToProbe","_bestScoredCdn","_bandwidthThreshold","getBandwidth","forEach","getInstance","debug","set"];return(Le=function(){return x})()}let et=Se;function Se(x,i){let r=Le();return(Se=function(u,h){return r[u-=253]})(x,i)}(function(x){let i=Se,r=x();for(;;)try{if(-parseInt(i(309))/1*(parseInt(i(311))/2)+-parseInt(i(268))/3*(parseInt(i(275))/4)+-parseInt(i(257))/5*(-parseInt(i(297))/6)+-parseInt(i(263))/7*(parseInt(i(259))/8)+-parseInt(i(303))/9*(parseInt(i(313))/10)+-parseInt(i(283))/11*(parseInt(i(310))/12)+-parseInt(i(304))/13*(-parseInt(i(256))/14)==619352)break;r.push(r.shift())}catch{r.push(r.shift())}})(Le);class Me{constructor(i,r,u,h,f,I){let L=Se;this._cdnList=i,this[L(299)]=h,this[L(289)]=r,this[L(282)]=u,this[L(330)]=f,this[L(296)]=I}[et(266)](i,r){let u=et,h=u(319),f=new Map,I=0,L=!0;if(this._cdnList[u(291)](function(P,le){let K=u;I+=P[K(329)],!P[K(279)]&&P[K(312)]&&(f[K(294)](le,P),L=!1)}),L&&(f.clear(),this[u(306)][u(291)](function(P,le){P[u(312)]&&(P.banned=!1,f.set(le,P))})),(this[u(330)][u(314)](i)[u(295)]===0||!i[u(255)])&&f[u(324)](u(298)),o.default[u(307)](c.BalancerTag,u(317)+f[u(331)]+u(327)+this[u(306)][u(331)]+u(302)+this[u(299)]),f[u(324)](u(319)),f[u(331)]==0)return h=u(319),!this._activeSwitching&&I>0&&(h=r[u(261)]),r[u(261)]=h,h[u(295)]===0?u(319):h;if(f.size>0)if(qe.default[u(292)]().usedSelectorAPIResponse(!0),qe.default[u(292)]().wasActiveSwitchingDecisionPerformed(this._activeSwitching!==void 0),this[u(299)]){let P=r[u(261)];switch(this[u(299)]){case p.m.qualityPriority:h=this[u(260)](i,f,r);break;case p.m.cdnPriority:h=this[u(315)](i,f,r);break;default:let le;le=this[u(288)](i,f),h=le===null?"":le[u(277)]}P!==""&&h!==u(319)&&P!==h&&qe.default[u(292)]()[u(254)](!0)}else{let P;P=this._bestScoredCdn(i,f),P===null||P[u(267)]()?h=I!==0||i[u(284)]?r.currentCDN:"":(h=P[u(277)],r[u(261)]=h,P[u(308)]())}return h&&h[u(274)]()!=""?h:u(319)}[et(260)](i,r,u){let h=et,f=this[h(296)][h(320)]?new Map(this[h(306)]):r;this._p2pLoader.getPeersWithContent(i).length===0&&f[h(324)]("P2P");let I=this._getCdnToProbe(f,p.m.qualityPriority,u[h(261)]);if(I)return o.default[h(293)](c.BalancerTag,h(265)+I.name),u.currentCDN=I[h(277)],I[h(277)];let L=this[h(321)](i);if(L)return o.default.debug(c.BalancerTag,"Selected "+L+" because not used yet"),L;let P="",le=0;return r[h(291)](K=>{let O=h,q=K[O(272)]();o.default[O(307)](c.BalancerTag,K[O(277)]+" reference bandwidth "+q/1e6+O(281)+K[O(290)]()+" highest segment bandwidth -> "+this[O(282)]/1e6),leO.getBandwidthInBits()/1e3>this._bandwidthThreshold&&!O[h(279)]);if(!le.some(O=>O[h(277)]===u[h(261)])){let O=r[h(253)](u.currentCDN);O&&(O.lastUpdatedState=3)}let K=(I=(f=le[0])===null||f===void 0?void 0:f[h(277)])!==null&&I!==void 0?I:"";if(K===""){let O=Array.from(r[h(285)]());O[h(270)]((q,E)=>E[h(290)]()-q.getBandwidth()),K=O[0][h(277)]}return u.currentCDN=K,K}[et(288)](i,r){let u=et;var h;return(h=Array[u(301)](r[u(285)]())[0])!==null&&h!==void 0?h:null}[et(321)](i){let r=et,u=[];for(let[I,L]of this._cdnList)L[r(312)]&&!L[r(279)]&&!L[r(262)]&&u[r(273)](L[r(277)]);if(this[r(330)].getPeersWithContent(i)[r(295)]===0||!i[r(255)]){let I=u[r(322)](r(298));I>-1&&u.splice(I,1)}if(u[r(295)]==0)return;let h=u[Math.floor(Math[r(325)]()*u[r(295)])],f=this._cdnList[r(253)](h);return f!=null&&(f[r(262)]=!0),h}[et(287)](i,r,u){let h=et,f=Array[h(301)](i[h(285)]())[h(264)](O=>O[h(277)]!==u);if(r===p.m.cdnPriority){f=[];for(let[O,q]of i){if(O===u)break;f[h(273)](q)}}f.sort((O,q)=>O[h(316)]()[h(286)]-q[h(316)]().time);let I=i[h(253)](u);if(!I)return;let L=I[h(280)],P=I.getBandwidthInBits(),le=r===p.m.cdnPriority?1e3*this._bandwidthThreshold:I[h(328)](),K=f[h(264)](O=>{let q=h;if(Date[q(269)]()-O[q(316)]()[q(286)]>=p.Zq[q(278)])return!0;let E=this[q(296)][q(320)]===!0,W=E?O[q(328)]():L*P/O.avgPingTime;return o.default[q(293)](c.BalancerTag,q(258)+(E?"last bandwidth":"latency")+q(300)+O[q(277)]+" is: "+(W/1e6)[q(323)](2)+q(276)),o.default.debug(c.BalancerTag,q(326)+u+": "+(P/1e6)[q(323)](2)+q(276)),(W-le)/le>=-p.Zq[q(318)]});return K[h(295)]===0?void 0:K.sort((O,q)=>O.getLastResponse()[h(286)]-q[h(316)]()[h(286)])[0]}}let b=F;function F(x,i){let r=ne();return(F=function(u,h){return r[u-=120]})(x,i)}(function(x){let i=F,r=x();for(;;)try{if(parseInt(i(206))/1+-parseInt(i(186))/2+parseInt(i(209))/3+-parseInt(i(162))/4*(-parseInt(i(154))/5)+-parseInt(i(161))/6*(parseInt(i(200))/7)+-parseInt(i(155))/8+-parseInt(i(139))/9==231641)break;r.push(r.shift())}catch{r.push(r.shift())}})(ne);var k=function(x,i,r,u){return new(r||(r=Promise))(function(h,f){let I=F;function L(K){try{le(u.next(K))}catch(O){f(O)}}function P(K){let O=F;try{le(u[O(172)](K))}catch(q){f(q)}}function le(K){let O=F;var q;K[O(143)]?h(K[O(168)]):(q=K[O(168)],q instanceof r?q:new r(function(E){E(q)})).then(L,P)}le((u=u[I(188)](x,i||[]))[I(185)]())})};function ne(){let x=["__awaiter","UNABLE TO GENERATE URL FOR PROBING CHECK ","testCdn","random","loader","lastUpdatedState","next","409012vWonDG","_performGetCheck","apply","authenticate_probes","usedOrProbed","_cdns","CDNLoader","values","_instance","highestPingTime","updateCdnList","getAvgPingTime","_afterCheck","open","4326wbMPXL","avgPingTime","provider","P2P","probeOnlyOnBanned","onCodavelFailedResponse","429919EtnMnD","verbose","Probing with range failed failed. Falling back to HEAD request on the next probe","1380459Skjmwa","lastPingTime","name","lastDownloadedSegment","GET","stopMonitor","addParametersToUrl","getInstance","timeBetweenCallsMilliseconds","callTimeoutMilliseconds","getMaxPingTime","BANNING CDN ","bannedTime","&rnpaw=","unbannedTime","includes","noProbing","getTime","getNextProbingSegment","isCodavel","setHeadOnBannedOnly","getIsEnabled","onerror","2984148OnlOLh","onCodavelSucessfullResponse","pingsTime","monitoring","done","addProbe","ontimeout","timestamp"," // ","Range","bannedRefTicToc","send","_isMonitoring","auth","newDownloadedSegment","1523320gneEvx","2877240RJJvCx","unBannedCount","getMinPingTime","monitor","status","updateUrl","654ZLbMHi","4MOeDUB","setLoader","isRangeCompatible","banned","floor","set","value","timeout","_performCheck","HEAD","throw","?rnpaw=","PINGTIME No available resources to test ","chunkExpirationProbingMs","now","onload","bannedCount"];return(ne=function(){return x})()}class te{constructor(){let i=b;this[i(141)]=new Map,this[i(142)]=new Map,this[i(151)]=!1,this[i(191)]=new Map,this.shouldMonitor=!0,this[i(204)]=!1,this[i(132)]=!1}static getInstance(i){let r=b;return!this._instance&&(this[r(194)]=new te),i!=null&&this[r(194)][r(163)](i),this[r(194)]}[b(163)](i){this.loader=i,this.shouldMonitor=!0}[b(196)](i){this[b(191)]=i}[b(153)](i){this[b(212)]=i}[b(121)](){this.shouldMonitor=!1}[b(136)](i=!1){this[b(204)]=i}setNoProbing(i=!1){this[b(132)]=i}[b(158)](i){return k(this,void 0,void 0,function*(){let r=F;this[r(191)]=i;let u=new Map;for(let h of i[r(193)]())u[r(167)](h[r(211)],new Re),this[r(141)]=u;if(!this[r(151)])for(this[r(151)]=!0;this.shouldMonitor;){let h=this[r(134)]();for(;!h;)yield new Promise(f=>setTimeout(f,1e3)),h=this.getNextProbingSegment();if(!this.noProbing&&this[r(212)])for(let f of this[r(191)].values())this[r(212)]&&f[r(211)]!==r(203)&&(yield this[r(181)](f,this.lastDownloadedSegment),yield new Promise(I=>setTimeout(I,p.wc[r(124)])));yield new Promise(f=>setTimeout(f,p.wc.timeBetweenBurstsMilliseconds))}})}[b(134)](){let i=b;if(!this.lastDownloadedSegment)return null;let r=this.lastDownloadedSegment;return this[i(212)].timestamp?new Date()[i(133)]()-this.lastDownloadedSegment[i(146)]=200&&f[O(159)]<400)q=1;else if(f[O(159)]>=200&&f[O(159)]<300){if(r[O(165)]){let E=Date[O(176)]();r[O(128)]+=E-r[O(149)],r[O(149)]=E,r[O(165)]=!1,r[O(156)]++}r.failures=0,o.default[O(207)](c.BalancerTag,"HEALTHY CDN "+u+" "+f[O(159)]),r[O(184)]=0,r.isCodavel()&&L[O(183)]!=null&&L.loader[O(192)][O(140)]()}else if(f[O(159)]>=400){if(o.default[O(207)](c.BalancerTag,O(127)+u+" "+f[O(159)]),r[O(152)]!=null&&r[O(152)].enabled&&!r[O(152)][O(189)]){if(f[O(159)]!=403&&!r[O(165)]){let E=Date[O(176)]();r[O(130)]+=E-r.bannedRefTicToc,r[O(149)]=E,r.banned=!0,r[O(178)]++}}else if(!r[O(165)]){let E=Date.now();r.unbannedTime+=E-r[O(149)],r[O(149)]=E,r[O(165)]=!0,r[O(178)]++}r[O(184)]=1,r[O(135)]()&&L[O(183)]!=null&&L.loader[O(192)][O(205)](1)}q===0&&L[O(198)](I,r),P(q)}},f[K(138)]=function(){let O=K;if(o.default[O(207)](c.BalancerTag,"BANNING CDN "+u+" "+f[O(159)]),r[O(165)]){let q=Date.now();r[O(128)]+=q-r[O(149)],r.bannedRefTicToc=q}else{let q=Date[O(176)]();r[O(130)]+=q-r[O(149)],r[O(149)]=q,r[O(165)]=!0,r[O(178)]++}r[O(184)]=2,r[O(135)]()&&L[O(183)]!=null&&L[O(183)].CDNLoader.onCodavelFailedResponse(2),P(0)},f[K(145)]=function(){let O=K;if(o.default.verbose(c.BalancerTag,"BANNING CDN DUE TO TIMEOUT "+u+" "+f[O(159)]),r[O(165)]){let q=Date.now();r[O(128)]+=q-r[O(149)],r.bannedRefTicToc=q}else{let q=Date[O(176)]();r[O(130)]+=q-r.bannedRefTicToc,r[O(149)]=q,r[O(165)]=!0,r[O(178)]++}r[O(184)]=2,r[O(135)]()&&L[O(183)]!=null&&L[O(183)][O(192)][O(205)](2),P(0)},f[K(199)](i,u),i===K(120)&&f.setRequestHeader(K(148),"bytes=0-0"),f[K(169)]=p.wc[K(125)],f[K(150)]()})})}}class ye{constructor(i,r){this.columns=["CDN","Provider","# of requests","% of failed req.","Traffic served (MB)"],this.requestsPerformed=0,this.trafficServedInBytes=0,this.failedRequests=0,this.name=i,this.provider=r}setRequestsPerformed(i){this.requestsPerformed=i}setTrafficServerInBytes(i){this.trafficServedInBytes=i}setFailedRequests(i){this.failedRequests=i}getFailedRequestsPercentage(){let i=this.requestsPerformed+this.failedRequests;return i!==0?this.failedRequests/i*100:0}generateRow(){let i=this.requestsPerformed!==0?this.failedRequests/this.requestsPerformed*100:0;i=this.requestsPerformed===0&&this.failedRequests>0?100:i;let r="";return i>70?r="red":i>30&&(r="yellow"),{row:"%c"+[this.name,this.provider,this.requestsPerformed+this.failedRequests,i.toFixed(0),(this.trafficServedInBytes/1048576).toFixed(2)].map(u=>u.toString().padEnd(18)).join(""),color:r}}}var ce=e(61);let Pe=ht;(function(x){let i=ht,r=x();for(;;)try{if(parseInt(i(656))/1*(-parseInt(i(528))/2)+parseInt(i(707))/3+parseInt(i(592))/4+parseInt(i(639))/5*(parseInt(i(571))/6)+parseInt(i(483))/7+-parseInt(i(670))/8+-parseInt(i(468))/9==206247)break;r.push(r.shift())}catch{r.push(r.shift())}})(kt);function ht(x,i){let r=kt();return(ht=function(u,h){return r[u-=437]})(x,i)}function kt(){let x=["2908350gjevST","lastUsedCdn","addResp","__awaiter","auth_action_info","forEach","setSettings","P2P","onFailedApiResponse","incrementSwitchesDueToQuality","Disabled","score","isDev","codavelProvidersState","discarded","2215682WOInzA","from","status","activeSwitchingPriority","finalUrl","isEnabled","test","updateUrl","DECISION_FINISHED","Products","setResourceInfo","rendition","codavelSwitchesDueToQuality","activeSwitching","profileName","timeBetweenBurstsMilliseconds","_lastChunkTime","updateAvailability","FAILED -> ","length","auth","codavelUnbanTime","codavelAllBanned","setLogLevel","min","_activeCdnRequests","onCodavelFailedResponse","indexOf","monitoringStarted","startsWith","getAccountCode","signed_url_info","_bandwidthThreshold","host","Error parsing Balancer API response for signed URL: ","then","_resource","signManifestUsingApi","chunkExpirationProbingMs","apiCallErrors","set","_method","parse","debug","usedOnce","102GEnCfU","LAST_USED_CDN","domainWhitelistRegex","getSignedUrlFromApi","customData","getFastDataService","totalFail","getIsLive","VERBOSE","codavelSwitchesDueToErrors","_secure","diagnosticTool","timeBetweenCallsMilliseconds","warn","filter","cdnName","BALANCER","apiHost","_probingInfo","Original","bandwidth","verbose","latencyProbe","_activeRequests","cleanCdnList","cdnPriority","bannedCount","includes","_totalDownloadedBytes","_options","formatParameters","get","_failedRequests","getForceDecision","codavelBanRefTicToc","Origin","providers","CDN priority","New url -> ","throw","noProbing","processedApiCall","token","6DBxFXZ","p2pAvailable","progressDownloadedBytes","dnsEnabled","Error: unable to obtain API response for signed URL (status: ","getActiveRequests","updateProgressStats","resource","?orresource=","downloadedBytes","clear","getStats","delay","minimumDurationSinceLastUsedForTrialMilliseconds","join","https","replace","BalancerVariables","value","cdnBalanceMethod","_chunkCount","1130144XnRbol","absolute","bannedRefTicToc","Error updating url -> ","push","delete","Updated","_probeOnBanned","bucketName","codavelBanCount","match","parser","qualityPriority","_cdnInstantBandwith","isValidUrl","Stripped URL: ","announcedCdns","duration","getSegmentDuration","concat","unbannedTime","isLive","getCdnObject","firstHugeChunkSize","balanceManifests","codavelSwitches","authenticate_probes","_activeSwitching","codavelBanTime","values","provider","updateSettings","apiCallResponses","_cdnList","trunc","currentRenditionPos","stripPathRegex","isNotOnWhitelist","onCodavelSucessfullResponse","incrementSwitchesDueToErrors","isManifest","_firstRequestTime","priorityCdn","Invalid regex expression ","banned","enabled","name","676915pXefMw","default","callTimeoutMilliseconds","apply","failures","isMasterPlaylist","bannedTime","open","_responseUUID","_highestRenditionBandwidth","https://","_cdnPeakBandwidth","active","isNotOnCdnList","getBucket","response","downloadedChunks","2011IEoPUS"," -> banned ","append_to_url"," (regex: ","next","true","downloadMillis","forceDecisionCall","_highestChunkBandwidth","getRouteAndFilename"," because its host is not one of the currently active CDN hosts: [","now","STREBOOS","url","2488984EROiyH","getCdnList","weight","decisionReloadIntervalPerManifestMilliseconds","downloadedBytesForScoring","decisionCallWaitTime","cdnBWEstimation","max","downloadTimeForScoring","_retries","getMaxBandwidth","changeStatusCDN","updateCodavelBanTimes","], nor one of the whitelisted domains [","signUrl","lastUpdatedState","domainWhitelist","minRequestSizeForBwEstimateKB","price","getInstance","maxBandwidth","STREBOPX","] (balancerManifest: ","origRes","fileName","lastPreferedVideoBandwidth","maximumRelativeDeltaForTrial","renditionCount","map","setNoProbing","path","stripPathForDomainRegex","pathName","_lastChunksLapse","updateCDNStatsOnFailure","getSecure","setActiveSwitchingEnabled","625908UMesxV","segmentDuration","bolinaAvailable","&advanceproxy=true","codavelUnbanCount","setHeadOnBannedOnly","probeOnlyOnBanned","initializated","maxApiCallResponseTime","failed","monitor","incrementSwitchesDueToConnectivity","changeCDN","_p2pLoader","_cdnLastInstantBandwith"," | ","send","signed_url","http://","retries","onCodavelSwitched","minApiCallResponseTime","&orresource= ","getCommonVariable","route","updateCDNStatsOnSuccess","size","isCodavel","avgApiCallResponseTime","getCDN","currentRenditionBandwidth","lastCodavelRequestStatus","incrementSwitches","sign_all_requests","_noProbing","Quality priority","setMaxBandwidth","lastMeasurementWeight"];return(kt=function(){return x})()}class bt extends d{constructor(i,r,u,h){let f=Pe;super(),this._bandwidthThreshold=p.Ow[f(640)],this[f(625)]=new Map,this._activeCdnRequests=new Map,this[f(551)]=new Map,this[f(560)]=0,this[f(591)]=0,this[f(546)]={currentCDN:""},this[f(664)]=0,this[f(648)]=0,this[f(444)]=new Map,this._cdnInstantBandwith=new Map,this[f(650)]=new Map,this[f(679)]=new Map,this[f(556)]=0,this[f(633)]=0,this[f(499)]=0,this[f(703)]=0,this.currentRenditionBandwidth=0,this.currentRenditionPos=0,this[f(697)]=0,this[f(437)]=!1,this[f(511)]=!1,this[f(505)]=!1,this[f(601)]=0,this.codavelUnbanCount=0,this.codavelBanTime=0,this[f(504)]=0,this.codavelSwitches=0,this.codavelSwitchesDueToConnectivity=0,this.codavelSwitchesDueToErrors=0,this.codavelSwitchesDueToQuality=0,this[f(562)]=Date[f(667)](),this.lastCodavelRequestStatus=0,this[f(481)]=new Map,this.processedApiCall=!1,this.avgApiCallResponseTime=void 0,this[f(451)]=void 0,this[f(438)]=void 0,this.apiCallErrors=void 0,this[f(624)]=void 0,this[f(572)]=!1,this[f(709)]=!1,this[f(486)]="",this[f(634)]="",this[f(608)]=0,this.segmentDuration=void 0,this[f(557)]=i,this[f(519)]=r,this[f(443)]=u,this[f(545)]=h}[Pe(705)](){return this[Pe(538)]!=null&&this._secure}[Pe(576)](){return this[Pe(551)]}gotEmptyResponse(){let i=Pe;this[i(437)]=!1,this[i(625)][i(581)]()}setSettings(i,r){let u=Pe;var h,f,I,L,P,le,K,O,q,E,W,Ae,N,De,Ke,ge,tt,$e,ft,ut,Y,Ce,ot,me,pe,Ue,nt,lt,yt,Ct,ei,$t,wt;if(this.initializated)return this[u(623)](i,r);this[u(625)]=new Map;try{i?.[u(526)]===!0&&o.default[u(506)](o.LogLevel[u(536)]);let di=_.isValidUrl((h=this[u(557)][u(578)])!==null&&h!==void 0?h:"")?_[u(665)](this[u(557)][u(578)]):{route:"",fileName:""};this[u(538)]=((I=(f=this._options[u(578)])===null||f===void 0?void 0:f[u(510)](u(649)))!==null&&I!==void 0?I:-1)>-1||void 0,this._resource[u(694)]=di[u(694)],this._resource.route=di[u(454)],this[u(647)]=i.UUID,this[u(524)]=i.cdnBalanceMethod,this._activeSwitching=i[u(496)],this[u(515)]=(L=i.bandwidthThreshold)!==null&&L!==void 0?L:p.Ow[u(640)],this[u(599)]=i[u(713)],this[u(464)]=i[u(568)];let ui=i[u(496)]!==void 0;te[u(689)]().setNoProbing((P=this[u(464)])!==null&&P!==void 0?P:this[u(557)][u(568)]),this[u(619)]===p.m.cdnPriority?te.getInstance().setHeadOnBannedOnly((le=this._probeOnBanned)!==null&&le!==void 0?le:this[u(557)].probeOnlyOnBanned):te.getInstance()[u(712)](!1),qe.default.getInstance()[u(474)]((K=i[u(532)])===null||K===void 0?void 0:K.diagnosticTool),qe.default[u(689)]()[u(706)](ui),p.Zq.lastMeasurementWeight=(E=(q=(O=i[u(532)])===null||O===void 0?void 0:O[u(676)])===null||q===void 0?void 0:q[u(467)])!==null&&E!==void 0?E:p.Zq[u(467)],p.Zq[u(696)]=(N=(Ae=(W=i[u(532)])===null||W===void 0?void 0:W[u(676)])===null||Ae===void 0?void 0:Ae[u(696)])!==null&&N!==void 0?N:p.Zq[u(696)],p.Zq.minimumDurationSinceLastUsedForTrialMilliseconds=(ge=(Ke=(De=i.customData)===null||De===void 0?void 0:De[u(676)])===null||Ke===void 0?void 0:Ke[u(584)])!==null&&ge!==void 0?ge:p.Zq[u(584)],p.wc[u(641)]=(ft=($e=(tt=i[u(532)])===null||tt===void 0?void 0:tt[u(550)])===null||$e===void 0?void 0:$e[u(641)])!==null&&ft!==void 0?ft:p.wc[u(641)],p.wc[u(498)]=(Ce=(Y=(ut=i.customData)===null||ut===void 0?void 0:ut[u(550)])===null||Y===void 0?void 0:Y.timeBetweenBurstsMilliseconds)!==null&&Ce!==void 0?Ce:p.wc[u(498)],p.wc[u(540)]=(pe=(me=(ot=i[u(532)])===null||ot===void 0?void 0:ot[u(550)])===null||me===void 0?void 0:me[u(540)])!==null&&pe!==void 0?pe:p.wc[u(540)],p.df[u(675)]=(Ue=i[u(675)])!==null&&Ue!==void 0?Ue:p.df.decisionCallWaitTime,p.df.decisionReloadIntervalPerManifestMilliseconds=(nt=i[u(673)])!==null&&nt!==void 0?nt:p.df[u(673)],p._C.minRequestSizeForBwEstimateKB=(lt=i[u(687)])!==null&<!==void 0?lt:p._C[u(687)],p.Zq[u(521)]=($t=(ei=(Ct=(yt=i.customData)===null||yt===void 0?void 0:yt[u(550)])===null||Ct===void 0?void 0:Ct[u(521)])!==null&&ei!==void 0?ei:this[u(557)].chunkExpirationProbingMs)!==null&&$t!==void 0?$t:p.Zq[u(521)];let At=!1,pt=[];pt=ui?((wt=i[u(564)])===null||wt===void 0?void 0:wt.concat(i[u(482)]||[]))||[]:i[u(564)]||[],qe.default.getInstance()[u(552)](),this._p2pLoader[u(488)]()&&(this[u(508)][u(475)]=0,this[u(625)][u(523)]("P2P",this[u(443)][u(614)]())),this[u(572)]=this[u(443)].isEnabled(),this[u(619)]==u(604)?this[u(486)]=u(465):this[u(619)]==u(553)?this.activeSwitchingPriority=u(565):this[u(486)]=u(478);let Zt=!1;pt.forEach(Xt=>{let xt=u,Pi=Xt[xt(479)]||0,_i=_[xt(606)](Xt[xt(669)])?_[xt(665)](Xt[xt(669)])[xt(454)]:"";At=At||_i===r;let qn=new ee(Xt[xt(622)],Xt[xt(638)],Xt.host,Xt[xt(700)],_i,Pi,_i===r,Xt.price,Xt.weight,Xt.absolute,Xt[xt(574)],Xt[xt(503)],i[xt(603)]);qn.host=Xt[xt(516)],qe.default.getInstance().addCdn(Xt[xt(638)],new ye(Xt[xt(638)],Xt[xt(622)])),this[xt(625)][xt(523)](Xt.name,qn),this.codavelProvidersState=new Map(Array[xt(484)](this[xt(625)][xt(621)]())[xt(542)](In=>In[xt(457)]())[xt(698)](In=>[In[xt(638)],In[xt(636)]])),this[xt(682)](),this[xt(508)][Xt[xt(638)]]=0,!Zt&&(this.priorityCdn=Xt.name,Zt=!0)})}catch(di){o.default[u(541)](c.BalancerTag,di)}this[u(608)]=this[u(625)][u(456)]-(this[u(443)][u(488)]()?1:0),this[u(437)]=!0}[Pe(623)](i,r){let u=Pe;var h,f,I,L,P,le,K,O,q,E,W,Ae,N,De,Ke,ge,tt,$e,ft,ut,Y,Ce,ot,me,pe,Ue,nt,lt,yt;i?.[u(526)]===!0&&o.default[u(506)](o.LogLevel.VERBOSE);let Ct=i[u(496)]!==void 0;this[u(524)]=i[u(590)],this[u(619)]=i[u(496)],this[u(599)]=i[u(713)],this._noProbing=i[u(568)],this[u(572)]=this._p2pLoader.isEnabled(),this[u(619)]=="qualityPriority"?this[u(486)]="Quality priority":this[u(619)]=="cdnPriority"?this[u(486)]=u(565):this.activeSwitchingPriority=u(478),te[u(689)]()[u(699)]((h=this[u(464)])!==null&&h!==void 0?h:this._options.noProbing),this._activeSwitching===p.m[u(553)]?te[u(689)]()[u(712)]((f=this[u(599)])!==null&&f!==void 0?f:this[u(557)][u(713)]):te.getInstance().setHeadOnBannedOnly(!1),qe.default[u(689)]()[u(474)]((I=i.customData)===null||I===void 0?void 0:I[u(539)]),qe.default[u(689)]()[u(706)](Ct),p.Zq[u(467)]=(le=(P=(L=i[u(532)])===null||L===void 0?void 0:L[u(676)])===null||P===void 0?void 0:P.lastMeasurementWeight)!==null&&le!==void 0?le:p.Zq[u(467)],p.Zq[u(696)]=(q=(O=(K=i.customData)===null||K===void 0?void 0:K.cdnBWEstimation)===null||O===void 0?void 0:O[u(696)])!==null&&q!==void 0?q:p.Zq[u(696)],p.Zq[u(584)]=(Ae=(W=(E=i[u(532)])===null||E===void 0?void 0:E[u(676)])===null||W===void 0?void 0:W.minimumDurationSinceLastUsedForTrialMilliseconds)!==null&&Ae!==void 0?Ae:p.Zq[u(584)],p.wc[u(641)]=(Ke=(De=(N=i[u(532)])===null||N===void 0?void 0:N[u(550)])===null||De===void 0?void 0:De[u(641)])!==null&&Ke!==void 0?Ke:p.wc.callTimeoutMilliseconds,p.wc[u(498)]=($e=(tt=(ge=i[u(532)])===null||ge===void 0?void 0:ge[u(550)])===null||tt===void 0?void 0:tt[u(498)])!==null&&$e!==void 0?$e:p.wc[u(498)],p.wc[u(540)]=(Y=(ut=(ft=i.customData)===null||ft===void 0?void 0:ft[u(550)])===null||ut===void 0?void 0:ut[u(540)])!==null&&Y!==void 0?Y:p.wc[u(540)],p.df[u(675)]=(Ce=i.decisionCallWaitTime)!==null&&Ce!==void 0?Ce:p.df[u(675)],p.df[u(673)]=(ot=i[u(673)])!==null&&ot!==void 0?ot:p.df[u(673)],p._C.minRequestSizeForBwEstimateKB=(me=i[u(687)])!==null&&me!==void 0?me:p._C.minRequestSizeForBwEstimateKB,p.Zq.chunkExpirationProbingMs=(lt=(nt=(Ue=(pe=i[u(532)])===null||pe===void 0?void 0:pe[u(550)])===null||Ue===void 0?void 0:Ue[u(521)])!==null&&nt!==void 0?nt:this[u(557)][u(521)])!==null&<!==void 0?lt:p.Zq.chunkExpirationProbingMs;let ei=!1,$t=((yt=i[u(564)])===null||yt===void 0?void 0:yt[u(611)](i[u(482)]||[]))||[],wt=new Map,di=!1;$t[u(473)](At=>{let pt=u,Zt=this[pt(625)].get(At[pt(638)]);if(Zt){Zt.active=!0,Zt[pt(516)]!=At[pt(516)]&&(Zt.host=At.host),Zt[pt(700)]!=At[pt(700)]&&(Zt[pt(700)]=At[pt(700)]);let Xt=_[pt(665)](At[pt(669)])[pt(454)];Zt[pt(669)]!=Xt&&(Zt[pt(669)]=Xt),Zt[pt(503)]!=At[pt(503)]&&(Zt[pt(503)]=At.auth),wt[pt(523)](At[pt(638)],Zt)}else{let Xt=At[pt(479)]||0,xt=_[pt(665)](At.url).route;ei=ei||xt===r;let Pi=new ee(At.provider,At[pt(638)],At.host,At[pt(700)],xt,Xt,xt===r,At[pt(688)],At[pt(672)],At[pt(593)],At[pt(574)],At[pt(503)],i[pt(603)]);this[pt(625)][pt(523)](At[pt(638)],Pi),wt[pt(523)](At[pt(638)],Pi),this._activeCdnRequests[At[pt(638)]]=0}!di&&(this[pt(634)]=At[pt(638)],di=!0)}),this[u(608)]=this[u(625)][u(456)]-(this[u(443)][u(488)]()?1:0),this[u(625)]=wt;let ui=$t.map(At=>At.name);this._cdnList[u(473)](At=>{let pt=u;ui[pt(555)](At[pt(638)])||At[pt(622)]=="ORIGINAL"||At[pt(622)]==pt(475)||(At.active=!1)}),this[u(481)]=new Map(Array[u(484)](this[u(625)][u(621)]()).filter(At=>At.isCodavel())[u(698)](At=>[At[u(638)],At[u(636)]])),this[u(682)]()}startMonitoring(){let i=Pe;this[i(619)]&&(this[i(511)]?te[i(689)]().updateCdnList(this[i(625)]):(this[i(511)]=!0,te[i(689)]()[i(440)](this[i(625)])))}[Pe(704)](i,r){let u=Pe;if(this[u(508)][i]<1)return;this.updateProgressStats();let h=this[u(625)][u(559)](i);if(this._activeCdnRequests[i]--,r[u(449)]==0&&this[u(560)]++,h!=null&&h[u(449)]--,h&&!h[u(636)]){if(h[u(636)]){let f=Date[u(667)]();h[u(645)]+=f-h[u(594)],h.bannedRefTicToc=f}else{let f=Date[u(667)]();h[u(612)]+=f-h[u(594)],h[u(594)]=f,h[u(636)]=!0,h[u(554)]++}h[u(636)]=!0,h.bannedCount++}h&&o.default[u(549)](c.BalancerTag,u(501)+h[u(638)]+u(657)+h[u(636)]),h&&(r[u(439)]=!0,h.addResp(r),h[u(643)]++,h.totalFail++,h[u(527)]=!0),this[u(481)]=new Map(Array[u(484)](this[u(625)][u(621)]())[u(542)](f=>f[u(457)]())[u(698)](f=>[f[u(638)],f[u(636)]])),this[u(682)]()}removeActiveSegment(i){let r=Pe;this[r(551)].delete(i.id),this._activeCdnRequests[i[r(543)]]--,this[r(591)]++}[Pe(455)](i){let r=Pe;var u,h;if(i[r(644)]&&(this[r(708)]=i[r(708)]),this[r(577)](),i[r(573)]!=null){if(this[r(556)]=this[r(556)]+i[r(456)],i[r(609)]!=0){let f=8*i[r(456)]/i[r(609)];this._highestChunkBandwidthf[r(457)]())[r(698)](f=>[f[r(638)],f.banned])),this[r(682)]()}[Pe(671)](){return this[Pe(625)]}[Pe(577)](){let i=Pe,r=new Map,u=new Map;this._activeRequests[i(473)](f=>{let I=i,L=f.instantBandwidth,P=f[I(543)],le=r[I(559)](P);le==null&&(le=0),le+=L,r.set(P,le)}),this[i(605)]=r,r.forEach((f,I)=>{let L=i,P=this[L(650)][L(559)](I);(P==null||P{f!=0&&this[i(444)].set(I,f)});let h=0;u[i(473)]((f,I)=>{h+=f})}[Pe(531)](i,r,u){let h=Pe;var f,I,L;let P=n.default[h(689)]()[h(533)]().getAccountCode(),le=(f=this._options[h(497)])!==null&&f!==void 0?f:"",K=(I=this[h(557)][h(600)])!==null&&I!==void 0?I:h(640),O=(this[h(557)][h(480)],(L=this[h(557)][h(613)])!==null&&L!==void 0&&L),q=r,E=new XMLHttpRequest,W=q+"/"+P+"/"+(this[h(557)][h(497)]?le+"/":"")+h(684);W=W[h(587)]("//","/"),W=h(649)+W;let Ae={resource:i,live:""+O,extended:h(661),npawPluginInfo:h(661),originCode:this._options[h(600)]!==null&&this[h(557)].bucketName!==void 0?K:"",v:n.default.getPluginVersion()};if(E[h(646)]("GET",W+_[h(558)](Ae),!1),E[h(446)](),E[h(485)]>=200&&E.status<=300)try{if(E[h(654)]){let N=JSON[h(525)](E[h(654)]);for(let De of N[h(564)])if(De.name===u&&De[h(503)]&&De[h(503)][h(514)])return De[h(503)][h(514)][h(447)]}}catch(N){o.default.debug(c.BalancerTag,h(517)+N)}else o.default[h(526)](c.BalancerTag,h(575)+E[h(485)]+")")}[Pe(490)](i,r=!1,u){let h=Pe;var f,I,L,P,le,K,O,q,E,W,Ae,N,De,Ke;let ge=this[h(652)](i.url),tt=this[h(629)](i[h(669)]),$e=i[h(632)]&&!i[h(439)],ft=ge&&tt,ut=(f=this[h(557)][h(616)])!==null&&f!==void 0&&f||(I=this[h(557)].signManifestUsingApi)!==null&&I!==void 0&&I;if(ut){if(ge&&tt){let pe=Array[h(484)](this[h(625)][h(621)]())[h(698)](nt=>'"'+nt[h(516)]+'"'),Ue=((L=this[h(557)].domainWhitelist)!==null&&L!==void 0?L:[])[h(611)]((P=this[h(557)][h(530)])!==null&&P!==void 0?P:[])[h(698)](nt=>'"'+nt+'"');return void o.default[h(526)](c.BalancerTag,"Bypassed "+i.url+h(666)+pe[h(585)](",")+h(683)+Ue[h(585)](",")+h(692)+ut+")")}}else if($e||ft){if(ge&&tt){let pe=Array[h(484)](this[h(625)].values()).map(nt=>'"'+nt.host+'"'),Ue=((le=this._options[h(686)])!==null&&le!==void 0?le:[])[h(611)]((K=this[h(557)][h(530)])!==null&&K!==void 0?K:[]).map(nt=>'"'+nt+'"');o.default[h(526)](c.BalancerTag,"Bypassed "+i.url+" because its host is not one of the currently active CDN hosts: ["+pe[h(585)](",")+"], nor one of the whitelisted domains ["+Ue[h(585)](",")+"]")}return}if(u){let pe=this[h(625)][h(559)](u);if(pe){let Ue=(i[h(669)][h(512)](h(586))?h(649):h(448))+pe[h(516)],nt=!1;if(this._options[h(701)])for(let lt of this._options[h(701)])new RegExp(lt).test(Ue)&&(o.default[h(549)](c.BalancerTag,"Found a match for stripping path...(cdn: "+u+", url: "+i.url+")"),nt=!0);if(pe.provider==="STREBOOS"||pe[h(622)]===h(691)?Ue+="/"+n.default[h(689)]()[h(533)]()[h(513)]()+"/"+((O=this[h(557)][h(497)])!==null&&O!==void 0?O:h(640))+"/"+((q=this[h(557)][h(600)])!==null&&q!==void 0?q:h(640)):!nt&&(Ue+=pe.path),Ue+=i[h(702)],(pe[h(622)]==="STREBOOS"||pe[h(622)]===h(691))&&(Ue+=Ue.includes("?")?h(452)+i[h(693)]:h(579)+i[h(693)]),pe.provider==="STREBOPX"&&(Ue+=h(710)),pe[h(503)]!=null&&pe[h(503)][h(637)]&&(!r||r&&pe[h(503)][h(618)])){if(pe[h(503)][h(472)]===h(658)){let lt=((E=pe[h(503)][h(514)])===null||E===void 0?void 0:E[h(570)])||"";Ue+=Ue.includes("?")?"&"+lt:"?"+lt}else if(pe[h(503)].auth_action_info===h(463)){let lt=this[h(531)](Ue,this[h(545)],pe[h(638)]);lt&&(Ue=lt)}}if(nt&&this[h(557)][h(628)]){let lt=new RegExp(this._options[h(628)]),yt=Ue[h(602)](lt);if(yt){let Ct=yt[0];Ue=Ue[h(587)](Ct,"/"),o.default[h(549)](c.BalancerTag,h(607)+Ue)}else o.default[h(549)](c.BalancerTag,"No matching path found to strip in URL: "+Ue+h(659)+this[h(557)][h(628)]+")")}return Ue}}let Y=new Map;Y=new Map(this._cdnList);let Ce="",ot="",me=((W=i[h(494)])===null||W===void 0?void 0:W[h(548)])||0;for(this[h(648)]P[f(638)]!==f(475));return L[f(502)]>0?L[0][f(669)]+this[f(519)][f(694)]:this._resource.route+this[f(519)][f(694)]},new((u=void 0)||(u=Promise))(function(f,I){let L=ht;function P(O){let q=ht;try{K(h[q(660)](O))}catch(E){I(E)}}function le(O){let q=ht;try{K(h[q(567)](O))}catch(E){I(E)}}function K(O){let q=ht;var E;O.done?f(O[q(589)]):(E=O[q(589)],E instanceof u?E:new u(function(W){W(E)}))[q(518)](P,le)}K((h=h[L(642)](i,r||[]))[L(660)]())});var i,r,u,h}[Pe(582)](){let i=Pe,r=[],u=0,h=0,f=0,I=0,L=0,P=0,le=0,K=0;return this[i(625)][i(473)](O=>{let q=i;if(O[q(638)]===q(475))return;O[q(500)]();let E=(O[q(580)]||0)/((O.downloadMillis||1)/1e3)*8,W=(O[q(674)]||0)/((O[q(678)]||1)/1e3)*8;E==null&&(E=0);let Ae=this[q(556)]/((Date[q(667)]()-this[q(633)])/1e3)*8,N=this[q(650)][q(559)](O[q(638)])||0,De=this[q(605)][q(559)](O.name)||0,Ke=this[q(444)][q(559)](O.name)||0;r[q(596)]({downloadedBytes:O[q(580)],downloadedChunks:O[q(655)],bandwidth:Math.trunc(E),instantBandwidth:Math[q(626)](De),lastInstantBandwidth:Math[q(626)](Ke),peakBandwidth:Math[q(626)](N),failures:O[q(643)],totalFailures:O[q(534)],retries:O[q(449)],downloadTime:O[q(662)],provider:O[q(622)],profileName:O.name,isActive:O[q(651)],ptb:Ae,usedOnce:O[q(527)],hugeChunks:O.hugeChunks,firstHugeChunkSize:O[q(615)],lastChunksLapse:this[q(703)],maxBandwidth:O.maxBandwidth,banned:O[q(636)],lastBandwidth:O[q(695)],scoringBandwidth:W}),u+=O.downloadedBytes,h+=E,f+=N,I+=De,L+=O[q(655)],P+=O[q(662)],le+=O[q(643)],K+=O[q(449)]}),{responseUUID:this[i(647)],totalDownloadedBytes:u,totalDownloadedChunks:L,totalDownloadedTime:P,totalFailures:le,totalRetries:K,activeSwitching:this[i(619)]||"",mode:this._method||"",totalBandwidth:Math[i(626)](h),totalInstantBandwidth:Math[i(626)](I),totalPeakBandwidth:Math[i(626)](f),cdns:r,currentRenditionBandwidth:this[i(460)],currentRenditionPos:this[i(627)],renditionCount:this[i(697)]}}[Pe(681)](i,r){let u=Pe,h=!1,f=0;return!r&&this[u(625)][u(473)](I=>{I.active&&f++}),this[u(625)][u(473)](I=>{let L=u;I[L(638)]===i&&(r&&(I[L(651)]=!0,h=!0),!r&&f>1&&(I[L(651)]=!1,h=!0))}),h}[Pe(466)](i,r){let u=Pe,h=this._cdnList[u(559)](i);return h!=null&&(h[u(690)]=r,this.emit(p.yl[u(598)],{loader:this}),!0)}[Pe(680)](i){let r=Pe,u=this._cdnList[r(559)](i);return u!=null?u.maxBandwidth:0}[Pe(682)](){let i=Pe,r=Date.now();if(this[i(481)].size===0)return void(this.codavelBanRefTicToc=r);let u=Array[i(484)](this[i(481)][i(621)]()).every(h=>h);u!==this[i(505)]?u?(this[i(504)]+=r-this[i(562)],this[i(562)]=r,this[i(601)]++):(this[i(620)]+=r-this[i(562)],this[i(562)]=r,this[i(711)]++):u?(this.codavelBanTime+=r-this[i(562)],this[i(562)]=r):(this.codavelUnbanTime+=r-this[i(562)],this.codavelBanRefTicToc=r),this[i(505)]=u}resetOnPing(){let i=Pe;this[i(620)]=0,this[i(504)]=0,this.codavelBanRefTicToc=Date[i(667)](),this[i(569)]=!1,this[i(458)]=void 0,this[i(451)]=void 0,this[i(438)]=void 0,this[i(522)]=void 0,this[i(624)]=void 0}[Pe(450)](){let i=Pe;this[i(617)]++,this[i(461)]==2?this.codavelSwitchesDueToConnectivity++:this.lastCodavelRequestStatus==1?this[i(537)]++:this[i(461)]==3&&this[i(495)]++}[Pe(630)](){this[Pe(461)]=0}[Pe(509)](i){this[Pe(461)]=i}[Pe(476)](){let i=Pe;this[i(522)]==null?this[i(522)]=1:this.apiCallErrors+=1,this[i(569)]=!0}onSucessfullApiResponse(i){let r=Pe;this[r(624)]==null?this.apiCallResponses=1:this.apiCallResponses+=1,this[r(451)]==null?this[r(451)]=i:this[r(451)]=Math[r(507)](this[r(451)],i),this[r(458)]==null?this[r(458)]=i:this[r(458)]=this.avgApiCallResponseTime+(i-this.avgApiCallResponseTime)/this[r(624)],this[r(438)]==null?this[r(438)]=i:this[r(438)]=Math[r(677)](this[r(438)],i),this[r(569)]=!0}[Pe(653)](){let i=Pe;return this[i(557)][i(600)]}[Pe(535)](){let i=Pe;return this[i(557)][i(613)]}[Pe(561)](){let i=Pe;return this[i(557)][i(663)]}[Pe(610)](){return this[Pe(708)]}[Pe(652)](i){let r=Pe,u=!1,h=new URL(i);for(let f of this[r(625)][r(621)]())if(f[r(516)]===h[r(516)]){u=!0;break}return!u}[Pe(629)](i){let r=Pe;var u,h;let f=!1,I=new URL(i);for(let L of(u=this[r(557)][r(530)])!==null&&u!==void 0?u:[])try{if(new RegExp(L)[r(489)](I.host)){f=!0;break}}catch{o.default[r(526)](c.BalancerTag,r(635)+L)}for(let L of(h=this._options[r(686)])!==null&&h!==void 0?h:[]){if(f)break;if(L===I[r(516)]){f=!0;break}}return!f}}let at=pi;function pi(x,i){let r=ai();return(pi=function(u,h){return r[u-=406]})(x,i)}(function(x){let i=pi,r=x();for(;;)try{if(-parseInt(i(446))/1*(parseInt(i(427))/2)+-parseInt(i(444))/3+parseInt(i(431))/4+-parseInt(i(408))/5+parseInt(i(421))/6*(parseInt(i(410))/7)+parseInt(i(428))/8*(-parseInt(i(447))/9)+parseInt(i(417))/10*(parseInt(i(432))/11)==661113)break;r.push(r.shift())}catch{r.push(r.shift())}})(ai);class ri{constructor(i){let r=pi;this[r(422)]=new Map,this[r(420)]=p.dR[r(441)],this[r(445)]=p.dR[r(437)],this[r(413)]="",this._loader=i,setInterval(()=>{this[r(412)]()},1e3)}[at(409)](i){let r=at,u=i.p2p;u&&(this[r(445)]=u[r(424)]||p.dR[r(437)],this[r(420)]=Math.min(u[r(442)]||p.dR[r(441)],p.dR.safeMaxCount))}[at(430)](){return this[at(420)]}[at(438)](i){let r=at;return this[r(422)][r(419)](i)}[at(425)](i){let r=at;return this[r(422)][r(440)](i)}storeSegment(i){let r=at;return!this[r(425)](i[r(414)])&&i[r(429)]!==void 0&&(this[r(413)]=i[r(414)],this[r(422)].set(i[r(414)],i),this._reduceMemSize(),!0)}[at(412)](){let i=at,r=Date.now()-this[i(445)];this[i(422)].forEach((u,h)=>{let f=i;u.startTime0&&(u=Date[i(439)](),r="",this[i(422)][i(416)]((h,f)=>{h[i(418)]{let le=h;i.endsWith(P)&&(f[le(396)]!=null&&f[le(396)][le(397)](function(K){let O=le;u[O(400)](P,K[O(398)],K[O(398)])}),f[le(389)]!=null&&(L[le(389)]=f.targetDuration),I=!0)})}return f}}var oi=e(9731),vi=e.n(oi),mi=e(2553),Tt=e.n(mi);let Hi=function(x,i){if(/^[a-z]+:/i.test(i))return i;/^data:/.test(x)&&(x=Tt().location&&Tt().location.href||"");var r=typeof Tt().URL=="function",u=/^\/\//.test(x),h=!Tt().location&&!/\/\//i.test(x);if(r?x=new(Tt()).URL(x,Tt().location||"http://example.com"):/\/\//i.test(x)||(x=vi().buildAbsoluteURL(Tt().location&&Tt().location.href||"",x)),r){var f=new URL(i,x);return h?f.href.slice(18):u?f.href.slice(f.protocol.length):f.href}return vi().buildAbsoluteURL(x,i)};var Mi=e(1048).hp,Oi=e(7937),Ii=function(x){return!!x&&typeof x=="object"},fi=function x(){for(var i=arguments.length,r=new Array(i),u=0;uh.timeline?1:-1});var i,r},mu=function(x){var i,r,u=[];return i=x,r=function(h,f,I,L){u=u.concat(h.playlists||[])},Jg.forEach(function(h){for(var f in i.mediaGroups[h])for(var I in i.mediaGroups[h][f]){var L=i.mediaGroups[h][f][I];r(L)}}),u},yu=function(x){var i=x.playlist,r=x.mediaSequence;i.mediaSequence=r,i.segments.forEach(function(u,h){u.number=i.mediaSequence+h})},Pl=function(x){return Hn(x.reduce(function(i,r){var u,h=r.attributes.id+(r.attributes.lang||"");return i[h]?(r.segments&&(r.segments[0]&&(r.segments[0].discontinuity=!0),(u=i[h].segments).push.apply(u,r.segments)),r.attributes.contentProtection&&(i[h].attributes.contentProtection=r.attributes.contentProtection)):(i[h]=r,i[h].attributes.timelineStarts=[]),i[h].attributes.timelineStarts.push({start:r.attributes.periodStart,timeline:r.attributes.periodStart}),i},{})).map(function(i){var r;return i.discontinuityStarts=(r=i.segments||[],r.reduce(function(u,h,f){return h.discontinuity&&u.push(f),u},[])),i})},Il=function(x,i){var r,u,h,f=(r=x.sidx)&&r.uri+"-"+(h=typeof(u=r.byterange).offset=="bigint"||typeof u.length=="bigint"?Tt().BigInt(u.offset)+Tt().BigInt(u.length)-Tt().BigInt(1):u.offset+u.length-1,u.offset+"-"+h),I=f&&i[f]&&i[f].sidx;return I&&function(L,P,le){var K,O=L.sidx.map?L.sidx.map:null,q=L.sidx.duration,E=L.timeline||0,W=L.sidx.byterange,Ae=W.offset+W.length,N=P.timescale,De=P.references.filter(function(Ue){return Ue.referenceType!==1}),Ke=[],ge=L.endList?"static":"dynamic",tt=L.sidx.timeline,$e=tt,ft=L.mediaSequence||0;K=typeof P.firstOffset=="bigint"?Tt().BigInt(Ae)+P.firstOffset:Ae+P.firstOffset;for(var ut=0;ut=0&&(N.minimumUpdatePeriod=1e3*O),u&&(N.locations=u),le==="dynamic"&&(N.suggestedPresentationDelay=K);var De,Ke,ge,tt,$e,ft,ut,Y=N.playlists.length===0,Ce=E.length?function(Ue,nt,lt){var yt;nt===void 0&&(nt={}),lt===void 0&&(lt=!1);var Ct=Ue.reduce(function(ei,$t){var wt=$t.attributes.role&&$t.attributes.role.value||"",di=$t.attributes.lang||"",ui=$t.attributes.label||"main";if(di&&!$t.attributes.label){var At=wt?" ("+wt+")":"";ui=""+$t.attributes.lang+At}ei[ui]||(ei[ui]={language:di,autoselect:!0,default:wt==="main",playlists:[],uri:""});var pt=Il(function(Zt,Xt){var xt,Pi=Zt.attributes,_i=Zt.segments,qn=Zt.sidx,In=Zt.mediaSequence,Rr=Zt.discontinuitySequence,kr=Zt.discontinuityStarts,zn={attributes:(xt={NAME:Pi.id,BANDWIDTH:Pi.bandwidth,CODECS:Pi.codecs},xt["PROGRAM-ID"]=1,xt),uri:"",endList:Pi.type==="static",timeline:Pi.periodStart,resolvedUri:"",targetDuration:Pi.duration,discontinuitySequence:Rr,discontinuityStarts:kr,timelineStarts:Pi.timelineStarts,mediaSequence:In,segments:_i};return Pi.contentProtection&&(zn.contentProtection=Pi.contentProtection),qn&&(zn.sidx=qn),Xt&&(zn.attributes.AUDIO="audio",zn.attributes.SUBTITLES="subs"),zn}($t,lt),nt);return ei[ui].playlists.push(pt),yt===void 0&&wt==="main"&&((yt=$t).default=!0),ei},{});return yt||(Ct[Object.keys(Ct)[0]].default=!0),Ct}(E,f,Y):null,ot=W.length?function(Ue,nt){return nt===void 0&&(nt={}),Ue.reduce(function(lt,yt){var Ct=yt.attributes.lang||"text";return lt[Ct]||(lt[Ct]={language:Ct,default:!1,autoselect:!1,playlists:[],uri:""}),lt[Ct].playlists.push(Il(function(ei){var $t,wt=ei.attributes,di=ei.segments,ui=ei.mediaSequence,At=ei.discontinuityStarts,pt=ei.discontinuitySequence;di===void 0&&(di=[{uri:wt.baseUrl,timeline:wt.periodStart,resolvedUri:wt.baseUrl||"",duration:wt.sourceDuration,number:0}],wt.duration=wt.sourceDuration);var Zt=(($t={NAME:wt.id,BANDWIDTH:wt.bandwidth})["PROGRAM-ID"]=1,$t);return wt.codecs&&(Zt.CODECS=wt.codecs),{attributes:Zt,uri:"",endList:wt.type==="static",timeline:wt.periodStart,resolvedUri:wt.baseUrl||"",targetDuration:wt.duration,timelineStarts:wt.timelineStarts,discontinuityStarts:At,discontinuitySequence:pt,mediaSequence:ui,segments:di}}(yt),nt)),lt},{})}(W,f):null,me=q.concat(vu(Ce),vu(ot)),pe=me.map(function(Ue){return Ue.timelineStarts});return N.timelineStarts=gu(pe),De=me,Ke=N.timelineStarts,De.forEach(function(Ue){Ue.mediaSequence=0,Ue.discontinuitySequence=Cn(Ke,function(nt){return nt.timeline===Ue.timeline}),Ue.segments&&Ue.segments.forEach(function(nt,lt){nt.number=lt})}),Ce&&(N.mediaGroups.AUDIO.audio=Ce),ot&&(N.mediaGroups.SUBTITLES.subs=ot),Ae.length&&(N.mediaGroups["CLOSED-CAPTIONS"].cc=Ae.reduce(function(Ue,nt){return nt&&nt.forEach(function(lt){var yt=lt.channel,Ct=lt.language;Ue[Ct]={autoselect:!1,default:!1,instreamId:yt,language:Ct},lt.hasOwnProperty("aspectRatio")&&(Ue[Ct].aspectRatio=lt.aspectRatio),lt.hasOwnProperty("easyReader")&&(Ue[Ct].easyReader=lt.easyReader),lt.hasOwnProperty("3D")&&(Ue[Ct]["3D"]=lt["3D"])}),Ue},{})),I?(tt=(ge={oldManifest:I,newManifest:N}).oldManifest,$e=ge.newManifest,ft=tt.playlists.concat(mu(tt)),ut=$e.playlists.concat(mu($e)),$e.timelineStarts=gu([tt.timelineStarts,$e.timelineStarts]),function(Ue){var nt=Ue.oldPlaylists,lt=Ue.timelineStarts;Ue.newPlaylists.forEach(function(yt){yt.discontinuitySequence=Cn(lt,function(wt){return wt.timeline===yt.timeline});var Ct=function(wt,di){for(var ui=0;uiCt.timeline||Ct.segments.length&&yt.timeline>Ct.segments[Ct.segments.length-1].timeline)&&yt.discontinuitySequence--);Ct.segments[$t].discontinuity&&!ei.discontinuity&&(ei.discontinuity=!0,yt.discontinuityStarts.unshift(0),yt.discontinuitySequence--),yu({playlist:yt,mediaSequence:Ct.segments[$t].number})}})}({oldPlaylists:ft,newPlaylists:ut,timelineStarts:$e.timelineStarts}),$e):N},am=function(x,i,r){var u=x.NOW,h=x.clientOffset,f=x.availabilityStartTime,I=x.timescale,L=I===void 0?1:I,P=x.periodStart,le=P===void 0?0:P,K=x.minimumUpdatePeriod,O=(u+h)/1e3+(K===void 0?0:K)-(f+le);return Math.ceil((O*L-i)/r)},_u=function(x,i){for(var r=x.type,u=x.minimumUpdatePeriod,h=u===void 0?0:u,f=x.media,I=f===void 0?"":f,L=x.sourceDuration,P=x.timescale,le=P===void 0?1:P,K=x.startNumber,O=K===void 0?1:K,q=x.periodStart,E=[],W=-1,Ae=0;AeW&&(W=ge);var tt=void 0;if(Ke<0){var $e=Ae+1;tt=$e===i.length?r==="dynamic"&&h>0&&I.indexOf("$Number$")>0?am(x,W,De):(L*le-W)/De:(i[$e].t-W)/De}else tt=Ke+1;for(var ft=O+E.length+tt,ut=O+E.length;ut=I?L:""+new Array(I-L.length+1).join("0")+L)}}(i))},lm=function(x,i){var r={RepresentationID:x.id,Bandwidth:x.bandwidth||0},u=x.initialization,h=u===void 0?{sourceURL:"",range:""}:u,f=Pn({baseUrl:x.baseUrl,source:bu(h.sourceURL,r),range:h.range}),I=function(L,P){return L.duration||P?L.duration?Ul(L):_u(L,P):[{number:L.startNumber||1,duration:L.sourceDuration,time:0,timeline:L.periodStart}]}(x,i);return I.map(function(L){r.Number=L.number,r.Time=L.time;var P=bu(x.media||"",r),le=x.timescale||1,K=x.presentationTimeOffset||0,O=x.periodStart+(L.time-K)/le;return{uri:P,timeline:L.timeline,duration:L.duration,resolvedUri:Hi(x.baseUrl||"",P),map:f,number:L.number,presentationTime:O}})},cm=function(x,i){var r=x.duration,u=x.segmentUrls,h=u===void 0?[]:u,f=x.periodStart;if(!r&&!i||r&&i)throw new Error("SEGMENT_TIME_UNSPECIFIED");var I,L=h.map(function(P){return function(le,K){var O=le.baseUrl,q=le.initialization,E=q===void 0?{}:q,W=Pn({baseUrl:O,source:E.sourceURL,range:E.range}),Ae=Pn({baseUrl:O,source:K.media,range:K.mediaRange});return Ae.map=W,Ae}(x,P)});return r&&(I=Ul(x)),i&&(I=_u(x,i)),I.map(function(P,le){if(L[le]){var K=L[le],O=x.timescale||1,q=x.presentationTimeOffset||0;return K.timeline=P.timeline,K.duration=P.duration,K.number=P.number,K.presentationTime=f+(P.time-q)/O,K}}).filter(function(P){return P})},dm=function(x){var i,r,u=x.attributes,h=x.segmentInfo;h.template?(r=lm,i=fi(u,h.template)):h.base?(r=fu,i=fi(u,h.base)):h.list&&(r=cm,i=fi(u,h.list));var f={attributes:u};if(!r)return f;var I=r(i,h.segmentTimeline);if(i.duration){var L=i,P=L.duration,le=L.timescale,K=le===void 0?1:le;i.duration=P/K}else I.length?i.duration=I.reduce(function(O,q){return Math.max(O,Math.ceil(q.duration))},0):i.duration=0;return f.attributes=i,f.segments=I,h.base&&i.indexRange&&(f.sidx=I[0],f.segments=[]),f},Di=function(x,i){return hn(x.childNodes).filter(function(r){return r.tagName===i})},Ll=function(x){return x.textContent.trim()},$s=function(x){var i=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(x);if(!i)return 0;var r=i.slice(1),u=r[0],h=r[1],f=r[2],I=r[3],L=r[4],P=r[5];return 31536e3*parseFloat(u||0)+2592e3*parseFloat(h||0)+86400*parseFloat(f||0)+3600*parseFloat(I||0)+60*parseFloat(L||0)+parseFloat(P||0)},Eu={mediaPresentationDuration:function(x){return $s(x)},availabilityStartTime:function(x){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(i=x)&&(i+="Z"),Date.parse(i)/1e3;var i},minimumUpdatePeriod:function(x){return $s(x)},suggestedPresentationDelay:function(x){return $s(x)},type:function(x){return x},timeShiftBufferDepth:function(x){return $s(x)},start:function(x){return $s(x)},width:function(x){return parseInt(x,10)},height:function(x){return parseInt(x,10)},bandwidth:function(x){return parseInt(x,10)},startNumber:function(x){return parseInt(x,10)},timescale:function(x){return parseInt(x,10)},presentationTimeOffset:function(x){return parseInt(x,10)},duration:function(x){var i=parseInt(x,10);return isNaN(i)?$s(x):i},d:function(x){return parseInt(x,10)},t:function(x){return parseInt(x,10)},r:function(x){return parseInt(x,10)},DEFAULT:function(x){return x}},Wi=function(x){return x&&x.attributes?hn(x.attributes).reduce(function(i,r){var u=Eu[r.name]||Eu.DEFAULT;return i[r.name]=u(r.value),i},{}):{}},um={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Ga=function(x,i){return i.length?En(x.map(function(r){return i.map(function(u){return Hi(r,Ll(u))})})):x},Rl=function(x){var i=Di(x,"SegmentTemplate")[0],r=Di(x,"SegmentList")[0],u=r&&Di(r,"SegmentURL").map(function(O){return fi({tag:"SegmentURL"},Wi(O))}),h=Di(x,"SegmentBase")[0],f=r||i,I=f&&Di(f,"SegmentTimeline")[0],L=r||h||i,P=L&&Di(L,"Initialization")[0],le=i&&Wi(i);le&&P?le.initialization=P&&Wi(P):le&&le.initialization&&(le.initialization={sourceURL:le.initialization});var K={template:le,segmentTimeline:I&&Di(I,"S").map(function(O){return Wi(O)}),list:r&&fi(Wi(r),{segmentUrls:u,initialization:Wi(P)}),base:h&&fi(Wi(h),{initialization:Wi(P)})};return Object.keys(K).forEach(function(O){K[O]||delete K[O]}),K},hm=function(x,i,r){return function(u){var h,f=Wi(u),I=Ga(i,Di(u,"BaseURL")),L=Di(u,"Role")[0],P={role:Wi(L)},le=fi(x,f,P),K=Di(u,"Accessibility")[0],O=(h=Wi(K)).schemeIdUri==="urn:scte:dash:cc:cea-608:2015"?(typeof h.value!="string"?[]:h.value.split(";")).map(function(Ke){var ge,tt;if(tt=Ke,/^CC\d=/.test(Ke)){var $e=Ke.split("=");ge=$e[0],tt=$e[1]}else/^CC\d$/.test(Ke)&&(ge=Ke);return{channel:ge,language:tt}}):h.schemeIdUri==="urn:scte:dash:cc:cea-708:2015"?(typeof h.value!="string"?[]:h.value.split(";")).map(function(Ke){var ge={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(Ke)){var tt=Ke.split("="),$e=tt[0],ft=tt[1],ut=ft===void 0?"":ft;ge.channel=$e,ge.language=Ke,ut.split(",").forEach(function(Y){var Ce=Y.split(":"),ot=Ce[0],me=Ce[1];ot==="lang"?ge.language=me:ot==="er"?ge.easyReader=Number(me):ot==="war"?ge.aspectRatio=Number(me):ot==="3D"&&(ge["3D"]=Number(me))})}else ge.language=Ke;return ge.channel&&(ge.channel="SERVICE"+ge.channel),ge}):void 0;O&&(le=fi(le,{captionServices:O}));var q=Di(u,"Label")[0];if(q&&q.childNodes.length){var E=q.childNodes[0].nodeValue.trim();le=fi(le,{label:E})}var W=Di(u,"ContentProtection").reduce(function(Ke,ge){var tt=Wi(ge);tt.schemeIdUri&&(tt.schemeIdUri=tt.schemeIdUri.toLowerCase());var $e=um[tt.schemeIdUri];if($e){Ke[$e]={attributes:tt};var ft=Di(ge,"cenc:pssh")[0];if(ft){var ut=Ll(ft);Ke[$e].pssh=ut&&function(Y){for(var Ce,ot=(Ce=Y,Tt().atob?Tt().atob(Ce):Mi.from(Ce,"base64").toString("binary")),me=new Uint8Array(ot.length),pe=0;pe0)throw new Error("DASH_INVALID_XML");return I}(x),i),u=r.representationInfo.map(dm);return rm({dashPlaylists:u,locations:r.locations,sidxMapping:i.sidxMapping,previousManifest:i.previousManifest})};let Cu=kl;function kl(x,i){let r=xl();return(kl=function(u,h){return r[u-=336]})(x,i)}function xl(){let x=["targetDuration","2041936HwKoPB","attributes","16ryuRGu","parse","2142000oahKft","../","startsWith","addSegment","uri","1407077tsmHYe","playlists","6qBmujX","1418046hqmRbq","resolvedUri","Error parsing MPD manifest: ","361132oXvUWn","755745gYaDoL","17734140Gbbnee","1JHfuMm","addRendition"];return(xl=function(){return x})()}(function(x){let i=kl,r=x();for(;;)try{if(-parseInt(i(343))/1*(parseInt(i(340))/2)+-parseInt(i(337))/3+parseInt(i(348))/4*(-parseInt(i(341))/5)+-parseInt(i(336))/6*(parseInt(i(355))/7)+parseInt(i(346))/8+-parseInt(i(350))/9+parseInt(i(342))/10==331801)break;r.push(r.shift())}catch{r.push(r.shift())}})(xl);class gm{static[Cu(349)](i,r,u,h){let f=Cu,I=r;try{let le=fm(I,{url:i})[f(356)];for(var L of le){let K=new X;K.bandwidth=L.attributes.BANDWIDTH,K[f(354)]=L[f(338)],K[f(345)]=L.targetDuration;let O=K[f(354)];for(var P of((!K.uri||K[f(354)]=="")&&(O=L[f(347)]),u[f(344)](O,K),L.segments)){let q=P[f(354)];for(;q[f(352)](f(351));)q=q.replace(f(351),"");u[f(353)](O,P[f(338)],q)}}}catch(le){o.default.debug(c.BalancerTag,f(339),le)}}}let qi=Wa;function Ml(){let x=["endsWith","_resource","startTime","progressDownloadedBytes","triedCdns","retryBecauseNewHeaders","onSuccess"," downloaded by p2p -> ","getEntriesByType","P2PManager","p2pId","floor","574902mJONej","compressedBytes","verbose","retries","duration",".mpd","size","sliceByFirstSpecial","finalUrl","isMedia","getRenditions","Range","6092514SkbWTi","parse","cachedSize","url","341012fCHtsc","targetDuration","updateP2PId","length","trunc","failed","slice","route","instantBandwidth","failedOriginalCount","cdnName","10NSbuMe","Success","timeout","ifByteArrayToString","7MaUTDo","params","noContentObtained","Done ","loaded","setContent"," Total time -> ","segmentDuration","206428OAKISW","8896779TUHzJd","undefined","getTime","bandwidth","downloadTimeMs","progressDownloadedBytesLastUpdate","ORIGINAL"," renditions -> ","activeP2PSendProcesses","isManifest","endTime","data","Update P2P ID ","cdnProvider","addParametersToUrl","Problem slicing the array","origRes","round","announcedP2P","25qazjbH","debug","triedP2P","onProgress","now","Util","27019223rZytoA","pathname","download","12RWgLcf","initialEstimatedTime","host","peer","Fail","total","pathName","9VxiDwb",".m3u8","push","5458872WZHlql","emit","hash","toJSON","realBodySize","High risk of buffer. ","isMasterPlaylist","BYTLELENGHT ","getPerfLoadTime","search","includes","uncompressedBytes","byteLength","function","timestamp","forceHttp","name","headers"];return(Ml=function(){return x})()}function Wa(x,i){let r=Ml();return(Wa=function(u,h){return r[u-=360]})(x,i)}(function(x){let i=Wa,r=x();for(;;)try{if(parseInt(i(428))/1+parseInt(i(444))/2*(-parseInt(i(395))/3)+-parseInt(i(467))/4*(-parseInt(i(379))/5)+parseInt(i(440))/6+parseInt(i(459))/7*(parseInt(i(398))/8)+-parseInt(i(360))/9*(-parseInt(i(455))/10)+-parseInt(i(385))/11*(parseInt(i(388))/12)==551435)break;r.push(r.shift())}catch{r.push(r.shift())}})(Ml);class mm extends d{constructor(i,r,u,h={},f=3,I=!1,L=!1){let P=Wa;var le;super(),this[P(394)]="",this.data=new ArrayBuffer(1),this[P(434)]=0,this[P(363)]=0,this[P(418)]=0,this[P(370)]=0,this[P(364)]=0,this[P(449)]=!1,this[P(457)]=!1,this[P(419)]=0,this[P(365)]=0,this[P(452)]=0,this[P(432)]=0,this.initialEstimatedTime=0,this.lastEstimatedTime=0,this[P(369)]=!1,this.isMasterPlaylist=!1,this[P(437)]=!1,this[P(387)]=!0,this[P(402)]=0,this.readyForP2P=!0,this[P(378)]=!1,this[P(368)]=0,this[P(421)]=0,this[P(413)]=!1,this[P(391)]=void 0,this.createdAt=Date[P(383)](),this[P(453)]=0,this[P(466)]=void 0,this[P(412)]=void 0;let K=new URL(r);this[P(443)]=r,this[P(436)]=r,this.origRes=r,this[P(390)]=K[P(390)],this[P(451)]=K[P(386)],this.params=K[P(407)],this[P(415)]=h,this[P(431)]=f,this.useP2P=I,this[P(381)]=!1,this[P(454)]="",this.cdnProvider="",this.arrayBuffer=L,this[P(420)]=[],this[P(417)]=u,this[P(394)]=i,this[P(412)]=new Date()[P(362)](),this.id=Math[P(427)](100*Math.random())+"-"+Date[P(383)]();let O=((le=this.headers)===null||le===void 0?void 0:le[P(439)])||"";this[P(426)]=window[P(425)]?window.P2PManager[P(384)][P(400)](this[P(394)]+O):""+this.pathName+O}[qi(446)](){let i=qi;var r;if(!window[i(425)])return;let u=((r=this[i(415)])===null||r===void 0?void 0:r[i(439)])||"";o.default[i(380)](c.BalancerTag,i(372)+this[i(394)]+u),this.p2pId=window[i(425)].Util[i(400)](this[i(394)]+u)}getNewUrl(i){let r=qi,u=!1;this[r(369)]?(this[r(369)]&&this[r(449)]||this[r(369)]&&i)&&(u=!0):u=!0;let h=u?this[r(436)]:this[r(443)];return this[r(460)]&&(h=h[r(408)]("?")?h+"&"+this.params:h+"?"+this[r(460)]),h}[qi(374)](i){let r=qi,u=i;return this[r(460)]&&u&&(u=u[r(408)]("?")?u+"&"+this[r(460)]:u+"?"+this[r(460)]),u}changeCDN(i,r,u){let h=qi;if(u!=h(366)){let f=new URL(i);this[h(390)]=f[h(390)],this[h(451)]=f[h(386)],this[h(420)][h(397)](r)}this[h(454)]=r,this[h(373)]=u}[qi(464)](i){let r=qi;this[r(371)]=i,this.size=i[r(410)],this[r(399)](p.yL[r(456)],{segment:this,data:i})}[qi(461)](){let i=qi;this[i(399)](p.yL[i(392)],{segment:this})}[qi(406)](i){let r=qi;var u;if(typeof performance!==r(361)&&typeof performance[r(424)]===r(411)){let h=performance[r(424)]("resource");if(h&&h[r(447)]>0)for(let f of h){let I=f[r(401)]();if(!((u=I?.[r(414)])===null||u===void 0)&&u[r(408)](i))return Math[r(377)](I?.[r(432)])}}return-1}[qi(382)](i,r){let u=qi;r[u(393)]>0&&(this.realBodySize=r.total),this.progressDownloadedBytesLastUpdate==0&&(this.progressDownloadedBytesLastUpdate=this[u(418)]);let h=Date.now(),f=h-this[u(365)];if(this.endTime=Date[u(383)](),f<150)return;f!=0&&(this[u(452)]=(r.loaded-this[u(419)])/((h-this.progressDownloadedBytesLastUpdate)/1e3)*8,this[u(365)]=h,r[u(463)]&&(this.progressDownloadedBytes=r[u(463)]));let I=(h-this[u(418)])/(r[u(463)]/r.total);this[u(389)]=this[u(389)]==0?I:this[u(389)],this.lastEstimatedTime=I,this[u(432)]>0&&I!=0&&1e3*this[u(432)] "+this[h(443)]+h(367)+this[h(417)].getRenditions()[h(434)]),L[h(445)]!=null&&(this[h(466)]=1e3*L[h(445)])}if(I[h(416)](h(433))){i=_.ifByteArrayToString(i);let L={duration:void 0};gm[h(441)](this[h(443)],i,this[h(417)],L),this[h(404)]=!0,o.default.debug(c.BalancerTag,"Parsed DASH manifest -> "+this[h(443)]+" renditions -> "+this._resource[h(438)]()[h(434)]),L[h(432)]!=null&&(this[h(466)]=1e3*L.duration)}if(o.default.verbose(c.BalancerTag,h(405)+i.byteLength+h(423)+this[h(381)]),i[h(410)]!=0)try{this.data=i[h(450)](0,i.byteLength),this.size=this[h(364)]>5?this.data[h(410)]:0,this[h(442)]=this[h(364)]>5?0:this[h(371)].byteLength,this[h(363)]=Math[h(448)](this[h(364)]>5?this[h(371)].byteLength/(this[h(364)]/1e3):0),this[h(371)][h(410)]>0&&(this[h(402)]=this[h(371)][h(410)]),this[h(452)]=0,this[h(419)]=this[h(434)];let L=parseInt(r,10);!isNaN(L)&&L>0&&(this[h(429)]=L,this[h(409)]=this.data[h(410)]||i[h(410)]||this.realBodySize)}catch{o.default[h(380)](c.BalancerTag,h(375))}else this[h(371)].byteLength!=this[h(402)]&&(this.data=new ArrayBuffer(1));return this[h(365)]=this[h(370)],!0}}function Ol(){let x=["getRendition","endsWith","fileName","105579QMspME","getRenditions","addSegment","117qSpWju","getVideoRenditions","pos","sort","values","cleaning","get","set","8564RjTVHE","bandwidthPosition","bandwidths","uri","forEach","getSize","renditions","610hkZIUw","isAudio","isMaxRendition","masterUri","length","getSegmentsSize","clean","bandwidth","delete","18akhnOM","1116680VjOkst","lastCleanPos","616910UItQEd","getSegments","657937osvAOS","240840wtZvFW","242894LVQQZq"];return(Ol=function(){return x})()}function Pr(x,i){let r=Ol();return(Pr=function(u,h){return r[u-=405]})(x,i)}let Ni=Pr;(function(x){let i=Pr,r=x();for(;;)try{if(parseInt(i(435))/1+-parseInt(i(436))/2+-parseInt(i(440))/3+parseInt(i(413))/4*(-parseInt(i(420))/5)+parseInt(i(429))/6*(-parseInt(i(434))/7)+-parseInt(i(430))/8+-parseInt(i(405))/9*(-parseInt(i(432))/10)==203423)break;r.push(r.shift())}catch{r.push(r.shift())}})(Ol);class ym{constructor(){let i=Pr;this[i(423)]="",this[i(419)]=new Map,this.route="",this[i(439)]="",this.bandwidths=[],this[i(407)]=0,this[i(431)]=0,this[i(410)]=!1}[Ni(426)](){let i=Ni;this.cleaning||this[i(407)]-this.lastCleanPos>1e5&&(this.cleaning=!0,this[i(428)](this.lastCleanPos,this[i(431)]+5e3),this.lastCleanPos=this[i(431)]+5e3,this.cleaning=!1)}[Ni(442)](i,r,u){let h=Ni;var f;this.pos++,(f=this[h(419)][h(411)](i))===null||f===void 0||f[h(442)](r,u,this[h(407)])}[Ni(418)](){let i=Ni,r=0;for(let u of this[i(419)][i(409)]())r+=u[i(425)]();return r}[Ni(428)](i,r){let u=Ni;for(let h of this[u(419)][u(409)]())for(let[f,I]of h[u(433)]())I[u(407)]>=i&&I[u(407)]<=r&&h[u(433)]().delete(f)}addRendition(i,r){let u=Ni;this[u(419)][u(412)](i,r),this.updateAvailableBandwidths()}[Ni(441)](){return this[Ni(419)]}[Ni(406)](){let i=Ni,r=new Map;return this[i(419)][i(417)](function(u,h){let f=i;u[f(421)]||r[f(412)](h,u)}),r}[Ni(437)](i){let r=Ni,u;return this[r(419)][r(417)](function(h){let f=r;h[f(433)]()[f(417)](function(I){let L=f;i[L(438)](I[L(416)])&&(u=h)})}),u}updateAvailableBandwidths(){let i=Ni,r=new Array;this.renditions.forEach(function(u){let h=Pr;u[h(421)]||r.push(Number(u[h(427)]))}),r[i(408)](function(u,h){return u-h}),this[i(415)]=r,this[i(419)].forEach(u=>{let h=i;!u[h(421)]&&(u[h(414)]=this.getBandwidthsPos(u.bandwidth),u[h(414)]+1==this[h(415)][h(424)]&&(u[h(422)]=!0))})}getBandwidthsPos(i){let r=Ni,u=0,h=-1;return this[r(415)][r(417)](function(f){i==f&&(h=u),u++}),h}}let pn=Es;function Es(x,i){let r=Nl();return(Es=function(u,h){return r[u-=356]})(x,i)}(function(x){let i=Es,r=x();for(;;)try{if(-parseInt(i(367))/1*(-parseInt(i(359))/2)+-parseInt(i(452))/3*(parseInt(i(412))/4)+parseInt(i(413))/5+-parseInt(i(400))/6+parseInt(i(432))/7+-parseInt(i(388))/8+-parseInt(i(423))/9*(-parseInt(i(418))/10)==614942)break;r.push(r.shift())}catch{r.push(r.shift())}})(Nl);function Nl(){let x=["getPluginVersion","debug","defaultReportTimeout","2448LMbSlA","decisionReloadIntervalPerManifestMilliseconds","has","Creating setTimeout for decision request with resource ","_loader","formatParameters","timeout","Storing ","BALANCER","8255121TSMwRd","storage","Using development environment -> ","performHashmapCleanup","host","setActiveSwitchingOnLegacy","P2PLoader","qualityPriority"," in manifest hashmap","options","createUpdateTimer","setAdsAnalyticsEnabled","BalancerVariables","origin","-js","value","LAST_USED_CDN","send","set","balancerEnabled","185529DHEaah","getRouteAndFilename","signManifestUsingApi","decision","diagnosticTool","setReportTimeout","now","done"," from manifest hashmap since older than ","GET","disable","readyState","onerror","getCdnList","gotEmptyResponse","PROFILE_NAME","parse","unregisterCommonVariable","10mSUjtX","start","size","verbose","messages","Removing ","_jwtToken","CDNLoader","101891QrXZUC","delete","__awaiter","onFailedApiResponse","getIsEnabled","pathname","wasSelectorCommunicationSuccessful","DECISION_FINISHED","Using ","deleteOldestFromManifestMap","registerCommonVariable","adsAnalyticsEnabled","split","shouldPerformDecision","get","Origin","getReportTimeout","BUCKET","Authorization","Empty response received","forEach","8652232RPzhrA","isUsingLegacy","next","loadBalancerData","replace","true","https://","response","isValidUrl","onSucessfullApiResponse","onload","lastIndexOf","3984978qhgegI","startMonitoring","slice","code","cdnPriority","route","_jwtAuthType","status","apply","_manifestMap","Products","API call failed due to a network error.","56FYMrBY","5540950FLsZET","API call failed with status code ","getInstance","AS_ENABLED","open","15790xmiuiA","setSettings"];return(Nl=function(){return x})()}class vm{constructor(i,r,u){let h=pn;this[h(409)]=new Map,this._loader=i,this[h(406)]=r,this[h(365)]=u}[pn(391)](i,r,u,h,f,I,L,P,le,K,O,q){return E=this,W=void 0,N=function*(){let De=Es;if(!this[De(427)][De(371)]())return void n.default.getInstance().registerCommonVariable(ce.default.Products[De(431)],ce.default[De(444)][De(374)],!0);if(!this[De(380)](r))return o.default[De(421)](c.BalancerTag,"Not performing decision since time between requests has not passed yet."),void this[De(442)](i,r,u,h,f!=null&&f,I!=null&&I,P,le,K,O,q);let Ke=Date[De(458)](),ge=_[De(396)](r)?this[De(453)](r):{route:"",fileName:""};o.default[De(362)](c.BalancerTag,De(434)+I);let tt=I?p.df.devHost:p.df[De(436)];tt=K||tt,o.default.debug(c.BalancerTag,De(375)+tt+" for /decision requests");let $e=new XMLHttpRequest,ft=tt+"/"+i+"/"+(P?P+"/":"")+De(455);ft=ft[De(392)]("//","/"),ft=De(394)+ft;let ut={resource:""+ge.route+ge.fileName,live:""+u,extended:De(393),npawPluginInfo:De(393),originCode:le??"",v:n.default[De(420)]()[De(379)](De(446))[0],dynamicRules:O??"",deviceInfo:q??""},Y=this;yield new Promise((Ce,ot)=>{let me=De;$e[me(398)]=function(){let pe=me;var Ue,nt,lt,yt,Ct,ei,$t,wt,di,ui,At;if($e[pe(463)]===4){if($e[pe(407)]>0&&(Y._manifestMap.size===10&&!Y._manifestMap[pe(425)](r)&&Y[pe(376)](),Y[pe(435)](),Y[pe(409)][pe(450)](r,Date[pe(458)]()),o.default[pe(362)](c.BalancerTag,pe(430)+r+pe(440))),$e.status>=200&&$e.status<=300){let Zt=Date[pe(458)]()-Ke;Y._loader[pe(366)][pe(397)](Zt);try{if($e[pe(395)]){Y.options=JSON[pe(357)]($e[pe(395)]),n.default.getInstance()[pe(377)](ce.default.Products.BALANCER,ce.default[pe(444)].PROFILE_NAME,P),n.default[pe(415)]()[pe(377)](ce.default[pe(410)][pe(431)],ce.default[pe(444)][pe(384)],le),Y._loader[pe(433)].setSettings(Y[pe(441)]),Y[pe(427)][pe(438)]&&(Y[pe(427)][pe(438)][pe(419)](Y.options),Y[pe(427)][pe(438)][pe(401)]()),Y[pe(427)][pe(366)][pe(419)](Y.options,ge[pe(405)]),Y[pe(427)][pe(366)][pe(401)]();let Xt=[p.m[pe(404)],p.m[pe(439)]].includes(Y.options.activeSwitching)&&Y[pe(427)][pe(366)][pe(465)]()[pe(361)]>0;n.default[pe(415)]()[pe(389)]()?n.default[pe(415)]()[pe(437)](Xt):n.default[pe(415)]()[pe(377)](ce.default[pe(410)].BALANCER,ce.default[pe(444)][pe(416)],Xt),qe.default[pe(415)]().wasSelectorCommunicationSuccessful(!0),qe.default[pe(415)]().setBalancerEnabled((nt=(Ue=Y[pe(441)])===null||Ue===void 0?void 0:Ue[pe(456)])===null||nt===void 0?void 0:nt[pe(451)]),qe.default.getInstance().setVideoAnalyticsEnabled((yt=(lt=Y[pe(441)])===null||lt===void 0?void 0:lt[pe(456)])===null||yt===void 0?void 0:yt.videoAnalyticsEnabled),qe.default[pe(415)]()[pe(443)]((ei=(Ct=Y[pe(441)])===null||Ct===void 0?void 0:Ct[pe(456)])===null||ei===void 0?void 0:ei[pe(378)]),qe.default[pe(415)]()[pe(457)]((wt=($t=Y[pe(441)])===null||$t===void 0?void 0:$t.diagnosticTool)===null||wt===void 0?void 0:wt[pe(429)])}else o.default[pe(421)](c.BalancerTag,"Empty response received from Balancer API"),Y._loader.P2PLoader[pe(462)](),Y[pe(427)][pe(366)][pe(466)](),qe.default[pe(415)]()[pe(373)](!1,pe(386)),n.default.getInstance()[pe(377)](ce.default.Products[pe(431)],ce.default.BalancerVariables[pe(448)],pe(382))}catch(Xt){o.default[pe(421)](c.BalancerTag,"Error parsing Balancer API response: ",Xt)}}else{let Zt=JSON[pe(357)]($e[pe(395)]);qe.default[pe(415)]().wasSelectorCommunicationSuccessful(!1,Zt[pe(363)][0][pe(403)]),n.default[pe(415)]()[pe(377)](ce.default[pe(410)].BALANCER,ce.default[pe(444)].LAST_USED_CDN,pe(382)),o.default[pe(421)](c.BalancerTag,pe(414)+$e.status),Y._loader[pe(366)].onFailedApiResponse()}n.default[pe(415)]().registerCommonVariable(ce.default.Products[pe(431)],ce.default.BalancerVariables[pe(374)],!0);let pt=qe.default.getInstance()[pe(383)]();pt!=qe.default[pe(422)]&&((At=(ui=(di=Y[pe(441)])===null||di===void 0?void 0:di[pe(456)])===null||ui===void 0?void 0:ui[pe(429)])!==null&&At!==void 0?At:pt)!=pt&&(qe.default.getInstance().clearReportTimeout(),qe.default.getInstance()[pe(360)]())}Ce()},$e[me(464)]=function(){let pe=me;Y[pe(427)][pe(366)][pe(370)](),o.default.debug(c.BalancerTag,pe(411)),Ce()},L?$e[me(417)](me(461),ft+_[me(428)](ut),!1):$e[me(417)]("GET",ft+_[me(428)](ut)),n.default[me(415)]()[me(377)](ce.default[me(410)][me(431)],ce.default[me(444)][me(374)],!1),n.default[me(415)]()[me(358)](ce.default[me(410)][me(431)],ce.default[me(444)][me(356)]),n.default[me(415)]().unregisterCommonVariable(ce.default.Products[me(431)],ce.default.BalancerVariables[me(384)]),n.default[me(415)]()[me(358)](ce.default[me(410)][me(431)],ce.default[me(444)].AS_ENABLED),o.default[me(362)](c.BalancerTag,"Performing decision request with URL "+ft+_[me(428)](ut)+" + (host: "+tt+")"),Y._jwtToken&&$e.setRequestHeader(me(385),Y._jwtAuthType+" "+Y._jwtToken),$e[me(449)]()}),this[De(442)](i,r,u,h,f!=null&&f,I!=null&&I,P,le,K,q)},new((Ae=void 0)||(Ae=Promise))(function(De,Ke){let ge=Es;function tt(ut){let Y=Es;try{ft(N[Y(390)](ut))}catch(Ce){Ke(Ce)}}function $e(ut){try{ft(N.throw(ut))}catch(Y){Ke(Y)}}function ft(ut){let Y=Es;var Ce;ut[Y(459)]?De(ut[Y(447)]):(Ce=ut[Y(447)],Ce instanceof Ae?Ce:new Ae(function(ot){ot(Ce)})).then(tt,$e)}ft((N=N[ge(408)](E,W||[]))[ge(390)]())});var E,W,Ae,N}[pn(442)](i,r,u,h,f,I,L,P,le,K,O){let q=pn;h>0&&(o.default.verbose(c.BalancerTag,q(426)+r),setTimeout(()=>{let E=q;var W;this[E(391)](i,r,u,h,f,I,(W=this[E(441)][E(454)])!==null&&W!==void 0&&W,L,P,le,K,O)},1e3*h))}[pn(453)](i){let r=pn,u=new URL(i),h=u[r(445)]+u[r(372)],f=h[r(399)]("/")+1;return{route:h[r(402)](0,f),fileName:h[r(402)](f)}}[pn(380)](i){let r=pn;var u;if(!this[r(409)][r(425)](i))return!0;{let h=(u=this[r(409)][r(381)](i))!==null&&u!==void 0?u:Date[r(458)]();if(Date[r(458)]()-h>p.df.decisionReloadIntervalPerManifestMilliseconds)return!0}return!1}[pn(435)](){let i=pn;this[i(409)].forEach((r,u)=>{let h=i;Date[h(458)]()-r>p.df[h(424)]&&(o.default[h(362)](c.BalancerTag,h(364)+u+h(460)+p.df.decisionReloadIntervalPerManifestMilliseconds+"ms"),this[h(409)][h(368)](u))})}[pn(376)](){let i=pn,r,u=1/0;this[i(409)][i(387)]((h,f)=>{hi){let le=1e3*r[L(228)]*8/i,K=(Date[L(227)](),r[L(233)],le-r[L(223)]);K>0&&(yield _[L(230)](K)),r[L(219)]=Date[L(227)](),r.downloadTimeMs=r[L(219)]-r[L(233)],r.bandwidth=r[L(228)]/(r.downloadTimeMs/1e3),r[L(229)]=0,r[L(217)]=r[L(219)]}},new((f=void 0)||(f=Promise))(function(L,P){let le=Ir;function K(E){try{q(I.next(E))}catch(W){P(W)}}function O(E){try{q(I.throw(E))}catch(W){P(W)}}function q(E){let W=Ir;var Ae;E.done?L(E[W(221)]):(Ae=E[W(221)],Ae instanceof f?Ae:new f(function(N){N(Ae)}))[W(224)](K,O)}q((I=I[le(231)](u,h||[]))[le(235)]())});var u,h,f,I}}function Vl(){var x=["is_banned","internal_provider","throughput","internal_switches_due_quality","downloaded_bytes","video_time","1825159afCmrZ","banned_time","8Hvfkjb","compressed_video_bytes","internal_unbanned_time","is_active","max_bandwidth","provider","video_downloaded_bytes","max_ping_time","throughput_samples","banned","min_bandwidth","cache_miss_chunks","min_network_latency","min_response_time","8blLexh","avg_ping_time","response_time","http_5XX","5219328BVJePd","errors","2030529IasWXA","time","9hilGvb","1246946XWvcHb","network_latency_samples","switches_due_connectivity","resource","http_3XX","cache_hit_chunks","internal_banned","switches_due_quality","http_1XX","downloaded_chunks","1542576KkPmeA","internal_is_banned","response_bytes","max_network_latency","473590KxwDKg","internal_switches_due_connectivity","network_latency","1835305oxGlgp","min_response_bytes","min_ping_time","internal_banned_time","http_4XX","internal_switches","response_time_samples"];return(Vl=function(){return x})()}function jl(x,i){var r=Vl();return(jl=function(u,h){return r[u-=476]})(x,i)}(function(x){for(var i=jl,r=x();;)try{if(parseInt(i(497))/1+-parseInt(i(507))/2+-parseInt(i(494))/3*(-parseInt(i(529))/4)+-parseInt(i(514))/5+-parseInt(i(492))/6+parseInt(i(527))/7*(parseInt(i(488))/8)+-parseInt(i(496))/9*(parseInt(i(511))/10)==805773)break;r.push(r.shift())}catch{r.push(r.shift())}})(Vl);class Hl{constructor(i,r,u,h,f,I,L,P,le,K,O,q,E,W,Ae,N,De,Ke,ge,tt,$e,ft,ut,Y,Ce,ot,me,pe,Ue,nt,lt,yt,Ct,ei,$t,wt,di,ui,At,pt,Zt,Xt,xt,Pi,_i,qn,In,Rr,kr,zn,Zl,ec,Bt,qm,zm,Gm,Wm,Xm,$m,Ym){var Pt=jl;this[Pt(479)]=i,this[Pt(522)]=r,this.is_p2p=u,this[Pt(525)]=f,this[Pt(506)]=I,this[Pt(509)]=tt,this[Pt(515)]=$e,this.max_response_bytes=ft,this.response_bytes_samples=ut,this[Pt(490)]=Y,this[Pt(487)]=Ce,this.max_response_time=ot,this[Pt(520)]=me,this[Pt(513)]=pe,this[Pt(486)]=Ue,this[Pt(510)]=nt,this[Pt(498)]=lt,this[Pt(523)]=yt,this.min_throughput=Ct,this.max_throughput=ei,this[Pt(482)]=$t,this[Pt(493)]=L,this[Pt(505)]=wt,this.http_2XX=di,this[Pt(501)]=ui,this[Pt(518)]=At,this[Pt(491)]=pt,this.unbanned_time=Zt,this[Pt(528)]=Xt,this[Pt(530)]=Pi,this.uncompressed_video_bytes=xt,this.switches=_i,this[Pt(499)]=qn,this.switches_due_errors=In,this[Pt(504)]=Rr,this[Pt(495)]=P,this[Pt(478)]=le,this[Pt(484)]=K,this[Pt(483)]=zn,this.unbanned=Zl,this[Pt(489)]=O,this[Pt(516)]=q,this[Pt(481)]=E,this[Pt(521)]=kr,this[Pt(477)]=h,this[Pt(500)]=W,this[Pt(490)]=Y,this[Pt(502)]=Ae,this[Pt(485)]=N,this[Pt(480)]=De,this.video_downloaded_chunks=Ke,this[Pt(526)]=ge,this[Pt(508)]=ec,this[Pt(503)]=Bt,this.internal_unbanned=qm,this[Pt(519)]=zm,this[Pt(524)]=Gm,this[Pt(512)]=Wm,this.internal_switches_due_errors=Xm,this[Pt(517)]=$m,this[Pt(476)]=Ym}}function ql(x,i){var r=zl();return(ql=function(u,h){return r[u-=298]})(x,i)}(function(x){for(var i=ql,r=x();;)try{if(-parseInt(i(325))/1*(-parseInt(i(324))/2)+parseInt(i(316))/3*(parseInt(i(307))/4)+-parseInt(i(341))/5*(-parseInt(i(330))/6)+-parseInt(i(321))/7*(parseInt(i(299))/8)+-parseInt(i(305))/9*(-parseInt(i(313))/10)+parseInt(i(335))/11+-parseInt(i(331))/12==525470)break;r.push(r.shift())}catch{r.push(r.shift())}})(zl);class bm{constructor(i,r,u,h,f,I,L,P,le,K,O,q,E,W,Ae,N,De,Ke,ge,tt,$e,ft,ut,Y,Ce,ot,me,pe,Ue,nt,lt,yt,Ct,ei,$t,wt,di,ui,At,pt,Zt,Xt,xt,Pi,_i,qn,In,Rr,kr,zn,Zl,ec){var Bt=ql;this.provider=i,this[Bt(302)]=r,this.is_p2p=u,this[Bt(345)]=h,this[Bt(301)]=f,this[Bt(319)]=I,this[Bt(311)]=L,this[Bt(344)]=P,this[Bt(326)]=le,this[Bt(309)]=K,this[Bt(343)]=O,this[Bt(308)]=q,this[Bt(342)]=E,this[Bt(315)]=W,this.video_downloaded_chunks=Ae,this[Bt(338)]=N,this[Bt(334)]=De,this[Bt(328)]=Ke,this[Bt(349)]=ge,this[Bt(327)]=tt,this[Bt(318)]=$e,this[Bt(336)]=ft,this[Bt(347)]=ut,this.timeout_errors=Y,this.other_errors=Ce,this.active_peers=ot,this[Bt(346)]=me,this[Bt(304)]=pe,this.min_response_bytes=Ue,this[Bt(312)]=nt,this[Bt(322)]=lt,this.response_time=yt,this[Bt(303)]=Ct,this[Bt(339)]=ei,this[Bt(300)]=$t,this.network_latency=wt,this.min_network_latency=di,this[Bt(314)]=ui,this[Bt(337)]=At,this[Bt(317)]=pt,this[Bt(310)]=Zt,this[Bt(306)]=Xt,this[Bt(329)]=xt,this[Bt(298)]=Pi,this[Bt(333)]=_i,this.min_peers_available=qn,this[Bt(340)]=In,this[Bt(323)]=Rr,this.max_peers_parallel_used=kr,this[Bt(320)]=zn,this[Bt(348)]=Zl,this[Bt(332)]=ec}}function zl(){var x=["peers_available","1592TpnWqN","response_time_samples","downloaded_chunks","internal_provider","min_response_time","response_bytes","1854LuKedL","max_throughput","204FMKdRs","max_ping_time","avg_ping_time","min_throughput","time","max_response_bytes","6640LBQEjc","max_network_latency","video_downloaded_bytes","1833hebulR","throughput","late_uploaded_bytes","errors","min_peers_parallel_used","13867PTLxmQ","response_bytes_samples","peers_parallel_used","4PtSqoM","111323dBpetc","min_bandwidth","late_uploaded_chunks","uploaded_chunks","throughput_samples","18nJqNeU","5260368CfbKMc","peer_connection_time","max_peers_available","uploaded_bytes","8618126OufIbj","late_downloaded_bytes","network_latency_samples","video_time","max_response_time","peers_used","306660umAxoP","resource","min_ping_time","max_bandwidth","downloaded_bytes","peers","missed_downloaded_chunks","peer_discovery_time","upload_time"];return(zl=function(){return x})()}function Gl(x,i){var r=Wl();return(Gl=function(u,h){return r[u-=118]})(x,i)}(function(x){for(var i=Gl,r=x();;)try{if(-parseInt(i(135))/1*(-parseInt(i(132))/2)+-parseInt(i(137))/3*(-parseInt(i(134))/4)+-parseInt(i(123))/5*(-parseInt(i(120))/6)+parseInt(i(122))/7+-parseInt(i(133))/8*(-parseInt(i(127))/9)+parseInt(i(119))/10+-parseInt(i(138))/11==604213)break;r.push(r.shift())}catch{r.push(r.shift())}})(Wl);class Em{constructor(i,r,u,h,f,I,L,P,le,K,O,q,E,W,Ae,N){var De=Gl;this[De(118)]=i,this[De(131)]=r,this[De(139)]=u,this.apiCallsAvgResponseTime=h,this[De(124)]=f,this[De(128)]=I,this[De(130)]=L,this[De(121)]=P,this.forceDecision=le,this[De(125)]=K,this[De(126)]=O,this.bolinaAvailable=q,this[De(136)]=E,this.priorityCdn=W,this.chunkDuration=Ae,this[De(129)]=N}}function Wl(){var x=["3dbTWZe","24971738CAggLI","apiCallsMinResponseTime","apiCallErrors","1853920QphkyU","63390fEHItH","videoId","8363355RDmpDv","260oxKtEW","apiCallsMaxResponseTime","requestPlatform","p2pAvailable","63HYJqpa","bucket","announcedCdns","isLive","apiCallResponses","1157246TEOwtW","229712BJOKfq","660852pUZQUr","1zBdWCv","activeSwitchingPriority"];return(Wl=function(){return x})()}let fn=ts;function Xl(){let x=["uploadedBytes","peerConnectionTime","registerCommonVariable","wasStartSent","activePeers","samplesThroughput","maxNetworkLatency","isLive","get","maxResponseBytes","http_5XX","55TbsYNP","switchesDueToErrors","downloadMillis","getSegmentDuration","lastReportedCodavelSwitchesDueToErrors","getFastDataService","cacheMiss","reportRequest","http_3XX","failedRequests","lastReportedCodavelUnbanCount","downloadedChunksVideo","chunkDuration","getBucket","updateAvailability","addNQSRequest","millis","discardedUploadedChunks","downloadChunksVideo","absent","Products","lastReportedCodavelSwitchesDueToConnectivity","CDNLoader","report","MAX_SAFE_INTEGER","unbannedTime","announcedCdns","avgPingTime","set","298711ZlmIqa","codavelBanCount","banned","getInstance","getReportInterval","http1xxResponses","next","getStats","codavelSwitchesDueToConnectivity","sumThroughput","updateData","sumVideoBytes","peersUsed","peersParallelUsed","activeSwitchingPriority","switches","http2xxResponses","lateUploadedChunks","compressedBytes","total","getPingTime","sumResponseBytes","http_2XX","takeIf","4oFcvdy","maxPingTime","stopped","http_1XX","name","getIsLive","isCodavel","bannedTime","codavelBanTime","offline","minPeersParallelUsed","CODAVEL","lowestSegmentBandwidth","accountCode","lastReportedCodavelSwitchesDueToQuality","2760948teqEER","_instance","codavelUnbanCount","trunc","getFastDataSessionToken","unBannedCount","apply","split","switchesDueToConnectivity","lateDownloadedBytes","minNetworkLatency","avgApiCallResponseTime","http3xxResponses","maxThroughput","lastReportedCodavelUnbanTime","updatePeerMetrics","GET","bannedCount","samplesResponseTime","sumVideoTime","uuid","host","minApiCallResponseTime","setTriedSendingBalancerStats","-js","sumResponseTime","takeMin","priorityCdn","maxBandwidth","http5xxResponses","apiCallsAvgResponseTime","videoTime","__awaiter","lowestPingTime","done","minResponseBytes","maxApiCallResponseTime","isUsingLegacy","apiCallsMinResponseTime","totalFailures","apiCallErrors","token","samplesNetworkLatency","cacheHit","undefined","resource","codavelSwitchesDueToErrors","downloadedBytesVideo","codavelUnbanTime","NQS","getCdnCacheHits","642702MYHZrG","then","profileName","lastCdnStats","P2P","some","BLACK_HOLE","getTime","lastReportedCodavelSwitches","discardedDownloadedBytes","forceDecision","BalancerPing: ","peerDiscoveryTime","minThroughput","lastP2pStats","timeout","downloadBytesVideo","getOptions","timeoutErrors","downloadedChunks","http_4XX","discardedUploadedBytes","lastReportedCodavelBanTime","111436gxVmLp","switchesDueToQuality","lastReportedCodavelBanCount","values","codavelSwitchesDueToQuality","5165479dzcwJs","downloadMillisVideo","minResponseTime","peersAvailable","MIN_SAFE_INTEGER","maxResponseTime","otherErrors","METHOD_OPTION","totalFail","BALANCER_BITRATE","http4xxResponses","maxPeersAvailable","processedApiCall","getViewCode","p2pAvailable","totalPeers","errors","codavelAllBanned","79046yxArnM","uncompressedBytes","started","Consumer","CDN","getPluginVersion","apiCallResponses","getCdnCacheMisses","resetOnPing","getCdnList","42GcVryt","startsWith","bolinaAvailable","highestSegmentBandwidth","throw","sumNetworkLatency","getForceDecision","30aTiZqM","uploadedTime","internal_provider","downloadedBytes","usedOrProbed","minPingTime","downloadedSegments","active","minPeersAvailable","missedDownloadedChunks","forEach","uploadedChunks","takeMax","isEnabled","minBandwidth","codavelSwitches","maxPeersParallelUsed","highestPingTime","BALANCER","unbannedCount","P2PLoader","lateUploadedBytes","samplesResponseBytes","2847888xfGkey","loader"];return(Xl=function(){return x})()}(function(x){let i=ts,r=x();for(;;)try{if(parseInt(i(336))/1*(parseInt(i(230))/2)+parseInt(i(184))/3+parseInt(i(207))/4*(parseInt(i(283))/5)+-parseInt(i(240))/6*(-parseInt(i(312))/7)+parseInt(i(270))/8+parseInt(i(351))/9+parseInt(i(247))/10*(-parseInt(i(212))/11)==231477)break;r.push(r.shift())}catch{r.push(r.shift())}})(Xl);function ts(x,i){let r=Xl();return(ts=function(u,h){return r[u-=139]})(x,i)}class Lr{static[fn(315)](i){let r=fn;return this[r(352)]==null&&i!=null?this[r(352)]=new Lr(i):i!=null&&this._instance!=null&&i?.uuid!=this[r(352)].loader[r(153)]&&(this[r(352)][r(306)](),this._instance=new Lr(i)),this._instance}constructor(i){let r=fn;this.started=!1,this[r(338)]=!1,this[r(187)]=new Map,this[r(198)]=new Map,this[r(154)]="",this[r(174)]="",this.accountCode="",this.profileName="",this[r(178)]="",this[r(206)]=void 0,this.lastReportedCodavelUnbanTime=void 0,this[r(209)]=void 0,this[r(293)]=void 0,this[r(192)]=void 0,this[r(350)]=void 0,this.lastReportedCodavelSwitchesDueToErrors=void 0,this[r(304)]=void 0,this[r(271)]=i}[fn(322)](i,r,u,h,f){var I,L,P,le,K;return L=this,P=void 0,K=function*(){let O=ts;if(this[O(154)]=i,this.token=r,this[O(349)]=u,this[O(186)]=h??"",this[O(178)]=f,!(n.default[O(315)]()[O(170)]()&&this[O(174)][O(241)](O(177))||this[O(232)])){let q=p.xC[O(234)];n.default[O(315)]().pushPeriodicDataFromCallback(n.default[O(315)]()[O(201)]()[O(345)]?ce.default[O(233)][O(190)]:ce.default[O(233)][O(182)],q,q,1e3*this[O(271)][O(316)](),(I=n.default[O(315)]().getCommonVariable(ce.default[O(303)].VIDEO_ANALYTICS,ce.default.AnalyticsVariables[O(219)]))!==null&&I!==void 0?I:c.Method[O(149)],()=>{let E=O;if(n.default[E(315)]()[E(275)]())return qe.default[E(315)]()[E(156)](!0),Lr[E(315)]()[E(306)]()},()=>{let E=O;qe.default[E(315)]()[E(298)](q)}),this[O(232)]=!0}},new((le=void 0)||(le=Promise))(function(O,q){let E=ts;function W(De){let Ke=ts;try{N(K[Ke(318)](De))}catch(ge){q(ge)}}function Ae(De){let Ke=ts;try{N(K[Ke(244)](De))}catch(ge){q(ge)}}function N(De){let Ke=ts;var ge;De[Ke(167)]?O(De.value):(ge=De.value,ge instanceof le?ge:new le(function(tt){tt(ge)}))[Ke(185)](W,Ae)}N((K=K[E(139)](L,P||[]))[E(318)]())})}report(){let i=fn;try{if(!this[i(338)]){let r=this[i(271)].CDNLoader[i(239)](),u=Array.from(r[i(210)]()).every(q=>!q[i(251)]),h=new Map,f;f=u?new Map:new Map(r);let I=0,L=0;this[i(271)][i(305)].updateCodavelBanTimes(),this[i(271)][i(267)][i(148)]();let P=!1;if(f.forEach(q=>{let E=i;q[E(297)]();let W=q.clone(),Ae=this[E(187)][E(280)](q[E(340)]);I+=W[E(323)]||0,L+=W[E(152)]||0;let N={downloadedBytesVideo:W[E(180)],downloadedChunksVideo:W[E(294)],videoTime:W[E(213)],downloadedBytes:W[E(250)],downloadedChunks:W[E(203)],sumResponseBytes:W[E(333)],minResponseBytes:W.minResponseBytes,maxResponseBytes:W[E(281)],samplesResponseBytes:W.samplesResponseBytes,sumResponseTime:W[E(158)],minResponseTime:W[E(214)],maxResponseTime:W[E(217)],samplesResponseTime:W[E(151)],sumNetworkLatency:W[E(245)],minNetworkLatency:W[E(143)],maxNetworkLatency:W[E(278)],samplesNetworkLatency:W[E(175)],sumThroughput:W[E(321)],minThroughput:W[E(197)],maxThroughput:W[E(146)],samplesThroughput:W[E(277)],totalFailures:W.totalFail,http_1XX:W[E(317)],http_2XX:W[E(328)],http_3XX:W[E(145)],http_4XX:W[E(222)],http_5XX:W[E(162)],unbannedTime:W[E(308)],bannedTime:W.bannedTime,compressedBytes:W[E(330)],uncompressedBytes:W[E(231)],switches:W[E(327)],switchesDueToConnectivity:W.switchesDueToConnectivity,switchesDueToErrors:W[E(284)],switchesDueToQuality:W[E(208)],millis:W[E(285)],bannedCount:W[E(150)],unbannedCount:W[E(356)],avgPingTime:W.avgPingTime,minPingTime:W[E(166)]===Number.MAX_SAFE_INTEGER?0:W.lowestPingTime,maxPingTime:W[E(264)],cacheHit:W[E(183)](),cacheMiss:W.getCdnCacheMisses(),minBandwidth:W[E(348)]===Number[E(307)]?0:W.lowestSegmentBandwidth,maxBandwidth:W[E(243)]};Ae&&(N.downloadedBytesVideo-=Ae.downloadedBytesVideo,N[E(294)]-=Ae[E(294)],N.videoTime-=Ae[E(213)],N[E(250)]-=Ae[E(250)],N[E(203)]-=Ae[E(203)],N[E(172)]-=Ae[E(220)],N[E(339)]!=null&&Ae[E(317)]!=null&&(N[E(339)]-=Ae[E(317)]),N[E(334)]!=null&&Ae[E(328)]!=null&&(N[E(334)]-=Ae[E(328)]),N.http_3XX!=null&&Ae[E(145)]!=null&&(N[E(291)]-=Ae[E(145)]),N.http_4XX!=null&&Ae.http4xxResponses!=null&&(N.http_4XX-=Ae[E(222)]),N.http_5XX!=null&&Ae[E(162)]!=null&&(N[E(282)]-=Ae[E(162)]),N[E(330)]!=null&&Ae[E(330)]!=null&&(N.compressedBytes-=Ae[E(330)]),N[E(231)]!=null&&Ae[E(231)]!=null&&(N.uncompressedBytes-=Ae[E(231)]),N[E(327)]!=null&&Ae[E(327)]!=null&&(N[E(327)]-=Ae.switches),N.switchesDueToConnectivity!=null&&Ae[E(141)]!=null&&(N[E(141)]-=Ae[E(141)]),N[E(284)]!=null&&Ae[E(284)]!=null&&(N[E(284)]-=Ae[E(284)]),N.switchesDueToQuality!=null&&Ae[E(208)]!=null&&(N.switchesDueToQuality-=Ae[E(208)]),N.millis-=Ae[E(285)],N[E(150)]-=Ae.bannedCount,N.unbannedCount-=Ae[E(356)],N.avgPingTime-=Ae[E(310)],N[E(252)]=N[E(252)]==0?N[E(252)]:N[E(252)]-Ae[E(166)],N[E(337)]=N[E(337)]==0?N[E(337)]:N[E(337)]-Ae.highestPingTime,N[E(176)]-=Ae.getCdnCacheHits(),N[E(289)]-=Ae[E(237)](),N[E(261)]=N[E(261)]==0?N[E(261)]:N[E(261)]-Ae.lowestSegmentBandwidth,N.maxBandwidth=N[E(161)]==0?N.maxBandwidth:N.maxBandwidth-Ae.highestSegmentBandwidth);let De=q[E(342)]()?E(347):q.provider;if(q[E(342)]())if(P){let Ke=new Hl(De,q[E(249)],!1,q[E(254)],this[E(335)](N.downloadedBytes,ge=>ge!=0),this.takeIf(N[E(203)],ge=>ge!=0),this[E(335)](N[E(172)],ge=>ge!=0),this[E(335)](N[E(299)],ge=>ge!=0),this[E(335)](N.maxBandwidth,ge=>ge!=0),this[E(335)](N[E(261)],ge=>ge!=0),this[E(335)](N[E(310)],ge=>ge!=0),this[E(335)](N[E(252)],ge=>ge!=0),this[E(335)](N[E(337)],ge=>ge!=0),this[E(178)],this[E(335)](N[E(176)],ge=>ge!=0),this[E(335)](N[E(289)],ge=>ge!=0),this.takeIf(N.downloadedBytesVideo,ge=>ge!=0),this.takeIf(N[E(294)],ge=>ge!=0),this.takeIf(N[E(164)],ge=>ge!=0),N[E(333)],this.takeMin(N[E(168)]),this[E(259)](N[E(281)]),N[E(269)],N[E(158)],this[E(159)](N[E(214)]),this[E(259)](N[E(217)]),N.samplesResponseTime,N[E(245)],this[E(159)](N.minNetworkLatency),this[E(259)](N.maxNetworkLatency),N[E(175)],N[E(321)],this[E(159)](N[E(197)]),this[E(259)](N[E(146)]),N[E(277)],this[E(335)](N[E(339)],ge=>ge!=0),this[E(335)](N[E(334)],ge=>ge!=0),this[E(335)](N.http_3XX,ge=>ge!=0),this[E(335)](N[E(204)],ge=>ge!=0),this[E(335)](N[E(282)],ge=>ge!=0),void 0,void 0,this[E(335)](N.uncompressedBytes,ge=>ge!=0),this.takeIf(N[E(330)],ge=>ge!=0),void 0,void 0,void 0,void 0,void 0,void 0,void 0,q.banned,this[E(335)](N.bannedCount,ge=>ge!=0),this[E(335)](N[E(266)],ge=>ge!=0),this[E(335)](N[E(327)],ge=>ge!=0),this[E(335)](N[E(141)],ge=>ge!=0),this[E(335)](N.switchesDueToErrors,ge=>ge!=0),this[E(335)](N[E(208)],ge=>ge!=0),N.bannedTime,N.unbannedTime);h[E(311)](q[E(340)],Ke),this[E(187)].set(q[E(340)],W)}else{let Ke=0;this[E(271)][E(305)][E(313)]!=null&&(Ke=this[E(209)]!=null?this[E(271)].CDNLoader.codavelBanCount-this[E(209)]:this.loader.CDNLoader[E(313)]);let ge=0;this.loader.CDNLoader[E(353)]!=null&&(ge=this[E(293)]!=null?this[E(271)][E(305)][E(353)]-this[E(293)]:this[E(271)][E(305)][E(353)]);let tt=0;this.loader[E(305)].codavelBanTime!=null&&(tt=this[E(206)]!=null?this[E(271)][E(305)][E(344)]-this.lastReportedCodavelBanTime:this.loader[E(305)].codavelBanTime);let $e=0;this[E(271)].CDNLoader.codavelUnbanTime!=null&&($e=this[E(147)]!=null?this[E(271)][E(305)][E(181)]-this.lastReportedCodavelUnbanTime:this[E(271)][E(305)][E(181)]);let ft=0;this[E(271)][E(305)][E(262)]!=null&&(ft=this[E(192)]!=null?this.loader[E(305)][E(262)]-this[E(192)]:this[E(271)][E(305)][E(262)]);let ut=0;this[E(271)][E(305)][E(211)]!=null&&(ut=this.lastReportedCodavelSwitchesDueToQuality!=null?this.loader[E(305)][E(211)]-this[E(350)]:this[E(271)][E(305)].codavelSwitchesDueToQuality);let Y=0;this.loader.CDNLoader[E(320)]!=null&&(Y=this.lastReportedCodavelSwitchesDueToConnectivity!=null?this[E(271)][E(305)][E(320)]-this[E(304)]:this.loader[E(305)][E(320)]);let Ce=0;this.loader.CDNLoader[E(179)]!=null&&(Ce=this[E(287)]!=null?this[E(271)][E(305)][E(179)]-this[E(287)]:this[E(271)].CDNLoader[E(179)]);let ot=new Hl(De,q[E(249)],!1,q[E(254)],this[E(335)](N.downloadedBytes,me=>me!=0),this[E(335)](N[E(203)],me=>me!=0),this.takeIf(N.totalFailures,me=>me!=0),this.takeIf(N.millis,me=>me!=0),this.takeIf(N[E(161)],me=>me!=0),this[E(335)](N[E(261)],me=>me!=0),this[E(335)](N[E(310)],me=>me!=0),this[E(335)](N.minPingTime,me=>me!=0),this[E(335)](N[E(337)],me=>me!=0),this[E(178)],this[E(335)](N.cacheHit,me=>me!=0),this[E(335)](N.cacheMiss,me=>me!=0),this[E(335)](N[E(180)],me=>me!=0),this[E(335)](N.downloadedChunksVideo,me=>me!=0),this.takeIf(N[E(164)],me=>me!=0),N[E(333)],this[E(159)](N[E(168)]),this[E(259)](N[E(281)]),N[E(269)],N[E(158)],this.takeMin(N[E(214)]),this[E(259)](N[E(217)]),N[E(151)],N.sumNetworkLatency,this[E(159)](N[E(143)]),this.takeMax(N[E(278)]),N[E(175)],N[E(321)],this[E(159)](N[E(197)]),this[E(259)](N[E(146)]),N.samplesThroughput,this[E(335)](N[E(339)],me=>me!=0),this[E(335)](N.http_2XX,me=>me!=0),this[E(335)](N.http_3XX,me=>me!=0),this[E(335)](N[E(204)],me=>me!=0),this[E(335)](N.http_5XX,me=>me!=0),$e,tt,this[E(335)](N[E(231)],me=>me!=0),this[E(335)](N[E(330)],me=>me!=0),this[E(335)](ft,me=>me!=0),this[E(335)](Y,me=>me!=0),this[E(335)](Ce,me=>me!=0),this[E(335)](ut,me=>me!=0),this[E(271)][E(305)][E(229)],this[E(335)](Ke,me=>me!=0),this.takeIf(ge,me=>me!=0),q[E(314)],this[E(335)](N[E(150)],me=>me!=0),this[E(335)](N[E(266)],me=>me!=0),this[E(335)](N[E(327)],me=>me!=0),this.takeIf(N[E(141)],me=>me!=0),this[E(335)](N[E(284)],me=>me!=0),this.takeIf(N.switchesDueToQuality,me=>me!=0),N[E(343)],N[E(308)]);h.set(q[E(340)],ot),this.lastCdnStats[E(311)](q[E(340)],W),P=!0}else{let Ke=new Hl(De,q[E(249)],!1,q[E(254)],this[E(335)](N[E(250)],ge=>ge!=0),this.takeIf(N[E(203)],ge=>ge!=0),this.takeIf(N[E(172)],ge=>ge!=0),this[E(335)](N[E(299)],ge=>ge!=0),this[E(335)](N.maxBandwidth,ge=>ge!=0),this[E(335)](N[E(261)],ge=>ge!=0),this[E(335)](N[E(310)],ge=>ge!=0),this[E(335)](N.minPingTime,ge=>ge!=0),this[E(335)](N[E(337)],ge=>ge!=0),this[E(178)],this[E(335)](N[E(176)],ge=>ge!=0),this.takeIf(N.cacheMiss,ge=>ge!=0),this[E(335)](N[E(180)],ge=>ge!=0),this[E(335)](N[E(294)],ge=>ge!=0),this[E(335)](N.videoTime,ge=>ge!=0),N[E(333)],this[E(159)](N[E(168)]),this[E(259)](N[E(281)]),N[E(269)],N.sumResponseTime,this[E(159)](N.minResponseTime),this[E(259)](N.maxResponseTime),N[E(151)],N[E(245)],this[E(159)](N[E(143)]),this[E(259)](N[E(278)]),N[E(175)],N[E(321)],this[E(159)](N.minThroughput),this.takeMax(N.maxThroughput),N[E(277)],this.takeIf(N[E(339)],ge=>ge!=0),this[E(335)](N[E(334)],ge=>ge!=0),this[E(335)](N.http_3XX,ge=>ge!=0),this[E(335)](N[E(204)],ge=>ge!=0),this[E(335)](N[E(282)],ge=>ge!=0),N[E(308)],N[E(343)],this[E(335)](N[E(231)],ge=>ge!=0),this[E(335)](N[E(330)],ge=>ge!=0),this[E(335)](N[E(327)],ge=>ge!=0),this[E(335)](N.switchesDueToConnectivity,ge=>ge!=0),this[E(335)](N[E(284)],ge=>ge!=0),this.takeIf(N[E(208)],ge=>ge!=0),q[E(314)],this[E(335)](N[E(150)],ge=>ge!=0),this[E(335)](N[E(266)],ge=>ge!=0));h.set(q[E(340)],Ke),this.lastCdnStats[E(311)](q.name,W)}}),this[i(271)].P2PLoader[i(260)]()){let q=this.loader[i(267)][i(319)](),E=this[i(198)][i(280)](i(188));I+=q[i(323)]||0,L+=q[i(152)]||0;let W={downloadedBytes:q[i(250)],downloadedChunks:q[i(253)],errors:q[i(292)][i(331)],millis:q[i(285)],maxBandwidth:q[i(161)],minBandwidth:q[i(261)]===Number[i(307)]?0:q[i(261)],avgPingTime:q[i(310)],minPingTime:q[i(252)]===Number.MAX_SAFE_INTEGER?0:q[i(252)],maxPingTime:q[i(337)],downloadMillisVideo:q[i(213)],downloadBytesVideo:q[i(200)],downloadChunksVideo:q[i(301)],uploadedBytes:q[i(272)],uploadedChunks:q[i(258)],uploadedTime:q[i(248)],lateUploadedChunks:q[i(300)],lateUploadedBytes:q.discardedUploadedBytes,lateDownloadedBytes:q[i(193)],missedDownloadedChunks:q.failedRequests[i(302)],timeoutErrors:q[i(292)][i(199)],otherErrors:q[i(292)].error,activePeers:q[i(276)],totalPeers:q[i(227)],sumResponseBytes:q.sumResponseBytes,minResponseBytes:q[i(168)],maxResponseBytes:q.maxResponseBytes,samplesResponseBytes:q[i(269)],sumResponseTime:q[i(158)],minResponseTime:q[i(214)],maxResponseTime:q[i(217)],samplesResponseTime:q[i(151)],sumNetworkLatency:q[i(245)],minNetworkLatency:q[i(143)],maxNetworkLatency:q[i(278)],samplesNetworkLatency:q[i(175)],sumThroughput:q[i(321)],minThroughput:q.minThroughput,maxThroughput:q[i(146)],samplesThroughput:q.samplesThroughput,peersAvailable:q[i(215)],minPeersAvailable:q[i(255)],maxPeersAvailable:q[i(223)],peersUsed:q[i(324)],peersParallelUsed:q[i(325)],minPeersParallelUsed:q[i(346)],maxPeersParallelUsed:q[i(263)],peerDiscoveryTime:q[i(196)],peerConnectionTime:q.peerConnectionTime};E&&(W.downloadedBytes-=E.downloadedBytes,W.downloadedChunks-=E[i(253)],W[i(228)]-=E.failedRequests[i(331)],W[i(299)]-=E[i(285)],W[i(161)]=W[i(161)]==0?W[i(161)]:W.maxBandwidth-E[i(161)],W.minBandwidth=W[i(261)]==0?W[i(261)]:W.minBandwidth-E[i(261)],W[i(310)]-=E[i(310)],W[i(252)]=W.minPingTime==0?W[i(252)]:W[i(252)]-E[i(252)],W[i(337)]=W[i(337)]==0?W[i(337)]:W[i(337)]-E.maxPingTime,W.minPingTime-=E[i(252)],W[i(337)]-=E.maxPingTime,W[i(213)]-=E[i(213)],W[i(200)]-=E[i(200)],W[i(301)]-=E.downloadChunksVideo,W[i(272)]-=E[i(272)],W[i(258)]-=E[i(258)],W.uploadedTime-=E[i(248)],W.lateUploadedChunks-=E[i(300)],W.lateUploadedBytes-=E[i(205)],W[i(142)]-=E[i(193)],W[i(256)]-=E[i(292)][i(302)],W[i(202)]-=E.failedRequests.timeout,W[i(218)]-=E[i(292)].error,W[i(276)]-=E[i(276)],W[i(227)]-=E[i(227)],W[i(215)]!=null&&E.peersAvailable!=null&&(W.peersAvailable-=E[i(215)]),W[i(324)]!=null&&E[i(324)]!=null&&(W[i(324)]-=E[i(324)]),W[i(325)]!=null&&E[i(325)]!=null&&(W[i(325)]-=E[i(325)]),W[i(196)]!=null&&E[i(196)]!=null&&(W[i(196)]-=E[i(196)]),W[i(273)]!=null&&E[i(273)]!=null&&(W[i(273)]-=E[i(273)]));let Ae=new bm(i(188),i(188),!0,this[i(335)](W[i(250)],N=>N!=0),this[i(335)](W[i(203)],N=>N!=0),this[i(335)](W.errors,N=>N!=0),this[i(335)](W[i(299)],N=>N!=0),this[i(335)](W[i(161)],N=>N!=0),this.takeIf(W[i(261)],N=>N!=0),this[i(335)](W.avgPingTime,N=>N!=0),this[i(335)](W[i(252)],N=>N!=0),this.takeIf(W[i(337)],N=>N!=0),this.resource,this[i(335)](W.downloadBytesVideo,N=>N!=0),this[i(335)](W[i(301)],N=>N!=0),this[i(335)](W.downloadMillisVideo,N=>N!=0),this[i(335)](W[i(272)],N=>N!=0),this[i(335)](W[i(258)],N=>N!=0),this[i(335)](W[i(248)],N=>N!=0),this[i(335)](W[i(329)],N=>N!=0),this[i(335)](W[i(268)],N=>N!=0),this[i(335)](W[i(142)],N=>N!=0),this[i(335)](W[i(256)],N=>N!=0),this.takeIf(W[i(202)],N=>N!=0),this[i(335)](W.otherErrors,N=>N!=0),this[i(335)](W[i(276)],N=>N!=0),this[i(335)](W[i(227)],N=>N!=0),W[i(333)],W[i(168)],W[i(281)],W[i(269)],W[i(158)],W[i(214)],W[i(217)],W[i(151)],W[i(245)],W[i(143)],W[i(278)],W.samplesNetworkLatency,W[i(321)],W[i(197)],W[i(146)],W[i(277)],this[i(335)](W.peersAvailable,N=>N!=0),this[i(259)](W.maxPeersAvailable),this[i(159)](W.minPeersAvailable),this[i(335)](W[i(324)],N=>N!=0),this[i(335)](W[i(325)],N=>N!=0),this[i(259)](W[i(263)]),this[i(159)](W[i(346)]),this.takeIf(W[i(196)],N=>N!=0),this[i(335)](W[i(273)],N=>N!=0));h[i(311)](i(188),Ae),this[i(198)].set(i(188),q)}let le={};h[i(257)]((q,E)=>{le[E]=q});let K=L>0?8*I*1e3/L:0,O;if(n.default[i(315)]()[i(274)](ce.default[i(303)][i(265)],ce.default.BalancerVariables.BALANCER_TRAFFIC,I),n.default[i(315)]()[i(274)](ce.default[i(303)][i(265)],ce.default.BalancerVariables[i(221)],K),this[i(271)][i(305)][i(224)]&&(O=new Em(this[i(271)][i(305)].apiCallErrors,this[i(271)][i(305)][i(236)],this[i(271)][i(305)][i(155)]!==void 0?Math[i(354)](this.loader[i(305)].minApiCallResponseTime):void 0,this[i(271)].CDNLoader[i(144)]!==void 0?Math.trunc(this[i(271)].CDNLoader[i(144)]):void 0,this[i(271)].CDNLoader[i(169)]!==void 0?Math[i(354)](this.loader[i(305)][i(169)]):void 0,this[i(271)].CDNLoader[i(296)](),this[i(271)][i(305)][i(341)](),this[i(174)],this[i(271)][i(305)][i(246)](),"Plugin",this[i(271)][i(305)][i(226)],this[i(271)].CDNLoader[i(242)],this[i(271)][i(305)][i(326)],this[i(271)].CDNLoader[i(160)],this[i(271)][i(305)][i(286)](),this[i(271)].CDNLoader[i(309)])),f[i(257)](q=>{q[i(238)]()}),this.loader[i(267)][i(260)]()&&this.loader.P2PLoader.resetOnPing(),this[i(271)][i(305)][i(238)](),o.default.verbose(c.BalancerTag,i(195)+JSON.stringify(le)),h.size>0)return this[i(290)](this.token,this[i(349)],this[i(186)],this.resource,JSON.stringify(le),O)}}catch{}}hasValuesChanged(i){let r=fn;return Object.keys(i)[r(189)](u=>i[u]!=0)}takeIf(i,r){return i!==void 0&&r(i)?i:void 0}[fn(159)](i){return i!==void 0?i:Number[fn(307)]}[fn(259)](i){return i!==void 0?i:Number[fn(216)]}[fn(290)](i,r,u,h,f,I){let L=fn;if(f==""||f=="{}")return;let P={};return P=I!=null?{timemark:new Date()[L(191)](),code:n.default[L(315)]()[L(170)]()?n.default[L(315)]().getViewCode():i,sessionRoot:n.default[L(315)]()[L(355)](),v:n.default[L(235)]()[L(140)](L(157))[0],pluginVersion:n.default[L(235)](),pingTime:n.default[L(315)]()[L(288)]()[L(332)](),token:i,accountCode:r,profileName:u,data:f,api_errors:I[L(173)],api_responses:I[L(236)],api_min_response_time:I[L(171)],api_avg_response_time:I[L(163)],api_max_response_time:I[L(163)],bucket:I.bucket,is_live:I[L(279)],video_id:I.videoId,force_decision:I[L(194)],request_platform:I.requestPlatform,p2p_available:I[L(226)],bolina_available:I[L(242)],active_switching_priority:I[L(326)],priority_cdn:I[L(160)],chunk_duration:I[L(295)],announced_cdns:I[L(309)]}:{timemark:new Date()[L(191)](),code:n.default.getInstance().isUsingLegacy()?n.default[L(315)]()[L(225)]():i,sessionRoot:n.default.getInstance().getFastDataSessionToken(),v:n.default.getPluginVersion().split(L(157))[0],pingTime:n.default.getInstance().getFastDataService()[L(332)](),token:i,accountCode:r,profileName:u,data:f},P}}let Au={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},Xa,Cm=new Uint8Array(16);function Am(){if(!Xa&&(Xa=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xa(Cm)}let Bi=[];for(let x=0;x<256;++x)Bi.push((x+256).toString(16).slice(1));let wm=function(x,i,r){if(Au.randomUUID&&!i&&!x)return Au.randomUUID();let u=(x=x||{}).random||(x.rng||Am)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,i){r=r||0;for(let h=0;h<16;++h)i[r+h]=u[h];return i}return function(h,f=0){return Bi[h[f+0]]+Bi[h[f+1]]+Bi[h[f+2]]+Bi[h[f+3]]+"-"+Bi[h[f+4]]+Bi[h[f+5]]+"-"+Bi[h[f+6]]+Bi[h[f+7]]+"-"+Bi[h[f+8]]+Bi[h[f+9]]+"-"+Bi[h[f+10]]+Bi[h[f+11]]+Bi[h[f+12]]+Bi[h[f+13]]+Bi[h[f+14]]+Bi[h[f+15]]}(u)},Jt=is;function $l(){let x=["host","Request was canceled due a timeout -> ","cdnProvider","bandwidthPosition","981830aPclPJ","timeout","loadCDNBalancerData","downloadMillis","getInstance","realBodySize","delete","getCommonVariable","byteLength","getRendition","2748486VaPjSw","loadStartEM","enableCDN will be deprecated use setActive instead.","data","_$1","dynamicRules","DeviceVariables","error","loadEM","downloadedSegments","progressEM","processSegment","onProcessSegmentFail","getReportInterval","set","targetDuration","9616140uOUFqx","profileName","_options","1049793yzLtJR","isManifest","setMaxBandwidth","debug","storeSegment","changeStatusCDN","totalBandwidth","bucketName","updateProgressStats","status","setManifestResource","total","balanceManifests","disable","50124TgZgsy","getFastDataSessionToken","getMaxBandwidth","VIDEO_ANALYTICS","href","rendition","downloadedBytes","enableCDN","allowSpecialDelimitersInUrl","cdnName","statusCode","_resource","isEnabled","AnalyticsVariables","VIEW_CODE","apply","toString","updateCDNStatsOnFailure","7gKdsIn","P2P","Products","setActive","warn","Detected rendition -> ","_balancerBusinessObject","getStats","DEVICE_ANALYTICS","jwtAuthType","onProcessSegmentSuccess","requestReadTimeout","CDNLoader","uuid","next","updateTime","reportTime","size","SEGMENT FAILED WITH STATUS ","duration","newDownloadedSegment","push","storage","Fail","value","onAbort","url","760150bHXEst","setMaxBandwith","then","getResponseHeader","d1.npaw.com","enable","forceDecisionCall","headers","limit","camelToSnake","_accountCode","response","getVideoRenditions"," for "," isAudio ","P2P PATH FOR ID ","signManifestUsingApi","failed","totalDownloadedBytes","segmentsMap","APP_ANALYTICS_DEVICE_STRING"," -> ","throw","trunc","_segments","pathname","37kqYbqc","now","retries","bandwidth","loadBalancerData","jwtToken","getSegment","length","1677808Nbbsdw","currentRenditionPos","getActiveRequests","onProgress","12tJomkK","updateUrl","readTimeoutMilliseconds","verbose","isMedia","statsReportBusinessObject","route","apiHost","off","Success","timeBetweenHeads","P2PLoader","removeActiveSegment","hasOwnProperty","Segment request failed, no more retries ","onSuccess","done","resource","triedP2P","currentRenditionBandwidth","useP2P"];return($l=function(){return x})()}(function(x){let i=is,r=x();for(;;)try{if(parseInt(i(390))/1*(parseInt(i(319))/2)+parseInt(i(456))/3*(-parseInt(i(402))/4)+-parseInt(i(427))/5+-parseInt(i(437))/6+-parseInt(i(337))/7*(-parseInt(i(398))/8)+parseInt(i(453))/9+parseInt(i(364))/10==577255)break;r.push(r.shift())}catch{r.push(r.shift())}})($l);function is(x,i){let r=$l();return(is=function(u,h){return r[u-=308]})(x,i)}class $a{constructor(i,r,u){let h=is;this._segments=new Map,this[h(383)]=new Map,this[h(331)]=!0,this[h(374)]=i,this[h(455)]=r,this[h(330)]=new ym,this.storage=new ri(this),this.apiHost=u,this[h(455)][h(412)]&&this._options[h(412)]>=1e3&&(p.wc.timeBetweenBurstsMilliseconds=this._options[h(412)]),this[h(413)]=new je(this[h(374)],r,this[h(359)]),this[h(349)]=new bt(r,this[h(330)],this[h(413)],this[h(409)]),this[h(407)]=Lr.getInstance(this),te[h(431)](this),ct[h(431)](this.P2PLoader),this[h(350)]=wm();let f=new vm(this,r?.[h(346)],r?.[h(395)]);this[h(343)]=f,(r[h(370)]||r[h(380)])&&this[h(429)](!0)}[Jt(450)](){let i=Jt;return!this[i(455)][i(353)]||this._options[i(353)]<1?5:this[i(455)][i(353)]}[Jt(373)](i){let r=Jt,u={};for(let h in i)i[r(415)](h)&&(u[h.replace(/([A-Z])/g,r(441)).toLowerCase()]=i[h]);return u}[Jt(429)](i){let r=Jt;var u,h,f,I,L,P,le,K,O,q;let E=this[r(455)][r(442)]?JSON.stringify(this[r(373)](this._options.dynamicRules)):"",W=n.default[r(431)]().getCommonVariable(ce.default[r(339)][r(345)],ce.default[r(443)][r(384)])||"";i!=null&&i&&this[r(343)][r(394)](this._accountCode,"/",(u=this[r(455)].isLive)!==null&&u!==void 0&&u,(h=this._options[r(352)])!==null&&h!==void 0?h:0,(f=this[r(455)].debug)!==null&&f!==void 0&&f,(I=this[r(455)].isDev)!==null&&I!==void 0&&I,(L=this[r(455)].signManifestUsingApi)!==null&&L!==void 0&&L,this[r(455)].profileName,this[r(455)].bucketName,this[r(455)][r(423)],E,W),this[r(455)][r(419)]&&this[r(455)][r(419)]!=""&&this[r(343)][r(394)](this[r(374)],this._options[r(419)],(P=this[r(455)].isLive)!==null&&P!==void 0&&P,(le=this[r(455)].updateTime)!==null&&le!==void 0?le:0,(K=this[r(455)][r(308)])!==null&&K!==void 0&&K,(O=this[r(455)].isDev)!==null&&O!==void 0&&O,(q=this._options[r(380)])!==null&&q!==void 0&&q,this._options.profileName,this._options[r(312)],this[r(455)].host,E,W)}[Jt(448)](i,r,u,h,f=p._C[Jt(392)],I=!1,L){let P=Jt,le=_[P(406)](i[P(389)]),K=!le&&_[P(457)](i[P(389)],this[P(455)].allowSpecialDelimitersInUrl),O=this[P(413)][P(331)]()&≤o.default[P(405)](c.BalancerTag,P(379)+i.pathname);let q=new mm(i[P(389)],i[P(323)],this[P(330)],h,f,O,I);if(q.download=r,q[P(371)]=h,this[P(388)][P(451)](q.id,q),!K){let N=this._resource[P(436)](i.pathname);N!=null&&(o.default[P(405)](c.BalancerTag,P(342)+N[P(393)]+" "+N?.[P(426)]+P(378)+N.isAudio+P(377)+i),q[P(356)]=N[P(452)],q[P(324)]=N,!N.isAudio&&(this[P(349)][P(421)]=N[P(393)],this.CDNLoader[P(399)]=N.bandwidthPosition+1,this[P(349)].renditionCount=this._resource[P(376)]()[P(354)]))}this[P(330)]&&this._resource.clean();let E=n.default.getInstance()[P(434)](ce.default[P(339)][P(322)],ce.default[P(332)][P(333)]),W=n.default[P(431)]()[P(320)]()+(E?"_"+E:"");!W&&(W=this[P(350)]),this.statsReportBusinessObject.updateData(P(368),W,this[P(374)],this[P(455)][P(454)],i[P(335)]()),q[P(457)]=K,q.isMedia=le,r&&(q.on(p.yL[P(411)],N=>{return De=this,Ke=void 0,tt=function*(){this[P(347)](q),u[0](q)},new((ge=void 0)||(ge=Promise))(function($e,ft){function ut(ot){let me=is;try{Ce(tt[me(351)](ot))}catch(pe){ft(pe)}}function Y(ot){let me=is;try{Ce(tt[me(386)](ot))}catch(pe){ft(pe)}}function Ce(ot){let me=is;var pe;ot[me(418)]?$e(ot[me(361)]):(pe=ot.value,pe instanceof ge?pe:new ge(function(Ue){Ue(pe)}))[me(366)](ut,Y)}Ce((tt=tt[is(334)](De,Ke||[])).next())});var De,Ke,ge,tt}),q.on(p.yL[P(360)],N=>{let De=P;this[De(449)](q,!0),q.retries==0&&u[De(397)]>1&&u[1](),o.default[De(444)](c.BalancerTag,De(416)+q[De(408)])}));let Ae=this[P(349)].updateUrl(q);return q[P(457)]&&this[P(455)][P(317)]&&(q[P(363)]=Ae??q[P(363)]),Ae!==P(338)?this.CDNLoader[P(400)]()[P(451)](q.id,q):(q[P(328)]=P(338),q[P(425)]=P(338),this.P2PLoader.request(q,void 0)),q.startTime=Date[P(391)](),q}[Jt(449)](i,r){let u=Jt,h=i[u(328)];i[u(381)]=!0,this[u(349)][u(336)](h,i),i[u(420)]&&i[u(422)]==1&&(i[u(422)]=!1,this[u(349)][u(403)](i))}[Jt(347)](i){let r=Jt;te[r(431)]()[r(357)](i),ct.getInstance()[r(357)](i),i.off(p.yL.Success),i[r(410)](p.yL[r(360)]);let u=this.CDNLoader[r(321)](i[r(328)]);u>0&&new _m()[r(372)](u,i),this[r(349)].updateCDNStatsOnSuccess(i),this[r(349)][r(414)](i),this[r(413)].isEnabled()&&i[r(406)]&&!this[r(413)][r(396)](i)&&this[r(413)][r(309)](i),this[r(388)][r(433)](i.id)}[Jt(326)](i,r){let u=Jt;return o.default[u(341)](c.BalancerTag,u(439)),this[u(340)](i,r)}setActive(i,r){let u=Jt;return i===u(338)?(r?this[u(413)].enable():this[u(413)].disable(),!0):this[u(349)][u(310)](i,r)}[Jt(365)](i,r){let u=Jt;return i!==u(338)&&(this[u(349)][u(458)](i,r)||!1)}[Jt(362)](i,r){let u=Jt;r&&!r.failed&&r[u(428)]&&(o.default[u(308)](c.BalancerTag,u(424)+r[u(363)]),this[u(449)](r,!1))}[Jt(445)](i,r,u){}[Jt(438)](i,r,u){let h=Jt;r!=null&&u[h(316)]>0&&this[h(413)][h(331)]()&&r.isMedia&&!this[h(413)].getSegment(r)&&i[h(375)]&&i[h(375)].byteLength&&i[h(375)][h(435)]>0&&(r[h(440)]=i[h(375)],r.realBodySize=u[h(316)],this[h(413)][h(309)](r))}[Jt(447)](i,r,u){let h=Jt;r!=null&&(this[h(413)][h(331)]()&&r[h(406)]&&!this.P2PLoader[h(396)](r)&&i[h(375)]&&i[h(375)][h(435)]&&i[h(375)][h(435)]>0&&(o.default.debug(c.BalancerTag,"the status is -> "+i[h(314)]),r[h(440)]=i[h(375)],u[h(316)]>0&&(r[h(432)]=u[h(316)]),this.P2PLoader[h(309)](r)),r[h(401)](i,u),this[h(349)][h(313)]())}readyStateChangeEM(i,r,u){let h=Jt;switch(i.readyState){case 2:r&&!r[h(348)]&&(r[h(348)]=setTimeout(()=>this.timeout(i,r),p._C[h(404)]));break;case 4:if(r!=null){if(clearTimeout(r.requestReadTimeout),delete r[h(348)],r[h(329)]=i[h(314)],i[h(314)]>=200&&i[h(314)]<400){let f=r[h(417)](i[h(375)],i[h(367)]("Content-Length")||"0",u.options[h(327)]);return r[h(457)]&&u[h(315)](r[h(363)]),f?this[h(347)](r):this[h(449)](r,!1),!0}return o.default[h(308)](c.BalancerTag,h(355)+i.status+h(385)+r.id),this.onProcessSegmentFail(r,!1),!1}}return!0}[Jt(428)](i,r){r[Jt(428)]=!0,i.abort()}loadEndEM(i,r,u){}errorEM(i,r,u){}[Jt(344)](){let i=Jt,r=this[i(349)][i(344)](),u=this[i(413)].getStats(),h=!1,f=0;return u&&this[i(413)]&&this.CDNLoader[i(344)]()[i(382)]>0&&(h=!0,f=8*u[i(325)]/(u[i(430)]/1e3)),this[i(413)][i(331)]()&&(r.cdns[i(358)]({downloadedBytes:u[i(325)]||0,downloadedChunks:u[i(446)]||0,bandwidth:Math[i(387)](f||0),instantBandwidth:Math.trunc(0),lastInstantBandwidth:Math[i(387)](0),peakBandwidth:Math[i(387)](0),failures:0,totalFailures:0,retries:0,downloadTime:u.downloadMillis,provider:"P2P",profileName:i(338),isActive:this.P2PLoader[i(331)](),ptb:0,usedOnce:h,hugeChunks:0,firstHugeChunkSize:0,lastChunksLapse:0,maxBandwidth:0,banned:!1,lastBandwidth:0,scoringBandwidth:0}),r[i(311)]=r[i(311)]+(u.downloadAvgBw||0),r[i(382)]=r[i(382)]+(u[i(325)]||0)),r}[Jt(369)](){this[Jt(331)]=!0}[Jt(318)](){this[Jt(331)]=!1}getIsEnabled(){return this[Jt(331)]}}let ci=ns;(function(x){let i=ns,r=x();for(;;)try{if(-parseInt(i(384))/1*(parseInt(i(274))/2)+parseInt(i(293))/3+parseInt(i(360))/4*(-parseInt(i(355))/5)+-parseInt(i(393))/6*(parseInt(i(361))/7)+-parseInt(i(365))/8*(-parseInt(i(261))/9)+-parseInt(i(348))/10+parseInt(i(321))/11*(parseInt(i(330))/12)==709605)break;r.push(r.shift())}catch{r.push(r.shift())}})(Yl);function ns(x,i){let r=Yl();return(ns=function(u,h){return r[u-=248]})(x,i)}function Yl(){let x=["sliceByFirstSpecial","defineProperty","P2P","P2PLoader","getAllResponseHeaders","undefined","media","realBodySize","getPeers","getLoader","updateP2PId"," downloaded through P2P. Size: ","responseType","apiHost","components","isAsync","length","responseHeader","response"," peer version ","_accountCode","getNewUrl","STREBOOS","CDNLoader","setManifestResource","P2P DISPATCH LOAD END","peers: ","loadStartEM","segments-> (","loadEndEM","getVersion","6300468eGsudp","timeouts","useP2P"," real size-> ","toFixed"," segmnet p2p id -> ","send","ms id:","isSubtitles","abort","peer","forceHttp","P2P TIMEOUTERROR ","92zRCIMI","onreadystatechange","readyStateChangeEM"," last length -> ","setResourceInfo","prototype","url","downloadedBytes","verbose","Fetching segment via P2P for -> ","split","error","P2P TIMEOUTERROR BY ME: ","isDev","P2P Error on event ready state change","notice","addEventListener","dispatchEvent"," ip: ","3986562BoWSRh","disable","segment","request","headers","Sending join to tracker due to new manifest","&rnpaw=","P2P Error on event load start","P2P2 Download done -> ","DONE","loadstart","now","startsWith"," UniqPeers: ","useTheoplayer"," TIMEOUTS ","getSegment","setRequestHeader","P2P Error on event load event","getIsEnabled","loader","FORCE","responseURL","trim","balancer","__awaiter"," peer id: ","host","478302BavNsb","set","overrideMimeType","size","next","sendJoin","getInstance","manifest","readystatechange","492TBZznH","openAndSend","throw","getResponseHeader","getUploadRequestsFailed","resource","done","progressEM","processSegment","Fetching segment via CDN for -> ","getUploadedBytes","ms timeout: ","resetP2PConnection"," PEER ID -> ","isEnabled","load"," peer id -> ","P2P DISPATCH LOAD ","6225890hzcGGr","Error on request ","balanceAudio","loadInterceptor","loadend","isManifest","timeout","175QbqpKV","open","P2P DISPATCH LOAD START","getUploadRequests","enable","122164arkyFF","1953npFmvc","join","lastDecisionTimestamp","allResponseHeader","8ueadJi","string","body","arraybuffer","then","statusText","connectTimeoutMilliseconds","getIp","interceptors","setInterceptedRequests","toString","defaultChunkDownloadTimeout","options","elapsedTime"," peer version: "," size -> ","P2P/SMB Traffic ","pathname","value","18212WQnRsW","requestHeader","loadCDNBalancerData","isAudio","provider","retryBecauseNewHeaders","slice","setOptions","search","12318fxLkfB","origRes","credentials","map","includes","shift","getUploadedChunks","HTTP for -> ","removeInterceptors","readyState","isMedia","isTheoplayer","data","blob","P2P Error on event load end","status","getPeersAhead","downloadedChunks","allowSpecialDelimitersInUrl","destroy","stopMonitor","simpleRequest","signManifestUsingApi","kb ","reload","getActiveRequests","byteLength"," original -> ","entries","devHost","getId","debug","getRecommendedManifest","searchParams","call","isBitmovin"];return(Yl=function(){return x})()}class Sm extends d{constructor(i,r){let u=ci;var h;if(super(),this[u(344)]=!0,this[u(376)]=0,this[u(428)]=!1,this[u(404)]=!1,this.lastDecisionTimestamp=0,this[u(442)]="gnsnpaw.com",this._accountCode=i,this[u(377)]=new V,this[u(313)]=new $a(this[u(250)],this[u(377)],this[u(442)]),this[u(373)]=new D(this),r&&typeof((h=r[u(443)])===null||h===void 0?void 0:h.balancer)!==u(434)&&!r[u(443)][u(317)])return this[u(344)]=!1,this[u(313)][u(294)](),void this[u(313)][u(432)][u(294)]();let f=this;this[u(446)]=XMLHttpRequest[u(279)][u(333)],XMLHttpRequest[u(279)].getResponseHeader=function(I){let L=u;return f[L(446)][L(427)](this,I)},this[u(364)]=XMLHttpRequest.prototype[u(433)],XMLHttpRequest[u(279)][u(433)]=function(){let I=u;return f.allResponseHeader[I(427)](this)},this[u(270)]=XMLHttpRequest[u(279)][u(270)],XMLHttpRequest.prototype[u(270)]=function(){let I=u,L=this.segment;f.getLoader().onAbort(this,L),f[I(270)][I(427)](this)},this.overrideMimeType=XMLHttpRequest[u(279)][u(323)],XMLHttpRequest[u(279)].overrideMimeType=function(I){f[u(323)].call(this,I)},this[u(385)]=XMLHttpRequest[u(279)][u(310)],XMLHttpRequest[u(279)][u(310)]=function(I,L,...P){let le=u,K=this[le(295)];K&&(K[le(297)][I]=L,K[le(389)]=K[le(389)]==0?1:K[le(389)]),f[le(385)][le(427)](this,I,L,...P)},this[u(267)]=XMLHttpRequest[u(279)][u(267)],XMLHttpRequest[u(279)].send=function(I,...L){var P,le,K,O,q,E,W,Ae,N,De,Ke,ge,tt,$e,ft,ut;return tt=this,$e=void 0,ut=function*(){let Y=ns;(!this[Y(354)]||this.timeout>p._C[Y(371)])&&this.isAsync&&(this[Y(354)]=p._C[Y(371)]);let Ce=this[Y(295)];if((!f[Y(344)]||!Ce||Ce[Y(353)])&&(!Ce||!((P=f[Y(377)].balanceManifests)!==null&&P!==void 0&&P||(le=f.options[Y(415)])!==null&&le!==void 0&&le)))return void f[Y(267)][Y(427)](this,I,...L);if(Ce[Y(389)]==1)return Ce[Y(389)]=2,Ce[Y(439)](),void f.openAndSend(this,Ce);try{let pe=f.getLoader().getStats().cdns,Ue=0,nt=0,lt=0,yt=0,Ct=0,ei=0,$t=((K=f[Y(438)]())===null||K===void 0?void 0:K[Y(432)][Y(340)]())||0,wt=((O=f.getLoader())===null||O===void 0?void 0:O[Y(432)][Y(399)]())||0;$t=$t/1024/1024;for(let _i=0;_i0&&Ue?.[Y(419)]===me?.realBodySize&&me?.[Y(436)]&&me?.realBodySize>0,lt=0;for(;!nt;)yield new Promise(yt=>setTimeout(yt,20)),me=f[Y(313)].P2PLoader[Y(309)](Ce),Ue=me?.[Y(405)],lt=Ue?.[Y(419)]||0,nt=me&&me?.[Y(436)]>0&&me?.data[Y(419)]>0&&Ue?.[Y(419)]===me?.[Y(436)]&&me?.[Y(436)]!=null,Date[Y(304)]()-ot>p.LI[Y(354)]?(nt=!0,Ue=void 0,pe=!0,o.default.verbose(c.BalancerTag,Y(286)+f[Y(313)][Y(432)][Y(423)]()+" TIME: "+(Date[Y(304)]()-ot)+Y(319)+Ce[Y(271)].id+Y(379)+Ce.peer[Y(260)]()+Y(292)+Ce[Y(271)][Y(372)]()+" "+lt/(me?.realBodySize||1)*100+"%")):Date[Y(304)]()-ot>2e3&&(me==null||me[Y(405)]==null||lt<20)&&(nt=!0,Ue=void 0,pe=!0,o.default[Y(282)](c.BalancerTag,"P2P TIMEOUTERROR BY NO DATA ME:"+f[Y(313)][Y(432)][Y(423)]()+" "+(Date[Y(304)]()-ot>2e3)+" peer id: "+Ce[Y(271)].id+" peer version: "+Ce[Y(271)][Y(260)]()+" ip: "+Ce.peer[Y(372)]()+Y(277)+lt));if(Ue&&(Ue=Ue[Y(390)](0,Ue.byteLength)),pe&&(Ce.peer&&(Ce[Y(271)][Y(262)]=Ce[Y(271)][Y(262)]+1),o.default[Y(282)](c.BalancerTag,Y(273)+Ce[Y(394)]+" "+Ce.id+" "+((Ae=me?.[Y(405)])===null||Ae===void 0?void 0:Ae[Y(419)])+" "+me?.[Y(436)]+Y(343)+((N=Ce[Y(271)])===null||N===void 0?void 0:N.id)+Y(308)+Ce.peer.timeouts)),o.default[Y(282)](c.BalancerTag,"P2P READY FOR "+Ce.origRes+" "+Ue?.[Y(419)]+" "+me?.[Y(436)]+Y(346)+Ce[Y(271)].id+Y(266)+Ce.p2pId),me=f[Y(313)][Y(432)].getSegment(Ce),Ue&&((De=me?.[Y(405)])===null||De===void 0?void 0:De.byteLength)==me?.[Y(436)]&&me?.realBodySize!=null&&me?.realBodySize>0){o.default[Y(289)](c.BalancerTag,Ce[Y(394)]+Y(440)+(((Ke=me?.[Y(405)])===null||Ke===void 0?void 0:Ke[Y(419)])/1048576)[Y(265)](2)+"MB"),Ue instanceof Uint8Array&&(Ue=Ue.buffer);let yt=new CustomEvent("readystatechange"),Ct=new CustomEvent(Y(352)),ei=new CustomEvent(Y(345)),$t=new CustomEvent(Y(303));Object.defineProperty(this,Y(248),{writable:!0}),Object[Y(430)](this,Y(408),{writable:!0}),Object[Y(430)](this,"statusText",{writable:!0}),Object[Y(430)](this,Y(402),{writable:!0}),Object[Y(430)](this,Y(419),{writable:!0}),Object[Y(430)](this,"responseURL",{writable:!0}),Object[Y(430)](this,Y(441),{writable:!0}),this[Y(419)]=Ue[Y(419)],this[Y(248)]=Ue,this.status=200,this[Y(370)]="OK",this[Y(402)]=XMLHttpRequest[Y(302)],this[Y(315)]=Ce[Y(394)],this[Y(441)]=Y(368),o.default.verbose(c.BalancerTag,Y(357));try{this[Y(291)]($t)}catch{o.default.verbose(c.BalancerTag,Y(300))}yield new Promise(wt=>setTimeout(wt,6)),o.default[Y(282)](c.BalancerTag,"P2P DISPATCH READY STATE");try{this[Y(291)](yt)}catch{o.default[Y(282)](c.BalancerTag,Y(288))}o.default.verbose(c.BalancerTag,Y(347));try{this[Y(291)](ei)}catch{o.default[Y(282)](c.BalancerTag,Y(311))}o.default.verbose(c.BalancerTag,Y(255));try{this[Y(291)](Ct)}catch{o.default[Y(282)](c.BalancerTag,Y(407))}o.default[Y(282)](c.BalancerTag,Y(301)+(Date[Y(304)]()-ot)+Y(268)+Ce.p2pId+Y(380)+Ue[Y(419)]/1024+Y(416)+Ce.origRes+Y(249)+Ce.peer[Y(260)]()+Y(292)+Ce[Y(271)][Y(372)]())}else o.default[Y(282)](c.BalancerTag,"P2P Failure Update url on problems with p2p "+(Date[Y(304)]()-ot)+Y(341)+p.LI[Y(354)]+" byte length-> "+((ge=me?.[Y(405)])===null||ge===void 0?void 0:ge[Y(419)])+Y(264)+me?.[Y(436)]+Y(420)+Ce[Y(394)]),Ce[Y(272)]=!0,f[Y(438)]()[Y(253)][Y(418)]().set(Ce.id,Ce),f.getLoader()[Y(253)].updateUrl(Ce),f[Y(331)](this,Ce)}},new((ft=void 0)||(ft=Promise))(function(Y,Ce){let ot=ns;function me(nt){try{Ue(ut.next(nt))}catch(lt){Ce(lt)}}function pe(nt){let lt=ns;try{Ue(ut[lt(332)](nt))}catch(yt){Ce(yt)}}function Ue(nt){let lt=ns;var yt;nt[lt(336)]?Y(nt[lt(383)]):(yt=nt[lt(383)],yt instanceof ft?yt:new ft(function(Ct){Ct(yt)}))[lt(369)](me,pe)}Ue((ut=ut.apply(tt,$e||[]))[ot(325)]())})},this.open=XMLHttpRequest[u(279)][u(356)],XMLHttpRequest[u(279)].open=function(I,L,P=!0,...le){let K=u;var O;if(this[K(444)]=P,!f.isEnabled)return f[K(356)][K(427)](this,I,L,P,...le);let q=L;typeof L!==K(366)&&(q=L[K(375)]());let E=q,W=E[K(284)]("?");E=_[K(429)](E,f[K(377)][K(411)]);try{let Ae=new URL(E),N=_.isManifest(Ae[K(382)]),De=_[K(403)](Ae[K(382)]),Ke=_[K(387)](Ae[K(382)]),ge=_[K(269)](Ae.pathname);if(this[K(295)]==null&&Object[K(430)](this,K(295),{writable:!0}),q[K(397)](K(299))||q[K(397)]("?rnpaw=")){let tt=new URL(q),$e=tt[K(426)];$e.delete("rnpaw"),tt[K(392)]=$e[K(375)](),L=tt[K(375)]()}else if(I==="GET"&&(N||De||Ke&&f[K(377)][K(350)]||ge&&f[K(377)].balanceSubtitles)){let tt;W[K(445)]>1&&(tt=W[1]);let $e=this[K(295)];$e==null&&($e=f[K(414)](W[0],tt,{})),this[K(295)]==null&&(this[K(295)]=$e),this[K(290)](K(345),function(Y){let Ce=K;f[Ce(438)]()[Ce(257)](this,$e,Y)}),this.addEventListener("loadstart",function(Y){let Ce=K;f[Ce(438)]()[Ce(257)](this,$e,Y)});let ft=this.onreadystatechange,ut=Y=>{let Ce=K;ft?.[Ce(427)](this,Y),f[Ce(438)]()[Ce(276)](this,$e,f)};return f[K(428)]||f[K(404)]?this[K(275)]=ut:this[K(290)](K(329),ut),this.addEventListener("progress",function(Y){let Ce=K;f[Ce(438)]()[Ce(337)](this,$e,Y)}),this[K(290)]("loadend",function(Y){let Ce=K;f.getLoader()[Ce(259)](this,$e,Y)}),this[K(290)](K(285),function(Y){}),f.open[K(427)](this,I,$e.getNewUrl((O=f[K(377)][K(415)])!==null&&O!==void 0&&O),P,...le)}}catch{o.default.debug(c.BalancerTag,"Could not parse URL "+E)}return o.default[K(424)](c.BalancerTag,"XHR-not-intercepted -> "+L),f.open.call(this,I,L,P,...le)}}[ci(412)](){let i=ci;o.default[i(424)](c.BalancerTag,"Destroying CDN Balancer"),te[i(327)]()[i(413)](),this.loader[i(432)].destroy(),this[i(344)]&&(XMLHttpRequest.prototype[i(333)]=this[i(446)],XMLHttpRequest[i(279)][i(433)]=this[i(364)],XMLHttpRequest[i(279)][i(270)]=this.abort,XMLHttpRequest[i(279)][i(323)]=this.overrideMimeType,XMLHttpRequest[i(279)][i(310)]=this[i(385)],XMLHttpRequest[i(279)][i(267)]=this[i(267)],XMLHttpRequest.prototype[i(356)]=this.open),this.interceptors[i(401)]()}getAccountCode(){return this[ci(250)]}[ci(391)](i){let r=ci;var u;for(let h in i)this[r(377)][h]=i[h];this[r(442)]=((u=this[r(377)].host)!==null&&u!==void 0?u:this[r(377)][r(287)])?p.df[r(422)]:p.df[r(320)],this[r(313)]=new $a(this._accountCode,this.options,this[r(442)])}[ci(331)](i,r){let u=ci;var h,f;try{i[u(356)]("GET",r[u(251)]((h=this.options[u(415)])!==null&&h!==void 0&&h)),r?.[u(297)]&&Object[u(421)](r.headers).forEach(([I,L])=>{let P=u;o.default[P(424)](c.BalancerTag,"Setting header: ${key}: ${value}"),i[P(310)](I,L)}),i[u(267)]()}catch{o.default[u(424)](c.BalancerTag,u(349)+r[u(251)]((f=this[u(377)][u(415)])!==null&&f!==void 0&&f))}}[ci(296)](i,r,u,h,f,I,L){let P=ci;this[P(313)][P(338)](i,!0,u,h,f,I,L)}[ci(254)](i){let r=ci,u=Date[r(304)]()-this.lastDecisionTimestamp;i&&(this[r(377)][r(335)]!==i||u>p.df.decisionCallWaitTime)&&(this[r(377)].resource=i,this[r(313)]&&this[r(313)][r(432)]&&this.loader[r(432)].isEnabled()&&(o.default[r(424)](c.BalancerTag,r(298)),this[r(313)][r(432)][r(326)]()),!this[r(313)]&&(this.loader=new $a(this[r(250)],this[r(377)],this[r(442)])),this[r(313)][r(253)][r(278)](i),this[r(313)][r(386)](),this[r(363)]=Date.now())}getLoader(){return this[ci(313)]}addInterceptor(i,r){let u=ci;this[u(373)][u(351)](i,r)}getRecommendedManifest(){let i=ci;return this[i(313)][i(253)][i(425)]()}[ci(307)](){this.isTheoplayer=!0}getBitmovinSendHttpRequest(){let i=ci;return this[i(428)]=!0,function(r,u){let h=i;return typeof r===h(434)||!r[h(305)](h(435))&&!r[h(305)](h(328))?null:{getResponse:()=>new Promise((f,I)=>{let L=ns;var P;let le=Date[L(304)](),K={request:u,url:u[L(280)],headers:[],status:0,statusText:"",body:void 0},O=new XMLHttpRequest;O[L(441)]=(P=u[L(441)])!==null&&P!==void 0?P:L(368),O[L(275)]=function(q){let E=L;var W,Ae;if(O[E(402)]===2)K.timeToFirstByte=(Date.now()-le)/1e3;else if(O.readyState===4)if(K[E(408)]=O[E(408)],K[E(370)]=O[E(370)],K[E(378)]=(Date[E(304)]()-le)/1e3,O[E(408)]>=200&&O[E(408)]<400){O[E(441)]!==E(368)&&O[E(441)]!==E(406)?(K[E(367)]=_.ifByteArrayToString(O[E(248)]),K.length=K[E(367)].length):(K[E(367)]=O[E(248)],O[E(441)]===E(368)?K[E(445)]=K[E(367)][E(419)]:O[E(441)]===E(406)&&(K[E(445)]=K[E(367)][E(324)]));let N=O.getAllResponseHeaders()[E(316)]()[E(284)](/[\r\n]+/)[E(396)](De=>{let Ke=E,ge=De[Ke(284)](": ");return{name:ge[Ke(398)](),value:ge[Ke(362)](": ")}});K[E(297)]=N,f(K)}else I({error:"request failed",response:{request:{method:u.method,url:u.url,headers:u.headers,responseType:(W=u.responseType)!==null&&W!==void 0?W:"",credentials:(Ae=u[E(395)])!==null&&Ae!==void 0?Ae:""},url:u[E(280)],headers:{},status:O[E(408)],statusText:O[E(370)]}})},O[L(356)](u.method,u[L(280)]);for(let q in u.headers)O[L(310)](q,u[L(297)][q]);O[L(267)](u?.body)}),cancel(){},setProgressListener(){}}}}[ci(342)](){let i=ci;this[i(313)].P2PLoader[i(342)](),this[i(377)][i(335)]=void 0}[ci(414)](i,r,u){let h=ci;var f;qe.default.getInstance()[h(374)](!0);let I=new URL(i),L=this[h(313)][h(338)](I,!1,[],u);L.params=r;let P=u?.Range||"";return this[h(313)].segmentsMap[h(322)](L[h(251)]((f=this[h(377)].signManifestUsingApi)!==null&&f!==void 0&&f)+P,I[h(375)]()),L}enable(){let i=ci;this[i(344)]=!0,this[i(313)].enable(),this[i(313)][i(432)][i(359)]()}disable(){let i=ci;this[i(344)]=!1,this[i(313)][i(294)](),this.loader.P2PLoader[i(294)]()}[ci(312)](){return this[ci(344)]}[ci(417)](i){let r=ci;i!=null&&(this.options=new V(i)),this.loader[r(432)].destroy(),this[r(313)]=new $a(this._accountCode,this[r(377)],this[r(442)]),this[r(344)]=!0}}var Tm=e(6014),Fm=e.n(Tm),Dm=e(2507),Ya=e.n(Dm),Um=e(4954),Ka=e.n(Um),Pm=e(3782),yi=e.n(Pm),Im=e(7061),Lm=e.n(Im),Rm=e(2071),km=e.n(Rm);class Kl{constructor(i,r,u,h,f){this.method=c.Method.GET,this.service=i,this.params=r||{},this.body=u,this.onSuccessCallback=h,this.onFailCallback=f}getService(){return this.service}getMethod(){return this.method}setMethod(i){this.method=i}getParams(){return this.params}getOnSuccess(){return this.onSuccessCallback}getOnFail(){return this.onFailCallback}getParam(i){return this.params[i]}setParam(i,r){return this.params[i]=r,this}setParams(i){this.params=i}getBody(){return this.body}setBody(i){this.body=i}isPost(){return this.method===c.Method.POST}}var Ql=e(108);class xm{constructor(){this.readyToSend=!1,this.servicesToWait=[Ql.A.Service.SESSION_START],this.onWillSendAnalyticsRequestListeners=[],this._requests=[],this._waitingForToken=[]}destroy(){this._requests=[],this._waitingForToken=[],this.readyToSend=!1}shouldSendStats(){return this.readyToSend}sendRequest(i,r){if(n.default.getInstance().getFastDataSessionToken()==="")return void this._waitingForToken.push(i);this._waitingForToken.forEach(I=>this.prepareParams(I)),this._requests.push(...this._waitingForToken),this._waitingForToken=[];let u=i.getParams(),h=i.getService(),f=this.onWillSendAnalyticsRequestListeners;for(let I of f)I(h,u);this.prepareParams(i),this._requests.push(i),this._processRequests(r)}prepareParams(i){let r=i.getService();i.setParam("sessionId",i.getParam("sessionId")||n.default.getInstance().getFastDataSessionToken()),r==Ql.A.Service.SESSION_START&&i.setParam("beatTime",i.getParam("beatTime")||n.default.getInstance().getFastDataService().getBeatTime())}buildRequest(i,r,u,h,f,I){u=u||c.Method.GET;let L=new Kl(i,r,h,f,I);return L.setMethod(u),L}_processRequests(i){let r=this._requests;this._requests=[];let u=[];for(;r.length;){let h=r.shift();if((i||h.getService()==Ql.A.Service.SESSION_START)&&(this.readyToSend=!0),this.readyToSend)for(n.default.getInstance().pushData(n.default.getInstance().getOptions().offline?ce.default.Consumer.BLACK_HOLE:ce.default.Consumer.NQS,h.getService(),h.getMethod(),h.getParams(),h.getOnSuccess(),h.getOnFail());u.length;){let f=u.shift();n.default.getInstance().pushData(n.default.getInstance().getOptions().offline?ce.default.Consumer.BLACK_HOLE:ce.default.Consumer.NQS,f.getService(),f.getMethod(),f.getParams(),f.getOnSuccess(),f.getOnFail())}else u.push(h)}this._requests.push(...u)}}var Mm=e(9637),Om=e(1146);let Nm=(()=>{class x{constructor(r){this.options=new(Lm()),this.listeners={},this.core=n.default.getInstance(),this.coreStorage=this.core.getCoreStorage(),this.requestHandler=new xm,this.accountCode=r,this.requestBuilder=new(km()),this._beat=new(Ka())(this._sendBeat.bind(this),x.BEAT_INTERVAL),this.sessionExpire=this.coreStorage.getSessionExpire()||18e4,this._lastNavigation={page:"",route:""},this._registeredProperties=null}addListener(r,u){this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push(u)}fireListener(r,...u){let h=this.listeners[r]||[];for(let f of h)f(...u)}start(r,u={},h,f){if(this.core.isUsingLegacy())return o.default.warn(c.SessionsTag,"Cannot start session since session is using legacy"),void(f==null||f());if(this.isActive())return o.default.notice(c.SessionsTag,"Session already started"),void(h==null||h());r&&this.setOptions(r),this._registeredProperties=this.coreStorage.getAppAnalyticsRegisteredProperties(),this.fireListener(c.SessionListeners.START_BEFORE,r,u),this._logFireSessionStartEvent(u),this._beat.stop(),this._beat=new(Ka())(this._sendBeat.bind(this),1e3);let I=this._getParamsJson(u,null,null,!0,!0);I=this._parseInternalParams(I),this._sendSession(yi().Service.SESSION_START,I,()=>{this._beat.stop(),this._beat=new(Ka())(this._sendBeat.bind(this),x.BEAT_INTERVAL),this._beat.start(),h?.()},()=>{this._beat.stop(),this._beat=new(Ka())(this._sendBeat.bind(this),x.BEAT_INTERVAL),f?.()}),o.default.notice(c.SessionsTag,"["+this.core.getFastDataSessionToken()+"] "+yi().Service.SESSION_START+" "+I.route),this.fireListener(c.SessionListeners.START_AFTER,r,u)}stop(r={},u,h){return this.core.isUsingLegacy()?(o.default.warn(c.SessionsTag,"Cannot stop session since session is using legacy"),void(h==null||h())):this.isActive()?(this.fireListener(c.SessionListeners.STOP_BEFORE,r),this._logFireSessionStopEvent(r),r=this._parseInternalParams(r),this._sendSession(yi().Service.SESSION_STOP,r,u,h),this._beat.stop(),o.default.notice(c.SessionsTag,"["+this.core.getFastDataSessionToken()+"] "+yi().Service.SESSION_STOP+" "+r.route),this.coreStorage.removeStoredData(),this.coreStorage.removeSession(),this.coreStorage.removeLastActive(),this.core.refreshSessionToken(),void this.fireListener(c.SessionListeners.STOP_AFTER,r)):(o.default.notice(c.SessionsTag,"Session already stopped"),void(u==null||u()))}sendEvent(r="",u={},h={},f={},I,L){if(this.core.isUsingLegacy())return o.default.warn(c.SessionsTag,"Cannot send session event since session is using legacy"),void(L==null||L());if(!this.isActive())return o.default.warn(c.SessionsTag,"Cannot send session event since session is not started"),void(L==null||L());this.fireListener(c.SessionListeners.EVENT_BEFORE,r,u,h,f),this._logFireEventListener(r);let P=this._getParamsJson(u,h,r);Ya().assign(P.params,f||{});let le=this._parseInternalParams(P);this._sendSession(yi().Service.EVENT,le,I,L),o.default.notice(c.SessionsTag,"["+this.core.getFastDataSessionToken()+"] "+yi().Service.EVENT+" "+le.name),this.fireListener(c.SessionListeners.EVENT_AFTER,r,u,h,f)}fireNav(r={},u,h){if(this.core.isUsingLegacy())return o.default.warn(c.SessionsTag,"Cannot send session navigation since session is using legacy"),void(h==null||h());if(!this.isActive())return o.default.warn(c.SessionsTag,"Cannot send session navigation since session is not started"),void(h==null||h());this._logFireNavListener(r);let f=this._getParamsJson(r,null,null,!0);f=this._parseInternalParams(f),this._checkDifferentNavigation(f)?(this._sendSession(yi().Service.NAV,f,u,h),o.default.notice(c.SessionsTag,"["+this.core.getFastDataSessionToken()+"] "+yi().Service.NAV+" "+f.route),this._lastNavigation.page=f.page,this._lastNavigation.route=f.route):(o.default.warn(c.SessionsTag,"Same navigation detected and ignored for Page and Route"),h?.())}destroy(){this._beat.stop(),this.requestHandler.destroy()}setOptions(r){this.options=r}getOptions(){return this.options}_setLastActive(){this.coreStorage.setLastActive(new Date().getTime().toString())}getAccountCode(){return this.accountCode}register(r={},u={}){this._registeredProperties={dimensions:r,values:u},this.coreStorage.setAppAnalyticsRegisteredProperties(JSON.stringify(this._registeredProperties))}registerOnce(r,u){this._registeredProperties||this.register(r,u)}unregister(){this._registeredProperties=null,this.coreStorage.removeAppAnalyticsRegisteredProperties()}_getParamsJson(r,u,h,f,I){let L={};if(h&&(L.name=h),L.dimensions=r||{},L.values=u||{},this._registeredProperties){for(let le in this._registeredProperties.dimensions)L.dimensions[le]=this._registeredProperties.dimensions[le];for(let le in this._registeredProperties.values)L.values[le]=this._registeredProperties.values[le]}let P={params:L};return f&&(P.params.dimensions.page&&(P.params.page=P.params.dimensions.page,delete P.params.dimensions.page),P.params.dimensions.route&&(P.params.route=P.params.dimensions.route,delete P.params.dimensions.route),I||delete P.params.dimensions,delete P.params.values),P}isActive(){if(this.core.isUsingLegacy())return!1;let r=new Date().getTime();return this.coreStorage.getLastActive()+this.sessionExpire>r}_sendSession(r,u,h,f){if(!this.core.isUsingLegacy())if(this._beat.isRunning||this._beat.start(),(u=this.requestBuilder.buildParams(u,r,[this,new Om.default(this.options)]))!==null&&this.options.enabled){let I=new Kl(r,u,void 0,h,f);this.isMethodPostEnabled()&&I.setMethod(c.Method.POST),this.requestHandler.prepareParams(I),this.requestHandler.sendRequest(I,this.isActive()),this._setLastActive()}else o.default.warn(c.SessionsTag,"Cannot send session request since either params are not available or options are disabled"),f?.()}addOnWillSendRequestListener(r){var u;(u=this.requestHandler)===null||u===void 0||u.onWillSendAnalyticsRequestListeners.push(r)}removeOnWillSendRequestListener(r){var u;this.requestHandler&&(this.requestHandler.onWillSendAnalyticsRequestListeners=(u=this.requestHandler)===null||u===void 0?void 0:u.onWillSendAnalyticsRequestListeners.filter(h=>h!==r))}_parseInternalParams(r){return r&&(r.params||r)||{}}_sendBeat(r){let u={diffTime:r};this._sendSession(yi().Service.BEAT,u),o.default.verbose(c.SessionsTag,yi().Service.BEAT)}_checkDifferentNavigation(r){r=r||{};let u=this._lastNavigation&&r.route===this._lastNavigation.route,h=this._lastNavigation&&r.page===this._lastNavigation.page;return!u||!h}getSessionMetrics(){return Ya().getMetricsFrom(this.options["session.metrics"])}isPlayerLogsEnabled(){return o.default.debug(c.SessionsTag,"isPlayerLogsEnabled: "+this.options["debug.playerLogs.enabled"]),Ya().parseBoolean(this.options["debug.playerLogs.enabled"])}isPluginLogsEnabled(){return o.default.debug(c.SessionsTag,"isPluginLogsEnabled: "+this.options["debug.pluginLogs.enabled"]),Ya().parseBoolean(this.options["debug.pluginLogs.enabled"])}isMethodPostEnabled(){return this.options.method&&this.options.method.toUpperCase()===Mm.POST}getSessionRoot(){return this.core.getFastDataSessionToken()}getSessionHost(){return this.core.getFastDataSessionHost()}_sendPluginLogs(r,u,h){if(!this.core.isUsingLegacy()&&this.isPluginLogsEnabled()){try{if(h&&h.logType&&h.logAction){let f=this.core.getFastDataSessionToken();o.default.notice(c.SessionsTag,f.length?"["+f+"] ":h.logType+": Action "+h.logAction)}}catch{}if(h.timemark=new Date().getTime(),(h=this.requestBuilder.buildParams(h,u))!==null&&this.options.enabled){let f=new Kl(u,h);this.isMethodPostEnabled()&&f.setMethod(c.Method.POST),this.requestHandler.prepareParams(f),this.requestHandler.sendRequest(f,this.isActive())}}}_logBeginEvent(r){let u={logs:{data:r},logAction:"beginSession",logType:"pluginMethod"};this._sendPluginLogs(yi().WillSendLog.WILL_SEND_LOG_INFINITY_BEGIN,yi().Service.APP_ANALYTICS_PLUGIN_LOGS,u)}_logFireSessionStartEvent(r){let u={logs:{data:r},logAction:"startSession",logType:"pluginMethod"};this._sendPluginLogs(yi().WillSendLog.WILL_SEND_LOG_INFINITY_START,yi().Service.APP_ANALYTICS_PLUGIN_LOGS,u)}_logFireSessionStopEvent(r){let u={logs:{data:r},logAction:"stopSession",logType:"pluginMethod"};this._sendPluginLogs(yi().WillSendLog.WILL_SEND_LOG_INFINITY_START,yi().Service.APP_ANALYTICS_PLUGIN_LOGS,u)}_logFireEventListener(r){let u={logs:{data:r},logAction:"eventSession",logType:"pluginMethod"};this._sendPluginLogs(yi().WillSendLog.WILL_SEND_LOG_INFINITY_EVENT,yi().Service.APP_ANALYTICS_PLUGIN_LOGS,u)}_logFireNavListener(r){let u={logs:{data:r},logAction:"nav",logType:"pluginMethod"};this._sendPluginLogs(yi().WillSendLog.WILL_SEND_LOG_INFINITY_NAV,yi().Service.APP_ANALYTICS_PLUGIN_LOGS,u)}_logFireNewSessionListener(r,u){let h={logs:{data:r,params:u},logAction:"newSession",logType:"pluginMethod"};this._sendPluginLogs(yi().WillSendLog.WILL_SEND_LOG_INFINITY_NAV,yi().Service.APP_ANALYTICS_PLUGIN_LOGS,h)}}return x.BEAT_INTERVAL=3e4,x})();var Jl,Bm=e(2602);class Vm{constructor(i){this.listeners=[{event:c.SessionListeners.START_BEFORE,handler:this.beforeStartListener.bind(this)},{event:c.SessionListeners.START_AFTER,handler:this.afterStartListener.bind(this)},{event:c.SessionListeners.STOP_BEFORE,handler:this.beforeStopListener.bind(this)},{event:c.SessionListeners.STOP_AFTER,handler:this.afterStopListener.bind(this)},{event:c.SessionListeners.EVENT_BEFORE,handler:this.beforeSessionEventListener.bind(this)},{event:c.SessionListeners.EVENT_AFTER,handler:this.afterSessionEventListener.bind(this)}],this.session=i,this.setListeners()}newSession(i,r={}){this.session.start(i,r)}fireSessionStart(i,r={}){this.newSession(i,r)}endSession(i={}){this.session.stop(i)}fireSessionStop(i={}){this.endSession(i)}fireEvent(i="",r={},u={},h={}){let f=Object.assign(Object.assign({},r),{eventSource:"Application Analytics",eventType:"CustomEvent"});this.session.sendEvent(i,f,u,h)}isActive(){return this.session.isActive()}getSessionRoot(){return this.isActive()?this.session.getSessionRoot():null}getSessionHost(){return this.isActive()?this.session.getSessionHost():null}fireNavigation(i={}){this.session.fireNav(i)}fireNav(i={}){this.fireNavigation(i)}setListeners(){for(let{event:i,handler:r}of this.listeners)this.session.addListener(i,r)}beforeStartListener(i,r){o.default.debug(c.AppAnalyticsTag,c.SessionListeners.START_BEFORE,i,r)}afterStartListener(i,r){o.default.debug(c.AppAnalyticsTag,c.SessionListeners.START_AFTER,i,r)}beforeStopListener(i){o.default.debug(c.AppAnalyticsTag,c.SessionListeners.STOP_BEFORE,i)}afterStopListener(i){o.default.debug(c.AppAnalyticsTag,c.SessionListeners.STOP_AFTER,i)}beforeSessionEventListener(i,r,u,h){o.default.debug(c.AppAnalyticsTag,c.SessionListeners.EVENT_BEFORE,i,r,u,h)}afterSessionEventListener(i,r,u,h){o.default.debug(c.AppAnalyticsTag,c.SessionListeners.EVENT_AFTER,i,r,u,h)}}class ss{constructor(){this.autoTrackNavigation=!0,this.autoTrackAttribution=!0,this.highlightContentAfter=1e3,this.pageRules=[]}static buildFromObject(i){let r;return typeof i=="object"&&i!==null?(r=new ss,typeof i.autoTrackNavigation=="boolean"&&(r.autoTrackNavigation=i.autoTrackNavigation),typeof i.autoTrackAttribution=="boolean"&&(r.autoTrackAttribution=i.autoTrackAttribution),typeof i.highlightContentAfter=="number"&&(r.highlightContentAfter=i.highlightContentAfter),typeof i.pageRules=="object"&&Array.isArray(i.pageRules)&&(r.pageRules=i.pageRules)):r=null,r}validate(){let i=new ss;this.highlightContentAfter<1e3&&(this.highlightContentAfter=i.highlightContentAfter,o.default.warn(c.ProductAnalyticsTag,"Invalid higlightContentAfter value. Using default value instead."))}}window.npawtmConfig=window.npawtmConfig||{};class jm{constructor(i){this.fireEvent=i,typeof window>"u"||typeof window.npawtmConfig!="object"?this.config=null:this.config=window.npawtmConfig}identify(i){let r,u;return u=null,r=[],this.config?(u=this.getPage(i),u===null?o.default.warn(c.ProductAnalyticsTag,"no page found"):r=this.getEvents(u)):o.default.warn(c.ProductAnalyticsTag,"no config descriptor available"),typeof window>"u"?o.default.warn(c.ProductAnalyticsTag,"Product Analytics Config: cannot bind events since DOM is not available"):r.length>0&&window.addEventListener("load",()=>{this.bindElements(r)}),u}getPage(i){let r,u,h,f,I,L=null;if(typeof i=="object"&&i!==null&&this.config&&this.config.urls&&this.config.regexes&&this.config.domains&&this.config.domains.includes(i.hostname.toLowerCase()))for(h=this.config.urls[i.pathname],h!==void 0&&h.page!==void 0&&(L=h.page),r=i.pathname+i.search,I=0;I{this.elementEvent(L.currentTarget.npawEventInfo,L.currentTarget.npawEventType)})}elementEvent(i,r){let u="["+r+"] "+i.name;this.fireEvent?this.fireEvent(u,r,{uiElement:i.name,eventName:u,eventType:r}):o.default.warn(c.ProductAnalyticsTag,"Cannot trigger event since no handler has been provided")}}(function(x){x.userProfile="User Profile",x.user="User",x.navigation="Navigation",x.attribution="Attribution",x.section="Section",x.contentPlayback="Content Playback",x.search="Search",x.externalApplication="External Application",x.engagement="Engagement",x.custom="Custom Event"})(Jl||(Jl={}));let Ui=Jl;class Qa{constructor(i,r,u,h){if(this.listeners=[{event:c.SessionListeners.START_BEFORE,handler:this.beforeStartListener.bind(this)},{event:c.SessionListeners.START_AFTER,handler:this.afterStartListener.bind(this)},{event:c.SessionListeners.STOP_BEFORE,handler:this.beforeStopListener.bind(this)},{event:c.SessionListeners.STOP_AFTER,handler:this.afterStopListener.bind(this)},{event:c.SessionListeners.EVENT_BEFORE,handler:this.beforeSessionEventListener.bind(this)},{event:c.SessionListeners.EVENT_AFTER,handler:this.afterSessionEventListener.bind(this)}],this.session=i,this.setListeners(),this.initialized=!1,this.settings=new ss,this.page=null,this.config=null,this.searchQuery="",this.url=null,typeof window<"u"&&window.location!==void 0)try{this.url=new URL(window.location.href)}catch{this.url=null}this.contentHighlighted=null,this.contentHighlightTimeout=null,this.pendingVideoEvents={},this.adapters={},this.setAnalyticsOptions=r,this.addVideoRequestListener=u,this.removeVideoRequestListener=h,this.videoListenerAccessor=this.videoListener.bind(this)}initialize(i){let r;if(i===void 0)this.settings=new ss,o.default.warn(c.ProductAnalyticsTag,"Settings not supplied: using default ones.");else if(i instanceof ss)this.settings=i;else{let u=ss.buildFromObject(i);u===null?(this.settings=new ss,o.default.warn(c.ProductAnalyticsTag,"Invalid settings supplied: using default ones.")):this.settings=u}this.settings.validate(),this.config=new jm(this.fireEventInternal.bind(this)),this.identify(),this.initialized=!0,this.session.start(void 0,void 0,()=>{this.settings.autoTrackNavigation&&(typeof window>"u"?o.default.warn(c.ProductAnalyticsTag,"Cannot auto track cached navigation since DOM is not available."):(window.removeEventListener("pageshow",this.trackNavigationCached),window.addEventListener("pageshow",this.trackNavigationCached.bind(this))),this.trackNavigationInternal()),this.settings.autoTrackAttribution&&(r=this.url===null?"":this.url.search,this.trackAttributionInternal(new URLSearchParams(r)))})}identify(){let i,r,u;for(this.config===null?this.page=null:this.page=this.config.identify(this.url),u=0;u{this.session.start(void 0,void 0,i,r)},()=>{o.default.warn(c.ProductAnalyticsTag,"Cannot start a new session since there has been a problem stopping the previous one"),r?.()}):(o.default.warn(c.ProductAnalyticsTag,"Cannot start a new session since Product Analytics is uninitialized."),r?.())}endSession(i,r){this.initialized?this.session.stop(void 0,i,r):(o.default.warn(c.ProductAnalyticsTag,"Cannot end session since Product Analytics is uninitialized."),r?.())}loginSuccessful(i,r,u,h,f,I,L){if(this.checkState("log in successfully"))if(typeof i!="string"&&typeof i!="number")o.default.warn(c.ProductAnalyticsTag,"Cannot log in successfully since userId is unavailable.");else if(i==="")o.default.warn(c.ProductAnalyticsTag,"Cannot log in successfully since userId is unset.");else{this.fireEventInternal("User Login Successful",Ui.user,{username:i},h,f),r!=null&&r!==""&&this._userProfileSelectedEvent(r,u,h,f);let P={userId:i};r!=null&&r!==""&&(P.profileId=r),this.setAnalyticsOptions(P),this.newSession(I,L)}}loginUnsuccessful(i,r){this.checkState("log in unsuccessful")&&this.fireEventInternal("User Login Unsuccessful",Ui.user,{},i,r)}logout(i,r,u,h){if(this.checkState("log out")){this.fireEventInternal("User Logout",Ui.user,{},i,r);let f={userId:null,profileId:null};this.setAnalyticsOptions(f),this.newSession(u,h)}}userProfileCreated(i,r,u,h){if(this.checkState("create user profile"))if(typeof i!="string"&&typeof i!="number")o.default.warn(c.ProductAnalyticsTag,"Cannot create user profile since profileId is unavailable.");else if(i==="")o.default.warn(c.ProductAnalyticsTag,"Cannot create user profile since profileId is unset.");else{let f=this._getUserProfileDimensions(i,r);this.fireEventInternal("User Profile Created",Ui.userProfile,f,u,h)}}userProfileSelected(i,r,u,h,f,I){if(this.checkState("select user profile"))if(typeof i!="string"&&typeof i!="number")o.default.warn(c.ProductAnalyticsTag,"Cannot select user profile since profileId is unavailable.");else if(i==="")o.default.warn(c.ProductAnalyticsTag,"Cannot select user profile since profileId is unset.");else{this._userProfileSelectedEvent(i,r,u,h);let L={profileId:i};this.setAnalyticsOptions(L),this.newSession(f,I)}}_userProfileSelectedEvent(i,r,u,h){let f=this._getUserProfileDimensions(i,r);this.fireEventInternal("User Profile Selected",Ui.userProfile,f,u,h)}userProfileDeleted(i,r,u){if(this.checkState("delete user profile"))if(typeof i!="string"&&typeof i!="number")o.default.warn(c.ProductAnalyticsTag,"Cannot delete user profile since profileId is unavailable.");else if(i==="")o.default.warn(c.ProductAnalyticsTag,"Cannot delete user profile since profileId is unset.");else{let h=this._getUserProfileDimensions(i,null);this.fireEventInternal("User Profile Deleted",Ui.userProfile,h,r,u)}}_getUserProfileDimensions(i,r){let u={profileId:i};return r!=null&&(u.profileType=r),u}trackNavByRoute(i,r,u){if(this.checkState("track navigation"))if(typeof i!="string"||i==="")o.default.warn(c.ProductAnalyticsTag,"Cannot track navigation since route has not been supplied.");else{let h;try{h=new URL(i)}catch{h=null}h===null?o.default.warn(c.ProductAnalyticsTag,"Cannot track navigation since route is invalid."):(this.url=h,this.identify(),this.trackNavigationInternal(r,u))}}trackNavByName(i,r,u){this.checkState("track navigation")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track navigation since page is invalid."):(this.page=i,this.trackNavigationInternal(r,u)))}trackNavigationCached(i){i.persisted&&this.trackNavigationInternal()}trackNavigationInternal(i,r){let u,h,f;this.url===null?(u="",h="",f=""):(u=this.url.href,h=this.url.pathname,f=this.url.hostname),this.checkState("track navigation")&&this.fireEventInternal("Navigation "+this.page,Ui.navigation,{route:h,routeDomain:f,fullRoute:u},i,r)}trackAttribution(i,r,u,h,f,I,L){if(this.checkState("track attribution"))if(this.settings.autoTrackAttribution)o.default.warn(c.ProductAnalyticsTag,"Automatic attribution tracking is enabled: this request won't be processed.");else{let P={};typeof i=="string"&&(P.utm_source=i),typeof r=="string"&&(P.utm_medium=r),typeof u=="string"&&(P.utm_campaign=u),typeof h=="string"&&(P.utm_term=h),typeof f=="string"&&(P.utm_content=f),Object.keys(P).length>0?this.trackAttributionInternal(new URLSearchParams(P),I,L):o.default.warn(c.ProductAnalyticsTag,"Cannot track attribution since parameters are invalid.")}}trackAttributionInternal(i,r,u){let h=this._getUTMParams(i),f=this.url===null?"":this.url.href;this.checkState("track attribution")&&h&&this.fireEventInternal("Attribution",Ui.attribution,Object.assign({url:f},h),r,u)}_getUTMParams(i){let r,u,h,f=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],I={};return i.forEach(function(L,P){u=f.indexOf(P.toLowerCase()),u!==-1&&(h=f[u],r=h.split("_"),r.length>1&&(h=r[0]+r[1].charAt(0).toUpperCase()+r[1].slice(1)),I[h]=L)}),Object.keys(I).length>0?I:null}trackSectionVisible(i,r,u,h){this.checkState("track section visible")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track section visible since section is invalid."):typeof r!="number"||r<1?o.default.warn(c.ProductAnalyticsTag,"Cannot track section visible since sectionOrder is invalid."):this.fireEventInternal("Section Visible",Ui.section,{sectionOrder:r,section:i},u,h))}trackSectionHidden(i,r,u,h){this.checkState("track section hidden")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track section hidden since section is invalid."):typeof r!="number"||r<1?o.default.warn(c.ProductAnalyticsTag,"Cannot track section hidden since sectionOrder is invalid."):this.fireEventInternal("Section Hidden",Ui.section,{sectionOrder:r,section:i},u,h))}contentFocusIn(i,r,u,h,f,I,L){this.contentFocusOut(),this.checkState("track content highlight")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track content highlight since section is invalid."):typeof r!="number"||r<1?o.default.warn(c.ProductAnalyticsTag,"Cannot track content highlight since sectionOrder is invalid."):typeof u!="number"||u<1?o.default.warn(c.ProductAnalyticsTag,"Cannot track content highlight since column is invalid."):typeof h!="number"||h<1?o.default.warn(c.ProductAnalyticsTag,"Cannot track content highlight since row is invalid."):typeof f!="string"||f===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track content highlight since contentID is invalid."):(this.contentHighlighted={sectionOrder:r,section:i,column:u,row:h,contentID:f,dimensions:I,metrics:L},this.contentHighlightTimeout=setTimeout(this._trackContentHiglight.bind(this),this.settings.highlightContentAfter)))}contentFocusOut(){this.contentHighlightTimeout!==null&&clearTimeout(this.contentHighlightTimeout),this.contentHighlighted=null,this.contentHighlightTimeout=null}_trackContentHiglight(){this.contentHighlighted?this.fireEventInternal("Section Content Highlight",Ui.section,{sectionOrder:this.contentHighlighted.sectionOrder,section:this.contentHighlighted.section,column:this.contentHighlighted.column,row:this.contentHighlighted.row,contentId:this.contentHighlighted.contentID},this.contentHighlighted.dimensions,this.contentHighlighted.metrics):o.default.warn(c.ProductAnalyticsTag,"Cannot highlight content since no content is selected")}trackContentClick(i,r,u,h,f,I,L){this.checkState("track content click")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track content click since section is invalid."):typeof r!="number"||r<1?o.default.warn(c.ProductAnalyticsTag,"Cannot track content click since sectionOrder is invalid."):typeof u!="number"||u<1?o.default.warn(c.ProductAnalyticsTag,"Cannot track content click since column is invalid."):typeof h!="number"||h<1?o.default.warn(c.ProductAnalyticsTag,"Cannot track content click since row is invalid."):typeof f!="string"||f===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track content click since contentID is invalid."):this.fireEventInternal("Section Content Click",Ui.section,{sectionOrder:r,section:i,column:u,row:h,contentId:f},I,L))}trackPlay(i,r,u,h){this.checkState("track play")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track play since contentID is invalid."):this.handlePlayerEvent("Content Play",i,r||{},u||{},this.getVideoKey(h)))}trackPlayerInteraction(i,r,u,h){if(this.checkState("track player interaction"))if(typeof i!="string"||i==="")o.default.warn(c.ProductAnalyticsTag,"Cannot track player interaction since interaction name is invalid.");else{let f="Content Play "+i;this.handlePlayerEvent(f,null,r||{},u||{},this.getVideoKey(h))}}handlePlayerEvent(i,r,u,h,f){var I;let L=this.getAdapter(f);L==null?o.default.warn(c.ProductAnalyticsTag,"Cannot track player event since video adapter is not available"):L.flags.isStarted?((I=this.pendingVideoEvents[f])===null||I===void 0||I.forEach(P=>{this.trackPlayerEvent(P.eventName,P.contentId,P.dimensions,P.metrics,P.videoKey)}),delete this.pendingVideoEvents[f],this.trackPlayerEvent(i,r,u,h,f)):(this.pendingVideoEvents[f]==null&&(this.pendingVideoEvents[f]=[]),this.pendingVideoEvents[f].push({eventName:i,contentID:r,dimensions:u,metrics:h,videoKey:f}))}trackPlayerEvent(i,r,u,h,f){let I={};r!==null&&(I.contentId=r),this.fireEventAdapter(i,I,u,h,f)}trackSearchQuery(i,r,u){this.checkState("track search query")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track search query since no searchQuery has been supplied."):(this.searchQuery=i,this.fireEventInternal("Search Query",Ui.search,{query:this.searchQuery},r,u)))}trackSearchResult(i,r,u,h){if(this.checkState("track search result"))if(typeof i!="number")o.default.warn(c.ProductAnalyticsTag,"Cannot track search result since resultCount is invalid.");else{let f=typeof r=="string"&&r!==""?r:this.searchQuery;this.fireEventInternal("Search Results",Ui.search,{query:f,resultCount:i},u,h)}}trackSearchClick(i,r,u,h,f,I,L,P){if(this.checkState("track search click"))if(typeof u!="number"||u<1)o.default.warn(c.ProductAnalyticsTag,"Cannot track search click since column is invalid.");else if(typeof h!="number"||h<1)o.default.warn(c.ProductAnalyticsTag,"Cannot track search click since row is invalid.");else if(typeof f!="string"||f==="")o.default.warn(c.ProductAnalyticsTag,"Cannot track search click since contentID is invalid.");else{let le=typeof I=="string"&&I!==""?I:this.searchQuery;typeof i=="string"&&i!==""||(i="Search"),(typeof r!="number"||r<1)&&(r=1),this.fireEventInternal("Search Result Click",Ui.search,{query:le,section:i,sectionOrder:r,column:u,row:h,contentId:f},L,P)}}trackExternalAppLaunch(i,r,u){this.checkState("track external application launch")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track external application launch since appName is invalid."):this.fireEventInternal("External Application Launch",Ui.externalApplication,{appName:i},r,u))}trackExternalAppExit(i,r,u){this.checkState("track external application exit")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track external application exit since appName is invalid."):this.fireEventInternal("External Application Exit",Ui.externalApplication,{appName:i},r,u))}trackEngagementEvent(i,r,u,h){this.checkState("track engagement")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track engagement event since eventName is invalid."):typeof r!="string"||r===""?o.default.warn(c.ProductAnalyticsTag,"Cannot track engagement event since contentID is invalid."):this.fireEventInternal("Engagement "+i,Ui.engagement,{contentId:r},u,h))}trackEvent(i,r,u){this.checkState("track custom event")&&(typeof i!="string"||i===""?o.default.warn(c.ProductAnalyticsTag,"Event cannot be tracked since eventName is invalid."):this.fireEventInternal("Custom "+i,Ui.custom,{},r,u))}fireEventInternal(i,r,u={},h={},f={}){o.default.notice(c.ProductAnalyticsTag,i);let I=this.buildDimensions(r,u,h);this.session.sendEvent(i,I.custom,f,I.top)}fireEventAdapter(i,r,u,h,f){o.default.notice(c.ProductAnalyticsTag,i);let I=this.getAdapter(f);if(I){let L=this.buildDimensions(Ui.contentPlayback,r,u);I.fireEvent(i,L.custom,h,L.top)}else o.default.warn(c.ProductAnalyticsTag,"Cannot fire "+i+" event since adapter is unavailable.")}buildDimensions(i,r={},u={}){let h;h={page:this.page},h=Object.assign(h,r),h=Object.assign(h,u),h=Object.assign(h,{eventType:i,eventSource:"Product Analytics"});let f=["contentid","contentId","contentID","utmSource","utmMedium","utmCampaign","utmTerm","utmContent","profileId","profile_id","username"],I={};for(let L in h)Object.prototype.hasOwnProperty.call(h,L)&&f.indexOf(L)!==-1&&(I[L]=h[L]);return["contentid","contentId","contentID","profileId","profile_id","username"].forEach(function(L){delete h[L]}),{custom:h,top:I}}checkState(i){let r;return this.initialized?this.session.isActive()?r=!0:(r=!1,o.default.warn("Cannot "+i+" since session is closed.")):(r=!1,o.default.warn("Cannot "+i+" since Product Analytics is uninitialized.")),r}setListeners(){for(let{event:i,handler:r}of this.listeners)this.session.addListener(i,r)}beforeStartListener(i,r){o.default.debug(c.ProductAnalyticsTag,c.SessionListeners.START_BEFORE,i,r)}afterStartListener(i,r){o.default.debug(c.ProductAnalyticsTag,c.SessionListeners.START_AFTER,i,r)}beforeStopListener(i){o.default.debug(c.ProductAnalyticsTag,c.SessionListeners.STOP_BEFORE,i)}afterStopListener(i){o.default.debug(c.ProductAnalyticsTag,c.SessionListeners.STOP_AFTER,i)}beforeSessionEventListener(i,r,u,h){o.default.debug(c.ProductAnalyticsTag,c.SessionListeners.EVENT_BEFORE,i,r,u,h)}afterSessionEventListener(i,r,u,h){o.default.debug(c.ProductAnalyticsTag,c.SessionListeners.EVENT_AFTER,i,r,u,h)}}Qa.VIDEOKEY_DEFAULT_IDENTIFIER="default",e.g.LogLevel=o.LogLevel,e.g.NpawPluginOptions=Bm.A;class Hm{constructor(i,r){this.core=n.default.getInstance(i,r,!0),this.cdnBalancer=new Sm(i,r),this.session=new Nm(i),this.appAnalytics=new Vm(this.session),this.videoAnalytics=new(Fm()).Plugin(this.appAnalytics,this.session),this.productAnalytics=new Qa(this.session,this.setAnalyticsOptions.bind(this),this.videoAnalytics.addOnWillSendRequestListener.bind(this.videoAnalytics),this.videoAnalytics.removeOnWillSendRequestListener.bind(this.videoAnalytics)),this.diagnostic=qe.default.getInstance(!0),this.diagnostic.start(this)}destroy(){this.cdnBalancer.destroy(),this.videoAnalytics.videos.getVideoKeys().forEach(i=>{var r,u;this.videoAnalytics!==void 0&&((r=this.videoAnalytics.getAdapter(i))===null||r===void 0||r.fireStop(),(u=this.videoAnalytics.getAdsAdapter(i))===null||u===void 0||u.fireStop())}),this.videoAnalytics.destroy(),this.session.destroy(),this.diagnostic.destroy(),this.core.destroy()}setLogLevel(i){o.default.setLogLevel(i)}setBalancerOptions(i){this.cdnBalancer.setOptions(i)}setManifestResource(i){this.cdnBalancer.setManifestResource(i)}addInterceptor(i,r){this.cdnBalancer.addInterceptor(i,r)}getBitmovinSendHttpRequest(){return this.cdnBalancer.getBitmovinSendHttpRequest()}getRecommendedManifest(){return this.cdnBalancer.getRecommendedManifest()}isBalancerEnabled(){return this.cdnBalancer.getIsEnabled()}registerAdapter(i,r,u,h,f){this.core.isUsingLegacy()||this.registerAdapterInModule(!1,i,r,u,h,f)}registerAdapterFromClass(i,r,u,h,f){r!==void 0&&typeof r=="function"?this.registerAdapterFromClassInModule(!1,i,new r,u,h,f):o.default.error(c.AnalyticsTag,"Adapter is not valid")}registerAdapterFromString(i,r,u,h,f){r!==void 0&&typeof r=="string"?(this.videoAnalytics.registerAdapter(i,r,u,h),this.registerAdapterProductAnalytics(h),f?.()):o.default.error(c.AnalyticsTag,"The provided adapter is not from a valid type")}registerDefaultAdapter(i,r){this.core.isUsingLegacy()||(this.videoAnalytics.registerAdapter(void 0,"{}",r,i),this.registerAdapterProductAnalytics(i))}removeAdapter(i){this.core.isUsingLegacy()||(i&&this.videoAnalytics.videos.existsVideo(i)&&this.getAdapter(i)&&this.getAdapter(i).fireStop&&this.getAdapter(i).fireStop(),this.productAnalytics.removeAdapter(i),this.videoAnalytics.removeAdapter(i))}getAdapter(i){return this.videoAnalytics.getAdapter(i)}getAdsAdapter(i){return this.videoAnalytics!==void 0?this.videoAnalytics.getAdsAdapter(i):void 0}registerAdsAdapter(i,r,u,h,f){this.core.isUsingLegacy()||this.registerAdapterInModule(!0,i,r,u,h,f)}registerAdsAdapterFromClass(i,r,u,h,f){r!==void 0&&typeof r=="function"?this.registerAdapterFromClassInModule(!0,i,new r,u,h,f):o.default.error(c.AnalyticsTag,"Adapter is not valid")}registerAdsAdapterFromString(i,r,u,h,f){r!==void 0&&typeof r=="string"?(this.videoAnalytics.registerAdsAdapter(i,r,u,h),f?.()):o.default.error(c.AnalyticsTag,"The provided adapter is not from a valid type")}updateAdsAdapter(i,r){r=r??"default",i!==void 0&&i!=""?this.videoAnalytics.updateAdsAdapter(i,r):o.default.debug(c.AnalyticsTag,"Invalid ads adapter name")}registerDefaultAdsAdapter(i,r){this.core.isUsingLegacy()||this.videoAnalytics.registerAdsAdapter(void 0,"{}",r,i)}removeAdsAdapter(i){this.core.isUsingLegacy()||this.videoAnalytics.removeAdsAdapter(i)}setAnalyticsOptions(i){this.core.isUsingLegacy()||(this.videoAnalytics.setOptions(i),this.session.setOptions(this.videoAnalytics.options),this.core.setOptions(this.videoAnalytics.options),this.diagnostic.setOptions(this.videoAnalytics.options))}setVideoOptions(i,r){i?this.videoAnalytics.setVideoOptions(i,r??"default"):o.default.debug(c.AnalyticsTag,"Provided options object is not valid")}updateMetrics(i,r){i?this.videoAnalytics.updateCustomMetrics(i,r??"default"):o.default.debug(c.AnalyticsTag,"Provided metrics object is not valid")}fireOfflineEvents(){this.core.isUsingLegacy()||(this.videoAnalytics.videos.getVideoKeys().length>0?o.default.notice(c.AnalyticsTag,"Unable to send offline events because there's at least one adapter registered"):this.core.sendOfflineEvents())}registerAdapterFromClassInModule(i,r,u,h,f,I){i?this.videoAnalytics.registerAdsAdapter(r,u,h,f):(this.videoAnalytics.registerAdapter(r,u,h,f),this.registerAdapterProductAnalytics(f)),I?.()}registerAdapterInModule(i,r,u,h,f,I){if(u.length===0&&o.default.error("Adapter URL can't be empty!"),typeof fetch<"u")fetch(u).then(L=>L.json()).then(L=>{let P=JSON.stringify(L);i?this.videoAnalytics.registerAdsAdapter(r,P,h,f):(this.videoAnalytics.registerAdapter(r,P,h,f),this.registerAdapterProductAnalytics(f)),I?.()});else{let L=new XMLHttpRequest;L.addEventListener("readystatechange",()=>{if(L.readyState===4&&L.status>=200&&L.status<400){let P=L.response;i?this.videoAnalytics.registerAdsAdapter(r,P,h,f):(this.videoAnalytics.registerAdapter(r,P,h,f),this.registerAdapterProductAnalytics(f)),I?.()}}),L.open("GET",u),L.send()}}registerAdapterProductAnalytics(i){let r=this.videoAnalytics.getAdapter(i);this.productAnalytics.registerAdapter(r,i)}}})(),t.default})())});var zg=wu((Dl,pu)=>{"use strict";(function(s,a){typeof Dl=="object"&&typeof pu=="object"?pu.exports=a():typeof define=="function"&&define.amd?define([],a):typeof Dl=="object"?Dl.NpawPluginAdapters=a():s.NpawPluginAdapters=a()})(self,()=>(()=>{"use strict";var s={d:(l,d)=>{for(var g in d)s.o(d,g)&&!s.o(l,g)&&Object.defineProperty(l,g,{enumerable:!0,get:d[g]})},o:(l,d)=>Object.prototype.hasOwnProperty.call(l,d)},a={};s.d(a,{default:()=>$});class e{constructor(){this.lastPlayhead=null}getVersion(){return"7.0.9-Bitmovin8-ads-jsclass"}getPlayhead(){let d=null;return this.player&&this.flags&&this.flags.isStarted&&(d=this.player.getCurrentTime()),d}getTitle(){return this.title}getAdInsertionType(){var d=null;return this.player&&this.player.ads.getModuleInfo&&(d=this.player.ads.getModuleInfo().name=="advertising-ima"||this.player.ads.getModuleInfo().name=="advertising-bitmovin"?this.getNpawReference().Constants.AdInsertionType.ClientSide:this.getNpawReference().Constants.AdInsertionType.ServerSide),d}getDuration(){return this.duration}getResource(){return this.src}getRendition(){return this.getNpawUtils().buildRenditionString(this.width,this.height,this.bitrate)}getBitrate(){return 1e3*this.bitrate}getAudioEnabled(){let d=!0;return this.player&&(d=this.player.getVolume()>0&&!this.player.isMuted()),d}getIsSkippable(){return this.skippable}getIsFullscreen(){let d=!1;return this.player&&(d=this.player.getViewMode()==="fullscreen"),d}getIsVisible(){let d=!1;return this.player&&this.player.getVideoElement&&this.player.getVideoElement()&&(d=this.getNpawUtils().calculateAdViewability(this.player.getVideoElement())),d}getCreativeId(){return this.creativeId}getPosition(){let d=this.position,g=this.getVideo().getAdapter();return g&&!g.flags.isJoined&&(d=this.getNpawReference().Constants.AdPosition.Preroll),d}registerListeners(){let d=this.player.exports.PlayerEvent;this.monitorPlayhead(!0,!0),this.references={},this.references[d.AdBreakStarted]=this.breakStartListener.bind(this),this.references[d.AdBreakFinished]=this.breakEndListener.bind(this),this.references[d.AdStarted]=this.adStartListener.bind(this),this.references[d.AdFinished]=this.adEndListener.bind(this),this.references[d.AdQuartile]=this.quartileListener.bind(this),this.references[d.AdSkipped]=this.skipListener.bind(this),this.references[d.AdClicked]=this.clickListener.bind(this),this.references[d.AdError]=this.errorListener.bind(this),this.references[d.Destroy]=this.destroyListener.bind(this),this.references[d.Paused]=this.pauseListener.bind(this),this.references[d.Playing]=this.resumeListener.bind(this),this.references[d.TimeChanged]=this.timeupdateListener.bind(this);for(let g in this.references)this.player.on(g,this.references[g])}pauseListener(){this.firePause()}resumeListener(){this.fireResume()}timeupdateListener(){this.lastPlayhead=this.getPlayhead()}unregisterListeners(){this.monitor&&this.monitor.stop();try{if(this.player&&this.player.off&&this.references){for(let d in this.references)this.player.off(d,this.references[d]);delete this.references}}catch{}}breakStartListener(d){this.getVideo().fireInit();let g=this.getVideo().getAdapter();g&&g.firePause();let w=d.adBreak.position;w==="pre"?this.position=this.getNpawReference().Constants.AdPosition.Preroll:w==="post"||g&&g.getDuration()!==0&&(g.getPlayhead()||w)>g.getDuration()-1?this.position=this.getNpawReference().Constants.AdPosition.Postroll:this.position=this.getNpawReference().Constants.AdPosition.Midroll}breakEndListener(d){if(this.fireBreakStop(),this.getVideo().requestBuilder.lastSent.adPosition!==this.getNpawReference().Constants.AdPosition.Postroll){let g=this.getVideo().getAdapter();g&&g.fireResume()}else this.getVideo().fireStop()}adStartListener(d){d.ad&&d.ad.data&&(this.title=d.ad.data.adTitle,this.bitrate=d.ad.data.bitrate,this.creativeId=d.ad.data.creative?d.ad.data.creative.id:void 0,this.src=d.ad.mediaFileUrl,this.height=d.ad.height,this.width=d.ad.width,this.skippable=d.ad.skippable,this.duration=d.ad.duration),this.lastPlayhead=0,this.counter=0,this.fireStart(),this.fireJoin()}adEndListener(d){let g=this.getVideo().getPlayhead();this.fireStop({adPlayhead:this.lastPlayhead,playhead:g}),this.getVideo().requestBuilder.lastSent.adPosition===this.getNpawReference().Constants.AdPosition.Postroll&&this.getVideo().fireStop(),this.lastPlayhead=0}quartileListener(d){let g=1;switch(d.quartile){case"midpoint":g=2;break;case"thirdQuartile":g=3}this.fireQuartile(g)}skipListener(d){let g=this.getVideo().getPlayhead();this.fireSkip({adPlayhead:this.lastPlayhead,playhead:g}),this.getVideo().requestBuilder.lastSent.adPosition===this.getNpawReference().Constants.AdPosition.Postroll&&this.getVideo().fireStop(),this.lastPlayhead=0}clickListener(d){this.fireClick(d.clickThroughUrl)}errorListener(d){let g=d.data?d.data:d;this.fireError(g.code,g.message)}destroyListener(d){this.player=null,this.tag=null;let g=this.getVideo().getPlayhead();this.fireStop({adPlayhead:this.lastPlayhead,playhead:g}),this.lastPlayhead=0,this.getVideo().removeAdsAdapter()}}class t{getResource(d){let g="",w=this._getShaka(d);return typeof w.getManifestUri=="function"?g=w.getManifestUri():typeof w.getCurrentSrc=="function"&&(g=w.getCurrentSrc()),g}getBitrate(d){let g=-1,w=this._getShaka(d);if(typeof w.getStats=="function")g=w.getStats().streamBandwidth;else if(typeof w.getVideoTracks=="function"&&typeof w.getVideoTrackCurrentIndex=="function"){let j=w.getVideoTrackCurrentIndex(),H=w.getVideoTracks();for(let se in H){let Z=H[se];Z.index==j&&(g=Z.bitrate)}}return g}isUsed(d){return!!this._getShaka(d)}getRendition(d){let g=this._getShaka(d),w=g.getStats(),j=this.getNpawUtils().buildRenditionString(w.width,w.height,w.streamBandwidth),H=g.getVariantTracks();for(let se in H){let Z=H[se];if(Z.active&&Z.type==="video"){j=this.getNpawUtils().buildRenditionString(Z.width,Z.height,Z.bandwidth);break}}return j}_getShaka(d){let g=d.getTech();return g.shakaPlayer||g._shakaplayerInstance}}class n{getTech(d){let g=d.getTech();return g.vhs||g.hls||g.hls_||g.hlsplayer}getRendition(d){let g=null,w=this.getTech(d).currentLevel;if(w!==void 0&&w!==-1&&this.getTech(d).levels){let j=this.getTech(d).levels[w];j&&(g=this.getNpawUtils().buildRenditionString(j.width,j.height,j.bitrate))}return g}isUsed(d){return!!this.getTech(d)}getHls(d){return this.getTech(d)}getResource(d){let g=null;return this.getTech(d)&&this.getTech(d).url?g=this.getTech(d).url:this.getHls(d)&&this.getHls(d).source_&&(g=this.getHls(d).source_.src),g}getBitrate(d){let g=null,w=this.getTech(d).currentLevel;if(w!==void 0&&w!==-1&&this.getTech(d).levels){let j=this.getTech(d).levels[w];j&&j.bitrate&&(g=j.bitrate)}return g}}class o{getTech(d){return d.getTech().hlsProvider}getRendition(d){let g,w=this.getTech(d).getQuality();return w!==void 0&&w.width&&w.height&&w.bitrate&&(g=this.getNpawUtils().buildRenditionString(w.width,w.height,w.bitrate)),g}isUsed(d){return!!this.getTech(d)}getHls(d){return this.getTech(d)}getResource(d){let g=null,w=this.getTech(d).getQuality();return w!==void 0&&w.url&&w._urlId&&(g=w.url[w._urlId]),g}getBitrate(d){let g,w=this.getTech(d).getQuality();return w!==void 0&&w.bitrate&&(g=w.bitrate),g}}class c{getBitrate(d){return d.player.dash.shakaPlayer.getStats().streamBandwidth}getResource(d){let g="",w=d.player.dash.shakaPlayer;return typeof w.getManifestUri=="function"?g=w.getManifestUri():typeof w.getAssetUri=="function"&&(g=w.getAssetUri()),g}isUsed(d){return d.player.dash&&d.player.dash.shakaPlayer}getRendition(d){let g=d.player.dash.shakaPlayer,w=g.getStats(),j=this.getNpawUtils().buildRenditionString(w.width,w.height,w.streamBandwidth),H=g.getVariantTracks();for(let se in H){let Z=H[se];Z.active&&Z.type==="video"&&(j=this.getNpawUtils().buildRenditionString(Z.width,Z.height,Z.bandwidth))}return j}}class p{getResource(d){return this._getDashPlayer(d).getSource()}_getDashPlayer(d){return d.player.dash.mediaPlayer}isUsed(d){return d.player.dash&&d.player.dash.mediaPlayer&&!d.player.dash.shakaPlayer}getRendition(d){let g=null,w=this._getDashPlayer(d);if(w){let j=w.getQualityFor("video");if(j){let H=w.getBitrateInfoListFor("video")[j];H&&(g=this.getNpawUtils().buildRenditionString(H.width,H.height,H.bitrate))}}return g}getBitrate(d){let g=null,w=this._getDashPlayer(d);if(w){let j=w.getQualityFor("video");j&&(g=w.getBitrateInfoListFor("video")[j].bitrate)}return g}}class v{isUsed(d){return!!this.getHls(d)}getRendition(d){let g=null,w=this.getHls(d).playlists.media();if(d.player.qualityLevels){let j=d.player.qualityLevels(),H=j[j.selectedIndex];H&&(g=this.getNpawUtils().buildRenditionString(H.width,H.height,H.bitrate))}else if(w&&w.attributes){let j=w.attributes;j.RESOLUTION?g=this.getNpawUtils().buildRenditionString(j.RESOLUTION.width,j.RESOLUTION.height,j.BANDWIDTH):j.BANDWIDTH?g=this.getNpawUtils().buildRenditionString(j.BANDWIDTH):j.NAME&&(g=j.NAME)}return g}getHls(d){return d.getTech().vhs||d.getTech().hls||d.getTech().hls_||d.getTech().hlsplayer}getTotalBytes(d){let g=this.getHls(d),w=g.bytesReceived;return!w&&g.stats&&(w=g.stats.mediaBytesTransferred-d.acumBytes),w}getBitrate(d){let g=null,w=this.getHls(d).playlists.media();if(d.player.qualityLevels){let j=d.player.qualityLevels(),H=j[j.selectedIndex];H&&(g=H.bitrate)}else w&&w.attributes&&w.attributes.BANDWIDTH?g=w.attributes.BANDWIDTH:d.player.tech_&&d.player.tech_.vhs&&d.player.tech_.vhs.stats?g=d.player.tech_.vhs.stats.bandwidth:d.player.tech_&&d.player.tech_.hls&&d.player.tech_.hls.bandwidth?g=d.player.tech_.hls.bandwidth:d.player.hls&&d.player.hls.bandwidth&&(g=d.player.hls.bandwidth);return g}}class A{initProperties(){this.isGeneric=!0}getVersion(){return"7.0.10-videojs-ads-jsclass"}registerListeners(){if(this.references={adstart:this.adStartListener.bind(this),adend:this.adEndListener.bind(this),adskip:this.adSkipListener.bind(this),adserror:this.errorListener.bind(this),"ads-click":this.clickListener.bind(this)},this.player)for(var d in this.references)this.player.on(d,this.references[d])}unregisterListeners(){if(this.player&&this.references){for(var d in this.references)this.player.off(d,this.references[d]);delete this.references}}adStartListener(d){this.firePlayerLog("adStartListener",{}),this.fireStart(),this.fireJoin()}adEndListener(d){this.firePlayerLog("adEndListener",{}),this.fireStop()}adSkipListener(d){this.firePlayerLog("adSkipListener",{}),this.fireSkip()}errorListener(d){this.firePlayerLog("adErrorListener",{}),this.fireError()}clickListener(d){this.firePlayerLog("adClickListener",{}),this.fireClick()}}class _{isUsed(){return typeof google<"u"&&this.player.ima3&&this.player.ads}getVersion(){let d=null;return typeof google<"u"&&google.ima&&(d="bcove-ima-jsclass "+google.ima.VERSION),d}getPlayhead(){let d=this.getVideo().getAdapter().player;return this.player.ima3&&this.player.ima3&&this.player.ima3.adPlayer&&(d=this.player.ima3.adPlayer),d.currentTime()}getDuration(){let d=null;if(this.player.ads&&this.player.ads.ad&&this.player.ads.ad.duration)d=this.player.ads.ad.duration;else{let g=this.getVideo().getAdapter().player;this.player.ima3&&(g=this.player.ima3.adPlayer),d=g&&g.duration?g.duration():null}return d}getPosition(){let d=this.getNpawReference().Constants.AdPosition.Midroll;if(this.player.ads&&this.player.ads.ad)switch(this.player.ads.ad.type){case"PREROLL":d=this.getNpawReference().Constants.AdPosition.Preroll;break;case"MIDROLL":d=this.getNpawReference().Constants.AdPosition.Midroll;break;case"POSTROLL":d=this.getNpawReference().Constants.AdPosition.Postroll}else this.getVideo().getAdapter().getPlayhead()>=this.getVideo().getAdapter().getDuration()&&(d=this.getNpawReference().Constants.AdPosition.Postroll);return this.getVideo().getAdapter().flags.isJoined||(d=this.getNpawReference().Constants.AdPosition.Preroll),d}getResource(){let d="unknown";return this.player.ima3&&(d=this.player.ima3.currentAd.getMediaUrl()),d}getTitle(){let d=null;return this.player.ima3&&this.player.ima3.currentAd&&(d=this.player.ima3.currentAd.getTitle()),d}getPlayerVersion(){let d=null;return this.player.ima3&&(d=this.player.ima3.VERSION),d}getGivenBreaks(){let d=null;return this.player.ima3&&(d=this.player.ima3.adsManager.getCuePoints().length),d}getBreaksTime(){let d=null;if(this.player.ima3){let g=this.player.ima3.adsManager.getCuePoints();for(let w in g)(!g[w]&&g[w]!==0||g[w]===-1)&&(g[w]=this.getVideo().getAdapter().getDuration());d=g}return d}getGivenAds(){let d=null;return this.player.ima3&&this.player.ima3.currentAd&&this.player.ima3.currentAd.getAdPodInfo()&&(d=this.player.ima3.currentAd.getAdPodInfo().getTotalAds()),d}getAudioEnabled(){let d=null;return d=!this.player.muted()&&!!this.player.volume(),d}getIsSkippable(){let d=!1;return this.player.ima3&&(d=this.player.ima3.currentAd&&this.player.ima3.currentAd.isSkippable()),d}getIsFullscreen(){let d=null;if(this.getPlugin().deviceDetector.isIphone())d=!this.getPlugin().deviceDetector.isInBackground;else{let g=null;this.player.ima3&&(g=this.player.ima3.el),d=!!g&&window.innerHeight<=g.clientHeight+30&&window.innerWidth<=g.clientWidth+30}return d}getIsVisible(){let d=null;return this.getPlugin().deviceDetector.isIphone()?d=!this.getPlugin().deviceDetector.isInBackground:this.player.ima3&&(d=this.getNpawUtils().calculateAdViewability(this.player.ima3.el)),d}getBitrate(){let d=-1;return this.player.ima3&&this.player.ima3.currentAd&&this.player.ima3.currentAd.getVastMediaBitrate()&&(d=this.player.ima3.currentAd.getVastMediaBitrate()),d}getCreativeId(){let d=null;return this.player.ima3&&this.player.ima3.currentAd?d=this.player.ima3.currentAd.getCreativeAdId()||this.player.ima3.currentAd.getCreativeId():this.titles&&(d=this.titles[(this.getVideo().requestBuilder.lastSent.adNumber||1)-1]._creativeId),d}registerListeners(){if(this.monitorPlayhead(!0,!1),this.references={"ima3-started":this.startJoinListener.bind(this),"ima3-paused":this.pausedListener.bind(this),"ima3-resumed":this.resumedListener.bind(this),"ima3-complete":this.adEndedListener.bind(this),"ima3-skipped":this.skippedListener.bind(this),"ima3-ad-error":this.errorListener.bind(this),"ads-pod-ended":this.podEndListener.bind(this),"ads-click":this.clickListener.bind(this),"ads-first-quartile":this.firstQuartileListener.bind(this),"ads-midpoint":this.secondQuartileListener.bind(this),"ads-third-quartile":this.thirdQuartileListener.bind(this)},this.player)for(let d in this.references)this.player.on(d,this.references[d])}startJoinListener(d){this.getVideo().getAdapter()&&this.getVideo().getAdapter().firePause(),this.fireStart(),this.fireJoin()}pausedListener(d){this.firePause()}resumedListener(d){this.fireResume()}skippedListener(d){this.fireSkip(),this.getVideo().getAdapter()&&this.getVideo().getAdapter().fireResume()}adEndedListener(d){let g=this.getVideo().requestBuilder.lastSent.adPosition===this.getNpawReference().Constants.AdPosition.Preroll?0:this.getVideo().getAdapter().lastPlayhead;this.fireStop({playhead:g,adPlayhead:this.getDuration()})}errorListener(d){if(this.player.ima3)if(d.getError&&d.getError()){let g=d.getError();this.fireError(g.getCode(),g.getMessage())}else this.fireError()}clickListener(d){if(this.player.ima3){let g=null;this.player.ima3.currentAd&&this.player.ima3.currentAd.g&&(g=this.player.ima3.currentAd.g.clickThroughUrl),this.fireClick(g)}}firstQuartileListener(d){this.fireQuartile(1)}secondQuartileListener(d){this.fireQuartile(2)}thirdQuartileListener(d){this.fireQuartile(3)}podEndListener(d){this.fireBreakStop()}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){for(let d in this.references)this.player.off(d,this.references[d]);delete this.references}}adPlayerErrorListener(d){let g=d.data.AdError;[1012,1005,301,402,302].indexOf(g.getErrorCode())>=0?this.fireManifest(youbora.Constants.ManifestError.NO_RESPONSE,g.getMessage()):[1007,1009,303].indexOf(g.getErrorCode())>=0?this.fireManifest(youbora.Constants.ManifestError.EMPTY,g.getMessage()):[403,100,503,101,102].indexOf(g.getErrorCode())>=0?this.fireManifest(youbora.Constants.ManifestError.WRONG,g.getMessage()):this.fireError(g.getErrorCode(),g.getMessage())}}class m{getVersion(){return"7.0.3-jwplayer-ads-jsclass"}getDuration(){return this.duration}getResource(){return this.resource}getPlayhead(){return this.playhead}getTitle(){return this.title}getPosition(){var d=this.getNpawReference().Constants.AdPosition.Midroll;return this.getVideo().getAdapter()&&!this.getVideo().getAdapter().flags.isJoined?d=this.getNpawReference().Constants.AdPosition.Preroll:this.position!==this.getNpawReference().Constants.AdPosition.Preroll&&this.position!==this.getNpawReference().Constants.AdPosition.Midroll&&this.position!==this.getNpawReference().Constants.AdPosition.Postroll||(d=this.position),d}getGivenBreaks(){var d=null;return this.manager&&this.manager.adsManager&&this.manager.adsManager.getCuePoints&&(d=this.manager.adsManager.getCuePoints().length),d}getBreaksTime(){var d=null;if(this.manager&&this.manager.adsManager&&this.manager.adsManager.getCuePoints){var g=this.manager.adsManager.getCuePoints();for(var w in g)(!g[w]&&g[w]!==0||g[w]===-1)&&(g[w]=this.getVideo()._adapter.getDuration());d=g}return d}getGivenAds(){return this.pod&&this.pod.getTotalAds?this.pod.getTotalAds():null}getAudioEnabled(){return!this.player.getMute()}getIsSkippable(){return this.skippable}getIsFullscreen(){if(typeof this.player.getFullscreen=="function")return this.player.getFullscreen();var d=this.player.getContainer();return window.innerHeight<=d.clientHeight+30&&window.innerWidth<=d.clientWidth+30}getIsVisible(){return this.getNpawUtils().calculateAdViewability(this.player.getContainer())}getCreativeId(){return this.creativeId}registerListeners(){for(var d in this.monitorPlayhead(!0,!1,1200),this.references={adTime:this.adTimeListener.bind(this),adStarted:this.adStartedListener.bind(this),adImpression:this.adImpressionListener.bind(this),adPause:this.adPauseListener.bind(this),adPlay:this.adPlayListener.bind(this),adSkipped:this.adSkippedListener.bind(this),adComplete:this.adCompleteListener.bind(this),adClick:this.adClickListener.bind(this),adError:this.adErrorListener.bind(this),adsManager:this.managerListener.bind(this)},this.references)this.player.on(d,this.references[d])}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){for(var d in this.references)this.player.off(d,this.references[d]);delete this.references}}managerListener(d){this.manager=d}adTimeListener(d){this.playhead=d.position,this.duration=d.duration,this.getVideo()._adapter&&this.getVideo()._adapter.firePause(),d.ima&&d.ima.ad&&this._imaMetadata(d.ima.ad),this.firstStarted||(this.fireStart(),this.firstStarted=!0),this.fireJoin(),this._quartileHandler()}_imaMetadata(d){this.creativeId=d.getCreativeId()||d.getCreativeAdId(),this.resource=d.getMediaUrl(),this.clickThrough=d.g?d.g.clickThroughUrl:null,this.pod=d.getAdPodInfo(),this.skippable=!(d.getSkipTimeOffset()<=0)}_quartileHandler(){var d=this.playhead/this.duration;d>.75?this.fireQuartile(3):d>.5?this.fireQuartile(2):d>.25&&this.fireQuartile(1)}adStartedListener(d){this.position=d.adposition,this.resource=d.mediafile&&d.mediafile.file?d.mediafile.file:d.tag,this.title=d.adtitle}adImpressionListener(d){this.position=d.adposition,this.resource=d.mediafile&&d.mediafile.file?d.mediafile.file:d.tag,this.title=d.adtitle||d.tag,this.clickThrough=d.clickThroughUrl}adPauseListener(d){this.firePause()}adPlayListener(d){this.fireResume()}adSkippedListener(d){this.fireSkip(),this.firstStarted=!1}adCompleteListener(d){this.fireStop(),this.firstStarted=!1,this.resetValues()}adClickListener(d){this.fireClick(this.clickThrough)}adErrorListener(d){if(d.message){var g=d.message.toLowerCase();g.indexOf("ad tag empty")>-1?this.fireManifest(this.getNpawReference().Constants.ManifestError.EMPTY,d.message):g.indexOf("error loading ad tag")>-1||g.indexOf("invalid ad tag")>-1||g.indexOf("any valid ads")>-1?this.fireManifest(this.getNpawReference().Constants.ManifestError.WRONG,d.message):!d.adErrorCode||d.adErrorCode!==60006&&d.adErrorCode!==10403?(this.fireError(d.adErrorCode,d.message),this.fireStop(),this.resetValues(),g.indexOf("timeout")>-1&&this.fireBreakStop()):this.fireManifest(this.getNpawReference().Constants.ManifestError.WRONG,d.message)}}resetValues(){this.playhead=void 0,this.duration=void 0,this.position=void 0,this.resource=void 0,this.title=void 0}}class y{getResource(d){var g="",w=this._getShaka(d);return typeof w.getManifestUri=="function"?g=w.getManifestUri():typeof w.getCurrentSrc=="function"&&(g=w.getCurrentSrc()),g}getBitrate(d){var g=-1,w=this._getShaka(d);if(typeof w.getStats=="function")g=w.getStats().streamBandwidth;else if(typeof w.getVideoTracks=="function"&&typeof w.getVideoTrackCurrentIndex=="function"){var j=w.getVideoTrackCurrentIndex(),H=w.getVideoTracks();for(var se in H){var Z=H[se];Z.index==j&&(g=Z.bitrate)}}return g}isUsed(d){return!!this._getShaka(d)}getRendition(d){var g=this._getShaka(d),w=g.getStats(),j=this.getNpawUtils().buildRenditionString(w.width,w.height,w.streamBandwidth),H=g.getVariantTracks();for(var se in H){var Z=H[se];if(Z.active&&Z.type==="video"){j=this.getNpawUtils().buildRenditionString(Z.width,Z.height,Z.bandwidth);break}}return j}_getShaka(d){var g=d.getTech();return g.shakaPlayer||g._shakaplayerInstance}}class C{getTech(d){var g=d.getTech();return g.vhs||g.hls||g.hls_||g.hlsplayer}getRendition(d){var g=null,w=this.getTech(d).currentLevel;if(w!==void 0&&w!==-1&&this.getTech(d).levels){var j=this.getTech(d).levels[w];j&&(g=this.getNpawUtils().buildRenditionString(j.width,j.height,j.bitrate))}return g}isUsed(d){return!!this.getTech(d)}getHls(d){return this.getTech(d)}getResource(d){var g=null;return this.getTech(d)&&this.getTech(d).url?g=this.getTech(d).url:this.getHls(d)&&this.getHls(d).source_&&(g=this.getHls(d).source_.src),g}getBitrate(d){var g=null,w=this.getTech(d).currentLevel;if(w!==void 0&&w!==-1&&this.getTech(d).levels){var j=this.getTech(d).levels[w];j&&j.bitrate&&(g=j.bitrate)}return g}}class T{getBitrate(d){return d.player.dash.shakaPlayer.getStats().streamBandwidth}getResource(d){var g="",w=d.player.dash.shakaPlayer;return typeof w.getManifestUri=="function"?g=w.getManifestUri():typeof w.getAssetUri=="function"&&(g=w.getAssetUri()),g}isUsed(d){return d.player.dash&&d.player.dash.shakaPlayer}getRendition(d){var g=d.player.dash.shakaPlayer,w=g.getStats(),j=this.getNpawUtils().buildRenditionString(w.width,w.height,w.streamBandwidth),H=g.getVariantTracks();for(var se in H){var Z=H[se];Z.active&&Z.type==="video"&&(j=this.getNpawUtils().buildRenditionString(Z.width,Z.height,Z.bandwidth))}return j}}class U{getResource(d){return this._getDashPlayer(d).getSource()}_getDashPlayer(d){return d.player.dash.mediaPlayer}isUsed(d){return d.player.dash&&d.player.dash.mediaPlayer&&!d.player.dash.shakaPlayer}getRendition(d){var g=null,w=this._getDashPlayer(d);if(w){var j=w.getQualityFor("video");if(j){var H=w.getBitrateInfoListFor("video")[j];H&&(g=this.getNpawUtils().buildRenditionString(H.width,H.height,H.bitrate))}}return g}getBitrate(d){var g=null,w=this._getDashPlayer(d);if(w){var j=w.getQualityFor("video");j&&(g=w.getBitrateInfoListFor("video")[j].bitrate)}return g}}class G{isUsed(d){return!!this.getHls(d)}getRendition(d){var g=null,w=this.getHls(d).playlists.media();if(d.player.qualityLevels){var j=d.player.qualityLevels(),H=j[j.selectedIndex];H&&(g=this.getNpawUtils().buildRenditionString(H.width,H.height,H.bitrate))}else if(w&&w.attributes){var se=w.attributes;se.RESOLUTION?g=this.getNpawUtils().buildRenditionString(se.RESOLUTION.width,se.RESOLUTION.height,se.BANDWIDTH):se.BANDWIDTH?g=this.getNpawUtils().buildRenditionString(se.BANDWIDTH):se.NAME&&(g=se.NAME)}return g}getHls(d){return d.getTech().vhs||d.getTech().hls||d.getTech().hls_||d.getTech().hlsplayer}getTotalBytes(d){var g=this.getHls(d),w=g.bytesReceived;return!w&&g.stats&&(w=g.stats.mediaBytesTransferred-d.acumBytes),w}getBitrate(d){var g=null,w=this.getHls(d).playlists.media();if(d.player.qualityLevels){var j=d.player.qualityLevels(),H=j[j.selectedIndex];H&&(g=H.bitrate)}else w&&w.attributes&&w.attributes.BANDWIDTH?g=w.attributes.BANDWIDTH:d.player.tech_&&d.player.tech_.vhs&&d.player.tech_.vhs.stats?g=d.player.tech_.vhs.stats.bandwidth:d.player.tech_&&d.player.tech_.hls&&d.player.tech_.hls.bandwidth?g=d.player.tech_.hls.bandwidth:d.player.hls&&d.player.hls.bandwidth&&(g=d.player.hls.bandwidth);return g}}class M{initProperties(){this.isGeneric=!0}getVersion(){return"7.0.4-videojs-ads-jsclass"}registerListeners(){if(this.references={adstart:this.adStartListener.bind(this),adend:this.adEndListener.bind(this),adskip:this.adSkipListener.bind(this),adserror:this.errorListener.bind(this),"ads-click":this.clickListener.bind(this),"ima3-first-quartile":this.firstQuartileListener.bind(this),"ima3-midpoint":this.secondQuartileListener.bind(this),"ima3-third-quartile":this.thirdQuartileListener.bind(this),"ads-first-quartile":this.firstQuartileListener.bind(this),"ads-midpoint":this.secondQuartileListener.bind(this),"ads-third-quartile":this.thirdQuartileListener.bind(this)},this.player)for(var d in this.references)this.player.on(d,this.references[d])}firstQuartileListener(d){this.fireQuartile(1)}secondQuartileListener(d){this.fireQuartile(2)}thirdQuartileListener(d){this.fireQuartile(3)}unregisterListeners(){if(this.player&&this.references){for(var d in this.references)this.player.off(d,this.references[d]);delete this.references}}adStartListener(d){this.firePlayerLog("adStartListener",{}),this.fireStart(),this.fireJoin()}adEndListener(d){this.firePlayerLog("adEndListener",{}),this.fireStop()}adSkipListener(d){this.firePlayerLog("adSkipListener",{}),this.fireSkip()}errorListener(d){this.firePlayerLog("adErrorListener",{}),this.fireError()}clickListener(d){this.firePlayerLog("adClickListener",{}),this.fireClick()}}class S{isUsed(){return this.player.ima3&&this.player.ads}getVersion(){var d;return typeof google<"u"&&google.ima&&(d="bcove-ima-jsclass "+google.ima.VERSION),d}getPlayhead(){var d=this.getVideo().getAdapter().player;return this.player.ads&&this.player.ads.ad?this.player.ads.ad.currentTime:d.currentTime()}getDuration(){let d;if(this.player.ads&&this.player.ads.ad&&this.player.ads.ad.duration)d=this.player.ads.ad.duration;else{var g=this.getVideo().getAdapter().player;if(this.player.ima3&&this.player.ima3.currentAdEventInfo)return this.player.ima3.currentAdEventInfo.creativeLength[0];d=g&&g.duration?g.duration():null}return d}getPosition(){let d=this.getNpawReference().Constants.AdPosition.Midroll,g=this.getVideo().getAdapter();if(this.player.ads&&this.player.ads.ad)switch(this.player.ads.ad.type){case"PREROLL":d=this.getNpawReference().Constants.AdPosition.Preroll;break;case"MIDROLL":d=this.getNpawReference().Constants.AdPosition.Midroll;break;case"POSTROLL":d=this.getNpawReference().Constants.AdPosition.Postroll}else g.flags.isJoined?g.getPlayhead()>.1&&g.getPlayhead()=g.getDuration()&&(d=this.getNpawReference().Constants.AdPosition.Postroll):d=this.getNpawReference().Constants.AdPosition.Preroll;return d}getResource(){var d;return this.player.ima3&&(d=this.player.ima3.currentAd.getMediaUrl()),d}getTitle(){var d;return this.player.ima3&&this.player.ima3.currentAd&&(d=this.player.ima3.currentAd.getTitle()),d}getPlayerVersion(){var d;return this.player.ima3&&(d=this.player.ima3.VERSION),d}getGivenBreaks(){var d;return this.player.ima3&&(d=this.player.ima3.adsManager.getCuePoints().length),d}getBreaksTime(){var d;if(this.player.ima3){var g=this.player.ima3.adsManager.getCuePoints();for(var w in g)(!g[w]&&g[w]!==0||g[w]===-1)&&(g[w]=this.getVideo().getAdapter().getDuration());d=g}return d}getGivenAds(){var d;return this.player.ima3&&this.player.ima3.currentAd&&this.player.ima3.currentAd.getAdPodInfo()&&(d=this.player.ima3.currentAd.getAdPodInfo().getTotalAds()),d}getAudioEnabled(){return!this.player.muted()&&!!this.player.volume()}getIsSkippable(){var d=!1;return this.player.ima3&&(d=this.player.ima3.currentAd&&this.player.ima3.currentAd.isSkippable()),d}getIsFullscreen(){var d,g;return this.getPlugin().deviceDetector.isIphone()?d=!this.getPlugin().deviceDetector.isInBackground:(this.player.ima3&&(g=this.player.ima3.el),d=!!g&&window.innerHeight<=g.clientHeight+30&&window.innerWidth<=g.clientWidth+30),d}getIsVisible(){var d;return this.getPlugin().deviceDetector.isIphone()?d=!this.getPlugin().deviceDetector.isInBackground:this.player.ima3&&(d=this.getNpawUtils().calculateAdViewability(this.player.ima3.el)),d}getBitrate(){var d;return this.player.ima3&&this.player.ima3.currentAd&&this.player.ima3.currentAd.getVastMediaBitrate()&&(d=this.player.ima3.currentAd.getVastMediaBitrate(),this.lastBitrate=d),this.lastBitrate&&!d?this.lastBitrate:-1}getCreativeId(){var d;return this.player.ima3&&this.player.ima3.currentAd?d=this.player.ima3.currentAd.getCreativeAdId()||this.player.ima3.currentAd.getCreativeId():this.titles&&(d=this.titles[(this.getVideo().requestBuilder.lastSent.adNumber||1)-1]._creativeId),d}registerListeners(){if(this.monitorPlayhead(!0,!1),this.references={"ads-ad-started":this.startJoinListener.bind(this),"ima3-paused":this.pausedListener.bind(this),"ima3-resumed":this.resumedListener.bind(this),"ima3-complete":this.adEndedListener.bind(this),"ima3-skipped":this.skippedListener.bind(this),"ima3-ad-error":this.errorListener.bind(this),"ima3-first-quartile":this.firstQuartileListener.bind(this),"ima3-midpoint":this.secondQuartileListener.bind(this),"ima3-third-quartile":this.thirdQuartileListener.bind(this),"ads-pod-ended":this.podEndListener.bind(this),"ads-click":this.clickListener.bind(this),"ads-first-quartile":this.firstQuartileListener.bind(this),"ads-midpoint":this.secondQuartileListener.bind(this),"ads-third-quartile":this.thirdQuartileListener.bind(this)},this.player)for(var d in this.references)this.player.on(d,this.references[d])}startJoinListener(d){this.getVideo().getAdapter()&&this.getVideo().getAdapter().firePause(),this.fireStart(),this.fireJoin()}pausedListener(d){this.firePause()}resumedListener(d){this.fireResume()}skippedListener(d){this.fireSkip(),this.getVideo().getAdapter()&&this.getVideo().getAdapter().fireResume()}adEndedListener(d){var g=this.getVideo().requestBuilder.lastSent.adPosition===this.getNpawReference().Constants.AdPosition.Preroll?0:this.getVideo().getAdapter().lastPlayhead;this.fireStop({playhead:g,adPlayhead:this.getDuration()}),this.lastBitrate=void 0}errorListener(d){if(this.player.ima3)if(d.getError&&d.getError()){var g=d.getError();this.fireError(g.getCode(),g.getMessage())}else this.fireError()}clickListener(d){var g;this.player.ima3&&(this.player.ima3.currentAd&&this.player.ima3.currentAd.g&&(g=this.player.ima3.currentAd.g.clickThroughUrl),this.fireClick(g))}firstQuartileListener(d){this.fireQuartile(1)}secondQuartileListener(d){this.fireQuartile(2)}thirdQuartileListener(d){this.fireQuartile(3)}podEndListener(d){this.fireBreakStop()}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){for(var d in this.references)this.player.off(d,this.references[d]);delete this.references}}adPlayerErrorListener(d){var g=d.data.AdError;[1012,1005,301,402,302].indexOf(g.getErrorCode())>=0?this.fireManifest(youbora.Constants.ManifestError.NO_RESPONSE,g.getMessage()):[1007,1009,303].indexOf(g.getErrorCode())>=0?this.fireManifest(youbora.Constants.ManifestError.EMPTY,g.getMessage()):[403,100,503,101,102].indexOf(g.getErrorCode())>=0?this.fireManifest(youbora.Constants.ManifestError.WRONG,g.getMessage()):this.fireError(g.getErrorCode(),g.getMessage())}}class D{isUsed(){return!this.player.ima3&&this.player.ads}getVersion(){return"7.0.4-videojs-bcove-ads-jsclass"}getPlayhead(){if(this.player.ads.ad)return this.player.ads.ad.currentTime}getPosition(){switch(this.player.ads.pod.ads_pod_index){case 0:return this.getNpawReference().Constants.AdPosition.Preroll;case-1:return this.getNpawReference().Constants.AdPosition.Postroll}return this.getNpawReference().Constants.AdPosition.Midroll}getResource(){if(this.player.ads.currentSrc)return this.player.ads.currentSrc}getTitle(){if(this.player.ads.ad&&this.player.ads.ad.title)return this.player.ads.ad.title}getDuration(){if(this.player.ads.ad&&this.player.ads.ad.duration)return this.lastDuration=this.player.ads.ad.duration,this.lastDuration}getPlayerName(){return"bcove-ads"}getPlayerVersion(){return this.player.ads.VERSION}registerListeners(){for(var d in this.monitorPlayhead(!0,!1),this.references=[],this.references["ads-ad-started"]=this.adStartListener.bind(this),this.references["ads-pause"]=this.adPausedListener.bind(this),this.references["ads-play"]=this.adResumedListener.bind(this),this.references["ads-ad-ended"]=this.adEndedListener.bind(this),this.references["ima3-skipped"]=this.adSkippedListener.bind(this),this.references["ima3-ad-error"]=this.errorListener.bind(this),this.references.adserror=this.errorListener.bind(this),this.references["ads-click"]=this.clickListener.bind(this),this.references["ads-first-quartile"]=this.firstQuartileListener.bind(this),this.references["ads-midpoint"]=this.secondQuartileListener.bind(this),this.references["ads-third-quartile"]=this.thirdQuartileListener.bind(this),this.references)this.player.on(d,this.references[d])}firstQuartileListener(d){this.fireQuartile(1)}secondQuartileListener(d){this.fireQuartile(2)}thirdQuartileListener(d){this.fireQuartile(3)}adStartListener(d){this.getVideo().getAdapter()&&this.getVideo().getAdapter().firePause(),this.fireStart(),this.fireJoin()}adPausedListener(d){this.firePause()}adResumedListener(d){this.fireResume()}adEndedListener(d){this.fireStop({adPlayhead:this.lastDuration});let g=this.getVideo().getAdapter();g&&g.fireResume()}adSkippedListener(d){this.fireStop({skipped:!0});let g=this.getVideo().getAdapter();g&&g.fireResume()}errorListener(d){this.fireError("Ad error")}clickListener(d){var g=null;this.player.ima3&&this.player.ima3.currentAd&&this.player.ima3.currentAd.g&&(g=this.player.ima3.currentAd.g.clickThroughUrl),this.fireClick({url:g})}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){for(var d in this.references)this.player.off(d,this.references[d]);this.references=[]}}}class B{getPosition(){var d=this.getNpawReference().Constants.AdPosition,g=d.Midroll,w=this.getVideo();let j="";this.player!==null&&this.player.ads!==null&&this.player.ads.currentAdBreak!==null&&this.player.ads.currentAdBreak.integration!==null&&(j=this.player.ads.currentAdBreak.integration);let H=j==="google-ima";if(w){var se=w.getAdapter();if(se){let Z=w.getPlayhead(),be=w.getDuration()||0;Z<.1||!H&&!se.flags.isJoined?g=d.Preroll:(H&&Z+1>=be||!H&&Z+1+this.getDuration()>=be)&&(g=d.Postroll)}}return g}quartileListener(d){var g=this.getPlayhead()/this.duration;g>=.25&&(this.fireQuartile(1),g>=.5&&(this.fireQuartile(2),g>=.75&&this.fireQuartile(3)))}resumeAdListener(d){this.fireResume()}getIsVisible(){try{var d=this.player?this.player.element:null}catch{}return!!d&&this.getNpawUtils().calculateAdViewability(d)}skipAdListener(d){this.fireSkip()}_getCurrentAd(){var d=this.player.ads,g=null;return d&&(d.currentAds&&d.currentAds[0]?g=d.currentAds[0]:d&&d.currentAdBreak&&d.currentAdBreak.ads[this.adCount-1]&&(g=d.currentAdBreak.ads[this.adCount-1])),g}errorAdListener(d){this.fireError(),this.flags.isStarted||(this.adCount=(this.adCount||0)+1)}getGivenBreaks(){var d=null;return this.player.ads.scheduledAdBreaks&&(d=this.player.ads.scheduledAdBreaks.length||d),d}getIsSkippable(){var d=this._getCurrentAd();return!(!d||!d.skipOffset)&&d.skipOffset>=0}getIsFullscreen(){var d=!1;return this.player.element&&this.player.element.clientWidth&&this.player.element.clientHeight&&(d=window.innerHeight<=this.player.element.clientHeight+30&&window.innerWidth<=this.player.element.clientWidth+30),d}getVersion(){return"7.0.14-theoplayer2-ads-jsclass"}getAudioEnabled(){return!this.player.muted&&this.player.volume>0}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.player.ads&&this.references){for(var d in this.references)this.player.ads.removeEventListener(d,this.references[d]);delete this.references}if(this.player&&this.playerReferences){for(var g in this.playerReferences)this.player.removeEventListener(g,this.playerReferences[g]);delete this.playerReferences}}breakBeginListener(d){this.adCount=0,this.actualSlot=d.ad}registerListeners(){if(this.player.ads){for(var d in this.isDAI=!1,this.getNpawUtils().logAllEvents(this.player.ads),this.monitorPlayhead(!0,!1,2e3),this.references={adbegin:this.playAdListener.bind(this),adend:this.endedAdListener.bind(this),aderror:this.errorAdListener.bind(this),adskip:this.skipAdListener.bind(this),adbreakbegin:this.breakBeginListener.bind(this),adbreakend:this.breakEndListener.bind(this)},typeof google<"u"&&google.ima.dai&&(this.isDAI=!0),this.playerReferences={pause:this.pauseAdListener.bind(this),playing:this.resumeAdListener.bind(this),play:this.resumeAdListener.bind(this),timeupdate:this.quartileListener.bind(this)},this.references)this.player.ads.addEventListener(d,this.references[d]);for(var g in this.playerReferences)this.player.addEventListener(g,this.playerReferences[g])}}getPlayhead(){let d=this.player.currentTime;return this.isDAI==1&&(d=this.player.currentTime-this.playhead),d}getDuration(){var d=this._getCurrentAd();return d&&d.duration?d.duration:this.player.duration}pauseAdListener(d){this.firePause()}breakEndListener(d){this.fireBreakStop();let g=this.getVideo().getAdapter();g&&g.fireResume(),this.getVideo().requestBuilder.lastSent.givenAds=void 0;let w=this.getNpawReference().Constants.AdPosition.Postroll;this.getPosition()===w&&this.player.ads.scheduledAds.length===0&&this.getVideo().getAdapter().fireStop({},"breakEndListener")}getGivenAds(){return this.actualSlot?this.actualSlot.ads.length:null}endedAdListener(d){let g=this.getVideo().getAdapter();g&&!g.flags.isStarted&&this.fireStart(),this.fireStop({adPlayhead:this.duration})}getResource(){var d=null,g=this._getCurrentAd();return g&&(g.mediaUrl?d=g.mediaUrl:g.mediaFiles&&(d=g.mediaFiles[0].resourceURI||g.mediaFiles[0].contentURL)),d}getTitle(){var d=this._getCurrentAd();return d&&d.title?d.title:"unknown"}playAdListener(d){this.adCount=(this.adCount||0)+1;var g=this.getVideo().getAdapter();g&&(g.ended=!1,g.fireInit(),g.firePause()),this.fireStart({adPlayhead:"0"}),this.fireJoin({adPlayhead:"0"}),this.duration=this.getDuration(),this.playhead=this.player.currentTime}}class R{getVersion(){return"7.0.3-chromecast-caf-ads-js"}getPlayerName(){return"Chromecast CAF Ads"}getPlayhead(){return this.player.getBreakClipCurrentTimeSec()}getDuration(){return this.player.getBreakClipDurationSec()}getPosition(){var d=this.getNpawReference().Constants.AdPosition.Midroll,g=this.plugin.getAdapter();return g&&(!g.flags.isJoined||g.getPlayhead()<1?d=this.getNpawReference().Constants.AdPosition.Preroll:g.getPlayhead()+1>=g.getDuration()&&(d=this.getNpawReference().Constants.AdPosition.Postroll)),d}getTitle(){return"unknown"}getResource(){return"unknown"}getCreativeId(){return this.clipId}getIsVisible(){return!0}getIsFullscreen(){return!0}getIsSkippable(){return this.isSkippable}getGivenAds(){return this.adsInBreak}getBreaksTime(){var d=this.player.getBreaks(),g=[];for(var w in d){var j=d[w].position,H=this.plugin?this.plugin.getAdapter():null;j===-1&&H&&(j=H.getDuration()),g.indexOf(j)===-1&&g.push(j)}return g}getGivenBreaks(){var d=this.player.getBreaks(),g=[];for(var w in d){var j=d[w].position,H=this.plugin?this.plugin.getAdapter():null;j===-1&&H&&(j=H.getDuration()),g.indexOf(j)===-1&&g.push(j)}return g.length}registerListeners(){var d=cast.framework.events;for(var g in this.monitorPlayhead(!0,!1,1200),this.references={},this.references[d.EventType.BREAK_CLIP_LOADING]=this.playListener.bind(this),this.references[d.EventType.BREAK_CLIP_STARTED]=this.joinListener.bind(this),this.references[d.EventType.BREAK_CLIP_ENDED]=this.stopListener.bind(this),this.references[d.EventType.BREAK_STARTED]=this.breakStartListener.bind(this),this.references[d.EventType.BREAK_ENDED]=this.breakEndListener.bind(this),this.references[d.EventType.PAUSE]=this.pauseListener.bind(this),this.references[d.EventType.PLAYING]=this.playingListener.bind(this),this.references)this.player.addEventListener(g,this.references[g])}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){for(var d in this.references)this.player.removeEventListener(d,this.references[d]);this.references={}}}playListener(d){var g=this.plugin.getAdapter();g&&(g.fireStart({},"playListener-ads"),g.firePause({},"playListener-ads")),d!==void 0?(this.isSkippable=d.whenSkippable!==void 0,this.clipId=d.breakClipId):(this.isSkippable=!1,this.clipId=null)}joinListener(d){this._quartileTimer||(this._quartileTimer=setInterval(this.sendQuartile.bind(this),1e3));var g=this.plugin?this.plugin.getAdapter():null;g&&g.firePause({},"joinListener-ads"),this.plugin&&this.plugin.isBreakStarted&&(this.fireStart({},"joinListener"),this.fireJoin({},"joinListener"))}breakStartListener(d){this.adsInBreak=d.total,this.fireBreakStart(),this._quartileTimer||(this._quartileTimer=setInterval(this.sendQuartile.bind(this),1e3)),this.fireStart({},"breakStartListener"),this.fireJoin({},"breakStartListener")}stopListener(d){this.fireStop({},"stopListener")}breakEndListener(d){this.adsInBreak=void 0,this.fireBreakStop();var g=this.plugin?this.plugin.getAdapter():null;g&&g.fireResume({},"endListener-ads")}sendQuartile(d){var g=this.getPlayhead(),w=this.getDuration();g>w/4&&(this.fireQuartile(1),g>w/2&&(this.fireQuartile(2),g>.75*w&&(this.fireQuartile(3),this._quartileTimer&&(clearInterval(this._quartileTimer),this._quartileTimer=void 0))))}pauseListener(d){this.flags.isBuffering||this.firePause({},"pauseListener")}playingListener(d){this.fireResume({},"playingListener")}}class V{getVersion(){return"7.0.1-react-native-video-ads-jsclass"}getDuration(){return this.duration||0}getResource(){return this.resource||"N/A"}getPlayhead(){let d=this.getVideo().getAdapter();return d?d.playhead:void 0}getTitle(){return this.title||"N/A"}getPosition(){var d=this.getNpawReference().Constants.AdPosition.Midroll;return this.getVideo().getAdapter()&&!this.getVideo().getAdapter().flags.isJoined&&(d=this.getNpawReference().Constants.AdPosition.Preroll),d}onAdEvent(d){switch(d.event){case"FIRST_QUARTILE":this._quartileHandler(1);break;case"MIDPOINT":this._quartileHandler(2);break;case"THIRD_QUARTILE":this._quartileHandler(3);break;case"STARTED":this.adStartedListener();break;case"COMPLETED":this.adCompleteListener();break;case"CLICK":this.adClickListener();break;case"PAUSED":this.adPauseListener();break;case"RESUMED":this.adPlayListener();break;case"ERROR":this.adErrorListener();break;case"SKIPPED":this.adSkippedListener();break;case"CONTENT_RESUME_REQUESTED":this.adBreakFinished();break;case"CONTENT_PAUSE_REQUESTED":let g=this.getVideo().getAdapter();g.flags.isPaused||(g.firePause(),g.lastPlayhead=g.getPlayhead()),this.showingAds=!0;break;case"ALL_ADS_COMPLETED":this.getVideo().getAdapter().reactPlatform&&this.getVideo().getAdapter().reactPlatform==="ios"&&this.getVideo().getAdapter().fireStop({},"onAdEvent")}}isShowingAds(){return this.showingAds}_quartileHandler(d){this.fireQuartile(d)}adStartedListener(d){this.getVideo().getAdapter()&&this.getVideo().getAdapter().stopTimer&&clearTimeout(this.getVideo().getAdapter().stopTimer),this.showingAds=!0,this.getVideo().getAdapter().cancelSeek(),this.fireStart({},"adStartListener"),this.fireJoin({},"adStartListener")}adPauseListener(d){this.firePause({},"adPauseListener")}adPlayListener(d){this.fireResume({},"adPlayListener")}adSkippedListener(d){this.fireSkip({},"adSkippedListener")}adCompleteListener(d){this.fireStop({},"adCompleteListener"),this.resetValues()}adClickListener(d){this.fireClick(this.clickThrough)}adBreakFinished(d){this.fireBreakStop({},"adBreakFinished"),this.showingAds=!1}adErrorListener(d){if(d.message){var g=d.message.toLowerCase();g.indexOf("ad tag empty")>-1?this.fireManifest(this.getNpawReference().Constants.ManifestError.EMPTY,d.message):g.indexOf("error loading ad tag")>-1||g.indexOf("invalid ad tag")>-1||g.indexOf("any valid ads")>-1?this.fireManifest(this.getNpawReference().Constants.ManifestError.WRONG,d.message):!d.adErrorCode||d.adErrorCode!==60006&&d.adErrorCode!==10403?(this.fireError(d.adErrorCode,d.message),this.fireStop(),this.resetValues(),g.indexOf("timeout")>-1&&this.fireBreakStop()):this.fireManifest(this.getNpawReference().Constants.ManifestError.WRONG,d.message)}}resetValues(){this.playhead=void 0,this.duration=void 0,this.position=void 0,this.resource=void 0,this.title=void 0,this.showingAds=!1}}let $={video:{Hlsjs:class{checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player.media)}catch{return!0}}getVersion(){return"7.0.6-hlsjs-jsclass"}getPlayhead(){var l=null;return this.getVideo()&&this.getVideo().isBreakStarted?this._lastPlayhead:(this.tag&&(l=this.tag.currentTime),l)}getPlayrate(){var l=null;return this.tag&&(l=this.tag.playbackRate),l}getDroppedFrames(){var l=null;return this.tag&&(l=this.tag.webkitDroppedFrameCount),l}getDuration(){var l=null;return this.tag&&!this.getIsLive()&&(l=this.tag.duration),l}getBitrate(){var l=null;return this.player.currentLevel!==-1&&this.player.levels[this.player.currentLevel]&&(l=this.player.levels[this.player.currentLevel].bitrate),l}getRendition(){var l=null;if(this.player.currentLevel!==-1){var d=this.player.levels[this.player.currentLevel];d&&(d.name?l=d.name:d.bitrate&&(l=this.getNpawUtils().buildRenditionString(d.width,d.height,d.bitrate)))}return l}getIsLive(){var l=null;return this.player.levels&&this.player.levels[this.player.currentLevel]&&(l=this.player.levels[this.player.currentLevel].details.live),l}getLatency(){var l=this.player.latency;return l?1e3*l:void 0}getResource(){return this.player.url}getPlayerVersion(){return typeof Hls<"u"?Hls.version:"unknown"}getPlayerName(){return"Hls.js"}registerListeners(){if(this.mediaFound=!(!this.player||!this.player.media),this._lastPlayhead=0,this.mediaFound)for(var l in this.hlsReference||this.hlsMediaReference||(this.tag=this.player?this.player.media:null,this._registerHlsRef()),this.references={play:this.playListener.bind(this),pause:this.pauseListener.bind(this),playing:this.playingListener.bind(this),seeking:this.seekingListener.bind(this),error:this.errorListener.bind(this),ended:this.endedListener.bind(this),progress:this.progressListener.bind(this),waiting:this.bufferingListener.bind(this),timeupdate:this.timeupdateListener.bind(this)},this.player.on(Hls.Events.LEVEL_SWITCHED,this.detectQualityChange.bind(this)),this.references)this.tag.addEventListener(l,this.references[l]);else this._registerHlsRef()}detectQualityChange(l,d){let g,w=this.player.levels[d.level];w&&(w.name?g=w.name:w.bitrate&&(g=this.getNpawUtils().buildRenditionString(w.width,w.height,w.bitrate))),g&&this.storeNewRendition(g)}_registerHlsRef(){this.hlsReference=this.hlsErrorListener.bind(this),this.hlsMediaReference=this.getTagListener.bind(this),this.player.on("hlsError",this.hlsReference,this),this.player.on("hlsMediaAttached",this.hlsMediaReference)}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&(this.hlsReference&&this.player.off("hlsError",this.hlsReference,this),this.hlsMediaReference&&this.player.off("hlsMediaAttached",this.hlsMediaReference),this.player.off(Hls.Events.LEVEL_SWITCHED,this.detectQualityChange.bind(this)),this.hlsReference=null,this.hlsMediaReference=null),this.tag&&this.references){for(var l in this.references)this.tag.removeEventListener(l,this.references[l]);delete this.references}}progressListener(l){this._lastPlayhead=this.getPlayhead(),this.flags.isStarted?!this.flags.isJoined&&this.getVideo().getIsLive()&&this.fireJoin({},"progressListener"):this.getPlayhead()>1&&(this.startedOnce||!this.getVideo().getIsLive())&&(this.fireStart({},"progressListener"),this.fireJoin({},"progressListener"))}timeupdateListener(l){this._lastPlayhead=this.getPlayhead(),this.flags.isStarted?!this.flags.isJoined&&this.getVideo().getIsLive()&&this.fireJoin({},"timeupdateListener"):this.getPlayhead()>1&&(this.startedOnce||!this.getVideo().getIsLive())&&(this.fireStart({},"timeupdateListener"),this.fireJoin({},"timeupdateListener"))}playListener(l){this.fireStart({},"playListener"),this.startedOnce=!0}pauseListener(l){this.flags.isBuffering||(this.firePause({},"pauseListener"),this.pauseStamp=l.timeStamp)}playingListener(l){this.fireJoin({},"playingListener"),this.fireBufferEnd({},"playingListener"),this.fireSeekEnd({},"playingListener"),this.fireResume({},"playingListener")}seekingListener(l){this.fireSeekBegin({},!1,"seekingListener")}bufferingListener(l){this.tag&&this.tag.readyState!==2||this.fireBufferBegin({},!1,"bufferingListener")}errorListener(l){this.fireError(this.tag.error.code,"PLAY FAILURE",void 0,void 0,"errorListener")}endedListener(l){let d=this.getVideo().getAdsAdapter(),g=!1;d&&d.isDAI!==void 0&&(d.isDAI||(g=d.player.getCuePoints().includes(-1))),g||this.fireStop({},"endedListener")}hlsErrorListener(l,d){d.fatal&&this.fireFatalError(d.details,"PLAYER FAILURE",void 0,void 0,"hlsErrorListener")}getTagListener(){this.tag=this.player?this.player.media:null,this.mediaFound=!0,this.registerListeners()}},Bitmovin:class{adsAdapters={nativeAdsAdapter:e};getVersion(){return"7.0.9-bitmovin8-jsclass"}getPlayhead(){let l=this.player?this.player.getCurrentTime():null;return this.getVideo().getAdsAdapter()&&this.getVideo().getAdsAdapter().flags.isStarted&&(l=this.lastPlayhead||0),l}getPlayrate(){return this.player?this.player.getPlaybackSpeed():null}getStopParams(){let l={};return this.getVideo().getPlayhead()>0&&(l={playhead:this.getVideo().getPlayhead()}),l}getDroppedFrames(){return this.player?this.player.getDroppedVideoFrames():null}getDuration(){let l=null;return this.player&&(this.lastDuration=this.player.getDuration()||this.lastDuration,l=this.lastDuration),l}getBitrate(){let l=null;if(this.player){let d=this.player.getPlaybackVideoData(),g=this.player.getVideoQuality();g&&g.bitrate?l=g.bitrate:d&&d.bitrate&&(l=d.bitrate)}return l}getRendition(){let l=null;if(this.player){let d=this.player.getPlaybackVideoData(),g=this.player.getVideoQuality();g&&g.bitrate?l=this.getNpawUtils().buildRenditionString(g.width,g.height,g.bitrate):d&&d.bitrate&&(l=this.getNpawUtils().buildRenditionString(d.width,d.height,d.bitrate))}return l}detectQualityChange(l){let d;l.targetQuality&&l.targetQuality.bitrate&&(d=this.getNpawUtils().buildRenditionString(l.targetQuality.width,l.targetQuality.height,l.targetQuality.bitrate)),d&&this.storeNewRendition&&this.storeNewRendition(d)}getTitle(){return this.player?this.player.getSource().title:null}getIsLive(){return this.player?this.player.isLive():null}getResource(){let l=null;if(this.player&&this.player.getSource&&this.player.getSource()){try{if(this.player.getStreamType&&this.player.getStreamType()&&this.player.getSource()[this.player.getStreamType()])return this.player.getSource()[this.player.getStreamType()]}catch{}l=this.player.getSource().progressive||this.player.getSource().hls}try{this.player&&this.player.getManifest&&this.player.getManifest()&&(l=this.player.getManifest().indexOf("MPD")>0?this.player.getSource().dash:this.player.getSource().hls)}catch{this.log.notice("Can't get manifest")}return l}getPlayerVersion(){return this.player?this.player.version:null}getPlayerName(){return"Bitmovin"}_checkAdsAdapter(){let l=this.getVideo().getAdsAdapter();l?l&&!l.player&&l.setPlayer(this.player):(this.plugin.setAdsAdapter(this.getAdapterClass("nativeAdsAdapter"),this.getVideo().getVideoKey()),this.getVideo().getAdsAdapter().registerListeners())}registerListeners(){let l=this.player.exports.PlayerEvent;this.monitorPlayhead(!0,!1),this.references={},this.references[l.Play]=this.playListener.bind(this),this.references[l.Paused]=this.pauseListener.bind(this),this.references[l.Playing]=this.playingListener.bind(this),this.references[l.Error]=this.errorListener.bind(this),this.references[l.Seek]=this.seekingListener.bind(this),this.references[l.TimeShift]=this.seekingListener.bind(this),this.references[l.TimeShifted]=this.seekedListener.bind(this),this.references[l.PlaybackFinished]=this.endedListener.bind(this),this.references[l.TimeChanged]=this.timeupdateListener.bind(this),this.references[l.SourceUnloaded]=this.endedListener.bind(this),this.references[l.Destroy]=this.destroyListener.bind(this),this.references[l.Ready]=this.readyListener.bind(this),this.references[l.AdBreakStarted]=this._checkAdsAdapter.bind(this),this.references[l.VideoPlaybackQualityChanged]=this.detectQualityChange.bind(this);for(let d in this.references)this.player.on(d,this.references[d]);this.plugin.setAdsAdapter(this.getAdapterClass("nativeAdsAdapter"),this.getVideo().getVideoKey()),this.getVideo().getAdsAdapter().registerListeners()}unregisterListeners(){this.monitor&&this.monitor.stop();try{if(this.getVideo()&&this.getVideo().removeAdsAdapter(),this.player&&this.player.off&&this.references){for(let l in this.references)this.player.off(l,this.references[l]);delete this.references}}catch{}}readyListener(l){this._checkAdsAdapter()}playListener(l){this.firePlayerLog("playListener",{}),this.lastPlayhead=0,this.fireStart(),this.failedView=!1}timeupdateListener(l){let d=this.lastPlayhead;if(this.getVideo().getAdsAdapter()&&this.getVideo().getAdsAdapter().flags.isStarted||(this.lastPlayhead=this.player.getCurrentTime()),this.getPlayhead()>.2&&(this.getIsLive()||this.getPlayhead()+1H||j>H?(this.fireSeekEnd({},"timeupdateListener"),this.monitor.skipNextTick(),this.seekStartPosition=null):this.cancelSeek()}}else this.fireSeekEnd({},"timeupdateListener"),this.monitor.skipNextTick()}pauseListener(l){this.firePlayerLog("pauseListener",{}),l.issuer&&l.issuer==="ui-seek"?this.fireSeekBegin({},!1,"pauseListener"):this.firePause()}playingListener(l){this.firePlayerLog("playingListener",{}),this.fireStart(),this.failedView=!1,this.fireResume(),this.flags.isJoined||this.monitor.skipNextTick()}errorListener(l){this.firePlayerLog("errorListener",{}),this.failedView||(this.flags.isStarted||(this.failedView=!0),this.fireError(l.code,l.name),this.fireStop(this.getStopParams()))}seekingListener(l){this.firePlayerLog("seekingListener",{}),this.seekStartPosition=l.position??this.player.getCurrentTime(),this.fireSeekBegin({},!1,"seekingListener")}seekedListener(l){this.firePlayerLog("seekedListener",{}),this.fireSeekEnd({},"seekedListener")}endedListener(l){this.firePlayerLog("endedListener",{}),this.fireStop(this.getStopParams())}destroyListener(l){this.player=null,this.tag=null,this.fireStop(),this.getVideo().removeAdapter()}getVideoBufferLength(){return this.player?this.player.getVideoBufferLength():null}},Videojs:class{adsAdapters={bcoveImaAdsAdapter:_,genericAdsAdapter:A};additionalContexts={contribHlsTech:v,dashTech:p,dashShakaTech:c,hlsJsTech:n,streamrootHlsJsTech:o,shakaTech:t};isInAds(l=!1){try{let d=this.getVideo().getAdsAdapter();return l&&d&&d.isDAI!==void 0&&!d.isDAI?d.player.getCuePoints().includes(-1):this.player.ads&&this.player.ads.inAdBreak&&typeof this.player.ads.inAdBreak=="function"&&this.player.ads.inAdBreak()}catch{return!1}}getBitrate(){let l=null,d=this.getUsedTech();return d&&d.getBitrate&&(l=d.getBitrate(this)),l}checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player.el())}catch{return!0}}pauseListener(l){this.firePlayerLog("pauseListener",{}),this.firePause({},"pauseListener")}bufferingListener(l){this.firePlayerLog("bufferingListener",{}),this.flags.isSeeking||this.fireBufferBegin({},!1,"bufferingListener")}getRendition(){let l=null,d=this.getUsedTech();return d&&d.getRendition?l=d.getRendition(this):this.player.videoHeight()&&this.player.videoWidth()&&(l=this.getNpawUtils().buildRenditionString(this.player.videoHeight(),this.player.videoWidth())),l}getPlayerVersion(){let l=null;return typeof videojs<"u"&&(l=videojs.VERSION),l}playListener(l){this.firePlayerLog("playListener",{}),this.isInAds()||(this.flags.isStarted?this.lastSrc&&this.lastSrc!==this.getResource()&&(this.fireStop({},"playListenerNewResource"),this.acumBytesFunc(),this.lastPlayhead=void 0,this._startEvent("playListenerNewResource"),this.lastSrc=this.getResource()):(this.lastSrc=this.getResource(),this._startEvent("playListenerNotStarted")))}loadAdsAdapter(){if(this.getVideo())if(!this.getVideo().getAdsAdapter()||this.getVideo().getAdsAdapter().isGeneric){let l=null;this.getAdapterClass("bcoveImaAdsAdapter").isUsed(this)?l=this.getAdapterClass("bcoveImaAdsAdapter"):this.getVideo().getAdsAdapter()===null&&(l=this.getAdapterClass("genericAdsAdapter"),l.initProperties()),l&&this.getVideo().setAdsAdapter(l,this.plugin,!0)}else this.getVideo().getAdsAdapter().registerImaEvents&&this.getVideo().getAdsAdapter().registerImaEvents()}errorModifyer(l,d,g){this.fatalList=l||[],this.nonFatalList=d||[],this.ignoreList=g||[]}getPlayrate(){return this.player.playbackRate()}timeupdateListener(l){this.isInAds()||(this.getPlayhead()>.1&&(this.fireJoin({},"timeupdateListener"),this.joinPolling&&this.joinPolling.stop(),!this.flags.isPaused&&this.lastSeekPlayhead&&this.lastSeekPlayhead!==this.getPlayhead()&&(this.fireSeekEnd({},"timeupdateListener"),this.lastSeekPlayhead=!1)),this.flags.isJoined||(this.lastPlayhead===void 0&&(this.lastPlayhead=this.getPlayhead()),this.lastPlayhead!==this.getPlayhead()&&(this.player.options_&&this.plugin&&!this.getVideo().options["content.id"]&&(this.getVideo().options["content.id"]=this.player.options_["data-video-id"]),this.fireStart({},"timeupdateListener"),this.fireJoin({},"timeupdateListener"),this.joinPolling&&this.joinPolling.stop(),this.lastPlayhead=void 0)),this.getVideo()._adsAdapter&&!this.getVideo()._adsAdapter.flags.isStarted&&(this.lastPlayhead=this.getPlayhead()))}getPlayhead(){let l=this.player.currentTime();return this.getVideo()._adsAdapter&&this.getVideo()._adsAdapter.flags.isStarted&&(l=this.lastPlayhead||l),l}getDuration(){var l=this.player.duration();return this.player.mediainfo&&this.player.mediainfo.duration!==void 0&&(l=this.player.mediainfo.duration),l}aderrorListener(l){this.loadAdsAdapter(),this.getVideo().getAdsAdapter()&&this.getVideo().getAdsAdapter().adPlayerErrorListener&&this.getVideo().getAdsAdapter().adPlayerErrorListener(l)}_jointimePolling(l){this.getVideo()?this.getVideo().getAdsAdapter()&&this.getVideo().getAdsAdapter().flags.isStarted||(this.lastPlayhead!==0&&typeof this.lastPlayhead=="number"&&this.lastPlayhead!==this.getPlayhead()&&(this.fireJoin({},"jointimePolling"),this.joinPolling&&this.joinPolling.stop()),this.lastPlayhead=this.getPlayhead()):this.joinPolling&&this.joinPolling.stop()}acumBytesFunc(){this.acumBytes+=this.getTotalBytes()||0}adsEndedListener(l){this.firePlayerLog("adsEndedListener",{}),this.adsEnded=!0,this.getVideo().requestBuilder.lastSent.adPosition===this.getNpawReference().Constants.AdPosition.Postroll&&(this.getVideo().getAdapter().fireStop({},"adsEndedListener"),this.acumBytesFunc(),this.lastPlayhead=void 0)}getVersion(){return"7.0.11-videojs-jsclass"}seekedListener(l){this.firePlayerLog("seekedListener",{}),this.flags.isPaused||this.fireSeekEnd({},"seekedListener"),this.lastSeekPlayhead=this.getPlayhead()}getTech(){return this.player.tech({IWillNotUseThisInPlugins:!0})}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){try{for(var l in this.references)this.player.off(l,this.references[l])}catch{}delete this.references}}_startEvent(l){this.loadAdsAdapter(),this.player.options_&&this.plugin&&!this.plugin.options["content.id"]&&(this.plugin.options["content.id"]=this.player.options_["data-video-id"]),this.fireStart({},l),this.flags.isJoined||(this.joinPolling||(this.joinPolling=new(this.getNpawReference()).Timer(this._jointimePolling.bind(this),500)),this.joinPolling.start())}getIsLive(){var l=null;if(this.player.mediainfo&&(l=!0,typeof this.player.mediainfo.duration=="number"&&(l=this.player.mediainfo.duration<1||this.player.mediainfo.duration===1/0)),this.player.duration&&typeof this.player.duration=="function"){l=!0;var d=this.player.duration();typeof d=="number"&&(l=d<1||d===1/0)}return this.player.isLive&&this.player.isLive==="function"&&(l=this.player.isLive()),l}conditionalStop(l){this.firePlayerLog("conditionalStop",{}),this.isInAds(!0)||this.plugin&&(this.adsEnded=!1,this.fireStop({},"conditionalStop"),this.plugin&&!this.getVideo().options["content.id"]&&(this.getVideo().options["content.id"]=null),this.acumBytesFunc(),this.lastPlayhead=void 0)}getTitle(){var l=null;return this.player.mediainfo&&(l=this.player.mediainfo.name),l}getTotalBytes(){var l=null,d=this.getUsedTech();return d&&d.getTotalBytes&&(l=d.getTotalBytes(this)),l}registerListeners(){if(this.monitorPlayhead(!1,!1,1200),this.acumBytes=0,this.ignoreList=[],this.fatalList=[],this.nonFatalList=[],this.references={loadstart:this.loadstartListener.bind(this),adsready:this.loadAdsAdapter.bind(this),play:this.playListener.bind(this),timeupdate:this.timeupdateListener.bind(this),pause:this.pauseListener.bind(this),playing:this.playingListener.bind(this),ended:this.conditionalStop.bind(this),dispose:this.disposeListener.bind(this),seeking:this.seekingListener.bind(this),seeked:this.seekedListener.bind(this),error:this.errorListener.bind(this),adserror:this.aderrorListener.bind(this),adsEnded:this.adsEndedListener.bind(this),texttrackchange:this.textListener.bind(this),waiting:this.bufferingListener.bind(this)},this.player)for(var l in this.references)this.player.on(l,this.references[l]);setTimeout(this.loadAdsAdapter.bind(this),50)}getResource(){var l=null,d=this.getUsedTech();return d&&d.getResource&&(l=d.getResource(this)),l||(l=this.player.currentSrc()),l}textListener(l){if(this.player.textTracks)for(var d=this.player.textTracks(),g=d.length,w=0;wg?l=!0:w&&(this.initialPlayhead=d)}return l}seekingListener(l){this.firePlayerLog("seekingListener",{}),this.fireSeekBegin({},!1,"seekingListener"),this.getVideo()&&this.getVideo().getIsLive()&&this.autoplayListener()}_getActiveTrack(){var l=null;if(this.player.getVariantTracks){var d=this.player.getVariantTracks();for(var g in d){var w=d[g];!w.active||w.type!=="video"&&w.type!=="variant"||(l=w)}}else if(this.player.getVideoTracks){var j=this.player.getVideoTracks();for(var H in j){var se=j[H];se.active&&(l=se)}}return l}getPlayerName(){return"Shaka"}playingListener(l){this.firePlayerLog("playingListener",{}),this.fireResume({},"playingListener"),this._callStart("playingListener"),this.isPlayerOnBuffering()&&this.existPlayerBufferingMethod||this.fireJoin({},"playingListener")}isPlayerOnBuffering(){return!!this.existPlayerBufferingMethod&&this.player.isBuffering()}loadingListener(l){this.firePlayerLog("loadingListener",{}),this.flags.isStarted&&(this.fireStop({},"loadingListener"),this.bytes=0,this.supportBytes=!1)}autoplayListener(l){this.firePlayerLog("autoplayListener",{});var d=this.tag||this._getTagFromPlayer();d&&d.autoplay&&this._callStart("autoplayListener")}errorListener(l){this.firePlayerLog("errorListener",{});var d=l.detail&&l.detail.code?l.detail.code:l.code,g=l.detail&&l.detail.message?l.detail.message:"unknown",w=l.detail&&l.detail.category?l.detail.category:l.category,j=l.detail&&l.detail.severity?l.detail.severity:l.severity;w&&w<10&&w>0&&(g={1:"network",2:"text",3:"media",4:"manifest",5:"streaming",6:"drm",7:"player",8:"cast",9:"storage"}[w]||g),j===2&&[1002,3016].indexOf(d)===-1?this.fireFatalError(d,g,void 0,void 0,"errorListener"):this.fireError(d,g,void 0,void 0,"errorListener")}_getTagFromPlayer(){return this.player.getMediaElement?this.player.getMediaElement():this.player.a}},Html5:class{checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player)}catch{return!0}}pauseListener(l){this.firePlayerLog("pauseListener",{}),this.firePause({},"pauseListener")}bufferingListener(l){this.firePlayerLog("waitingListener",{}),this.fireBufferBegin({},!1,"waitingListener")}getIsLive(){return this.player.duration===1/0}playListener(l){this.firePlayerLog("playListener",{}),this.player&&this.playhead&&this.checkReadyState(this.player.readyState,"playListener"),(this.lastResource===void 0||this.getResource()&&this.lastResource!==this.getResource())&&(this.lastResource=this.getResource().split("?")[0]),this.fireStart({},"playListener")}registerListeners(){for(var l in this.monitorPlayhead(!1,!1),this.references={play:this.playListener.bind(this),timeupdate:this.timeupdateListener.bind(this),pause:this.pauseListener.bind(this),playing:this.playingListener.bind(this),error:this.errorListener.bind(this),seeking:this.seekingListener.bind(this),seeked:this.seekedListener.bind(this),ended:this.endedListener.bind(this),loadstart:this.loadStartListener.bind(this),waiting:this.bufferingListener.bind(this),canplay:this.canPlayListener.bind(this),canplaythrough:this.canPlayThroughListener.bind(this),loadedmetadata:this.loadedMetadataListener.bind(this),loadeddata:this.loadedDataListener.bind(this)},this.references)this.player.addEventListener(l,this.references[l])}endedListener(l){let d=this.getVideo().getAdsAdapter(),g=!1;d&&d.isDAI!==void 0&&(d.isDAI||(g=d.player.getCuePoints().includes(-1))),g||(this.firePlayerLog("endedListener",{}),this.fireStop({},"endedListener"))}getPlayrate(){return this.player.playbackRate}canPlayListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"canPlayListener")}canPlayThroughListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"canPlayThroughListener")}timeupdateListener(l){(this.getPlayhead()>0||this.getVideo()&&this.getVideo().getIsLive())&&!this.player.error&&(this.fireStart({},"timeupdateListener"),this.fireJoin({},"timeupdateListener"))}getResource(){return this.player.currentSrc}getPlayhead(){return this.player.currentTime}getDuration(){return this.player.duration}seekingListener(l){this.firePlayerLog("seekingListener",{}),this.fireSeekBegin({},!1,"seekingListener")}getPlayerName(){return"html5"}playingListener(l){this.firePlayerLog("playingListener",{}),this.fireJoin({},"playingListener"),this.fireResume({},"playingListener"),this.fireSeekEnd({},"playingListener"),this.flags.isBuffering&&this.fireBufferEnd({},"playingListener")}errorListener(l){this.firePlayerLog("errorListener",{});var d=null,g=null;try{l&&l.target&&l.target.error&&(g=l.target.error.code,d=l.target.error.message)}catch{}this.fireError(g,d,void 0,void 0,"errorListener")}loadedMetadataListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"loadedMetadataListener")}getVersion(){return"7.0.5-html5-jsclass"}seekedListener(l){this.firePlayerLog("seekedListener",{}),this.fireSeekEnd({},"seekedListener")}loadStartListener(l){this.firePlayerLog("loadStartListener",{}),this.flags.isJoined&&this.getResource()&&this.getResource().split("?")[0]!==this.lastResource&&this.fireStop({},"loadStartListener")}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references)for(var l in this.references)this.player.removeEventListener(l,this.references[l]),delete this.references[l]}loadedDataListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"loadedDataListener")}},Flvjs:class{checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player)}catch{return!0}}pauseListener(l){this.firePlayerLog("pauseListener",{}),this.firePause({},"pauseListener")}stalledListener(l){this.firePlayerLog("stalledListener",{}),this.fireBufferBegin({},!1,"stalledListener")}bufferingListener(l){this.firePlayerLog("waitingListener",{}),this.fireBufferBegin({},!1,"waitingListener")}getIsLive(){return this.player.duration===1/0}playListener(l){this.firePlayerLog("playListener",{}),this.player&&this.playhead&&this.checkReadyState(this.player.readyState,"playListener"),this.fireStart({},"playListener")}registerListeners(){for(var l in this.monitorPlayhead(!1,!1),this.references={play:this.playListener.bind(this),timeupdate:this.timeupdateListener.bind(this),pause:this.pauseListener.bind(this),playing:this.playingListener.bind(this),error:this.errorListener.bind(this),seeking:this.seekingListener.bind(this),seeked:this.seekedListener.bind(this),ended:this.endedListener.bind(this),loadstart:this.loadStartListener.bind(this),stalled:this.stalledListener.bind(this),waiting:this.bufferingListener.bind(this),canplay:this.canPlayListener.bind(this),canplaythrough:this.canPlayThroughListener.bind(this),loadedmediadata:this.loadedMediaDataListener.bind(this),loadeddata:this.loadedDataListener.bind(this)},this.references)this.player.addEventListener(l,this.references[l])}endedListener(l){let d=this.getVideo().getAdsAdapter(),g=!1;d&&d.isDAI!==void 0&&(d.isDAI||(g=d.player.getCuePoints().includes(-1))),g||(this.firePlayerLog("endedListener",{}),this.fireStop({},"endedListener"))}getPlayrate(){return this.player.playbackRate}canPlayListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"canPlayListener")}canPlayThroughListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"canPlayThroughListener")}timeupdateListener(l){(this.getPlayhead()>0||this.getVideo()&&this.getVideo().getIsLive())&&!this.player.error&&(this.fireStart({},"timeupdateListener"),this.fireJoin({},"timeupdateListener"))}getResource(){return this.player.currentSrc}getPlayhead(){return this.player.currentTime}getDuration(){return this.player.duration}seekingListener(l){this.firePlayerLog("seekingListener",{}),this.fireSeekBegin({},!1,"seekingListener")}getPlayerName(){return"flvjs"}playingListener(l){this.firePlayerLog("playingListener",{}),this.fireJoin({},"playingListener"),this.fireResume({},"playingListener"),this.fireSeekEnd({},"playingListener"),this.flags.isBuffering&&this.fireBufferEnd({},"playingListener")}errorListener(l){this.firePlayerLog("errorListener",{});var d=null,g=null;try{l&&l.target&&l.target.error&&(g=l.target.error.code,d=l.target.error.message)}catch{}this.fireError(g,d,void 0,void 0,"errorListener")}loadedMediaDataListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"loadedMediaDataListener")}getVersion(){return"7.0.3-flvjs-jsclass"}seekedListener(l){this.firePlayerLog("seekedListener",{}),this.fireSeekEnd({},"seekedListener")}loadStartListener(l){this.firePlayerLog("loadStartListener",{}),this.flags.isJoined&&this.fireStop({},"loadStartListener")}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references)for(var l in this.references)this.player.removeEventListener(l,this.references[l]),delete this.references[l]}loadedDataListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"loadedDataListener")}},Jwplayer:class{adsAdapters={genericAdsAdapter:m};getVersion(){return"7.0.3-jwplayer-jsclass"}checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player.getConfig().mediaElement)}catch{return!0}}getPlayhead(){if(this.getVideo()&&this.getVideo().isBreakStarted)return this._lastPlayhead;var l=this.player.getPosition();return l&&l<0&&(l=Math.abs(l),this.monitor&&this.monitor.stop()),l}getPlayrate(){var l=1;return this.tag&&this.tag.playbackRate?l=this.tag.playbackRate:this.player.getPlaybackRate&&(l=this.player.getPlaybackRate()),l}getDuration(){return this.duration||this.player.getDuration()||null}getBitrate(){var l=-1,d=this.player.getVisualQuality();return typeof this.player.getCurrentQuality()=="number"&&this.player.getQualityLevels()&&this.player.getCurrentQuality()!==-1&&(d=this.player.getQualityLevels()[this.player.getCurrentQuality()])&&d.bitrate&&(l=d.bitrate),d=this.player.getVisualQuality(),l<=0&&d&&d.bitrate?l=d.bitrate:l<=0&&d&&d.level&&d.level.bitrate&&(l=d.level.bitrate),l}getRendition(){var l=null,d=this.player.getVisualQuality();return d&&d!==null&&d.level?l=this.getNpawUtils().buildRenditionString(d.level.width,d.level.height,d.level.bitrate||0):typeof this.player.getCurrentQuality()=="number"&&this.player.getQualityLevels()&&this.player.getCurrentQuality()!==-1&&((d=this.player.getQualityLevels()[this.player.getCurrentQuality()])&&d.label==="auto"?l=this.getNpawUtils().buildRenditionString(d.bandwidth):d&&d.label?l=d.label:this.player.getCurrentQuality()===-1&&(l="auto")),l}getTitle(){return this.title}getIsLive(){var l=!1;return typeof this.isLive=="boolean"?l=this.isLive:this.getDuration()<=0&&(l=!0),l}getResource(){return this.player.getPlaylistItem().file}getPlayerVersion(){return this.player.version}getPlayerName(){return"JWPlayer"}setOptions(l){l&&l.media&&(this.isLive=l.media.isLive||this.isLive,this.title=l.media.title||this.title),l&&(this.isLive=l["content.isLive"]||this.isLive,this.title=l["content.title"]||this.title),this.getVideo().mergeOptions(l)}registerListeners(){for(var l in this._lastPlayhead=0,this.monitorPlayhead(!0,!0),this.references={beforePlay:this.beforeplayListener.bind(this),buffer:this.bufferListener.bind(this),play:this.playListener.bind(this),pause:this.pauseListener.bind(this),error:this.errorListener.bind(this),seek:this.seekingListener.bind(this),seeked:this.seekedListener.bind(this),complete:this.endedListener.bind(this),meta:this.metaListener.bind(this),playlistItem:this.playlistItemListener.bind(this),setupError:this.setupErrorListener.bind(this),idle:this.idleListener.bind(this),firstFrame:this.firstFrameListener.bind(this),time:this.timeListener.bind(this),adsManager:this.managerListener.bind(this),remove:this.removeListener.bind(this),playbackRateChanged:this.playrateListener.bind(this)},this.references)this.player.on(l,this.references[l])}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){for(var l in this.references)this.player.off(l,this.references[l]);delete this.references}}timeListener(l){if(this._lastPlayhead=this.getPlayhead(),this.fatalErrored)return null;l.position!==0&&this._start({},"timeListener");var d=l.position;(l.currentTime||l.position)&&((this.previousPosition&&this.previousPosition-1)return null;this.duration=void 0,this.throughput=-1,this.setOptions(this.player.getConfig().youbora),this.setOptions(d.youbora),this.fireStop({},"playlistItemListener")}setupErrorListener(l){this.firePlayerLog("setupErrorListener",{}),this.fireError(l.message,void 0,void 0,void 0,"setupErrorListener")}checkForClientSideAds(){var l=this.getVideo().getAdsAdapter(),d=!1;return l&&l.isDAI!==void 0&&(l.isDAI||(d=l.player.getCuePoints().includes(-1))),d}idleListener(l){this.firePlayerLog("idleListener",{}),l.reason&&l.reason!=="complete"||this.checkForClientSideAds()||this.fireStop({},"idleListener")}firstFrameListener(l){this.firePlayerLog("firstFrameListener",{}),this.tag=this.player.getConfig().mediaElement,this.fireJoin({},"firstFrameListener")}beforeplayListener(l){this.firePlayerLog("beforeplayListener",{}),this.duration=void 0,this.throughput=-1,this.player.getPlaylistItem().youbora||this.setOptions(this.player.getConfig().youbora),this.flags.isStarted||(this._start({},"beforeplayListener"),this.tag=this.player.getConfig().mediaElement,this.fatalErrored=!1,this.getVideo().getAdsAdapter()||this.getVideo().setAdsAdapter(this.getAdapterClass("genericAdsAdapter"),this.plugin))}managerListener(l){this.firePlayerLog("managerListener",{}),this.getVideo().getAdsAdapter()||(this.getVideo().setAdsAdapter(this.getAdapterClass("genericAdsAdapter"),this.plugin),this.getVideo().getAdsAdapter().managerListener(l))}bufferListener(l){this.firePlayerLog("bufferListener",{}),this.flags.isPaused||this.fireBufferBegin({},!1,"firstFrameListener")}playListener(l){this.firePlayerLog("playListener",{}),this.fireBufferEnd({},"playListener"),this.fireSeekEnd({},"playListener"),this.fireResume({},"playListener"),this.monitor.skipNextTick()}pauseListener(l){this.firePlayerLog("pauseListener",{}),this.flags.isSeeking&&this.fireSeekEnd({},"playListener"),this.firePause({},"pauseListener")}errorListener(l){this.firePlayerLog("errorListener",{}),l.message&&l.message.toLowerCase().includes("casting failed to load")||(l.code?this.fireError(l.code,l.message,void 0,void 0,"errorListener"):this.fireError(l.message,void 0,void 0,void 0,"errorListener"),(!l.message||l.message.toLowerCase().includes("network error")||l.message.toLowerCase().includes("could not be played")||l.message.toLowerCase().includes("cannot load")||l.message.toLowerCase().includes("cannot be played")||l.message.toLowerCase().includes("down")||l.message.toLowerCase().includes("fragloaderror")||l.message.toLowerCase().includes("levelloadtimeout")||l.message.toLowerCase().includes("file not found"))&&this.fireStop({},"errorListener"),l.code&&(l.code<3e5||l.code>309e3)&&(this.fireStop({},"errorListener"),this.fatalErrored=!0))}seekingListener(l){this.firePlayerLog("seekingListener",{}),this.fireSeekBegin({},!1,"seekingListener")}seekedListener(l){this.firePlayerLog("seekedListener",{}),this.player.getState()!=="paused"&&(this.fireSeekEnd({},"seekedListener"),this.monitor.skipNextTick())}endedListener(l){this.checkForClientSideAds()||(this.firePlayerLog("endedListener",{}),this.fireStop({},"endedListener"))}removeListener(l){this.firePlayerLog("removeListener",{}),this.getVideo().fireStop({},"removeListener")}playrateListener(l){this.monitor&&this.monitor.skipNextTick()}_start(l,d){!this.flags.isStarted&&this.player&&this.getVideo()&&(this._getDrm(),this.fireStart(l,d))}_getDrm(l){var d=this.player.getPlaylistItem(this.player.getPlaylistIndex());for(var g in d.allSources){var w=d.allSources[g];if(w.file===d.file&&w.drm&&typeof Object.keys=="function"){var j=Object.keys(w.drm);j.length===1&&this.getVideo().mergeOptions({"content.drm":j[0]});break}}}metaListener(l){this.duration=l.duration||this.duration,l.metadata&&(this.duration=l.metadata.duration||this.duration)}},Dashjs:class{checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player.getVideoElement())}catch{return!0}}getVersion(){return"7.0.13-dashjs-jsclass"}getPlayhead(){var l=null;return this.player&&(l=this.isLive?this.player.timeAsUTC():this.player.time()),l}getDroppedFrames(){var l=0;return this.player&&(l=this.player.getDashMetrics().getCurrentDroppedFrames().droppedFrames),l}getDuration(){var l=null;return this.player&&(l=this.player.duration()),l}getBitrate(){var l=this._getRenditionInfo();return l?l.bitrate:null}getRendition(){var l=this._getRenditionInfo();return l?this.getNpawUtils().buildRenditionString(l.width,l.height,l.bitrate):null}_getRenditionInfo(){var l=null;if(this.player){var d=this.player.getQualityFor("video");d&&(l=this.player.getBitrateInfoListFor("video")[d])}return l}getThroughput(){if(this.getCdnTraffic()&&this.getCdnTraffic()!==0&&this.plugin&&this.plugin.getPingTime()){this.lastDataValue||(this.lastDataValue=0);var l=this.lastDataValue;return this.lastDataValue=this.getCdnTraffic()+this.getP2PTraffic(),Math.round((this.lastDataValue-l)/this.plugin.getPingTime())}if(!this.throughput&&this.player&&this.player.getMetricsFor){var d=this.player.getMetricsFor("video"),g=this.player.getDashMetrics().getHttpRequests(d);if(!g)return null;for(var w=0,j=0,H=0;H=200&&se.responsecode<400&&se._stream==="video"){var Z=se._responseHeaders.match(/Content-Length: (.+)/i);if(Z){var be=(se.interval-(se.tresponse-se.trequest))/1e3;w+=Z[1]/be*8,j++}}}if(!w)return null;this.throughput=w/j}if(!this.throughput&&this.player&&this.player.getAverageThroughput){var ve=this.player.getAverageThroughput("video"),Ie=this.player.getAverageThroughput("audio");this.throughput=1e3*(ve+Ie)}return this.throughput}getIsLive(){return this.isLive||(this.isLive=!1),this.isLive}getResource(){var l=null;if(this.player)try{var d=this.player.getSource();typeof d=="string"&&(l=d)}catch{}return l}getPlayrate(){return this.player?this.player.getPlaybackRate():1}getPlayerName(){return"dashJS"}getPlayerVersion(){var l=null;return this.player&&(l=this.player.getVersion()),l}getLatency(){var l=null;return this.getIsLive()&&this.player&&this.player.getCurrentLiveLatency&&(l=1e3*this.player.getCurrentLiveLatency()),l}registerListeners(){this.emptyVideoBuffer=!1,this.emptyAudioBuffer=!1,this.emptyTextBuffer=!1;var l=dashjs.MediaPlayer.events;if(this.references={},this.references[l.MANIFEST_LOADED]=this.manifestLoaded.bind(this),this.references[l.PLAYBACK_STARTED]=this.playbackStarted.bind(this),this.references[l.PLAYBACK_WAITING]=this.playbackWaiting.bind(this),this.references[l.PLAYBACK_STALLED]=this.playbackStalled.bind(this),this.references[l.PLAYBACK_PLAYING]=this.playbackPlaying.bind(this),this.references[l.PLAYBACK_SEEKED]=this.playbackPlaying.bind(this),this.references[l.PLAYBACK_PAUSED]=this.playbackPaused.bind(this),this.references[l.PLAYBACK_ENDED]=this.playbackEnded.bind(this),this.references[l.ERROR]=this.errorListener.bind(this),this.references[l.PLAYBACK_ERROR]=this.playbackError.bind(this),this.references[l.PLAYBACK_SEEKING]=this.playbackSeeking.bind(this),this.references[l.BUFFER_LOADED]=this.processBufferLoaded.bind(this),this.references[l.BUFFER_EMPTY]=this.processBufferEmpty.bind(this),this.player)for(var d in this.references)this.player.on(d,this.references[d])}unregisterListeners(){if(this.emptyVideoBuffer=!1,this.emptyAudioBuffer=!1,this.emptyTextBuffer=!1,this.player&&this.references){for(var l in this.references)this.player.off(l,this.references[l]);delete this.references}}processBufferEmpty(l){l.mediaType==="video"?this.emptyVideoBuffer=!0:l.mediaType==="audio"?this.emptyAudioBuffer=!0:l.mediaType==="text"&&(this.emptyTextBuffer=!0)}processBufferLoaded(l){l.mediaType==="video"?this.emptyVideoBuffer=!1:l.mediaType==="audio"?this.emptyAudioBuffer=!1:l.mediaType==="text"&&(this.emptyTextBuffer=!1)}manifestLoaded(l){this.firePlayerLog("manifestLoaded",{}),this.isLive=l.data&&l.data.type==="dynamic"}playbackStarted(l){this.firePlayerLog("playbackStarted",{}),this.fireStart({},"playbackStarted")}playbackPaused(l){this.firePlayerLog("playbackPaused",{}),this.firePause({},"playbackPaused")}playbackPlaying(l){this.firePlayerLog("playbackPlaying",{}),this.flags.isSeeking?this.fireSeekEnd({},"playbackPlaying"):this.flags.isPaused&&this.fireResume({},"playbackPlaying"),this.fireBufferEnd({},"playbackPlaying"),this.fireJoin({},"playbackPlaying")}playbackWaiting(l){var d=this.isLegacyBufferBehaviourEnabled();this.firePlayerLog("playbackWaiting",{}),d&&!this.emptyVideoBuffer||this.fireBufferBegin({},!1,"playbackWaiting")}playbackStalled(l){this.firePlayerLog("playbackStalled",{}),this.fireBufferBegin({},!1,"playbackStalled")}errorListener(l){this.firePlayerLog("errorListener",{}),l.error.code?this.fireError(l.error.code,l.error.message,void 0,void 0,"errorListener"):this.fireError(l.error,"Error",void 0,void 0,"errorListener")}playbackError(l){this.firePlayerLog("playbackError",{}),l.error.code?this.fireError(l.error.code,l.error.message,void 0,void 0,"playbackError"):this.fireError(l.error,"Playback error",void 0,void 0,"playbackError")}playbackSeeking(l){this.firePlayerLog("playbackSeeking",{}),this.isLive&&this.fireStart({},"playbackSeeking"),this.fireSeekBegin({},!1,"playbackSeeking")}playbackEnded(l){let d=this.getVideo().getAdsAdapter(),g=!1;d&&d.isDAI!==void 0&&(d.isDAI||(g=d.player.getCuePoints().includes(-1))),l.isLast&&!g&&(this.firePlayerLog("playbackEnded",{}),this.fireStop({},"playbackEnded"))}getCdnTraffic(){if(this.player.getMetricsFor){var l=this.player.getMetricsFor("p2pweb");if(!l)return this.getNpawReference().Adapter.prototype.getCdnTraffic();var d=l.metricsP2PWeb;return d.videoAvgLength*d.chunksFromCDN+d.audioAvgLength*d.chunksFromCDN}return null}getP2PTraffic(){if(this.player.getMetricsFor){var l=this.player.getMetricsFor("p2pweb");if(!l)return this.getNpawReference().Adapter.prototype.getP2PTraffic();var d=l.metricsP2PWeb;return d.videoAvgLength*d.chunksFromP2P+d.audioAvgLength*d.chunksFromP2P}return null}},Nagra:class{checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player.el_)}catch{return!0}}pauseListener(l){this.firePlayerLog("pauseListener",{}),this.firePause({},"pauseListener")}stalledListener(l){this.firePlayerLog("stalledListener",{}),this.fireBufferBegin({},!1,"stalledListener")}bufferingListener(l){this.firePlayerLog("waitingListener",{}),this.fireBufferBegin({},!1,"waitingListener")}getIsLive(){return!!this.player.el_&&this.player.el_.duration===1/0}playListener(l){this.firePlayerLog("playListener",{}),this.player&&this.checkReadyState(this.player.readyState,"playListener"),this.fireStart({},"playListener")}registerListeners(){for(var l in this.monitorPlayhead(!1,!1),this.references={play:this.playListener.bind(this),timeupdate:this.timeupdateListener.bind(this),pause:this.pauseListener.bind(this),playing:this.playingListener.bind(this),error:this.errorListener.bind(this),seeking:this.seekingListener.bind(this),seeked:this.seekedListener.bind(this),ended:this.endedListener.bind(this),loadstart:this.loadStartListener.bind(this),stalled:this.stalledListener.bind(this),waiting:this.bufferingListener.bind(this),canplay:this.canPlayListener.bind(this),canplaythrough:this.canPlayThroughListener.bind(this),loadedmediadata:this.loadedMediaDataListener.bind(this),loadeddata:this.loadedDataListener.bind(this)},this.references)this.player.on(l,this.references[l])}endedListener(l){this.firePlayerLog("endedListener",{}),this.fireStop({},"endedListener")}getPlayrate(){return this.player.playbackRate()}canPlayListener(l){this.player&&this.checkReadyState(this.player.readyState,"canPlayListener")}canPlayThroughListener(l){this.player&&this.checkReadyState(this.player.readyState,"canPlayThroughListener")}timeupdateListener(l){(this.getPlayhead()>.1||this.getVideo()&&this.getVideo().getIsLive())&&!this.player.el_.error&&(this.fireStart({},"timeupdateListener"),this.fireJoin({},"timeupdateListener"))}getResource(){return this.player.currentSrc()}getPlayhead(){return this.player.currentTime()}getDuration(){return this.player.duration()}seekingListener(l){this.firePlayerLog("seekingListener",{}),this.fireSeekBegin({},!1,"seekingListener")}getPlayerName(){return"nagra"}playingListener(l){this.firePlayerLog("playingListener",{}),this.fireResume({},"playingListener"),this.fireSeekEnd({},"playingListener"),this.flags.isBuffering&&this.fireBufferEnd({},"playingListener")}errorListener(l){this.firePlayerLog("errorListener",{});var d=null,g=null;try{l&&l.target&&l.target.error&&(g=l.target.error.code,d=l.target.error.message)}catch{}this.fireError(g,d,void 0,void 0,"errorListener")}loadedMediaDataListener(l){this.player&&this.checkReadyState(this.player.readyState,"loadedMediaDataListener")}getVersion(){return"7.0.1-nagra-jsclass"}seekedListener(l){this.firePlayerLog("seekedListener",{}),this.fireSeekEnd({},"seekedListener")}loadStartListener(l){this.firePlayerLog("loadStartListener",{}),this.flags.isJoined&&this.fireStop({},"loadStartListener")}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references)for(var l in this.references)this.player.removeEventListener(l,this.references[l]),delete this.references[l]}loadedDataListener(l){this.player&&this.checkReadyState(this.player.readyState,"loadedDataListener")}getPlayerVersion(){var l="Nagra";return window.OTV.versions.product&&(l+=window.OTV.versions.product),l}getThroughput(){return this.player&&this.player.otvtoolkit().networkStatistics.getNetworkUsage().downloadBitrate?this.player.otvtoolkit().networkStatistics.getNetworkUsage().downloadBitrate:null}getBitrate(){return this.player&&this.player.otvtoolkit().playbackStatistics.getStreamBitrate()?this.player.otvtoolkit().playbackStatistics.getStreamBitrate():null}getDroppedFrames(){let l=0;return this.player.otvtoolkit().renderingStatistics.getFrameDrops()&&(l=this.player.otvtoolkit().renderingStatistics.getFrameDrops()),l}getFramesPerSecond(){let l=null;return this.player.otvtoolkit().renderingStatistics.getFramesPerSecondNominal()&&(l=this.player.otvtoolkit().renderingStatistics.getFramesPerSecondNominal()),l}getRendition(){let l,d,g,w=this.player.tech_.shaka_.getVariantTracks();if(w!==null)for(let j of w)j.active===!0&&(l=j.width,d=j.height,g=j.bandwidth);return this.getNpawUtils().buildRenditionString(l,d,g)}},Brightcove:class{adsAdapters={bcoveAdsAdapter:D,bcoveImaAdsAdapter:S,genericAdsAdapter:M};additionalContexts={contribHlsTech:G,dashTech:U,dashShakaTech:T,hlsJsTech:C,shakaTech:y};isInAds(){try{return this.player.ads&&this.player.ads.inAdBreak&&typeof this.player.ads.inAdBreak=="function"&&this.player.ads.inAdBreak()}catch{return!1}}getBitrate(){var l=null,d=this.getUsedTech();return d&&d.getBitrate&&(l=d.getBitrate(this)),l}checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player.el())}catch{return!0}}pauseListener(l){this.firePlayerLog("pauseListener",{}),this.firePause({},"pauseListener")}bufferingListener(l){this.firePlayerLog("bufferingListener",{}),this.flags.isSeeking||this.fireBufferBegin({},!1,"bufferingListener")}getRendition(){var l=null,d=this.getUsedTech();return d&&d.getRendition&&(l=d.getRendition(this)),l}getPlayerVersion(){var l=null;return typeof videojs<"u"&&(l=videojs.VERSION),l}playListener(l){this.firePlayerLog("playListener",{}),this.isInAds()||(this.flags.isStarted?this.lastSrc&&this.lastSrc!==this.getResource()&&(this.fireStop({},"playListenerNewResource"),this.acumBytesFunc(),this.lastPlayhead=void 0,this._startEvent("playListenerNewResource"),this.lastSrc=this.getResource()):(this.lastSrc=this.getResource(),this._startEvent("playListenerNotStarted")))}loadAdsAdapter(){var l;if(this.plugin.getAdsAdapter()===null)if(this.getAdapterClass("bcoveImaAdsAdapter").isUsed()){if(l=this.getAdapterClass("bcoveImaAdsAdapter")){this.plugin.setAdsAdapter(l,this.getVideo().getVideoKey());let d=Object.keys(this.getAdapterClasses()).filter(g=>g.toLowerCase().includes("ads"));for(let g of d)this.getAdapterClass(g).unregisterListeners();this.getVideo().getAdsAdapter().registerListeners()}}else this.loadVideoJSAdsAdapter()}loadVideoJSAdsAdapter(){if(this.getVideo())if(!this.getVideo().getAdsAdapter()||this.getVideo().getAdsAdapter().isGeneric){var l=null;if(this.getAdapterClass("bcoveAdsAdapter").isUsed()?l=this.getAdapterClass("bcoveAdsAdapter"):this.getVideo().getAdsAdapter()===null&&(l=this.getAdapterClass("genericAdsAdapter")).initProperties(),l){this.plugin.setAdsAdapter(l,this.getVideo().getVideoKey());let d=Object.keys(this.getAdapterClasses()).filter(g=>g.toLowerCase().includes("ads"));for(let g of d)this.getAdapterClass(g).unregisterListeners();this.getVideo().getAdsAdapter().registerListeners()}}else this.getVideo().getAdsAdapter().registerImaEvents&&this.getVideo().getAdsAdapter().registerImaEvents()}errorModifyer(l,d,g){this.fatalList=l||[],this.nonFatalList=d||[],this.ignoreList=g||[]}getPlayrate(){return this.player.playbackRate()}timeupdateListener(l){this.isInAds()||(this.getPlayhead()>.1&&(this.fireJoin({},"timeupdateListener"),this.joinPolling&&this.joinPolling.stop(),!this.flags.isPaused&&this.lastSeekPlayhead&&this.lastSeekPlayhead!==this.getPlayhead()&&(this.fireSeekEnd({},"timeupdateListener"),this.lastSeekPlayhead=!1)),this.flags.isJoined||(this.lastPlayhead===void 0&&(this.lastPlayhead=this.getPlayhead()),this.lastPlayhead!==this.getPlayhead()&&(this.player.options_&&this.plugin&&!this.getVideo().options["content.id"]&&(this.getVideo().options["content.id"]=this.player.options_["data-video-id"]),this.fireStart({},"timeupdateListener"),this.fireJoin({},"timeupdateListener"),this.joinPolling&&this.joinPolling.stop(),this.lastPlayhead=void 0)),this.getVideo()._adsAdapter&&!this.getVideo()._adsAdapter.flags.isStarted&&(this.lastPlayhead=this.getPlayhead()))}getPlayhead(){return this.player.currentTime()}getDuration(){return this.player.mediainfo&&this.player.mediainfo.duration!==void 0?this.player.mediainfo.duration:this.getVideoJSDuration()}getVideoJSDuration(){var l=this.player.duration();return this.player.mediainfo&&this.player.mediainfo.duration!==void 0&&(l=this.player.mediainfo.duration),l}aderrorListener(l){this.loadAdsAdapter(),this.getVideo().getAdsAdapter()&&this.getVideo().getAdsAdapter().adPlayerErrorListener&&this.getVideo().getAdsAdapter().adPlayerErrorListener(l)}_jointimePolling(l){this.getVideo()?this.getVideo().getAdsAdapter()&&this.getVideo().getAdsAdapter().flags.isStarted||(this.lastPlayhead!==0&&typeof this.lastPlayhead=="number"&&this.lastPlayhead!==this.getPlayhead()&&(this.fireJoin({},"jointimePolling"),this.joinPolling&&this.joinPolling.stop()),this.lastPlayhead=this.getPlayhead()):this.joinPolling&&this.joinPolling.stop()}acumBytesFunc(){this.acumBytes+=this.getTotalBytes()||0}adsEndedListener(l){this.firePlayerLog("adsEndedListener",{}),this.adsEnded=!0,this.getVideo().requestBuilder.lastSent.adPosition===this.getNpawReference().Constants.AdPosition.Postroll&&(this.getVideo().fireStop({},"adsEndedListener"),this.acumBytesFunc(),this.lastPlayhead=void 0)}getVersion(){return"7.0.4-brightcove-videojs-jsclass"}seekedListener(l){this.firePlayerLog("seekedListener",{}),this.lastSeekPlayhead=this.getPlayhead()}getTech(){return this.player.tech({IWillNotUseThisInPlugins:!0})}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){try{for(var l in this.references)this.player.off(l,this.references[l])}catch{}delete this.references}}_startEvent(l){this.loadAdsAdapter(),this.player.options_&&this.plugin&&!this.plugin.options["content.id"]&&(this.plugin.options["content.id"]=this.player.options_["data-video-id"]),this.fireStart({},l),this.flags.isJoined||(this.joinPolling||(this.joinPolling=new(this.getNpawReference()).Timer(this._jointimePolling.bind(this),500)),this.joinPolling.start())}getIsLive(){var l=null;if(this.player.mediainfo&&(l=!0,typeof this.player.mediainfo.duration=="number"&&(l=this.player.mediainfo.duration<1||this.player.mediainfo.duration===1/0)),this.player.duration&&typeof this.player.duration=="function"){l=!0;var d=this.player.duration();typeof d=="number"&&(l=d<1||d===1/0)}return this.player.isLive&&this.player.isLive==="function"&&(l=this.player.isLive()),l}conditionalStop(l){this.firePlayerLog("conditionalStop",{}),this.isInAds()||this.plugin&&(this.adsEnded=!1,this.fireStop({},"conditionalStop"),this.plugin&&!this.getVideo().options["content.id"]&&(this.getVideo().options["content.id"]=null),this.acumBytesFunc(),this.lastPlayhead=void 0)}getTitle(){return this.player.mediainfo?this.player.mediainfo.name:this.getVideoJSTitle()}getVideoJSTitle(){var l=null;return this.player.mediainfo&&(l=this.player.mediainfo.name),l}getTotalBytes(){var l=null,d=this.getUsedTech();return d&&d.getTotalBytes&&(l=d.getTotalBytes(this)),l}registerListeners(){if(this.monitorPlayhead(!1,!1,1200),this.acumBytes=0,this.ignoreList=[],this.fatalList=[],this.nonFatalList=[],this.references={loadstart:this.loadstartListener.bind(this),adsready:this.loadAdsAdapter.bind(this),play:this.playListener.bind(this),timeupdate:this.timeupdateListener.bind(this),pause:this.pauseListener.bind(this),playing:this.playingListener.bind(this),ended:this.conditionalStop.bind(this),dispose:this.disposeListener.bind(this),seeking:this.seekingListener.bind(this),seeked:this.seekedListener.bind(this),error:this.errorListener.bind(this),adserror:this.aderrorListener.bind(this),adsEnded:this.adsEndedListener.bind(this),texttrackchange:this.textListener.bind(this),waiting:this.bufferingListener.bind(this)},this.player)for(var l in this.references)this.player.on(l,this.references[l]);setTimeout(this.loadAdsAdapter.bind(this),50)}getResource(){var l=null,d=this.getUsedTech();return d&&d.getResource&&(l=d.getResource(this)),l||(l=this.player.currentSrc()),l}textListener(l){if(this.player.textTracks)for(var d=this.player.textTracks(),g=d.length,w=0;w.5&&!this.flags.isPaused&&(this.fireSeekEnd({},"onPlaying"),this.pausePlayhead=null),this.reactPlatform&&this.reactPlatform=="ios"&&!this.pausePlayhead&&(this.fireSeekEnd({},"onPlaying"),this.pausePlayhead=null),this.fireBufferEnd({},"onPlaying"),this.fireResume()}onProgress(l){this.playhead=l.currentTime,this.fireStart(),this.playhead>.5&&!this.flags.isJoined&&this.fireJoin(),this.pausePlayhead&&!this.flags.isPaused&&(Math.abs(this.getPlayhead()-this.pausePlayhead)>2?this.fireSeekEnd({},"onProgress"):this.isWaiting?(this.fireBufferBegin({},!0,"onProgress"),this.fireBufferEnd({},"onProgress")):(this.cancelSeek(),this.chronos.pause.pauseTime=null),this.isWaiting=!1,this.pausePlayhead=null)}onSeek(l){this.reactPlatform&&this.reactPlatform=="ios"&&this.fireSeekBegin({},!1,"onSeek")}onWaiting(l){this.isWaiting=!0,this.fireBufferBegin({},!1,"onWaiting")}onPaused(l){this.reactPlatform&&this.reactPlatform=="android"&&(this.pausePlayhead=this.getPlayhead(),this.fireSeekBegin({},!0,"onPaused")),this.firePause(),this.reactPlatform&&this.reactPlatform=="android"&&(this.chronos.pause.startTime=new Date().getTime())}onError(l){this.fireError(l.code,l.nativeError)}onStopped(l){this.fireStop()}onEnd(l){this.fireStop()}},Chromecast:class{getPlayhead(){return this.player.getEstimatedTime||this.player.currentTime}getVersion(){return"7.0.2-chromecast-jsclass"}getDuration(){return this.player.duration}getBitrate(){if(this.castPlayer&&this.castPlayer.getStreamingProtocol){let l=this.castPlayer.getStreamingProtocol(),d=0;try{l.getStreamCount&&l.getStreamCount()>0&&(d=l.getStreamCount())}catch{}for(let g=0;gd?d:g+d;let j=JSON.parse(this.plugin.getStoredData()).q.pt||5;l=Math.round((this.actualCount-w)/(j/1e3))}return l}getRendition(){let l=this.castMediaElement?this.castMediaElement.videoWidth:void 0,d=this.castMediaElement?this.castMediaElement.videoHeight:void 0;return this.getNpawUtils().buildRenditionString(l,d,this.getBitrate())}getTitle(){return this.player.getMediaInformation().metadata.title}getIsLive(){return this.getDuration()===-1}getResource(){let l;return this.player.getMediaInformation()&&(l=this.player.getMediaInformation().contentUrl||this.player.getMediaInformation().contentId),l}getPlayerVersion(){return cast&&cast.framework?cast.framework.VERSION:void 0}getPlayerName(){return"Chromecast"}registerListeners(){this.castMediaElement=void 0;for(let j in this.player)if(typeof this.player[j]=="object")for(let H in this.player[j])this.player[j][H]&&this.player[j][H].id==="castMediaElement"&&(this.castMediaElement=this.player[j][H]);let l=cast.framework.events,d=cast.framework.events.DetailedErrorCode;for(var g in this.errorFilter=[d.MEDIAKEYS_UNKNOWN,d.MEDIAKEYS_UNSUPPORTED,d.MEDIAKEYS_WEBCRYPTO,d.SEGMENT_NETWORK,d.HLS_NETWORK_INVALID_SEGMENT,d.DASH_MANIFEST_NO_MIMETYPE,d.DASH_INVALID_SEGMENT_INFO,d.TEXT_UNKNOWN,d.SEGMENT_UNKNOWN,d.BREAK_SEEK_INTERCEPTOR_ERROR,d.APP,d.IMAGE_ERROR,d.LOAD_INTERRUPTED,d.MEDIA_ERROR_MESSAGE],this.getNpawUtils().logAllEvents(this.player,[null,l.EventType.PLAY,l.EventType.PAUSE,l.EventType.PLAYING,l.EventType.STALLED,l.EventType.SEEKING,l.EventType.SEEKED,l.EventType.ERROR,l.EventType.CLIP_ENDED,l.EventType.BITRATE_CHANGED,l.EventType.SEGMENT_DOWNLOADED,l.EventType.BUFFERING,l.EventType.EMSG,l.EventType.ID3,l.EventType.MEDIA_FINISHED,l.EventType.MEDIA_STATUS,l.EventType.CACHE_HIT,l.EventType.BREAK_CLIP_STARTED,l.EventType.BREAK_ENDED,l.EventType.BREAK_CLIP_LOADING,l.EventType.BREAK_CLIP_STARTED,l.EventType.BREAK_CLIP_ENDED,l.EventType.BREAK_STARTED]),this.monitorPlayhead(!0,!0),this.references={},this.references[l.EventType.PLAY]=this.playListener.bind(this),this.references[l.EventType.STALLED]=this.playListener.bind(this),this.references[l.EventType.BUFFERING]=this.bufferingListener.bind(this),this.references[l.EventType.PAUSE]=this.pauseListener.bind(this),this.references[l.EventType.BREAK_CLIP_STARTED]=this.pauseListener.bind(this),this.references[l.EventType.BREAK_ENDED]=this.resumeListener.bind(this),this.references[l.EventType.PLAYING]=this.playingListener.bind(this),this.references[l.EventType.SEEKING]=this.seekingListener.bind(this),this.references[l.EventType.MEDIA_FINISHED]=this.endedListener.bind(this),this.references[l.EventType.ERROR]=this.errorListener.bind(this),this.references[l.EventType.BITRATE_CHANGED]=this.bitrateChangedListener.bind(this),this.references[l.EventType.SEGMENT_DOWNLOADED]=this.segmentListener.bind(this),this.references[l.EventType.BREAK_STARTED]=this.playAdListener.bind(this),this.references[l.EventType.TIME_UPDATE]=this.timeUpdateListener.bind(this),this.hostReferences={onAutoPause:this.autoPauseListener.bind(this)},this.references)this.player.addEventListener(g,this.references[g]);if(cast&&cast.player&&cast.player.api&&cast.player.api.Player&&cast.player.api.Player.getHost&&cast.player.api.Player.getHost())for(var w in this.hostReferences)cast.player.api.Player.getHost().addEventListener(w,this.hostReferences[w]);this.getVideo().getAdsAdapter()||(this.getAdapterClass("nativeAdsAdapter")._updatePlayer(this.player),this.plugin.setAdsAdapter(this.getAdapterClass("nativeAdsAdapter"),this.getVideo().getVideoKey())),this.registerModelVersion()}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){for(var l in this.references)this.player.removeEventListener(l,this.references[l]);if(this.references={},cast&&cast.player&&cast.player.api&&cast.player.api.Player&&cast.player.api.Player.getHost&&cast.player.api.Player.getHost()&&this.hostReferences){for(var d in this.hostReferences)this.player.getHost().removeEventListener(d,this.hostReferences[d]);this.hostReferences={}}}}registerModelVersion(){if(this.getVideo().options["device.model"]===void 0){try{let{hardwareConcurrency:l,userAgent:d}=window.navigator,g=cast.framework.CastReceiverContext.getInstance();if(g.canDisplayType('video/mp4; codecs="avc1.640033'))return void(this.getVideo().options["device.model"]="Chromecast with Google TV");if(d.includes("Android"))return void(this.getVideo().options["device.model"]="Chromecast Android");if(g.canDisplayType("video/mp4; codecs=hev1.1.6.L93.B0"))return void(this.getVideo().options["device.model"]="Chromecast Ultra");if(g.canDisplayType("video/mp4; codecs=avc1.64002A"))return void(this.getVideo().options["device.model"]="Chromecast 3");if(l===2)return void(this.getVideo().options["device.model"]="Chromecast 2");if(l===1)return void(this.getVideo().options["device.model"]="Chromecast 1")}catch{}this.getVideo().options["device.model"]="Chromecast"}}playListener(l){this.flags.isStarted||(this.lastPlayhead=void 0,this.fireStart({},"playListener"))}playAdListener(l){this.playListener(),this.firePause({},"playAdListener")}bufferingListener(l){this.flags.isPaused?this.plugin&&this.getVideo().isBreakStarted||(this.fireResume({},"bufferingListener"),this.fireBufferBegin({},!1,"bufferingListener")):this.fireBufferBegin({},!1,"bufferingListener"),this.flags.isStarted||(this.lastPlayhead=void 0,this.fireStart({},"bufferingListener"))}pauseListener(l){this.flags.isBuffering||this.firePause({},"pauseListener")}resumeListener(l){this.fireResume({},"resumeListener")}playingListener(l){this.plugin&&this.getVideo().isBreakStarted||(this.fireResume({},"playingListener"),this.fireBufferEnd({},"playingListener"),this.fireJoin({},"playingListener"))}errorListener(l){let d=l.error,g=l.detailedErrorCode;if(g){if(this.errorFilter.indexOf(g)>=0)return;let w=cast.framework.events.DetailedErrorCode,j=Object.keys(w).find(function(H){return w[H]===g})||g;d&&d.shakaErrorCode&&(j="Shaka: "+d.shakaErrorCode+" , "+j),d==="LOAD_CANCELLED"?(this.fireFatalError(g,j),this._reset()):this.fireError(g,j)}}seekingListener(l){this.fireSeekBegin({},!1,"seekingListener")}endedListener(l){this.fireStop({},"endedListener"),this._reset()}bitrateChangedListener(l){this.bitrate=l.totalBitrate}segmentListener(l){this.throughput=l.size/(l.downloadTime/1e3)}timeUpdateListener(l){this.flags.isJoined||(this.lastPlayhead===null||this.lastPlayhead===void 0?this.lastPlayhead=this.getPlayhead():this.lastPlayhead=0&&this.player.qualities&&this.player.qualities.length){var l=this.player.qualities[this.player.quality];return l.bitrate||l.bandwidth}return null}getRendition(){if(this.player.quality>=0&&this.player.qualities&&this.player.qualities.length){var l=this.player.qualities[this.player.quality],d=l.width,g=l.height;return d&&g||(d=this.player.videoElement.videoWidth,g=this.player.videoElement.videoHeight),this.getNpawUtils().buildRenditionString(d,g,l.bitrate||l.bandwidth)}return null}getTitle(){return this.player.videoElement.title||"Unknown"}getIsLive(){return typeof this.player.isLive=="function"?this.player.isLive():this.player.isLive}getResource(){return this.player&&this.player.media?this.player.media.url:void 0}getPlayerVersion(){return this.player.version}getPlayerName(){return"Viaccess Orca"}registerListeners(){for(var l in this.monitorPlayhead(!1,!1),this.references={play:this.playListener.bind(this),pause:this.pauseListener.bind(this),playing:this.playingListener.bind(this),error:this.errorListener.bind(this),seeking:this.seekingListener.bind(this),seeked:this.seekedListener.bind(this),buffering:this.bufferingListener.bind(this),ended:this.endedListener.bind(this),abort:this.endedListener.bind(this),destroyed:this.destroyedListener.bind(this),timeupdate:this.timeupdateListener.bind(this),trackschanged:this.changedListener.bind(this)},this.references)this.player.addEventListener&&this.player.addEventListener(l,this.references[l]),this.player.on&&this.player.on(l,this.references[l])}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references)for(var l in this.references)this.player.removeEventListener&&(this.player.removeEventListener(l,this.references[l]),delete this.references[l]),this.player.off&&(this.player.off(l,this.references[l]),delete this.references[l])}playListener(l){this.firePlayerLog("playListener",{}),this.fireStart({},"playListener"),this.fireResume({},"playListener")}pauseListener(l){this.firePlayerLog("pauseListener",{}),this.firePause({},"pauseListener")}playingListener(l){this.firePlayerLog("playingListener",{}),this.fireJoin({},"playingListener"),this.fireBufferEnd({},"playingListener")}errorListener(l){this.firePlayerLog("errorListener",{});try{var d=l.data?l.data:l;this.fireError(d.code,d.message,void 0,void 0,"errorListener"),this.fireStop({},!1,"errorListener")}catch{this.fireError("unknown","unknown",void 0,void 0,"errorListener"),this.fireStop({},!1,"errorListener")}}seekingListener(l){this.firePlayerLog("seekingListener",{}),this.fireSeekBegin({},!1,"seekingListener")}seekedListener(l){this.firePlayerLog("seekedListener",{}),this.fireSeekEnd({},"seekedListener")}bufferingListener(l){this.firePlayerLog("bufferingListener",{buffering:l.buffering}),l.buffering===!0?this.flags.isPaused||this.flags.isSeeking||this.fireBufferBegin({},!1,"bufferingListener"):l.buffering===!1&&this.fireBufferEnd({},"bufferingListener")}endedListener(l){this.firePlayerLog("endedListener",{}),this.fireStop({},"endedListener")}destroyedListener(l){this.firePlayerLog("destroyedListener",{}),this.fireStop({},"destroyedListener")}changedListener(l){l.emittedBy&&l.emittedBy==="manifest"&&(this.firePlayerLog("changedListener",{}),this.flags.isJoined&&this.fireStop({},"changedListener"))}timeupdateListener(l){}},Hbbtv:class{checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player)}catch{return!0}}getPlayerName(){return"Hbbtv"}registerListeners(){this.states=["STOPPED","PLAYING","PAUSED","CONNECTING","BUFFERING","FINISHED","ERROR"],this.monitorPlayhead(!1,!0),this.player?(this.player.onPlayStateChange=(function(l){this.playStateChangeListener()}).bind(this),this.player._video&&(this.player._video.onerror=(function(l){this.onErrorListener(l)}).bind(this))):Log.error("The player reference set to the adapter is invalid.")}getResource(){return this.player.data||this.player.src}playStateChangeListener(){switch(this.firePlayerLog("stateValue"+this.player.playState,{}),this.player.playState){case 0:this.firePlayerLog("stopState",{}),this.fireStop({},"stopState");break;case 1:this.bufferPlayhead&&Math.abs(this.bufferPlayhead-this.player.playPosition)>10&&(this.fireSeekBegin({},!0,"playingState"),this.bufferPlayhead=void 0),this.firePlayerLog("playingState",{}),this.fireResume({},"playingState"),this.fireSeekEnd({},"playingState"),this.fireBufferEnd({},"playingState"),this.fireJoin({},"playingState");break;case 2:this.firePlayerLog("pausedState",{}),this.firePause({},"pausedState");break;case 3:this.firePlayerLog("connectionState",{}),this.fireStart({},"connectionState");break;case 4:this.bufferPlayhead=this.player.playPosition,this.firePlayerLog("bufferingState",{}),this.fireStart({},"bufferingState"),this.fireBufferBegin({},!1,"bufferingState");break;case 5:this.firePlayerLog("finishedState",{}),this.fireStop({},"finishedState")}}onErrorListener(l){this.firePlayerLog("onErrorListener",{}),this.fireError("FAILURE","FAILURE",null,null,"onErrorListener"),this.fireStop({},"onErrorListener")}getPlayhead(){return this.player.playPosition/1e3}getDuration(){return this.player.playTime/1e3}getVersion(){return"7.0.4-hbbtvhtml5-jsclass"}},ReactNativeVideo:class{adsAdapters={genericAdsAdapter:V};getVersion(){return"7.0.1-react-native-video-jsclass"}getPlayhead(){let l=this.getVideo().getAdsAdapter();return l&&l.isShowingAds()?this.lastPlayhead:this.playhead}getIsLive(){return this.duration!==void 0?!this.duration:void 0}getDuration(){return this.duration}getResource(){return this.resource}getRendition(){if(this.width&&this.height)return this.getNpawUtils().buildRenditionString(this.width,this.height)}getPlayerName(){return"React Native Video"}setPlatform(l){this.reactPlatform=l}registerListeners(){this.reactPlatform&&this.reactPlatform=="ios"&&this.monitorPlayhead(!0,!0,400),this.getVideo().getAdsAdapter()||this.plugin.setAdsAdapter(this.getAdapterClass("genericAdsAdapter"),this.getVideo().getVideoKey())}unregisterListeners(){this.monitor&&this.monitor.stop()}onLoad(l){this.reactPlatform&&this.reactPlatform=="ios"&&!this.monitor&&this.monitorPlayhead(!0,!0,400);let d=l.naturalSize;d&&(this.width=Math.round(d.width),this.height=Math.round(d.height)),this.duration=l.duration,this.fireStart({},"onLoad"),this.flags.isJoined||(this.onBuffering=!1,this.fireJoin({},"onLoadStart"),this.reactPlatform&&this.reactPlatform=="ios"&&this.monitor&&this.monitor.skipNextTick()),this.pausePlayhead&&Math.abs(this.getPlayhead()-this.pausePlayhead)>.5?this.fireSeekEnd({},"onLoadStart"):this.pausePlayhead&&(this.chronos.pause.pauseTime=void 0),this.pausePlayhead=void 0,this.fireResume({},"onLoadStart")}onLoadStart(l){this.reactPlatform&&this.reactPlatform=="ios"&&!this.monitor&&this.monitorPlayhead(!0,!0,400),l.src&&(this.resource=l.src.uri),this.fireStart({},"onLoadStart")}onPlaybackRateChange(l){this.playrate=l.playbackRate,this.getVideo().getAdsAdapter()&&this.getVideo().getAdsAdapter().isShowingAds()||(this.playrate&&this.playhead>.1?(this.fireStart({},"onPlaybackRateChange"),this.flags.isJoined||(this.onBuffering=!1,this.reactPlatform&&this.reactPlatform=="ios"&&!this.monitor&&this.monitorPlayhead(!0,!0,400),this.fireJoin({},"onPlaybackRateChange"),this.reactPlatform&&this.reactPlatform=="ios"&&this.monitor&&this.monitor.skipNextTick()),this.pausePlayhead&&Math.abs(this.getPlayhead()-this.pausePlayhead)>.5&&!this.flags.isPaused?(this.fireSeekEnd({},"onPlaybackRateChange"),this.pausePlayhead=void 0):this.pausePlayhead&&Math.abs(this.getPlayhead()-this.pausePlayhead)<.5&&!this.onBuffering&&(this.cancelSeek(),this.pausePlayhead=void 0),this.fireResume({},"onPlaybackRateChange")):this.playhead>.1&&(this.reactPlatform&&this.reactPlatform=="android"&&(this.pausePlayhead=this.getPlayhead(),this.fireSeekBegin({},!0,"onPlaybackRateChange")),this.reactPlatform&&this.reactPlatform=="ios"&&(this.lastPlayhead=this.playhead),this.firePause({},"onPlaybackRateChange"),this.reactPlatform&&this.reactPlatform=="android"&&(this.chronos.pause.startTime=new Date().getTime())))}onProgress(l){let d=this.getVideo().getAdsAdapter();d&&d.isShowingAds()&&this.reactPlatform&&this.reactPlatform=="android"&&!this.lastPlayhead?this.lastPlayhead=this.playhead:!d||d.isShowingAds()||this.flags.isPaused||(this.lastPlayhead=void 0),!d||d.isShowingAds()||this.duration||(this.duration=l.seekableDuration),this.playhead=l.currentTime,l.playableDuration-l.currentTime>.5&&this.fireStart({},"onProgress"),this.playhead>.5&&!this.flags.isJoined&&(this.onBuffering=!1,this.fireJoin({},"onProgress"),this.reactPlatform&&this.reactPlatform=="ios"&&this.monitor&&this.monitor.skipNextTick()),this.pausePlayhead&&!this.flags.isPaused&&(Math.abs(this.getPlayhead()-this.pausePlayhead)>2?this.fireSeekEnd({},"onProgress"):this.onBuffering?(this.fireBufferBegin({},!0,"onProgress"),this.fireBufferEnd({},"onProgress"),this.onBuffering=!1):this.chronos.pause.pauseTime=void 0,this.pausePlayhead=void 0),this.playrate&&(this.onBuffering=!1)}onBuffer(l){l.isBuffering&&this.getPlayhead()!==void 0&&this.reactPlatform&&this.reactPlatform=="android"&&(this.onBuffering=!0,this.fireBufferBegin({},!1,"onBuffer"))}onError(l){let d,g;this.reactPlatform&&this.reactPlatform=="android"?(d=l.error.errorCode,g=l.error.errorException):this.reactPlatform&&this.reactPlatform=="ios"&&(d=l.error.code,g=l.error.localizedDescription),this.fireError(d,g)}onEnd(l){this.reactPlatform&&this.reactPlatform=="ios"&&this.getVideo().getAdsAdapter()?this.stopTimer=setTimeout(()=>{this.fireStop()},this.getVideo().options["ad.postRollTimeout"]||1e3):this.fireStop()}onAdEvent(l){this.getVideo()&&this.getVideo().getAdsAdapter()&&this.getVideo().getAdsAdapter().onAdEvent(l)}},Visualon:class{getVersion(){return"7.0.2-visualon-analytics-js"}getPlayhead(){return this.player.getPosition()}getFramesPerSecond(){let l=this.player.getAnalyticsInfo();if(l&&l.streamingFps)try{return parseInt(l.streamingFps,10)}catch{return 0}return 0}getDroppedFrames(){let l=this.player.getAnalyticsInfo();return l&&l.droppedFrames?l.droppedFrames:0}getDuration(){return this.player.getDuration()}getBitrate(){return this.targetBitrate}getTotalBytes(){var l=this.player.getAnalyticsInfo();if(l&&l.downloadBytes)return l.downloadBytes}getRendition(){return this.getNpawUtils().buildRenditionString(this.width,this.height,this.targetBitrate)}getIsLive(){return this.player.isLive()}getResource(){var l=this.player.getAnalyticsInfo();return l&&l.videoLinkURL?l.videoLinkURL:null}getPlayerVersion(){return this.player.getVersion()}getPlayerName(){return"VisualON"}registerListeners(){if(typeof voPlayer<"u"&&this.player)for(var l in this.references={},this.references[voPlayer.events.VO_OSMP_SRC_CB_OPEN_FINISHED]=this.openListener.bind(this),this.references[voPlayer.events.VO_OSMP_CB_PLAY_STARTED]=this.playListener.bind(this),this.references[voPlayer.events.VO_OSMP_CB_PLAY_PLAYING]=this.playingListener.bind(this),this.references[voPlayer.events.VO_OSMP_CB_PLAY_WAITING]=this.bufferListener.bind(this),this.references[voPlayer.events.VO_OSMP_CB_PLAY_PAUSED]=this.pauseListener.bind(this),this.references[voPlayer.events.VO_OSMP_CB_PLAY_COMPLETE]=this.endListener.bind(this),this.references[voPlayer.events.VO_OSMP_CB_SEEK_START]=this.seekListener.bind(this),this.references[voPlayer.events.VO_OSMP_CB_SEEK_COMPLETE]=this.seekEndListener.bind(this),this.references[voPlayer.events.VO_OSMP_CB_PLAY_TIME_UPDATED]=this.timeUpdatedListener.bind(this),this.references[voPlayer.events.VO_OSMP_CB_ERROR_EVENTS]=this.errorListener.bind(this),this.references[voPlayer.events.VO_OSMP_SRC_ADAPTIVE_STREAMING_INFO_EVENT_BITRATE_CHANGE]=this.bitrateChangeListener.bind(this),this.references)this.player.addEventListener(l,this.references[l]);this._reset()}unregisterListeners(){if(typeof voPlayer<"u"&&this.player&&this.references){for(let l in this.references)this.player.off(l,this.references[l]);delete this.references}}bitrateChangeListener(l){l.mediaType&&l.mediaType==="video"&&(this.targetBitrate=l.bandwidth,this.width=l.width,this.height=l.height)}openListener(l){this.fireStop({},"openListener"),this._reset()}timeUpdatedListener(l){}playListener(l){this.fireStart({},"playListener")}pauseListener(l){this.firePause({},"pauseListener")}playingListener(l){this.fireStart({},"playingListener"),this.fireJoin({},"playingListener"),this.fireResume({},"playingListener"),this.fireSeekEnd({},"playingListener"),this.fireBufferEnd({},"playingListener")}seekListener(l){this.fireSeekBegin({},!1,"seekListener")}seekEndListener(l){this.fireSeekEnd({},"seekEndListener")}endListener(l){this.fireStop({},"endListener"),this._reset()}bufferListener(l){this.fireBufferBegin({},!1,"bufferListener")}errorListener(l){this.fireError(l.code,l.message,void 0,void 0,"errorListener")}_reset(){this.width=null,this.height=null,this.targetBitrate=null}},BitmovinReactNative:class{onSourceLoaded(l){this.duration=l.source.duration}onAudioChanged(l){}onVideoDownloadQualityChanged(l){}onVideoPlaybackQualityChanged(l){this.width=l.newVideoQuality.width,this.height=l.newVideoQuality.height,this.bitrate=l.newVideoQuality.bitrate}onReady(l){}onPlay(l){this.flags.isStarted||this.fireStart({},l.name),this.flags.isStarted&&this.fireResume({},l.name)}onPlaying(l){this.flags.isJoined||this.fireJoin({},l.name),this.flags.isStarted&&this.fireResume({},l.name)}onTimeChanged(l){this.playhead=l.currentTime}onPaused(l){this.firePause({},l.name)}onSeek(l){this.isSeeking=!0,this.fireSeekBegin({},!1,l.name)}onSeeked(l){this.seekIntervalId&&clearInterval(this.seekIntervalId),this.isSeeking=!1,this.seekIntervalId=setInterval(()=>{this.isSeeking||(this.fireSeekEnd({},l.name),clearInterval(this.seekIntervalId),this.seekIntervalId=null)},500)}onPlaybackFinished(l){this.fireStop({},l.name)}onStallStarted(l){this.fireBufferBegin({},!1,l.name)}onStallEnded(l){this.chronos.buffer.getDeltaTime(!1)<50?this.cancelBuffer():this.fireBufferEnd({},l.name)}onPlayerWarning(l){this.fireError(l.code,l.message)}onPlayerError(l){this.fireError(l.code,l.message)}onSourceError(l){this.fireError(l.code,l.message)}onSourceWarning(l){this.fireError(l.code,l.message)}getBitrate(){return this.bitrate}onDestroy(l){this.fireStop()}getVersion(){return"7.0.1-bitmovin-react-native-jsclass"}getPlayhead(){return this.playhead}getIsLive(){return!this.duration}getDuration(){return this.duration}getResource(){return this.player&&this.player.source&&this.player.source.config?this.player.source.config.url:null}getTitle(){return this.player&&this.player.source&&this.player.source.config?this.player.source.config.title:null}setPlatform(l){this.reactPlatform=l}getRendition(){if(this.width&&this.height)return this.getNpawUtils().buildRenditionString(this.width,this.height)}getPlayerName(){return"Bitmovin React Native"}},MediaKindWmc:class{registerListeners(){this.inAdBreak=!1,this.lastSeenBitrate=0,this.lastPlayhead=0,this.lastDuration=0}registerWmcManager(l){if(this.wmcEventListeners=new Map,!l)return;this.wmcManager=l;let d=amc.AmcEvents,g=this._checkAdsAdapter.bind(this),w=this.errorListener.bind(this),j=this.playbackStartedListener.bind(this),H=this.bitrateChangedListener.bind(this),se=this.metricsUpdateListener.bind(this),Z=this.programChangedListener.bind(this),be=this.seekCompletedListener.bind(this),ve=this.stateChangedListener.bind(this),Ie=this.positionChangedListener.bind(this);this.wmcEventListeners.set(d.AMC_EVENT_AD_BREAK,g),this.wmcManager.addEventListener(d.AMC_EVENT_AD_BREAK,g),this.wmcEventListeners.set(d.AMC_EVENT_BIT_RATE_CHANGED,H),this.wmcManager.addEventListener(d.AMC_EVENT_BIT_RATE_CHANGED,H),this.wmcEventListeners.set(d.AMC_EVENT_ERROR,w),this.wmcManager.addEventListener(d.AMC_EVENT_ERROR,w),this.wmcEventListeners.set(d.AMC_EVENT_INIT_COMPLETE,j),this.wmcManager.addEventListener(d.AMC_EVENT_INIT_COMPLETE,j),this.wmcEventListeners.set(d.AMC_EVENT_METRICS_UPDATE,se),this.wmcManager.addEventListener(d.AMC_EVENT_METRICS_UPDATE,se),this.wmcEventListeners.set(d.AMC_EVENT_PLAYER_METADATA,se),this.wmcManager.addEventListener(d.AMC_EVENT_PLAYER_METADATA,se),this.wmcEventListeners.set(d.AMC_EVENT_PLAYOUT_METRIC_UPDATE,se),this.wmcManager.addEventListener(d.AMC_EVENT_PLAYOUT_METRIC_UPDATE,se),this.wmcEventListeners.set(d.AMC_EVENT_PLAY_READY,j),this.wmcManager.addEventListener(d.AMC_EVENT_PLAY_READY,j),this.wmcEventListeners.set(d.AMC_EVENT_PROGRAM_CHANGED,Z),this.wmcManager.addEventListener(d.AMC_EVENT_PROGRAM_CHANGED,Z),this.wmcEventListeners.set(d.AMC_EVENT_SEEK_COMPLETE,be),this.wmcManager.addEventListener(d.AMC_EVENT_SEEK_COMPLETE,be),this.wmcEventListeners.set(d.AMC_EVENT_STATE_CHANGED,ve),this.wmcManager.addEventListener(d.AMC_EVENT_STATE_CHANGED,ve),this.wmcEventListeners.set(d.AMC_EVENT_VIDEO_POSITION_CHANGED,Ie),this.wmcManager.addEventListener(d.AMC_EVENT_VIDEO_POSITION_CHANGED,Ie)}unregisterListeners(){this.wmcEventListeners.forEach((l,d)=>{this.wmcManager.removeEventListener(d,l)}),this.wmcEventListeners.clear()}_checkAdsAdapter(){let l=this.getVideo().getAdsAdapter();return l?l&&!l.player&&l.setPlayer(this.player):(this.plugin.setAdsAdapter(this.getAdapterClass("nativeAdsAdapter"),this.getVideo().getVideoKey()),this.getVideo().getAdsAdapter().registerListeners(this.wmcManager)),null}playbackStartedListener(l){this.flags.isStarted||(this.firePlayerLog("playbackStarted",{}),this.lastPlayhead=0,this.fireStart({},"playbackStarted"),this.failedView=!1)}bitrateChangedListener(l){this.firePlayerLog("bitrateChangedListener",{}),l.value1&&(this.lastSeenBitrate=l.value1)}metricsUpdateListener(l){this.firePlayerLog("metricsUpdateListener",{}),l.value1&&(l.value1.audio&&l.value1.audio.codec&&(this.audioCodec=l.value1.audio.codec),l.value1.video&&(l.value1.video.codec&&(this.videoCodec=l.value1.video.codec),l.value1.video.frameRate&&(this.fps=l.value1.video.frameRate),l.value1.video.resolution&&(this.resolution=l.value1.video.resolution),l.value1.video.droppedFrames&&(this.droppedFrames=l.value1.video.droppedFrames),l.value1.video.latency&&(this.latency=l.value1.video.latency)))}programChangedListener(l){return this.firePlayerLog("programChangedListener",{}),null}seekCompletedListener(l){return this.firePlayerLog("seekCompletedListener",{}),this.flags.isSeeking||this.fireSeekBegin({},!1,"seekCompletedListener"),this.fireSeekEnd({},"seekCompletedListener"),null}stateChangedListener(l){switch(this.firePlayerLog("stateChangedListener",{}),l.value1){case amc.AmcConstants.IMC_STATE_PLAY_NONE:break;case amc.AmcConstants.IMC_STATE_PLAY_STARTED:this.inAdBreak||(this.flags.isStarted||this.fireStart({},"IMC_STATE_PLAY_STARTED"),this.flags.isJoined||this.fireJoin({},"IMC_STATE_PLAY_STARTED"));break;case amc.AmcConstants.IMC_STATE_PLAY_PAUSED:this.firePause({},"IMC_STATE_PLAY_PAUSED");break;case amc.AmcConstants.IMC_STATE_PLAY_RESUMED:this.flags.isSeeking?this.fireSeekEnd({},"IMC_STATE_PLAY_RESUMED"):this.flags.isBuffering&&this.fireBufferEnd({},"IMC_STATE_PLAY_RESUMED"),this.flags.isPaused&&this.fireResume({},"IMC_STATE_PLAY_RESUMED");break;case amc.AmcConstants.IMC_STATE_PLAY_STOPPED:this.inAdBreak||this.fireStop({},"IMC_STATE_PLAY_STOPPED");break;case amc.AmcConstants.IMC_STATE_SEEKING:this.inAdBreak||this.fireSeekBegin({},!1,"IMC_STATE_SEEKING");break;case amc.AmcConstants.IMC_STATE_PLAY_COMPLETED:this.inAdBreak||this.fireStop({},"IMC_STATE_PLAY_COMPLETED");break;case amc.AmcConstants.IMC_STATE_BUFFERING_STARTED:this.flags.isSeeking||this.fireBufferBegin({},!1,"IMC_STATE_BUFFERING_STARTED");break;case amc.AmcConstants.IMC_STATE_BUFFERING_STOPPED:this.flags.isSeeking?this.fireSeekBegin({},!1,"IMC_STATE_BUFFERING_STOPPED"):this.fireBufferEnd({},"IMC_STATE_BUFFERING_STOPPED");break;case amc.AmcConstants.IMC_STATE_DOWNLOAD_STARTED:case amc.AmcConstants.IMC_STATE_DOWNLOAD_STOPPED:case amc.AmcConstants.IMC_STATE_DOWNLOAD_COMPLETED:case amc.AmcConstants.IMC_STATE_DOWNLOAD_PAUSED:case amc.AmcConstants.IMC_STATE_DOWNLOAD_CANCELLED:case amc.AmcConstants.IMC_STATE_DOWNLOAD_PLAY_READY:break;case amc.AmcConstants.IMC_STATE_ADS_STARTED:this.inAdBreak=!0;break;case amc.AmcConstants.IMC_STATE_ADS_COMPLETED:this.inAdBreak=!1;break;case amc.AmcConstants.IMC_STATE_DONE:this.inAdBreak||this.fireStop({},"IMC_STATE_DONE")}return null}translateImcEvent(l){return{[amc.AmcConstants.IMC_STATE_PLAY_NONE]:"Play None",[amc.AmcConstants.IMC_STATE_PLAY_STARTED]:"Play Started",[amc.AmcConstants.IMC_STATE_PLAY_PAUSED]:"Play Paused",[amc.AmcConstants.IMC_STATE_PLAY_RESUMED]:"Play Resumed",[amc.AmcConstants.IMC_STATE_PLAY_STOPPED]:"Play Stopped",[amc.AmcConstants.IMC_STATE_PLAY_COMPLETED]:"Play Completed",[amc.AmcConstants.IMC_STATE_BUFFERING_STARTED]:"Buffering Started",[amc.AmcConstants.IMC_STATE_BUFFERING_STOPPED]:"Buffering Stopped",[amc.AmcConstants.IMC_STATE_SEEKING]:"Seeking",[amc.AmcConstants.IMC_STATE_ADS_STARTED]:"Ads Started",[amc.AmcConstants.IMC_STATE_ADS_COMPLETED]:"Ads Completed",[amc.AmcConstants.IMC_STATE_DOWNLOAD_STARTED]:"Download Started",[amc.AmcConstants.IMC_STATE_DOWNLOAD_STOPPED]:"Download Stopped",[amc.AmcConstants.IMC_STATE_DOWNLOAD_COMPLETED]:"Download Completed",[amc.AmcConstants.IMC_STATE_DOWNLOAD_PAUSED]:"Download Paused",[amc.AmcConstants.IMC_STATE_DOWNLOAD_CANCELLED]:"Download Cancelled",[amc.AmcConstants.IMC_STATE_DOWNLOAD_PLAY_READY]:"Download Play Ready",[amc.AmcConstants.IMC_STATE_DONE]:"Done"}[l]||"Unknown IMC Event"}positionChangedListener(l){return this.firePlayerLog("positionChangedListener",{}),l.value1?this.lastPlayhead=l.value1:l.videoPosition&&(this.lastPlayhead=l.videoPosition),l.videoDuration&&(this.lastDuration=l.videoDuration),this.getPlayhead()>.2&&(this.getIsLive()||this.getPlayhead()+10&&(l={playhead:this.getVideo().getPlayhead()}),l}getDroppedFrames(){return this.player&&this.player.doGetPlayer?this.player.doGetPlayer().getDroppedVideoFrames():null}getDuration(){return this.player?this.player.doGetVideoDuration()??this.lastDuration:this.lastDuration}getBitrate(){if(this.lastSeenBitrate)return this.lastSeenBitrate;let l=null;if(this.player){let d=this.player.doGetPlayer().getPlaybackVideoData(),g=this.player.doGetPlayer().getVideoQuality();g&&g.bitrate?l=g.bitrate:d&&d.bitrate&&(l=d.bitrate)}return l}getRendition(){let l=null,d=this.getBitrate(),g=this.getResolution();if(d&&g){let[w,j]=g.split("x").map(Number);l=this.getNpawUtils().buildRenditionString(w,j,d)}else if(this.player){let w=this.player.doGetPlayer().getPlaybackVideoData(),j=this.player.doGetPlayer().getVideoQuality(),H=this.player.doGetPlayer().getStreamType();j&&j.bitrate?l=this.getNpawUtils().buildRenditionString(j.width,j.height,j.bitrate):w&&w.bitrate?l=this.getNpawUtils().buildRenditionString(w.width,w.height,w.bitrate):H==="progressive"&&(j?l=this.getNpawUtils().buildRenditionString(j.width,w.height):w&&(l=this.getNpawUtils().buildRenditionString(w.width,w.height)))}return l}getIsLive(){return this.player?this.player.isLive():null}getPlayerVersion(){return this.wmcManager?this.wmcManager.getAmcVersion():null}getPlayerName(){return"MediaKind"}getFramesPerSecond(){if(this.fps)return this.fps;let l=null;if(this.player){let d=this.player.doGetPlayer().getPlaybackVideoData(),g=this.player.doGetPlayer().getVideoQuality();g&&g.frameRate?l=g.frameRate:d&&d.frameRate&&(l=d.frameRate)}return l}getThroughput(){return null}getVideoCodec(){if(this.videoCodec)return this.videoCodec;let l=null;if(this.player){let d=this.player.doGetPlayer().getPlaybackVideoData(),g=this.player.doGetPlayer().getVideoQuality();g&&g.codec?l=g.codec:d&&d.codec&&(l=d.codec)}return l}getAudioCodec(){return this.audioCodec?this.audioCodec:null}getTotalBytes(){return null}getResource(){return this.player&&this.player.doGetPlayer?this.player.manifestUrl||this.player.doGetPlayer().getSource():null}getResolution(){return this.resolution?this.resolution:null}getProgram(){let l=null;return wmcMgr.doGetProgramInfo&&(l=wmcMgr.doGetProgramInfo().name),l}},TCPlayer:class{checkExistsPlayer(){try{return this.checkExistsObjectOnPage(this.player)}catch{return!0}}pauseListener(l){this.firePlayerLog("pauseListener",{}),this.firePause({},"pauseListener")}bufferingListener(l){this.firePlayerLog("waitingListener",{}),this.fireBufferBegin({},!1,"waitingListener")}getIsLive(){return this.player.duration()===1/0}playListener(l){this.firePlayerLog("playListener",{}),this.player&&this.playhead&&this.checkReadyState(this.player.readyState,"playListener"),(this.lastResource===void 0||this.getResource()&&this.lastResource!==this.getResource())&&(this.lastResource=this.getResource().split("?")[0]),this.fireStart({},"playListener")}registerListeners(){this.references={play:this.playListener.bind(this),pause:this.pauseListener.bind(this),playing:this.playingListener.bind(this),loadstart:this.loadStartListener.bind(this),error:this.errorListener.bind(this),seeking:this.seekingListener.bind(this),seeked:this.seekedListener.bind(this),ended:this.endedListener.bind(this),waiting:this.bufferingListener.bind(this),timeupdate:this.timeupdateListener.bind(this),canplay:this.canPlayListener.bind(this),canplaythrough:this.canPlayThroughListener.bind(this),loadedmetadata:this.loadedMetadataListener.bind(this),loadeddata:this.loadedDataListener.bind(this)};for(let l in this.references)this.references[l]&&this.player.on(l,this.references[l])}endedListener(l){let d=this.getVideo().getAdsAdapter(),g=!1;d&&d.isDAI!==void 0&&(d.isDAI||(g=d.player.getCuePoints().includes(-1))),g||(this.firePlayerLog("endedListener",{}),this.fireStop({},"endedListener"))}getPlayrate(){return this.player.playbackRate()}canPlayListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"canPlayListener")}canPlayThroughListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"canPlayThroughListener")}timeupdateListener(l){(this.getPlayhead()>0||this.getVideo()&&this.getVideo().getIsLive())&&!this.player.error&&(this.fireStart({},"timeupdateListener"),this.fireJoin({},"timeupdateListener"))}getResource(){return this.player.src()}getPlayhead(){return this.player.currentTime()}getDuration(){return this.player.duration()}getDroppedFrames(){return this.player.getVideoPlaybackQuality().droppedVideoFrames}seekingListener(l){this.firePlayerLog("seekingListener",{}),this.fireSeekBegin({},!1,"seekingListener")}getPlayerName(){return"tcplayer"}playingListener(l){this.firePlayerLog("playingListener",{}),this.fireJoin({},"playingListener"),this.fireResume({},"playingListener"),this.fireSeekEnd({},"playingListener"),this.flags.isBuffering&&this.fireBufferEnd({},"playingListener")}errorListener(l){this.firePlayerLog("errorListener",{});var d=null,g=null;try{l&&l.target&&l.target.error&&(g=l.target.error.code,d=l.target.error.message)}catch{}this.fireError(g,d,void 0,void 0,"errorListener")}loadedMetadataListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"loadedMetadataListener")}getVersion(){return"7.0.0-tcplayer-jsclass"}seekedListener(l){this.firePlayerLog("seekedListener",{}),this.fireSeekEnd({},"seekedListener")}loadStartListener(l){this.firePlayerLog("loadStartListener",{}),this.flags.isJoined&&this.getResource()&&this.getResource().split("?")[0]!==this.lastResource&&this.fireStop({},"loadStartListener")}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references)for(var l in this.references)this.player.removeEventListener(l,this.references[l]),delete this.references[l]}loadedDataListener(l){this.player&&(this.playhead||this.getVideo()&&this.getVideo().getIsLive())&&this.checkReadyState(this.player.readyState,"loadedDataListener")}}},ads:{Ima:class{pauseListener(l){this.firePause()}getAdInsertionType(){return this.isDAI?this.getNpawReference().Constants.AdInsertionType.ServerSide:this.getNpawReference().Constants.AdInsertionType.ClientSide}progressDAIListener(l){l.getStreamData&&l.getStreamData()?this.playhead=l.getStreamData().adProgressData.currentTime:typeof l.getAdData=="function"&&l.getAdData()&&(this.playhead=l.getAdData().currentTime),this.fireJoin()}getRendition(){let l=null;if(this.player)if(this.isDAI)this.width&&this.height&&(l=this.width+"x"+this.height);else{let d=this.player.getCurrentAd();l=d.getVastMediaWidth().toString()+"x"+d.getVastMediaHeight().toString()}return l}startDAIListener(l){this.isDAI=!0,this.playhead=0}getPlayerVersion(){return google.ima.VERSION}playListener(l){this.isDAI=!1,this.adPosition=this.getAdPosition();let d=typeof l.getAdData=="function"?l.getAdData():null;this.totalAds=d&&d.adPodInfo?d.adPodInfo.totalAds:null,this.plugin.fireInit(void 0,"playListener",this.getVideo().getVideoKey()),this.getVideo().getAdapter()&&this.getVideo().getAdapter().firePause(),this.fireStart({adPlayhead:"0"})}getTitle2(){let l=this.advertiser;return this.player&&!this.isDAI&&(l=this.player.getCurrentAd().getAdvertiserName()),l}errorDAIListener(l){this.fireError(),this.fireStop()}secondQuartileListener(l){this.fireQuartile(2)}endedListener(l){this.lastDuration?this.fireStop({adPlayhead:this.lastDuration}):this.fireStop()}getGivenBreaks(){let l=null;return this.player&&this.player.getCuePoints&&(l=this.player.getCuePoints().length),l}loadedListener(l){let d=typeof l.getAdData=="function"?l.getAdData():null;this.totalAds=d&&d.adPodInfo?d.adPodInfo.totalAds:void 0,this.clickUrl=d?d.clickThroughUrl:void 0,this.plugin.isBreakStarted&&this.playListener(l)}getPlayhead(){let l=this.playhead;return this.flags.isJoined?this.player&&!this.isDAI&&(l=this.getDuration()-this.player.getRemainingTime()):l=0,l}getDuration(){let l=this.duration;return this.player&&!this.isDAI&&(this.player.getCurrentAd&&this.player.getCurrentAd()&&(this.lastDuration=this.player.getCurrentAd().getDuration()),l=this.lastDuration),l}getGivenAds(){return this.totalAds}getIsSkippable(){let l=null;return this.player&&this.player.getCurrentAd&&(l=this.player.getCurrentAd().g.skippable),l}getCreativeId(){let l=null;return!this.isDAI&&this.player.getCurrentAd()&&(l=this.player.getCurrentAd().getCreativeId()),l}thirdQuartileListener(l){this.fireQuartile(3)}getAudioEnabled(){let l=null;return this.player&&(l=!this.player.getVolume||this.player.getVolume()!==0),l}getVersion(){return"7.0.9-ima-jsclass"}logListener(l){if(typeof l.getAdData=="function"&&l.getAdData().adError){let d=l.getAdData().adError;this.fireError(d.getErrorCode(),d.getMessage()),this.fireStop()}}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){for(let l in this.references)this.player.removeEventListener(l,this.references[l]);this.references={}}}clickListener(l){let d=this.clickUrl,g=this.player.getCurrentAd();g&&g.g&&g.g.clickThroughUrl&&(d=g.g.clickThroughUrl);let w=new Date().getTime();this.lastUrl===d&&w<(this.lastTime||0)+2e3||(this.lastUrl=d,this.lastTime=w,this.fireClick(d))}getAdPosition(){let l=this.getNpawReference().Constants.AdPosition.Midroll;if(this.isDAI){let d=this.getVideo().getAdapter();d&&(!d.flags.isJoined||d.getPlayhead()<1)?l=this.getNpawReference().Constants.AdPosition.Preroll:d&&d.flags.isJoined&&d.getPlayhead()+this.duration+1>=d.getDuration()&&(l=this.getNpawReference().Constants.AdPosition.Postroll)}else switch(this.player.getCurrentAd().getAdPodInfo().getTimeOffset()){case 0:l=this.getNpawReference().Constants.AdPosition.Preroll;break;case-1:l=this.getNpawReference().Constants.AdPosition.Postroll}return l}firstQuartileListener(l){this.fireQuartile(1)}getIsLive(){let l=null;return this.player.levels&&this.player.levels[this.player.currentLevel]&&(l=this.player.levels[this.player.currentLevel].details.live),l}getTitle(){let l=this.title;return this.player&&!this.isDAI&&(l=this.player.getCurrentAd().getTitle()),l}registerListeners(){if(this.references={},google.ima.AdEvent){this.monitorPlayhead(!0,!1);let l=google.ima.AdEvent.Type;this.references[l.CONTENT_PAUSE_REQUESTED]=this.playListener.bind(this),this.references[l.LOADED]=this.loadedListener.bind(this),this.references[l.PAUSED]=this.pauseListener.bind(this),this.references[l.STARTED]=this.playingListener.bind(this),this.references[l.RESUMED]=this.playingListener.bind(this),this.references[google.ima.AdErrorEvent.Type.AD_ERROR]=this.errorListener.bind(this),this.references[l.COMPLETE]=this.endedListener.bind(this),this.references[l.CONTENT_RESUME_REQUESTED]=this.endedListener.bind(this),this.references[l.SKIPPED]=this.skippedListener.bind(this),this.references[l.CLICK]=this.clickListener.bind(this),this.references[l.ALL_ADS_COMPLETED]=this.endedViewListener.bind(this),this.references[l.LOG]=this.logListener.bind(this),this.references[l.FIRST_QUARTILE]=this.firstQuartileListener.bind(this),this.references[l.MIDPOINT]=this.secondQuartileListener.bind(this),this.references[l.THIRD_QUARTILE]=this.thirdQuartileListener.bind(this),this.references[l.CONTENT_RESUME_REQUESTED]=this.breakEndListener.bind(this)}if(google.ima.dai){let l=google.ima.dai.api.StreamEvent.Type;this.references[l.SKIPPED]=this.skippedL.bind(this),this.references[l.ERROR]=this.errorDAIListener.bind(this),this.references[l.AD_BREAK_STARTED]=this.startDAIListener.bind(this),this.references[l.AD_BREAK_ENDED]=this.stopDAIListener.bind(this),this.references[l.AD_PROGRESS]=this.progressDAIListener.bind(this),this.references[l.CLICK]=this.clickDAIListener.bind(this),this.references[l.STARTED]=this.joinDAIListener.bind(this),this.references[l.LOADED]=this.loadedDAIListener.bind(this),this.references[l.COMPLETE]=this.completeDAIListener.bind(this),this.references[l.FIRST_QUARTILE]=this.firstQuartileListener.bind(this),this.references[l.MIDPOINT]=this.secondQuartileListener.bind(this),this.references[l.THIRD_QUARTILE]=this.thirdQuartileListener.bind(this),this.references[l.PAUSED]=this.pauseDAIListener.bind(this),this.references[l.RESUMED]=this.resumeDAIListener.bind(this)}if(this.player)for(let l in this.references)this.player.addEventListener(l,this.references[l])}loadedDAIListener(l){if(l.getStreamData){let d=l.getStreamData();d&&(this.resource=d.url)}}stopDAIListener(l){this.fireStop({adPlayhead:this.duration}),this.getVideo().getAdapter()&&this.getVideo().getAdapter().fireResume(),this.fireBreakStop()}getResource(){let l=null;return!this.isDAI&&this.player.getCurrentAd()?l=this.player.getCurrentAd().getMediaUrl():this.isDAI&&(l=this.resource),l}getProvider(){let l=null;return!this.isDAI&&this.player.getCurrentAd()&&(l=this.player.getCurrentAd().getAdSystem()),l}skippedL(){this.fireSkip()}skippedListener(l){this.fireSkip({adPlayhead:this.getPlayhead()})}joinDAIListener(l){let d=l.getAd();d&&(this.duration=d.getDuration(),this.title=d.getTitle(),this.width=d.getVastMediaWidth(),this.height=d.getVastMediaHeight(),this.advertiser=d.getAdvertiserName(),this.adPosition=this.getAdPosition()),this.getVideo().getAdapter()&&this.getVideo().getAdapter().firePause(),this.plugin.fireInit(void 0,"joinDAIListener",this.getVideo().getVideoKey()),this.fireStart(),this.fireJoin()}completeDAIListener(l){this.fireStop({},"completeDAIListener")}getPlayerName(){return"IMA"}getIsVisible(){let l=null;if(this.player){if(!this.contentPlayer)for(let d in this.player){let g=this.player[d];if(g&&g.videoHeight&&g.clientHeight){this.contentPlayer=g;break}}l=this.getNpawUtils().calculateAdViewability(this.contentPlayer)}return l}playingListener(l){this.fireStart({adPlayhead:"0"}),this.fireResume(),this.fireSeekEnd(),this.fireBufferEnd(),this.fireJoin({adPlayhead:"0"})}endedViewListener(l){this.getPosition()===this.getNpawReference().Constants.AdPosition.Postroll&&this.getVideo().getAdapter().fireStop({},"endedViewListener")}getPosition(){let l=null;return this.player&&(l=this.getVideo().getAdapter()&&!this.getVideo().getAdapter().flags.isJoined?this.getNpawReference().Constants.AdPosition.Preroll:this.getIsLive()?this.getNpawReference().Constants.AdPosition.Midroll:this.adPosition||this.getNpawReference().Constants.AdPosition.Midroll),l}errorListener(l){this.fireError(),this.fireStop()}breakEndListener(l){this.fireBreakStop()}getBreaksTime(){let l=null;return this.player&&this.player.getCuePoints&&(l=this.player.getCuePoints(),l.forEach((function(d,g){l[g]!==-1&&l[g]!==null&&l[g]!==void 0||(l[g]=this.plugin._adapter.getDuration())}).bind(this))),l}clickDAIListener(l){this.fireClick(this.clickUrl)}pauseDAIListener(l){this.firePause();var d=this.getVideo().getAdapter();d&&(d.flags.isAdPaused=!0)}resumeDAIListener(l){this.fireResume();var d=this.getVideo().getAdapter();d&&(d.flags.isAdPaused=!1)}},BrightcoveFreewheel:class{isUsed(){return!this.player.ima3&&this.player.ads}getVersion(){return"7.0.4-videojs-bcove-freewheel-ads-jsclass"}getPlayhead(){if(this.player.ads.ad)return this.player.ads.ad.currentTime()}getPosition(){switch(this.player.ads.ad.type){case"PREROLL":return this.getNpawReference().Constants.AdPosition.Preroll;case"POSTROLL":return this.videoEnded=!0,this.getNpawReference().Constants.AdPosition.Postroll}return this.getNpawReference().Constants.AdPosition.Midroll}getResource(){if(this.player.ads.contentSrc)return this.player.ads.contentSrc}getTitle(){if(this.player.ads.ad&&this.player.ads.ad.id)return this.player.ads.ad.id}getDuration(){if(this.player.ads.ad&&this.player.ads.ad.duration)return this.lastDuration=this.player.ads.ad.duration,this.lastDuration}getPlayerName(){return"Freewheel"}getPlayerVersion(){return typeof tv<"u"&&tv.freewheel&&tv.freewheel.SDK?tv.freewheel.SDK.version:this.player.ads.VERSION}registerListeners(){for(var l in this.monitorPlayhead(!0,!1),this.references=[],this.references["ads-ad-started"]=this.adStartListener.bind(this),this.references["ads-ad-ended"]=this.adEndedListener.bind(this),this.references["ads-pause"]=this.adPausedListener.bind(this),this.references["ads-play"]=this.adResumedListener.bind(this),this.references["ads-first-quartile"]=this.firstQuartileListener.bind(this),this.references["ads-midpoint"]=this.secondQuartileListener.bind(this),this.references["ads-third-quartile"]=this.thirdQuartileListener.bind(this),this.references["ads-pod-ended"]=this.adPodEndListener.bind(this),this.references.adserror=this.errorListener.bind(this),this.references)this.player.on(l,this.references[l])}firstQuartileListener(l){this.fireQuartile(1)}secondQuartileListener(l){this.fireQuartile(2)}thirdQuartileListener(l){this.fireQuartile(3)}adPodEndListener(l){this.fireBreakStop()}adStartListener(l){this.fireStart(),this.fireJoin()}adPausedListener(l){this.firePause()}adResumedListener(l){this.fireResume()}adEndedListener(l){this.fireStop({adPlayhead:this.lastDuration}),this.fireStop();let d=this.getVideo().getAdapter();d&&(this.videoEnded?(d.fireStop(),this.videoEnded=null):d.fireResume())}errorListener(l){this.fireError("Ad error")}unregisterListeners(){if(this.monitor&&this.monitor.stop(),this.player&&this.references){for(var l in this.references)this.player.off(l,this.references[l]);this.references=[]}}}}};return a.default})())});var rh=null;function bn(){return rh}function mc(s){rh??=s}var zr=class{},yc=(()=>{class s{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:()=>ie(ah),providedIn:"platform"})}return s})();var ah=(()=>{class s extends yc{_location;_history;_doc=ie(Dt);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return bn().getBaseHref(this._doc)}onPopState(e){let t=bn().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){let t=bn().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,t,n){this._history.pushState(e,t,n)}replaceState(e,t,n){this._history.replaceState(e,t,n)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:()=>new s,providedIn:"platform"})}return s})();function oh(s,a){return s?a?s.endsWith("/")?a.startsWith("/")?s+a.slice(1):s+a:a.startsWith("/")?s+a:`${s}/${a}`:s:a}function nh(s){let a=s.search(/#|\?|$/);return s[a-1]==="/"?s.slice(0,a-1)+s.slice(a):s}function os(s){return s&&s[0]!=="?"?`?${s}`:s}var po=(()=>{class s{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:()=>ie(ch),providedIn:"root"})}return s})(),lh=new Ge(""),ch=(()=>{class s extends po{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,t){super(),this._platformLocation=e,this._baseHref=t??this._platformLocation.getBaseHrefFromDOM()??ie(Dt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return oh(this._baseHref,e)}path(e=!1){let t=this._platformLocation.pathname+os(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,o){let c=this.prepareExternalUrl(n+os(o));this._platformLocation.pushState(e,t,c)}replaceState(e,t,n,o){let c=this.prepareExternalUrl(n+os(o));this._platformLocation.replaceState(e,t,c)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(t){return new(t||s)(Ft(yc),Ft(lh,8))};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ls=(()=>{class s{_subject=new St;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let t=this._locationStrategy.getBaseHref();this._basePath=Jm(nh(sh(t))),this._locationStrategy.onPopState(n=>{this._subject.next({url:this.path(!0),pop:!0,state:n.state,type:n.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+os(t))}normalize(e){return s.stripTrailingSlash(Qm(this._basePath,sh(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._locationStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+os(t)),n)}replaceState(e,t="",n=null){this._locationStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+os(t)),n)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}),()=>{let t=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(t,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t??void 0,complete:n??void 0})}static normalizeQueryParams=os;static joinWithSlash=oh;static stripTrailingSlash=nh;static \u0275fac=function(t){return new(t||s)(Ft(po))};static \u0275prov=ze({token:s,factory:()=>Km(),providedIn:"root"})}return s})();function Km(){return new ls(Ft(po))}function Qm(s,a){if(!s||!a.startsWith(s))return a;let e=a.substring(s.length);return e===""||["/",";","?","#"].includes(e[0])?e:a}function sh(s){return s.replace(/\/index.html$/,"")}function Jm(s){if(new RegExp("^(https?:)?//").test(s)){let[,e]=s.split(/\/\/[^\/]+/);return e}return s}var vc=/\s+/,dh=[],_c=(()=>{class s{_ngEl;_renderer;initialClasses=dh;rawClass;stateMap=new Map;constructor(e,t){this._ngEl=e,this._renderer=t}set klass(e){this.initialClasses=e!=null?e.trim().split(vc):dh}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(vc):e}ngDoCheck(){for(let t of this.initialClasses)this._updateState(t,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let t of e)this._updateState(t,!0);else if(e!=null)for(let t of Object.keys(e))this._updateState(t,!!e[t]);this._applyStateDiff()}_updateState(e,t){let n=this.stateMap.get(e);n!==void 0?(n.enabled!==t&&(n.changed=!0,n.enabled=t),n.touched=!0):this.stateMap.set(e,{enabled:t,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let t=e[0],n=e[1];n.changed?(this._toggleClass(t,n.enabled),n.changed=!1):n.touched||(n.enabled&&this._toggleClass(t,!1),this.stateMap.delete(t)),n.touched=!1}}_toggleClass(e,t){e=e.trim(),e.length>0&&e.split(vc).forEach(n=>{t?this._renderer.addClass(this._ngEl.nativeElement,n):this._renderer.removeClass(this._ngEl.nativeElement,n)})}static \u0275fac=function(t){return new(t||s)(ni(Vt),ni(Ci))};static \u0275dir=Wt({type:s,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return s})();var bc=(()=>{class s{_viewContainer;_context=new fo;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,t){this._viewContainer=e,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){uh(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){uh(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,t){return!0}static \u0275fac=function(t){return new(t||s)(ni($i),ni(vn))};static \u0275dir=Wt({type:s,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return s})(),fo=class{$implicit=null;ngIf=null};function uh(s,a){if(s&&!s.createEmbeddedView)throw new ti(2020,!1)}var Ec=(()=>{class s{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){let[n,o]=e.split("."),c=n.indexOf("-")===-1?void 0:Ds.DashCase;t!=null?this._renderer.setStyle(this._ngEl.nativeElement,n,o?`${t}${o}`:t,c):this._renderer.removeStyle(this._ngEl.nativeElement,n,c)}_applyChanges(e){e.forEachRemovedItem(t=>this._setStyle(t.key,null)),e.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),e.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}static \u0275fac=function(t){return new(t||s)(ni(Vt),ni(th),ni(Ci))};static \u0275dir=Wt({type:s,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return s})(),Cc=(()=>{class s{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let t=this._viewContainerRef;if(this._viewRef&&t.remove(t.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let n=this._createContextForwardProxy();this._viewRef=t.createEmbeddedView(this.ngTemplateOutlet,n,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,n)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,t,n):!1,get:(e,t,n)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,n)}})}static \u0275fac=function(t){return new(t||s)(ni($i))};static \u0275dir=Wt({type:s,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Sn]})}return s})();var go=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({})}return s})();function Gr(s,a){a=encodeURIComponent(a);for(let e of s.split(";")){let t=e.indexOf("="),[n,o]=t==-1?[e,""]:[e.slice(0,t),e.slice(t+1)];if(n.trim()===a)return decodeURIComponent(o)}return null}var mo="browser",hh="server";function Ac(s){return s===mo}function wc(s){return s===hh}var Ls=class{};var _o=new Ge(""),Dc=(()=>{class s{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(n=>{n.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,n,o){return this._findPluginFor(t).addEventListener(e,t,n,o)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(o=>o.supports(e)),!t)throw new ti(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||s)(Ft(_o),Ft(Nt))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})(),Wr=class{_doc;constructor(a){this._doc=a}manager},yo="ng-app-id";function ph(s){for(let a of s)a.remove()}function fh(s,a){let e=a.createElement("style");return e.textContent=s,e}function n0(s,a,e,t){let n=s.head?.querySelectorAll(`style[${yo}="${a}"],link[${yo}="${a}"]`);if(n)for(let o of n)o.removeAttribute(yo),o instanceof HTMLLinkElement?t.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Tc(s,a){let e=a.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",s),e}var Uc=(()=>{class s{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,n,o={}){this.doc=e,this.appId=t,this.nonce=n,this.isServer=wc(o),n0(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let n of e)this.addUsage(n,this.inline,fh);t?.forEach(n=>this.addUsage(n,this.external,Tc))}removeStyles(e,t){for(let n of e)this.removeUsage(n,this.inline);t?.forEach(n=>this.removeUsage(n,this.external))}addUsage(e,t,n){let o=t.get(e);o?o.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(c=>this.addElement(c,n(e,this.doc)))})}removeUsage(e,t){let n=t.get(e);n&&(n.usage--,n.usage<=0&&(ph(n.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])ph(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:n}]of this.inline)n.push(this.addElement(e,fh(t,this.doc)));for(let[t,{elements:n}]of this.external)n.push(this.addElement(e,Tc(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(yo,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||s)(Ft(Dt),Ft(Ts),Ft(Br,8),Ft(Fs))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})(),Sc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Pc=/%COMP%/g;var mh="%COMP%",s0=`_nghost-${mh}`,r0=`_ngcontent-${mh}`,a0=!0,o0=new Ge("",{providedIn:"root",factory:()=>a0});function l0(s){return r0.replace(Pc,s)}function c0(s){return s0.replace(Pc,s)}function yh(s,a){return a.map(e=>e.replace(Pc,s))}var Yr=(()=>{class s{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,n,o,c,p,v,A=null,_=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.removeStylesOnCompDestroy=o,this.doc=c,this.platformId=p,this.ngZone=v,this.nonce=A,this.tracingService=_,this.platformIsServer=!1,this.defaultRenderer=new Xr(e,c,v,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;let n=this.getOrCreateRenderer(e,t);return n instanceof vo?n.applyToHost(e):n instanceof $r&&n.applyStyles(),n}getOrCreateRenderer(e,t){let n=this.rendererByCompId,o=n.get(t.id);if(!o){let c=this.doc,p=this.ngZone,v=this.eventManager,A=this.sharedStylesHost,_=this.removeStylesOnCompDestroy,m=this.platformIsServer,y=this.tracingService;switch(t.encapsulation){case pc.Emulated:o=new vo(v,A,t,this.appId,_,c,p,m,y);break;case pc.ShadowDom:return new Fc(v,A,e,t,c,p,this.nonce,m,y);default:o=new $r(v,A,t,_,c,p,m,y);break}n.set(t.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||s)(Ft(Dc),Ft(Uc),Ft(Ts),Ft(o0),Ft(Dt),Ft(Fs),Ft(Nt),Ft(Br),Ft(ju,8))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})(),Xr=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(a,e,t,n,o){this.eventManager=a,this.doc=e,this.ngZone=t,this.platformIsServer=n,this.tracingService=o}destroy(){}destroyNode=null;createElement(a,e){return e?this.doc.createElementNS(Sc[e]||e,a):this.doc.createElement(a)}createComment(a){return this.doc.createComment(a)}createText(a){return this.doc.createTextNode(a)}appendChild(a,e){(gh(a)?a.content:a).appendChild(e)}insertBefore(a,e,t){a&&(gh(a)?a.content:a).insertBefore(e,t)}removeChild(a,e){e.remove()}selectRootElement(a,e){let t=typeof a=="string"?this.doc.querySelector(a):a;if(!t)throw new ti(-5104,!1);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,n){if(n){e=n+":"+e;let o=Sc[n];o?a.setAttributeNS(o,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){let n=Sc[t];n?a.removeAttributeNS(n,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,n){n&(Ds.DashCase|Ds.Important)?a.style.setProperty(e,t,n&Ds.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&Ds.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a!=null&&(a[e]=t)}setValue(a,e){a.nodeValue=e}listen(a,e,t,n){if(typeof a=="string"&&(a=bn().getGlobalEventTarget(this.doc,a),!a))throw new ti(5102,!1);let o=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(a,e,o)),this.eventManager.addEventListener(a,e,o,n)}decoratePreventDefault(a){return e=>{if(e==="__ngUnwrap__")return a;a(e)===!1&&e.preventDefault()}}};function gh(s){return s.tagName==="TEMPLATE"&&s.content!==void 0}var Fc=class extends Xr{sharedStylesHost;hostEl;shadowRoot;constructor(a,e,t,n,o,c,p,v,A){super(a,o,c,v,A),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let _=n.styles;_=yh(n.id,_);for(let y of _){let C=document.createElement("style");p&&C.setAttribute("nonce",p),C.textContent=y,this.shadowRoot.appendChild(C)}let m=n.getExternalStyles?.();if(m)for(let y of m){let C=Tc(y,o);p&&C.setAttribute("nonce",p),this.shadowRoot.appendChild(C)}}nodeOrShadowRoot(a){return a===this.hostEl?this.shadowRoot:a}appendChild(a,e){return super.appendChild(this.nodeOrShadowRoot(a),e)}insertBefore(a,e,t){return super.insertBefore(this.nodeOrShadowRoot(a),e,t)}removeChild(a,e){return super.removeChild(null,e)}parentNode(a){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(a)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},$r=class extends Xr{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(a,e,t,n,o,c,p,v,A){super(a,o,c,p,v),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=n;let _=t.styles;this.styles=A?yh(A,_):_,this.styleUrls=t.getExternalStyles?.(A)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},vo=class extends $r{contentAttr;hostAttr;constructor(a,e,t,n,o,c,p,v,A){let _=n+"-"+t.id;super(a,e,t,o,c,p,v,A,_),this.contentAttr=l0(_),this.hostAttr=c0(_)}applyToHost(a){this.applyStyles(),this.setAttribute(a,this.hostAttr,"")}createElement(a,e){let t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}};var bo=class s extends zr{supportsDOMEvents=!0;static makeCurrent(){mc(new s)}onAndCancel(a,e,t,n){return a.addEventListener(e,t,n),()=>{a.removeEventListener(e,t,n)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.remove()}createElement(a,e){return e=e||this.getDefaultDocument(),e.createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return e==="window"?window:e==="document"?a:e==="body"?a.body:null}getBaseHref(a){let e=d0();return e==null?null:u0(e)}resetBaseElement(){Kr=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return Gr(document.cookie,a)}},Kr=null;function d0(){return Kr=Kr||document.head.querySelector("base"),Kr?Kr.getAttribute("href"):null}function u0(s){return new URL(s,document.baseURI).pathname}var h0=(()=>{class s{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})(),_h=(()=>{class s extends Wr{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n,o){return e.addEventListener(t,n,o),()=>this.removeEventListener(e,t,n,o)}removeEventListener(e,t,n,o){return e.removeEventListener(t,n,o)}static \u0275fac=function(t){return new(t||s)(Ft(Dt))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})(),vh=["alt","control","meta","shift"],p0={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},f0={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey},bh=(()=>{class s extends Wr{constructor(e){super(e)}supports(e){return s.parseEventName(e)!=null}addEventListener(e,t,n,o){let c=s.parseEventName(t),p=s.eventCallback(c.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>bn().onAndCancel(e,c.domEventName,p,o))}static parseEventName(e){let t=e.toLowerCase().split("."),n=t.shift();if(t.length===0||!(n==="keydown"||n==="keyup"))return null;let o=s._normalizeKey(t.pop()),c="",p=t.indexOf("code");if(p>-1&&(t.splice(p,1),c="code."),vh.forEach(A=>{let _=t.indexOf(A);_>-1&&(t.splice(_,1),c+=A+".")}),c+=o,t.length!=0||o.length===0)return null;let v={};return v.domEventName=n,v.fullKey=c,v}static matchEventFullKeyCode(e,t){let n=p0[e.key]||e.key,o="";return t.indexOf("code.")>-1&&(n=e.code,o="code."),n==null||!n?!1:(n=n.toLowerCase(),n===" "?n="space":n==="."&&(n="dot"),vh.forEach(c=>{if(c!==n){let p=f0[c];p(e)&&(o+=c+".")}}),o+=n,o===t)}static eventCallback(e,t,n){return o=>{s.matchEventFullKeyCode(o,e)&&n.runGuarded(()=>t(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||s)(Ft(Dt))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})();function Ic(s,a){return ih(Fe({rootComponent:s},g0(a)))}function g0(s){return{appProviders:[...b0,...s?.providers??[]],platformProviders:_0}}function m0(){bo.makeCurrent()}function y0(){return new dc}function v0(){return Mu(document),document}var _0=[{provide:Fs,useValue:mo},{provide:Ou,useValue:m0,multi:!0},{provide:Dt,useFactory:v0}];var b0=[{provide:Lu,useValue:"root"},{provide:dc,useFactory:y0},{provide:_o,useClass:_h,multi:!0,deps:[Dt]},{provide:_o,useClass:bh,multi:!0,deps:[Dt]},Yr,Uc,Dc,{provide:Xi,useExisting:Yr},{provide:Ls,useClass:h0},[]];var Zs=class{},Qr=class{},cs=class s{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(a){a?typeof a=="string"?this.lazyInit=()=>{this.headers=new Map,a.split(` `).forEach(e=>{let t=e.indexOf(":");if(t>0){let n=e.slice(0,t),o=e.slice(t+1).trim();this.addHeaderEntry(n,o)}})}:typeof Headers<"u"&&a instanceof Headers?(this.headers=new Map,a.forEach((e,t)=>{this.addHeaderEntry(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(a).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(a){return this.init(),this.headers.has(a.toLowerCase())}get(a){this.init();let e=this.headers.get(a.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(a){return this.init(),this.headers.get(a.toLowerCase())||null}append(a,e){return this.clone({name:a,value:e,op:"a"})}set(a,e){return this.clone({name:a,value:e,op:"s"})}delete(a,e){return this.clone({name:a,value:e,op:"d"})}maybeSetNormalizedName(a,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,a)}init(){this.lazyInit&&(this.lazyInit instanceof s?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(a=>this.applyUpdate(a)),this.lazyUpdate=null))}copyFrom(a){a.init(),Array.from(a.headers.keys()).forEach(e=>{this.headers.set(e,a.headers.get(e)),this.normalizedNames.set(e,a.normalizedNames.get(e))})}clone(a){let e=new s;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([a]),e}applyUpdate(a){let e=a.name.toLowerCase();switch(a.op){case"a":case"s":let t=a.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(a.name,e);let n=(a.op==="a"?this.headers.get(e):void 0)||[];n.push(...t),this.headers.set(e,n);break;case"d":let o=a.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let c=this.headers.get(e);if(!c)return;c=c.filter(p=>o.indexOf(p)===-1),c.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,c)}break}}addHeaderEntry(a,e){let t=a.toLowerCase();this.maybeSetNormalizedName(a,t),this.headers.has(t)?this.headers.get(t).push(e):this.headers.set(t,[e])}setHeaderEntries(a,e){let t=(Array.isArray(e)?e:[e]).map(o=>o.toString()),n=a.toLowerCase();this.headers.set(n,t),this.maybeSetNormalizedName(a,n)}forEach(a){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>a(this.normalizedNames.get(e),this.headers.get(e)))}};var Co=class{encodeKey(a){return Eh(a)}encodeValue(a){return Eh(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}};function E0(s,a){let e=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(n=>{let o=n.indexOf("="),[c,p]=o==-1?[a.decodeKey(n),""]:[a.decodeKey(n.slice(0,o)),a.decodeValue(n.slice(o+1))],v=e.get(c)||[];v.push(p),e.set(c,v)}),e}var C0=/%(\d[a-f0-9])/gi,A0={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Eh(s){return encodeURIComponent(s).replace(C0,(a,e)=>A0[e]??a)}function Eo(s){return`${s}`}var Yn=class s{map;encoder;updates=null;cloneFrom=null;constructor(a={}){if(this.encoder=a.encoder||new Co,a.fromString){if(a.fromObject)throw new ti(2805,!1);this.map=E0(a.fromString,this.encoder)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(e=>{let t=a.fromObject[e],n=Array.isArray(t)?t.map(Eo):[Eo(t)];this.map.set(e,n)})):this.map=null}has(a){return this.init(),this.map.has(a)}get(a){this.init();let e=this.map.get(a);return e?e[0]:null}getAll(a){return this.init(),this.map.get(a)||null}keys(){return this.init(),Array.from(this.map.keys())}append(a,e){return this.clone({param:a,value:e,op:"a"})}appendAll(a){let e=[];return Object.keys(a).forEach(t=>{let n=a[t];Array.isArray(n)?n.forEach(o=>{e.push({param:t,value:o,op:"a"})}):e.push({param:t,value:n,op:"a"})}),this.clone(e)}set(a,e){return this.clone({param:a,value:e,op:"s"})}delete(a,e){return this.clone({param:a,value:e,op:"d"})}toString(){return this.init(),this.keys().map(a=>{let e=this.encoder.encodeKey(a);return this.map.get(a).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(a=>a!=="").join("&")}clone(a){let e=new s({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(a),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(a=>this.map.set(a,this.cloneFrom.map.get(a))),this.updates.forEach(a=>{switch(a.op){case"a":case"s":let e=(a.op==="a"?this.map.get(a.param):void 0)||[];e.push(Eo(a.value)),this.map.set(a.param,e);break;case"d":if(a.value!==void 0){let t=this.map.get(a.param)||[],n=t.indexOf(Eo(a.value));n!==-1&&t.splice(n,1),t.length>0?this.map.set(a.param,t):this.map.delete(a.param)}else{this.map.delete(a.param);break}}}),this.cloneFrom=this.updates=null)}};var Ao=class{map=new Map;set(a,e){return this.map.set(a,e),this}get(a){return this.map.has(a)||this.map.set(a,a.defaultValue()),this.map.get(a)}delete(a){return this.map.delete(a),this}has(a){return this.map.has(a)}keys(){return this.map.keys()}};function w0(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ch(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function Ah(s){return typeof Blob<"u"&&s instanceof Blob}function wh(s){return typeof FormData<"u"&&s instanceof FormData}function S0(s){return typeof URLSearchParams<"u"&&s instanceof URLSearchParams}var Sh="Content-Type",Th="Accept",Fh="X-Request-URL",Dh="text/plain",Uh="application/json",T0=`${Uh}, ${Dh}, */*`,Js=class s{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;keepalive=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(a,e,t,n){this.url=e,this.method=a.toUpperCase();let o;if(w0(this.method)||n?(this.body=t!==void 0?t:null,o=n):o=t,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new cs,this.context??=new Ao,!this.params)this.params=new Yn,this.urlWithParams=e;else{let c=this.params.toString();if(c.length===0)this.urlWithParams=e;else{let p=e.indexOf("?"),v=p===-1?"?":pC.set(T,a.setHeaders[T]),_)),a.setParams&&(m=Object.keys(a.setParams).reduce((C,T)=>C.set(T,a.setParams[T]),m)),new s(e,t,p,{params:m,headers:_,context:y,reportProgress:A,responseType:n,withCredentials:v,transferCache:c,keepalive:o})}},Rs=function(s){return s[s.Sent=0]="Sent",s[s.UploadProgress=1]="UploadProgress",s[s.ResponseHeader=2]="ResponseHeader",s[s.DownloadProgress=3]="DownloadProgress",s[s.Response=4]="Response",s[s.User=5]="User",s}(Rs||{}),er=class{headers;status;statusText;url;ok;type;constructor(a,e=200,t="OK"){this.headers=a.headers||new cs,this.status=a.status!==void 0?a.status:e,this.statusText=a.statusText||t,this.url=a.url||null,this.ok=this.status>=200&&this.status<300}},wo=class s extends er{constructor(a={}){super(a)}type=Rs.ResponseHeader;clone(a={}){return new s({headers:a.headers||this.headers,status:a.status!==void 0?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})}},Jr=class s extends er{body;constructor(a={}){super(a),this.body=a.body!==void 0?a.body:null}type=Rs.Response;clone(a={}){return new s({body:a.body!==void 0?a.body:this.body,headers:a.headers||this.headers,status:a.status!==void 0?a.status:this.status,statusText:a.statusText||this.statusText,url:a.url||this.url||void 0})}},Zr=class extends er{name="HttpErrorResponse";message;error;ok=!1;constructor(a){super(a,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${a.url||"(unknown url)"}`:this.message=`Http failure response for ${a.url||"(unknown url)"}: ${a.status} ${a.statusText}`,this.error=a.error||null}},F0=200,D0=204;function Lc(s,a){return{body:a,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials,transferCache:s.transferCache,keepalive:s.keepalive}}var tr=(()=>{class s{handler;constructor(e){this.handler=e}request(e,t,n={}){let o;if(e instanceof Js)o=e;else{let v;n.headers instanceof cs?v=n.headers:v=new cs(n.headers);let A;n.params&&(n.params instanceof Yn?A=n.params:A=new Yn({fromObject:n.params})),o=new Js(e,t,n.body!==void 0?n.body:null,{headers:v,context:n.context,params:A,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials,transferCache:n.transferCache,keepalive:n.keepalive})}let c=gt(o).pipe(ws(v=>this.handler.handle(v)));if(e instanceof Js||n.observe==="events")return c;let p=c.pipe(Vi(v=>v instanceof Jr));switch(n.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return p.pipe(Ut(v=>{if(v.body!==null&&!(v.body instanceof ArrayBuffer))throw new ti(2806,!1);return v.body}));case"blob":return p.pipe(Ut(v=>{if(v.body!==null&&!(v.body instanceof Blob))throw new ti(2807,!1);return v.body}));case"text":return p.pipe(Ut(v=>{if(v.body!==null&&typeof v.body!="string")throw new ti(2808,!1);return v.body}));case"json":default:return p.pipe(Ut(v=>v.body))}case"response":return p;default:throw new ti(2809,!1)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new Yn().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,Lc(n,t))}post(e,t,n={}){return this.request("POST",e,Lc(n,t))}put(e,t,n={}){return this.request("PUT",e,Lc(n,t))}static \u0275fac=function(t){return new(t||s)(Ft(Zs))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})();var U0=new Ge("");function P0(s,a){return a(s)}function I0(s,a,e){return(t,n)=>wn(e,()=>a(t,o=>s(o,n)))}var Ph=new Ge(""),Ih=new Ge(""),Lh=new Ge("",{providedIn:"root",factory:()=>!0});var So=(()=>{class s extends Zs{backend;injector;chain=null;pendingTasks=ie(hc);contributeToStability=ie(Lh);constructor(e,t){super(),this.backend=e,this.injector=t}handle(e){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(Ph),...this.injector.get(Ih,[])]));this.chain=t.reduceRight((n,o)=>I0(n,o,this.injector),P0)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,n=>this.backend.handle(n)).pipe(Ys(t))}else return this.chain(e,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||s)(Ft(Qr),Ft(ln))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})();var L0=/^\)\]\}',?\n/,R0=RegExp(`^${Fh}:`,"m");function k0(s){return"responseURL"in s&&s.responseURL?s.responseURL:R0.test(s.getAllResponseHeaders())?s.getResponseHeader(Fh):null}var Rc=(()=>{class s{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new ti(-2800,!1);e.keepalive;let t=this.xhrFactory;return(t.\u0275loadImpl?Li(t.\u0275loadImpl()):gt(null)).pipe(bi(()=>new Rn(o=>{let c=t.build();if(c.open(e.method,e.urlWithParams),e.withCredentials&&(c.withCredentials=!0),e.headers.forEach((U,G)=>c.setRequestHeader(U,G.join(","))),e.headers.has(Th)||c.setRequestHeader(Th,T0),!e.headers.has(Sh)){let U=e.detectContentTypeHeader();U!==null&&c.setRequestHeader(Sh,U)}if(e.responseType){let U=e.responseType.toLowerCase();c.responseType=U!=="json"?U:"text"}let p=e.serializeBody(),v=null,A=()=>{if(v!==null)return v;let U=c.statusText||"OK",G=new cs(c.getAllResponseHeaders()),M=k0(c)||e.url;return v=new wo({headers:G,status:c.status,statusText:U,url:M}),v},_=()=>{let{headers:U,status:G,statusText:M,url:S}=A(),D=null;G!==D0&&(D=typeof c.response>"u"?c.responseText:c.response),G===0&&(G=D?F0:0);let B=G>=200&&G<300;if(e.responseType==="json"&&typeof D=="string"){let R=D;D=D.replace(L0,"");try{D=D!==""?JSON.parse(D):null}catch(V){D=R,B&&(B=!1,D={error:V,text:D})}}B?(o.next(new Jr({body:D,headers:U,status:G,statusText:M,url:S||void 0})),o.complete()):o.error(new Zr({error:D,headers:U,status:G,statusText:M,url:S||void 0}))},m=U=>{let{url:G}=A(),M=new Zr({error:U,status:c.status||0,statusText:c.statusText||"Unknown Error",url:G||void 0});o.error(M)},y=!1,C=U=>{y||(o.next(A()),y=!0);let G={type:Rs.DownloadProgress,loaded:U.loaded};U.lengthComputable&&(G.total=U.total),e.responseType==="text"&&c.responseText&&(G.partialText=c.responseText),o.next(G)},T=U=>{let G={type:Rs.UploadProgress,loaded:U.loaded};U.lengthComputable&&(G.total=U.total),o.next(G)};return c.addEventListener("load",_),c.addEventListener("error",m),c.addEventListener("timeout",m),c.addEventListener("abort",m),e.reportProgress&&(c.addEventListener("progress",C),p!==null&&c.upload&&c.upload.addEventListener("progress",T)),c.send(p),o.next({type:Rs.Sent}),()=>{c.removeEventListener("error",m),c.removeEventListener("abort",m),c.removeEventListener("load",_),c.removeEventListener("timeout",m),e.reportProgress&&(c.removeEventListener("progress",C),p!==null&&c.upload&&c.upload.removeEventListener("progress",T)),c.readyState!==c.DONE&&c.abort()}})))}static \u0275fac=function(t){return new(t||s)(Ft(Ls))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})(),Rh=new Ge(""),x0="XSRF-TOKEN",M0=new Ge("",{providedIn:"root",factory:()=>x0}),O0="X-XSRF-TOKEN",N0=new Ge("",{providedIn:"root",factory:()=>O0}),ea=class{},B0=(()=>{class s{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,t){this.doc=e,this.cookieName=t}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Gr(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(t){return new(t||s)(Ft(Dt),Ft(M0))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})();function V0(s,a){let e=s.url.toLowerCase();if(!ie(Rh)||s.method==="GET"||s.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return a(s);let t=ie(ea).getToken(),n=ie(N0);return t!=null&&!s.headers.has(n)&&(s=s.clone({headers:s.headers.set(n,t)})),a(s)}function kc(...s){let a=[tr,Rc,So,{provide:Zs,useExisting:So},{provide:Qr,useFactory:()=>ie(U0,{optional:!0})??ie(Rc)},{provide:Ph,useValue:V0,multi:!0},{provide:Rh,useValue:!0},{provide:ea,useClass:B0}];for(let e of s)a.push(...e.\u0275providers);return on(a)}var kh=(()=>{class s{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||s)(Ft(Dt))};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var jt="primary",ga=Symbol("RouteTitle"),Bc=class{params;constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){let e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){let e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Ms(s){return new Bc(s)}function Hh(s,a,e){let t=e.path.split("/");if(t.length>s.length||e.pathMatch==="full"&&(a.hasChildren()||t.lengtht[o]===n)}else return s===a}function zh(s){return s.length>0?s[s.length-1]:null}function Jn(s){return sc(s)?s:jr(s)?Li(Promise.resolve(s)):gt(s)}var z0={exact:Wh,subset:Xh},Gh={exact:G0,subset:W0,ignored:()=>!0};function xh(s,a,e){return z0[e.paths](s.root,a.root,e.matrixParams)&&Gh[e.queryParams](s.queryParams,a.queryParams)&&!(e.fragment==="exact"&&s.fragment!==a.fragment)}function G0(s,a){return Mn(s,a)}function Wh(s,a,e){if(!ks(s.segments,a.segments)||!Do(s.segments,a.segments,e)||s.numberOfChildren!==a.numberOfChildren)return!1;for(let t in a.children)if(!s.children[t]||!Wh(s.children[t],a.children[t],e))return!1;return!0}function W0(s,a){return Object.keys(a).length<=Object.keys(s).length&&Object.keys(a).every(e=>qh(s[e],a[e]))}function Xh(s,a,e){return $h(s,a,a.segments,e)}function $h(s,a,e,t){if(s.segments.length>e.length){let n=s.segments.slice(0,e.length);return!(!ks(n,e)||a.hasChildren()||!Do(n,e,t))}else if(s.segments.length===e.length){if(!ks(s.segments,e)||!Do(s.segments,e,t))return!1;for(let n in a.children)if(!s.children[n]||!Xh(s.children[n],a.children[n],t))return!1;return!0}else{let n=e.slice(0,s.segments.length),o=e.slice(s.segments.length);return!ks(s.segments,n)||!Do(s.segments,n,t)||!s.children[jt]?!1:$h(s.children[jt],a,o,t)}}function Do(s,a,e){return a.every((t,n)=>Gh[e](s[n].parameters,t.parameters))}var Nn=class{root;queryParams;fragment;_queryParamMap;constructor(a=new si([],{}),e={},t=null){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Ms(this.queryParams),this._queryParamMap}toString(){return Y0.serialize(this)}},si=class{segments;children;parent=null;constructor(a,e){this.segments=a,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Uo(this)}},ds=class{path;parameters;_parameterMap;constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap??=Ms(this.parameters),this._parameterMap}toString(){return Kh(this)}};function X0(s,a){return ks(s,a)&&s.every((e,t)=>Mn(e.parameters,a[t].parameters))}function ks(s,a){return s.length!==a.length?!1:s.every((e,t)=>e.path===a[t].path)}function $0(s,a){let e=[];return Object.entries(s.children).forEach(([t,n])=>{t===jt&&(e=e.concat(a(n,t)))}),Object.entries(s.children).forEach(([t,n])=>{t!==jt&&(e=e.concat(a(n,t)))}),e}var ma=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:()=>new Os,providedIn:"root"})}return s})(),Os=class{parse(a){let e=new Hc(a);return new Nn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){let e=`/${ta(a.root,!0)}`,t=J0(a.queryParams),n=typeof a.fragment=="string"?`#${K0(a.fragment)}`:"";return`${e}${t}${n}`}},Y0=new Os;function Uo(s){return s.segments.map(a=>Kh(a)).join("/")}function ta(s,a){if(!s.hasChildren())return Uo(s);if(a){let e=s.children[jt]?ta(s.children[jt],!1):"",t=[];return Object.entries(s.children).forEach(([n,o])=>{n!==jt&&t.push(`${n}:${ta(o,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=$0(s,(t,n)=>n===jt?[ta(s.children[jt],!1)]:[`${n}:${ta(t,!1)}`]);return Object.keys(s.children).length===1&&s.children[jt]!=null?`${Uo(s)}/${e[0]}`:`${Uo(s)}/(${e.join("//")})`}}function Yh(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function To(s){return Yh(s).replace(/%3B/gi,";")}function K0(s){return encodeURI(s)}function jc(s){return Yh(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Po(s){return decodeURIComponent(s)}function Mh(s){return Po(s.replace(/\+/g,"%20"))}function Kh(s){return`${jc(s.path)}${Q0(s.parameters)}`}function Q0(s){return Object.entries(s).map(([a,e])=>`;${jc(a)}=${jc(e)}`).join("")}function J0(s){let a=Object.entries(s).map(([e,t])=>Array.isArray(t)?t.map(n=>`${To(e)}=${To(n)}`).join("&"):`${To(e)}=${To(t)}`).filter(e=>e);return a.length?`?${a.join("&")}`:""}var Z0=/^[^\/()?;#]+/;function xc(s){let a=s.match(Z0);return a?a[0]:""}var ey=/^[^\/()?;=#]+/;function ty(s){let a=s.match(ey);return a?a[0]:""}var iy=/^[^=?&#]+/;function ny(s){let a=s.match(iy);return a?a[0]:""}var sy=/^[^&#]+/;function ry(s){let a=s.match(sy);return a?a[0]:""}var Hc=class{url;remaining;constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new si([],{}):new si([],this.parseChildren())}parseQueryParams(){let a={};if(this.consumeOptional("?"))do this.parseQueryParam(a);while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[jt]=new si(a,e)),t}parseSegment(){let a=xc(this.remaining);if(a===""&&this.peekStartsWith(";"))throw new ti(4009,!1);return this.capture(a),new ds(Po(a),this.parseMatrixParams())}parseMatrixParams(){let a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){let e=ty(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let n=xc(this.remaining);n&&(t=n,this.capture(t))}a[Po(e)]=Po(t)}parseQueryParam(a){let e=ny(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let c=ry(this.remaining);c&&(t=c,this.capture(t))}let n=Mh(e),o=Mh(t);if(a.hasOwnProperty(n)){let c=a[n];Array.isArray(c)||(c=[c],a[n]=c),c.push(o)}else a[n]=o}parseParens(a){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=xc(this.remaining),n=this.remaining[t.length];if(n!=="/"&&n!==")"&&n!==";")throw new ti(4010,!1);let o;t.indexOf(":")>-1?(o=t.slice(0,t.indexOf(":")),this.capture(o),this.capture(":")):a&&(o=jt);let c=this.parseChildren();e[o]=Object.keys(c).length===1?c[jt]:new si([],c),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return this.peekStartsWith(a)?(this.remaining=this.remaining.substring(a.length),!0):!1}capture(a){if(!this.consumeOptional(a))throw new ti(4011,!1)}};function Qh(s){return s.segments.length>0?new si([],{[jt]:s}):s}function Jh(s){let a={};for(let[t,n]of Object.entries(s.children)){let o=Jh(n);if(t===jt&&o.segments.length===0&&o.hasChildren())for(let[c,p]of Object.entries(o.children))a[c]=p;else(o.segments.length>0||o.hasChildren())&&(a[t]=o)}let e=new si(s.segments,a);return ay(e)}function ay(s){if(s.numberOfChildren===1&&s.children[jt]){let a=s.children[jt];return new si(s.segments.concat(a.segments),a.children)}return s}function ar(s){return s instanceof Nn}function Zh(s,a,e=null,t=null){let n=ep(s);return tp(n,a,e,t)}function ep(s){let a;function e(o){let c={};for(let v of o.children){let A=e(v);c[v.outlet]=A}let p=new si(o.url,c);return o===s&&(a=p),p}let t=e(s.root),n=Qh(t);return a??n}function tp(s,a,e,t){let n=s;for(;n.parent;)n=n.parent;if(a.length===0)return Mc(n,n,n,e,t);let o=oy(a);if(o.toRoot())return Mc(n,n,new si([],{}),e,t);let c=ly(o,n,s),p=c.processChildren?na(c.segmentGroup,c.index,o.commands):np(c.segmentGroup,c.index,o.commands);return Mc(n,c.segmentGroup,p,e,t)}function Io(s){return typeof s=="object"&&s!=null&&!s.outlets&&!s.segmentPath}function aa(s){return typeof s=="object"&&s!=null&&s.outlets}function Mc(s,a,e,t,n){let o={};t&&Object.entries(t).forEach(([v,A])=>{o[v]=Array.isArray(A)?A.map(_=>`${_}`):`${A}`});let c;s===a?c=e:c=ip(s,a,e);let p=Qh(Jh(c));return new Nn(p,o,n)}function ip(s,a,e){let t={};return Object.entries(s.children).forEach(([n,o])=>{o===a?t[n]=e:t[n]=ip(o,a,e)}),new si(s.segments,t)}var Lo=class{isAbsolute;numberOfDoubleDots;commands;constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Io(t[0]))throw new ti(4003,!1);let n=t.find(aa);if(n&&n!==zh(t))throw new ti(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function oy(s){if(typeof s[0]=="string"&&s.length===1&&s[0]==="/")return new Lo(!0,0,s);let a=0,e=!1,t=s.reduce((n,o,c)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let p={};return Object.entries(o.outlets).forEach(([v,A])=>{p[v]=typeof A=="string"?A.split("/"):A}),[...n,{outlets:p}]}if(o.segmentPath)return[...n,o.segmentPath]}return typeof o!="string"?[...n,o]:c===0?(o.split("/").forEach((p,v)=>{v==0&&p==="."||(v==0&&p===""?e=!0:p===".."?a++:p!=""&&n.push(p))}),n):[...n,o]},[]);return new Lo(e,a,t)}var sr=class{segmentGroup;processChildren;index;constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}};function ly(s,a,e){if(s.isAbsolute)return new sr(a,!0,0);if(!e)return new sr(a,!1,NaN);if(e.parent===null)return new sr(e,!0,0);let t=Io(s.commands[0])?0:1,n=e.segments.length-1+t;return cy(e,n,s.numberOfDoubleDots)}function cy(s,a,e){let t=s,n=a,o=e;for(;o>n;){if(o-=n,t=t.parent,!t)throw new ti(4005,!1);n=t.segments.length}return new sr(t,!1,n-o)}function dy(s){return aa(s[0])?s[0].outlets:{[jt]:s}}function np(s,a,e){if(s??=new si([],{}),s.segments.length===0&&s.hasChildren())return na(s,a,e);let t=uy(s,a,e),n=e.slice(t.commandIndex);if(t.match&&t.pathIndexo!==jt)&&s.children[jt]&&s.numberOfChildren===1&&s.children[jt].segments.length===0){let o=na(s.children[jt],a,e);return new si(s.segments,o.children)}return Object.entries(t).forEach(([o,c])=>{typeof c=="string"&&(c=[c]),c!==null&&(n[o]=np(s.children[o],a,c))}),Object.entries(s.children).forEach(([o,c])=>{t[o]===void 0&&(n[o]=c)}),new si(s.segments,n)}}function uy(s,a,e){let t=0,n=a,o={match:!1,pathIndex:0,commandIndex:0};for(;n=e.length)return o;let c=s.segments[n],p=e[t];if(aa(p))break;let v=`${p}`,A=t0&&v===void 0)break;if(v&&A&&typeof A=="object"&&A.outlets===void 0){if(!Nh(v,A,c))return o;t+=2}else{if(!Nh(v,{},c))return o;t++}n++}return{match:!0,pathIndex:n,commandIndex:t}}function qc(s,a,e){let t=s.segments.slice(0,a),n=0;for(;n{typeof t=="string"&&(t=[t]),t!==null&&(a[e]=qc(new si([],{}),0,t))}),a}function Oh(s){let a={};return Object.entries(s).forEach(([e,t])=>a[e]=`${t}`),a}function Nh(s,a,e){return s==e.path&&Mn(a,e.parameters)}var sa="imperative",ki=function(s){return s[s.NavigationStart=0]="NavigationStart",s[s.NavigationEnd=1]="NavigationEnd",s[s.NavigationCancel=2]="NavigationCancel",s[s.NavigationError=3]="NavigationError",s[s.RoutesRecognized=4]="RoutesRecognized",s[s.ResolveStart=5]="ResolveStart",s[s.ResolveEnd=6]="ResolveEnd",s[s.GuardsCheckStart=7]="GuardsCheckStart",s[s.GuardsCheckEnd=8]="GuardsCheckEnd",s[s.RouteConfigLoadStart=9]="RouteConfigLoadStart",s[s.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",s[s.ChildActivationStart=11]="ChildActivationStart",s[s.ChildActivationEnd=12]="ChildActivationEnd",s[s.ActivationStart=13]="ActivationStart",s[s.ActivationEnd=14]="ActivationEnd",s[s.Scroll=15]="Scroll",s[s.NavigationSkipped=16]="NavigationSkipped",s}(ki||{}),dn=class{id;url;constructor(a,e){this.id=a,this.url=e}},Ns=class extends dn{type=ki.NavigationStart;navigationTrigger;restoredState;constructor(a,e,t="imperative",n=null){super(a,e),this.navigationTrigger=t,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Kn=class extends dn{urlAfterRedirects;type=ki.NavigationEnd;constructor(a,e,t){super(a,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Qi=function(s){return s[s.Redirect=0]="Redirect",s[s.SupersededByNewNavigation=1]="SupersededByNewNavigation",s[s.NoDataFromResolver=2]="NoDataFromResolver",s[s.GuardRejected=3]="GuardRejected",s[s.Aborted=4]="Aborted",s}(Qi||{}),oa=function(s){return s[s.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",s[s.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",s}(oa||{}),On=class extends dn{reason;code;type=ki.NavigationCancel;constructor(a,e,t,n){super(a,e),this.reason=t,this.code=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Qn=class extends dn{reason;code;type=ki.NavigationSkipped;constructor(a,e,t,n){super(a,e),this.reason=t,this.code=n}},or=class extends dn{error;target;type=ki.NavigationError;constructor(a,e,t,n){super(a,e),this.error=t,this.target=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},la=class extends dn{urlAfterRedirects;state;type=ki.RoutesRecognized;constructor(a,e,t,n){super(a,e),this.urlAfterRedirects=t,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ro=class extends dn{urlAfterRedirects;state;type=ki.GuardsCheckStart;constructor(a,e,t,n){super(a,e),this.urlAfterRedirects=t,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ko=class extends dn{urlAfterRedirects;state;shouldActivate;type=ki.GuardsCheckEnd;constructor(a,e,t,n,o){super(a,e),this.urlAfterRedirects=t,this.state=n,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},xo=class extends dn{urlAfterRedirects;state;type=ki.ResolveStart;constructor(a,e,t,n){super(a,e),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Mo=class extends dn{urlAfterRedirects;state;type=ki.ResolveEnd;constructor(a,e,t,n){super(a,e),this.urlAfterRedirects=t,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oo=class{route;type=ki.RouteConfigLoadStart;constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},No=class{route;type=ki.RouteConfigLoadEnd;constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Bo=class{snapshot;type=ki.ChildActivationStart;constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vo=class{snapshot;type=ki.ChildActivationEnd;constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jo=class{snapshot;type=ki.ActivationStart;constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ho=class{snapshot;type=ki.ActivationEnd;constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var ca=class{},lr=class{url;navigationBehaviorOptions;constructor(a,e){this.url=a,this.navigationBehaviorOptions=e}};function py(s){return!(s instanceof ca)&&!(s instanceof lr)}function fy(s,a){return s.providers&&!s._injector&&(s._injector=gc(s.providers,a,`Route: ${s.path}`)),s._injector??a}function Fn(s){return s.outlet||jt}function gy(s,a){let e=s.filter(t=>Fn(t)===a);return e.push(...s.filter(t=>Fn(t)!==a)),e}function ya(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let a=s.parent;a;a=a.parent){let e=a.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var qo=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ya(this.route?.snapshot)??this.rootInjector}constructor(a){this.rootInjector=a,this.children=new ur(this.rootInjector)}},ur=(()=>{class s{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new qo(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||s)(Ft(ln))};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),zo=class{_root;constructor(a){this._root=a}get root(){return this._root.value}parent(a){let e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){let e=zc(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){let e=zc(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){let e=Gc(a,this._root);return e.length<2?[]:e[e.length-2].children.map(n=>n.value).filter(n=>n!==a)}pathFromRoot(a){return Gc(a,this._root).map(e=>e.value)}};function zc(s,a){if(s===a.value)return a;for(let e of a.children){let t=zc(s,e);if(t)return t}return null}function Gc(s,a){if(s===a.value)return[a];for(let e of a.children){let t=Gc(s,e);if(t.length)return t.unshift(a),t}return[]}var cn=class{value;children;constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}};function nr(s){let a={};return s&&s.children.forEach(e=>a[e.value.outlet]=e),a}var da=class extends zo{snapshot;constructor(a,e){super(a),this.snapshot=e,Zc(this,a)}toString(){return this.snapshot.toString()}};function sp(s){let a=my(s),e=new zi([new ds("",{})]),t=new zi({}),n=new zi({}),o=new zi({}),c=new zi(""),p=new Bn(e,t,o,c,n,jt,s,a.root);return p.snapshot=a.root,new da(new cn(p,[]),a)}function my(s){let a={},e={},t={},n="",o=new xs([],a,t,n,e,jt,s,null,{});return new ua("",new cn(o,[]))}var Bn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(a,e,t,n,o,c,p,v){this.urlSubject=a,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=n,this.dataSubject=o,this.outlet=c,this.component=p,this._futureSnapshot=v,this.title=this.dataSubject?.pipe(Ut(A=>A[ga]))??gt(void 0),this.url=a,this.params=e,this.queryParams=t,this.fragment=n,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(Ut(a=>Ms(a))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(Ut(a=>Ms(a))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Go(s,a,e="emptyOnly"){let t,{routeConfig:n}=s;return a!==null&&(e==="always"||n?.path===""||!a.component&&!a.routeConfig?.loadComponent)?t={params:Fe(Fe({},a.params),s.params),data:Fe(Fe({},a.data),s.data),resolve:Fe(Fe(Fe(Fe({},s.data),a.data),n?.data),s._resolvedData)}:t={params:Fe({},s.params),data:Fe({},s.data),resolve:Fe(Fe({},s.data),s._resolvedData??{})},n&&ap(n)&&(t.resolve[ga]=n.title),t}var xs=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ga]}constructor(a,e,t,n,o,c,p,v,A){this.url=a,this.params=e,this.queryParams=t,this.fragment=n,this.data=o,this.outlet=c,this.component=p,this.routeConfig=v,this._resolve=A}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Ms(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ms(this.queryParams),this._queryParamMap}toString(){let a=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${a}', path:'${e}')`}},ua=class extends zo{url;constructor(a,e){super(e),this.url=a,Zc(this,e)}toString(){return rp(this._root)}};function Zc(s,a){a.value._routerState=s,a.children.forEach(e=>Zc(s,e))}function rp(s){let a=s.children.length>0?` { ${s.children.map(rp).join(", ")} } `:"";return`${s.value}${a}`}function Oc(s){if(s.snapshot){let a=s.snapshot,e=s._futureSnapshot;s.snapshot=e,Mn(a.queryParams,e.queryParams)||s.queryParamsSubject.next(e.queryParams),a.fragment!==e.fragment&&s.fragmentSubject.next(e.fragment),Mn(a.params,e.params)||s.paramsSubject.next(e.params),q0(a.url,e.url)||s.urlSubject.next(e.url),Mn(a.data,e.data)||s.dataSubject.next(e.data)}else s.snapshot=s._futureSnapshot,s.dataSubject.next(s._futureSnapshot.data)}function Wc(s,a){let e=Mn(s.params,a.params)&&X0(s.url,a.url),t=!s.parent!=!a.parent;return e&&!t&&(!s.parent||Wc(s.parent,a.parent))}function ap(s){return typeof s.title=="string"||s.title===null}var op=new Ge(""),va=(()=>{class s{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=jt;activateEvents=new hi;deactivateEvents=new hi;attachEvents=new hi;detachEvents=new hi;routerOutletData=Zu(void 0);parentContexts=ie(ur);location=ie($i);changeDetector=ie(gi);inputBinder=ie(Yo,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:n}=e.name;if(t)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new ti(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new ti(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new ti(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new ti(4013,!1);this._activatedRoute=e;let n=this.location,c=e.snapshot.component,p=this.parentContexts.getOrCreateContext(this.name).children,v=new Xc(e,p,n.injector,this.routerOutletData);this.activated=n.createComponent(c,{index:n.length,injector:v,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Sn]})}return s})(),Xc=class{route;childContexts;parent;outletData;constructor(a,e,t,n){this.route=a,this.childContexts=e,this.parent=t,this.outletData=n}get(a,e){return a===Bn?this.route:a===ur?this.childContexts:a===op?this.outletData:this.parent.get(a,e)}},Yo=new Ge("");var ed=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,n){t&1&&Oe(0,"router-outlet")},dependencies:[va],encapsulation:2})}return s})();function td(s){let a=s.children&&s.children.map(td),e=a?Yt(Fe({},s),{children:a}):Fe({},s);return!e.component&&!e.loadComponent&&(a||e.loadChildren)&&e.outlet&&e.outlet!==jt&&(e.component=ed),e}function yy(s,a,e){let t=ha(s,a._root,e?e._root:void 0);return new da(t,a)}function ha(s,a,e){if(e&&s.shouldReuseRoute(a.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=a.value;let n=vy(s,a,e);return new cn(t,n)}else{if(s.shouldAttach(a.value)){let o=s.retrieve(a.value);if(o!==null){let c=o.route;return c.value._futureSnapshot=a.value,c.children=a.children.map(p=>ha(s,p)),c}}let t=_y(a.value),n=a.children.map(o=>ha(s,o));return new cn(t,n)}}function vy(s,a,e){return a.children.map(t=>{for(let n of e.children)if(s.shouldReuseRoute(t.value,n.value.snapshot))return ha(s,t,n);return ha(s,t)})}function _y(s){return new Bn(new zi(s.url),new zi(s.params),new zi(s.queryParams),new zi(s.fragment),new zi(s.data),s.outlet,s.component,s)}var cr=class{redirectTo;navigationBehaviorOptions;constructor(a,e){this.redirectTo=a,this.navigationBehaviorOptions=e}},lp="ngNavigationCancelingError";function Wo(s,a){let{redirectTo:e,navigationBehaviorOptions:t}=ar(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a,n=cp(!1,Qi.Redirect);return n.url=e,n.navigationBehaviorOptions=t,n}function cp(s,a){let e=new Error(`NavigationCancelingError: ${s||""}`);return e[lp]=!0,e.cancellationCode=a,e}function by(s){return dp(s)&&ar(s.url)}function dp(s){return!!s&&s[lp]}var Ey=(s,a,e,t)=>Ut(n=>(new $c(a,n.targetRouterState,n.currentRouterState,e,t).activate(s),n)),$c=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(a,e,t,n,o){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=n,this.inputBindingEnabled=o}activate(a){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Oc(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){let n=nr(e);a.children.forEach(o=>{let c=o.value.outlet;this.deactivateRoutes(o,n[c],t),delete n[c]}),Object.values(n).forEach(o=>{this.deactivateRouteAndItsChildren(o,t)})}deactivateRoutes(a,e,t){let n=a.value,o=e?e.value:null;if(n===o)if(n.component){let c=t.getContext(n.outlet);c&&this.deactivateChildRoutes(a,e,c.children)}else this.deactivateChildRoutes(a,e,t);else o&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){let t=e.getContext(a.value.outlet),n=t&&a.value.component?t.children:e,o=nr(a);for(let c of Object.values(o))this.deactivateRouteAndItsChildren(c,n);if(t&&t.outlet){let c=t.outlet.detach(),p=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:c,route:a,contexts:p})}}deactivateRouteAndOutlet(a,e){let t=e.getContext(a.value.outlet),n=t&&a.value.component?t.children:e,o=nr(a);for(let c of Object.values(o))this.deactivateRouteAndItsChildren(c,n);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(a,e,t){let n=nr(e);a.children.forEach(o=>{this.activateRoutes(o,n[o.value.outlet],t),this.forwardEvent(new Ho(o.value.snapshot))}),a.children.length&&this.forwardEvent(new Vo(a.value.snapshot))}activateRoutes(a,e,t){let n=a.value,o=e?e.value:null;if(Oc(n),n===o)if(n.component){let c=t.getOrCreateContext(n.outlet);this.activateChildRoutes(a,e,c.children)}else this.activateChildRoutes(a,e,t);else if(n.component){let c=t.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let p=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),c.children.onOutletReAttached(p.contexts),c.attachRef=p.componentRef,c.route=p.route.value,c.outlet&&c.outlet.attach(p.componentRef,p.route.value),Oc(p.route.value),this.activateChildRoutes(a,null,c.children)}else c.attachRef=null,c.route=n,c.outlet&&c.outlet.activateWith(n,c.injector),this.activateChildRoutes(a,null,c.children)}else this.activateChildRoutes(a,null,t)}},Xo=class{path;route;constructor(a){this.path=a,this.route=this.path[this.path.length-1]}},rr=class{component;route;constructor(a,e){this.component=a,this.route=e}};function Cy(s,a,e){let t=s._root,n=a?a._root:null;return ia(t,n,e,[t.value])}function Ay(s){let a=s.routeConfig?s.routeConfig.canActivateChild:null;return!a||a.length===0?null:{node:s,guards:a}}function hr(s,a){let e=Symbol(),t=a.get(s,e);return t===e?typeof s=="function"&&!Iu(s)?s:a.get(s):t}function ia(s,a,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=nr(a);return s.children.forEach(c=>{wy(c,o[c.value.outlet],e,t.concat([c.value]),n),delete o[c.value.outlet]}),Object.entries(o).forEach(([c,p])=>ra(p,e.getContext(c),n)),n}function wy(s,a,e,t,n={canDeactivateChecks:[],canActivateChecks:[]}){let o=s.value,c=a?a.value:null,p=e?e.getContext(s.value.outlet):null;if(c&&o.routeConfig===c.routeConfig){let v=Sy(c,o,o.routeConfig.runGuardsAndResolvers);v?n.canActivateChecks.push(new Xo(t)):(o.data=c.data,o._resolvedData=c._resolvedData),o.component?ia(s,a,p?p.children:null,t,n):ia(s,a,e,t,n),v&&p&&p.outlet&&p.outlet.isActivated&&n.canDeactivateChecks.push(new rr(p.outlet.component,c))}else c&&ra(a,p,n),n.canActivateChecks.push(new Xo(t)),o.component?ia(s,null,p?p.children:null,t,n):ia(s,null,e,t,n);return n}function Sy(s,a,e){if(typeof e=="function")return e(s,a);switch(e){case"pathParamsChange":return!ks(s.url,a.url);case"pathParamsOrQueryParamsChange":return!ks(s.url,a.url)||!Mn(s.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wc(s,a)||!Mn(s.queryParams,a.queryParams);case"paramsChange":default:return!Wc(s,a)}}function ra(s,a,e){let t=nr(s),n=s.value;Object.entries(t).forEach(([o,c])=>{n.component?a?ra(c,a.children.getContext(o),e):ra(c,null,e):ra(c,a,e)}),n.component?a&&a.outlet&&a.outlet.isActivated?e.canDeactivateChecks.push(new rr(a.outlet.component,n)):e.canDeactivateChecks.push(new rr(null,n)):e.canDeactivateChecks.push(new rr(null,n))}function _a(s){return typeof s=="function"}function Ty(s){return typeof s=="boolean"}function Fy(s){return s&&_a(s.canLoad)}function Dy(s){return s&&_a(s.canActivate)}function Uy(s){return s&&_a(s.canActivateChild)}function Py(s){return s&&_a(s.canDeactivate)}function Iy(s){return s&&_a(s.canMatch)}function up(s){return s instanceof Fu||s?.name==="EmptyError"}var Fo=Symbol("INITIAL_VALUE");function dr(){return bi(s=>Cs(s.map(a=>a.pipe(yn(1),Gn(Fo)))).pipe(Ut(a=>{for(let e of a)if(e!==!0){if(e===Fo)return Fo;if(e===!1||Ly(e))return e}return!0}),Vi(a=>a!==Fo),yn(1)))}function Ly(s){return ar(s)||s instanceof cr}function Ry(s,a){return mn(e=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:o,canDeactivateChecks:c}}=e;return c.length===0&&o.length===0?gt(Yt(Fe({},e),{guardsResult:!0})):ky(c,t,n,s).pipe(mn(p=>p&&Ty(p)?xy(t,o,s,a):gt(p)),Ut(p=>Yt(Fe({},e),{guardsResult:p})))})}function ky(s,a,e,t){return Li(s).pipe(mn(n=>Vy(n.component,n.route,e,a,t)),as(n=>n!==!0,!0))}function xy(s,a,e,t){return Li(a).pipe(ws(n=>Ja(Oy(n.route.parent,t),My(n.route,t),By(s,n.path,e),Ny(s,n.route,e))),as(n=>n!==!0,!0))}function My(s,a){return s!==null&&a&&a(new jo(s)),gt(!0)}function Oy(s,a){return s!==null&&a&&a(new Bo(s)),gt(!0)}function Ny(s,a,e){let t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||t.length===0)return gt(!0);let n=t.map(o=>Za(()=>{let c=ya(a)??e,p=hr(o,c),v=Dy(p)?p.canActivate(a,s):wn(c,()=>p(a,s));return Jn(v).pipe(as())}));return gt(n).pipe(dr())}function By(s,a,e){let t=a[a.length-1],o=a.slice(0,a.length-1).reverse().map(c=>Ay(c)).filter(c=>c!==null).map(c=>Za(()=>{let p=c.guards.map(v=>{let A=ya(c.node)??e,_=hr(v,A),m=Uy(_)?_.canActivateChild(t,s):wn(A,()=>_(t,s));return Jn(m).pipe(as())});return gt(p).pipe(dr())}));return gt(o).pipe(dr())}function Vy(s,a,e,t,n){let o=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!o||o.length===0)return gt(!0);let c=o.map(p=>{let v=ya(a)??n,A=hr(p,v),_=Py(A)?A.canDeactivate(s,a,e,t):wn(v,()=>A(s,a,e,t));return Jn(_).pipe(as())});return gt(c).pipe(dr())}function jy(s,a,e,t){let n=a.canLoad;if(n===void 0||n.length===0)return gt(!0);let o=n.map(c=>{let p=hr(c,s),v=Fy(p)?p.canLoad(a,e):wn(s,()=>p(a,e));return Jn(v)});return gt(o).pipe(dr(),hp(t))}function hp(s){return Tu(wi(a=>{if(typeof a!="boolean")throw Wo(s,a)}),Ut(a=>a===!0))}function Hy(s,a,e,t){let n=a.canMatch;if(!n||n.length===0)return gt(!0);let o=n.map(c=>{let p=hr(c,s),v=Iy(p)?p.canMatch(a,e):wn(s,()=>p(a,e));return Jn(v)});return gt(o).pipe(dr(),hp(t))}var pa=class{segmentGroup;constructor(a){this.segmentGroup=a||null}},fa=class extends Error{urlTree;constructor(a){super(),this.urlTree=a}};function ir(s){return xr(new pa(s))}function qy(s){return xr(new ti(4e3,!1))}function zy(s){return xr(cp(!1,Qi.GuardRejected))}var Yc=class{urlSerializer;urlTree;constructor(a,e){this.urlSerializer=a,this.urlTree=e}lineralizeSegments(a,e){let t=[],n=e.root;for(;;){if(t=t.concat(n.segments),n.numberOfChildren===0)return gt(t);if(n.numberOfChildren>1||!n.children[jt])return qy(`${a.redirectTo}`);n=n.children[jt]}}applyRedirectCommands(a,e,t,n,o){return Gy(e,n,o).pipe(Ut(c=>{if(c instanceof Nn)throw new fa(c);let p=this.applyRedirectCreateUrlTree(c,this.urlSerializer.parse(c),a,t);if(c[0]==="/")throw new fa(p);return p}))}applyRedirectCreateUrlTree(a,e,t,n){let o=this.createSegmentGroup(a,e.root,t,n);return new Nn(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){let t={};return Object.entries(a).forEach(([n,o])=>{if(typeof o=="string"&&o[0]===":"){let p=o.substring(1);t[n]=e[p]}else t[n]=o}),t}createSegmentGroup(a,e,t,n){let o=this.createSegments(a,e.segments,t,n),c={};return Object.entries(e.children).forEach(([p,v])=>{c[p]=this.createSegmentGroup(a,v,t,n)}),new si(o,c)}createSegments(a,e,t,n){return e.map(o=>o.path[0]===":"?this.findPosParam(a,o,n):this.findOrReturn(o,t))}findPosParam(a,e,t){let n=t[e.path.substring(1)];if(!n)throw new ti(4001,!1);return n}findOrReturn(a,e){let t=0;for(let n of e){if(n.path===a.path)return e.splice(t),n;t++}return a}};function Gy(s,a,e){if(typeof s=="string")return gt(s);let t=s,{queryParams:n,fragment:o,routeConfig:c,url:p,outlet:v,params:A,data:_,title:m}=a;return Jn(wn(e,()=>t({params:A,data:_,queryParams:n,fragment:o,routeConfig:c,url:p,outlet:v,title:m})))}var Kc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Wy(s,a,e,t,n){let o=pp(s,a,e);return o.matched?(t=fy(a,t),Hy(t,a,e,n).pipe(Ut(c=>c===!0?o:Fe({},Kc)))):gt(o)}function pp(s,a,e){if(a.path==="**")return Xy(e);if(a.path==="")return a.pathMatch==="full"&&(s.hasChildren()||e.length>0)?Fe({},Kc):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let n=(a.matcher||Hh)(e,s,a);if(!n)return Fe({},Kc);let o={};Object.entries(n.posParams??{}).forEach(([p,v])=>{o[p]=v.path});let c=n.consumed.length>0?Fe(Fe({},o),n.consumed[n.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:n.consumed,remainingSegments:e.slice(n.consumed.length),parameters:c,positionalParamSegments:n.posParams??{}}}function Xy(s){return{matched:!0,parameters:s.length>0?zh(s).parameters:{},consumedSegments:s,remainingSegments:[],positionalParamSegments:{}}}function Bh(s,a,e,t){return e.length>0&&Ky(s,e,t)?{segmentGroup:new si(a,Yy(t,new si(e,s.children))),slicedSegments:[]}:e.length===0&&Qy(s,e,t)?{segmentGroup:new si(s.segments,$y(s,e,t,s.children)),slicedSegments:e}:{segmentGroup:new si(s.segments,s.children),slicedSegments:e}}function $y(s,a,e,t){let n={};for(let o of e)if(Ko(s,a,o)&&!t[Fn(o)]){let c=new si([],{});n[Fn(o)]=c}return Fe(Fe({},t),n)}function Yy(s,a){let e={};e[jt]=a;for(let t of s)if(t.path===""&&Fn(t)!==jt){let n=new si([],{});e[Fn(t)]=n}return e}function Ky(s,a,e){return e.some(t=>Ko(s,a,t)&&Fn(t)!==jt)}function Qy(s,a,e){return e.some(t=>Ko(s,a,t))}function Ko(s,a,e){return(s.hasChildren()||a.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Jy(s,a,e){return a.length===0&&!s.children[e]}var Qc=class{};function Zy(s,a,e,t,n,o,c="emptyOnly"){return new Jc(s,a,e,t,n,c,o).recognize()}var ev=31,Jc=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(a,e,t,n,o,c,p){this.injector=a,this.configLoader=e,this.rootComponentType=t,this.config=n,this.urlTree=o,this.paramsInheritanceStrategy=c,this.urlSerializer=p,this.applyRedirects=new Yc(this.urlSerializer,this.urlTree)}noMatchError(a){return new ti(4002,`'${a.segmentGroup}'`)}recognize(){let a=Bh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(a).pipe(Ut(({children:e,rootSnapshot:t})=>{let n=new cn(t,e),o=new ua("",n),c=Zh(t,[],this.urlTree.queryParams,this.urlTree.fragment);return c.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(c),{state:o,tree:c}}))}match(a){let e=new xs([],Object.freeze({}),Object.freeze(Fe({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),jt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,a,jt,e).pipe(Ut(t=>({children:t,rootSnapshot:e})),rs(t=>{if(t instanceof fa)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof pa?this.noMatchError(t):t}))}processSegmentGroup(a,e,t,n,o){return t.segments.length===0&&t.hasChildren()?this.processChildren(a,e,t,o):this.processSegment(a,e,t,t.segments,n,!0,o).pipe(Ut(c=>c instanceof cn?[c]:[]))}processChildren(a,e,t,n){let o=[];for(let c of Object.keys(t.children))c==="primary"?o.unshift(c):o.push(c);return Li(o).pipe(ws(c=>{let p=t.children[c],v=gy(e,c);return this.processSegmentGroup(a,v,p,c,n)}),Pu((c,p)=>(c.push(...p),c)),ac(null),Du(),mn(c=>{if(c===null)return ir(t);let p=fp(c);return iv(p),gt(p)}))}processSegment(a,e,t,n,o,c,p){return Li(e).pipe(ws(v=>this.processSegmentAgainstRoute(v._injector??a,e,v,t,n,o,c,p).pipe(rs(A=>{if(A instanceof pa)return gt(null);throw A}))),as(v=>!!v),rs(v=>{if(up(v))return Jy(t,n,o)?gt(new Qc):ir(t);throw v}))}processSegmentAgainstRoute(a,e,t,n,o,c,p,v){return Fn(t)!==c&&(c===jt||!Ko(n,o,t))?ir(n):t.redirectTo===void 0?this.matchSegmentAgainstRoute(a,n,t,o,c,v):this.allowRedirects&&p?this.expandSegmentAgainstRouteUsingRedirect(a,n,e,t,o,c,v):ir(n)}expandSegmentAgainstRouteUsingRedirect(a,e,t,n,o,c,p){let{matched:v,parameters:A,consumedSegments:_,positionalParamSegments:m,remainingSegments:y}=pp(e,n,o);if(!v)return ir(e);typeof n.redirectTo=="string"&&n.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ev&&(this.allowRedirects=!1));let C=new xs(o,A,Object.freeze(Fe({},this.urlTree.queryParams)),this.urlTree.fragment,Vh(n),Fn(n),n.component??n._loadedComponent??null,n,jh(n)),T=Go(C,p,this.paramsInheritanceStrategy);return C.params=Object.freeze(T.params),C.data=Object.freeze(T.data),this.applyRedirects.applyRedirectCommands(_,n.redirectTo,m,C,a).pipe(bi(G=>this.applyRedirects.lineralizeSegments(n,G)),mn(G=>this.processSegment(a,t,e,G.concat(y),c,!1,p)))}matchSegmentAgainstRoute(a,e,t,n,o,c){let p=Wy(e,t,n,a,this.urlSerializer);return t.path==="**"&&(e.children={}),p.pipe(bi(v=>v.matched?(a=t._injector??a,this.getChildConfig(a,t,n).pipe(bi(({routes:A})=>{let _=t._loadedInjector??a,{parameters:m,consumedSegments:y,remainingSegments:C}=v,T=new xs(y,m,Object.freeze(Fe({},this.urlTree.queryParams)),this.urlTree.fragment,Vh(t),Fn(t),t.component??t._loadedComponent??null,t,jh(t)),U=Go(T,c,this.paramsInheritanceStrategy);T.params=Object.freeze(U.params),T.data=Object.freeze(U.data);let{segmentGroup:G,slicedSegments:M}=Bh(e,y,C,A);if(M.length===0&&G.hasChildren())return this.processChildren(_,A,G,T).pipe(Ut(D=>new cn(T,D)));if(A.length===0&&M.length===0)return gt(new cn(T,[]));let S=Fn(t)===o;return this.processSegment(_,A,G,M,S?jt:o,!0,T).pipe(Ut(D=>new cn(T,D instanceof cn?[D]:[])))}))):ir(e)))}getChildConfig(a,e,t){return e.children?gt({routes:e.children,injector:a}):e.loadChildren?e._loadedRoutes!==void 0?gt({routes:e._loadedRoutes,injector:e._loadedInjector}):jy(a,e,t,this.urlSerializer).pipe(mn(n=>n?this.configLoader.loadChildren(a,e).pipe(wi(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):zy(e))):gt({routes:[],injector:a})}};function iv(s){s.sort((a,e)=>a.value.outlet===jt?-1:e.value.outlet===jt?1:a.value.outlet.localeCompare(e.value.outlet))}function nv(s){let a=s.value.routeConfig;return a&&a.path===""}function fp(s){let a=[],e=new Set;for(let t of s){if(!nv(t)){a.push(t);continue}let n=a.find(o=>t.value.routeConfig===o.value.routeConfig);n!==void 0?(n.children.push(...t.children),e.add(n)):a.push(t)}for(let t of e){let n=fp(t.children);a.push(new cn(t.value,n))}return a.filter(t=>!e.has(t))}function Vh(s){return s.data||{}}function jh(s){return s.resolve||{}}function sv(s,a,e,t,n,o){return mn(c=>Zy(s,a,e,t,c.extractedUrl,n,o).pipe(Ut(({state:p,tree:v})=>Yt(Fe({},c),{targetSnapshot:p,urlAfterRedirects:v}))))}function rv(s,a){return mn(e=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=e;if(!n.length)return gt(e);let o=new Set(n.map(v=>v.route)),c=new Set;for(let v of o)if(!c.has(v))for(let A of gp(v))c.add(A);let p=0;return Li(c).pipe(ws(v=>o.has(v)?av(v,t,s,a):(v.data=Go(v,v.parent,s).resolve,gt(void 0))),wi(()=>p++),lc(1),mn(v=>p===c.size?gt(e):An))})}function gp(s){let a=s.children.map(e=>gp(e)).flat();return[s,...a]}function av(s,a,e,t){let n=s.routeConfig,o=s._resolve;return n?.title!==void 0&&!ap(n)&&(o[ga]=n.title),Za(()=>(s.data=Go(s,s.parent,e).resolve,ov(o,s,a,t).pipe(Ut(c=>(s._resolvedData=c,s.data=Fe(Fe({},s.data),c),null)))))}function ov(s,a,e,t){let n=Vc(s);if(n.length===0)return gt({});let o={};return Li(n).pipe(mn(c=>lv(s[c],a,e,t).pipe(as(),wi(p=>{if(p instanceof cr)throw Wo(new Os,p);o[c]=p}))),lc(1),Ut(()=>o),rs(c=>up(c)?An:xr(c)))}function lv(s,a,e,t){let n=ya(a)??t,o=hr(s,n),c=o.resolve?o.resolve(a,e):wn(n,()=>o(a,e));return Jn(c)}function Nc(s){return bi(a=>{let e=s(a);return e?Li(e).pipe(Ut(()=>a)):gt(a)})}var id=(()=>{class s{buildTitle(e){let t,n=e.root;for(;n!==void 0;)t=this.getResolvedTitleForRoute(n)??t,n=n.children.find(o=>o.outlet===jt);return t}getResolvedTitleForRoute(e){return e.data[ga]}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:()=>ie(mp),providedIn:"root"})}return s})(),mp=(()=>{class s extends id{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||s)(Ft(kh))};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),ba=new Ge("",{providedIn:"root",factory:()=>({})}),Ea=new Ge(""),yp=(()=>{class s{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=ie(Ku);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return gt(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=Jn(e.loadComponent()).pipe(Ut(_p),wi(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),Ys(()=>{this.componentLoaders.delete(e)})),n=new nc(t,()=>new St).pipe(ic());return this.componentLoaders.set(e,n),n}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return gt({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let o=vp(t,this.compiler,e,this.onLoadEndListener).pipe(Ys(()=>{this.childrenLoaders.delete(t)})),c=new nc(o,()=>new St).pipe(ic());return this.childrenLoaders.set(t,c),c}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function vp(s,a,e,t){return Jn(s.loadChildren()).pipe(Ut(_p),mn(n=>n instanceof Vu||Array.isArray(n)?gt(n):Li(a.compileModuleAsync(n))),Ut(n=>{t&&t(s);let o,c,p=!1;return Array.isArray(n)?(c=n,p=!0):(o=n.create(e).injector,c=o.get(Ea,[],{optional:!0,self:!0}).flat()),{routes:c.map(td),injector:o}}))}function cv(s){return s&&typeof s=="object"&&"default"in s}function _p(s){return cv(s)?s.default:s}var Qo=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:()=>ie(dv),providedIn:"root"})}return s})(),dv=(()=>{class s{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),bp=new Ge("");var Ep=new Ge(""),Cp=(()=>{class s{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new St;transitionAbortWithErrorSubject=new St;configLoader=ie(yp);environmentInjector=ie(ln);destroyRef=ie(Ss);urlSerializer=ie(ma);rootContexts=ie(ur);location=ie(ls);inputBindingEnabled=ie(Yo,{optional:!0})!==null;titleStrategy=ie(id);options=ie(ba,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=ie(Qo);createViewTransition=ie(bp,{optional:!0});navigationErrorHandler=ie(Ep,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>gt(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=n=>this.events.next(new Oo(n)),t=n=>this.events.next(new No(n));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(Yt(Fe({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:t}))}setupNavigations(e){return this.transitions=new zi(null),this.transitions.pipe(Vi(t=>t!==null),bi(t=>{let n=!1;return gt(t).pipe(bi(o=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",Qi.SupersededByNewNavigation),An;this.currentTransition=t,this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Yt(Fe({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()};let c=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!c&&p!=="reload"){let v="";return this.events.next(new Qn(o.id,this.urlSerializer.serialize(o.rawUrl),v,oa.IgnoredSameUrlNavigation)),o.resolve(!1),An}if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return gt(o).pipe(bi(v=>(this.events.next(new Ns(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),v.id!==this.navigationId?An:Promise.resolve(v))),sv(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),wi(v=>{t.targetSnapshot=v.targetSnapshot,t.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=Yt(Fe({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let A=new la(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(A)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:v,extractedUrl:A,source:_,restoredState:m,extras:y}=o,C=new Ns(v,this.urlSerializer.serialize(A),_,m);this.events.next(C);let T=sp(this.rootComponentType).snapshot;return this.currentTransition=t=Yt(Fe({},o),{targetSnapshot:T,urlAfterRedirects:A,extras:Yt(Fe({},y),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=A,gt(t)}else{let v="";return this.events.next(new Qn(o.id,this.urlSerializer.serialize(o.extractedUrl),v,oa.IgnoredByUrlHandlingStrategy)),o.resolve(!1),An}}),wi(o=>{let c=new Ro(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(c)}),Ut(o=>(this.currentTransition=t=Yt(Fe({},o),{guards:Cy(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),t)),Ry(this.environmentInjector,o=>this.events.next(o)),wi(o=>{if(t.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Wo(this.urlSerializer,o.guardsResult);let c=new ko(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(c)}),Vi(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",Qi.GuardRejected),!1)),Nc(o=>{if(o.guards.canActivateChecks.length!==0)return gt(o).pipe(wi(c=>{let p=new xo(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p)}),bi(c=>{let p=!1;return gt(c).pipe(rv(this.paramsInheritanceStrategy,this.environmentInjector),wi({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(c,"",Qi.NoDataFromResolver)}}))}),wi(c=>{let p=new Mo(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(p)}))}),Nc(o=>{let c=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(wi(A=>{p.component=A}),Ut(()=>{})));for(let A of p.children)v.push(...c(A));return v};return Cs(c(o.targetSnapshot.root)).pipe(ac(null),yn(1))}),Nc(()=>this.afterPreactivation()),bi(()=>{let{currentSnapshot:o,targetSnapshot:c}=t,p=this.createViewTransition?.(this.environmentInjector,o.root,c.root);return p?Li(p).pipe(Ut(()=>t)):gt(t)}),Ut(o=>{let c=yy(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=t=Yt(Fe({},o),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,t}),wi(()=>{this.events.next(new ca)}),Ey(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),yn(1),Ei(new Rn(o=>{let c=t.abortController.signal,p=()=>o.next();return c.addEventListener("abort",p),()=>c.removeEventListener("abort",p)}).pipe(Vi(()=>!n&&!t.targetRouterState),wi(()=>{this.cancelNavigationTransition(t,t.abortController.signal.reason+"",Qi.Aborted)}))),wi({next:o=>{n=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Kn(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{n=!0}}),Ei(this.transitionAbortWithErrorSubject.pipe(wi(o=>{throw o}))),Ys(()=>{n||this.cancelNavigationTransition(t,"",Qi.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation=null,this.currentTransition=null)}),rs(o=>{if(this.destroyed)return t.resolve(!1),An;if(n=!0,dp(o))this.events.next(new On(t.id,this.urlSerializer.serialize(t.extractedUrl),o.message,o.cancellationCode)),by(o)?this.events.next(new lr(o.url,o.navigationBehaviorOptions)):t.resolve(!1);else{let c=new or(t.id,this.urlSerializer.serialize(t.extractedUrl),o,t.targetSnapshot??void 0);try{let p=wn(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(p instanceof cr){let{message:v,cancellationCode:A}=Wo(this.urlSerializer,p);this.events.next(new On(t.id,this.urlSerializer.serialize(t.extractedUrl),v,A)),this.events.next(new lr(p.redirectTo,p.navigationBehaviorOptions))}else throw this.events.next(c),o}catch(p){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(p)}}return An}))}))}cancelNavigationTransition(e,t,n){let o=new On(e.id,this.urlSerializer.serialize(e.extractedUrl),t,n);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function uv(s){return s!==sa}var Ap=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:()=>ie(hv),providedIn:"root"})}return s})(),$o=class{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}},hv=(()=>{class s extends $o{static \u0275fac=(()=>{let e;return function(n){return(e||(e=kn(s)))(n||s)}})();static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),wp=(()=>{class s{urlSerializer=ie(ma);options=ie(ba,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=ie(ls);urlHandlingStrategy=ie(Qo);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Nn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:t,targetBrowserUrl:n}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,t):t,c=n??o;return c instanceof Nn?this.urlSerializer.serialize(c):c}commitTransition({targetRouterState:e,finalUrl:t,initialUrl:n}){t&&e?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,n),this.routerState=e):this.rawUrlTree=n}routerState=sp(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:()=>ie(pv),providedIn:"root"})}return s})(),pv=(()=>{class s extends wp{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{e(t.url,t.state,"popstate")})})}handleRouterEvent(e,t){e instanceof Ns?this.updateStateMemento():e instanceof Qn?this.commitTransition(t):e instanceof la?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof ca?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof On&&e.code!==Qi.SupersededByNewNavigation&&e.code!==Qi.Redirect?this.restoreHistory(t):e instanceof or?this.restoreHistory(t,!0):e instanceof Kn&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:t,id:n}){let{replaceUrl:o,state:c}=t;if(this.location.isCurrentPathEqualTo(e)||o){let p=this.browserPageId,v=Fe(Fe({},c),this.generateNgRouterState(n,p));this.location.replaceState(e,"",v)}else{let p=Fe(Fe({},c),this.generateNgRouterState(n,this.browserPageId+1));this.location.go(e,"",p)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,o=this.currentPageId-n;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=kn(s)))(n||s)}})();static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function nd(s,a){s.events.pipe(Vi(e=>e instanceof Kn||e instanceof On||e instanceof or||e instanceof Qn),Ut(e=>e instanceof Kn||e instanceof Qn?0:(e instanceof On?e.code===Qi.Redirect||e.code===Qi.SupersededByNewNavigation:!1)?2:1),Vi(e=>e!==2),yn(1)).subscribe(()=>{a()})}var fv={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gv={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Jo=(()=>{class s{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=ie(Hu);stateManager=ie(wp);options=ie(ba,{optional:!0})||{};pendingTasks=ie(xu);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=ie(Cp);urlSerializer=ie(ma);location=ie(ls);urlHandlingStrategy=ie(Qo);injector=ie(ln);_events=new St;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=ie(Ap);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=ie(Ea,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!ie(Yo,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new gn;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let n=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(n!==null&&o!==null){if(this.stateManager.handleRouterEvent(t,o),t instanceof On&&t.code!==Qi.Redirect&&t.code!==Qi.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof Kn)this.navigated=!0;else if(t instanceof lr){let c=t.navigationBehaviorOptions,p=this.urlHandlingStrategy.merge(t.url,n.currentRawUrl),v=Fe({browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||uv(n.source)},c);this.scheduleNavigation(p,sa,null,v,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}py(t)&&this._events.next(t)}catch(n){this.navigationTransitions.transitionAbortWithErrorSubject.next(n)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),sa,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t,n)=>{this.navigateToSyncWithBrowser(e,n,t)})}navigateToSyncWithBrowser(e,t,n){let o={replaceUrl:!0},c=n?.navigationId?n:null;if(n){let v=Fe({},n);delete v.navigationId,delete v.\u0275routerPageId,Object.keys(v).length!==0&&(o.state=v)}let p=this.parseUrl(e);this.scheduleNavigation(p,t,c,o).catch(v=>{this.injector.get(no)(v)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(td),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:n,queryParams:o,fragment:c,queryParamsHandling:p,preserveFragment:v}=t,A=v?this.currentUrlTree.fragment:c,_=null;switch(p??this.options.defaultQueryParamsHandling){case"merge":_=Fe(Fe({},this.currentUrlTree.queryParams),o);break;case"preserve":_=this.currentUrlTree.queryParams;break;default:_=o||null}_!==null&&(_=this.removeEmptyProps(_));let m;try{let y=n?n.snapshot:this.routerState.snapshot.root;m=ep(y)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),m=this.currentUrlTree.root}return tp(m,e,_,A??null)}navigateByUrl(e,t={skipLocationChange:!1}){let n=ar(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,sa,null,t)}navigate(e,t={skipLocationChange:!1}){return mv(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let n;if(t===!0?n=Fe({},fv):t===!1?n=Fe({},gv):n=t,ar(e))return xh(this.currentUrlTree,e,n);let o=this.parseUrl(e);return xh(this.currentUrlTree,o,n)}removeEmptyProps(e){return Object.entries(e).reduce((t,[n,o])=>(o!=null&&(t[n]=o),t),{})}scheduleNavigation(e,t,n,o,c){if(this.disposed)return Promise.resolve(!1);let p,v,A;c?(p=c.resolve,v=c.reject,A=c.promise):A=new Promise((m,y)=>{p=m,v=y});let _=this.pendingTasks.add();return nd(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(_))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:p,reject:v,promise:A,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),A.catch(m=>Promise.reject(m))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function mv(s){for(let a=0;ae.\u0275providers)])}function _v(s){return s.routerState.root}function bv(){let s=ie(Gt);return a=>{let e=s.get(Us);if(a!==e.components[0])return;let t=s.get(Jo),n=s.get(Ev);s.get(Cv)===1&&t.initialNavigation(),s.get(Av,null,{optional:!0})?.setUpPreloading(),s.get(vv,null,{optional:!0})?.init(),t.resetRootComponentType(e.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var Ev=new Ge("",{factory:()=>new St}),Cv=new Ge("",{providedIn:"root",factory:()=>1});var Av=new Ge("");var Sp=[];var Tv="@",Fv=(()=>{class s{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=ie(Gt);loadingSchedulerFn=ie(Dv,{optional:!0});_engine;constructor(e,t,n,o,c){this.doc=e,this.delegate=t,this.zone=n,this.animationType=o,this.moduleImpl=c}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-U2JOF75G.js").then(n=>n),t;return this.loadingSchedulerFn?t=this.loadingSchedulerFn(e):t=e(),t.catch(n=>{throw new ti(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:o})=>{this._engine=n(this.animationType,this.doc);let c=new o(this.delegate,this._engine,this.zone);return this.delegate=c,c})}createRenderer(e,t){let n=this.delegate.createRenderer(e,t);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let o=new rd(n);return t?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(c=>{let p=c.createRenderer(e,t);o.use(p),this.scheduler??=this.injector.get(ku,null,{optional:!0}),this.scheduler?.notify(10)}).catch(c=>{o.use(n)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(t){Bu()};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})(),rd=class{delegate;replay=[];\u0275type=1;constructor(a){this.delegate=a}use(a){if(this.delegate=a,this.replay!==null){for(let e of this.replay)e(a);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}get destroyNode(){return this.delegate.destroyNode}appendChild(a,e){this.delegate.appendChild(a,e)}insertBefore(a,e,t,n){this.delegate.insertBefore(a,e,t,n)}removeChild(a,e,t){this.delegate.removeChild(a,e,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,n){this.delegate.setAttribute(a,e,t,n)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,n){this.delegate.setStyle(a,e,t,n)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(a,e,t)),this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t,n){return this.shouldReplay(e)&&this.replay.push(o=>o.listen(a,e,t,n)),this.delegate.listen(a,e,t,n)}shouldReplay(a){return this.replay!==null&&a.startsWith(Tv)}},Dv=new Ge("");function Tp(s="animations"){return fc("NgAsyncAnimations"),on([{provide:Xi,useFactory:(a,e,t)=>new Fv(a,e,t,s),deps:[Dt,Yr,Nt]},{provide:Qs,useValue:s==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Fp=(()=>{let a=class a{constructor(){this.http=ie(tr)}getTranslation(t){return this.http.get(`/assets/i18n/${t}.json`)}};a.\u0275fac=function(n){return new(n||a)},a.\u0275prov=ze({token:a,factory:a.\u0275fac,providedIn:"root"});let s=a;return s})();function ad(s){s||(s=ie(Ss));let a=new Rn(e=>s.onDestroy(e.next.bind(e)));return e=>e.pipe(Ei(a))}function Dp(s){return s&&s.constructor&&typeof s.constructor.isBuffer=="function"&&s.constructor.isBuffer(s)}function Up(s){return s}function od(s,a){a=a||{};let e=a.delimiter||".",t=a.maxDepth,n=a.transformKey||Up,o={};function c(p,v,A){A=A||1,Object.keys(p).forEach(function(_){let m=p[_],y=a.safe&&Array.isArray(m),C=Object.prototype.toString.call(m),T=Dp(m),U=C==="[object Object]"||C==="[object Array]",G=v?v+e+n(_):n(_);if(!y&&!T&&U&&Object.keys(m).length&&(!a.maxDepth||A0&&(y=p(m.shift()),C=p(m[0]))}T[y]=ld(s[_],a)}),o}var ud=class{translations;constructor(a){this.translations=a}getTranslation(a){return gt(this.translations.get(a)||{})}},Lp=new Ge("TRANSLOCO_LOADER");function cd(s,a){return s&&(Object.prototype.hasOwnProperty.call(s,a)?s[a]:a.split(".").reduce((e,t)=>e?.[t],s))}function Uv(s,a,e){s=Fe({},s);let t=a.split("."),n=t.length-1;return t.reduce((o,c,p)=>(p===n?o[c]=e:o[c]=Array.isArray(o[c])?o[c].slice():Fe({},o[c]),o&&o[c]),s),s}function Rp(s){return s?Array.isArray(s)?s.length:yd(s)?Object.keys(s).length:s?s.length:0:0}function Pv(s){return Rp(s)===0}function Iv(s){return typeof s=="function"}function fr(s){return typeof s=="string"}function yd(s){return!!s&&typeof s=="object"&&!Array.isArray(s)}function kp(s){return s.replace(/(?:^\w|[A-Z]|\b\w)/g,(a,e)=>e==0?a.toLowerCase():a.toUpperCase()).replace(/\s+|_|-|\//g,"")}function xp(){return typeof window<"u"}function hd(s){return s==null}function Pp(s){return hd(s)===!1}function Mp(s){return s&&typeof s.scope=="string"}function Lv(s){return s&&yd(s.loader)}function Rv(s){return ld(s)}function Ip(s){return od(s,{safe:!0})}var gr=new Ge("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>pr}),pr={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,fallbackLang:[],availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"],scopes:{keepCasing:!1}};function kv(s={}){return Yt(Fe(Fe({},pr),s),{missingHandler:Fe(Fe({},pr.missingHandler),s.missingHandler),flatten:Fe(Fe({},pr.flatten),s.flatten),scopes:Fe(Fe({},pr.scopes),s.scopes)})}var Op=new Ge("TRANSLOCO_TRANSPILER"),xv=(()=>{class s{config=ie(gr,{optional:!0})??pr;get interpolationMatcher(){return Mv(this.config)}transpile({value:e,params:t={},translation:n,key:o}){if(fr(e)){let c,p=e;for(;(c=this.interpolationMatcher.exec(p))!==null;){let[v,A]=c;p=p.replace(v,()=>{let _=A.trim(),m=cd(t,_);return Pp(m)?m:Pp(n[_])?this.transpile({params:t,translation:n,key:o,value:n[_]}):""})}return p}else t&&(yd(e)?e=this.handleObject({value:e,params:t,translation:n,key:o}):Array.isArray(e)&&(e=this.handleArray({value:e,params:t,translation:n,key:o})));return e}handleObject({value:e,params:t={},translation:n,key:o}){let c=e;return Object.keys(t).forEach(p=>{let v=this.transpile({value:cd(c,p),params:cd(t,p),translation:n,key:o});c=Uv(c,p,v)}),c}handleArray(n){var o=n,{value:e}=o,t=tc(o,["value"]);return e.map(c=>this.transpile(Fe({value:c},t)))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})();function Mv(s){let[a,e]=s.interpolation;return new RegExp(`${a}([^${a}${e}]*?)${e}`,"g")}var Np=new Ge("TRANSLOCO_MISSING_HANDLER"),Ov=(()=>{class s{handle(e,t){if(t.missingHandler.logMissingKey&&!t.prodMode){let n=`Missing translation for '${e}'`;console.warn(`%c ${n}`,"font-size: 12px; color: red")}return e}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})(),Bp=new Ge("TRANSLOCO_INTERCEPTOR"),Nv=(()=>{class s{preSaveTranslation(e){return e}preSaveTranslationKey(e,t){return t}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})(),Vp=new Ge("TRANSLOCO_FALLBACK_STRATEGY"),Bv=(()=>{class s{userConfig;constructor(e){this.userConfig=e}getNextLangs(){let e=this.userConfig.fallbackLang;if(!e)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(e)?e:[e]}static \u0275fac=function(t){return new(t||s)(Ft(gr))};static \u0275prov=ze({token:s,factory:s.\u0275fac})}return s})();function Ca(s){if(!s)return"";let a=s.split("/");return a.pop(),a.join("/")}function us(s){return s?s.split("/").pop():""}function pd(s,a,e="|"){if(fr(s)){let t=s.split(e),n=t.pop();return n===a?[!0,t.toString()]:[!1,n]}return[!1,""]}function Vv(s,a){let[e]=pd(a,"static");return e?!1:!!s.config.reRenderOnLangChange}function jv(s){return s?a=>a:yn(1)}function Hv(s,a){return Object.keys(s).reduce((e,t)=>(e[`${a}/${t}`]=s[t],e),{})}function jp(s,a){return Lv(s)?Hv(s.loader,a):void 0}function dd(s){return{scope:Ca(s)||null,langName:us(s)}}function Hp(s){let{path:a,inlineLoader:e,mainLoader:t,data:n}=s;if(e){let o=e[a];if(Iv(o)===!1)throw`You're using an inline loader but didn't provide a loader for ${a}`;return e[a]().then(c=>c.default?c.default:c)}return t.getTranslation(a,n)}function qv({mainLoader:s,path:a,data:e,fallbackPath:t,inlineLoader:n}){return(t?[a,t]:[a]).map(c=>{let p=Hp({path:c,mainLoader:s,inlineLoader:n,data:e});return Li(p).pipe(Ut(v=>({translation:v,lang:c})))})}var zv;var vd=(()=>{class s{loader;parser;missingHandler;interceptor;fallbackStrategy;langChanges$;translations=new Map;cache=new Map;firstFallbackLang;defaultLang="";availableLangs=[];isResolvedMissingOnce=!1;lang;failedLangs=new Set;events=new St;events$=this.events.asObservable();config;constructor(e,t,n,o,c,p){this.loader=e,this.parser=t,this.missingHandler=n,this.interceptor=o,this.fallbackStrategy=p,this.loader||(this.loader=new ud(this.translations)),zv=this,this.config=JSON.parse(JSON.stringify(c)),this.setAvailableLangs(this.config.availableLangs||[]),this.setFallbackLangForMissingTranslation(this.config),this.setDefaultLang(this.config.defaultLang),this.lang=new zi(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.events$.pipe(ad()).subscribe(v=>{v.type==="translationLoadSuccess"&&v.wasFailure&&this.setActiveLang(v.payload.langName)})}getDefaultLang(){return this.defaultLang}setDefaultLang(e){this.defaultLang=e}getActiveLang(){return this.lang.getValue()}setActiveLang(e){return this.parser.onLangChanged?.(e),this.lang.next(e),this.events.next({type:"langChanged",payload:dd(e)}),this}setAvailableLangs(e){this.availableLangs=e}getAvailableLangs(){return this.availableLangs}load(e,t={}){let n=this.cache.get(e);if(n)return n;let o,c=this._isLangScoped(e),p;c&&(p=Ca(e));let v={path:e,mainLoader:this.loader,inlineLoader:t.inlineLoader,data:c?{scope:p}:void 0};if(this.useFallbackTranslation(e)){let _=c?`${p}/${this.firstFallbackLang}`:this.firstFallbackLang,m=qv(Yt(Fe({},v),{fallbackPath:_}));o=Mr(m)}else{let _=Hp(v);o=Li(_)}let A=o.pipe(Uu(this.config.failedRetries),wi(_=>{if(Array.isArray(_)){_.forEach(m=>{this.handleSuccess(m.lang,m.translation),m.lang!==e&&this.cache.set(m.lang,gt({}))});return}this.handleSuccess(e,_)}),rs(_=>(this.config.prodMode||console.error(`Error while trying to load "${e}"`,_),this.handleFailure(e,t))),cc(1));return this.cache.set(e,A),A}translate(e,t={},n=this.getActiveLang()){if(!e)return e;let{scope:o,resolveLang:c}=this.resolveLangAndScope(n);if(Array.isArray(e))return e.map(A=>this.translate(o?`${o}.${A}`:A,t,c));e=o?`${o}.${e}`:e;let p=this.getTranslation(c),v=p[e];return v?this.parser.transpile({value:v,params:t,translation:p,key:e}):this._handleMissingKey(e,v,t)}selectTranslate(e,t,n,o=!1){let c,p=(A,_)=>this.load(A,_).pipe(Ut(()=>o?this.translateObject(e,t,A):this.translate(e,t,A)));if(hd(n))return this.langChanges$.pipe(bi(A=>p(A)));if(n=Array.isArray(n)?n[0]:n,Mp(n)){let A=n;n=A.scope,c=jp(A,A.scope)}if(n=n,this.isLang(n)||this.isScopeWithLang(n))return p(n);let v=n;return this.langChanges$.pipe(bi(A=>p(`${v}/${A}`,{inlineLoader:c})))}isScopeWithLang(e){return this.isLang(us(e))}translateObject(e,t={},n=this.getActiveLang()){if(fr(e)||Array.isArray(e)){let{resolveLang:c,scope:p}=this.resolveLangAndScope(n);if(Array.isArray(e))return e.map(_=>this.translateObject(p?`${p}.${_}`:_,t,c));let v=this.getTranslation(c);e=p?`${p}.${e}`:e;let A=Rv(this.getObjectByKey(v,e));return Pv(A)?this.translate(e,t,n):this.parser.transpile({value:A,params:t,translation:v,key:e})}let o=[];for(let[c,p]of this.getEntries(e))o.push(this.translateObject(c,p,n));return o}selectTranslateObject(e,t,n){if(fr(e)||Array.isArray(e))return this.selectTranslate(e,t,n,!0);let[[o,c],...p]=this.getEntries(e);return this.selectTranslateObject(o,c,n).pipe(Ut(v=>{let A=[v];for(let[_,m]of p)A.push(this.translateObject(_,m,n));return A}))}getTranslation(e){if(e){if(this.isLang(e))return this.translations.get(e)||{};{let{scope:t,resolveLang:n}=this.resolveLangAndScope(e),o=this.translations.get(n)||{};return this.getObjectByKey(o,t)}}return this.translations}selectTranslation(e){let t=this.langChanges$;if(e){let n=us(e)!==e;this.isLang(e)||n?t=gt(e):t=this.langChanges$.pipe(Ut(o=>`${e}/${o}`))}return t.pipe(bi(n=>this.load(n).pipe(Ut(()=>this.getTranslation(n)))))}setTranslation(e,t=this.getActiveLang(),n={}){let c=Fe(Fe({},{merge:!0,emitChange:!0}),n),p=Ca(t),v=e;if(p){let C=this.getMappedScope(p);v=Ip({[C]:e})}let A=p?us(t):t,_=Fe(Fe({},c.merge&&this.getTranslation(A)),v),m=this.config.flatten.aot?_:Ip(_),y=this.interceptor.preSaveTranslation(m,A);this.translations.set(A,y),c.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(e,t,n={}){let o=n.lang||this.getActiveLang(),c=this.interceptor.preSaveTranslationKey(e,t,o),p={[e]:c};this.setTranslation(p,o,Yt(Fe({},n),{merge:!0}))}setFallbackLangForMissingTranslation({fallbackLang:e}){let t=Array.isArray(e)?e[0]:e;e&&this.useFallbackTranslation(t)&&(this.firstFallbackLang=t)}_handleMissingKey(e,t,n){if(this.config.missingHandler.allowEmpty&&t==="")return"";if(!this.isResolvedMissingOnce&&this.useFallbackTranslation()){this.isResolvedMissingOnce=!0;let o=this.translate(e,n,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,o}return this.missingHandler.handle(e,this.getMissingHandlerData(),n)}_isLangScoped(e){return this.getAvailableLangsIds().indexOf(e)===-1}isLang(e){return this.getAvailableLangsIds().indexOf(e)!==-1}_loadDependencies(e,t){let n=us(e);return this._isLangScoped(e)&&!this.isLoadedTranslation(n)?Cs([this.load(n),this.load(e,{inlineLoader:t})]):this.load(e,{inlineLoader:t})}_completeScopeWithLang(e){return this._isLangScoped(e)&&!this.isLang(us(e))?`${e}/${this.getActiveLang()}`:e}_setScopeAlias(e,t){this.config.scopeMapping||(this.config.scopeMapping={}),this.config.scopeMapping[e]=t}ngOnDestroy(){this.cache.clear()}isLoadedTranslation(e){return Rp(this.getTranslation(e))}getAvailableLangsIds(){let e=this.getAvailableLangs()[0];return fr(e)?this.getAvailableLangs():this.getAvailableLangs().map(t=>t.id)}getMissingHandlerData(){return Yt(Fe({},this.config),{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(e){return this.config.missingHandler.useFallbackTranslation&&e!==this.firstFallbackLang}handleSuccess(e,t){this.setTranslation(t,e,{emitChange:!1}),this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:dd(e)}),this.failedLangs.forEach(n=>this.cache.delete(n)),this.failedLangs.clear()}handleFailure(e,t){hd(t.failedCounter)&&(t.failedCounter=0,t.fallbackLangs||(t.fallbackLangs=this.fallbackStrategy.getNextLangs(e)));let n=e.split("/"),c=t.fallbackLangs[t.failedCounter];if(this.failedLangs.add(e),this.cache.has(c))return this.handleSuccess(c,this.getTranslation(c)),An;let p=c===n[n.length-1];if(!c||p){let A="Unable to load translation and all the fallback languages";throw n.length>1&&(A+=", did you misspelled the scope name?"),new Error(A)}let v=c;return n.length>1&&(n[n.length-1]=c,v=n.join("/")),t.failedCounter++,this.events.next({type:"translationLoadFailure",payload:dd(e)}),this.load(v,t)}getMappedScope(e){let{scopeMapping:t={},scopes:n={keepCasing:!1}}=this.config;return t[e]||(n.keepCasing?e:kp(e))}resolveLangAndScope(e){let t=e,n;if(this._isLangScoped(e)){let o=us(e),c=this.isLang(o);t=c?o:this.getActiveLang(),n=this.getMappedScope(c?Ca(e):e)}return{scope:n,resolveLang:t}}getObjectByKey(e,t){let n={},o=`${t}.`;for(let c in e)c.startsWith(o)&&(n[c.replace(o,"")]=e[c]);return n}getEntries(e){return e instanceof Map?e.entries():Object.entries(e)}static \u0275fac=function(t){return new(t||s)(Ft(Lp,8),Ft(Op),Ft(Np),Ft(Bp),Ft(gr),Ft(Vp))};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Gv=(()=>{class s{html;static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["ng-component"]],inputs:{html:"html"},decls:1,vars:1,consts:[[1,"transloco-loader-template",3,"innerHTML"]],template:function(t,n){t&1&&Oe(0,"div",0),t&2&&xe("innerHTML",n.html,Vr)},encapsulation:2})}return s})(),fd=class{view;vcr;constructor(a,e){this.view=a,this.vcr=e}attachView(){if(this.view instanceof vn)this.vcr.createEmbeddedView(this.view);else if(fr(this.view)){let a=this.vcr.createComponent(Gv);a.instance.html=this.view,a.hostView.detectChanges()}else this.vcr.createComponent(this.view)}detachView(){this.vcr.clear()}},Wv=new Ge("TRANSLOCO_LANG"),Xv=new Ge("TRANSLOCO_LOADING_TEMPLATE"),$v=new Ge("TRANSLOCO_SCOPE"),gd=class{initialized=!1;resolve({inline:a,provider:e,active:t}){let n=t;if(this.initialized)return n=t,n;if(e){let[,o]=pd(e,"static");n=o}if(a){let[,o]=pd(a,"static");n=o}return this.initialized=!0,n}resolveLangBasedOnScope(a){return Ca(a)?us(a):a}resolveLangPath(a,e){return e?`${e}/${a}`:a}},md=class{service;constructor(a){this.service=a}resolve(a){let{inline:e,provider:t}=a;if(e)return e;if(t){if(Mp(t)){let{scope:n,alias:o=this.service.config.scopes.keepCasing?n:kp(n)}=t;return this.service._setScopeAlias(n,o),n}return t}}},qp=(()=>{class s{destroyRef=ie(Ss);service=ie(vd);tpl=ie(vn,{optional:!0});providerLang=ie(Wv,{optional:!0});providerScope=ie($v,{optional:!0});providedLoadingTpl=ie(Xv,{optional:!0});cdr=ie(gi);host=ie(Vt);vcr=ie($i);renderer=ie(Ci);view;memo=new Map;key;params={};inlineScope;inlineRead;prefix;inlineLang;inlineTpl;currentLang;loaderTplHandler;initialized=!1;path;langResolver=new gd;scopeResolver=new md(this.service);strategy=this.tpl===null?"attribute":"structural";static ngTemplateContextGuard(e,t){return!0}ngOnInit(){let e=Vv(this.service,this.providerLang||this.inlineLang);if(this.service.langChanges$.pipe(bi(t=>{let n=this.langResolver.resolve({inline:this.inlineLang,provider:this.providerLang,active:t});return Array.isArray(this.providerScope)?Mr(this.providerScope.map(o=>this.resolveScope(n,o))):this.resolveScope(n,this.providerScope)}),jv(e),ad(this.destroyRef)).subscribe(()=>{this.currentLang=this.langResolver.resolveLangBasedOnScope(this.path),this.strategy==="attribute"?this.attributeStrategy():this.structuralStrategy(this.currentLang,this.prefix||this.inlineRead),this.cdr.markForCheck(),this.initialized=!0}),!this.initialized){let t=this.resolveLoadingContent();t&&(this.loaderTplHandler=new fd(t,this.vcr),this.loaderTplHandler.attachView())}}ngOnChanges(e){this.strategy==="attribute"&&Object.keys(e).some(n=>!e[n].firstChange)&&this.attributeStrategy()}attributeStrategy(){this.detachLoader(),this.renderer.setProperty(this.host.nativeElement,"innerText",this.service.translate(this.key,this.params,this.currentLang))}structuralStrategy(e,t){this.memo.clear();let n=this.getTranslateFn(e,t);this.view?(this.view.context.$implicit=n,this.view.context.currentLang=this.currentLang):(this.detachLoader(),this.view=this.vcr.createEmbeddedView(this.tpl,{$implicit:n,currentLang:this.currentLang}))}getTranslateFn(e,t){return(n,o)=>{let c=t?`${t}.${n}`:n,p=o?`${c}${JSON.stringify(o)}`:c;return this.memo.has(p)||this.memo.set(p,this.service.translate(c,o,e)),this.memo.get(p)}}resolveLoadingContent(){return this.inlineTpl||this.providedLoadingTpl}ngOnDestroy(){this.memo.clear()}detachLoader(){this.loaderTplHandler?.detachView()}resolveScope(e,t){let n=this.scopeResolver.resolve({inline:this.inlineScope,provider:t});this.path=this.langResolver.resolveLangPath(e,n);let o=jp(t,n);return this.service._loadDependencies(this.path,o)}static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["","transloco",""]],inputs:{key:[0,"transloco","key"],params:[0,"translocoParams","params"],inlineScope:[0,"translocoScope","inlineScope"],inlineRead:[0,"translocoRead","inlineRead"],prefix:[0,"translocoPrefix","prefix"],inlineLang:[0,"translocoLang","inlineLang"],inlineTpl:[0,"translocoLoadingTpl","inlineTpl"]},features:[Sn]})}return s})();var zp=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({})}return s})();function Gp(s){let a=[Qv(xv),Zv(Ov),e_(Nv),Jv(Bv)];return s.config&&a.push(Yv(s.config)),s.loader&&a.push(Kv(s.loader)),a}function Yv(s){return on([{provide:gr,useValue:kv(s)}])}function Kv(s){return on([{provide:Lp,useClass:s}])}function Qv(s){return on([{provide:Op,useClass:s,deps:[gr]}])}function Jv(s){return on([{provide:Vp,useClass:s,deps:[gr]}])}function Zv(s){return on([{provide:Np,useClass:s}])}function e_(s){return on([{provide:Bp,useClass:s}])}var xS=new Ge("TRANSLOCO_TEST_LANGS - Available testing languages"),MS=new Ge("TRANSLOCO_TEST_OPTIONS - Testing options");function Wp(){let s=t_();if(!(!s||!xp()))return s.indexOf("-")!==-1&&(s=s.split("-")[0]),s.indexOf("_")!==-1&&(s=s.split("_")[0]),s}function t_(){if(!xp())return"";let s=window.navigator;return s.languages?.[0]??s.language}var Xp={providers:[Qu({eventCoalescing:!0}),sd(Sp),Tp(),kc(),Gp({config:{availableLangs:["en","es","de","fi","fr","it","nl","pt","bg","cs","da","et","el","ga","hr","lv","lt","hu","mt","pl","ro","sk","sv","ca","oc","tr","eu"],defaultLang:"en",reRenderOnLangChange:!0,prodMode:!eh()},loader:Fp})]};var tf=(()=>{class s{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(t){return new(t||s)(ni(Ci),ni(Vt))};static \u0275dir=Wt({type:s})}return s})(),n_=(()=>{class s extends tf{static \u0275fac=(()=>{let e;return function(n){return(e||(e=kn(s)))(n||s)}})();static \u0275dir=Wt({type:s,features:[en]})}return s})(),nl=new Ge("");var s_={provide:nl,useExisting:Ks(()=>sl),multi:!0};function r_(){let s=bn()?bn().getUserAgent():"";return/android (\d+)/.test(s.toLowerCase())}var a_=new Ge(""),sl=(()=>{class s extends tf{_compositionMode;_composing=!1;constructor(e,t,n){super(e,t),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!r_())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(t){return new(t||s)(ni(Ci),ni(Vt),ni(a_,8))};static \u0275dir=Wt({type:s,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,n){t&1&&dt("input",function(c){return n._handleInput(c.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(c){return n._compositionEnd(c.target.value)})},standalone:!1,features:[nn([s_]),en]})}return s})();var o_=new Ge(""),l_=new Ge("");function nf(s){return s!=null}function sf(s){return jr(s)?Li(s):s}function rf(s){let a={};return s.forEach(e=>{a=e!=null?Fe(Fe({},a),e):a}),Object.keys(a).length===0?null:a}function af(s,a){return a.map(e=>e(s))}function c_(s){return!s.validate}function of(s){return s.map(a=>c_(a)?a:e=>a.validate(e))}function d_(s){if(!s)return null;let a=s.filter(nf);return a.length==0?null:function(e){return rf(af(e,a))}}function lf(s){return s!=null?d_(of(s)):null}function u_(s){if(!s)return null;let a=s.filter(nf);return a.length==0?null:function(e){let t=af(e,a).map(sf);return Mr(t).pipe(Ut(rf))}}function cf(s){return s!=null?u_(of(s)):null}function $p(s,a){return s===null?[a]:Array.isArray(s)?[...s,a]:[s,a]}function h_(s){return s._rawValidators}function p_(s){return s._rawAsyncValidators}function _d(s){return s?Array.isArray(s)?s:[s]:[]}function el(s,a){return Array.isArray(s)?s.includes(a):s===a}function Yp(s,a){let e=_d(a);return _d(s).forEach(n=>{el(e,n)||e.push(n)}),e}function Kp(s,a){return _d(a).filter(e=>!el(s,e))}var tl=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(a){this._rawValidators=a||[],this._composedValidatorFn=lf(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=cf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a=void 0){this.control&&this.control.reset(a)}hasError(a,e){return this.control?this.control.hasError(a,e):!1}getError(a,e){return this.control?this.control.getError(a,e):null}},bd=class extends tl{name;get formDirective(){return null}get path(){return null}},Fa=class extends tl{_parent=null;name=null;valueAccessor=null},Ed=class{_cd;constructor(a){this._cd=a}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},f_={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},lT=Yt(Fe({},f_),{"[class.ng-submitted]":"isSubmitted"}),df=(()=>{class s extends Ed{constructor(e){super(e)}static \u0275fac=function(t){return new(t||s)(ni(Fa,2))};static \u0275dir=Wt({type:s,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){t&2&&vt("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[en]})}return s})();var Aa="VALID",Zo="INVALID",mr="PENDING",wa="DISABLED",vr=class{},il=class extends vr{value;source;constructor(a,e){super(),this.value=a,this.source=e}},Sa=class extends vr{pristine;source;constructor(a,e){super(),this.pristine=a,this.source=e}},Ta=class extends vr{touched;source;constructor(a,e){super(),this.touched=a,this.source=e}},yr=class extends vr{status;source;constructor(a,e){super(),this.status=a,this.source=e}};function g_(s){return(rl(s)?s.validators:s)||null}function m_(s){return Array.isArray(s)?lf(s):s||null}function y_(s,a){return(rl(a)?a.asyncValidators:s)||null}function v_(s){return Array.isArray(s)?cf(s):s||null}function rl(s){return s!=null&&!Array.isArray(s)&&typeof s=="object"}var Cd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(a,e){this._assignValidators(a),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get status(){return $n(this.statusReactive)}set status(a){$n(()=>this.statusReactive.set(a))}_status=uo(()=>this.statusReactive());statusReactive=Zi(void 0);get valid(){return this.status===Aa}get invalid(){return this.status===Zo}get pending(){return this.status==mr}get disabled(){return this.status===wa}get enabled(){return this.status!==wa}errors;get pristine(){return $n(this.pristineReactive)}set pristine(a){$n(()=>this.pristineReactive.set(a))}_pristine=uo(()=>this.pristineReactive());pristineReactive=Zi(!0);get dirty(){return!this.pristine}get touched(){return $n(this.touchedReactive)}set touched(a){$n(()=>this.touchedReactive.set(a))}_touched=uo(()=>this.touchedReactive());touchedReactive=Zi(!1);get untouched(){return!this.touched}_events=new St;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._assignValidators(a)}setAsyncValidators(a){this._assignAsyncValidators(a)}addValidators(a){this.setValidators(Yp(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(Yp(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Kp(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Kp(a,this._rawAsyncValidators))}hasValidator(a){return el(this._rawValidators,a)}hasAsyncValidator(a){return el(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){let e=this.touched===!1;this.touched=!0;let t=a.sourceControl??this;this._parent&&!a.onlySelf&&this._parent.markAsTouched(Yt(Fe({},a),{sourceControl:t})),e&&a.emitEvent!==!1&&this._events.next(new Ta(!0,t))}markAllAsDirty(a={}){this.markAsDirty({onlySelf:!0,emitEvent:a.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(a))}markAllAsTouched(a={}){this.markAsTouched({onlySelf:!0,emitEvent:a.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(a))}markAsUntouched(a={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=a.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:a.emitEvent,sourceControl:t})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a,t),e&&a.emitEvent!==!1&&this._events.next(new Ta(!1,t))}markAsDirty(a={}){let e=this.pristine===!0;this.pristine=!1;let t=a.sourceControl??this;this._parent&&!a.onlySelf&&this._parent.markAsDirty(Yt(Fe({},a),{sourceControl:t})),e&&a.emitEvent!==!1&&this._events.next(new Sa(!1,t))}markAsPristine(a={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=a.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:a.emitEvent})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a,t),e&&a.emitEvent!==!1&&this._events.next(new Sa(!0,t))}markAsPending(a={}){this.status=mr;let e=a.sourceControl??this;a.emitEvent!==!1&&(this._events.next(new yr(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.markAsPending(Yt(Fe({},a),{sourceControl:e}))}disable(a={}){let e=this._parentMarkedDirty(a.onlySelf);this.status=wa,this.errors=null,this._forEachChild(n=>{n.disable(Yt(Fe({},a),{onlySelf:!0}))}),this._updateValue();let t=a.sourceControl??this;a.emitEvent!==!1&&(this._events.next(new il(this.value,t)),this._events.next(new yr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Yt(Fe({},a),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(a={}){let e=this._parentMarkedDirty(a.onlySelf);this.status=Aa,this._forEachChild(t=>{t.enable(Yt(Fe({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Yt(Fe({},a),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a,e){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(a){this._parent=a}getRawValue(){return this.value}updateValueAndValidity(a={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Aa||this.status===mr)&&this._runAsyncValidator(t,a.emitEvent)}let e=a.sourceControl??this;a.emitEvent!==!1&&(this._events.next(new il(this.value,e)),this._events.next(new yr(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(Yt(Fe({},a),{sourceControl:e}))}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?wa:Aa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a,e){if(this.asyncValidator){this.status=mr,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:a!==!1};let t=sf(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:a})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let a=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,a}return!1}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(a){let e=a;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,n)=>t&&t._find(n),this)}getError(a,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a,e,t){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),(a||t)&&this._events.next(new yr(this.status,e)),this._parent&&this._parent._updateControlsErrors(a,e,t)}_initObservables(){this.valueChanges=new hi,this.statusChanges=new hi}_calculateStatus(){return this._allControlsDisabled()?wa:this.errors?Zo:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mr)?mr:this._anyControlsHaveStatus(Zo)?Zo:Aa}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a,e){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,this._parent&&!a.onlySelf&&this._parent._updatePristine(a,e),n&&this._events.next(new Sa(this.pristine,e))}_updateTouched(a={},e){this.touched=this._anyControlsTouched(),this._events.next(new Ta(this.touched,e)),this._parent&&!a.onlySelf&&this._parent._updateTouched(a,e)}_onDisabledChange=[];_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){rl(a)&&a.updateOn!=null&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){let e=this._parent&&this._parent.dirty;return!a&&!!e&&!this._parent._anyControlsDirty()}_find(a){return null}_assignValidators(a){this._rawValidators=Array.isArray(a)?a.slice():a,this._composedValidatorFn=m_(this._rawValidators)}_assignAsyncValidators(a){this._rawAsyncValidators=Array.isArray(a)?a.slice():a,this._composedAsyncValidatorFn=v_(this._rawAsyncValidators)}};var uf=new Ge("",{providedIn:"root",factory:()=>Ad}),Ad="always";function __(s,a){return[...a.path,s]}function b_(s,a,e=Ad){C_(s,a),a.valueAccessor.writeValue(s.value),(s.disabled||e==="always")&&a.valueAccessor.setDisabledState?.(s.disabled),A_(s,a),S_(s,a),w_(s,a),E_(s,a)}function Qp(s,a){s.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function E_(s,a){if(a.valueAccessor.setDisabledState){let e=t=>{a.valueAccessor.setDisabledState(t)};s.registerOnDisabledChange(e),a._registerOnDestroy(()=>{s._unregisterOnDisabledChange(e)})}}function C_(s,a){let e=h_(s);a.validator!==null?s.setValidators($p(e,a.validator)):typeof e=="function"&&s.setValidators([e]);let t=p_(s);a.asyncValidator!==null?s.setAsyncValidators($p(t,a.asyncValidator)):typeof t=="function"&&s.setAsyncValidators([t]);let n=()=>s.updateValueAndValidity();Qp(a._rawValidators,n),Qp(a._rawAsyncValidators,n)}function A_(s,a){a.valueAccessor.registerOnChange(e=>{s._pendingValue=e,s._pendingChange=!0,s._pendingDirty=!0,s.updateOn==="change"&&hf(s,a)})}function w_(s,a){a.valueAccessor.registerOnTouched(()=>{s._pendingTouched=!0,s.updateOn==="blur"&&s._pendingChange&&hf(s,a),s.updateOn!=="submit"&&s.markAsTouched()})}function hf(s,a){s._pendingDirty&&s.markAsDirty(),s.setValue(s._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(s._pendingValue),s._pendingChange=!1}function S_(s,a){let e=(t,n)=>{a.valueAccessor.writeValue(t),n&&a.viewToModelUpdate(t)};s.registerOnChange(e),a._registerOnDestroy(()=>{s._unregisterOnChange(e)})}function T_(s,a){if(!s.hasOwnProperty("model"))return!1;let e=s.model;return e.isFirstChange()?!0:!Object.is(a,e.currentValue)}function F_(s){return Object.getPrototypeOf(s.constructor)===n_}function D_(s,a){if(!a)return null;Array.isArray(a);let e,t,n;return a.forEach(o=>{o.constructor===sl?e=o:F_(o)?t=o:n=o}),n||t||e||null}function Jp(s,a){let e=s.indexOf(a);e>-1&&s.splice(e,1)}function Zp(s){return typeof s=="object"&&s!==null&&Object.keys(s).length===2&&"value"in s&&"disabled"in s}var U_=class extends Cd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(a=null,e,t){super(g_(e),y_(t,e)),this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rl(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Zp(a)?this.defaultValue=a.value:this.defaultValue=a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Jp(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Jp(this._onDisabledChange,a)}_forEachChild(a){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(a){Zp(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}};var P_={provide:Fa,useExisting:Ks(()=>wd)},ef=Promise.resolve(),wd=(()=>{class s extends Fa{_changeDetectorRef;callSetDisabledState;control=new U_;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new hi;constructor(e,t,n,o,c,p){super(),this._changeDetectorRef=c,this.callSetDisabledState=p,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=D_(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),T_(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){b_(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){ef.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,n=t!==0&&Ai(t);ef.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?__(e,this._parent):[e]}static \u0275fac=function(t){return new(t||s)(ni(bd,9),ni(o_,10),ni(l_,10),ni(nl,10),ni(gi,8),ni(uf,8))};static \u0275dir=Wt({type:s,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[nn([P_]),en,Sn]})}return s})();var I_=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({})}return s})();var pf=(()=>{class s{static withConfig(e){return{ngModule:s,providers:[{provide:uf,useValue:e.callSetDisabledState??Ad}]}}static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[I_]})}return s})();var al=class{tracker;columnIndex=0;rowIndex=0;get rowCount(){return this.rowIndex+1}get rowspan(){let a=Math.max(...this.tracker);return a>1?this.rowCount+a-1:this.rowCount}positions;update(a,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(a),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(a){let e=this._findMatchingGap(a.colspan);return this._markTilePosition(e,a),this.columnIndex=e+a.colspan,new Sd(this.rowIndex,e)}_findMatchingGap(a){a>this.tracker.length;let e=-1,t=-1;do{if(this.columnIndex+a>this.tracker.length){this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),t=this._findGapEndIndex(e);continue}if(e=this.tracker.indexOf(0,this.columnIndex),e==-1){this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),t=this._findGapEndIndex(e);continue}t=this._findGapEndIndex(e),this.columnIndex=e+1}while(t-e{class s{_platformId=ie(Fs);isBrowser=this._platformId?Ac(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Dd)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var Da;function gf(){if(Da==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Da=!0}))}finally{Da=Da||!1}return Da}function hs(s){return gf()?s:!!s.capture}function Zn(s,a=0){return mf(s)?Number(s):arguments.length===2?a:0}function mf(s){return!isNaN(parseFloat(s))&&!isNaN(Number(s))}function Vn(s){return s instanceof Vt?s.nativeElement:s}var yf=new Ge("cdk-input-modality-detector-options"),vf={ignoreKeys:[18,17,224,91,16]},_f=650,Ud={passive:!0,capture:!0},bf=(()=>{class s{_platform=ie(li);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new zi(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(t=>t===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=sn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<_f||(this._modality.next(Bs(e)?"keyboard":"mouse"),this._mostRecentTarget=sn(e))};_onTouchstart=e=>{if(Vs(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=sn(e)};constructor(){let e=ie(Nt),t=ie(Dt),n=ie(yf,{optional:!0});if(this._options=Fe(Fe({},vf),n),this.modalityDetected=this._modality.pipe(io(1)),this.modalityChanged=this.modalityDetected.pipe(oc()),this._platform.isBrowser){let o=ie(Xi).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(t,"keydown",this._onKeydown,Ud),o.listen(t,"mousedown",this._onMousedown,Ud),o.listen(t,"touchstart",this._onTouchstart,Ud)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ua=function(s){return s[s.IMMEDIATE=0]="IMMEDIATE",s[s.EVENTUAL=1]="EVENTUAL",s}(Ua||{}),Ef=new Ge("cdk-focus-monitor-default-options"),ol=hs({passive:!0,capture:!0}),ps=(()=>{class s{_ngZone=ie(Nt);_platform=ie(li);_inputModalityDetector=ie(bf);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=ie(Dt,{optional:!0});_stopInputModalityDetector=new St;constructor(){let e=ie(Ef,{optional:!0});this._detectionMode=e?.detectionMode||Ua.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let t=sn(e);for(let n=t;n;n=n.parentElement)e.type==="focus"?this._onFocus(e,n):this._onBlur(e,n)};monitor(e,t=!1){let n=Vn(e);if(!this._platform.isBrowser||n.nodeType!==1)return gt();let o=Fd(n)||this._getDocument(),c=this._elementInfo.get(n);if(c)return t&&(c.checkChildren=!0),c.subject;let p={checkChildren:t,subject:new St,rootNode:o};return this._elementInfo.set(n,p),this._registerGlobalListeners(p),p.subject}stopMonitoring(e){let t=Vn(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}focusVia(e,t,n){let o=Vn(e),c=this._getDocument().activeElement;o===c?this._getClosestElementsInfo(o).forEach(([p,v])=>this._originChanged(p,t,v)):(this._setOrigin(t),typeof o.focus=="function"&&o.focus(n))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ua.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program")}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===Ua.IMMEDIATE){clearTimeout(this._originTimeoutId);let n=this._originFromTouchInteraction?_f:1;this._originTimeoutId=setTimeout(()=>this._origin=null,n)}})}_onFocus(e,t){let n=this._elementInfo.get(t),o=sn(e);!n||!n.checkChildren&&t!==o||this._originChanged(t,this._getFocusOrigin(o),n)}_onBlur(e,t){let n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,n=this._rootNodeFocusListenerCount.get(t)||0;n||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,ol),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,ol)}),this._rootNodeFocusListenerCount.set(t,n+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Ei(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ol),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ol),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,n){this._setClasses(e,t),this._emitOrigin(n,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((n,o)=>{(o===e||n.checkChildren&&o.contains(e))&&t.push([o,n])}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:n}=this._inputModalityDetector;if(n!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let c=0;c{class s{_appRef;_injector=ie(Gt);_environmentInjector=ie(ln);load(e){let t=this._appRef=this._appRef||this._injector.get(Us),n=ll.get(t);n||(n={loaders:new Set,refs:[]},ll.set(t,n),t.onDestroy(()=>{ll.get(t)?.refs.forEach(o=>o.destroy()),ll.delete(t)})),n.loaders.has(e)||(n.loaders.add(e),n.refs.push(ho(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var Cf=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(t,n){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} `],encapsulation:2,changeDetection:0})}return s})();function _r(s){return Array.isArray(s)?s:[s]}var Af=new Set,js,cl=(()=>{class s{_platform=ie(li);_nonce=ie(Br,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):k_}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&R_(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function R_(s,a){if(!Af.has(s))try{js||(js=document.createElement("style"),a&&js.setAttribute("nonce",a),js.setAttribute("type","text/css"),document.head.appendChild(js)),js.sheet&&(js.sheet.insertRule(`@media ${s} {body{ }}`,0),Af.add(s))}catch(e){console.error(e)}}function k_(s){return{matches:s==="all"||s==="",media:s,addListener:()=>{},removeListener:()=>{}}}var Pa=(()=>{class s{_mediaMatcher=ie(cl);_zone=ie(Nt);_queries=new Map;_destroySubject=new St;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return wf(_r(e)).some(n=>this._registerQuery(n).mql.matches)}observe(e){let n=wf(_r(e)).map(c=>this._registerQuery(c).observable),o=Cs(n);return o=Ja(o.pipe(yn(1)),o.pipe(io(1),to(0))),o.pipe(Ut(c=>{let p={matches:!1,breakpoints:{}};return c.forEach(({matches:v,query:A})=>{p.matches=p.matches||v,p.breakpoints[A]=v}),p}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),o={observable:new Rn(c=>{let p=v=>this._zone.run(()=>c.next(v));return t.addListener(p),()=>{t.removeListener(p)}}).pipe(Gn(t),Ut(({matches:c})=>({query:e,matches:c})),Ei(this._destroySubject)),mql:t};return this._queries.set(e,o),o}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function wf(s){return s.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}var x_=(()=>{class s{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var Sf=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({providers:[x_]})}return s})();var Df=new Ge("liveAnnouncerElement",{providedIn:"root",factory:Uf});function Uf(){return null}var Pf=new Ge("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),M_=0,Id=(()=>{class s{_ngZone=ie(Nt);_defaultOptions=ie(Pf,{optional:!0});_liveElement;_document=ie(Dt);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=ie(Df,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...t){let n=this._defaultOptions,o,c;return t.length===1&&typeof t[0]=="number"?c=t[0]:[o,c]=t,this.clear(),clearTimeout(this._previousTimeout),o||(o=n&&n.politeness?n.politeness:"polite"),c==null&&n&&(c=n.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(p=>this._currentResolve=p)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof c=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),c)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),n=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{class s{_platform=ie(li);_hasCheckedHighContrastMode;_document=ie(Dt);_breakpointSubscription;constructor(){this._breakpointSubscription=ie(Pa).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return fs.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,o=(n&&n.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return fs.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return fs.BLACK_ON_WHITE}return fs.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Pd,Tf,Ff),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===fs.BLACK_ON_WHITE?e.add(Pd,Tf):t===fs.WHITE_ON_BLACK&&e.add(Pd,Ff)}}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ld=(()=>{class s{constructor(){ie(dl)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[Sf]})}return s})();var Rd={},Hs=(()=>{class s{_appId=ie(Ts);getId(e){return this._appId!=="ng"&&(e+=this._appId),Rd.hasOwnProperty(e)||(Rd[e]=0),`${e}${Rd[e]++}`}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var O_=200,ul=class{_letterKeyStream=new St;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new St;selectedItem=this._selectedItem;constructor(a,e){let t=typeof e?.debounceInterval=="number"?e.debounceInterval:O_;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(a),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(a){this._selectedItemIndex=a}setItems(a){this._items=a}handleKey(a){let e=a.keyCode;a.key&&a.key.length===1?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(a){this._letterKeyStream.pipe(wi(e=>this._pressedLetters.push(e)),to(a),Vi(()=>this._pressedLetters.length>0),Ut(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;ts[e]):s.altKey||s.shiftKey||s.ctrlKey||s.metaKey}var hl=class{_items;_activeItemIndex=Zi(-1);_activeItem=Zi(null);_wrap=!1;_typeaheadSubscription=gn.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=a=>a.disabled;constructor(a,e){this._items=a,a instanceof Nr?this._itemChangesSubscription=a.changes.subscribe(t=>this._itemsChanged(t.toArray())):uc(a)&&(this._effectRef=Ju(()=>this._itemsChanged(a()),{injector:e}))}tabOut=new St;change=new St;skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new ul(e,{debounceInterval:typeof a=="number"?a:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(a=!0){return this._homeAndEnd=a,this}withPageUpDown(a=!0,e=10){return this._pageUpAndDown={enabled:a,delta:e},this}setActiveItem(a){let e=this._activeItem();this.updateActiveItem(a),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(a){let e=a.keyCode,n=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!a[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&n){this.setNextItemActive();break}else return;case 38:if(this._vertical&&n){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&n){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&n){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&n){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&n){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&n){let o=this._activeItemIndex()+this._pageUpAndDown.delta,c=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&t!==this._activeItemIndex()&&(this._activeItemIndex.set(t),this._typeahead?.setCurrentSelectedItemIndex(t))}}};var Ia=class extends hl{_origin="program";setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}};var kf=" ";function N_(s,a,e){let t=fl(s,a);e=e.trim(),!t.some(n=>n.trim()===e)&&(t.push(e),s.setAttribute(a,t.join(kf)))}function B_(s,a,e){let t=fl(s,a);e=e.trim();let n=t.filter(o=>o!==e);n.length?s.setAttribute(a,n.join(kf)):s.removeAttribute(a)}function fl(s,a){return s.getAttribute(a)?.match(/\S+/g)??[]}var xf="cdk-describedby-message",pl="cdk-describedby-host",Od=0,Mf=(()=>{class s{_platform=ie(li);_document=ie(Dt);_messageRegistry=new Map;_messagesContainer=null;_id=`${Od++}`;constructor(){ie(rn).load(Cf),this._id=ie(Ts)+"-"+Od++}describe(e,t,n){if(!this._canBeDescribed(e,t))return;let o=Md(t,n);typeof t!="string"?(Rf(t,this._id),this._messageRegistry.set(o,{messageElement:t,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,t,n){if(!t||!this._isElementNode(e))return;let o=Md(t,n);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof t=="string"){let c=this._messageRegistry.get(o);c&&c.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${pl}="${this._id}"]`);for(let t=0;tn.indexOf(xf)!=0);e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){let n=this._messageRegistry.get(t);N_(e,"aria-describedby",n.messageElement.id),e.setAttribute(pl,this._id),n.referenceCount++}_removeMessageReference(e,t){let n=this._messageRegistry.get(t);n.referenceCount--,B_(e,"aria-describedby",n.messageElement.id),e.removeAttribute(pl)}_isElementDescribedByMessage(e,t){let n=fl(e,"aria-describedby"),o=this._messageRegistry.get(t),c=o&&o.messageElement.id;return!!c&&n.indexOf(c)!=-1}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&typeof t=="object")return!0;let n=t==null?"":`${t}`.trim(),o=e.getAttribute("aria-label");return n?!o||o.trim()!==n:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Md(s,a){return typeof s=="string"?`${a||""}/${s}`:s}function Rf(s,a){s.id||(s.id=`${xf}-${a}-${Od++}`)}var V_=new Ge("cdk-dir-doc",{providedIn:"root",factory:j_});function j_(){return ie(Dt)}var H_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Of(s){let a=s?.toLowerCase()||"";return a==="auto"&&typeof navigator<"u"&&navigator?.language?H_.test(navigator.language)?"rtl":"ltr":a==="rtl"?"rtl":"ltr"}var Dn=(()=>{class s{get value(){return this.valueSignal()}valueSignal=Zi("ltr");change=new hi;constructor(){let e=ie(V_,{optional:!0});if(e){let t=e.body?e.body.dir:null,n=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(Of(t||n||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var gs=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({})}return s})();var Si=(()=>{class s{constructor(){ie(dl)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[gs,gs]})}return s})();var Nd=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[Si,Si]})}return s})();function Ti(s){return s==null?"":typeof s=="string"?s:`${s}px`}function Bd(s){return s!=null&&`${s}`!="false"}var Nf=["*"];var q_=`.mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0} `,Bf=new Ge("MAT_GRID_LIST"),qd=(()=>{class s{_element=ie(Vt);_gridList=ie(Bf,{optional:!0});_rowspan=1;_colspan=1;constructor(){}get rowspan(){return this._rowspan}set rowspan(e){this._rowspan=Math.round(Zn(e))}get colspan(){return this._colspan}set colspan(e){this._colspan=Math.round(Zn(e))}_setStyle(e,t){this._element.nativeElement.style[e]=t}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,n){t&2&&Ye("rowspan",n.rowspan)("colspan",n.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:Nf,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(t,n){t&1&&(_n(),ue(0,"div",0),Yi(1),he())},styles:[`.mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0} `],encapsulation:2,changeDetection:0})}return s})();var z_=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,La=class{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(a,e,t,n){this._gutterSize=Vf(a),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=t,this._direction=n}getBaseTileSize(a,e){return`(${a}% - (${this._gutterSize} * ${e}))`}getTilePosition(a,e){return e===0?"0":qs(`(${a} + ${this._gutterSize}) * ${e}`)}getTileSize(a,e){return`(${a} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(a,e,t){let n=100/this._cols,o=(this._cols-1)/this._cols;this.setColStyles(a,t,n,o),this.setRowStyles(a,e,n,o)}setColStyles(a,e,t,n){let o=this.getBaseTileSize(t,n),c=this._direction==="rtl"?"right":"left";a._setStyle(c,this.getTilePosition(o,e)),a._setStyle("width",qs(this.getTileSize(o,a.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(a){return`${this._rowspan} * ${this.getTileSize(a,1)}`}getComputedHeight(){return null}},Vd=class extends La{fixedRowHeight;constructor(a){super(),this.fixedRowHeight=a}init(a,e,t,n){super.init(a,e,t,n),this.fixedRowHeight=Vf(this.fixedRowHeight),z_.test(this.fixedRowHeight)}setRowStyles(a,e){a._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),a._setStyle("height",qs(this.getTileSize(this.fixedRowHeight,a.rowspan)))}getComputedHeight(){return["height",qs(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["height",null]),a._tiles&&a._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}},jd=class extends La{rowHeightRatio;baseTileHeight;constructor(a){super(),this._parseRatio(a)}setRowStyles(a,e,t,n){let o=t/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(o,n),a._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),a._setStyle("paddingTop",qs(this.getTileSize(this.baseTileHeight,a.rowspan)))}getComputedHeight(){return["paddingBottom",qs(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(a){a._setListStyle(["paddingBottom",null]),a._tiles.forEach(e=>{e._setStyle("marginTop",null),e._setStyle("paddingTop",null)})}_parseRatio(a){let e=a.split(":");e.length,this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}},Hd=class extends La{setRowStyles(a,e){let t=100/this._rowspan,n=(this._rows-1)/this._rows,o=this.getBaseTileSize(t,n);a._setStyle("top",this.getTilePosition(o,e)),a._setStyle("height",qs(this.getTileSize(o,a.rowspan)))}reset(a){a._tiles&&a._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}};function qs(s){return`calc(${s})`}function Vf(s){return s.match(/([A-Za-z%]+)$/)?s:`${s}px`}var G_="fit",jf=(()=>{class s{_element=ie(Vt);_dir=ie(Dn,{optional:!0});_cols;_tileCoordinator;_rowHeight;_gutter="1px";_tileStyler;_tiles;constructor(){}get cols(){return this._cols}set cols(e){this._cols=Math.max(1,Math.round(Zn(e)))}get gutterSize(){return this._gutter}set gutterSize(e){this._gutter=`${e??""}`}get rowHeight(){return this._rowHeight}set rowHeight(e){let t=`${e??""}`;t!==this._rowHeight&&(this._rowHeight=t,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){this.cols}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(e){this._tileStyler&&this._tileStyler.reset(this),e===G_?this._tileStyler=new Hd:e&&e.indexOf(":")>-1?this._tileStyler=new jd(e):this._tileStyler=new Vd(e)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new al);let e=this._tileCoordinator,t=this._tiles.filter(o=>!o._gridList||o._gridList===this),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,t),this._tileStyler.init(this.gutterSize,e,this.cols,n),t.forEach((o,c)=>{let p=e.positions[c];this._tileStyler.setStyle(o,p.row,p.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["mat-grid-list"]],contentQueries:function(t,n,o){if(t&1&&Wn(o,qd,5),t&2){let c;Ht(c=qt())&&(n._tiles=c)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,n){t&2&&Ye("cols",n.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[nn([{provide:Bf,useExisting:s}])],ngContentSelectors:Nf,decls:2,vars:0,template:function(t,n){t&1&&(_n(),ue(0,"div"),Yi(1),he())},styles:[q_],encapsulation:2,changeDetection:0})}return s})(),Hf=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[Nd,Si,Nd,Si]})}return s})();var qf={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var X_=new Ge("MATERIAL_ANIMATIONS");function Fi(){return ie(X_,{optional:!0})?.animationsDisabled||ie(Qs,{optional:!0})==="NoopAnimations"?!0:ie(cl).matchMedia("(prefers-reduced-motion)").matches}function $_(s,a){s&1&&Oe(0,"div",2)}var Y_=new Ge("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var Gf=(()=>{class s{_elementRef=ie(Vt);_ngZone=ie(Nt);_changeDetectorRef=ie(gi);_renderer=ie(Ci);_cleanupTransitionEnd;constructor(){let e=ie(Y_,{optional:!0});e&&(e.color&&(this.color=this._defaultColor=e.color),this.mode=e.mode||this.mode)}_isNoopAnimation=Fi();get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";get value(){return this._value}set value(e){this._value=zf(e||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=zf(e||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new hi;get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler)})}ngOnDestroy(){this._cleanupTransitionEnd?.()}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}_transitionendHandler=e=>{this.animationEnd.observers.length===0||!e.target||!e.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(t,n){t&2&&(Ye("aria-valuenow",n._isIndeterminate()?null:n.value)("mode",n.mode),Tn("mat-"+n.color),vt("_mat-animation-noopable",n._isNoopAnimation)("mdc-linear-progress--animation-ready",!n._isNoopAnimation)("mdc-linear-progress--indeterminate",n._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",Ri],bufferValue:[2,"bufferValue","bufferValue",Ri],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(t,n){t&1&&(ue(0,"div",0),Oe(1,"div",1),st(2,$_,1,0,"div",2),he(),ue(3,"div",3),Oe(4,"span",4),he(),ue(5,"div",5),Oe(6,"span",4),he()),t&2&&(oe(),xn("flex-basis",n._getBufferBarFlexBasis()),oe(),rt(n.mode==="buffer"?2:-1),oe(),xn("transform",n._getPrimaryBarTransform()))},styles:[`.mat-mdc-progress-bar{display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering 250ms infinite linear;background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}} `],encapsulation:2,changeDetection:0})}return s})();function zf(s,a=0,e=100){return Math.max(a,Math.min(e,s))}var Wf=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[Si]})}return s})();var zs;function Xf(){if(zs==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return zs=!1,zs;if("scrollBehavior"in document.documentElement.style)zs=!0;else{let s=Element.prototype.scrollTo;s?zs=!/\{\s*\[native code\]\s*\}/.test(s.toString()):zs=!1}}return zs}function zd(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Ji=function(s){return s[s.FADING_IN=0]="FADING_IN",s[s.VISIBLE=1]="VISIBLE",s[s.FADING_OUT=2]="FADING_OUT",s[s.HIDDEN=3]="HIDDEN",s}(Ji||{}),Gd=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Ji.HIDDEN;constructor(a,e,t,n=!1){this._renderer=a,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=n}fadeOut(){this._renderer.fadeOutRipple(this)}},$f=hs({passive:!0,capture:!0}),Wd=class{_events=new Map;addHandler(a,e,t,n){let o=this._events.get(e);if(o){let c=o.get(t);c?c.add(n):o.set(t,new Set([n]))}else this._events.set(e,new Map([[t,new Set([n])]])),a.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,$f)})}removeHandler(a,e,t){let n=this._events.get(a);if(!n)return;let o=n.get(e);o&&(o.delete(t),o.size===0&&n.delete(e),n.size===0&&(this._events.delete(a),document.removeEventListener(a,this._delegateEventHandler,$f)))}_delegateEventHandler=a=>{let e=sn(a);e&&this._events.get(a.type)?.forEach((t,n)=>{(n===e||n.contains(e))&&t.forEach(o=>o.handleEvent(a))})}},Ra={enterDuration:225,exitDuration:150},Q_=800,Yf=hs({passive:!0,capture:!0}),Kf=["mousedown","touchstart"],Qf=["mouseup","mouseleave","touchend","touchcancel"],J_=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} `],encapsulation:2,changeDetection:0})}return s})(),ka=class s{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Wd;constructor(a,e,t,n,o){this._target=a,this._ngZone=e,this._platform=n,n.isBrowser&&(this._containerElement=Vn(t)),o&&o.get(rn).load(J_)}fadeInRipple(a,e,t={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Fe(Fe({},Ra),t.animation);t.centered&&(a=n.left+n.width/2,e=n.top+n.height/2);let c=t.radius||Z_(a,e,n),p=a-n.left,v=e-n.top,A=o.enterDuration,_=document.createElement("div");_.classList.add("mat-ripple-element"),_.style.left=`${p-c}px`,_.style.top=`${v-c}px`,_.style.height=`${c*2}px`,_.style.width=`${c*2}px`,t.color!=null&&(_.style.backgroundColor=t.color),_.style.transitionDuration=`${A}ms`,this._containerElement.appendChild(_);let m=window.getComputedStyle(_),y=m.transitionProperty,C=m.transitionDuration,T=y==="none"||C==="0s"||C==="0s, 0s"||n.width===0&&n.height===0,U=new Gd(this,_,t,T);_.style.transform="scale3d(1, 1, 1)",U.state=Ji.FADING_IN,t.persistent||(this._mostRecentTransientRipple=U);let G=null;return!T&&(A||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let M=()=>{G&&(G.fallbackTimer=null),clearTimeout(D),this._finishRippleTransition(U)},S=()=>this._destroyRipple(U),D=setTimeout(S,A+100);_.addEventListener("transitionend",M),_.addEventListener("transitioncancel",S),G={onTransitionEnd:M,onTransitionCancel:S,fallbackTimer:D}}),this._activeRipples.set(U,G),(T||!A)&&this._finishRippleTransition(U),U}fadeOutRipple(a){if(a.state===Ji.FADING_OUT||a.state===Ji.HIDDEN)return;let e=a.element,t=Fe(Fe({},Ra),a.config.animation);e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",a.state=Ji.FADING_OUT,(a._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(a)}fadeOutAll(){this._getActiveRipples().forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){let e=Vn(a);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Kf.forEach(t=>{s._eventManager.addHandler(this._ngZone,t,e,this)}))}handleEvent(a){a.type==="mousedown"?this._onMousedown(a):a.type==="touchstart"?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Qf.forEach(e=>{this._triggerElement.addEventListener(e,this,Yf)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(a){a.state===Ji.FADING_IN?this._startFadeOutTransition(a):a.state===Ji.FADING_OUT&&this._destroyRipple(a)}_startFadeOutTransition(a){let e=a===this._mostRecentTransientRipple,{persistent:t}=a.config;a.state=Ji.VISIBLE,!t&&(!e||!this._isPointerDown)&&a.fadeOut()}_destroyRipple(a){let e=this._activeRipples.get(a)??null;this._activeRipples.delete(a),this._activeRipples.size||(this._containerRect=null),a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),a.state=Ji.HIDDEN,e!==null&&(a.element.removeEventListener("transitionend",e.onTransitionEnd),a.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),a.element.remove()}_onMousedown(a){let e=Bs(a),t=this._lastTouchStartEvent&&Date.now(){let e=a.state===Ji.VISIBLE||a.config.terminateOnPointerUp&&a.state===Ji.FADING_IN;!a.config.persistent&&e&&a.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let a=this._triggerElement;a&&(Kf.forEach(e=>s._eventManager.removeHandler(e,a,this)),this._pointerUpEventsRegistered&&(Qf.forEach(e=>a.removeEventListener(e,this,Yf)),this._pointerUpEventsRegistered=!1))}};function Z_(s,a,e){let t=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),n=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+n*n)}var xa=new Ge("mat-ripple-global-options"),Ma=(()=>{class s{_elementRef=ie(Vt);_animationsDisabled=Fi();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=ie(Nt),t=ie(li),n=ie(xa,{optional:!0}),o=ie(Gt);this._globalOptions=n||{},this._rippleRenderer=new ka(this,e,this._elementRef,t,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Fe(Fe(Fe({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,n){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,t,Fe(Fe({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Fe(Fe({},this.rippleConfig),e))}static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,n){t&2&&vt("mat-ripple-unbounded",n.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return s})();var e1={capture:!0},t1=["focus","mousedown","mouseenter","touchstart"],Xd="mat-ripple-loader-uninitialized",$d="mat-ripple-loader-class-name",Jf="mat-ripple-loader-centered",gl="mat-ripple-loader-disabled",Zf=(()=>{class s{_document=ie(Dt);_animationsDisabled=Fi();_globalRippleOptions=ie(xa,{optional:!0});_platform=ie(li);_ngZone=ie(Nt);_injector=ie(Gt);_eventCleanups;_hosts=new Map;constructor(){let e=ie(Xi).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>t1.map(t=>e.listen(this._document,t,this._onInteraction,e1)))}ngOnDestroy(){let e=this._hosts.keys();for(let t of e)this.destroyRipple(t);this._eventCleanups.forEach(t=>t())}configureRipple(e,t){e.setAttribute(Xd,this._globalRippleOptions?.namespace??""),(t.className||!e.hasAttribute($d))&&e.setAttribute($d,t.className||""),t.centered&&e.setAttribute(Jf,""),t.disabled&&e.setAttribute(gl,"")}setDisabled(e,t){let n=this._hosts.get(e);n?(n.target.rippleDisabled=t,!t&&!n.hasSetUpEvents&&(n.hasSetUpEvents=!0,n.renderer.setupTriggerEvents(e))):t?e.setAttribute(gl,""):e.removeAttribute(gl)}_onInteraction=e=>{let t=sn(e);if(t instanceof HTMLElement){let n=t.closest(`[${Xd}="${this._globalRippleOptions?.namespace??""}"]`);n&&this._createRipple(n)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let t=this._document.createElement("span");t.classList.add("mat-ripple",e.getAttribute($d)),e.append(t);let n=this._globalRippleOptions,o=this._animationsDisabled?0:n?.animation?.enterDuration??Ra.enterDuration,c=this._animationsDisabled?0:n?.animation?.exitDuration??Ra.exitDuration,p={rippleDisabled:this._animationsDisabled||n?.disabled||e.hasAttribute(gl),rippleConfig:{centered:e.hasAttribute(Jf),terminateOnPointerUp:n?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:c}}},v=new ka(p,this._ngZone,t,this._platform,this._injector),A=!p.rippleDisabled;A&&v.setupTriggerEvents(e),this._hosts.set(e,{target:p,renderer:v,hasSetUpEvents:A}),e.removeAttribute(Xd)}destroyRipple(e){let t=this._hosts.get(e);t&&(t.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var Er=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["structural-styles"]],decls:0,vars:0,template:function(t,n){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} `],encapsulation:2,changeDetection:0})}return s})();var i1=new Ge("MAT_BUTTON_CONFIG");function eg(s){return s==null?void 0:Ri(s)}var tg=(()=>{class s{_elementRef=ie(Vt);_ngZone=ie(Nt);_animationsDisabled=Fi();_config=ie(i1,{optional:!0});_focusMonitor=ie(ps);_cleanupClick;_renderer=ie(Ci);_rippleLoader=ie(Zf);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){ie(rn).load(Er);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",t){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,t):this._elementRef.nativeElement.focus(t)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(t,n){t&2&&(Ye("disabled",n._getDisabledAttribute())("aria-disabled",n._getAriaDisabled())("tabindex",n._getTabIndex()),Tn(n.color?"mat-"+n.color:""),vt("mat-mdc-button-disabled",n.disabled)("mat-mdc-button-disabled-interactive",n.disabledInteractive)("mat-unthemed",!n.color)("_mat-animation-noopable",n._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Ai],disabled:[2,"disabled","disabled",Ai],ariaDisabled:[2,"aria-disabled","ariaDisabled",Ai],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Ai],tabIndex:[2,"tabIndex","tabIndex",eg],_tabindex:[2,"tabindex","_tabindex",eg]}})}return s})();var ml=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[Si,Si]})}return s})();var n1=["matButton",""],s1=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],r1=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var ig=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),ng=(()=>{class s extends tg{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=a1(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let t=this._elementRef.nativeElement.classList,n=this._appearance?ig.get(this._appearance):null,o=ig.get(e);n&&t.remove(...n),t.add(...o),this._appearance=e}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[en],attrs:n1,ngContentSelectors:r1,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,n){t&1&&(_n(s1),Oe(0,"span",0),Yi(1),ue(2,"span",1),Yi(3,1),he(),Yi(4,2),Oe(5,"span",2)(6,"span",3)),t&2&&vt("mdc-button__ripple",!n._isFab)("mdc-fab__ripple",n._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} `],encapsulation:2,changeDetection:0})}return s})();function a1(s){return s.hasAttribute("mat-raised-button")?"elevated":s.hasAttribute("mat-stroked-button")?"outlined":s.hasAttribute("mat-flat-button")?"filled":s.hasAttribute("mat-button")?"text":null}var Oa=class{_attachedHost;attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;a!=null&&(this._attachedHost=null,a.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(a){this._attachedHost=a}},ms=class extends Oa{component;viewContainerRef;injector;projectableNodes;constructor(a,e,t,n){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.projectableNodes=n}},ys=class extends Oa{templateRef;viewContainerRef;context;injector;constructor(a,e,t,n){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t,this.injector=n}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}},Yd=class extends Oa{element;constructor(a){super(),this.element=a instanceof Vt?a.nativeElement:a}},Cr=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(a){if(a instanceof ms)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof ys)return this._attachedPortal=a,this.attachTemplatePortal(a);if(this.attachDomPortal&&a instanceof Yd)return this._attachedPortal=a,this.attachDomPortal(a)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Na=class extends Cr{outletElement;_appRef;_defaultInjector;constructor(a,e,t){super(),this.outletElement=a,this._appRef=e,this._defaultInjector=t}attachComponentPortal(a){let e;if(a.viewContainerRef){let t=a.injector||a.viewContainerRef.injector,n=t.get(ro,null,{optional:!0})||void 0;e=a.viewContainerRef.createComponent(a.component,{index:a.viewContainerRef.length,injector:t,ngModuleRef:n,projectableNodes:a.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let t=this._appRef,n=a.injector||this._defaultInjector||Gt.NULL,o=n.get(ln,t.injector);e=ho(a.component,{elementInjector:n,environmentInjector:o,projectableNodes:a.projectableNodes||void 0}),t.attachView(e.hostView),this.setDisposeFn(()=>{t.viewCount>0&&t.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=a,e}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});return t.rootNodes.forEach(n=>this.outletElement.appendChild(n)),t.detectChanges(),this.setDisposeFn(()=>{let n=e.indexOf(t);n!==-1&&e.remove(n)}),this._attachedPortal=a,t}attachDomPortal=a=>{let e=a.element;e.parentNode;let t=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(t,e),this.outletElement.appendChild(e),this._attachedPortal=a,super.setDisposeFn(()=>{t.parentNode&&t.parentNode.replaceChild(e,t)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}};var Kd=(()=>{class s extends Cr{_moduleRef=ie(ro,{optional:!0});_document=ie(Dt);_viewContainerRef=ie($i);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new hi;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let t=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,n=t.createComponent(e.component,{index:t.length,injector:e.injector||t.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return t!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachTemplatePortal(e){e.setAttachedHost(this);let t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(n,t),this._getRootNode().appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[en]})}return s})();var Qd=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({})}return s})();var o1=20,Ar=(()=>{class s{_ngZone=ie(Nt);_platform=ie(li);_renderer=ie(Xi).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new St;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=o1){return this._platform.isBrowser?new Rn(t=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let n=e>0?this._scrolled.pipe(rc(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):gt()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Vi(o=>!o||n.indexOf(o)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((n,o)=>{this._scrollableContainsElement(o,e)&&t.push(o)}),t}_scrollableContainsElement(e,t){let n=Vn(t),o=e.getElementRef().nativeElement;do if(n==o)return!0;while(n=n.parentElement);return!1}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var l1=20,wr=(()=>{class s{_platform=ie(li);_listeners;_viewportSize;_change=new St;_document=ie(Dt,{optional:!0});constructor(){let e=ie(Nt),t=ie(Xi).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let n=o=>this._change.next(o);this._listeners=[t.listen("window","resize",n),t.listen("window","orientationchange",n)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),n=e.documentElement,o=n.getBoundingClientRect(),c=-o.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,p=-o.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0;return{top:c,left:p}}change(e=l1){return e>0?this._change.pipe(rc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var Gs=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({})}return s})(),Jd=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[gs,Gs,gs,Gs]})}return s})();var sg=Xf();function ug(s){return new yl(s.get(wr),s.get(Dt))}var yl=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(a,e){this._viewportRuler=a,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=Ti(-this._previousScrollPosition.left),a.style.top=Ti(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let a=this._document.documentElement,e=this._document.body,t=a.style,n=e.style,o=t.scrollBehavior||"",c=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),sg&&(t.scrollBehavior=n.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),sg&&(t.scrollBehavior=o,n.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}};function hg(s,a){return new vl(s.get(Ar),s.get(Nt),s.get(wr),a)}var vl=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(a,e,t,n){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=n}attach(a){this._overlayRef,this._overlayRef=a}enable(){if(this._scrollSubscription)return;let a=this._scrollDispatcher.scrolled(0).pipe(Vi(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Ba=class{enable(){}disable(){}attach(){}};function Zd(s,a){return a.some(e=>{let t=s.bottome.bottom,o=s.righte.right;return t||n||o||c})}function rg(s,a){return a.some(e=>{let t=s.tope.bottom,o=s.lefte.right;return t||n||o||c})}function jn(s,a){return new _l(s.get(Ar),s.get(wr),s.get(Nt),a)}var _l=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(a,e,t,n){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=n}attach(a){this._overlayRef,this._overlayRef=a}enable(){if(!this._scrollSubscription){let a=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(a).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();Zd(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},pg=(()=>{class s{_injector=ie(Gt);constructor(){}noop=()=>new Ba;close=e=>hg(this._injector,e);block=()=>ug(this._injector);reposition=e=>jn(this._injector,e);static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),vs=class{positionStrategy;scrollStrategy=new Ba;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(a){if(a){let e=Object.keys(a);for(let t of e)a[t]!==void 0&&(this[t]=a[t])}}};var bl=class{connectionPair;scrollableViewProperties;constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}};var fg=(()=>{class s{_attachedOverlays=[];_document=ie(Dt);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),gg=(()=>{class s extends fg{_ngZone=ie(Nt);_renderer=ie(Xi).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEvents.observers.length>0){this._ngZone.run(()=>t[n]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(n){return(e||(e=kn(s)))(n||s)}})();static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),mg=(()=>{class s extends fg{_platform=ie(li);_ngZone=ie(Nt);_renderer=ie(Xi).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let t=this._document.body,n={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(t,"pointerdown",this._pointerDownListener,n),o.listen(t,"click",this._clickListener,n),o.listen(t,"auxclick",this._clickListener,n),o.listen(t,"contextmenu",this._clickListener,n)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=sn(e)};_clickListener=e=>{let t=sn(e),n=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let c=o.length-1;c>-1;c--){let p=o[c];if(p._outsidePointerEvents.observers.length<1||!p.hasAttached())continue;if(ag(p.overlayElement,t)||ag(p.overlayElement,n))break;let v=p._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>v.next(e)):v.next(e)}};static \u0275fac=(()=>{let e;return function(n){return(e||(e=kn(s)))(n||s)}})();static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function ag(s,a){let e=typeof ShadowRoot<"u"&&ShadowRoot,t=a;for(;t;){if(t===s)return!0;t=e&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var yg=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,n){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} `],encapsulation:2,changeDetection:0})}return s})(),vg=(()=>{class s{_platform=ie(li);_containerElement;_document=ie(Dt);_styleLoader=ie(rn);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||zd()){let n=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{let a=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(a,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),a.style.pointerEvents="none",a.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},El=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new St;_attachments=new St;_detachments=new St;_positionStrategy;_scrollStrategy;_locationChanges=gn.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new St;_outsidePointerEvents=new St;_afterNextRenderRef;constructor(a,e,t,n,o,c,p,v,A,_=!1,m,y){this._portalOutlet=a,this._host=e,this._pane=t,this._config=n,this._ngZone=o,this._keyboardDispatcher=c,this._document=p,this._location=v,this._outsideClickDispatcher=A,this._animationsDisabled=_,this._injector=m,this._renderer=y,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(a){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(a);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=tn(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let a=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){let a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,a&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config=Fe(Fe({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Yt(Fe({},this._config),{direction:a}),this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){let a=this._config.direction;return a?typeof a=="string"?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let a=this._pane.style;a.width=Ti(this._config.width),a.height=Ti(this._config.height),a.minWidth=Ti(this._config.minWidth),a.minHeight=Ti(this._config.minHeight),a.maxWidth=Ti(this._config.maxWidth),a.maxHeight=Ti(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){let a="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new eu(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(a))}):this._backdropRef.element.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(a,e,t){let n=_r(e||[]).filter(o=>!!o);n.length&&(t?a.classList.add(...n):a.classList.remove(...n))}_detachContentWhenEmpty(){let a=!1;try{this._detachContentAfterRenderRef=tn(()=>{a=!0,this._detachContent()},{injector:this._injector})}catch(e){if(a)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let a=this._scrollStrategy;a?.disable(),a?.detach?.()}},og="cdk-overlay-connected-position-bounding-box",c1=/([A-Za-z%]+)$/;function Sr(s,a){return new Cl(a,s.get(wr),s.get(Dt),s.get(li),s.get(vg))}var Cl=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new St;_resizeSubscription=gn.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(a,e,t,n,o){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=o,this.setOrigin(a)}attach(a){this._overlayRef&&this._overlayRef,this._validatePositions(),a.hostElement.classList.add(og),this._overlayRef=a,this._boundingBox=a.hostElement,this._pane=a.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let a=this._originRect,e=this._overlayRect,t=this._viewportRect,n=this._containerRect,o=[],c;for(let p of this._preferredPositions){let v=this._getOriginPoint(a,n,p),A=this._getOverlayPoint(v,e,p),_=this._getOverlayFit(A,e,t,p);if(_.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(p,v);return}if(this._canFitWithFlexibleDimensions(_,A,t)){o.push({position:p,origin:v,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(v,p)});continue}(!c||c.overlayFit.visibleArea<_.visibleArea)&&(c={overlayFit:_,overlayPoint:A,originPoint:v,position:p,overlayRect:e})}if(o.length){let p=null,v=-1;for(let A of o){let _=A.boundingBoxRect.width*A.boundingBoxRect.height*(A.position.weight||1);_>v&&(v=_,p=A)}this._isPushed=!1,this._applyPosition(p.position,p.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(c.position,c.originPoint);return}this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ws(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(og),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,a.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let n;if(t.originX=="center")n=a.left+a.width/2;else{let c=this._isRtl()?a.right:a.left,p=this._isRtl()?a.left:a.right;n=t.originX=="start"?c:p}e.left<0&&(n-=e.left);let o;return t.originY=="center"?o=a.top+a.height/2:o=t.originY=="top"?a.top:a.bottom,e.top<0&&(o-=e.top),{x:n,y:o}}_getOverlayPoint(a,e,t){let n;t.overlayX=="center"?n=-e.width/2:t.overlayX==="start"?n=this._isRtl()?-e.width:0:n=this._isRtl()?0:-e.width;let o;return t.overlayY=="center"?o=-e.height/2:o=t.overlayY=="top"?0:-e.height,{x:a.x+n,y:a.y+o}}_getOverlayFit(a,e,t,n){let o=cg(e),{x:c,y:p}=a,v=this._getOffset(n,"x"),A=this._getOffset(n,"y");v&&(c+=v),A&&(p+=A);let _=0-c,m=c+o.width-t.width,y=0-p,C=p+o.height-t.height,T=this._subtractOverflows(o.width,_,m),U=this._subtractOverflows(o.height,y,C),G=T*U;return{visibleArea:G,isCompletelyWithinViewport:o.width*o.height===G,fitsInViewportVertically:U===o.height,fitsInViewportHorizontally:T==o.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){let n=t.bottom-e.y,o=t.right-e.x,c=lg(this._overlayRef.getConfig().minHeight),p=lg(this._overlayRef.getConfig().minWidth),v=a.fitsInViewportVertically||c!=null&&c<=n,A=a.fitsInViewportHorizontally||p!=null&&p<=o;return v&&A}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};let n=cg(e),o=this._viewportRect,c=Math.max(a.x+n.width-o.width,0),p=Math.max(a.y+n.height-o.height,0),v=Math.max(o.top-t.top-a.y,0),A=Math.max(o.left-t.left-a.x,0),_=0,m=0;return n.width<=o.width?_=A||-c:_=a.xT&&!this._isInitialRender&&!this._growAfterOpen&&(c=a.y-T/2)}let v=e.overlayX==="start"&&!n||e.overlayX==="end"&&n,A=e.overlayX==="end"&&!n||e.overlayX==="start"&&n,_,m,y;if(A)y=t.width-a.x+this._viewportMargin*2,_=a.x-this._viewportMargin;else if(v)m=a.x,_=t.right-a.x;else{let C=Math.min(t.right-a.x+t.left,a.x),T=this._lastBoundingBoxSize.width;_=C*2,m=a.x-C,_>T&&!this._isInitialRender&&!this._growAfterOpen&&(m=a.x-T/2)}return{top:c,left:m,bottom:p,right:y,width:_,height:o}}_setBoundingBoxStyles(a,e){let t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;n.height=Ti(t.height),n.top=Ti(t.top),n.bottom=Ti(t.bottom),n.width=Ti(t.width),n.left=Ti(t.left),n.right=Ti(t.right),e.overlayX==="center"?n.alignItems="center":n.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?n.justifyContent="center":n.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(n.maxHeight=Ti(o)),c&&(n.maxWidth=Ti(c))}this._lastBoundingBoxSize=t,Ws(this._boundingBox.style,n)}_resetBoundingBoxStyles(){Ws(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ws(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){let t={},n=this._hasExactPosition(),o=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(n){let _=this._viewportRuler.getViewportScrollPosition();Ws(t,this._getExactOverlayY(e,a,_)),Ws(t,this._getExactOverlayX(e,a,_))}else t.position="static";let p="",v=this._getOffset(e,"x"),A=this._getOffset(e,"y");v&&(p+=`translateX(${v}px) `),A&&(p+=`translateY(${A}px)`),t.transform=p.trim(),c.maxHeight&&(n?t.maxHeight=Ti(c.maxHeight):o&&(t.maxHeight="")),c.maxWidth&&(n?t.maxWidth=Ti(c.maxWidth):o&&(t.maxWidth="")),Ws(this._pane.style,t)}_getExactOverlayY(a,e,t){let n={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,a);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t)),a.overlayY==="bottom"){let c=this._document.documentElement.clientHeight;n.bottom=`${c-(o.y+this._overlayRect.height)}px`}else n.top=Ti(o.y);return n}_getExactOverlayX(a,e,t){let n={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,a);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,t));let c;if(this._isRtl()?c=a.overlayX==="end"?"left":"right":c=a.overlayX==="end"?"right":"left",c==="right"){let p=this._document.documentElement.clientWidth;n.right=`${p-(o.x+this._overlayRect.width)}px`}else n.left=Ti(o.x);return n}_getScrollVisibility(){let a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(n=>n.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:rg(a,t),isOriginOutsideView:Zd(a,t),isOverlayClipped:rg(e,t),isOverlayOutsideView:Zd(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,n)=>t-Math.max(n,0),a)}_getNarrowedViewportRect(){let a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return e==="x"?a.offsetX==null?this._offsetX:a.offsetX:a.offsetY==null?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&_r(a).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){let a=this._origin;if(a instanceof Vt)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();let e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}};function Ws(s,a){for(let e in a)a.hasOwnProperty(e)&&(s[e]=a[e]);return s}function lg(s){if(typeof s!="number"&&s!=null){let[a,e]=s.split(c1);return!e||e==="px"?parseFloat(a):null}return s||null}function cg(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}function d1(s,a){return s===a?!0:s.isOriginClipped===a.isOriginClipped&&s.isOriginOutsideView===a.isOriginOutsideView&&s.isOverlayClipped===a.isOverlayClipped&&s.isOverlayOutsideView===a.isOverlayOutsideView}var dg="cdk-global-overlay-wrapper";function wl(s){return new Al}var Al=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(a){let e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(dg),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._xOffset=a,this._xPosition="left",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._xOffset=a,this._xPosition="right",this}start(a=""){return this._xOffset=a,this._xPosition="start",this}end(a=""){return this._xOffset=a,this._xPosition="end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._xPosition="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:n,height:o,maxWidth:c,maxHeight:p}=t,v=(n==="100%"||n==="100vw")&&(!c||c==="100%"||c==="100vw"),A=(o==="100%"||o==="100vh")&&(!p||p==="100%"||p==="100vh"),_=this._xPosition,m=this._xOffset,y=this._overlayRef.getConfig().direction==="rtl",C="",T="",U="";v?U="flex-start":_==="center"?(U="center",y?T=m:C=m):y?_==="left"||_==="end"?(U="flex-end",C=m):(_==="right"||_==="start")&&(U="flex-start",T=m):_==="left"||_==="start"?(U="flex-start",C=m):(_==="right"||_==="end")&&(U="flex-end",T=m),a.position=this._cssPosition,a.marginLeft=v?"0":C,a.marginTop=A?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=v?"0":T,e.justifyContent=U,e.alignItems=A?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(dg),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}},_g=(()=>{class s{_injector=ie(Gt);constructor(){}global(){return wl()}flexibleConnectedTo(e){return Sr(this._injector,e)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function _s(s,a){s.get(rn).load(yg);let e=s.get(vg),t=s.get(Dt),n=s.get(Hs),o=s.get(Us),c=s.get(Dn),p=t.createElement("div"),v=t.createElement("div");v.id=n.getId("cdk-overlay-"),v.classList.add("cdk-overlay-pane"),p.appendChild(v),e.getContainerElement().appendChild(p);let A=new Na(v,o,s),_=new vs(a),m=s.get(Ci,null,{optional:!0})||s.get(Xi).createRenderer(null,null);return _.direction=_.direction||c.value,new El(A,p,v,_,s.get(Nt),s.get(gg),t,s.get(ls),s.get(mg),a?.disableAnimations??s.get(Qs,null,{optional:!0})==="NoopAnimations",s.get(ln),m)}var bg=(()=>{class s{scrollStrategies=ie(pg);_positionBuilder=ie(_g);_injector=ie(Gt);constructor(){}create(e){return _s(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var u1=new Ge("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let s=ie(Gt);return()=>jn(s)}});function h1(s){let a=ie(Gt);return()=>jn(a)}var p1={provide:u1,useFactory:h1},Tr=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({providers:[bg,p1],imports:[gs,Qd,Jd,Jd]})}return s})();function f1(s,a){if(s&1){let e=Kt();ue(0,"div",1)(1,"button",2),dt("click",function(){Je(e);let n=fe();return Ze(n.action())}),we(2),he()()}if(s&2){let e=fe();oe(2),_t(" ",e.data.action," ")}}var g1=["label"];function m1(s,a){}var y1=Math.pow(2,31)-1,Va=class{_overlayRef;instance;containerInstance;_afterDismissed=new St;_afterOpened=new St;_onAction=new St;_durationTimeoutId;_dismissedByAction=!1;constructor(a,e){this._overlayRef=e,this.containerInstance=a,a._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(a){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(a,y1))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Eg=new Ge("MatSnackBarData"),Fr=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},v1=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return s})(),_1=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return s})(),b1=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return s})(),E1=(()=>{class s{snackBarRef=ie(Va);data=ie(Eg);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(t,n){t&1&&(ue(0,"div",0),we(1),he(),st(2,f1,3,1,"div",1)),t&2&&(oe(),_t(" ",n.data.message,` `),oe(),rt(n.hasAction?2:-1))},dependencies:[ng,v1,_1,b1],styles:[`.mat-mdc-simple-snack-bar{display:flex} `],encapsulation:2,changeDetection:0})}return s})(),tu="_mat-snack-bar-enter",iu="_mat-snack-bar-exit",C1=(()=>{class s extends Cr{_ngZone=ie(Nt);_elementRef=ie(Vt);_changeDetectorRef=ie(gi);_platform=ie(li);_animationsDisabled=Fi();snackBarConfig=ie(Fr);_document=ie(Dt);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=ie(Gt);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new St;_onExit=new St;_onEnter=new St;_animationState="void";_live;_label;_role;_liveElementId=ie(Hs).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),t}attachTemplatePortal(e){this._assertNotAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),t}attachDomPortal=e=>{this._assertNotAttached();let t=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),t};onAnimationEnd(e){e===iu?this._completeExit():e===tu&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?tn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(tu)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(tu)},200)))}exit(){return this._destroyed?gt(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?tn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(iu)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(iu),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(c=>e.classList.add(c)):e.classList.add(t)),this._exposeToModals();let n=this._label.nativeElement,o="mdc-snackbar__label";n.classList.toggle(o,!n.querySelector(`.${o}`))}_exposeToModals(){let e=this._liveElementId,t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{let t=e.getAttribute("aria-owns");if(t){let n=t.replace(this._liveElementId,"").trim();n.length>0?e.setAttribute("aria-owns",n):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,t=e.querySelector("[aria-hidden]"),n=e.querySelector("[aria-live]");if(t&&n){let o=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(o=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),o?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["mat-snack-bar-container"]],viewQuery:function(t,n){if(t&1&&(ii(Kd,7),ii(g1,7)),t&2){let o;Ht(o=qt())&&(n._portalOutlet=o.first),Ht(o=qt())&&(n._label=o.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(t,n){t&1&&dt("animationend",function(c){return n.onAnimationEnd(c.animationName)})("animationcancel",function(c){return n.onAnimationEnd(c.animationName)}),t&2&&vt("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled)},features:[en],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(ue(0,"div",1)(1,"div",2,0)(3,"div",3),Gi(4,m1,0,0,"ng-template",4),he(),Oe(5,"div"),he()()),t&2&&(oe(5),Ye("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[Kd],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} `],encapsulation:2})}return s})();function A1(){return new Fr}var w1=new Ge("mat-snack-bar-default-options",{providedIn:"root",factory:A1}),Cg=(()=>{class s{_live=ie(Id);_injector=ie(Gt);_breakpointObserver=ie(Pa);_parentSnackBar=ie(s,{optional:!0,skipSelf:!0});_defaultConfig=ie(w1);_animationsDisabled=Fi();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=E1;snackBarContainerComponent=C1;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,t){return this._attach(e,t)}openFromTemplate(e,t){return this._attach(e,t)}open(e,t="",n){let o=Fe(Fe({},this._defaultConfig),n);return o.data={message:e,action:t},o.announcementMessage===e&&(o.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,o)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,t){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=Gt.create({parent:n||this._injector,providers:[{provide:Fr,useValue:t}]}),c=new ms(this.snackBarContainerComponent,t.viewContainerRef,o),p=e.attach(c);return p.instance.snackBarConfig=t,p.instance}_attach(e,t){let n=Fe(Fe(Fe({},new Fr),this._defaultConfig),t),o=this._createOverlay(n),c=this._attachSnackBarContainer(o,n),p=new Va(c,o);if(e instanceof vn){let v=new ys(e,null,{$implicit:n.data,snackBarRef:p});p.instance=c.attachTemplatePortal(v)}else{let v=this._createInjector(n,p),A=new ms(e,void 0,v),_=c.attachComponentPortal(A);p.instance=_.instance}return this._breakpointObserver.observe(qf.HandsetPortrait).pipe(Ei(o.detachments())).subscribe(v=>{o.overlayElement.classList.toggle(this.handsetCssClass,v.matches)}),n.announcementMessage&&c._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(p,n),this._openedSnackBarRef=p,this._openedSnackBarRef}_animateSnackBar(e,t){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),t.duration&&t.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(t.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let t=new vs;t.direction=e.direction;let n=wl(this._injector),o=e.direction==="rtl",c=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!o||e.horizontalPosition==="end"&&o,p=!c&&e.horizontalPosition!=="center";return c?n.left("0"):p?n.right("0"):n.centerHorizontally(),e.verticalPosition==="top"?n.top("0"):n.bottom("0"),t.positionStrategy=n,t.disableAnimations=this._animationsDisabled,_s(this._injector,t)}_createInjector(e,t){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector;return Gt.create({parent:n||this._injector,providers:[{provide:Va,useValue:t},{provide:Eg,useValue:e.data}]})}static \u0275fac=function(t){return new(t||s)};static \u0275prov=ze({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var F1=["mat-menu-item",""],D1=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],U1=["mat-icon, [matMenuItemIcon]","*"];function P1(s,a){s&1&&(Or(),ue(0,"svg",2),Oe(1,"polygon",3),he())}var I1=["*"];function L1(s,a){if(s&1){let e=Kt();ue(0,"div",0),dt("click",function(){Je(e);let n=fe();return Ze(n.closed.emit("click"))})("animationstart",function(n){Je(e);let o=fe();return Ze(o._onAnimationStart(n.animationName))})("animationend",function(n){Je(e);let o=fe();return Ze(o._onAnimationDone(n.animationName))})("animationcancel",function(n){Je(e);let o=fe();return Ze(o._onAnimationDone(n.animationName))}),ue(1,"div",1),Yi(2),he()()}if(s&2){let e=fe();Tn(e._classList),vt("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating),xe("id",e.panelId),Ye("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var ru=new Ge("MAT_MENU_PANEL"),Ha=(()=>{class s{_elementRef=ie(Vt);_document=ie(Dt);_focusMonitor=ie(ps);_parentMenu=ie(ru,{optional:!0});_changeDetectorRef=ie(gi);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new St;_focused=new St;_highlighted=!1;_triggersSubmenu=!1;constructor(){ie(rn).load(Er),this._parentMenu?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let n=0;n{class s{_elementRef=ie(Vt);_changeDetectorRef=ie(gi);_injector=ie(Gt);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Fi();_allItems;_directDescendantItems=new Nr;_classList={};_panelAnimationState="void";_animationDone=new St;_isAnimating=!1;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(e){let t=this._previousPanelClass,n=Fe({},this._classList);t&&t.length&&t.split(" ").forEach(o=>{n[o]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(o=>{n[o]=!0}),this._elementRef.nativeElement.className=""),this._classList=n}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new hi;close=this.closed;panelId=ie(Hs).getId("mat-menu-panel-");constructor(){let e=ie(k1);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ia(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Gn(this._directDescendantItems),bi(e=>eo(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let n=e.toArray(),o=Math.max(0,Math.min(n.length-1,t.activeItemIndex||0));n[o]&&!n[o].disabled?t.setActiveItem(o):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(Gn(this._directDescendantItems),bi(t=>eo(...t.map(n=>n._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,n=this._keyManager;switch(t){case 27:br(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&n.setFocusOrigin("keyboard"),n.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=tn(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let n=this._keyManager;n.setFocusOrigin(e).setFirstItemActive(),!n.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=Yt(Fe({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let t=e===Sl;(t||e===nu)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating=!1)}_onAnimationStart(e){(e===nu||e===Sl)&&(this._isAnimating=!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Sl),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?nu:Sl)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(Gn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["mat-menu"]],contentQueries:function(t,n,o){if(t&1&&(Wn(o,R1,5),Wn(o,Ha,5),Wn(o,Ha,4)),t&2){let c;Ht(c=qt())&&(n.lazyContent=c.first),Ht(c=qt())&&(n._allItems=c),Ht(c=qt())&&(n.items=c)}},viewQuery:function(t,n){if(t&1&&ii(vn,5),t&2){let o;Ht(o=qt())&&(n.templateRef=o.first)}},hostVars:3,hostBindings:function(t,n){t&2&&Ye("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",Ai],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:Ai(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[nn([{provide:ru,useExisting:s}])],ngContentSelectors:I1,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,n){t&1&&(_n(),Gi(0,L1,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} `],encapsulation:2,changeDetection:0})}return s})(),Ag=new Ge("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let s=ie(Gt);return()=>jn(s)}});function M1(s){let a=ie(Gt);return()=>jn(a)}var O1={provide:Ag,deps:[],useFactory:M1};var ja=new WeakMap,wg=(()=>{class s{_element=ie(Vt);_viewContainerRef=ie($i);_menuItemInstance=ie(Ha,{optional:!0,self:!0});_dir=ie(Dn,{optional:!0});_focusMonitor=ie(ps);_ngZone=ie(Nt);_injector=ie(Gt);_scrollStrategy=ie(Ag);_changeDetectorRef=ie(gi);_animationsDisabled=Fi();_cleanupTouchstart;_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=gn.EMPTY;_hoverSubscription=gn.EMPTY;_menuCloseSubscription=gn.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new hi;onMenuOpen=this.menuOpened;menuClosed=new hi;onMenuClose=this.menuClosed;constructor(){let e=ie(ru,{optional:!0}),t=ie(Ci);this._parentMaterialMenu=e instanceof Dr?e:void 0,this._cleanupTouchstart=t.listen(this._element.nativeElement,"touchstart",n=>{Vs(n)||(this._openedBy="touch")},{passive:!0})}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this.menu&&this._ownsMenu(this.menu)&&ja.delete(this.menu),this._cleanupTouchstart(),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;this._pendingRemoval?.unsubscribe();let t=ja.get(e);ja.set(e,this),t&&t!==this&&t.closeMenu();let n=this._createOverlay(e),o=n.getConfig(),c=o.positionStrategy;this._setPosition(e,c),o.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,n.hasAttached()||(n.attach(this._getPortal(e)),e.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),e instanceof Dr&&(e._setIsOpen(!0),e._directDescendantItems.changes.pipe(Ei(e.close)).subscribe(()=>{c.withLockedPosition(!1).reapplyLastPosition(),c.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){let t=this._overlayRef,n=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),n instanceof Dr&&this._ownsMenu(n)?(this._pendingRemoval=n._animationDone.pipe(yn(1)).subscribe(()=>{t.detach(),n.lazyContent?.detach()}),n._setIsOpen(!1)):(t.detach(),n?.lazyContent?.detach()),n&&this._ownsMenu(n)&&ja.delete(n),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=_s(this._injector,t),this._overlayRef.keydownEvents().subscribe(n=>{this.menu instanceof Dr&&this.menu._handleKeydown(n)})}return this._overlayRef}_getOverlayConfig(e){return new vs({positionStrategy:Sr(this._injector,this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(n=>{this._ngZone.run(()=>{let o=n.connectionPair.overlayX==="start"?"after":"before",c=n.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(o,c)})})}_setPosition(e,t){let[n,o]=e.xPosition==="before"?["end","start"]:["start","end"],[c,p]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[v,A]=[c,p],[_,m]=[n,o],y=0;if(this.triggersSubmenu()){if(m=n=e.xPosition==="before"?"start":"end",o=_=n==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let C=this._parentMaterialMenu.items.first;this._parentInnerPadding=C?C._getHostElement().offsetTop:0}y=c==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(v=c==="top"?"bottom":"top",A=p==="top"?"bottom":"top");t.withPositions([{originX:n,originY:v,overlayX:_,overlayY:c,offsetY:y},{originX:o,originY:v,overlayX:m,overlayY:c,offsetY:y},{originX:n,originY:A,overlayX:_,overlayY:p,offsetY:-y},{originX:o,originY:A,overlayX:m,overlayY:p,offsetY:-y}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:gt(),o=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Vi(c=>this._menuOpen&&c!==this._menuItemInstance)):gt();return eo(e,n,o,t)}_handleMousedown(e){Bs(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&(this._openedBy="mouse",this.openMenu())}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new ys(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return ja.get(e)===this}static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,n){t&1&&dt("click",function(c){return n._handleClick(c)})("mousedown",function(c){return n._handleMousedown(c)})("keydown",function(c){return n._handleKeydown(c)}),t&2&&Ye("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu==null?null:n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return s})(),Sg=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({providers:[O1],imports:[ml,Si,Tr,Gs,Si]})}return s})(),Tg={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},OP=Tg.fadeInItems,NP=Tg.transformMenu;var B1=["knob"],V1=["valueIndicatorContainer"];function j1(s,a){if(s&1&&(ue(0,"div",2,1)(2,"div",5)(3,"span",6),we(4),he()()()),s&2){let e=fe();oe(4),Ki(e.valueIndicatorText)}}var H1=["trackActive"],q1=["*"];function z1(s,a){if(s&1&&Oe(0,"div"),s&2){let e=a.$implicit,t=a.$index,n=fe(3);Tn(e===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),xn("transform",n._calcTickMarkTransform(t))}}function G1(s,a){if(s&1&&Ps(0,z1,1,4,"div",8,zu),s&2){let e=fe(2);Is(e._tickMarks)}}function W1(s,a){if(s&1&&(ue(0,"div",6,1),st(2,G1,2,0),he()),s&2){let e=fe();oe(2),rt(e._cachedWidth?2:-1)}}function X1(s,a){if(s&1&&Oe(0,"mat-slider-visual-thumb",7),s&2){let e=fe();xe("discrete",e.discrete)("thumbPosition",1)("valueIndicatorText",e.startValueIndicatorText)}}var Rt=function(s){return s[s.START=1]="START",s[s.END=2]="END",s}(Rt||{}),Ur=function(s){return s[s.ACTIVE=0]="ACTIVE",s[s.INACTIVE=1]="INACTIVE",s}(Ur||{}),au=new Ge("_MatSlider"),Fg=new Ge("_MatSliderThumb"),$1=new Ge("_MatSliderRangeThumb"),Dg=new Ge("_MatSliderVisualThumb");var Y1=(()=>{class s{_cdr=ie(gi);_ngZone=ie(Nt);_slider=ie(au);_renderer=ie(Ci);_listenerCleanups;discrete;thumbPosition;valueIndicatorText;_ripple;_knob;_valueIndicatorContainer;_sliderInput;_sliderInputEl;_hoverRippleRef;_focusRippleRef;_activeRippleRef;_isHovered=!1;_isActive=!1;_isValueIndicatorVisible=!1;_hostElement=ie(Vt).nativeElement;_platform=ie(li);constructor(){}ngAfterViewInit(){let e=this._slider._getInput(this.thumbPosition);e&&(this._ripple.radius=24,this._sliderInput=e,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(()=>{let t=this._sliderInputEl,n=this._renderer;this._listenerCleanups=[n.listen(t,"pointermove",this._onPointerMove),n.listen(t,"pointerdown",this._onDragStart),n.listen(t,"pointerup",this._onDragEnd),n.listen(t,"pointerleave",this._onMouseLeave),n.listen(t,"focus",this._onFocus),n.listen(t,"blur",this._onBlur)]}))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e())}_onPointerMove=e=>{if(this._sliderInput._isFocused)return;let t=this._hostElement.getBoundingClientRect(),n=this._slider._isCursorOnSliderThumb(e,t);this._isHovered=n,n?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)};_onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)};_onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")};_onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")};_onDragStart=e=>{e.button===0&&(this._isActive=!0,this._showActiveRipple())};_onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef),this._platform.SAFARI&&this._showHoverRipple()};_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(e){return e?.state===Ji.FADING_IN||e?.state===Ji.VISIBLE}_showRipple(e,t){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(this.thumbPosition===Rt.START?Rt.END:Rt.START)._showValueIndicator(),!(this._slider._globalRippleOptions?.disabled&&!t)))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:e,centered:!0,persistent:!0})}_hideRipple(e){if(e?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();let t=this._getSibling();t._isShowingAnyRipple()||(this._hideValueIndicator(),t._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(this.thumbPosition===Rt.START?Rt.END:Rt.START)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(t,n){if(t&1&&(ii(Ma,5),ii(B1,5),ii(V1,5)),t&2){let o;Ht(o=qt())&&(n._ripple=o.first),Ht(o=qt())&&(n._knob=o.first),Ht(o=qt())&&(n._valueIndicatorContainer=o.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[nn([{provide:Dg,useExisting:s}])],decls:4,vars:2,consts:[["knob",""],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator-container"],[1,"mdc-slider__thumb-knob"],["matRipple","",1,"mat-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(t,n){t&1&&(st(0,j1,5,1,"div",2),Oe(1,"div",3,0)(3,"div",4)),t&2&&(rt(n.discrete?0:-1),oe(3),xe("matRippleDisabled",!0))},dependencies:[Ma],styles:[`.mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px} `],encapsulation:2,changeDetection:0})}return s})(),Ug=(()=>{class s{_ngZone=ie(Nt);_cdr=ie(gi);_elementRef=ie(Vt);_dir=ie(Dn,{optional:!0});_globalRippleOptions=ie(xa,{optional:!0});_trackActive;_thumbs;_input;_inputs;get disabled(){return this._disabled}set disabled(e){this._disabled=e;let t=this._getInput(Rt.END),n=this._getInput(Rt.START);t&&(t.disabled=this._disabled),n&&(n.disabled=this._disabled)}_disabled=!1;get discrete(){return this._discrete}set discrete(e){this._discrete=e,this._updateValueIndicatorUIs()}_discrete=!1;showTickMarks=!1;get min(){return this._min}set min(e){let t=e==null||isNaN(e)?this._min:e;this._min!==t&&this._updateMin(t)}_min=0;color;disableRipple=!1;_updateMin(e){let t=this._min;this._min=e,this._isRange?this._updateMinRange({old:t,new:e}):this._updateMinNonRange(e),this._onMinMaxOrStepChange()}_updateMinRange(e){let t=this._getInput(Rt.END),n=this._getInput(Rt.START),o=t.value,c=n.value;n.min=e.new,t.min=Math.max(e.new,n.value),n.max=Math.min(t.max,t.value),n._updateWidthInactive(),t._updateWidthInactive(),e.newe.old?this._onTranslateXChangeBySideEffect(n,t):this._onTranslateXChangeBySideEffect(t,n),o!==t.value&&this._onValueChange(t),c!==n.value&&this._onValueChange(n)}_updateMaxNonRange(e){let t=this._getInput(Rt.END);if(t){let n=t.value;t.max=e,t._updateThumbUIByValue(),this._updateTrackUI(t),n!==t.value&&this._onValueChange(t)}}get step(){return this._step}set step(e){let t=isNaN(e)?this._step:e;this._step!==t&&this._updateStep(t)}_step=1;_updateStep(e){this._step=e,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){let e=this._getInput(Rt.END),t=this._getInput(Rt.START),n=e.value,o=t.value,c=t.value;e.min=this._min,t.max=this._max,e.step=this._step,t.step=this._step,this._platform.SAFARI&&(e.value=e.value,t.value=t.value),e.min=Math.max(this._min,t.value),t.max=Math.min(this._max,e.value),t._updateWidthInactive(),e._updateWidthInactive(),e.value`${e}`;_tickMarks;_noopAnimations=Fi();_dirChangeSubscription;_resizeObserver;_cachedWidth;_cachedLeft;_rippleRadius=24;startValueIndicatorText="";endValueIndicatorText="";_endThumbTransform;_startThumbTransform;_isRange=!1;_isRtl=!1;_hasViewInitialized=!1;_tickMarkTrackWidth=0;_hasAnimation=!1;_resizeTimer=null;_platform=ie(li);constructor(){ie(rn).load(Er),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl=this._dir.value==="rtl")}_knobRadius=8;_inputPadding;ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();let e=this._getInput(Rt.END),t=this._getInput(Rt.START);this._isRange=!!e&&!!t,this._cdr.detectChanges();let n=this._getThumb(Rt.END);this._rippleRadius=n._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._isRange?this._initUIRange(e,t):this._initUINonRange(e),this._updateTrackUI(e),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(e){e.initProps(),e.initUI(),this._updateValueIndicatorUI(e),this._hasViewInitialized=!0,e._updateThumbUIByValue()}_initUIRange(e,t){e.initProps(),e.initUI(),t.initProps(),t.initUI(),e._updateMinMax(),t._updateMinMax(),e._updateStaticStyles(),t._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,e._updateThumbUIByValue(),t._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl=this._dir?.value==="rtl",this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){let e=this._getInput(Rt.END),t=this._getInput(Rt.START);e._setIsLeftThumb(),t._setIsLeftThumb(),e.translateX=e._calcTranslateXByValue(),t.translateX=t._calcTranslateXByValue(),e._updateStaticStyles(),t._updateStaticStyles(),e._updateWidthInactive(),t._updateWidthInactive(),e._updateThumbUIByValue(),t._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(Rt.END)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(Rt.START)._isActive||this._getThumb(Rt.END)._isActive}_getValue(e=Rt.END){let t=this._getInput(e);return t?t.value:this.min}_skipUpdate(){return!!(this._getInput(Rt.START)?._skipUIUpdate||this._getInput(Rt.END)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(e){let t=this._trackActive.nativeElement.style;t.left=e.left,t.right=e.right,t.transformOrigin=e.transformOrigin,t.transform=e.transform}_calcTickMarkTransform(e){let t=e*(this._tickMarkTrackWidth/(this._tickMarks.length-1));return`translateX(${this._isRtl?this._cachedWidth-6-t:t}px`}_onTranslateXChange(e){this._hasViewInitialized&&(this._updateThumbUI(e),this._updateTrackUI(e),this._updateOverlappingThumbUI(e))}_onTranslateXChangeBySideEffect(e,t){this._hasViewInitialized&&(e._updateThumbUIByValue(),t._updateThumbUIByValue())}_onValueChange(e){this._hasViewInitialized&&(this._updateValueIndicatorUI(e),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){let e=this._getInput(Rt.END),t=this._getInput(Rt.START);e._updateThumbUIByValue(),t._updateThumbUIByValue(),e._updateStaticStyles(),t._updateStaticStyles(),e._updateMinMax(),t._updateMinMax(),e._updateWidthInactive(),t._updateWidthInactive()}else{let e=this._getInput(Rt.END);e&&e._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_thumbsOverlap=!1;_areThumbsOverlapping(){let e=this._getInput(Rt.START),t=this._getInput(Rt.END);return!e||!t?!1:t.translateX-e.translateX<20}_updateOverlappingThumbClassNames(e){let t=e.getSibling(),n=this._getThumb(e.thumbPosition);this._getThumb(t.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),n._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(e){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(e))}_updateThumbUI(e){if(this._skipUpdate())return;let t=this._getThumb(e.thumbPosition===Rt.END?Rt.END:Rt.START);t._hostElement.style.transform=`translateX(${e.translateX}px)`}_updateValueIndicatorUI(e){if(this._skipUpdate())return;let t=this.displayWith(e.value);if(this._hasViewInitialized?e._valuetext.set(t):e._hostElement.setAttribute("aria-valuetext",t),this.discrete){e.thumbPosition===Rt.START?this.startValueIndicatorText=t:this.endValueIndicatorText=t;let n=this._getThumb(e.thumbPosition);t.length<3?n._hostElement.classList.add("mdc-slider__thumb--short-value"):n._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){let e=this._getInput(Rt.END),t=this._getInput(Rt.START);e&&this._updateValueIndicatorUI(e),t&&this._updateValueIndicatorUI(t)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;let e=this._step&&this._step>0?this._step:1,n=(Math.floor(this.max/e)*e-this.min)/(this.max-this.min);this._tickMarkTrackWidth=(this._cachedWidth-6)*n}_updateTrackUI(e){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(e):this._updateTrackUINonRange(e))}_updateTrackUIRange(e){let t=e.getSibling();if(!t||!this._cachedWidth)return;let n=Math.abs(t.translateX-e.translateX)/this._cachedWidth;e._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:`${this._cachedWidth-t.translateX}px`,transformOrigin:"right",transform:`scaleX(${n})`}):this._setTrackActiveStyles({left:`${t.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${n})`})}_updateTrackUINonRange(e){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-e.fillPercentage})`}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${e.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||this.step===void 0||this.min===void 0||this.max===void 0)return;let e=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(e):this._updateTickMarkUINonRange(e)}_updateTickMarkUINonRange(e){let t=this._getValue(),n=Math.max(Math.round((t-this.min)/e),0)+1,o=Math.max(Math.round((this.max-t)/e),0)-1;this._isRtl?n++:o++,this._tickMarks=Array(n).fill(Ur.ACTIVE).concat(Array(o).fill(Ur.INACTIVE))}_updateTickMarkUIRange(e){let t=this._getValue(),n=this._getValue(Rt.START),o=Math.max(Math.round((n-this.min)/e),0),c=Math.max(Math.round((t-n)/e)+1,0),p=Math.max(Math.round((this.max-t)/e),0);this._tickMarks=Array(o).fill(Ur.INACTIVE).concat(Array(c).fill(Ur.ACTIVE),Array(p).fill(Ur.INACTIVE))}_getInput(e){if(e===Rt.END&&this._input)return this._input;if(this._inputs?.length)return e===Rt.START?this._inputs.first:this._inputs.last}_getThumb(e){return e===Rt.END?this._thumbs?.last:this._thumbs?.first}_setTransition(e){this._hasAnimation=!this._platform.IOS&&e&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(e,t){let n=t.width/2,o=t.x+n,c=t.y+n,p=e.clientX-o,v=e.clientY-c;return Math.pow(p,2)+Math.pow(v,2)ou),multi:!0};var ou=(()=>{class s{_ngZone=ie(Nt);_elementRef=ie(Vt);_cdr=ie(gi);_slider=ie(au);_platform=ie(li);_listenerCleanups;get value(){return Ri(this._hostElement.value,0)}set value(e){e===null&&(e=this._getDefaultValue()),e=isNaN(e)?0:e;let t=e+"";if(!this._hasSetInitialValue){this._initialValue=t;return}this._isActive||this._setValue(t)}_setValue(e){this._hostElement.value=e,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()}valueChange=new hi;dragStart=new hi;dragEnd=new hi;get translateX(){return this._slider.min>=this._slider.max?(this._translateX=this._tickMarkOffset,this._translateX):(this._translateX===void 0&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(e){this._translateX=e}_translateX;thumbPosition=Rt.END;get min(){return Ri(this._hostElement.min,0)}set min(e){this._hostElement.min=e+"",this._cdr.detectChanges()}get max(){return Ri(this._hostElement.max,0)}set max(e){this._hostElement.max=e+"",this._cdr.detectChanges()}get step(){return Ri(this._hostElement.step,0)}set step(e){this._hostElement.step=e+"",this._cdr.detectChanges()}get disabled(){return Ai(this._hostElement.disabled)}set disabled(e){this._hostElement.disabled=e,this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?this._translateX===0?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_hostElement=this._elementRef.nativeElement;_valuetext=Zi("");_knobRadius=8;_tickMarkOffset=3;_isActive=!1;_isFocused=!1;_setIsFocused(e){this._isFocused=e}_hasSetInitialValue=!1;_initialValue;_formControl;_destroyed=new St;_skipUIUpdate=!1;_onChangeFn;_onTouchedFn=()=>{};_isControlInitialized=!1;constructor(){let e=ie(Ci);this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[e.listen(this._hostElement,"pointerdown",this._onPointerDown.bind(this)),e.listen(this._hostElement,"pointermove",this._onPointerMove.bind(this)),e.listen(this._hostElement,"pointerup",this._onPointerUp.bind(this))]})}ngOnDestroy(){this._listenerCleanups.forEach(e=>e()),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,this._initialValue===void 0?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._slider._setTransition(!1),this._slider._updateTrackUI(this),this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(e){if(!(this.disabled||e.button!==0)){if(this._platform.IOS){let t=this._slider._isCursorOnSliderThumb(e,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());this._isActive=t,this._updateWidthActive(),this._slider._updateDimensions();return}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(e,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(e),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(e){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(e)},0)}_fixValue(e){let t=e.clientX-this._slider._cachedLeft,n=this._slider._cachedWidth,o=this._slider.step===0?1:this._slider.step,c=Math.floor((this._slider.max-this._slider.min)/o),p=this._slider._isRtl?1-t/n:t/n,A=Math.round(p*c)/c*(this._slider.max-this._slider.min)+this._slider.min,_=Math.round(A/o)*o,m=this.value;if(_===m){this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation});return}this.value=_,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(e,{withAnimation:this._slider._hasAnimation})}_onPointerMove(e){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(e)}_onPointerUp(){this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(e){let t=this._tickMarkOffset,n=this._slider._cachedWidth-this._tickMarkOffset;return Math.max(Math.min(e,n),t)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset}_calcTranslateXByPointerEvent(e){return e.clientX-this._slider._cachedLeft}_updateWidthActive(){}_updateWidthInactive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding-this._tickMarkOffset*2}px)`,this._hostElement.style.left=`-${this._slider._rippleRadius-this._tickMarkOffset}px`}_updateThumbUIByValue(e){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(e)}_updateThumbUIByPointerEvent(e,t){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(e)),this._updateThumbUI(t)}_updateThumbUI(e){this._slider._setTransition(!!e?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(e){(this._isControlInitialized||e!==null)&&(this.value=e)}registerOnChange(e){this._onChangeFn=e,this._isControlInitialized=!0}registerOnTouched(e){this._onTouchedFn=e}setDisabledState(e){this.disabled=e}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(t,n){t&1&&dt("change",function(){return n._onChange()})("input",function(){return n._onInput()})("blur",function(){return n._onBlur()})("focus",function(){return n._onFocus()}),t&2&&Ye("aria-valuetext",n._valuetext())},inputs:{value:[2,"value","value",Ri]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[nn([K1,{provide:Fg,useExisting:s}])]})}return s})();var Pg=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[Si,ml]})}return s})();var J1=["determinateSpinner"];function Z1(s,a){if(s&1&&(Or(),ue(0,"svg",11),Oe(1,"circle",12),he()),s&2){let e=fe();Ye("viewBox",e._viewBox()),oe(),xn("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Ye("r",e._circleRadius())}}var eb=new Ge("mat-progress-spinner-default-options",{providedIn:"root",factory:tb});function tb(){return{diameter:Ig}}var Ig=100,ib=10,Lg=(()=>{class s{_elementRef=ie(Vt);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=ie(eb);this._noopAnimations=Fi()&&!!e&&!e._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=Ig;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-ib)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,n){if(t&1&&ii(J1,5),t&2){let o;Ht(o=qt())&&(n._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,n){t&2&&(Ye("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",n.mode==="determinate"?n.value:null)("mode",n.mode),Tn("mat-"+n.color),xn("width",n.diameter,"px")("height",n.diameter,"px")("--mat-progress-spinner-size",n.diameter+"px")("--mat-progress-spinner-active-indicator-width",n.diameter+"px"),vt("_mat-animation-noopable",n._noopAnimations)("mdc-circular-progress--indeterminate",n.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",Ri],diameter:[2,"diameter","diameter",Ri],strokeWidth:[2,"strokeWidth","strokeWidth",Ri]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(t,n){if(t&1&&(Gi(0,Z1,2,8,"ng-template",null,0,Yu),ue(2,"div",2,1),Or(),ue(4,"svg",3),Oe(5,"circle",4),he()(),Ru(),ue(6,"div",5)(7,"div",6)(8,"div",7),ao(9,8),he(),ue(10,"div",9),ao(11,8),he(),ue(12,"div",10),ao(13,8),he()()()),t&2){let o=ji(1);oe(4),Ye("viewBox",n._viewBox()),oe(),xn("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),Ye("r",n._circleRadius()),oe(4),xe("ngTemplateOutlet",o),oe(2),xe("ngTemplateOutlet",o),oe(2),xe("ngTemplateOutlet",o)}},dependencies:[Cc],styles:[`.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} `],encapsulation:2,changeDetection:0})}return s})();var Rg=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({imports:[Si]})}return s})();var sb=["tooltip"],lu=20;var cu=new Ge("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let s=ie(Gt);return()=>jn(s,{scrollThrottle:lu})}});function Mg(s){let a=ie(Gt);return()=>jn(a,{scrollThrottle:lu})}var Og={provide:cu,deps:[],useFactory:Mg};function Ng(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var Bg=new Ge("mat-tooltip-default-options",{providedIn:"root",factory:Ng});var kg="tooltip-panel",xg=hs({passive:!0}),rb=8,ab=8,ob=24,lb=200,du=(()=>{class s{_elementRef=ie(Vt);_ngZone=ie(Nt);_platform=ie(li);_ariaDescriber=ie(Mf);_focusMonitor=ie(ps);_dir=ie(Dn);_injector=ie(Gt);_viewContainerRef=ie($i);_animationsDisabled=Fi();_defaultOptions=ie(Bg,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Vg;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Bd(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let t=Bd(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Zn(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Zn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new St;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=rb}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Ei(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,n])=>{e.removeEventListener(t,n,xg)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let n=this._createOverlay(t);this._detach(),this._portal=this._portal||new ms(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=n.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Ei(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&c._origin instanceof Vt)return this._overlayRef;this._detach()}let t=this._injector.get(Ar).getAncestorScrollContainers(this._elementRef),n=`${this._cssClassPrefix}-${kg}`,o=Sr(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return o.positionChanges.pipe(Ei(this._destroyed)).subscribe(c=>{this._updateCurrentPositionClass(c.connectionPair),this._tooltipInstance&&c.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=_s(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,n]:n,scrollStrategy:this._injector.get(cu)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Ei(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Ei(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Ei(this._destroyed)).subscribe(c=>{this._isTooltipVisible()&&c.keyCode===27&&!br(c)&&(c.preventDefault(),c.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Ei(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let t=e.getConfig().positionStrategy,n=this._getOrigin(),o=this._getOverlayPosition();t.withPositions([this._addOffset(Fe(Fe({},n.main),o.main)),this._addOffset(Fe(Fe({},n.fallback),o.fallback))])}_addOffset(e){let t=ab,n=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=n?-t:t:e.originX==="end"&&(e.offsetX=n?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"||t=="below"?n={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={originX:"end",originY:"center"});let{x:o,y:c}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:o,originY:c}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"?n={overlayX:"center",overlayY:"bottom"}:t=="below"?n={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={overlayX:"start",overlayY:"center"});let{x:o,y:c}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:o,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),tn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:n,originY:o}=e,c;if(t==="center"?this._dir&&this._dir.value==="rtl"?c=n==="end"?"left":"right":c=n==="start"?"left":"right":c=t==="bottom"&&o==="top"?"above":"below",c!==this._currentPosition){let p=this._overlayRef;if(p){let v=`${this._cssClassPrefix}-${kg}-`;p.removePanelClass(v+this._currentPosition),p.addPanelClass(v+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let t=e.targetTouches?.[0],n=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,n)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{let n=t.relatedTarget;(!n||!this._overlayRef?.overlayElement.contains(n))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,n])=>{this._elementRef.nativeElement.addEventListener(t,n,xg)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let t=this._injector.get(Dt).elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,n=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),(e==="on"||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||tn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(t){return new(t||s)};static \u0275dir=Wt({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,n){t&2&&vt("mat-mdc-tooltip-disabled",n.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return s})(),Vg=(()=>{class s{_changeDetectorRef=ie(gi);_elementRef=ie(Vt);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Fi();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new St;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>ob&&e.width>=lb}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,n=this._showAnimation,o=this._hideAnimation;if(t.classList.remove(e?o:n),t.classList.add(e?n:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let c=getComputedStyle(t);(c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=zt({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(t,n){if(t&1&&ii(sb,7),t&2){let o;Ht(o=qt())&&(n._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,n){t&1&&dt("mouseleave",function(c){return n._handleMouseLeave(c)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,n){if(t&1){let o=Kt();ue(0,"div",1,0),dt("animationend",function(p){return Je(o),Ze(n._handleAnimationEnd(p))}),ue(2,"div",2),we(3),he()()}t&2&&(vt("mdc-tooltip--multiline",n._isMultiline),xe("ngClass",n.tooltipClass),oe(3),Ki(n.message))},dependencies:[_c],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} `],encapsulation:2,changeDetection:0})}return s})(),uu=(()=>{class s{static \u0275fac=function(t){return new(t||s)};static \u0275mod=Ot({type:s});static \u0275inj=Mt({providers:[Og],imports:[Ld,Tr,Si,Si,Gs]})}return s})();var qa={prefix:"",npawAccountCode:"watchity",apiUrls:{backend:"https://wbep.watchity.net/v1/wbe"}};var jg=(()=>{let a=class a{constructor(){}set(t,n,o){let c="";if(o){let p=new Date;p.setTime(p.getTime()+o*24*60*60*1e3),c="; expires="+p.toUTCString()}document.cookie=t+"="+(n||"")+c+"; domain=.watchity.com; path=/"}get(t){let n=t+"=",o=document.cookie.split(";");for(let c=0;c{let a=class a{constructor(t,n){this.http=t,this.cookieService=n,this.backendBaseUrl=qa.apiUrls.backend,this.backendToken=n.get(qa.prefix+"auth")||""}getMediaItem(t){return this.http.get(this.backendBaseUrl+"/player_media/"+t+"/")}getWatchit(t){return this.http.get(this.backendBaseUrl+"/watchits/"+t+"/")}getWatchitCameras(t){return this.http.get(this.backendBaseUrl+"/watchits/"+t+"/cameras/")}getCamerasFragments(t){return this.http.get(this.backendBaseUrl+"/watchits/"+t+"/cameras_fragments/")}getPlayersettings(t){return this.http.get(this.backendBaseUrl+"/watchits/"+t+"/playersettings/?limit=1")}getChannel(t){return this.http.get(this.backendBaseUrl+"/channels/"+t+"/")}patchPlayersettings(t,n,o){return this.http.patch(this.backendBaseUrl+"/watchits/"+t+"/playersettings_extended/"+n,o,{headers:{Authorization:`Token ${this.backendToken}`}})}};a.\u0275fac=function(n){return new(n||a)(Ft(tr),Ft(jg))},a.\u0275prov=ze({token:a,factory:a.\u0275fac,providedIn:"root"});let s=a;return s})();var Gg=Su(qg()),Wg=Su(zg());var Xg=(()=>{let a=class a{initNpawService(t){this.destroyIfCurrentExists(),this.npawPlugin=new Gg.default(qa.npawAccountCode),this.npawPlugin.registerAdapterFromClass(t.playerInstance,Wg.default.video.Shaka);let n={"content.title":t.title,"content.resource":t.url,"content.id":t.id,"content.isLive":t.isLive,"content.language":t.language,"content.customDimension.1":t.location,"content.customDimension.2":t.contentType,"content.customDimension.3":t.playerSettingsId,"errors.nonFatal":["manifestLoadError","manifestLoadTimeOut","levelLoadError","levelLoadTimeOut","fragLoadError","fragLoadTimeOut"]};this.npawPlugin.setAnalyticsOptions(n)}destroyIfCurrentExists(){this.npawPlugin?.destroy()}};a.\u0275fac=function(n){return new(n||a)},a.\u0275prov=ze({token:a,factory:a.\u0275fac,providedIn:"root"});let s=a;return s})();var hb=["videoRef"],pb=["containerRef"],fb=["containerAdsRef"],gb=["progressBarRef"],mb=["thumbnailRef"],yb=["subtitleRef"],vb=["bigPlayIcon"],_b=["uiWrapper"],bb=["settingsMenuTrigger"],Eb=["subtitlesMenuTrigger"],Cb=["audiosMenuTrigger"],Ab=["speedMenuTrigger"],wb=["qualitiesMenuTrigger"],Sb=["videosMenuTrigger"],Tb=["shareMenuTrigger"],$g=s=>({"background-image":s}),Fb=s=>({opacity:s}),Db=(s,a,e,t,n)=>({width:s,transform:a,visibility:e,left:t,"background-image":n,"background-position":"center","background-size":"cover","background-repeat":"no-repeat"}),za=s=>({left:s});function Ub(s,a){if(s&1&&(ue(0,"div",20)(1,"div",23)(2,"div")(3,"b"),we(4,"Element name:"),he(),we(5),he(),Oe(6,"div",24),ue(7,"div")(8,"b"),we(9,"Current time:"),he(),we(10),he(),ue(11,"div")(12,"b"),we(13,"Current time (pretty):"),he(),we(14),he(),ue(15,"div")(16,"b"),we(17,"Duration:"),he(),we(18),he(),ue(19,"div")(20,"b"),we(21,"Duration (pretty):"),he(),we(22),he(),ue(23,"div")(24,"b"),we(25,"Infinite duration:"),he(),we(26),he(),Oe(27,"div",24),ue(28,"div")(29,"b"),we(30,"Last subtitle time:"),he(),we(31),he(),ue(32,"div")(33,"b"),we(34,"Last subtitle time (pretty):"),he(),we(35),he(),ue(36,"div")(37,"b"),we(38,"Diff current time with last sub start:"),he(),we(39),he(),ue(40,"div")(41,"b"),we(42,"Diff current time with last sub end:"),he(),we(43),he(),ue(44,"div")(45,"b"),we(46,"Last subtitle text:"),he(),we(47),he(),Oe(48,"div",24),ue(49,"div")(50,"b"),we(51,"Buffered %:"),he(),we(52),he(),ue(53,"div")(54,"b"),we(55,"Buffering:"),he(),we(56),he(),ue(57,"div")(58,"b"),we(59,"Seekable range:"),he(),we(60),he(),Oe(61,"div",24),ue(62,"div")(63,"b"),we(64,"Playing:"),he(),we(65),he(),ue(66,"div")(67,"b"),we(68,"Paused:"),he(),we(69),he(),ue(70,"div")(71,"b"),we(72,"Muted:"),he(),we(73),he(),ue(74,"div")(75,"b"),we(76,"Volume:"),he(),we(77),he(),ue(78,"div")(79,"b"),we(80,"Playback rate:"),he(),we(81),he(),ue(82,"div")(83,"b"),we(84,"PIP:"),he(),we(85),he(),Oe(86,"div",24),ue(87,"div")(88,"b"),we(89,"Live HLS:"),he(),we(90),he(),ue(91,"div")(92,"b"),we(93,"Playing live:"),he(),we(94),he(),ue(95,"div")(96,"b"),we(97,"ABR enabled:"),he(),we(98),he(),Oe(99,"div",24),ue(100,"div")(101,"b"),we(102,"Variant count:"),he(),we(103),he(),ue(104,"div")(105,"b"),we(106,"Active variant height:"),he(),we(107),he(),ue(108,"div")(109,"b"),we(110,"Audio tracks:"),he(),we(111),he(),ue(112,"div")(113,"b"),we(114,"Selected audio:"),he(),we(115),he(),ue(116,"div")(117,"b"),we(118,"Subtitle tracks:"),he(),we(119),he(),ue(120,"div")(121,"b"),we(122,"Selected subtitle:"),he(),we(123),he(),Oe(124,"div",24),ue(125,"div")(126,"b"),we(127,"Resolution:"),he(),we(128),he(),ue(129,"div")(130,"b"),we(131,"Decoded frames:"),he(),we(132),he(),ue(133,"div")(134,"b"),we(135,"Dropped frames:"),he(),we(136),he(),ue(137,"div")(138,"b"),we(139,"Est. bandwidth:"),he(),we(140),he(),ue(141,"div")(142,"b"),we(143,"Stream bandwidth:"),he(),we(144),he(),Oe(145,"div",24),ue(146,"div")(147,"b"),we(148,"Load latency:"),he(),we(149),he(),ue(150,"div")(151,"b"),we(152,"Manifest load time:"),he(),we(153),he(),ue(154,"div")(155,"b"),we(156,"DRM license time:"),he(),we(157),he(),ue(158,"div")(159,"b"),we(160,"Live latency:"),he(),we(161),he(),Oe(162,"div",24),ue(163,"div")(164,"b"),we(165,"Manifest type:"),he(),we(166),he(),ue(167,"div")(168,"b"),we(169,"Key system:"),he(),we(170),he()(),ue(171,"div",23),Oe(172,"div")(173,"br"),ue(174,"div")(175,"b"),we(176,"Current time absolute: "),he(),we(177),he(),ue(178,"div")(179,"b"),we(180,"Absolute time HLS started:"),he(),we(181),he()(),Oe(182,"div",25),he()),s&2){let e,t,n,o,c,p,v,A,_,m=fe(2);oe(5),_t(" ",m.title),oe(5),_t(" ",m.getPlayerCurrentTime().toFixed(2)," s"),oe(4),_t(" ",m.prettyTimeFormat(m.getPlayerCurrentTime(),!0)," "),oe(4),_t(" ",m.getPlayerDuration().toFixed(2)," s"),oe(4),_t(" ",m.prettyTimeFormat(m.getPlayerDuration(),!0)," "),oe(4),_t(" ",m.isInfinityDuration()),oe(5),qr(" ",(m.cueTimestamp==null?null:m.cueTimestamp.startTime)||0," \u2013 ",(m.cueTimestamp==null?null:m.cueTimestamp.endTime)||0," "),oe(4),qr(" ",m.prettyTimeFormat((m.cueTimestamp==null?null:m.cueTimestamp.startTime)||0,!0)," \u2013 ",m.prettyTimeFormat((m.cueTimestamp==null?null:m.cueTimestamp.endTime)||0,!0)," "),oe(4),_t(" ",((m.getPlayerCurrentTime()||0)-((m.cueTimestamp==null?null:m.cueTimestamp.startTime)||0)).toFixed(4)," s "),oe(4),_t(" ",(((m.cueTimestamp==null?null:m.cueTimestamp.endTime)||0)-(m.getPlayerCurrentTime()||0)).toFixed(4)," s "),oe(4),_t(" ",m.cueTimestamp==null?null:m.cueTimestamp.text),oe(5),_t(" ",m.getBuffer().toFixed(2)," %"),oe(4),_t(" ",m.isBuffering()),oe(4),qr(" ",((m.player==null?null:m.player.seekRange().start)||0).toFixed(2)," \u2013 ",((m.player==null?null:m.player.seekRange().end)||0).toFixed(2)," s "),oe(5),_t(" ",m.playerStatus.isPlaying),oe(4),_t(" ",!m.playerStatus.isPlaying),oe(4),_t(" ",m.playerStatus.isMuted),oe(4),_t(" ",m.playerStatus.volume.toFixed(2)),oe(4),_t(" ",m.playerStatus.playbackSpeed,"\xD7"),oe(4),_t(" ",m.playerStatus.pip),oe(5),_t(" ",m.playerStatus.isLiveHLS),oe(4),_t(" ",m.isPlayingLive()),oe(4),_t(" ",m.playerStatus.abrEnabled),oe(5),_t(" ",m.variantsList.length),oe(4),_t(" ",m.playerStatus.qualityVariant.height," "),oe(4),_t(" ",m.audiosList.length),oe(4),_t(" ",m.playerStatus.selectedAudioCode),oe(4),_t(" ",m.subtitlesList.length),oe(4),_t(" ",m.playerStatus.selectedSubtitleLabel," "),oe(5),qr(" ",m.player==null||(e=m.player.getStats())==null?null:e.width," \xD7 ",m.player==null||(e=m.player.getStats())==null?null:e.height," "),oe(4),_t(" ",m.player==null||(t=m.player.getStats())==null?null:t.decodedFrames),oe(4),_t(" ",m.player==null||(n=m.player.getStats())==null?null:n.droppedFrames),oe(4),_t(" ",m.player==null||(o=m.player.getStats())==null?null:o.estimatedBandwidth," bps "),oe(4),_t(" ",m.player==null||(c=m.player.getStats())==null?null:c.streamBandwidth," bps "),oe(5),_t(" ",m.player==null||(p=m.player.getStats())==null?null:p.loadLatency.toFixed(2)," ms "),oe(4),_t(" ",m.player==null||(v=m.player.getStats())==null?null:v.manifestTimeSeconds.toFixed(2)," s "),oe(4),_t(" ",m.player==null||(A=m.player.getStats())==null?null:A.drmTimeSeconds.toFixed(2)," s "),oe(4),_t(" ",m.player==null||(_=m.player.getStats())==null?null:_.liveLatency.toFixed(2)," s "),oe(5),_t(" ",m.player==null?null:m.player.getManifestType()),oe(4),_t(" ",m.player==null||m.player.keySystem==null?null:m.player.keySystem()),oe(7),_t("",m.prettyDate(m.player.getPlayheadTimeAsDate())," "),oe(4),_t(" ",m.prettyDate(m.player.getPresentationStartTimeAsDate())," "),oe(),vt("hidden",m.playerStatus.selectedSubtitleLabel==""),xe("innerHTML",m.selectedSubsAll,Vr)}}function Pb(s,a){if(s&1&&Gi(0,Ub,183,49,"div",22),s&2){let e=fe();xe("ngIf",e.debugMenuEnabled)}}function Ib(s,a){if(s&1&&Oe(0,"div",21),s&2){let e=fe();xe("ngStyle",Xn(1,$g,"url("+(e.isDisabledFeature("cover")?"":e.coverImg)+")"))}}function Lb(s,a){s&1&&(ue(0,"div",34),Oe(1,"mat-spinner",35),he(),Oe(2,"div",34,5))}function Rb(s,a){if(s&1&&(ue(0,"div",34),Oe(1,"img",36),he()),s&2){let e=fe(3);oe(),vt("fade-out",e.triggerBigAnim),xe("src",e.getInversedPlayIcon(),It)}}function kb(s,a){if(s&1&&(ue(0,"div",37),we(1),he()),s&2){let e=a.$implicit;oe(),_t(" ",e("endedEventWithoutContent")," ")}}function xb(s,a){s&1&&Gi(0,kb,2,1,"div",38)}function Mb(s,a){if(s&1&&(ue(0,"div",37),we(1),he()),s&2){let e=a.$implicit;oe(),_t(" ",e("notStartedEvent")," ")}}function Ob(s,a){s&1&&Gi(0,Mb,2,1,"div",38)}function Nb(s,a){if(s&1&&st(0,xb,1,0,"div",37)(1,Ob,1,0,"div",37),s&2){let e=fe(4);rt(e.playerConfig.endedEventWithoutContent?0:1)}}function Bb(s,a){if(s&1&&Oe(0,"img",36),s&2){let e=fe(4);xe("src",e.getPlayIcon(),It)}}function Vb(s,a){if(s&1&&(ue(0,"div",21),st(1,Nb,2,1),st(2,Bb,1,1,"img",36),he()),s&2){let e=fe(3);xe("ngStyle",Xn(3,$g,"url("+(e.isDisabledFeature("cover")?"":e.coverImg)+")")),oe(),rt(e.playerConfig.futureEvent?1:-1),oe(),rt(!e.playerConfig.futureEvent&&!e.playerConfig.hideControls&&e.playerStatus.appInitialized&&!e.isDisabledFeature("bigPlay")?2:-1)}}function jb(s,a){if(s&1&&(st(0,Rb,2,3,"div",34),st(1,Vb,3,5,"div",21)),s&2){let e=fe(2);rt(!e.playerConfig.futureEvent&&!e.playerConfig.hideControls&&e.playerStatus.appInitialized&&!e.isDisabledFeature("bigPlay")?0:-1),oe(),rt(!e.playerConfig.enabledAutoplay&&!e.initPlay||e.playerConfig.futureEvent?1:-1)}}function Hb(s,a){if(s&1&&Oe(0,"div",44),s&2){let e=fe(3);vt("subtitle-vertical-align",!e.playerStatus.visibleControls),xe("innerHTML",e.currentCue,Vr)}}function qb(s,a){if(s&1&&Oe(0,"div",61),s&2){let e=fe(6);xe("ngStyle",Xn(1,za,e.getThumbLeftPos()-1+"px"))}}function zb(s,a){if(s&1){let e=Kt();ue(0,"div",56,9)(2,"span",57),we(3),he()(),ue(4,"div",58,10),dt("mousedown",function(){Je(e);let n=fe(5);return n.mouseDown=!0,Ze(n.seekTime())})("mouseenter",function(){Je(e);let n=fe(5);return Ze(n.mouseHoverProgressBar=!0)})("mouseleave",function(){Je(e);let n=fe(5);return Ze(n.mouseHoverProgressBar=!1)}),Oe(6,"div",59)(7,"div",60),st(8,qb,1,3,"div",61),Oe(9,"mat-progress-bar",62),he()}if(s&2){let e=fe().$implicit,t=fe(4);xe("ngStyle",$u(15,Db,t.getWidthThumbnail()+"vh","scale("+(t.mouseHoverProgressBar||t.mouseDown?t.playerConfig.thumbnailSize:0)+")",t.thumbnailsUrl?"visible":"hidden",t.getThumbnailLeftPos()+"px","url("+t.getThumbnailOnTime()+")")),oe(3),Ki(t.getTimeHover()),oe(),vt("hover",t.mouseDown),Ye("aria-label",e("controls.seekBarSlider")),oe(2),vt("line-hidden",!t.mouseHoverProgressBar&&!t.mouseDown),xe("ngStyle",Xn(21,za,t.getLineLeftPos()+"px")),oe(),vt("thumb-hidden",!t.mouseDown&&!t.mouseHoverProgressBar||t.playerStatus.showStartTimeControls),xe("ngStyle",Xn(23,za,t.getThumbLeftPos()+"px")),oe(),rt(t.playerStatus.showStartTimeControls?8:-1),oe(),xe("value",t.progressBar)("bufferValue",t.getBuffer()),Ye("aria-label",e("controls.seekBarSlider"))}}function Gb(s,a){if(s&1){let e=Kt();ue(0,"button",63),dt("click",function(){Je(e);let n=fe(5);return Ze(n.playAction())}),Oe(1,"img",64),he()}if(s&2){let e=fe(5);xe("matTooltip",e.getPlayTooltip()+" (k)")("matTooltipDisabled",e.playerConfig.disabledTooltips),Ye("aria-label",e.getPlayTooltip()),oe(),xe("alt",e.getPlayTooltip())("src",e.getPlayIcon(),It)}}function Wb(s,a){if(s&1){let e=Kt();ue(0,"button",63),dt("click",function(){Je(e);let n=fe(6);return Ze(n.backwardAction())}),Oe(1,"img",64),he()}if(s&2){let e=fe(2).$implicit,t=fe(4);xe("matTooltip",e("controls.rewind")+" (\u2190)")("matTooltipDisabled",t.playerConfig.disabledTooltips),Ye("aria-label",e("controls.rewind")),oe(),xe("alt",e("controls.rewind"))("src",t.uiIcons.backward,It)}}function Xb(s,a){if(s&1){let e=Kt();ue(0,"button",63),dt("click",function(){Je(e);let n=fe(6);return Ze(n.forwardAction())}),Oe(1,"img",64),he()}if(s&2){let e=fe(2).$implicit,t=fe(4);vt("disabled",t.isPlayingLive()),xe("matTooltip",e("controls.forward")+" (\u2192)")("matTooltipDisabled",t.playerConfig.disabledTooltips),Ye("aria-label",e("controls.forward")),oe(),xe("alt",e("controls.forward"))("src",t.uiIcons.forward,It)}}function $b(s,a){if(s&1&&(st(0,Wb,2,5,"button",49),st(1,Xb,2,7,"button",65)),s&2){let e=fe(5);rt(e.isDisabledFeature("backward")?-1:0),oe(),rt(e.isDisabledFeature("forward")?-1:1)}}function Yb(s,a){if(s&1&&Oe(0,"img",66),s&2){let e=fe(2).$implicit,t=fe(4);xe("alt",e("controls.unmute"))("src",t.uiIcons.volumeMute,It)}}function Kb(s,a){if(s&1&&Oe(0,"img",66),s&2){let e=fe(2).$implicit,t=fe(4);xe("alt",e("controls.mute"))("src",t.getVolumeIcon(),It)}}function Qb(s,a){if(s&1){let e=Kt();ue(0,"button",63),dt("click",function(){Je(e);let n=fe(5);return Ze(n.muteAction())}),st(1,Yb,1,2,"img",66)(2,Kb,1,2,"img",66),he()}if(s&2){let e=fe().$implicit,t=fe(4);xe("matTooltip",(t.playerStatus.isMuted?e("controls.unmute"):e("controls.mute"))+" (m)")("matTooltipDisabled",t.playerConfig.disabledTooltips),Ye("aria-label",t.playerStatus.isMuted?e("controls.unmute"):e("controls.mute")),oe(),rt(t.playerStatus.isMuted?1:2)}}function Jb(s,a){if(s&1){let e=Kt();ue(0,"button",68),dt("click",function(){Je(e);let n=fe(6);return Ze(n.goLiveAction())}),Oe(1,"img",69),ue(2,"span",70),we(3),he()()}if(s&2){let e=fe(2).$implicit,t=fe(4);vt("no-pointer-events",t.isPlayingLive()),Ye("aria-label",e("controls.live")),oe(),xe("alt",e("controls.live"))("src",t.getLiveIcon(),It),oe(2),_t(" ",t.upperString(e("controls.live")))}}function Zb(s,a){if(s&1&&(ue(0,"div"),st(1,Jb,4,6,"button",67),he()),s&2){let e=fe(5);oe(),rt(e.isDisabledFeature("live")?-1:1)}}function e2(s,a){if(s&1&&(ue(0,"span",72),we(1),he()),s&2){let e=fe(7);oe(),Ki(e.prettyTimeFormat(e.getPlayerCurrentTime()))}}function t2(s,a){s&1&&(ue(0,"span",72),we(1," 00:00 "),he())}function i2(s,a){if(s&1&&(ue(0,"span",73),we(1,"/"),he(),ue(2,"span",72),we(3),he()),s&2){let e=fe(7);oe(3),Ki(e.prettyTimeFormat(e.getPlayerDuration()))}}function n2(s,a){if(s&1&&(st(0,e2,2,1,"span",72)(1,t2,2,0,"span",72),st(2,i2,4,1)),s&2){let e=fe(6);rt(e.prettyTimeFormat(e.getPlayerCurrentTime())?0:1),oe(2),rt(e.playerStatus.isLiveHLS?-1:2)}}function s2(s,a){if(s&1&&(ue(0,"div",71),st(1,n2,3,2),he()),s&2){let e=fe(5);vt("timer-mobile",e.isMobileCheck()),oe(),rt(e.playerStatus.isLiveHLS?-1:1)}}function r2(s,a){if(s&1){let e=Kt();ue(0,"div")(1,"button",74),dt("click",function(){Je(e);let n=fe(5);return Ze(n.startTimeVisibilityTriggerAction())}),Oe(2,"img",75),he()()}if(s&2){let e=fe(5);oe(2),xe("src",e.uiIcons.startTime,It)}}function a2(s,a){if(s&1){let e=Kt();ue(0,"div",55)(1,"input",76),co("ngModelChange",function(n){Je(e);let o=fe(5);return lo(o.hoursStartTime,n)||(o.hoursStartTime=n),Ze(n)}),dt("blur",function(){Je(e);let n=fe(5);return Ze(n.fixTimeLimits())}),he(),ue(2,"span",77),we(3,":"),he(),ue(4,"input",78),co("ngModelChange",function(n){Je(e);let o=fe(5);return lo(o.minutesStartTime,n)||(o.minutesStartTime=n),Ze(n)}),dt("blur",function(){Je(e);let n=fe(5);return Ze(n.fixTimeLimits())}),he(),ue(5,"span",77),we(6,":"),he(),ue(7,"input",79),co("ngModelChange",function(n){Je(e);let o=fe(5);return lo(o.secondsStartTime,n)||(o.secondsStartTime=n),Ze(n)}),dt("blur",function(){Je(e);let n=fe(5);return Ze(n.fixTimeLimits())}),he()()}if(s&2){let e=fe(5);oe(),oo("ngModel",e.hoursStartTime),oe(3),oo("ngModel",e.minutesStartTime),oe(3),oo("ngModel",e.secondsStartTime)}}function o2(s,a){if(s&1&&(ue(0,"button",81)(1,"div",82),Oe(2,"img",83),ue(3,"span"),we(4),he()()()),s&2){let e=fe(2).$implicit;fe(3);let t=ji(4),n=fe();xe("matMenuTriggerFor",t),Ye("aria-label",e("captions.captions")),oe(2),xe("alt",e("captions.captions"))("src",n.uiIcons.subtitleSelector,It),oe(2),_t(" ",e("captions.captions"))}}function l2(s,a){if(s&1&&(ue(0,"button",81)(1,"div",82),Oe(2,"img",83),ue(3,"span"),we(4),he()()()),s&2){let e=fe(2).$implicit;fe(3);let t=ji(10),n=fe();xe("matMenuTriggerFor",t),Ye("aria-label",e("settings.audio")),oe(2),xe("alt",e("settings.audio"))("src",n.uiIcons.audioSelector,It),oe(2),_t(" ",e("settings.audio"))}}function c2(s,a){if(s&1&&(ue(0,"button",81)(1,"div",82),Oe(2,"img",83),ue(3,"span"),we(4),he()()()),s&2){let e=fe(2).$implicit;fe(3);let t=ji(14),n=fe();xe("matMenuTriggerFor",t),Ye("aria-label",e("settings.quality")),oe(2),xe("alt",e("settings.quality"))("src",n.getQualityIcon(),It),oe(2),_t(" ",e("settings.quality"))}}function d2(s,a){if(s&1&&(ue(0,"button",81,13)(2,"div",82),Oe(3,"img",83),ue(4,"span"),we(5),he()()()),s&2){let e=fe(2).$implicit;fe(3);let t=ji(19),n=fe();xe("matMenuTriggerFor",t),Ye("aria-label",e("controls.language")),oe(3),xe("alt",e("controls.language"))("src",n.uiIcons.language,It),oe(2),_t(" ",e("controls.language"))}}function u2(s,a){if(s&1&&(ue(0,"div")(1,"button",80,11),Oe(3,"img",64),he(),ue(4,"mat-menu",27,12),st(6,o2,5,5,"button",81),st(7,l2,5,5,"button",81),ue(8,"button",81)(9,"div",82),Oe(10,"img",83),ue(11,"span"),we(12),he()()(),st(13,c2,5,5,"button",81),st(14,d2,6,5,"button",81),he()()),s&2){let e=ji(5),t=fe().$implicit;fe(3);let n=ji(22),o=fe();oe(),xe("matMenuTriggerFor",e)("matTooltip",t("controls.settings"))("matTooltipDisabled",o.playerConfig.disabledTooltips),Ye("aria-label",t("controls.settings")),oe(2),xe("alt",t("controls.settings"))("src",o.uiIcons.settings,It),oe(3),rt(o.subtitlesList.length>0&&!o.isDisabledFeature("captions")?6:-1),oe(),rt(o.audiosList.length>1?7:-1),oe(),xe("matMenuTriggerFor",n),Ye("aria-label",t("settings.speed")),oe(2),xe("alt",t("settings.speed"))("src",o.getPlaybackSpeedIcon(),It),oe(2),_t(" ",t("settings.speed")),oe(),rt(o.variantsList.length>0?13:-1),oe(),rt(o.manifestUrisArray.length>1?14:-1)}}function h2(s,a){if(s&1&&(ue(0,"button",80,13),Oe(2,"img",64),he()),s&2){let e=fe(2).$implicit;fe(3);let t=ji(19),n=fe();xe("matMenuTriggerFor",t)("matTooltip",e("controls.language"))("matTooltipDisabled",n.playerConfig.disabledTooltips),Ye("aria-label",e("controls.language")),oe(2),xe("alt",e("controls.language"))("src",n.uiIcons.language,It)}}function p2(s,a){if(s&1&&(ue(0,"button",80,15),Oe(2,"img",64),he()),s&2){let e=fe(2).$implicit;fe(3);let t=ji(4),n=fe();xe("matMenuTriggerFor",t)("matTooltip",e("captions.captions"))("matTooltipDisabled",n.playerConfig.disabledTooltips),Ye("aria-label",e("captions.captions")),oe(2),xe("alt",e("captions.captions"))("src",n.uiIcons.subtitleSelector,It)}}function f2(s,a){if(s&1&&(ue(0,"button",80,16),Oe(2,"img",64),he()),s&2){let e=fe(2).$implicit;fe(3);let t=ji(10),n=fe();xe("matMenuTriggerFor",t)("matTooltip",e("settings.audio"))("matTooltipDisabled",n.playerConfig.disabledTooltips),Ye("aria-label",e("settings.audio")),oe(2),xe("alt",e("settings.audio"))("src",n.uiIcons.audioSelector,It)}}function g2(s,a){if(s&1&&(ue(0,"button",80,17),Oe(2,"img",64),he()),s&2){let e=fe(2).$implicit;fe(3);let t=ji(14),n=fe();xe("matMenuTriggerFor",t)("matTooltip",e("settings.quality"))("matTooltipDisabled",n.playerConfig.disabledTooltips),Ye("aria-label",e("settings.quality")),oe(2),xe("alt",e("settings.quality"))("src",n.getQualityIcon(),It)}}function m2(s,a){if(s&1&&(st(0,h2,3,6,"button",80),st(1,p2,3,6,"button",80),st(2,f2,3,6,"button",80),st(3,g2,3,6,"button",80),ue(4,"button",80,14),Oe(6,"img",64),he()),s&2){let e=fe().$implicit;fe(3);let t=ji(22),n=fe();rt(n.manifestUrisArray.length>1?0:-1),oe(),rt(n.subtitlesList.length>0?1:-1),oe(),rt(n.audiosList.length>1?2:-1),oe(),rt(n.variantsList.length>0?3:-1),oe(),xe("matMenuTriggerFor",t)("matTooltip",e("settings.speed"))("matTooltipDisabled",n.playerConfig.disabledTooltips),Ye("aria-label",e("settings.speed")),oe(2),xe("alt",e("settings.speed"))("src",n.getPlaybackSpeedIcon(),It)}}function y2(s,a){if(s&1){let e=Kt();ue(0,"button",63),dt("click",function(){Je(e);let n=fe(5);return Ze(n.chromecastAction())}),Oe(1,"img",84),he()}if(s&2){let e=fe(5);xe("matTooltip","Chromecast")("matTooltipDisabled",e.playerConfig.disabledTooltips),Ye("aria-label","Chromecast"),oe(),xe("src",e.uiIcons.chromecast,It)}}function v2(s,a){if(s&1){let e=Kt();ue(0,"button",80,18),Oe(2,"img",64),he(),ue(3,"mat-menu",27,19)(5,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("facebook"))}),ue(6,"div",82),Oe(7,"img",85),ue(8,"span"),we(9," Facebook"),he()()(),ue(10,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("linkedin"))}),ue(11,"div",82),Oe(12,"img",86),ue(13,"span"),we(14," Linkedin"),he()()(),ue(15,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("x"))}),ue(16,"div",82),Oe(17,"img",87),ue(18,"span"),we(19," X"),he()()(),ue(20,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("whatsapp"))}),ue(21,"div",82),Oe(22,"img",88),ue(23,"span"),we(24," Whatsapp"),he()()(),ue(25,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("clipboard"))}),ue(26,"div",82),Oe(27,"img",89),ue(28,"span"),we(29),he()()()()}if(s&2){let e=ji(4),t=fe().$implicit,n=fe(4);xe("matMenuTriggerFor",e)("matTooltip",t("settings.share"))("matTooltipDisabled",n.playerConfig.disabledTooltips),Ye("aria-label",t("settings.share")),oe(2),xe("alt",t("settings.share"))("src",n.uiIcons.share,It),oe(3),Ye("aria-label","Facebook"),oe(2),xe("src",n.uiIcons.facebook,It),oe(3),Ye("aria-label","Linkedin"),oe(2),xe("src",n.uiIcons.linkedin,It),oe(3),Ye("aria-label","X"),oe(2),xe("src",n.uiIcons.x,It),oe(3),Ye("aria-label","Whatsapp"),oe(2),xe("src",n.uiIcons.whatsapp,It),oe(3),Ye("aria-label",t("settings.shareClipboard")),oe(2),xe("alt",t("settings.shareClipboard"))("src",n.uiIcons.link,It),oe(2),_t(" ",t("settings.shareClipboard"))}}function _2(s,a){if(s&1&&Oe(0,"img",64),s&2){let e=fe(2).$implicit,t=fe(4);xe("alt",e("controls.pictureInPictureExit"))("src",t.uiIcons.pipExit,It)}}function b2(s,a){if(s&1&&Oe(0,"img",64),s&2){let e=fe(2).$implicit,t=fe(4);xe("alt",e("controls.pictureInPicture"))("src",t.uiIcons.pip,It)}}function E2(s,a){if(s&1){let e=Kt();ue(0,"button",63),dt("click",function(){Je(e);let n=fe(5);return Ze(n.pipAction())}),st(1,_2,1,2,"img",64)(2,b2,1,2,"img",64),he()}if(s&2){let e=fe().$implicit,t=fe(4);xe("matTooltip",t.playerStatus.pip?e("controls.pictureInPictureExit"):e("controls.pictureInPicture"))("matTooltipDisabled",t.playerConfig.disabledTooltips),Ye("aria-label",t.playerStatus.pip?e("controls.pictureInPictureExit"):e("controls.pictureInPicture")),oe(),rt(t.playerStatus.pip?1:2)}}function C2(s,a){if(s&1&&Oe(0,"img",64),s&2){let e=fe(2).$implicit,t=fe(4);xe("alt",e("controls.fullscreenExit"))("src",t.uiIcons.fullscreenCompress,It)}}function A2(s,a){if(s&1&&Oe(0,"img",64),s&2){let e=fe(2).$implicit,t=fe(4);xe("alt",e("controls.fullscreen"))("src",t.uiIcons.fullscreenExpand,It)}}function w2(s,a){if(s&1){let e=Kt();ue(0,"button",63),dt("click",function(){Je(e);let n=fe(5);return Ze(n.fullscreenAction())}),st(1,C2,1,2,"img",64)(2,A2,1,2,"img",64),he()}if(s&2){let e=fe().$implicit,t=fe(4);xe("matTooltip",(t.playerStatus.isFullscreen?e("controls.fullscreenExit"):e("controls.fullscreen"))+" (f)")("matTooltipDisabled",t.playerConfig.disabledTooltips),Ye("aria-label",t.playerStatus.isFullscreen?e("controls.fullscreenExit"):e("controls.fullscreen")),oe(),rt(t.playerStatus.isFullscreen?1:2)}}function S2(s,a){if(s&1){let e=Kt();ue(0,"div",46,8),dt("mouseenter",function(){Je(e);let n=fe(4);return Ze(n.mouseOverControls=!0)})("mouseleave",function(){Je(e);let n=fe(4);return Ze(n.mouseOverControls=!1)}),st(2,zb,10,25),ue(3,"div",47)(4,"div",48),st(5,Gb,2,5,"button",49),st(6,$b,2,2),ue(7,"div",50),dt("mouseenter",function(){Je(e);let n=fe(4);return Ze(n.isMobileCheck()?null:n.playerStatus.showVolume=!0)})("mouseleave",function(){Je(e);let n=fe(4);return Ze(n.playerStatus.showVolume=!1)}),st(8,Qb,3,4,"button",49),ue(9,"div",51)(10,"mat-slider",52)(11,"input",53),dt("ngModelChange",function(n){Je(e);let o=fe(4);return Ze(o.changeVolumeAction(n))})("focus",function(){Je(e);let n=fe(4);return Ze(n.onVolumeFocus())})("blur",function(){Je(e);let n=fe(4);return Ze(n.onVolumeBlur())}),he()()()(),st(12,Zb,2,1,"div"),st(13,s2,2,3,"div",54),st(14,r2,3,1,"div"),st(15,a2,8,3,"div",55),he(),ue(16,"div",48),st(17,u2,15,15,"div")(18,m2,7,10),st(19,y2,2,4,"button",49),st(20,v2,30,18),st(21,E2,3,4,"button",49),st(22,w2,3,4,"button",49),he()()()}if(s&2){let e=a.$implicit,t=fe(4);vt("ui-wrapper-hidden",!t.playerStatus.visibleControls||t.showingAd||t.playerConfig.hideControls)("hide-controls-transition",t.playerConfig.hideControls),oe(2),rt(!t.isInfinityDuration()&&!t.isDisabledFeature("timeline")?2:-1),oe(3),rt(t.isDisabledFeature("play")?-1:5),oe(),rt(t.isMobileCheck()?-1:6),oe(),Ye("aria-label",e("volume.volume_slider_aria_label")),oe(),rt(t.isDisabledFeature("volume")?-1:8),oe(),vt("hidden-volume",!t.playerStatus.showVolume||t.isDisabledFeature("volume"))("show-volume",t.playerStatus.showVolume&&!t.isDisabledFeature("volume")),oe(),vt("custom-outline",t.playerStatus.focusedVolumeWithKeyboard),xe("max",1)("min",0)("step",.1),oe(),xe("ngModel",t.playerStatus.volume),Ye("aria-label",e("volume.volume_slider_aria_label")),oe(),rt(t.playerStatus.isLiveHLS?12:-1),oe(),rt(!t.isDisabledFeature("timer")&&t.playerStatus.appInitialized?13:-1),oe(),rt(t.playerConfig.showTimeButton?14:-1),oe(),rt(t.playerStatus.showStartTimeControls?15:-1),oe(2),rt(t.playerConfig.groupSettings&&!t.isDisabledFeature("settings")?17:t.isDisabledFeature("settings")?-1:18),oe(2),rt(t.chromecastAvailable()&&!t.isDisabledFeature("chromecast")?19:-1),oe(),rt(t.isDisabledFeature("share")?-1:20),oe(),rt(!t.isFirefox()&&!t.isDisabledFeature("pip")?21:-1),oe(),rt(t.isDisabledFeature("fullscreen")?-1:22)}}function T2(s,a){s&1&&Gi(0,S2,23,29,"div",45)}function F2(s,a){if(s&1&&(ue(0,"div"),Oe(1,"img",106),he()),s&2){let e=fe(5);oe(),xe("src",Xu(e.coverImg),It)}}function D2(s,a){if(s&1&&(ue(0,"h4",92),we(1),he()),s&2){let e=fe(5);oe(),Ki(e.titlePlayer)}}function U2(s,a){if(s&1){let e=Kt();ue(0,"div",107,10),dt("mousedown",function(){Je(e);let n=fe(5);return n.mouseDown=!0,Ze(n.seekTime())})("mouseenter",function(){Je(e);let n=fe(5);return Ze(n.mouseHoverProgressBar=!0)})("mouseleave",function(){Je(e);let n=fe(5);return Ze(n.mouseHoverProgressBar=!1)}),Oe(2,"div",108)(3,"div",109)(4,"mat-progress-bar",110),he()}if(s&2){let e=fe(5);vt("hover",e.mouseDown),oe(2),vt("line-hidden",!e.mouseHoverProgressBar&&!e.mouseDown),xe("ngStyle",Xn(10,za,e.getLineLeftPos()+"px")),oe(),vt("thumb-hidden",!e.mouseHoverProgressBar||e.playerStatus.showStartTimeControls),xe("ngStyle",Xn(12,za,e.getThumbLeftPos()+"px")),oe(),xe("value",e.isPlayingLive()?100:e.progressBar)("bufferValue",e.isPlayingLive()?0:e.getBuffer())}}function P2(s,a){if(s&1&&(ue(0,"div",111),we(1),he()),s&2){let e=fe(6);oe(),_t(" ","- "+e.prettyTimeFormat(e.getPlayerDuration()-e.getPlayerCurrentTime())," ")}}function I2(s,a){if(s&1&&(ue(0,"div",111),we(1),he()),s&2){let e=fe(6);oe(),_t(" ",e.prettyTimeFormat(e.getPlayerDuration())," ")}}function L2(s,a){if(s&1){let e=Kt();ue(0,"div",111),we(1),he(),ue(2,"div",112),dt("click",function(){Je(e);let n=fe(5);return Ze(n.playerStatus.showRemainingAudioTime=!n.playerStatus.showRemainingAudioTime)}),st(3,P2,2,1,"div",111)(4,I2,2,1,"div",111),he()}if(s&2){let e=fe(5);oe(),_t(" ",e.prettyTimeFormat(e.getPlayerCurrentTime())," "),oe(2),rt(e.playerStatus.showRemainingAudioTime?3:4)}}function R2(s,a){if(s&1&&Oe(0,"img",113),s&2){let e=fe(2).$implicit,t=fe(4);xe("alt",e("controls.unmute"))("src",t.uiIcons.volumeMute,It)}}function k2(s,a){if(s&1&&Oe(0,"img",113),s&2){let e=fe(2).$implicit,t=fe(4);xe("alt",e("controls.mute"))("src",t.getVolumeIcon(),It)}}function x2(s,a){if(s&1){let e=Kt();ue(0,"button",100),dt("click",function(){Je(e);let n=fe(5);return Ze(n.muteAction())}),st(1,R2,1,2,"img",113)(2,k2,1,2,"img",113),he()}if(s&2){let e=fe().$implicit,t=fe(4);xe("matTooltip",(t.playerStatus.isMuted?e("controls.unmute"):e("controls.mute"))+" (m)")("matTooltipDisabled",t.playerConfig.disabledTooltips),Ye("aria-label",t.playerStatus.isMuted?e("controls.unmute"):e("controls.mute")),oe(),rt(t.playerStatus.isMuted?1:2)}}function M2(s,a){if(s&1){let e=Kt();ue(0,"button",100),dt("click",function(){Je(e);let n=fe(5);return Ze(n.backwardAction())}),Oe(1,"img",114),he()}if(s&2){let e=fe().$implicit,t=fe(4);xe("matTooltip",e("controls.rewind")+" (\u2190)")("matTooltipDisabled",t.playerConfig.disabledTooltips),Ye("aria-label",e("controls.rewind")),oe(),xe("alt",e("controls.rewind"))("src",t.uiIcons.backward,It)}}function O2(s,a){if(s&1){let e=Kt();ue(0,"button",100),dt("click",function(){Je(e);let n=fe(5);return Ze(n.forwardAction())}),Oe(1,"img",114),he()}if(s&2){let e=fe().$implicit,t=fe(4);vt("disabled",t.isPlayingLive()),xe("matTooltip",e("controls.forward")+" (\u2192)")("matTooltipDisabled",t.playerConfig.disabledTooltips),Ye("aria-label",e("controls.forward")),oe(),xe("alt",e("controls.forward"))("src",t.uiIcons.forward,It)}}function N2(s,a){if(s&1){let e=Kt();ue(0,"button",68),dt("click",function(){Je(e);let n=fe(6);return Ze(n.goLiveAction())}),Oe(1,"img",69),ue(2,"span",70),we(3),he()()}if(s&2){let e=fe(2).$implicit,t=fe(4);vt("no-pointer-events",t.isPlayingLive()),Ye("aria-label",e("controls.live")),oe(),xe("alt",e("controls.live"))("src",t.uiIcons.liveOnLive,It),oe(2),_t(" ",t.upperString(e("controls.live")))}}function B2(s,a){if(s&1&&(ue(0,"div"),st(1,N2,4,6,"button",67),he()),s&2){let e=fe(5);oe(),rt(e.isDisabledFeature("live")?-1:1)}}function V2(s,a){if(s&1){let e=Kt();ue(0,"button",104,18),Oe(2,"img",115),he(),ue(3,"mat-menu",27,19)(5,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("facebook"))}),ue(6,"div",82),Oe(7,"img",116),ue(8,"span"),we(9," Facebook"),he()()(),ue(10,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("linkedin"))}),ue(11,"div",82),Oe(12,"img",116),ue(13,"span"),we(14," Linkedin"),he()()(),ue(15,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("x"))}),ue(16,"div",82),Oe(17,"img",116),ue(18,"span"),we(19," X"),he()()(),ue(20,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("whatsapp"))}),ue(21,"div",82),Oe(22,"img",116),ue(23,"span"),we(24," Whatsapp"),he()()(),ue(25,"button",28),dt("click",function(){Je(e);let n=fe(5);return Ze(n.shareAction("clipboard"))}),ue(26,"div",82),Oe(27,"img",116),ue(28,"span"),we(29),he()()()()}if(s&2){let e=ji(4),t=fe().$implicit,n=fe(4);xe("matMenuTriggerFor",e)("matTooltip",t("settings.share"))("matTooltipDisabled",n.playerConfig.disabledTooltips),Ye("aria-label",t("settings.share")),oe(2),xe("src",n.uiIcons.share,It),oe(3),Ye("aria-label","Facebook"),oe(2),xe("src",n.uiIcons.facebook,It),oe(3),Ye("aria-label","Linkedin"),oe(2),xe("src",n.uiIcons.linkedin,It),oe(3),Ye("aria-label","X"),oe(2),xe("src",n.uiIcons.x,It),oe(3),Ye("aria-label","Whatsapp"),oe(2),xe("src",n.uiIcons.whatsapp,It),oe(3),Ye("aria-label",t("settings.shareClipboard")),oe(2),xe("src",n.uiIcons.link,It),oe(2),_t(" ",t("settings.shareClipboard"))}}function j2(s,a){if(s&1){let e=Kt();ue(0,"div",43)(1,"div",91),st(2,F2,2,2,"div"),ue(3,"div"),st(4,D2,2,1,"h4",92),he(),st(5,U2,5,14,"div",93),ue(6,"div",94),st(7,L2,5,2),he(),ue(8,"mat-grid-list",95)(9,"mat-grid-tile",96)(10,"div",97),dt("mouseenter",function(){Je(e);let n=fe(4);return Ze(n.isMobileCheck()?null:n.playerStatus.showVolume=!0)})("mouseleave",function(){Je(e);let n=fe(4);return Ze(n.playerStatus.showVolume=!1)}),st(11,x2,3,4,"button",98),ue(12,"div",51)(13,"mat-slider",52)(14,"input",53),dt("ngModelChange",function(n){Je(e);let o=fe(4);return Ze(o.changeVolumeAction(n))})("focus",function(){Je(e);let n=fe(4);return Ze(n.playerStatus.showVolume=!0)})("blur",function(){Je(e);let n=fe(4);return Ze(n.playerStatus.showVolume=!1)}),he()()()()(),ue(15,"mat-grid-tile",99),st(16,M2,2,5,"button",98),ue(17,"button",100),dt("click",function(){Je(e);let n=fe(4);return Ze(n.playAction())}),Oe(18,"img",101),he(),st(19,O2,2,7,"button",102),he(),ue(20,"mat-grid-tile",103),st(21,B2,2,1,"div"),ue(22,"button",104,14),Oe(24,"img",105),he(),st(25,V2,30,16),he()()()()}if(s&2){let e=a.$implicit;fe(3);let t=ji(22),n=fe();oe(2),rt(n.coverImg&&!n.isDisabledFeature("cover")&&n.allowedHeightCoverAudio()?2:-1),oe(2),rt(n.titlePlayer?4:-1),oe(),rt(n.isDisabledFeature("timeline")?-1:5),oe(2),rt(n.playerStatus.isLiveHLS?-1:7),oe(4),rt(n.isDisabledFeature("volume")?-1:11),oe(),vt("hidden-volume",!n.playerStatus.showVolume||n.isDisabledFeature("volume"))("show-volume",n.playerStatus.showVolume&&!n.isDisabledFeature("volume")),oe(),xe("max",1)("min",0)("step",.1),oe(),xe("ngModel",n.playerStatus.volume),Ye("aria-label",e("volume.volume_slider_aria_label")),oe(2),rt(!n.isDisabledFeature("backward")&&!n.playerStatus.isLiveHLS?16:-1),oe(),xe("matTooltip",n.getPlayTooltip()+" (k)")("matTooltipDisabled",n.playerConfig.disabledTooltips),Ye("aria-label",n.getPlayTooltip()),oe(),xe("alt",n.getPlayTooltip())("src",n.getPlayIcon(),It),oe(),rt(!n.isDisabledFeature("forward")&&!n.playerStatus.isLiveHLS?19:-1),oe(2),rt(n.playerStatus.isLiveHLS?21:-1),oe(),xe("matMenuTriggerFor",t)("matTooltip",e("settings.speed"))("matTooltipDisabled",n.playerConfig.disabledTooltips),Ye("aria-label",e("settings.speed")),oe(2),xe("alt",e("settings.speed"))("src",n.getPlaybackSpeedIcon(),It),oe(),rt(n.isDisabledFeature("share")?-1:25)}}function H2(s,a){s&1&&Gi(0,j2,26,29,"div",90)}function q2(s,a){if(s&1){let e=Kt();ue(0,"div",26),st(1,Hb,1,3,"div",39),ue(2,"div",40,6)(4,"video",41,7),dt("playing",function(){Je(e);let n=fe(2);return Ze(n.firstPlay())})("click",function(){Je(e);let n=fe(2);return Ze(n.playerConfig.audioPlayer?null:n.isMobileCheck()?n.forceControlsTrigger():n.playAction())})("dblclick",function(){Je(e);let n=fe(2);return Ze(n.playerConfig.audioPlayer?null:n.fullscreenAction())})("ended",function(){Je(e);let n=fe(2);return n.playerStatus.endedVideo=!0,n.outputEvent("playbackStopped",n.getPlayerCurrentTime().toString()),Ze(n.checkNextPlaylist())}),he(),st(6,T2,1,0,"div",42)(7,H2,1,0,"div",43),he()()}if(s&2){let e=fe(2);oe(),rt(e.currentCue!=""&&!e.playerConfig.audioPlayer&&e.playerStatus.selectedSubtitleLabel!=""?1:-1),oe(3),vt("autoplay-button",!e.playerConfig.enabledAutoplay&&!e.initPlay),xe("ngStyle",Xn(7,Fb,!e.playerConfig.enabledAutoplay&&!e.initPlay&&e.coverImg&&!e.isDisabledFeature("cover")||e.playerConfig.audioPlayer?"0":""))("muted",e.playerConfig.muted)("autoplay",e.enabledAutoplay()),oe(2),rt(e.playerConfig.audioPlayer?7:6)}}function z2(s,a){if(s&1&&(ue(0,"span"),we(1),he()),s&2){let e=a.$implicit;oe(),Ki(e("controls.closedCaptionsOn"))}}function G2(s,a){if(s&1){let e=Kt();ue(0,"button",28),dt("click",function(){Je(e);let n=fe().$implicit,o=fe(2);return Ze(o.changeTextTrackAction(n))}),ue(1,"span"),we(2),he()()}if(s&2){let e=fe().$implicit,t=fe(2);vt("selected-sub-menu",t.playerStatus.selectedSubtitleLabel==e.label),Ye("aria-current",t.playerStatus.selectedSubtitleLabel==e.label)("aria-label",e.label),oe(2),Ki(e.label||t.translatedLang(e.language))}}function W2(s,a){if(s&1&&st(0,G2,3,5,"button",30),s&2){let e=a.$implicit,t=fe(2);rt(t.playerConfig.hideCaptions.indexOf(e.language||"null")==-1?0:-1)}}function X2(s,a){if(s&1){let e=Kt();ue(0,"button",28),dt("click",function(){let n=Je(e).$implicit,o=fe(2);return Ze(o.changeAudioTrackAction(n.language))}),ue(1,"span"),we(2),he()()}if(s&2){let e=a.$implicit,t=fe(2);vt("selected-sub-menu",t.playerStatus.selectedAudioCode==e.language),Ye("aria-current",t.playerStatus.selectedAudioCode==e.language)("aria-label",e.label),oe(2),Ki(e.label)}}function $2(s,a){if(s&1&&(ue(0,"span"),we(1),he()),s&2){let e=a.$implicit,t=fe(4);oe(),_t(" ",e("settings.qualityAuto")+(t.playerStatus.abrEnabled&&t.playerStatus.qualityVariant?" ("+(t.playerStatus.qualityVariant.height||0)+"p)":""))}}function Y2(s,a){if(s&1){let e=Kt();ue(0,"button",28),dt("click",function(){Je(e);let n=fe(3);return Ze(n.enableABRAction())}),Gi(1,$2,2,1,"span",29),he()}if(s&2){let e=a.$implicit,t=fe(3);vt("selected-sub-menu",t.playerStatus.abrEnabled),Ye("aria-current",t.playerStatus.abrEnabled)("aria-label",e("settings.qualityAuto"))}}function K2(s,a){s&1&&Gi(0,Y2,2,4,"button",32)}function Q2(s,a){if(s&1){let e=Kt();ue(0,"button",28),dt("click",function(){let n=Je(e).$implicit,o=fe(2);return Ze(o.changeVariantTrackAction(n))}),ue(1,"span"),we(2),he()()}if(s&2){let e=a.$implicit,t=fe(2);vt("selected-sub-menu",t.variantsList.length==1||!t.playerStatus.abrEnabled&&t.playerStatus.qualityVariant&&t.playerStatus.qualityVariant.height==e.height),Ye("aria-current",t.variantsList.length==1||!t.playerStatus.abrEnabled&&t.playerStatus.qualityVariant&&t.playerStatus.qualityVariant.height==e.height)("aria-label",e.height),oe(2),Ki(e.height+"p")}}function J2(s,a){if(s&1){let e=Kt();ue(0,"button",31),dt("click",function(){let n=Je(e).$implicit,o=fe(3);return Ze(o.changeManifestUriAction(n.path))}),ue(1,"span"),we(2),he()()}if(s&2){let e=a.$implicit,t=fe(3);vt("selected-sub-menu",t.manifestUri==e.path),Ye("aria-current",t.manifestUri==e.path),oe(2),Ki(e.name)}}function Z2(s,a){if(s&1&&Ps(0,J2,3,4,"button",117,Hr),s&2){let e=fe(2);Is(e.manifestUrisArray)}}function eE(s,a){if(s&1){let e=Kt();ue(0,"button",28),dt("click",function(){Je(e);let n=fe(2);return Ze(n.playbackSpeedAction(1))}),ue(1,"span"),we(2),he()()}if(s&2){let e=a.$implicit,t=fe(2);vt("selected-sub-menu",t.playerStatus.playbackSpeed==1),Ye("aria-current",t.playerStatus.playbackSpeed==1)("aria-label",e("settings.speedNormal")),oe(2),Ki(e("settings.speedNormal"))}}function tE(s,a){if(s&1){let e=Kt();st(0,Lb,4,0),st(1,jb,2,2),st(2,q2,8,9,"div",26),ue(3,"mat-menu",27,0)(5,"button",28),dt("click",function(){Je(e);let n=fe();return Ze(n.changeTextTrackAction())}),Gi(6,z2,2,1,"span",29),he(),Ps(7,W2,1,1,null,null,Hr),he(),ue(9,"mat-menu",27,1),Ps(11,X2,3,5,"button",30,Hr),he(),ue(13,"mat-menu",27,2),st(15,K2,1,0,"button",30),Ps(16,Q2,3,5,"button",30,Hr),he(),ue(18,"mat-menu",27,3),st(20,Z2,2,0),he(),ue(21,"mat-menu",27,4)(23,"button",31),dt("click",function(){Je(e);let n=fe();return Ze(n.playbackSpeedAction(.25))}),ue(24,"span"),we(25,"0.25x"),he()(),ue(26,"button",31),dt("click",function(){Je(e);let n=fe();return Ze(n.playbackSpeedAction(.5))}),ue(27,"span"),we(28,"0.5x"),he()(),ue(29,"button",31),dt("click",function(){Je(e);let n=fe();return Ze(n.playbackSpeedAction(.75))}),ue(30,"span"),we(31,"0.75x"),he()(),Gi(32,eE,3,5,"button",32),ue(33,"button",33),dt("click",function(){Je(e);let n=fe();return Ze(n.playbackSpeedAction(1.25))}),ue(34,"span"),we(35,"1.25x"),he()(),ue(36,"button",33),dt("click",function(){Je(e);let n=fe();return Ze(n.playbackSpeedAction(1.5))}),ue(37,"span"),we(38,"1.5x"),he()(),ue(39,"button",33),dt("click",function(){Je(e);let n=fe();return Ze(n.playbackSpeedAction(1.75))}),ue(40,"span"),we(41,"1.75x"),he()(),ue(42,"button",33),dt("click",function(){Je(e);let n=fe();return Ze(n.playbackSpeedAction(2))}),ue(43,"span"),we(44,"2x"),he()()()}if(s&2){let e=fe();rt(e.isBuffering()&&!e.playerConfig.audioPlayer&&!e.playerConfig.futureEvent&&!e.playerConfig.hideControls&&e.playerStatus.appInitialized?0:-1),oe(),rt(e.playerConfig.audioPlayer?-1:1),oe(),rt(e.playerConfig.futureEvent?-1:2),oe(3),vt("selected-sub-menu",e.playerStatus.selectedSubtitleLabel==""),Ye("aria-current",e.playerStatus.selectedSubtitleLabel=="")("aria-label","controls.closedCaptionsOn"),oe(2),Is(e.subtitlesList),oe(4),Is(e.audiosList),oe(4),rt(e.variantsList.length>1?15:-1),oe(),Is(e.uniqueLangVariantsList()),oe(4),rt(e.manifestUrisArray.length>1?20:-1),oe(3),vt("selected-sub-menu",e.playerStatus.playbackSpeed==.25),Ye("aria-current",e.playerStatus.playbackSpeed==.25),oe(3),vt("selected-sub-menu",e.playerStatus.playbackSpeed==.5),Ye("aria-current",e.playerStatus.playbackSpeed==.5),oe(3),vt("selected-sub-menu",e.playerStatus.playbackSpeed==.75),Ye("aria-current",e.playerStatus.playbackSpeed==.75),oe(4),vt("selected-sub-menu",e.playerStatus.playbackSpeed==1.25),xe("disabled",e.isPlayingLive()),Ye("aria-current",e.playerStatus.playbackSpeed==1.25),oe(3),vt("selected-sub-menu",e.playerStatus.playbackSpeed==1.5),xe("disabled",e.isPlayingLive()),Ye("aria-current",e.playerStatus.playbackSpeed==1.5),oe(3),vt("selected-sub-menu",e.playerStatus.playbackSpeed==1.75),xe("disabled",e.isPlayingLive()),Ye("aria-current",e.playerStatus.playbackSpeed==1.75),oe(3),vt("selected-sub-menu",e.playerStatus.playbackSpeed==2),xe("disabled",e.isPlayingLive()),Ye("aria-current",e.playerStatus.playbackSpeed==2)}}var Yg=(()=>{let a=class a{constructor(t,n,o,c,p){this.translocoService=t,this.cdr=n,this.backendService=o,this.npawService=c,this.renderer=p,this.manifestUrisArray=[],this.playlist=[],this._snackBar=ie(Cg),this.manifestUri="",this.thumbnailsUrl="",this.triggerBigAnim=!0,this.initPlay=!1,this.playerStatus={appInitialized:!1,isPlaying:!1,isFullscreen:!1,isMuted:!1,volume:1,playbackSpeed:1,showVolume:!1,qualityVariant:{height:0},abrEnabled:!0,selectedSubtitleLabel:"",selectedAudioCode:"",pip:!1,isLiveHLS:!1,visibleControls:!1,endedVideo:!1,showStartTimeControls:!1,showRemainingAudioTime:!0,focusedVolumeWithKeyboard:!1,isReloading:!1,enabledPlaying:!0},this.playerConfig={groupSettings:!0,autoPip:!1,thumbnailSize:1,primaryColor:"#2b6ade",secondaryColor:"#0c2d6a",tertiaryColor:"#5e6178",backgroundColor:"#15151e",foregroundColor:"#1e1e2d",forcedAudioLang:null,forcedCaptionLang:null,disabledTooltips:!1,enabledAutoplay:!0,shareUrl:"",overrideStartTime:0,overrideEndTime:-1,showTimeButton:!1,showAds:!1,disabledFeatures:[""],audioPlayer:!1,initVideoSeek:null,enabledMetrics:!0,enabledPersistence:!0,futureEvent:!1,endedEventWithoutContent:!1,isOpenWatchit:!1,langOverride:"",hideControls:!1,currentTimeTracker:!1,customStopTime:-1,forcedQuality:"",id:-1,muted:!1,onlyLive:!1,hideCaptions:[]},this.variantsList=[],this.subtitlesList=[],this.audiosList=[],this.progressBar=0,this.mousePos={x:0,y:0},this.mouseDown=!1,this.mouseOverControls=!1,this.mouseHoverProgressBar=!1,this.currentCue="",this.hoursStartTime="00",this.minutesStartTime="00",this.secondsStartTime="00",this.disableSaveTime=!1,this.watchitStartTime="00:00:00",this.seekEventHandler={},this.showedAds=!1,this.showingAd=!1,this.startingPlayer=!0,this.lastHoverTime=0,this.debugMenuEnabled=!1,this.onKeyDown=v=>{v.key==="Tab"&&(this.lastInputWasKeyboard=!0)},this.onMouseDown=()=>{this.lastInputWasKeyboard=!1},this.onFullscreenChange=()=>{let v=!!document.fullscreenElement;this.playerStatus.isFullscreen!==v&&(this.playerStatus.isFullscreen=v,this.outputEvent(v?"fullscreenOn":"fullscreenOff",""))}}ngOnInit(){if(document.addEventListener("fullscreenchange",this.onFullscreenChange),window.addEventListener("keydown",this.onKeyDown),window.addEventListener("mousedown",this.onMouseDown),this.playerConfig.langOverride!=="")this.translocoService.setActiveLang(this.playerConfig.langOverride),Object.defineProperty(navigator,"language",{get:()=>this.playerConfig.langOverride});else{let t=Wp()||this.translocoService.getDefaultLang?.()||"en",n=["en","es","de","fi","fr","it","nl","pt","bg","cs","da","et","el","ga","hr","lv","lt","hu","mt","pl","ro","sk","sv","ca","oc","tr","eu"].includes(t)?t:"en";this.translocoService.setActiveLang(n)}this.playerStatus.visibleControls=!this.playerConfig.hideControls}get title(){return document.title}get cueTimestamp(){let n=this.videoRef?.nativeElement?.textTracks;if(n?.length){let o=n[0].activeCues;if(o?.length)return o[0]}return null}get selectedSubsAll(){let n=this.videoRef?.nativeElement?.textTracks?.[0],o=n?.cues;if(!o?.length)return"";let c=this.getPlayerCurrentTime();return Array.from(o).reverse().map(p=>{let v=p.startTime,A=p.endTime,_=c>=v&&c<=A,m=!1;n.activeCues&&Array.from(n.activeCues).find(U=>{U.startTime==v&&(m=!0)});let y=`${this.prettyTimeFormat(v,!0,!0)} - ${this.prettyTimeFormat(A,!0,!0)}`,C=p.text.replace(/\n/g,"
"),T=_?"current-cue":"";return T+=m?" active-cue":"",`
${y}
${C}
`}).join("")}onVolumeFocus(){this.playerStatus.showVolume=!0,this.playerStatus.focusedVolumeWithKeyboard=this.lastInputWasKeyboard||!1}onVolumeBlur(){this.playerStatus.showVolume=!1,this.playerStatus.focusedVolumeWithKeyboard=!1}handleMenuDebugKeyboardEventkeydown(t){t.ctrlKey&&t.altKey&&t.shiftKey&&t.code==="KeyQ"&&(t.preventDefault(),this.debugMenuEnabled=!this.debugMenuEnabled,console.log(`[WCTPlayer] Enabled debug menu: ${this.debugMenuEnabled}`))}handleKeyboardEventkeydown(t){let n=document.activeElement;if(!this.containerRef?.nativeElement.contains(n))switch(clearInterval(this.timeHideBar),this.isMobileCheck()||(this.playerStatus.visibleControls=!this.playerConfig.hideControls,this.triggerControlsHide()),t.key){case"ArrowRight":if(this.playerStatus.showVolume)return;this.seekTime(Math.min(this.getPlayerDuration(),this.getPlayerCurrentTime()+10));break;case"ArrowLeft":if(this.playerStatus.showVolume)return;this.seekTime(Math.max(0,this.getPlayerCurrentTime()-10));break;case"ArrowUp":this.changeVolumeAction(Math.min(this.playerStatus.volume+.1,1));break;case"ArrowDown":this.changeVolumeAction(Math.max(this.playerStatus.volume-.1,0));break;case" ":case"k":this.playAction();break;case"m":this.muteAction();break;case"l":this.goLiveAction();break;case"f":this.fullscreenAction();break}}handleFocusIn(t){this.containerRef&&this.containerRef.nativeElement.contains(t.target)&&(this.playerStatus.visibleControls=!this.playerConfig.hideControls,clearTimeout(this.timeHideBar))}beforeUnload(){this.persistenceId&&(this.playerStatus.isLiveHLS?this.playerConfig.enabledPersistence&&sessionStorage.setItem(this.persistenceId,JSON.stringify(Fe({},this.playerStatus))):this.playerConfig.enabledPersistence&&sessionStorage.setItem(this.persistenceId,JSON.stringify(Yt(Fe({},this.playerStatus),{currentTime:this.getPlayerCurrentTime()}))))}ngAfterViewInit(){!this.playerConfig.futureEvent&&!this.playerStatus.appInitialized&&this.initApp(),As(15).subscribe(()=>{this.cdr.detectChanges(),this.updateProgressBar()}),As(15e3).subscribe(()=>{!this.playerConfig.futureEvent&&!this.playerStatus.appInitialized&&this.initApp(),this.outputEvent("heartbeat","")}),As(250).subscribe(()=>{let t=this.videoRef?.nativeElement;if(this.editingTextCaption)if(t&&this.editingTextCaption.srtContent.length>0){let n=this.editingTextCaption.srtContent.find(o=>o.startMiliseconds<=this.getPlayerCurrentTime()*1e3&&o.endMiliseconds>this.getPlayerCurrentTime()*1e3);n?(this.currentCue!==n.text&&this.outputEvent("newCueTimeStart",n.startMiliseconds.toString()),this.currentCue=n.text):this.currentCue=""}else this.currentCue="";else t&&t.textTracks.length>0&&t.textTracks[0].activeCues&&t.textTracks[0].activeCues.length>0?Array.from(t.textTracks[0].activeCues).forEach(n=>{let o=n;this.currentCue!==o.text&&this.outputEvent("newCueTimeStart",(o.startTime*1e3).toString()),this.currentCue=o.text}):this.currentCue=""}),addEventListener("mousemove",t=>{this.mousePos={x:t.clientX,y:t.clientY},this.mouseDown&&this.seekTime(),t.clientY<=0||t.clientX<=0||t.clientX>=window.innerWidth||t.clientY>=window.innerHeight?(this.mouseDown=!1,this.throwSeekEvent()):this.isMobileCheck()||(this.playerStatus.visibleControls=!this.playerConfig.hideControls),this.triggerControlsHide()}),addEventListener("mouseup",t=>{this.mouseDown=!1,this.throwSeekEvent()}),document.addEventListener("visibilitychange",t=>{this.playerConfig.autoPip&&(document.visibilityState=="visible"?this.playerStatus.pip&&this.pipAction():this.playerStatus.pip||this.pipAction())}),addEventListener("leavepictureinpicture",t=>{this.playerStatus.pip&&this.pipAction()}),addEventListener("enterpictureinpicture",t=>{this.playerStatus.pip||this.pipAction()}),window.addEventListener("message",t=>{if(t.origin!=window.origin){if(t.data.type=="wctSeek"&&t.data.data!==void 0&&(console.log("Received seek event to: "+JSON.stringify(t.data)),this.seekTime(t.data.data)),t.data.type=="enableCaptions"&&t.data.data){console.log("Received enable captions event to: "+JSON.stringify(t.data)),this.editingTextCaption=void 0;let n=this.subtitlesList.find(o=>t.data.data==o.language);this.changeTextTrackAction(n)}t.data.type=="editingCaption"&&t.data.data&&(console.log("Received editing captions event"),this.editingTextCaption=t.data.data),t.data.type=="updatePlayerColors"&&t.data.data&&(t.data.data.primaryColor&&(this.playerConfig.primaryColor=t.data.data.primaryColor),t.data.data.secondaryColor&&(this.playerConfig.secondaryColor=t.data.data.secondaryColor),t.data.data.tertiaryColor&&(this.playerConfig.tertiaryColor=t.data.data.tertiaryColor),t.data.data.backgroundColor&&(this.playerConfig.backgroundColor=t.data.data.backgroundColor),t.data.data.foregroundColor&&(this.playerConfig.foregroundColor=t.data.data.foregroundColor),this.setStyling()),t.data.type=="wctPlay"&&t.data.data!==void 0&&(console.log("Received play event to: "+JSON.stringify(t.data)),this.playerStatus.isPlaying&&!t.data.data&&this.playAction(),!this.playerStatus.isPlaying&&t.data.data&&this.playAction()),t.data.type=="wctMute"&&t.data.data!==void 0&&(console.log("Received mute event to: "+JSON.stringify(t.data)),this.playerStatus.isMuted&&!t.data.data&&this.muteAction(),!this.playerStatus.isMuted&&t.data.data&&this.muteAction()),t.data.type=="wctVolume"&&t.data.data!==void 0&&(console.log("Received volume event to: "+JSON.stringify(t.data)),t.data.data&&this.changeVolumeAction(t.data.data)),t.data.type=="updateOverrideTimes"&&t.data.data&&(console.log("Received override times event to: "+JSON.stringify(t.data)),this.playerConfig.overrideStartTime=t.data.data.start,this.playerConfig.overrideEndTime=t.data.data.end),t.data.type=="updateCustomStopTime"&&t.data.data!==void 0&&(console.log("Received custom stop time modify: "+JSON.stringify(t.data)),this.playerConfig.customStopTime=t.data.data),t.data.type=="getCurrentTime"&&t.data.data!==void 0&&this.sendCurrentTime()}})}ngOnDestroy(){document.removeEventListener("fullscreenchange",this.onFullscreenChange)}addTextTrack(t,n,o){return Ln(this,null,function*(){if(this.player){let c=this.subtitlesList.filter(v=>v.language==n).length,p=yield this.player.addTextTrackAsync(t,n,"subtitles",void 0,void 0,o+"_"+c);this.changeTextTrackAction(p)}})}setStyling(){document.documentElement.style.setProperty("--primaryColor",this.playerConfig.primaryColor),document.documentElement.style.setProperty("--secondaryColor",this.playerConfig.secondaryColor),document.documentElement.style.setProperty("--tertiaryColor",this.playerConfig.tertiaryColor),document.documentElement.style.setProperty("--backgroundColor",this.playerConfig.backgroundColor),document.documentElement.style.setProperty("--foregroundColor",this.playerConfig.foregroundColor)}initApp(){shaka.polyfill.installAll(),shaka.Player.isBrowserSupported()?this.initPlayer():(this.outputEvent("error","Browser not supported!"),console.error("Browser not supported!"))}isFirefox(){return navigator.userAgent.toLowerCase().includes("firefox")}isMobileCheck(){return navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i)?(window.scrollTo(0,1),!0):!1}checkVODToLiveManifest(){this.playerStatus.isLiveHLS||fetch(this.manifestUri).then(t=>t.text()).then(t=>{let n=this.getFirstM3U8Path(this.manifestUri,t);n&&fetch(n).then(o=>o.text()).then(o=>{!(o.endsWith("#EXT-X-DISCONTINUITY")||o.endsWith("#EXT-X-ENDLIST")||o.endsWith(`#EXT-X-DISCONTINUITY `)||o.endsWith(`#EXT-X-ENDLIST `))&&!this.playerStatus.isLiveHLS&&(this.playerConfig.onlyLive&&location.reload(),this._snackBar.open(this.translocoService.translate("hlsStatus.vodToLive"),void 0,{horizontalPosition:"end",verticalPosition:"top",duration:5e3}),this.outputEvent("liveStatusChange","live"),this.reloadPlayer())})})}reloadPlayer(){return Ln(this,null,function*(){let t=this.getPlayerCurrentTime();this.playerStatus.isReloading=!0,yield this.player.load(this.manifestUri).then(()=>{this.seekTime(t),this.afterLoadVideo()})})}getFirstM3U8Path(t,n){if(!t||!n)return null;let o=t.substring(0,t.lastIndexOf("/")+1),c=n.split(` `);for(let p=0;p{this.playerStatus.isFullscreen&&this.fullscreenAction()},!1),this.player=new shaka.Player,yield this.player.attach(t),this.player.addEventListener("error",this.onErrorEvent),this.player.addEventListener("abrstatuschanged",this.changedABRStatus),this.manifestUri==""&&this.manifestUrisArray.length>0){let n=localStorage.getItem("selectedVideo"),o=this.manifestUrisArray.find(c=>c.name==n);if(o)this.manifestUri=o.path,this.thumbnailsUrl=o.thumbnails;else if(this.manifestUrisArray.length>0){let c=navigator.language,p=this.manifestUrisArray.find(v=>v.lang?.includes(c))||this.manifestUrisArray.find(v=>v.lang==="qaa")||this.manifestUrisArray[0];this.manifestUrisArray.sort((v,A)=>{let _=v.lang==="qaa",m=A.lang==="qaa";return _&&!m?-1:!_&&m?1:v.name.localeCompare(A.name)}),this.manifestUri=p.path,this.thumbnailsUrl=p.thumbnails}}else this.manifestUri==""&&this.playlist.length>0&&(this.manifestUri=this.playlist[0]);try{this.checkManifestUri()}catch(n){this.onError(n)}this.playerConfig.currentTimeTracker&&As(10).subscribe(()=>{this.sendCurrentTime()})})}sendCurrentTime(){this.playerConfig.id!=-1?window.parent.postMessage({type:"currentTime",data:{id:this.playerConfig.id,time:this.getPlayerCurrentTime(),duration:this.getPlayerDuration(),timeDate:this.player.getPlayheadTimeAsDate()}},"*"):this.playerStatus.isLiveHLS?window.parent.postMessage({type:"currentTime",data:{time:this.getPlayerCurrentTime(),duration:this.getPlayerDuration(),timeDate:this.player.getPlayheadTimeAsDate()}},"*"):window.parent.postMessage({type:"currentTime",data:this.getPlayerCurrentTime()},"*")}checkManifestUri(){let t=setInterval(()=>{if(this.manifestUrisArray.length>0&&this.manifestUrisArray.length>0){let n=navigator.language,o=this.manifestUrisArray.find(c=>c.lang?.includes(n))||this.manifestUrisArray.find(c=>c.lang==="qaa")||this.manifestUrisArray[0];this.manifestUri=o.path,this.thumbnailsUrl=o.thumbnails}console.log("Manifest: "+this.manifestUri),this.manifestUri!==""&&(this.loadContent(),setTimeout(()=>{Castjs&&(this.castJS=new Castjs)},3e3),(this.videoRef?.nativeElement).addEventListener("play",()=>{!this.showedAds&&this.playerConfig.showAds&&this.initAds()}),clearInterval(t))},500)}loadContent(){return Ln(this,null,function*(){let t=()=>Ln(this,null,function*(){try{yield this.player.load(this.manifestUri);let c=this.videoRef?.nativeElement;yield new Promise(p=>{c.onloadeddata=()=>p()}),console.log("Video loaded successfully"),this.afterLoadVideo()}catch(c){return console.error("Error loading video, retrying...",c),yield new Promise(p=>setTimeout(p,1e3)),t()}});yield t();let o={uuid:this.manifestUrisArray.find(c=>c.path==this.manifestUri)?.mediaItemUuid,duration:this.getPlayerDuration(),hasVariants:this.variantsList.length>1,isMultiaudio:this.audiosList.length>1,isMultivideo:this.manifestUrisArray.length>1,maxResolution:this.getMaxResolution(),thumbnailsUrl:this.thumbnailsUrl};if(!this.playerStatus.isMuted&&this.playerConfig.muted&&this.muteAction(),this.outputEvent("playerLoaded",JSON.stringify(o)),this.playerConfig.initVideoSeek)this.seekTime(this.playerConfig.initVideoSeek);else if(this.persistenceId&&this.playerConfig.enabledPersistence){let c=sessionStorage.getItem(this.persistenceId);if(c){let p=JSON.parse(c);if(p.abrEnabled||this.changeVariantHeightAction(p.qualityVariant),p.isMuted&&this.muteAction(),this.changeVolumeAction(p.volume),this.playbackSpeedAction(p.playbackSpeed),p.selectedAudioCode!==""&&this.changeAudioTrackAction(p.selectedAudioCode),p.selectedSubtitleLabel!==""){let v=this.subtitlesList.find(A=>p.selectedSubtitleLabel==A.label);this.changeTextTrackAction(v)}this.playerStatus.endedVideo=p.endedVideo,p.currentTime&&this.seekTime(p.currentTime)}else if(this.playerConfig.forcedAudioLang&&this.changeAudioTrackAction(this.playerConfig.forcedAudioLang),this.playerConfig.forcedCaptionLang){let p=this.subtitlesList.find(v=>this.playerConfig.forcedCaptionLang==v.language);this.changeTextTrackAction(p)}}if(this.playerConfig.forcedAudioLang&&this.changeAudioTrackAction(this.playerConfig.forcedAudioLang),this.playerConfig.forcedCaptionLang){let c=this.subtitlesList.find(p=>this.playerConfig.forcedCaptionLang==p.language);this.changeTextTrackAction(c)}})}getMaxResolution(){return this.variantsList=this.variantsList.sort((t,n)=>t.height+t.width>n.height+n.width?-1:1),this.variantsList.length>0?{width:this.variantsList[0].width,height:this.variantsList[0].height}:{width:0,height:0}}initAds(){this.showedAds=!0;let t=this.player.getAdManager();t.addEventListener(shaka.ads.AdManager.AD_STARTED,()=>{this.showingAd=!0,console.log("[PlayerCoreComponent] Ad started")}),t.addEventListener(shaka.ads.AdManager.AD_COMPLETE,()=>{this.showingAd=!1,console.log("[PlayerCoreComponent] Ad completed"),t.release()}),t.addEventListener(shaka.ads.AdManager.AD_SKIPPED,()=>{this.showingAd=!1,console.log("[PlayerCoreComponent] Ad skipped"),t.release()}),t.addEventListener(shaka.ads.AdManager.AD_ERROR,o=>{console.log("Ad error: "+o),t.release()}),t.initInterstitial(this.containerAdsRef?.nativeElement,this.player,this.videoRef?.nativeElement),t.addAdUrlInterstitial("https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_ad_samples&sz=640x480&cust_params=sample_ct%3Dlinear&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=")}loadStartTime(t){t.watchitData&&t.watchitData.watchitUuid&&this.backendService.getPlayersettings(t.watchitData.watchitUuid).subscribe(n=>{if(n.results.length>0&&t.watchitData){let o=n.results[0];t.watchitData.playersettingsId=n.results[0].id,t.watchitData.playersettingsId&&t.watchitData.watchitUuid&&(o.start_time||(o.start_time="00:00:00"),this.hoursStartTime=o.start_time.slice(0,2),this.minutesStartTime=o.start_time.slice(3,5),this.secondsStartTime=o.start_time.slice(6,8));let c=+this.hoursStartTime*3600+ +this.minutesStartTime*60+ +this.secondsStartTime;this.seekTime(c)}})}triggerControlsHide(){clearTimeout(this.timeHideBar),this.timeHideBar=setTimeout(()=>{this.allMatMenusClosed()&&this.playerStatus.isPlaying&&!this.mouseOverControls&&!this.uiWrapper?.nativeElement.contains(document.activeElement)&&!this.playerStatus.pip?(this.playerStatus.visibleControls=!1,this.subtitleRef?.nativeElement.classList.add("subtitle-vertical-align")):this.triggerControlsHide()},1e3)}forceControlsTrigger(){this.playerStatus.visibleControls=this.playerConfig.hideControls?!1:!this.playerStatus.visibleControls}onErrorEvent(t){this.onError(t.detail),this.outputEvent("error",this.getPlayerCurrentTime().toString()+t.detail)}onError(t){console.error("Error code",t.code,"object",t),this.outputEvent("error",t.code)}changedABRStatus(t){console.log("[PlayerCoreComponent] Changed ABR status to: "+t.newStatus),this.outputEvent("abrChange",t.newStatus.toString())}afterLoadVideo(){if(this.playerConfig.isOpenWatchit&&As(2e3).subscribe(()=>{this.checkVODToLiveManifest()}),this.playerStatus.appInitialized=!0,this.startingPlayer=!1,this.playerStatus.endedVideo=!1,this.playerConfig.enabledAutoplay&&(this.triggerBigAnim=!1,setTimeout(()=>{this.triggerBigAnim=!0},1)),this.variantsList=this.player.getVariantTracks(),this.variantsList.sort((t,n)=>t.heightn.height?-1:0),this.subtitlesList=this.player.getTextTracks(),this.audiosList=this.player.getAudioLanguagesAndRoles(),this.audiosList.sort((t,n)=>t.language.localeCompare(n.language)),this.subtitlesList.sort((t,n)=>t.language.localeCompare(n.language)),this.audiosList.length>0&&(this.playerStatus.selectedAudioCode=this.audiosList[0].language),this.playerStatus.isLiveHLS=this.player.isLive(),this.playerConfig.onlyLive&&!this.playerStatus.isLiveHLS?this.playerStatus.enabledPlaying=!1:this.playerStatus.enabledPlaying=!0,this.isLiveSubscriber?.unsubscribe(),this.isLiveSubscriber=As(1e3).subscribe(()=>{this.playerStatus.isLiveHLS&&!this.player.isLive()&&(this.playerConfig.onlyLive&&location.reload(),this.reloadPlayer(),this._snackBar.open(this.translocoService.translate("hlsStatus.liveToVod"),void 0,{horizontalPosition:"end",verticalPosition:"top",duration:5e3}),this.outputEvent("liveStatusChange","vod"),this.playerStatus.isLiveHLS=this.player.isLive()),this.playerConfig.onlyLive&&!this.playerStatus.isLiveHLS?this.playerStatus.enabledPlaying=!1:this.playerStatus.enabledPlaying=!0}),this.playerConfig.enabledMetrics&&this.initNpaw(),this.playerConfig.forcedQuality=="low"){let t=this.variantsList.at(-1);t&&this.changeVariantTrackAction(t)}if(!this.playerConfig.initVideoSeek&&!this.playerStatus.isLiveHLS&&!this.playerStatus.isReloading){let t=this.manifestUrisArray.find(n=>n.path==this.manifestUri);t&&this.loadStartTime(t)}this.playerStatus.isReloading=!1}initNpaw(){shaka.net.HttpXHRPlugin&&(shaka.net.NetworkingEngine.registerScheme("http",shaka.net.HttpXHRPlugin.parse,shaka.net.NetworkingEngine.PluginPriority.PREFERRED),shaka.net.NetworkingEngine.registerScheme("https",shaka.net.HttpXHRPlugin.parse,shaka.net.NetworkingEngine.PluginPriority.PREFERRED));let t=this.manifestUrisArray.find(n=>n.path==this.manifestUri);if(t){let n=t.name;t.watchitData&&t.watchitData.name&&(n=t.watchitData.name),this.npawService.initNpawService({playerInstance:this.player,title:this.titlePlayer||n,url:t.path,id:t.watchitData?.watchitUuid||"",language:this.manifestUrisArray.length>1?t.name:void 0,isLive:this.playerStatus.isLiveHLS,location:t.watchitData?.organizationSlug||"",contentType:t.watchitData?"watchit":"mediaitem",playerSettingsId:t.watchitData?.playersettingsId||""})}}isBuffering(){return this.player?this.player.isBuffering()||this.startingPlayer:!1}getBuffer(){if(this.isPlayingLive())return 0;let t=this.videoRef?.nativeElement;return t&&t.buffered.length>0?t.buffered.end(t.buffered.length-1)/this.getPlayerDuration()*100:0}getPlayerCurrentTime(){let t=this.videoRef?.nativeElement;if(t&&this.player){let n=t.currentTime;return t.currentTime=this.playerConfig.overrideEndTime&&(this.playerStatus.endedVideo||(this.playerStatus.isPlaying&&this.playAction(),this.playerStatus.endedVideo=!0,this.checkNextPlaylist())),this.playerConfig.customStopTime&&this.player&&this.playerConfig.customStopTime!==-1&&n>=this.playerConfig.customStopTime&&this.playerStatus.isPlaying&&this.playAction(),Math.min(n-this.playerConfig.overrideStartTime-(this.playerStatus.isLiveHLS?0:this.player.seekRange().start),this.getPlayerDuration())}return 0}checkNextPlaylist(){let t=this.getPlaylistPosition();t!==-1&&this.playlist.length>t+1&&this.changeManifestUriAction(this.playlist[t+1])}getPlaylistPosition(){return this.playlist.length>0?this.playlist.findIndex(t=>t==this.manifestUri):-1}getThumbnailOnTime(){if(this.mouseHoverProgressBar||this.mouseDown){let t=this.videoRef?.nativeElement,n=this.mousePos.x-(window.innerWidth-this.progressBarRef?.nativeElement.offsetWidth)/2,o=this.progressBarRef?.nativeElement.offsetWidth,c=this.playerConfig.overrideStartTime+this.getPlayerDuration()*(n/o);if(Math.floor(c)!==this.lastHoverTime){this.lastBgImage=new Image,this.lastBgImage.onload=()=>{this.thumbnailRef&&(this.thumbnailRef.nativeElement.style.backgroundImage="url("+this.lastBgImage?.src+")")};let p=this.thumbnailsUrl?.replace(".jpeg","_"+this.sixDigit(Math.floor(c))+"s.jpeg").replace(".jpg","_"+this.sixDigit(Math.floor(c))+"s.jpg");p&&(this.lastBgImage.src=p),this.lastHoverTime=Math.floor(c)}}}isInfinityDuration(){return this.getPlayerDuration()==1/0}getPlayerDuration(){return this.player?(this.playerConfig.overrideEndTime!==-1?this.playerConfig.overrideEndTime:this.player.seekRange().end-(this.playerStatus.isLiveHLS?0:this.player.seekRange().start))-this.playerConfig.overrideStartTime:0}getThumbLeftPos(){let t=this.progressBarRef?.nativeElement.querySelectorAll(".mdc-linear-progress__bar-inner");return t&&t.length>0?Math.min(window.innerWidth-10,t[0].getBoundingClientRect().width+t[0].getBoundingClientRect().x)-10:0}getLineLeftPos(){return Math.min(window.innerWidth*.99,this.mousePos.x)}getWidthThumbnail(){return this.thumbnailRef&&this.lastBgImage?this.lastBgImage.width/this.lastBgImage.height*18:0}getThumbnailLeftPos(){return this.thumbnailRef?Math.max(20,Math.min(window.innerWidth-(this.thumbnailRef.nativeElement.offsetWidth||55)-20,this.mousePos.x-this.thumbnailRef.nativeElement.offsetWidth/2)):0}getTimeHover(){if((this.mouseHoverProgressBar||this.mouseDown)&&this.thumbnailRef){let t=this.mousePos.x-(window.innerWidth-this.progressBarRef?.nativeElement.offsetWidth)/2,n=this.progressBarRef?.nativeElement.offsetWidth,o=Math.max(0,Math.min(t/n,1));return this.prettyTimeFormat(this.getPlayerDuration()*o)}return""}seekTime(t){this.playerStatus.endedVideo=!1;let n=this.videoRef?.nativeElement;if(n&&t!==void 0)n.currentTime=Math.min(this.getPlayerDuration()-.01,this.playerConfig.overrideStartTime+t+(this.playerStatus.isLiveHLS?0:this.player.seekRange().start));else if(n&&this.mouseDown){let o=this.mousePos.x-(window.innerWidth-this.progressBarRef?.nativeElement.offsetWidth)/2,c=this.progressBarRef?.nativeElement.offsetWidth,p=this.playerConfig.overrideStartTime+(this.playerStatus.isLiveHLS?0:this.player.seekRange().start)+this.getPlayerDuration()*(o/c);if(this.seekEventHandler.lastTime||(this.seekEventHandler.lastTime=n.currentTime,this.seekEventHandler.downDate=Date.now(),this.seekEventHandler.startSeek=p),n.currentTime=p,this.playerStatus.showStartTimeControls){let v=new Date(0);v.setSeconds(p),this.hoursStartTime=v.toISOString().slice(11,13),this.minutesStartTime=v.toISOString().slice(14,16),this.secondsStartTime=v.toISOString().slice(17,19)}}this.initPlay=!0}prettyTimeFormat(t,n=!1,o=!1){if(t==null)return"";this.playerStatus.isLiveHLS&&!n&&(t=this.getPlayerDuration()-t);let c=Math.floor(t/3600),p=Math.floor((t-c*3600)/60),v=Math.floor(t-c*3600-p*60),A=this.playerStatus.isLiveHLS&&!n?"- ":"",_="";return o&&(_="."+Math.floor((t-Math.floor(t))*1e3).toString().padStart(3,"0")),c>0?A+this.twoDigit(c)+":"+this.twoDigit(p)+":"+this.twoDigit(v)+_:A+this.twoDigit(p)+":"+this.twoDigit(v)+_}prettyDate(t){return t?.toLocaleString(this.translocoService.getActiveLang(),{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})+" Z"}allowedHeightCoverAudio(){return window.innerHeight>400}twoDigit(t){return t.toLocaleString("en-US",{minimumIntegerDigits:2,useGrouping:!1})}sixDigit(t){return t.toLocaleString("en-US",{minimumIntegerDigits:6,useGrouping:!1})}getPlayIcon(){let t=this.videoRef?.nativeElement;if(t){if(this.playerStatus.isPlaying=!t.paused,this.playerStatus.endedVideo)return this.uiIcons.replay;if(this.playerStatus.isPlaying)return this.uiIcons.pause}return this.uiIcons.play}getInversedPlayIcon(){let t=this.videoRef?.nativeElement;if(t){if(this.playerStatus.isPlaying=!t.paused,this.playerStatus.endedVideo)return this.uiIcons.replay;if(this.playerStatus.isPlaying)return this.uiIcons.play}return this.uiIcons.pause}getPlayTooltip(){let t=this.videoRef?.nativeElement;if(t){if(this.playerStatus.isPlaying=!t.paused,this.playerStatus.endedVideo)return this.translocoService.translate("controls.startOver");if(this.playerStatus.isPlaying)return this.translocoService.translate("controls.pause")}return this.translocoService.translate("controls.play")}getVolumeIcon(){return this.playerStatus.volume==0?this.uiIcons.volumeOff:this.playerStatus.volume<.3333?this.uiIcons.volumeLow:this.playerStatus.volume>=.3333&&this.playerStatus.volume<.6666?this.uiIcons.volumeMedium:this.playerStatus.volume>=.6666?this.uiIcons.volumeHigh:""}getPlaybackSpeedIcon(){return this.playerStatus.playbackSpeed==1?this.uiIcons.playbackSpeed:this.playerStatus.playbackSpeed<1?this.uiIcons.playbackSpeedLow:this.playerStatus.playbackSpeed>1?this.uiIcons.playbackSpeedHigh:""}getQualityIcon(){if(this.player){let t=this.player.getVariantTracks();if(t.length>0&&(this.playerStatus.qualityVariant=t.find(n=>n.active)),this.playerStatus.qualityVariant?.height>=720)return this.uiIcons.hdQuality}return this.uiIcons.sdQuality}getLiveIcon(){return this.isPlayingLive()?this.uiIcons.liveOnLive:this.uiIcons.liveNotLive}isPlayingLive(){let t=this.getPlayerCurrentTime()-this.getPlayerDuration(),n=!(!this.playerStatus.isLiveHLS||t<-1);return n&&this.playerStatus.playbackSpeed>1&&(this.playbackSpeedAction(1),this.forwardAction()),n}linear2Logarithmic(t){return Math.log2(1+t)}allMatMenusClosed(){return(!this.settingsMenuTrigger||!this.settingsMenuTrigger?.menuOpen)&&(!this.menuSubtitlesTrigger||!this.menuSubtitlesTrigger?.menuOpen)&&(!this.menuAudiosTrigger||!this.menuAudiosTrigger?.menuOpen)&&(!this.menuSpeedTrigger||!this.menuSpeedTrigger?.menuOpen)&&(!this.menuQualitiesTrigger||!this.menuQualitiesTrigger?.menuOpen)&&(!this.menuVideosTrigger||!this.menuVideosTrigger?.menuOpen)&&(!this.menuShareTrigger||!this.menuShareTrigger?.menuOpen)}enabledAutoplay(){return this.playerConfig.enabledAutoplay}playAction(){this.triggerBigAnim=!1,setTimeout(()=>{this.triggerBigAnim=!0},1),this.playerStatus.endedVideo&&(this.getPlayerCurrentTime()==this.getPlayerDuration()&&this.seekTime(.1),this.playerStatus.endedVideo=!1);let t=this.videoRef?.nativeElement;t&&(this.playerStatus.isPlaying=t.paused,this.playerStatus.isPlaying?t.play():t.pause()),this.playerStatus.isPlaying?this.initPlay?this.outputEvent("playbackResumed",this.getPlayerCurrentTime().toString()):(this.initPlay=!0,this.playerStatus.isLiveHLS&&this.goLiveAction(),this.outputEvent("playbackStart",this.getPlayerCurrentTime().toString())):this.playerConfig.id!=-1?this.outputEvent("playbackPaused",{currentTime:this.getPlayerCurrentTime().toString(),id:this.playerConfig.id}):this.outputEvent("playbackPaused",this.getPlayerCurrentTime().toString())}firstPlay(){this.initPlay||(this.initPlay=!0,this.outputEvent("playbackStart",this.getPlayerCurrentTime().toString()))}fullscreenAction(){if(!this.playerConfig.audioPlayer)if(this.playerStatus.isFullscreen=!this.playerStatus.isFullscreen,this.playerStatus.isFullscreen){if(this.isIOS()){let t=this.videoRef?.nativeElement;t.webkitEnterFullscreen&&t.webkitEnterFullscreen()}else document.body.requestFullscreen();this.outputEvent("fullscreenOn","")}else if(this.outputEvent("fullscreenOff",""),this.isIOS()){let t=this.videoRef?.nativeElement;t.webkitExitFullscreen&&t.webkitExitFullscreen()}else document.exitFullscreen()}isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1}muteAction(){let t=this.videoRef?.nativeElement;t&&(this.playerStatus.isMuted=!this.playerStatus.isMuted,this.playerStatus.isMuted?t.muted=!0:t.muted=!1);let n={isMuted:this.playerStatus.isMuted,volume:this.playerStatus.volume};this.outputEvent("muteChange",JSON.stringify(n))}playbackSpeedAction(t){let n=this.videoRef?.nativeElement;n&&(this.playerStatus.playbackSpeed=t,n.playbackRate=t,this.outputEvent("playbackSpeedChange",t.toString()))}changeVolumeAction(t){let n=this.videoRef?.nativeElement;n&&(this.playerStatus.volume=t,n.volume=this.linear2Logarithmic(t),this.playerStatus.isMuted&&this.muteAction(),this.outputEvent("volumeChange",n.volume.toString()))}changeVariantTrackAction(t){this.player.configure({abr:{enabled:!1}}),this.playerStatus.selectedAudioCode;let n=this.variantsList.find(o=>o.height===t.height&&o.language===this.playerStatus.selectedAudioCode);n&&(t=n),this.playerStatus.qualityVariant=t,this.player.selectVariantTrack(t,!0),this.playerStatus.abrEnabled=!1,this.outputEvent("changeQuality",t.height.toString())}changeVariantHeightAction(t){this.player.configure({abr:{enabled:!1}}),this.playerStatus.selectedAudioCode;let n=this.variantsList.find(o=>o.height===t&&o.language===this.playerStatus.selectedAudioCode);n&&(this.playerStatus.qualityVariant=n,this.player.selectVariantTrack(n,!0),this.playerStatus.abrEnabled=!1,this.outputEvent("changeQuality",n.height.toString()))}enableABRAction(){this.playerStatus.abrEnabled=!0,this.player.configure({abr:{enabled:!0}}),this.outputEvent("abrChange",this.playerStatus.abrEnabled.toString())}changeTextTrackAction(t){this.playerStatus.selectedSubtitleLabel=t?.label||"",this.subtitlesList=this.player.getTextTracks(),this.subtitlesList.sort((n,o)=>n.language.localeCompare(o.language)),t&&this.player.selectTextTrack(t),this.player.setTextTrackVisibility(t!=null),this.outputEvent("changeSubtitle",this.playerStatus.selectedSubtitleLabel)}changeAudioTrackAction(t){this.playerStatus.selectedAudioCode=t||"",t&&this.player.selectAudioLanguage(t),this.outputEvent("changeAudio",this.playerStatus.selectedAudioCode)}backwardAction(){if(this.videoRef?.nativeElement){let n={from:this.getPlayerCurrentTime(),to:this.getPlayerCurrentTime()-10};this.outputEvent("backwardAction",JSON.stringify(n)),this.seekTime(Math.max(0,this.getPlayerCurrentTime()-10))}}forwardAction(){if(this.videoRef?.nativeElement){let n={from:this.getPlayerCurrentTime(),to:this.getPlayerCurrentTime()+10};this.outputEvent("forwardAction",JSON.stringify(n)),this.seekTime(Math.min(this.getPlayerDuration(),this.getPlayerCurrentTime()+10))}}shareAction(t){let n="";switch(t){case"facebook":n="https://www.facebook.com/sharer.php?u="+encodeURI(this.playerConfig.shareUrl||window.location.href);break;case"linkedin":n="https://www.linkedin.com/shareArticle?url="+encodeURI(this.playerConfig.shareUrl||window.location.href);break;case"whatsapp":n="https://api.whatsapp.com/send?text="+encodeURI(this.playerConfig.shareUrl||window.location.href);break;case"x":n="https://twitter.com/share?url="+encodeURI(this.playerConfig.shareUrl||window.location.href);break;case"clipboard":navigator.clipboard.writeText(this.playerConfig.shareUrl||window.location.href);break}this.outputEvent("shareAction",n),n!=""&&window.open(n,"_blank")}pipAction(){let t=this.videoRef?.nativeElement;this.playerStatus.pip=!this.playerStatus.pip,t&&(this.playerStatus.pip?t.requestPictureInPicture():document.exitPictureInPicture()),this.outputEvent("pipAction",this.playerStatus.pip.toString())}changeManifestUriAction(t,n=!1){return Ln(this,null,function*(){if(this.manifestUri=t,yield this.player.load(this.manifestUri).then(()=>this.afterLoadVideo()),!n){let o=this.manifestUrisArray.find(c=>c.path==t);o&&(this.playerConfig.enabledPersistence&&localStorage.setItem("selectedVideo",o.name),this.thumbnailsUrl=o.thumbnails)}this.outputEvent("changeManifest",t)})}goLiveAction(){this.isPlayingLive()||(this.playerStatus.isPlaying||this.playAction(),this.player.goToLive()),this.outputEvent("goLiveAction","")}chromecastAvailable(){return this.castJS?this.castJS.available:!1}chromecastAction(){this.castJS.available&&this.castJS.cast(this.manifestUri),this.outputEvent("chromecastAction","")}throwSeekEvent(){if(this.seekEventHandler.downDate){let n=(Date.now()-this.seekEventHandler.downDate)/1e3>.5,o=this.videoRef?.nativeElement;if(n){let c={from:this.seekEventHandler.startSeek,to:o.currentTime};this.outputEvent("seek",JSON.stringify(c))}else{let c={from:this.seekEventHandler.lastTime,to:o.currentTime};this.outputEvent("seek",JSON.stringify(c))}this.playerConfig.showTimeButton&&this.playerStatus.showStartTimeControls&&this.saveStartTime()}this.seekEventHandler={}}outputEvent(t,n){window.parent&&(window.parent.postMessage({type:t,data:n},"*"),console.log("[WCTPlayer] Throwed event: "+t+" | "+n))}startTimeVisibilityTriggerAction(){if(this.playerStatus.showStartTimeControls=!this.playerStatus.showStartTimeControls,this.playerStatus.showStartTimeControls){let t=new Date(0);t.setSeconds(this.getPlayerCurrentTime()),this.hoursStartTime=t.toISOString().slice(11,13),this.minutesStartTime=t.toISOString().slice(14,16),this.secondsStartTime=t.toISOString().slice(17,19)}}fixTimeLimits(){let t=new Date(0);t.setSeconds(Math.min(+this.hoursStartTime*3600+ +this.minutesStartTime*60+ +this.secondsStartTime,this.getPlayerDuration())),this.hoursStartTime=t.toISOString().slice(11,13),this.minutesStartTime=t.toISOString().slice(14,16),this.secondsStartTime=t.toISOString().slice(17,19);let n=parseFloat(this.watchitStartTime.split(":")[0]),o=parseFloat(this.watchitStartTime.split(":")[1]),c=parseFloat(this.watchitStartTime.split(":")[2]);+this.hoursStartTime==n&&+this.minutesStartTime==o&&+this.secondsStartTime==c?this.disableSaveTime=!0:this.disableSaveTime=!1;let p=+this.hoursStartTime*3600+ +this.minutesStartTime*60+ +this.secondsStartTime;this.seekTime(p),this.saveStartTime()}saveStartTime(){let t=this.manifestUrisArray.find(n=>n.path==this.manifestUri)?.watchitData;console.log("Saving start time on: "+JSON.stringify(t)),t&&t.watchitUuid&&(t.playersettingsId?this.finishSettingStartTime(t):this.backendService.getPlayersettings(t.watchitUuid).subscribe(n=>{n.results.length>0&&t&&(t.playersettingsId=n.results[0].id,this.finishSettingStartTime(t))}))}finishSettingStartTime(t){console.log("Finishing save start time on: "+JSON.stringify(t));let n=this.hoursStartTime+":"+this.minutesStartTime+":"+this.secondsStartTime,o={id:t.playersettingsId||"",start_time:n};this._snackBar.open(this.translocoService.translate("studio.saveStartTime",{time:n}),void 0,{horizontalPosition:"end",verticalPosition:"top",duration:3e3}),this.backendService.patchPlayersettings(t.watchitUuid,t.playersettingsId,o).subscribe(()=>{})}translatedLang(t){return new Intl.DisplayNames([this.translocoService.getActiveLang()],{type:"language"}).of(t)||t}isDisabledFeature(t){return this.playerConfig.disabledFeatures.indexOf(t)!==-1}uniqueLangVariantsList(){return[...new Map(this.variantsList.map(t=>[t.height,t])).values()]}upperString(t){return t.toUpperCase()}};a.\u0275fac=function(n){return new(n||a)(ni(vd),ni(gi),ni(Tl),ni(Xg),ni(Ci))},a.\u0275cmp=zt({type:a,selectors:[["app-player-core"]],viewQuery:function(n,o){if(n&1&&(ii(hb,5),ii(pb,5),ii(fb,5),ii(gb,5),ii(mb,5),ii(yb,5),ii(vb,5),ii(_b,5),ii(bb,5),ii(Eb,5),ii(Cb,5),ii(Ab,5),ii(wb,5),ii(Sb,5),ii(Tb,5)),n&2){let c;Ht(c=qt())&&(o.videoRef=c.first),Ht(c=qt())&&(o.containerRef=c.first),Ht(c=qt())&&(o.containerAdsRef=c.first),Ht(c=qt())&&(o.progressBarRef=c.first),Ht(c=qt())&&(o.thumbnailRef=c.first),Ht(c=qt())&&(o.subtitleRef=c.first),Ht(c=qt())&&(o.bigPlayIcon=c.first),Ht(c=qt())&&(o.uiWrapper=c.first),Ht(c=qt())&&(o.settingsMenuTrigger=c.first),Ht(c=qt())&&(o.menuSubtitlesTrigger=c.first),Ht(c=qt())&&(o.menuAudiosTrigger=c.first),Ht(c=qt())&&(o.menuSpeedTrigger=c.first),Ht(c=qt())&&(o.menuQualitiesTrigger=c.first),Ht(c=qt())&&(o.menuVideosTrigger=c.first),Ht(c=qt())&&(o.menuShareTrigger=c.first)}},hostBindings:function(n,o){n&1&&dt("keydown",function(p){return o.handleMenuDebugKeyboardEventkeydown(p)},Nu)("keydown",function(p){return o.handleKeyboardEventkeydown(p)},so)("focusin",function(p){return o.handleFocusIn(p)},so)("beforeunload",function(){return o.beforeUnload()},so)},inputs:{manifestUrisArray:"manifestUrisArray",playlist:"playlist",persistenceId:"persistenceId",titlePlayer:"titlePlayer",coverImg:"coverImg",playerConfig:"playerConfig",uiIcons:"uiIcons"},decls:3,vars:2,consts:[["menuSubtitles","matMenu"],["menuAudios","matMenu"],["menuQualities","matMenu"],["menuVideos","matMenu"],["menuSpeed","matMenu"],["containerAdsRef",""],["containerRef",""],["videoRef",""],["uiWrapper",""],["thumbnailRef",""],["progressBarRef",""],["settingsMenuTrigger","matMenuTrigger"],["settingsMenu","matMenu"],["videosMenuTrigger","matMenuTrigger"],["speedMenuTrigger","matMenuTrigger"],["subtitlesMenuTrigger","matMenuTrigger"],["audiosMenuTrigger","matMenuTrigger"],["qualitiesMenuTrigger","matMenuTrigger"],["shareMenuTrigger","matMenuTrigger"],["menuShare","matMenu"],[1,"debug-menu-wrapper"],[1,"centered-flex",3,"ngStyle"],["class","debug-menu-wrapper",4,"ngIf"],[1,"debug-menu-flex"],[1,"debug-menu-divider"],[1,"debug-menu-subs",3,"innerHTML"],[1,"main-flex"],["xPosition","before","yPosition","above"],["mat-menu-item","","aria-hidden","false",3,"click"],[4,"transloco"],["mat-menu-item","","aria-hidden","false",3,"selected-sub-menu"],["mat-menu-item","",3,"click"],["mat-menu-item","","aria-hidden","false",3,"selected-sub-menu","click",4,"transloco"],["mat-menu-item","",3,"click","disabled"],[1,"centered-flex"],["white","","strokeWidth","8"],["alt","","aria-hidden","true","width","100px","height","100px",1,"big-play-icon",3,"src"],[1,"not-started-event"],["class","not-started-event",4,"transloco"],[1,"subtitle-wrapper",3,"subtitle-vertical-align","innerHTML"],[2,"width","100%","height","100%"],["playsinline","","webkit-playsinline","","id","video","width","100%","height","100%",2,"position","absolute",3,"playing","click","dblclick","ended","ngStyle","muted","autoplay"],[1,"ui-wrapper",3,"ui-wrapper-hidden","hide-controls-transition"],[1,"audio-player-wrapper"],[1,"subtitle-wrapper",3,"innerHTML"],["class","ui-wrapper",3,"ui-wrapper-hidden","hide-controls-transition","mouseenter","mouseleave",4,"transloco"],[1,"ui-wrapper",3,"mouseenter","mouseleave"],[1,"flex-buttons"],[1,"sub-flex-buttons"],["aria-hidden","false",1,"ui-button",3,"matTooltip","matTooltipDisabled"],["aria-hidden","false",1,"flex-volume",3,"mouseenter","mouseleave"],[1,"animate-volume"],[3,"max","min","step"],["matSliderThumb","","aria-hidden","false",3,"ngModelChange","focus","blur","ngModel"],[1,"flex-timer",3,"timer-mobile"],[1,"wrapper-start-time"],[1,"thumbnail",3,"ngStyle"],[1,"time-thumbnail"],["tabindex","0","aria-hidden","false",1,"ui-progress-bar",3,"mousedown","mouseenter","mouseleave"],[1,"line",3,"ngStyle"],[1,"thumb",3,"ngStyle"],[1,"thumb-triangle",3,"ngStyle"],["mode","buffer","aria-hidden","false",1,"timeline-scaleY",3,"value","bufferValue"],["aria-hidden","false",1,"ui-button",3,"click","matTooltip","matTooltipDisabled"],["width","25px","height","25px",3,"alt","src"],["aria-hidden","false",1,"ui-button",3,"disabled","matTooltip","matTooltipDisabled"],["width","25px","height","25px",1,"center",3,"alt","src"],["aria-hidden","false",1,"ui-button","flex-live-button",3,"no-pointer-events"],["aria-hidden","false",1,"ui-button","flex-live-button",3,"click"],["width","7px","height","7px",3,"alt","src"],[1,"text-live"],[1,"flex-timer"],[1,"text-timer","text-fixed-width"],[1,"text-timer"],["aria-hidden","false",1,"ui-button","extra-margin",3,"click"],["alt","","width","25px","height","25px",3,"src"],["type","text","id","hours","min","0","max","99","autocomplete","nope",1,"number-input","ml-1",3,"ngModelChange","blur","ngModel"],[1,"timestamp"],["type","text","id","minutes","min","0","max","60","autocomplete","nope",1,"number-input",3,"ngModelChange","blur","ngModel"],["type","text","id","seconds","min","0","max","60","autocomplete","nope",1,"number-input",3,"ngModelChange","blur","ngModel"],["aria-hidden","false",1,"ui-button",3,"matMenuTriggerFor","matTooltip","matTooltipDisabled"],["mat-menu-item","","aria-hidden","false",3,"matMenuTriggerFor"],[1,"mat-menu-flex-button"],["width","12px","height","12px",3,"alt","src"],["alt","Chromecast","width","25px","height","25px",3,"src"],["alt","Facebook","width","13px","height","13px",3,"src"],["alt","Linkedin","width","13px","height","13px",3,"src"],["alt","X","width","13px","height","13px",3,"src"],["alt","Whatsapp","width","13px","height","13px",3,"src"],["width","13px","height","13px",3,"alt","src"],["class","audio-player-wrapper",4,"transloco"],[1,"audio-player-limits"],[1,"title-player"],[1,"ui-progress-bar",3,"hover"],[1,"timer-audio-wrapper"],["cols","3","rowHeight","80px",1,"audio-player-wrapper"],["content-start",""],[1,"flex-volume",3,"mouseenter","mouseleave"],["matTooltipPosition","above","aria-hidden","false",1,"ui-button",3,"matTooltip","matTooltipDisabled"],[1,"play-audio-wrapper"],["matTooltipPosition","above","aria-hidden","false",1,"ui-button",3,"click","matTooltip","matTooltipDisabled"],["width","60px","height","60px",3,"alt","src"],["matTooltipPosition","above","aria-hidden","false",1,"ui-button",3,"disabled","matTooltip","matTooltipDisabled"],["content-end",""],["matTooltipPosition","above","aria-hidden","false",1,"ui-button",3,"matMenuTriggerFor","matTooltip","matTooltipDisabled"],["width","35px","height","35px",3,"alt","src"],["alt","",1,"cover-img",3,"src"],[1,"ui-progress-bar",3,"mousedown","mouseenter","mouseleave"],[1,"line-audio",3,"ngStyle"],[1,"thumb-audio",3,"ngStyle"],["mode","buffer",1,"timeline-scaleY",3,"value","bufferValue"],[1,"timer-text-audio"],[3,"click"],["width","35px","height","35px",1,"center",3,"alt","src"],["width","30px","height","30px",3,"alt","src"],["alt","","width","35px","height","35px",3,"src"],["alt","","width","13px","height","13px",3,"src"],["mat-menu-item","",3,"selected-sub-menu"]],template:function(n,o){n&1&&(st(0,Pb,1,1,"div",20),st(1,Ib,1,3,"div",21)(2,tE,45,34)),n&2&&(rt(o.debugMenuEnabled?0:-1),oe(),rt(o.playerStatus.enabledPlaying?2:1))},dependencies:[pf,sl,df,wd,Wf,Gf,Sg,Dr,Ha,wg,Pg,Ug,ou,go,bc,Ec,Rg,Lg,uu,du,zp,qp,Hf,jf,qd],styles:['@font-face{font-family:Courier Prime;font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/courierprime/v11/u-4n0q2lgwslOqpF_6gQ8kELawRZVsf6lvg.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Courier Prime;font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/courierprime/v11/u-4n0q2lgwslOqpF_6gQ8kELawRZWMf6.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Courier Prime;font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/courierprime/v11/u-4i0q2lgwslOqpF_6gQ8kELawRR4-Lvp9nsBXw.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Courier Prime;font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/courierprime/v11/u-4i0q2lgwslOqpF_6gQ8kELawRR4-Lvqdns.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Courier Prime;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/courierprime/v11/u-450q2lgwslOqpF_6gQ8kELaw9pWt_-.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Courier Prime;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/courierprime/v11/u-450q2lgwslOqpF_6gQ8kELawFpWg.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Courier Prime;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/courierprime/v11/u-4k0q2lgwslOqpF_6gQ8kELY7pMT-7fq8Ho.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Courier Prime;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/courierprime/v11/u-4k0q2lgwslOqpF_6gQ8kELY7pMT-Dfqw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:italic;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u-w4BMUTPHjxsIPx-mPCLQ7A.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:italic;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u-w4BMUTPHjxsIPx-oPCI.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:italic;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u_w4BMUTPHjxsI9w2_FQft1dw.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:italic;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u_w4BMUTPHjxsI9w2_Gwft.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u8w4BMUTPHjxsAUi-qJCY.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:italic;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u8w4BMUTPHjxsAXC-q.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u_w4BMUTPHjxsI5wq_FQft1dw.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:italic;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u_w4BMUTPHjxsI5wq_Gwft.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u_w4BMUTPHjxsI3wi_FQft1dw.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:italic;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u_w4BMUTPHjxsI3wi_Gwft.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u8w4BMUTPHh30AUi-qJCY.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-weight:100;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u8w4BMUTPHh30AXC-q.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh7USSwaPGR_p.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-weight:300;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh7USSwiPGQ.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6uyw4BMUTPHjxAwXjeu.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6uyw4BMUTPHjx4wXg.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh6UVSwaPGR_p.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Lato;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh50XSwaPGR_p.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Lato;font-style:normal;font-weight:900;font-display:swap;src:url(https://fonts.gstatic.com/s/lato/v25/S6u9w4BMUTPHh50XSwiPGQ.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUQjIg1_i6t8kCHKm459WxRxi7mw9c.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Montserrat;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Montserrat;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://fonts.gstatic.com/s/montserrat/v31/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtE6F15M.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWvU6F15M.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtU6F15M.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWuk6F15M.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWu06F15M.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWxU6F15M.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqW106F15M.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWtk6F15M.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWt06F15M.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:italic;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memtYaGs126MiZpBA-UFUIcVXSCEkx2cmqvXlWqWuU6F.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTVOmu1aB.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTUGmu1aB.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Open Sans;font-style:normal;font-weight:300 800;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v44/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS-muw.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:italic;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkC3kaWzU.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:italic;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkAnkaWzU.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:italic;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCnkaWzU.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:italic;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBXkaWzU.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:italic;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkenkaWzU.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:italic;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkaHkaWzU.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:italic;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCXkaWzU.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:italic;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCHkaWzU.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:italic;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBnka.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:italic;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkC3kaWzU.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:italic;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkAnkaWzU.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:italic;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCnkaWzU.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:italic;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBXkaWzU.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:italic;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkenkaWzU.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:italic;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkaHkaWzU.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:italic;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCXkaWzU.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:italic;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCHkaWzU.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:italic;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBnka.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkC3kaWzU.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkAnkaWzU.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCnkaWzU.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBXkaWzU.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkenkaWzU.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkaHkaWzU.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCXkaWzU.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCHkaWzU.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:italic;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBnka.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkC3kaWzU.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkAnkaWzU.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCnkaWzU.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBXkaWzU.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkenkaWzU.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkaHkaWzU.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCXkaWzU.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCHkaWzU.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:italic;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBnka.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:italic;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkC3kaWzU.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:italic;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkAnkaWzU.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:italic;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCnkaWzU.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:italic;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBXkaWzU.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:italic;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkenkaWzU.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:italic;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkaHkaWzU.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:italic;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCXkaWzU.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:italic;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCHkaWzU.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:italic;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBnka.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:italic;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkC3kaWzU.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:italic;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkAnkaWzU.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:italic;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCnkaWzU.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:italic;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBXkaWzU.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:italic;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkenkaWzU.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:italic;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkaHkaWzU.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:italic;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCXkaWzU.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:italic;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkCHkaWzU.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:italic;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkBnka.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3GUBGEe.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3iUBGEe.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3CUBGEe.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3-UBGEe.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMawCUBGEe.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:normal;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMaxKUBGEe.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:normal;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3OUBGEe.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:100;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3GUBGEe.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3iUBGEe.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3CUBGEe.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3-UBGEe.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMawCUBGEe.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMaxKUBGEe.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3OUBGEe.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:300;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3GUBGEe.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3iUBGEe.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3CUBGEe.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3-UBGEe.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMawCUBGEe.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMaxKUBGEe.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3OUBGEe.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3GUBGEe.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3iUBGEe.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3CUBGEe.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3-UBGEe.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMawCUBGEe.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMaxKUBGEe.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3OUBGEe.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:500;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3GUBGEe.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3iUBGEe.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3CUBGEe.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3-UBGEe.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMawCUBGEe.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMaxKUBGEe.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3OUBGEe.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:700;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3GUBGEe.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3iUBGEe.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3CUBGEe.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3-UBGEe.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMawCUBGEe.woff2) format("woff2");unicode-range:U+0302-0303,U+0305,U+0307-0308,U+0310,U+0312,U+0315,U+031A,U+0326-0327,U+032C,U+032F-0330,U+0332-0333,U+0338,U+033A,U+0346,U+034D,U+0391-03A1,U+03A3-03A9,U+03B1-03C9,U+03D1,U+03D5-03D6,U+03F0-03F1,U+03F4-03F5,U+2016-2017,U+2034-2038,U+203C,U+2040,U+2043,U+2047,U+2050,U+2057,U+205F,U+2070-2071,U+2074-208E,U+2090-209C,U+20D0-20DC,U+20E1,U+20E5-20EF,U+2100-2112,U+2114-2115,U+2117-2121,U+2123-214F,U+2190,U+2192,U+2194-21AE,U+21B0-21E5,U+21F1-21F2,U+21F4-2211,U+2213-2214,U+2216-22FF,U+2308-230B,U+2310,U+2319,U+231C-2321,U+2336-237A,U+237C,U+2395,U+239B-23B7,U+23D0,U+23DC-23E1,U+2474-2475,U+25AF,U+25B3,U+25B7,U+25BD,U+25C1,U+25CA,U+25CC,U+25FB,U+266D-266F,U+27C0-27FF,U+2900-2AFF,U+2B0E-2B11,U+2B30-2B4C,U+2BFE,U+3030,U+FF5B,U+FF5D,U+1D400-1D7FF,U+1EE00-1EEFF}@font-face{font-family:Roboto;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMaxKUBGEe.woff2) format("woff2");unicode-range:U+0001-000C,U+000E-001F,U+007F-009F,U+20DD-20E0,U+20E2-20E4,U+2150-218F,U+2190,U+2192,U+2194-2199,U+21AF,U+21E6-21F0,U+21F3,U+2218-2219,U+2299,U+22C4-22C6,U+2300-243F,U+2440-244A,U+2460-24FF,U+25A0-27BF,U+2800-28FF,U+2921-2922,U+2981,U+29BF,U+29EB,U+2B00-2BFF,U+4DC0-4DFF,U+FFF9-FFFB,U+10140-1018E,U+10190-1019C,U+101A0,U+101D0-101FD,U+102E0-102FB,U+10E60-10E7E,U+1D2C0-1D2D3,U+1D2E0-1D37F,U+1F000-1F0FF,U+1F100-1F1AD,U+1F1E6-1F1FF,U+1F30D-1F30F,U+1F315,U+1F31C,U+1F31E,U+1F320-1F32C,U+1F336,U+1F378,U+1F37D,U+1F382,U+1F393-1F39F,U+1F3A7-1F3A8,U+1F3AC-1F3AF,U+1F3C2,U+1F3C4-1F3C6,U+1F3CA-1F3CE,U+1F3D4-1F3E0,U+1F3ED,U+1F3F1-1F3F3,U+1F3F5-1F3F7,U+1F408,U+1F415,U+1F41F,U+1F426,U+1F43F,U+1F441-1F442,U+1F444,U+1F446-1F449,U+1F44C-1F44E,U+1F453,U+1F46A,U+1F47D,U+1F4A3,U+1F4B0,U+1F4B3,U+1F4B9,U+1F4BB,U+1F4BF,U+1F4C8-1F4CB,U+1F4D6,U+1F4DA,U+1F4DF,U+1F4E3-1F4E6,U+1F4EA-1F4ED,U+1F4F7,U+1F4F9-1F4FB,U+1F4FD-1F4FE,U+1F503,U+1F507-1F50B,U+1F50D,U+1F512-1F513,U+1F53E-1F54A,U+1F54F-1F5FA,U+1F610,U+1F650-1F67F,U+1F687,U+1F68D,U+1F691,U+1F694,U+1F698,U+1F6AD,U+1F6B2,U+1F6B9-1F6BA,U+1F6BC,U+1F6C6-1F6CF,U+1F6D3-1F6D7,U+1F6E0-1F6EA,U+1F6F0-1F6F3,U+1F6F7-1F6FC,U+1F700-1F7FF,U+1F800-1F80B,U+1F810-1F847,U+1F850-1F859,U+1F860-1F887,U+1F890-1F8AD,U+1F8B0-1F8BB,U+1F8C0-1F8C1,U+1F900-1F90B,U+1F93B,U+1F946,U+1F984,U+1F996,U+1F9E9,U+1FA00-1FA6F,U+1FA70-1FA7C,U+1FA80-1FA89,U+1FA8F-1FAC6,U+1FACE-1FADC,U+1FADF-1FAE9,U+1FAF0-1FAF8,U+1FB00-1FBFF}@font-face{font-family:Roboto;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3OUBGEe.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBGEe.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:900;font-stretch:100%;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v50/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpMtKy2OAdR1K-IwhWudF-R3woqauLY1HY.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpMtKy2OAdR1K-IwhWudF-R3woqY-LY1HY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpMtKy2OAdR1K-IwhWudF-R3woqa-LY1HY.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpMtKy2OAdR1K-IwhWudF-R3woqZOLY1HY.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpMtKy2OAdR1K-IwhWudF-R3woqaOLY1HY.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpMtKy2OAdR1K-IwhWudF-R3woqaeLY1HY.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3";font-style:italic;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpMtKy2OAdR1K-IwhWudF-R3woqZ-LY.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpStKy2OAdR1K-IwhWudF-R3wIaZfrc.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpStKy2OAdR1K-IwhWudF-R3wsaZfrc.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpStKy2OAdR1K-IwhWudF-R3wMaZfrc.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpStKy2OAdR1K-IwhWudF-R3wwaZfrc.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpStKy2OAdR1K-IwhWudF-R3wAaZfrc.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpStKy2OAdR1K-IwhWudF-R3wEaZfrc.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-weight:200 900;font-display:swap;src:url(https://fonts.gstatic.com/s/sourcesans3/v19/nwpStKy2OAdR1K-IwhWudF-R3w8aZQ.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.debug-menu-wrapper[_ngcontent-%COMP%]{background-color:#000000bf;position:absolute;z-index:999;width:100%;height:100%;overflow:hidden;display:flex;justify-content:center;align-items:start}.debug-menu-flex[_ngcontent-%COMP%]{width:25%;height:100%;padding:20px;display:flex;justify-content:start;align-items:start;flex-direction:column;-webkit-user-select:all;user-select:all;overflow:auto}.debug-menu-flex[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{-webkit-user-select:all;user-select:all}.debug-menu-subs[_ngcontent-%COMP%]{border:solid 1px white;border-radius:.6rem;width:50%;max-height:85%;margin-top:10px;margin-right:10px;padding:20px;overflow-y:auto;display:flex;justify-content:start;align-items:start;flex-direction:column;-webkit-user-select:all;user-select:all}.debug-menu-subs[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{-webkit-user-select:all;user-select:all}.debug-menu-divider[_ngcontent-%COMP%]{height:10px}.centered-flex[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;display:flex;justify-content:center;align-items:center;z-index:99;pointer-events:none;background-size:contain;background-repeat:no-repeat;background-position:center}.main-flex[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px}.autoplay-button[_ngcontent-%COMP%]{cursor:pointer}.ui-button[_ngcontent-%COMP%]{background-color:transparent;border:none;cursor:pointer;z-index:999}.ui-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transition:transform .1s ease-out;transform:scale3d(.9,.9,.9)}svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{transition:.2s}.ui-button[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{transform:scale3d(.99,.99,.99)}.ui-button[_ngcontent-%COMP%]:focus-visible{outline:2px white solid;outline-offset:0;box-shadow:0 0 0 4px #000}.flex-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:97%;margin-bottom:0;margin-top:-10px;overflow:hidden}.ui-wrapper[_ngcontent-%COMP%]{position:absolute;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:10px;width:100%;z-index:999;-webkit-overflow-scrolling:auto!important;bottom:0;background:linear-gradient(0deg,#0009,#0000004d 55%,#0000);transition:opacity .3s ease-out}.ui-wrapper-hidden[_ngcontent-%COMP%]{opacity:0;pointer-events:none}.hide-controls-transition[_ngcontent-%COMP%]{transition:none}.sub-flex-buttons[_ngcontent-%COMP%]{display:flex;justify-content:start;align-items:center;gap:0}.ui-progress-bar[_ngcontent-%COMP%]{width:98%;height:3px;padding-top:10px;padding-bottom:10px;margin-top:-10px;margin-bottom:-10px;cursor:pointer;z-index:99}.ui-progress-bar[_ngcontent-%COMP%] .timeline-scaleY[_ngcontent-%COMP%]{transform:scaleY(1);transition:transform .2s ease-out}.ui-progress-bar[_ngcontent-%COMP%]:hover .timeline-scaleY[_ngcontent-%COMP%], .ui-progress-bar.hover[_ngcontent-%COMP%] .timeline-scaleY[_ngcontent-%COMP%]{transform:scaleY(1.8)}.ui-progress-bar[_ngcontent-%COMP%]:focus-visible{outline:2px white solid;outline-offset:0;box-shadow:0 0 0 4px #000}.flex-timer[_ngcontent-%COMP%]{display:flex;justify-content:start;align-items:center;gap:3px;padding-bottom:1px}.flex-volume[_ngcontent-%COMP%]{display:flex;justify-content:start;align-items:center;gap:6px}.text-timer[_ngcontent-%COMP%]{font-size:15px;color:#ddd;font-weight:700;font-family:Courier Prime,monospace;-webkit-user-select:none;-ms-user-select:none;user-select:none}.text-live[_ngcontent-%COMP%]{font-size:15px;color:#ddd;font-weight:700;font-family:NN Forever Grotesk STD,Roboto,Helvetica Neue,sans-serif;-webkit-user-select:none;-ms-user-select:none;user-select:none}.selected-sub-menu[_ngcontent-%COMP%]{background-color:var(--secondaryColor)}.animate-volume[_ngcontent-%COMP%]{transition:opacity .2s ease-out,margin-right .2s ease-out;padding-bottom:3px;margin-left:-15px;margin-right:15px}.custom-outline[_ngcontent-%COMP%]{outline:2px white solid;outline-offset:0;box-shadow:0 0 0 4px #000}.hidden-volume[_ngcontent-%COMP%]{opacity:0}.hidden-volume[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{width:0;margin-right:-15px}.show-volume[_ngcontent-%COMP%]{opacity:1}.show-volume[_ngcontent-%COMP%] mat-slider[_ngcontent-%COMP%]{width:70px;margin-right:0}mat-slider[_ngcontent-%COMP%]{transition:width .2s ease-out}.thumb[_ngcontent-%COMP%]{width:18px;height:18px;background-color:var(--primaryColor);position:absolute;top:-7px;border-radius:50%;z-index:99;cursor:pointer;transform:scale(1);transition:transform .2s ease-out}.thumb-audio[_ngcontent-%COMP%]{width:18px;height:18px;background-color:var(--primaryColor);position:absolute;margin-top:-7px;border-radius:50%;z-index:99;cursor:pointer;transform:scale(1);transition:transform .2s ease-out}.thumb-triangle[_ngcontent-%COMP%]{width:0;height:0;border-left:11px solid transparent;border-right:11px solid transparent;border-top:15px solid var(--primaryColor);border-radius:.26rem;position:absolute;top:-14px;z-index:99;cursor:pointer;transform:scale(1);transition:transform .2s ease-out}.thumb-hidden[_ngcontent-%COMP%]{transform:scale(0)}.line[_ngcontent-%COMP%]{width:1px;height:6px;background-color:#fff;position:absolute;top:-1px;z-index:99;cursor:pointer;transform:scale(1);transition:transform .2s ease-out}.line-hidden[_ngcontent-%COMP%]{transform:scale(0)}.thumbnail[_ngcontent-%COMP%]{height:18vh;background-color:#15151e;position:absolute;bottom:94px;z-index:99;border-radius:.6rem;cursor:pointer;transform-origin:bottom center;transition:transform .1s ease-out;background-position:center;background-size:contain;display:flex;justify-content:center}.time-thumbnail[_ngcontent-%COMP%]{position:absolute;bottom:-32px;padding:.5vh;background-color:#15151e;border-radius:.6rem;visibility:visible;min-width:55px;text-align:center;white-space:nowrap}.disabled[_ngcontent-%COMP%]{opacity:.4;pointer-events:none}.no-pointer-events[_ngcontent-%COMP%]{pointer-events:none}.flex-live-button[_ngcontent-%COMP%]{display:flex;justify-content:start;align-items:center;gap:6px;padding-bottom:2px}.subtitle-wrapper[_ngcontent-%COMP%]{position:absolute;z-index:999;bottom:75px;font-size:24px;background-color:#000000b3;padding:5px 10px;border-radius:.6rem;font-family:NN Forever Grotesk STD,Roboto,Helvetica Neue,sans-serif;text-shadow:1px 1px 8px rgba(221,221,221,.25);max-width:40%;text-align:center;transition:bottom .25s ease-out}@media only screen and (max-width: 1100px){.subtitle-wrapper[_ngcontent-%COMP%]{font-size:20px}}@media only screen and (max-width: 600px){.subtitle-wrapper[_ngcontent-%COMP%]{font-size:15px}}.subtitle-wrapper.live[_ngcontent-%COMP%]{width:60%;text-align:left}.subtitle-vertical-align[_ngcontent-%COMP%]{bottom:75px}@media only screen and (max-width: 1100px){.subtitle-vertical-align[_ngcontent-%COMP%]{bottom:20px}}.mat-menu-flex-button[_ngcontent-%COMP%]{display:flex;justify-content:start;align-items:center;gap:5px}.wrapper-start-time[_ngcontent-%COMP%]{border:1px solid rgba(221,221,221,.5);border-radius:.26rem;display:flex;justify-content:center;align-items:center;flex-direction:row;padding:2px}.wrapper-start-time[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{text-shadow:none;font-family:Courier Prime,monospace;font-size:15px;color:#ddd;margin:0;border:none}.number-input[_ngcontent-%COMP%]{width:20px;background-color:transparent;border:none;font-weight:700;text-align:center}.timestamp[_ngcontent-%COMP%]{position:relative;color:#ddd;font-weight:700;padding-bottom:2px;margin:0}.timer-mobile[_ngcontent-%COMP%]{position:absolute;left:20px;bottom:65px}.big-play-icon[_ngcontent-%COMP%]{opacity:1;transform:scale3d(.8,.8,.8);filter:drop-shadow(0 0 8px rgba(0,0,0,.5))}.fade-out[_ngcontent-%COMP%]{opacity:0;transform:scaleZ(1);transition:opacity 1s,transform 1s}.audio-player-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow:hidden}.timeline-audio[_ngcontent-%COMP%]{width:20%}.title-player[_ngcontent-%COMP%]{font-style:italic;font-family:NN Forever Grotesk STD,Roboto,Helvetica Neue,sans-serif}.timer-text-audio[_ngcontent-%COMP%]{font-family:Courier Prime,monospace;text-wrap:nowrap}.timer-audio-wrapper[_ngcontent-%COMP%]{margin-top:10px;width:98%;display:flex;justify-content:space-between;align-items:center;z-index:999;cursor:pointer}.actions-wrapper[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;align-items:center}.play-audio-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.audio-player-limits[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;max-width:600px;background-color:var(--foregroundColor);border-radius:.6rem;width:98%;padding-left:1%;padding-right:1%}@media only screen and (max-width: 600px){.audio-player-limits[_ngcontent-%COMP%]{width:94%;padding-left:3%;padding-right:3%}}.cover-img[_ngcontent-%COMP%]{width:200px;height:200px;border-radius:.6rem;margin-top:20px;object-fit:cover}.not-started-event[_ngcontent-%COMP%]{background-color:#0000004d;border-radius:.6rem;padding:15px;font-size:30px}.extra-margin[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}'],changeDetection:0});let s=a;return s})();var iE=["playerCore"];function nE(s,a){if(s&1&&Oe(0,"app-player-core",1,0),s&2){let e=fe();xe("manifestUrisArray",e.manifestUrisArray)("playlist",e.playlist)("persistenceId",e.persistenceId)("playerConfig",e.playerConfig)("titlePlayer",e.titlePlayer)("coverImg",e.coverImg)("uiIcons",e.uiIcons)}}var Kg=(()=>{let a=class a{constructor(t,n){this.route=t,this.backendService=n,this.debug=!1,this.loadedConfig=!1,this.manifestUrisArray=[],this.playlist=[],this.playerConfig={groupSettings:!0,autoPip:!1,thumbnailSize:1,primaryColor:"#2b6ade",secondaryColor:"#0c2d6a",tertiaryColor:"#5e6178",foregroundColor:"#1e1e2d",forcedAudioLang:null,forcedCaptionLang:null,backgroundColor:"transparent",disabledTooltips:!1,enabledAutoplay:!0,shareUrl:"",overrideStartTime:0,overrideEndTime:-1,showTimeButton:!1,showAds:!1,disabledFeatures:[""],audioPlayer:!1,initVideoSeek:null,enabledMetrics:!0,enabledPersistence:!0,poster:"",futureEvent:!1,endedEventWithoutContent:!1,isOpenWatchit:!1,langOverride:"",hideControls:!1,currentTimeTracker:!1,customStopTime:-1,forcedQuality:"",id:-1,muted:!1,onlyLive:!1,hideCaptions:[]},this.uiIcons={play:"icons/fontawesome/play.svg",pause:"icons/fontawesome/pause.svg",replay:"icons/google/replay.svg",fullscreenExpand:"icons/fontawesome/expand.svg",fullscreenCompress:"icons/fontawesome/compress.svg",volumeMute:"icons/fontawesome/volume-xmark.svg",volumeOff:"icons/fontawesome/volume-off.svg",volumeLow:"icons/fontawesome/volume-low.svg",volumeMedium:"icons/fontawesome/volume-medium.svg",volumeHigh:"icons/fontawesome/volume-high.svg",playbackSpeed:"icons/google/play-speed.svg",playbackSpeedLow:"icons/google/play-speed.svg",playbackSpeedHigh:"icons/google/play-speed.svg",hdQuality:"icons/flaticon/high-definition.svg",sdQuality:"icons/flaticon/standard-definition.svg",subtitleSelector:"icons/flaticon/subtitles.svg",audioSelector:"icons/fontawesome/audio.svg",backward:"icons/backward.svg",forward:"icons/forward.svg",settings:"icons/fontawesome/gear.svg",pip:"icons/google/pip.svg",pipExit:"icons/google/pip-exit.svg",share:"icons/google/share.svg",language:"icons/fontawesome/language.svg",x:"icons/fontawesome/x.svg",whatsapp:"icons/fontawesome/whatsapp.svg",linkedin:"icons/fontawesome/linkedin.svg",facebook:"icons/fontawesome/facebook.svg",link:"icons/fontawesome/link.svg",liveOnLive:"icons/fontawesome/circle-red.svg",liveNotLive:"icons/fontawesome/circle-white.svg",startTime:"icons/start_time.svg",chromecast:"icons/fontawesome/chromecast.svg"},this.afterLoadedConf()}afterLoadedConf(){this.playerCore&&!this.playerCore.playerStatus.appInitialized&&this.playerCore?.initApp(),this.debug&&(this.manifestUrisArray=[{name:"Bonanova",path:"https://cdn-demos.watchity.net/demos/videos/Bonanova/e879496b-d548-4b7d-a792-94b8b9c9fee9/demos-rule/index4.m3u8"},{name:"Tears of steel",path:"https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8"},{name:"Bip Bop",path:"https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8"},{name:"Skate",path:"https://sample.vodobox.net/skate_phantom_flex_4k/skate_phantom_flex_4k.m3u8"},{name:"Bitmovin Sintel",path:"https://bitmovin-a.akamaihd.net/content/sintel/hls/playlist.m3u8"},{name:"Live RTPA",path:"https://d2skerwvkrt97l.cloudfront.net/wct-3545e416-1a16-44b5-b0db-481136ecacc9/continuous/7be5c015-1da2-4927-a49b-8d232faa69be/index.m3u8"},{name:"Live TV3",path:"https://directes3-tv-cat.3catdirectes.cat/live-content/tv3-hls/master.m3u8"},{name:"Live Super3",path:"https://directes-tv-cat.3catdirectes.cat/live-content/super3-hls/master.m3u8"},{name:"Live 324",path:"https://directes-tv-int.3catdirectes.cat/live-content/canal324-hls/master.m3u8"},{name:"Live A3Clasicos",path:"https://fast-channels.atresmedia.com/648ef12c2bfab0e4507e0d61/648ef12c2bfab0e4507e0d61.m3u8"},{name:"Live Kidz",path:"https://fast-channels.atresmedia.com/648c271d2bfab0e4177a0d61/648c271d2bfab0e4177a0d61/2.m3u8"},{name:"Live A3Cine",path:"https://fast-channels.atresmedia.com/648ef18c1756b0e41daf83cc/648ef18c1756b0e41daf83cc.m3u8"},{name:"Live Esport3",path:"https://directes-tv-cat.ccma.cat/live-origin/esport3-hls/master.m3u8"},{name:"Live Clan",path:"https://ztnr.rtve.es/ztnr/5466990.m3u8"},{name:"Live Aqui no hay quien viva",path:"https://fast-channels.atresmedia.com/648ef3951756b0e425af83cc/648ef3951756b0e425af83cc.m3u8"},{name:"Live Congreso",path:"https://congresodirecto.akamaized.net/hls/live/2037973/canalparlamento/master.m3u8"},{name:"Live Nou Camp Nou",path:"https://open.http.mp.streamamg.com/p/3000707/sp/300070700/playManifest/entryId/0_pjiblx6q/format/applehttp/protocol/https/uiConfId/30017794/a.m3u8"},{name:"Live ETB",path:"https://multimedia.eitb.eus/live-content/etb1hd-hls/master.m3u8"},{name:"Live Japan News",path:"https://n24-cdn-live.ntv.co.jp/ch01/index.m3u8"},{name:"Live NHK",path:"https://cdn.nhkworld.jp/www11/nhkworld-tv/domestic/2003459/live.m3u8"},{name:"Live Motorsport TV",path:"https://7c8b579d.wurl.com/master/f36d25e7e52f1ba8d7e56eb859c636563214f541/T05PX01vdG9yc3BvcnR0dl9ITFM/playlist.m3u8"},{name:"Live 24/7 Plats Bruts",path:"https://fast-tailor.3catdirectes.cat/v1/channel/ccma-channel2/hls/2.m3u8"},{name:"Live 24/7 Joc de Cartes",path:"https://fast-tailor.3catdirectes.cat/v1/channel/ccma-channel1/hls/2.m3u8"},{name:"Watchity Webinar",path:"https://dev-cdn-dev-demos.watchity.net/wct-6c764d04-1f45-402b-933e-b0a42432f863/continuous/267eda67-c64d-4945-8364-367d84295bfa/index.m3u8"},{name:"Watchity Bypass",path:"https://dev-cdn-dev-demos.watchity.net/wct-e38a18e5-ddff-45eb-afab-e093aa7ca76b/continuous/35b29f9d-1a92-44fd-86f3-50f55640bd3f/index.m3u8"},{name:"Dash Big Buck Bunny",path:"https://dash.akamaized.net/akamai/bbb_30fps/bbb_30fps.mpd"},{name:"RAC 1",path:"https://playerservices.streamtheworld.com/api/livestream-redirect/RAC_1.mp3"},{name:"Flaixbac",path:"https://stream.flaixbac.cat/icecast"}])}ngOnInit(){this.route.queryParamMap.pipe(Ut(n=>[n.get("manifestArray"),n.get("groupSettings"),n.get("autoPip"),n.get("thumbnailSize"),n.get("primaryColor"),n.get("secondaryColor"),n.get("tertiaryColor"),n.get("disabledTooltips"),n.get("enabledAutoplay"),n.get("shareUrl"),n.get("uiIcons"),n.get("debug"),n.get("wctMediaItem"),n.get("backgroundColor"),n.get("overrideStartTime"),n.get("overrideEndTime"),n.get("wctWatchit"),n.get("showTimeButton"),n.get("showAds"),n.get("injectCss"),n.get("disabledFeatures"),n.get("audioPlayer"),n.get("foregroundColor"),n.get("audioLanguage"),n.get("captionLanguage"),n.get("t"),n.get("enabledMetrics"),n.get("enabledPersistence"),n.get("langOverride"),n.get("hideControls"),n.get("currentTimeTracker"),n.get("customStopTime"),n.get("forceQuality"),n.get("id"),n.get("muted"),n.get("playlist"),n.get("wctChannel"),n.get("onlyLive"),n.get("hideCaptions")])).pipe().subscribe(n=>{if(!n.every(c=>c==null)){if(n[0]!=null&&(this.manifestUrisArray=[],n[0].split("___").forEach(c=>{this.manifestUrisArray.push({name:c.substring(0,c.indexOf(",")),path:c.substring(c.indexOf(",")+1)})}),this.loadedConfig=!0),n[1]!=null&&(this.playerConfig.groupSettings=n[1]=="true"),n[2]!=null&&(this.playerConfig.autoPip=n[2]=="true"),n[3]!=null&&(this.playerConfig.thumbnailSize=+n[3]),n[4]!=null&&(this.playerConfig.primaryColor=this.addHexColor(n[4])),n[5]!=null&&(this.playerConfig.secondaryColor=this.addHexColor(n[5])),n[6]!=null&&(this.playerConfig.tertiaryColor=this.addHexColor(n[6])),n[7]!=null&&(this.playerConfig.disabledTooltips=n[7]=="true"),n[8]!=null&&(this.playerConfig.enabledAutoplay=n[8]=="true"),n[9]!=null&&(this.playerConfig.shareUrl=n[9]),n[10]!=null&&this.loadIconsOverride(n[10]),n[11]!=null&&(this.debug=n[11]=="true",this.loadedConfig=!0,document.title="Playify Testing Room"),n[12]!=null&&this.loadWatchityMediaitem(n[12]),n[13]!=null&&(this.playerConfig.backgroundColor=this.addHexColor(n[13])),n[14]!=null&&(this.playerConfig.overrideStartTime=+n[14]),n[15]!=null&&(this.playerConfig.overrideEndTime=+n[15]),n[16]!=null&&this.loadWatchityWatchit(n[16]),n[17]!=null&&(this.playerConfig.showTimeButton=n[17]=="true"),n[18]!=null&&(this.playerConfig.showAds=n[18]=="true"),n[19]!=null){console.log("Inject css to head: "+n[19]);var o=document.createElement("link");o.rel="stylesheet",o.href=n[19],document.head.appendChild(o)}n[20]!=null&&(this.playerConfig.disabledFeatures=n[20].split(",")),n[21]!=null&&(this.playerConfig.audioPlayer=n[21]=="true"),n[22]!=null&&(this.playerConfig.foregroundColor=this.addHexColor(n[22])),n[23]!=null&&(this.playerConfig.forcedAudioLang=n[23]),n[24]!=null&&(this.playerConfig.forcedCaptionLang=n[24]),n[25]!=null&&(this.playerConfig.initVideoSeek=+n[25]),n[26]!=null&&(this.playerConfig.enabledMetrics=n[26]=="true"),n[27]!=null&&(this.playerConfig.enabledPersistence=n[27]=="true"),n[28]!=null&&(this.playerConfig.langOverride=n[28]),n[29]!=null&&(this.playerConfig.hideControls=n[29]=="true"),n[30]!=null&&(this.playerConfig.currentTimeTracker=n[30]=="true"),n[31]!=null&&(this.playerConfig.customStopTime=+n[31]),n[32]!=null&&(this.playerConfig.forcedQuality=n[32]),n[33]!=null&&(this.playerConfig.id=+n[33]),n[34]!=null&&(this.playerConfig.muted=n[34]=="true"),n[35]!=null&&(this.playlist=[],n[35].split(",").forEach(c=>{this.playlist.push(c)}),this.loadedConfig=!0),n[36]!=null&&this.loadWatchityChannel(n[36]),n[37]!=null&&(this.playerConfig.onlyLive=n[37]=="true"),n[38]!=null&&(this.playerConfig.hideCaptions=n[38].split(",")),this.setStyling(),this.afterLoadedConf()}}),this.setStyling()}setStyling(){document.documentElement.style.setProperty("--primaryColor",this.playerConfig.primaryColor),document.documentElement.style.setProperty("--secondaryColor",this.playerConfig.secondaryColor),document.documentElement.style.setProperty("--tertiaryColor",this.playerConfig.tertiaryColor),document.documentElement.style.setProperty("--backgroundColor",this.playerConfig.backgroundColor),document.documentElement.style.setProperty("--foregroundColor",this.playerConfig.foregroundColor)}addHexColor(t){return t.length>0&&t[0]!=="#"?"#"+t:t}loadIconsOverride(t){t.split("___").forEach(n=>{let o=n.split(",")[0],c=n.split(",")[1];this.uiIcons[o]=c})}loadWatchityMediaitem(t){this.backendService.getMediaItem(t).subscribe({next:n=>{n.media&&(document.title=n.name,this.manifestUrisArray=[],this.manifestUrisArray.push({name:n.name,path:n.media,thumbnails:n.thumbnails,mediaItemUuid:t}),this.loadedConfig=!0,this.persistenceId="wctMediaItem-"+t,this.titlePlayer=n.name,this.coverImg=n.poster||"")},error:n=>{window.parent&&(window.parent.postMessage({type:"error",data:JSON.stringify(n)},"*"),console.log("Throwed event: error | "+JSON.stringify(n)))}})}loadWatchityWatchit(t,n){this.backendService.getWatchit(t).subscribe(o=>{!o.has_been_broadcast&&o.status!="closed"?(this.playerConfig.futureEvent=!0,this.loadedConfig=!0,this.coverImg=o.cover||"assets/images/defaultCover.png",setTimeout(()=>{this.loadWatchityWatchit(t)},3e4)):!o.has_been_broadcast&&o.status=="closed"?(this.playerConfig.futureEvent=!0,this.loadedConfig=!0,this.playerConfig.endedEventWithoutContent=!0,this.coverImg=o.cover||"assets/images/defaultCover.png"):(o.status=="open"&&(this.playerConfig.isOpenWatchit=!0),this.coverImg=o.cover||"assets/images/defaultCover.png",this.playerConfig.futureEvent=!1,this.backendService.getWatchitCameras(t).subscribe(c=>{c.watchicams.length>0&&(this.manifestUrisArray=[],c.watchicams.forEach(p=>{(p.is_mixer||p.is_active&&p.take_video_as_secondary)&&p.url&&(document.title=o.name,this.manifestUrisArray.push({name:this.capitalizeFirstLetter(p.lang_label||c.watchicams.find(v=>v.name=="Main")?.lang_label||""),lang:p.lang||c.watchicams.find(v=>v.name=="Main")?.lang,path:p.url,thumbnails:p.poster_url,watchitData:{watchitUuid:t,name:o.name,organizationSlug:o.organization,playersettingsId:n?.toString()}}))}),this.playerCore?.playerStatus.appInitialized||this.playerCore?.initApp(),this.loadedConfig=!0,this.persistenceId="wctWatchit-"+t)}))})}loadWatchityChannel(t){this.backendService.getChannel(t).subscribe(n=>{n.watchit_uuid&&this.loadWatchityWatchit(n.watchit_uuid)})}capitalizeFirstLetter(t){return t&&t.charAt(0).toUpperCase()+t.slice(1)}};a.\u0275fac=function(n){return new(n||a)(ni(Bn),ni(Tl))},a.\u0275cmp=zt({type:a,selectors:[["app-injector-player"]],viewQuery:function(n,o){if(n&1&&ii(iE,5),n&2){let c;Ht(c=qt())&&(o.playerCore=c.first)}},decls:1,vars:1,consts:[["playerCore",""],[3,"manifestUrisArray","playlist","persistenceId","playerConfig","titlePlayer","coverImg","uiIcons"]],template:function(n,o){n&1&&st(0,nE,2,7,"app-player-core",1),n&2&&rt(o.loadedConfig?0:-1)},dependencies:[Yg],encapsulation:2});let s=a;return s})();var Qg=(()=>{let a=class a{constructor(){this.title="wct_frontend_player"}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=zt({type:a,selectors:[["app-root"]],decls:3,vars:0,template:function(n,o){n&1&&(Gu(0),Oe(1,"router-outlet")(2,"app-injector-player"),Wu())},dependencies:[va,Kg],encapsulation:2});let s=a;return s})();Ic(Qg,Xp).catch(s=>console.error(s));