@datazoom/collector_jw_mt_om 2.24.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,t,n,s,Dc="object"==typeof module?{}:null;((Ze,et,g)=>{var y,f,tt=Ze.Object,S=Ze.Array,A=Ze.Date,_t=Ze.Number,T=Ze.String,O=Ze.RegExp,nt=Ze.Math,b=Ze.XMLHttpRequest,C=Ze.Uint8Array,M=Ze.ArrayBuffer,D=Ze.JSON,ht=Ze.Promise,R=Ze.URL,N=Ze.URLSearchParams,P=Ze.EventTarget,k=Ze.CustomEvent,vt=Ze.document||{},e=vt.currentScript||{},L=Ze.location||{},w=Ze.navigator||{},U=w.userAgent||"",Et=w.connection||w.mozConnection||w.webkitConnection,x=Ze.crypto,V=Ze.console||{},t=Ze.performance,F=Ze.setInterval,W=Ze.setTimeout,j=Ze.decodeURIComponent,B=Ze.encodeURIComponent;try{y=Ze.localStorage,f=Ze.sessionStorage}catch(e){}function H(n){return n?function(e,t){e="[DZ] "+e,void 0===t?n.call(V,e):n.call(V,e,t)}:null}var n=H(V.log)||function(){},G=H(V.error)||n,z=H(V.warn)||n,$=H(V.info)||n,Y=H(V.debug)||n,gt={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},q="datazoom_",K="custom_",X="v_";if(gt[n="__"+q+"rootobj"]=1,Dc)Dc.datazoom=gt;else{if(zt(Ze.datazoom)){if(Ze.datazoom[n])return z("Collector already loaded");z("Overwriting window.datazoom")}Ze.datazoom=gt}function E(t,n,e){var i,r=n.shift();return null==r?i=t:t?r instanceof O?tt.keys(t).some(function(e){if(r.test(e))return null!=(i=E(t[e],n.slice()))}):i=E(t[r],n):i=null,null!=i?i:e}function it(e){return"function"==typeof e}function J(e,t){if(it(e))try{return new(e=t?e.bind.apply(e,[null].concat(t)):e),1}catch(e){}}J(R,["http://x.io"])&&J(N)||(N=function(e){var i=[];function n(e,t){!1!==t&&i.push([e,t])}function r(t){i=i.filter(function(e){return e[0]!==t})}e&&e.slice(1).split("&").forEach(function(e){e=e.split("=");try{i.push([j(e[0]),null==e[1]||j(e[1])])}catch(e){at(e,"URLSearchParams()")}});e=this;e.append=n,e["delete"]=r,e.set=function(e,t){r(e),n(e,t)},e.get=function(t){var n=null;return i.some(function(e){if(e[0]===t)return n=e[1],!0}),n},e.toString=function(){return i.map(function(e){var t=B(e[0]);return!0===e[1]?t:t+"="+B(e[1])}).join("&")}},R=function(e){var t=this,e=e.split("?"),n=e[0],e=e[1]?"?"+e[1]:"";t.search=e,t.searchParams=new N(e),t.toString=function(){return n+t.search}}),J(P)&&J(k,["x"])||(P=function(){var n=this,i={};n.addEventListener=function(e,t){var n=i[e];n||(i[e]=n=[]),n.push(t)},n.removeEventListener=function(e,t){var n=i[e];n&&(i[e]=n.filter(function(e){return e!=t}))},n.dispatchEvent=function(t){var e=i[t.type];e&&e.forEach(function(e){W(function(){e.call(n,t)},0)})}},k=function(e){this.type=e}),et=tt.assign({},{cn:"JW Player (MT/OM)",sv:"2.24.0",cf:"",mf:null,ev:[],fd:[],md:[],mb:"",sw:!1,sm:"",sp:[],ss:"",sd:"",sc:"",ip:"",ts:"",ab:"",st:null,hi:1e4,ti:200,cm:null,am:null,cq:null,aq:null,rd:[1,2,4,8,8,8,8],bd:50,kd:50,mh:5e3,ml:0,mc:256,mp:2,ep:2,ed:2e3,ec:_t.MAX_VALUE,cc:"",cl:"",ci:"",cd:[],og:!0,os:!0,tt:!1,om:!1,ps:null,sn:["IDLE","CT_REQUESTED","CT_BUFFERING","CT_PLAYING","CT_PAUSED","CT_SEEKING","CT_COMPLETED","CT_STOPPED","CT_ERROR","AD_BUFFERING","AD_PLAYING","AD_PAUSED","AD_SEEKING","AD_COMPLETED","AD_SKIPPED","AD_ERROR","AD_BREAK_STARTED","AD_BREAK_ENDED"],le:function(e){var t=e.event,n=e.video;Tt("[Event] "+t.type+(n?" ("+n.media_type+")":"")+" @"+t.timestamp,ct(e))}},et||{});var o,Q,yt,Z={datapoints:{events:"ev",flux_data:"fd",metadata:"md",cmcd:"cd"},endpoints:{event_ingest:"mb",sampling:"sm",server_ts:"ts",ad_blocker_bait:"ab",ip_api:"ip"},sampling:{enable:"sw",definition_namespace:"ss",definition_key_name:"sd",criteria_sampling_key_name:"sc",criteria_matching_fields:"sp"},customer_code:"cc",connector_list:"cl",app_session_timeout_mins:"st",heartbeat_interval_ms:"hi",content_milestone_percent:"cm",ad_milestone_percent:"am",content_qv_sec:"cq",ad_qv_sec:"aq",observability:{lag_enabled:"og",loss_enabled:"os"},om_enabled:"om",configuration_id:""},ee=!Dc&&e.src||"/",te=L.href||"https://localhost",ne="configuration_id",ie="urn:x-cast:io.datazoom.collector",St="transfer",re=0,ae=1,oe=2,se=3,ue=4,ce=5,le={off:re,error:ae,warning:oe,info:se,debug:ue,verbose:ce},de=oe;function pe(e){var t;e&&(t=le[e],re<=(t=null!=t?t:+e)&&t<=ce?de=t:z("Invalid log level: "+e))}function fe(){o={},Q=[],[[et.ps],[ee.split("?")[1]],[te.split("?")[1],q]].forEach(function(e){var i=e[1];e[0]&&e[0].split("&").forEach(function(e){try{var t=e.split("="),n=j(t[0]);if(i){if(!n.startsWith(i))return;n=n.slice(i.length)}o[n]=null==t[1]||j(t[1]),n.startsWith("x-")&&Q.push([n,o[n]])}catch(e){z("Invalid query string: "+e.message)}})}),yt="true"==o.demo,pe(o.log)}fe();var me="io.datazoom.",_e=me,he="__ss_ev_count",ve="__ss_last_act",Ee="__ss_custom_md",ge="__ss_msg_queue",ye="__ss_sm_resp",Se="__ss_appss_to",Ie="collector_observability",Ae="loss",Te="process_duration_ms",Oe="send_duration_ms",be="call_duration_ms",Ce="queue_duration_ms",Me="evnt_fail",De="attempt_count",Re="attempt",Ne="status_code",Pe="status_codes",ke="b4_ss",Le="sample",we="config",Ue="log",xe="server_ts",Ve="ip_api";function Fe(e,t,n,i){de<e||t(n,i)}function It(e,t){Fe(ae,G,e,t)}function rt(e,t){Fe(oe,z,e,t)}function At(e,t){Fe(se,$,e,t)}function Tt(e,t){Fe(ue,Y,e,t)}function We(e,t){Fe(ce,Y,e,t)}function at(e,t){t="[Exception] "+(t?"("+t+") ":"")+e;return It(t,e),t}function Ot(n,i,r,a,o){var s,u=0,c=1,l=0;return i=i||"",r=r||1,a=a||_t.MAX_VALUE,{log:function(e,t){o&&(s=ot())>=l+o&&(u=0,c=1,l=s),++u>=c&&(n("["+u+"] "+i+e,t),c+=nt.min(c*r,a))}}}function bt(e,t){m(Ze,"postMessage",[{type:e,data:t},"*"])}var je,ot,Be,He,Ge,ze,$e=[],Ye=0;function qe(e,t,n,i,r,a,o,s){var n={time:n,metric_name:i,dimension:{},batch:function(){return a}},u=(e&&(n.type=e),null!=r&&(n.metric_value=r),n.dimension);return t&&(u.target=t),s&&s.forEach(function(e){u[e[0]]=e[1]}),o&&(u[ke]=!0),n}function Ke(i,r,a,o){var s=r,u=1,c=Ye++;return{retry:function(e){s=e,u++},log:function(e,t){var n;et.og&&(null!=a&&$e.push(qe(null,i,n=r-a,Te,e-n,c,o,[[De,u],[Ne,t]]),qe(null,i,n,Ce,a,c,o)),$e.push(qe(null,i,r,Oe,e-r,c,!1,[[De,u],[Ne,t]]),qe(null,i,s,be,e-s,c,!1,[[Re,u],[Ne,t]])))}}}function Xe(e,t){var n,i;et.os&&(i=e.t,i=nt.trunc(i/6e4),(i=(je=je||{})[i]||(je[i]=[0,0,0]))[2]++,n=(i=i[3]||(i[3]={}))[t],e=ys(e.m,pr),n?n.push(e):i[t]=[e])}function Je(e){var t,n=je[e],i=Ye++;n[2]&&(n[3]&&(t=[[Pe,n[3]]]),$e.push(qe(Ae,null,6e4*+e,Me,n[2],i,!1,t)))}function st(e){return e&&(Gt(e)?e.slice():tt.assign({},e))}function Qe(e,t){return zt(t)?e?tt.assign({},e,t):t:e}function Ct(e,t){var n;return t?((n={})[e]=t,n):null}function Mt(n,i){var r;return i?n?(r=st(n),tt.keys(i).forEach(function(e){var t=n[e];r[e]=t?tt.assign({},t,i[e]):i[e]}),r):i:n}function m(e,t,n,i){t=E(e,[t],i);return it(t)?t.apply(e,n):null}function Dt(e,t,n){return function(){try{return t.apply(e,arguments)}catch(e){at(e,n)}}}function Rt(n,e){tt.keys(n).forEach(function(t){e.forEach(function(e){e[t]=Dt(e,n[t],t)})}),e[0]}function Nt(e){var t={};return e.forEach(function(e){t[e.nm]=e}),t}function Pt(e){var t={};return e.forEach(function(e){t[e.nm]=!0}),t}function kt(e,t,n){e.forEach(function(e){e[t]=n})}function Lt(e,t){var e=new R(e,te),n=new N(e.search);return t(n),e.search="?"+n.toString(),e.toString()}function wt(e){var t,n=Q.length;return n?Lt(e,function(e){for(t=0;t<n;t++)e.append(Q[t][0],Q[t][1])}):e}function Ut(e,t,n){var i;return null!=(i=e?new R(e,te).searchParams.get(t):i)?i:n}Be=0,He=et.ec,Ge=Ot(rt,"Abnormal clock increment: ",.2,1e3,3e5),t&&t.now,ze=Be+A.now(),ot=function(e){var t=A.now(),n=ze,i=(ze=Be+t)-n;return(i<0||He<i)&&(ze=n+et.ti,Be=ze-t,Ge.log(i)),ze};var ut=(()=>{for(var n=[],e=0;e<256;e++)n.push((e+256).toString(16).substr(1).toLowerCase());return function(){var e=new C(16);if(x&&x.getRandomValues)x.getRandomValues(e);else{rt("getRandomValues() not supported");for(var t=0;t<16;t++)e[t]=nt.floor(256*nt.random())}return e[6]=15&e[6]|64,e[8]=63&e[8]|128,n[e[0]]+n[e[1]]+n[e[2]]+n[e[3]]+"-"+n[e[4]]+n[e[5]]+"-"+n[e[6]]+n[e[7]]+"-"+n[e[8]]+n[e[9]]+"-"+n[e[10]]+n[e[11]]+n[e[12]]+n[e[13]]+n[e[14]]+n[e[15]]}})();function xt(e,t,n,i,r,a){var o=new b;if(o.open(e,t,!0),null!=a&&(o.timeout=a),n)for(var s=tt.keys(n),u=0;u<s.length;u++)o.setRequestHeader(s[u],n[s[u]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function ct(e){if(e)try{return D.stringify(e)}catch(e){at(e,"toJSON")}return null}function lt(e){if(e)try{return D.parse(e)}catch(e){at(e,"fromJSON")}return null}function Vt(e,t){return(e===f?_e:me)+t}function _(e,t,n){if(e)if(null==n)Wt(e,t);else try{e.setItem(Vt(e,t),ct({v:n}))}catch(e){at(e,"storageSet")}}function Ft(e,t){e=e?lt(e.getItem(Vt(e,t))):null;return e?e.v:null}function Wt(e,t){e&&e.removeItem(Vt(e,t))}Ze.self!==Ze.top&&Tt("Page loaded in a frame, set sessionStorage prefix to: "+(_e+=(o.frame_id||ut())+"."));var jt=lt('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Bt(e){return"string"==typeof e}function Ht(e){return _t.isFinite(e)}function Gt(e){return S.isArray(e)}function zt(e){return null!=e&&"object"==typeof e&&!Gt(e)}function $t(e){return Bt(e)?e:""+e}function Yt(e){return Ht(e=+e)?e:null}function qt(t,n,i){return null==t&&null==n?Yt:function(e){return null!=(e=Yt(e))&&(null!=t&&e<t?e=i?null:t:null!=n&&n<e&&(e=i?null:n)),e}}function Kt(e){return nt.round(e)}function Xt(e,t){for(var n=0;n<t.length;n++)!function(e){for(var t=e,n=1;n<arguments.length;n++)t.dv||(t.dv=[]),t.dv.push(arguments[n])}(t[n],e)}function Jt(e,t){if(t)for(var n=0;n<t.length&&null!=e;n++)e=t[n](e);return e}var Qt,Zt,en,tn,nn=4,rn=8,an=16,on=32,I=65535,sn=nn,n=1|an,t=(e=nn|an)|on,r=rn,un={ap:2,nm:"ad_break_start"},cn={ap:2,nm:"ad_break_end"},ln={ap:2,nm:"ad_click"},dn={ap:2,nm:"ad_impression"},pn={ap:2,nm:"ad_skip"},fn={ap:sn,nm:"app_session_end"},mn={ap:3,nm:"audio_track_changed"},_n={ap:3,nm:"buffer_start"},hn={ap:3,nm:"buffer_end"},vn={ap:3,nm:"cast_start"},En={ap:3,nm:"cast_end"},gn={ap:3,nm:"cast_transfer"},yn={ap:I,nm:"context_ready"},Sn={ap:sn,nm:"datazoom_loaded"},In={ap:3,nm:"error"},An={ap:3,nm:"exit_fullscreen"},Tn={ap:3,nm:"fullscreen"},On={ap:3,nm:"heartbeat"},bn={ap:3,nm:"media_loaded"},Cn={ap:1,nm:"media_object_request"},Mn={ap:3,nm:"media_request"},Dn={ap:3,nm:"milestone"},Rn={ap:3,nm:"mute"},Nn={ap:3,nm:"pause"},Pn={ap:3,nm:"play_btn"},kn={ap:3,nm:"playback_start"},Ln={ap:3,nm:"playback_complete"},wn={ap:1,nm:"player_ready"},Un={ap:3,nm:"playing"},xn={ap:3,nm:"qualified_view"},Vn={ap:1,nm:"quality_change_request"},Fn={ap:3,nm:"rendition_change"},Wn={ap:3,nm:"resize"},jn={ap:3,nm:"resume"},Bn={ap:3,nm:"seek_start"},Hn={ap:3,nm:"seek_end"},Gn={ap:3,nm:"stall_start"},zn={ap:3,nm:"stall_end"},$n={ap:3,nm:"stop"},Yn={ap:3,nm:"subtitle_change"},qn={ap:3,nm:"unmute"},Kn={ap:3,nm:"volume_change"},Xn=(Mn.rtc=0,kn.rtc=1,Nn.rtc=2,_n.rtc=3,Gn.rtc=4,Bn.rtc=5,Fn.rtc=6,Dn.rtc=7,Mn.rta=8,kn.rta=9,_n.rta=10,Gn.rta=11,Dn.rta=12,In.rta=pn.rta=Ln.rta=13,un.rta=14,cn.rta=15,On.rt=16,_n.rt=17,Gn.rt=18,["event","metrics"]),Jn={ap:n,nm:"bandwidth_kbps"},Qn={ap:n,nm:"buffer_duration_ms"},Zn={ap:n,nm:"buffer_duration_ads_ms"},ei={ap:n,nm:"buffer_duration_content_ms"},ti={ap:n,nm:"buffer_fill_percent"},ni={ap:n,nm:"buffer_length_ms"},ii={ap:n,nm:"content_session_start_ts_ms"},ri={ap:3,nm:"current_audio_track"},ai={ap:n,nm:"current_subtitles"},oi={ap:e,nm:"engagement_duration_ms"},si={ap:e,nm:"engagement_duration_ads_ms"},ui={ap:e,nm:"engagement_duration_content_ms"},ci={ap:r,nm:"event_count"},li={ap:n,nm:"num_ad_break_plays"},di={ap:e,nm:"num_ad_plays"},pi={ap:e,nm:"num_content_plays"},fi={ap:e,nm:"num_errors"},mi={ap:e,nm:"num_errors_ads"},_i={ap:e,nm:"num_errors_content"},hi={ap:e,nm:"num_requests_content"},vi={ap:n,nm:"pause_duration_ms"},Ei={ap:n,nm:"pause_duration_ads_ms"},gi={ap:n,nm:"pause_duration_content_ms"},yi={ap:n,nm:"playback_duration_ms"},Si={ap:n,nm:"playback_duration_ads_ms"},Ii={ap:2,nm:"playback_duration_ad_session_ms"},Ai={ap:n,nm:"playback_duration_content_ms"},Ti={ap:n,nm:"playback_duration_promo_ms"},Oi={ap:3,nm:"playback_rate"},bi={ap:n,nm:"player_state"},Ci={ap:n,nm:"player_viewable"},Mi={ap:n,nm:"player_viewable_percent"},dt={ap:3,nm:"playhead_position_sec"},Di={ap:n,nm:"playhead_pdt_sec"},Ri={ap:3,nm:"rendition_audio_bitrate_kbps"},Ni={ap:3,nm:"rendition_height"},Pi={ap:3,nm:"rendition_name"},ki={ap:3,nm:"rendition_video_bitrate_kbps"},Li={ap:3,nm:"rendition_width"},wi={ap:n,nm:"stall_count"},Ui={ap:n,nm:"stall_count_ads"},xi={ap:n,nm:"stall_count_content"},Vi={ap:n,nm:"stall_duration_ms"},Fi={ap:n,nm:"stall_duration_ads_ms"},Wi={ap:n,nm:"stall_duration_content_ms"},ji={ap:n,nm:"time_since_last_ad_break_start_ms"},Bi={ap:n,nm:"time_since_last_ad_completed_ms"},Hi={ap:n,nm:"time_since_last_buffer_start_ms"},Gi={ap:n,nm:"time_since_last_buffer_start_ad_ms"},zi={ap:n,nm:"time_since_last_buffer_start_content_ms"},$i={ap:n,nm:"time_since_last_heartbeat_ms"},Yi={ap:n,nm:"time_since_last_milestone_ad_ms"},qi={ap:n,nm:"time_since_last_milestone_content_ms"},Ki={ap:n,nm:"time_since_last_pause_ms"},Xi={ap:n,nm:"time_since_last_rendition_change_ms"},Ji={ap:n,nm:"time_since_last_request_ad_ms"},Qi={ap:n,nm:"time_since_last_seek_start_ms"},Zi={ap:n,nm:"time_since_last_stall_start_ms"},er={ap:n,nm:"time_since_last_stall_start_ad_ms"},tr={ap:n,nm:"time_since_last_stall_start_content_ms"},nr={ap:n,nm:"time_since_last_started_ad_ms"},ir={ap:n,nm:"time_since_request_content_ms"},rr={ap:n,nm:"time_since_started_content_ms"},ar={ap:n,nm:"volume_level_percent"};kt([Qn,Zn,ei,vi,Ei,gi,yi,Si,Ai,Ti,wi,Ui,xi,Vi,Fi,Wi,di,fi,mi,_i,pi,hi],"df",0),ir.ts=0,rr.ts=1,Ki.ts=2,zi.ts=3,tr.ts=4,Qi.ts=5,Xi.ts=6,qi.ts=7,Ji.ts=8,nr.ts=9,Gi.ts=10,er.ts=11,Yi.ts=12,ji.ts=14,Bi.ts=13,$i.ts=16,Hi.ts=17,Zi.ts=18;var or=["ops_metadata"],sr=["custom"],ur=["vendor"],cr={p:_r=[],ap:t,nm:"configuration_id"},lr={p:_r,ap:t,nm:"connector_list"},dr={p:_r,ap:t,nm:"customer_code"},pr={p:_r,ap:r,nm:"event_id"},fr={p:hr=["event"],ap:r,nm:"timestamp"},mr={p:hr,ap:r,nm:"type"},_r={p:i=["cmcd"],ap:r,nm:"bl"},hr={p:i,ap:r,nm:"br"},vr={p:i,ap:r,nm:"bs"},Er={p:i,ap:r,nm:"cid"},gr={p:i,ap:r,nm:"d"},yr={p:i,ap:r,nm:"dl"},Sr={p:i,ap:r,nm:"mtp"},Ir={p:i,ap:r,nm:"nor"},Ar={p:i,ap:r,nm:"nrr"},Tr={p:i,ap:r,nm:"ot"},Or={p:i,ap:r,nm:"pr"},br={p:i,ap:r,nm:"rid"},Cr={p:i,ap:r,nm:"rtp"},Mr={p:i,ap:r,nm:"sf"},Dr={p:i,ap:r,nm:"sid"},Rr={p:i,ap:r,nm:"st"},Nr={p:i,ap:r,nm:"su"},Pr={p:i,ap:r,nm:"tb"},i={p:i,ap:r,nm:"v"},kr={p:a=["event","attributes"],ap:r,nm:"abs_shift"},Lr={p:a,ap:r,nm:"error_code"},wr={p:a,ap:r,nm:"error_msg"},Ur={p:a,ap:r,nm:"inner_error"},xr={p:a,ap:r,nm:"heartbeat_count"},Vr={p:a,ap:r,nm:"milestone_percent"},Fr={p:a,ap:r,nm:"qualified_view_sec"},Wr={p:a,ap:r,nm:"seek_start_point_ms"},jr={p:a,ap:r,nm:"seek_end_point_ms"},Br={p:a,ap:r,nm:"startup_duration_content_ms"},Hr={p:a,ap:r,nm:"startup_duration_total_ms"},Gr={p:s=["user_details"],ap:e,nm:"app_session_id"},zr={p:s,ap:e,nm:"app_session_start_ts_ms"},a={p:s,ap:e,nm:"app_session_end_ts_ms"},$r={p:s,ap:n,nm:"cast_app_session_id"},Yr={p:s,ap:n,nm:"cast_content_session_id"},qr={p:s,ap:t,nm:"client_ip"},Kr={p:s,ap:n,nm:"content_session_id"},s={p:s,ap:e,nm:"user_agent"},Xr={p:u=["player"],ap:n,nm:"autostart"},Jr={p:u,ap:n,nm:"casting"},Qr={p:u,ap:n,nm:"controls"},Zr={p:u,ap:n,nm:"default_muted"},ea={p:u,ap:n,nm:"default_playback_rate"},ta={p:u,ap:n,nm:"fullscreen"},na={p:u,ap:n,nm:"loop"},ia={p:u,ap:n,nm:"muted"},ra={p:u,ap:n,nm:"player_name"},aa={p:u,ap:n,nm:"player_version"},oa={p:u,ap:n,nm:"preload"},sa={p:u,ap:n,nm:"ready_state"},ua={p:u,ap:n,nm:"streaming_protocol"},ca={p:u,ap:n,nm:"streaming_type"},la={p:u,ap:n,nm:"subtitles"},u={p:c=["device"],ap:e,nm:"advertising_id"},da={p:c,ap:e,nm:"browser_name"},pa={p:c,ap:e,nm:"browser_height"},fa={p:c,ap:e,nm:"browser_version"},ma={p:c,ap:e,nm:"browser_width"},_a={p:c,ap:e,nm:"cookies_enabled"},ha={p:c,ap:t,nm:"device_id"},va={p:c,ap:e,nm:"device_mfg"},Ea={p:c,ap:e,nm:"device_name"},ga={p:c,ap:e,nm:"device_type"},ya={p:c,ap:e,nm:"orientation"},Sa={p:c,ap:e,nm:"os_name"},c={p:c,ap:e,nm:"os_version"},Ia={p:Ya=["video"],ap:n,nm:"asset_id"},Aa={p:Ya,ap:n,nm:"description"},Ta={p:Ya,ap:n,nm:"duration_sec"},Oa={p:Ya,ap:n,nm:"frame_rate"},ba={p:Ya,ap:n,nm:"media_tags"},Ca={p:Ya,ap:3,nm:"media_type"},Ma={p:Ya,ap:n,nm:"player_height"},Da={p:Ya,ap:n,nm:"player_width"},Ra={p:Ya,ap:n,nm:"source"},Na={p:Ya,ap:n,nm:"title"},Pa={p:l=["geo_location"],ap:t,nm:"city"},ka={p:l,ap:t,nm:"country"},La={p:l,ap:t,nm:"country_code"},wa={p:l,ap:t,nm:"latitude"},Ua={p:l,ap:t,nm:"longitude"},xa={p:l,ap:t,nm:"postal_code"},Va={p:l,ap:t,nm:"region"},Fa={p:l,ap:t,nm:"region_code"},Wa={p:l,ap:t,nm:"continent"},ja={p:l,ap:t,nm:"continent_code"},Ba={p:l,ap:t,nm:"district"},Ha={p:l,ap:t,nm:"timezone_name"},Ga={p:l,ap:t,nm:"timezone_offset"},za={p:to=["network"],ap:t,nm:"asn"},$a={p:to,ap:t,nm:"asn_org"},Ya={p:to,ap:e,nm:"connection_type"},qa={p:to,ap:t,nm:"isp"},Ka={p:to,ap:t,nm:"mobile_connection"},Xa={p:or,ap:r,nm:"context_id"},Ja={p:or,ap:r,nm:"context_name"},l={p:or,ap:e,nm:"dz_dictionary_version"},Qa={p:or,ap:r,nm:"msg_send_client_ts_ms"},Za={p:or,ap:r,nm:"player_context_id"},eo={p:or,ap:t,nm:"server_ts_offset_ms"},to={p:go=["page"],ap:e,nm:"collector_name"},no={p:go,ap:e,nm:"dz_sdk_version"},io={p:go,ap:e,nm:"page_title"},ro={p:go,ap:e,nm:"page_url"},ao={p:go,ap:e,nm:"referrer_url"},oo={p:go,ap:e,nm:"site_domain"},so={p:d=["ad"],ap:t,nm:"ad_blocker"},uo={p:d,ap:n,nm:"ad_break_id"},co={p:d,ap:2,nm:"ad_click_url"},lo={p:d,ap:2,nm:"ad_creative_id"},po={p:d,ap:2,nm:"ad_duration_sec"},fo={p:d,ap:2,nm:"ad_id"},mo={p:d,ap:2,nm:"ad_partner"},_o={p:d,ap:n,nm:"ad_position"},ho={p:d,ap:2,nm:"ad_session_id"},vo={p:d,ap:2,nm:"ad_system"},Eo={p:d,ap:2,nm:"ad_time_offset_sec"},go={p:d,ap:e,nm:"ad_tracking_opt_out"},yo={p:d,ap:2,nm:"advertiser_name"},So={p:d,ap:2,nm:"deal_id"},Io={p:d,ap:2,nm:"skip_time_offset_sec"},Ao={p:d,ap:2,nm:"wrapper_creative_ids"},To={p:d,ap:2,nm:"wrapper_id"},Oo={p:d,ap:2,nm:"wrapper_systems"},t={p:["cdn"],ap:n,nm:"cdn"},bo=(So.df="",kt([Ao,To,Oo],"df",[]),Xt(function(e){return!!e},[so,go,Xr,vr,Jr,Qr,_a,Zr,ta,na,Ka,ia,Nr,la,Ci]),Xt(function(e){Gt(e)||(e=[e]);for(var t=0;t<e.length;t++)e[t]=$t(e[t])||"";return e},[Ao,To,Oo]),Xt(null==Qt&&null==Zt?$t:function(e){var t;return null!=(e=$t(e))&&(t=e.length,null!=Qt&&t<Qt?e=null:null!=Zt&&Zt<t&&(e=en?null:e.slice(0,Zt))),e},[kr,uo,co,lo,fo,mo,_o,ho,vo,yo,u,Gr,za,$a,Ia,da,fa,$r,Yr,t,Er,Pa,qr,cr,lr,Kr,Wa,ja,ka,La,dr,So,Aa,ha,va,Ea,ga,Ba,no,Lr,wr,pr,Ur,qa,Ca,Ir,Ar,ya,Sa,c,Tr,io,ro,Za,ra,aa,xa,oa,ao,Va,Fa,br,Mr,Dr,oo,Ra,Rr,ua,ca,Ha,Na,mr,s,ri,ai,bi,Pi]),Xt(qt(0,100),[ti,Mi,ar]),Xt(qt(0,1e9,!0),[Jn]),Xt(qt(),[po,Eo,a,zr,_r,hr,pa,ma,gr,ea,yr,Ta,Oa,xr,wa,Ua,Vr,Sr,Ma,Da,Or,Fr,sa,Cr,jr,Wr,eo,Io,Br,Hr,Pr,fr,Ga,i,Zn,ei,Qn,ni,ii,si,ui,oi,ci,li,di,pi,fi,mi,_i,hi,Ei,gi,vi,Si,Ii,Ai,yi,Ti,Oi,dt,Ri,Ni,ki,Li,wi,Ui,xi,Fi,Wi,Vi,ji,Bi,Gi,zi,Hi,$i,Yi,qi,Ki,Xi,Ji,Qi,er,tr,Zi,nr,ir,rr]),Xt(0==(e=5)?Kt:(tn=nt.pow(10,e),function(e){return nt.round(e*tn)/tn}),[po,Eo,a,zr,_r,hr,pa,ma,gr,ea,yr,Ta,Oa,xr,wa,Ua,Vr,Sr,Ma,Da,Or,Fr,sa,Cr,jr,Wr,eo,Io,Br,Hr,Pr,fr,Ga,i,Jn,Zn,ei,Qn,ti,ni,ii,si,ui,oi,ci,li,di,pi,fi,mi,_i,hi,Ei,gi,vi,Si,Ii,Ai,yi,Ti,Oi,Mi,dt,Ri,Ni,ki,Li,wi,Ui,xi,Fi,Wi,Vi,ji,Bi,Gi,zi,Hi,$i,Yi,qi,Ki,Xi,Ji,Qi,er,tr,Zi,nr,ir,rr,ar]),[un,cn,ln,dn,pn,fn,mn,_n,hn,vn,En,gn,yn,Sn,In,An,Tn,On,bn,Cn,Mn,Dn,Rn,Nn,Pn,kn,Ln,wn,Un,xn,Vn,Fn,Wn,jn,Bn,Hn,Gn,zn,$n,Yn,qn,Kn]),Co=Nt(bo);function Mo(e,t){return X+e+"_"+t}function Do(e,t){var n,i=Pt(bo),r={},a={};e?0<e.length?(e=Bt(n=et.tt&&o.beta_ev)?e.concat(n.split(".").map(function(e){return{name:e,media_types:["na"]}})):e).forEach(function(e){var t,n=e&&e.name;n&&i[n]?(e=e.media_types)&&0<e.length&&(r[n]=!0,"na"!=e[0])&&(t={},e.forEach(function(e){t[e]=!0}),a[n]=t):rt("Unknown event: "+n)}):t&&rt("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,bo.forEach(function(e){e.on=!(r&&!r[e.nm]),e.mm=a&&a[e.nm]})}Do(),kt([di,fi,mi,_i,pi,hi],"st",f);var Ro=[Jn,Qn,Zn,ei,ti,ni,ii,ri,ai,oi,si,ui,ci,li,di,pi,fi,mi,_i,hi,vi,Ei,gi,yi,Si,Ii,Ai,Ti,Oi,bi,Ci,Mi,dt,Di,Ri,Ni,Pi,ki,Li,wi,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,Gi,zi,$i,Yi,qi,Ki,Xi,Ji,Qi,Zi,er,tr,nr,ir,rr,ar],No=[],Po=(Ro.forEach(function(e){null!=e.ts&&No.push(e)}),[]),ko=[];function Lo(e){var t,n=Pt(Ro),i={};e?(e=Bt(t=et.tt&&o.beta_fd)?e.concat(t.split(".")):e).forEach(function(e){n[e]?i[e]=!0:rt("Unknown flux data: "+e)}):i=null,Po=[],ko=[],Ro.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?ko:Po).push(e)})}Lo(),kt([Gr,zr,eo],"st",f);var wo,Uo,xo,Vo,Fo=[qr,qa,Ka,za,$a,Fa,Va,La,ka,xa,Pa,wa,Ua,Wa,ja,Ba,Ha,Ga],Wo=(kt(Fo,"se",f),[ra,aa,u,Na,Ia,ca,Jr]),jo={},Bo=(Wo.forEach(function(e){jo[e.nm.toUpperCase()]=q+e.nm}),[cr,lr,dr,pr,fr,mr,_r,hr,vr,Er,gr,yr,Sr,Ir,Ar,Tr,Or,br,Cr,Mr,Dr,Rr,Nr,Pr,i,kr,Lr,wr,Ur,xr,Vr,Fr,Wr,jr,Br,Hr,Gr,zr,a,$r,Yr,qr,Kr,s,Xr,Jr,Qr,Zr,ea,ta,na,ia,ra,aa,oa,sa,ua,ca,la,u,da,pa,fa,ma,_a,ha,va,Ea,ga,ya,Sa,c,Ia,Aa,Ta,Oa,ba,Ca,Ma,Da,Ra,Na,Pa,ka,La,wa,Ua,xa,Va,Fa,Wa,ja,Ba,Ha,Ga,za,$a,Ya,qa,Ka,Xa,Ja,l,Qa,Za,eo,to,no,io,ro,ao,oo,so,uo,co,lo,po,fo,mo,_o,ho,vo,Eo,go,yo,So,Io,Ao,To,Oo,t]),Ho=Nt(Bo),Go=Bo.concat(Ro),zo=[pr],$o=[],Yo=[];function qo(e){var t,n=Pt(Bo),i={};wo=Uo=xo=Vo=!1,e?((e=Bt(t=et.tt&&o.beta_md)?e.concat(t.split(".")):e).forEach(function(e){n[e]?i[e]=!0:"custom_metadata_all"==e?wo=!0:"custom_events_all"==e?Uo=!0:"vendor_metadata_all"==e?xo=!0:"vendor_events_all"==e?Vo=!0:rt("Unknown metadata: "+e)}),zo.forEach(function(e){i[e.nm]=!0})):wo=Uo=xo=Vo=!(i=null),$o=[],Yo=[],Bo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Yo:$o).push(e)})}qo();var Ko="ad",Xo=/^live$/i,Jo="DASH",Qo="Flash",Zo={"application/x-mpegURL":"HLS","application/dash+xml":Jo,"application/vnd.ms-sstr+xm":"Smooth","video/x-flv":Qo,"video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"},d=[[/Opera\/([\d.]+)/,"Opera"],[/OPR\/([\d.]+)/,"Opera"],[/Edge\/([\d.]+)/,"Microsoft Edge"],[/Edg\/([\d.]+)/,"Microsoft Edge"],[/MSIE ([\d.]+)/,"Microsoft Internet Explorer"],[/Trident\/.*rv:([\d.]+)/,"Microsoft Internet Explorer"],[/Seamonkey\/([\d.]+)/,"Seamonkey"],[/Firefox\/([\d.]+)/,"Firefox"],[/Chromium\/([\d.]+)/,"Chromium"],[/Chrome\/([\d.]+)/,"Chrome"],[/Safari\/([\d.]+)/,"Safari"]],n=[[/Windows 10\.0|Windows NT 10\.0/,"Windows 10"],[/Windows 8\.1|Windows NT 6\.3/,"Windows 8.1"],[/Windows 8|Windows NT 6\.2/,"Windows 8"],[/Windows 7|Windows NT 6\.1/,"Windows 7"],[/Windows NT 6\.0/,"Windows Vista"],[/Windows NT 5\.2/,"Windows Server 2003"],[/Windows NT 5\.1|Windows XP/,"Windows XP"],[/Windows NT 5\.0|Windows 2000/,"Windows 2000"],[/Win 9x 4\.90|Windows ME/,"Windows ME"],[/Windows 98|Win98/,"Windows 98"],[/Windows 95|Win95|Windows_95/,"Windows 95"],[/Windows NT 4\.0|WinNT4\.0|WinNT|Windows NT/,"Windows NT 4.0"],[/Windows CE/,"Windows CE"],[/Win16/,"Windows 3.11"],[/Tizen/,"Tizen"],[/Android/,"Android"],[/OpenBSD/,"Open BSD"],[/SunOS/,"Sun OS"],[/Linux|X11/,"Linux"],[/iPhone|iPad|iPod/,"iOS"],[/Mac OS X/,"Mac OS X"],[/MacPPC|MacIntel|Mac_PowerPC|Macintosh/,"Mac OS"],[/QNX/,"QNX"],[/UNIX/,"UNIX"],[/BeOS/,"BeOS"],[/OS\/2/,"OS/2"],[/nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver/,"Search Bot"]],e=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],es=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function ts(e,t,n){t&&n.push(e)}function ns(e,t,n){n.push(e+"="+t)}function is(e,t,n){n.push(e+(o.cmcd_ntq?"="+t:'="'+t+'"'))}function rs(e,t,n){n.push(e+'="'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function as(e){return"false"!==e}function os(e){return+e}function ss(e){return e.replace(/"/g,"")}function us(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var cs,ls,ds={bl:[0,[ns,os],_r],br:[1,[ns,os],hr],bs:[2,[ts,as],vr],cid:[3,[rs,us],Er],d:[1,[ns,os],gr],dl:[0,[ns,os],yr],mtp:[0,[ns,os],Sr],nor:[0,[rs,us],Ir],nrr:[0,[rs,us],Ar],ot:[1,[is,ss],Tr],pr:[3,[ns,os],Or],rtp:[2,[ns,os],Cr],sf:[3,[is,ss],Mr],sid:[3,[rs,us],Dr],st:[3,[is,ss],Rr],su:[0,[ts,as],Nr],tb:[1,[ns,os],Pr],v:[3,[ns,os],i]},ps={bs:!1,su:!1,v:1,pr:1},fs="org.svalabs-";function ms(e){for(var t,n,i=[[],[],[],[]],r=tt.keys(e),a=0;a<r.length;a++)t=r[a],(n=ds[t])&&n[3]&&n[1][0](t,e[t],i[n[0]]);return i}function _s(e){var t,n=tt.keys(ds);for(cs=!1,ls="header"===(gt.options.cmcdMode||o.cmcd_mode),t=0;t<n.length;t++)ds[n[t]][3]=!1;if(e&&Gt(e)&&0<e.length)if(cs=!0,"na"==e[0])for(t=0;t<n.length;t++)ds[n[t]][3]=!0;else e.forEach(function(e){var t=ds[e];t?t[3]=!0:rt("Unknown CMCD key: "+e)})}function hs(e,t,n){for(var i,r,a=tt.keys(e),o=0;o<a.length;o++)delete e[a[o]];for(o=0;o<t.length;o++)0!=((i=t[o]).ap&n)&&null!=(r=null==(r=(r=i.st||i.se)&&Ft(r,i.nm))?i.df:r)&&(e[i.nm]=r)}function vs(e,t,n,i){for(var r,a,o,s,u=0;u<i.length;u++)o=(a=(r=i[u])[0]).nm,0!=(a.ap&n)?(s=t[o])&&s(r)||(e[o]=r[1],(s=a.st||a.on&&a.se)&&_(s,o,r[1])):rt("Setting inapplicable data",a)}function Es(e,t){return e[t.nm]}function gs(e,t,n,i,r){var a,o=[];return n&&o.push([n,a=t(n)+i]),r&&o.push([r,t(r)+i]),e(o),a}function pt(e,t,n){if(t)for(var i,r,a=0;a<t.length;a++)if(r=e[i=t[a]])e=r;else{if(n)return null;e=e[i]={}}return e}function ys(e,t){e=pt(e,t.p||Xn,!0);return e&&e[t.nm]}function Ss(e,t,n,i){for(var r,a,o,s=0;s<t.length;s++)0!=((r=t[s]).ap&n)&&null!=(o=Jt(e[a=r.nm],r.dv))&&(pt(i,r.p)[a]=o)}ds[fs+"rid"]=[0,[rs,us],br],ds[fs+"tid"]=[0,[rs,us]],ds[fs+"cmi"]=[0,[ns,os]],ds[fs+"pmi"]=[0,[ns,os]],_s();var Is,As,Ts,Os,bs,Cs,Ms,Ds,Rs,Ns,Ps,ks,Ls,ws,Us,xs,Vs,p,Fs={},Ws={},js=Ft(f,ge)||[],Bs=[],Hs=1,Gs=2,zs=4,$s=8,Ys=16,qs=zs|$s|Ys,Ks=Gs|Hs|qs,Xs=0,Js=[];function Qs(e){return null!=e?6e4*e:12e5}function Zs(e,t){if(!Ks&&0<js.length){for(var n,i=ot(),r=0,a=0;a<js.length;a++)js[a].p&&(n=!0,Ss(Fs,$o,on,js[a].m)),r=nt.max(r,i-js[a].t);ks&&cu(js,0,Ke(Ue,i,r,n),e),t=!0}t&&(js=[],Wt(f,ge)),Ms=null}function h(e){(Ks&=~e)||null!=Ms||Zs()}function eu(e,t,n,i,r,a,o,s,u){if(4==e.readyState){var c=ot(),l=e.status;if(t+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[r++];if(null!=a)return W(function(){o.retry(ot()),n(i,r,o)},1e3*a),void rt(t+"retry #"+r+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(e,c))||u&&u(t,l)||rt(t+"failed")}}function tu(t,n,i){xt("GET",et.ip,{Accept:"application/json"},null,function(e){eu(e,"IP API",tu,t,n,et.rd,i,function(e){e=lt(e.responseText);if(e)return v([[qr,e.query],[qa,e.isp],[Ka,e.mobile],[za,e.as],[$a,e.org],[Fa,e.region],[Va,e.regionName],[La,e.countryCode],[ka,e.country],[xa,e.zip],[Pa,e.city],[wa,e.lat],[Ua,e.lon],[Wa,e.continent],[ja,e.continentCode],[Ba,e.district],[Ha,e.timezone],[Ga,e.offset/3600]]),h($s),ru(),!0},function(){h($s),ru()})})}function nu(t,n,i){var r=ot();xt("GET",wt(et.ts),{"cache-control":"no-cache"},null,function(e){eu(e,"SERVER TS",nu,t,n,et.rd,i,function(e,t){e=lt(e.responseText),e=e&&e.epoch_millis;if(e)return v([[eo,nt.round(e-(r+t)/2)]]),h(zs),!0},function(){h(zs)})})}function iu(t,n,i){Rs=xt("POST",wt(et.sm),{"Content-Type":"application/json","cache-control":"no-cache"},t,function(e){4==e.readyState&&(Rs=null,eu(e,"Sampling API",iu,t,n,et.rd,i,function(e){e=lt(e.responseText);if(Ns=e&&e[et.ss+"_sampling"])return ks=Ns.in_sample,Ps=!1,h(Gs),_(f,ye,Ns),!0},function(e){return ks=Ps=!0,h(Gs),rt(e+"forced in"),!0}))})}function ru(){var e;!Ds||Ks&Hs||(et.sw&&et.sm?(et.sp&&Pt(Fo),(e=Ho[et.sd])&&(Ds.sampling_definition_params={namespace:et.ss,key_name:e.nm,key_value:lu(e)}),(e=Ho[et.sc])&&(Ds.sampling_criteria_params={sampling:{key_name:e.nm,key_value:lu(e)}}),Ds.sampling_override=o.sampling_override||"NONE",Ds.sampling_request_id=ut(),iu(ct(Ds),0,Ke(Le,ot()))):(ks=!0,h(Gs)),Ds=null)}function au(n,t,i){var e;et.ci?(et.tt&&(et.mf=o.mock_config||et.mf),Tt("Get config from "+(e=et.mf||Lt(wt("https://"+et.cf+"platform.datazoom.io/beacon/v2/config"),function(e){e.append(ne,et.ci)}))),xt("GET",e,null,null,function(e){eu(e,"Config API",au,n,t,et.rd,i,function(e){e=lt(e.responseText);if(e)return n(e),!0},function(e,t){t<400||429==t||499<t||(et.om=!1),n()})})):(rt("Missing configuration ID"),et.om=!1,n())}function ou(){au(function(e){et.st=null,e&&function i(r,a){zt(r)?tt.keys(r).forEach(function(e){var t=r[e],n=a[e];zt(n)?i(t,n):null==n?rt("Unknown config key: "+e):null==t?rt("Undefined config key: "+e):n&&(et[n]=t)}):rt("Invalid config object",r)}(e,Z),_(f,Se,et.st),et.st=Qs(et.st),Do(et.ev,e),Lo(et.fd),qo(et.md),_s(et.cd),et.og||($e=[]),et.os||(je=null),m(et.cm,"sort"),m(et.am,"sort"),m(et.cq,"sort"),m(et.aq,"sort"),v([[dr,et.cc],[lr,et.cl]]),Bs.forEach(function(e){var t,n,i,r,a,o=!1,s=ys(e.m,mr),u=Co[s];u?o=u.on:s.startsWith(K)?o=Uo:s.startsWith(X)&&(o=Vo),o&&(t=e.m,n={},$o.concat(Yo).forEach(function(e){null!=(i=ys(t,e))&&(pt(n,e.p)[e.nm]=i)}),r=pt(t,Xn),a=pt(n,Xn),Po.concat(ko).forEach(function(e){null!=(i=ys(r,e))&&(a[e.nm]=i)}),wo&&(i=pt(t,sr,!0))&&tt.assign(pt(n,sr),i),xo&&(i=pt(t,ur,!0))&&tt.assign(pt(n,ur),i),su(n,a),e.m=n,js.push(e))}),_(f,ge,js),Bs=[];var t,e=ha.nm;ha.on?(t=Ft(y,e))||(t=ut(),_(y,e,t)):Wt(y,e),v([[ha,t]]),et.ts&&eo.on&&null==lu(eo)?nu(0,0,Ke(xe,ot())):h(zs),et.ab&&so.on&&null==lu(so)?xt("GET",wt(et.ab),null,null,function(e){4==e.readyState&&(v([[so,!e.status]]),h(Ys))}):h(Ys),et.ip&&Fo.some(function(e){return e.on&&null==lu(e)})?tu(0,0,Ke(Ve,ot())):h($s),h(Hs),ru(),W(function(){h(qs),ru()},et.mh)},0,Ke(we,ot()))}function su(e,t){var n=""+(bs+1e7);pt(e,pr.p)[pr.nm]=Ts+"_"+n.substr(-7,2)+"."+n.substr(-5),_(f,he,++bs),ci.on&&(t[ci.nm]=bs)}function uu(e,t,n,i,r,a,o){var s,u,c,l,d,o=o?nn:an,p=pt(e,Xn);for(Ss(Fs,$o,o,e),Ss(Fs,Po,o,p),(i=i||[]).push([mr,t],[fr,n]),s=0;s<i.length;s++)u=(c=i[s])[0],c[2]||0!=(u.ap&rn)?u.on&&null!=(c=Jt(c[1],u.dv))&&(pt(e,u.p)[u.nm]=c):rt("Invalid event data",u);wo&&(o=Qe(Is,r),t=e,r=ct(o),d=r?r.length:0,(l=et.ml)&&l<d?rt("Custom metadata size: "+d+" > "+l):2<d&&(o=lt(r))&&tt.assign(pt(t,sr),o)),xo&&(l=Mt(As,a),d=e,l)&&tt.assign(pt(d,ur),l),yt&&bt("evInfo",e),!(de<ue)&&et.le&&et.le(e)||(r={p:Ks,m:e,t:n},Ks&Hs?Bs.push(r):(su(e,p),js.push(r),_(f,ge,js),null==Ms&&(Ms=W(Zs,et.bd))))}function cu(n,t,i,e){var r,a=n.map(function(e){return e.m}),o=(a.forEach(function(e,t){var n,i=pt(e,or);Qa.on&&(pt(e,Qa.p)[Qa.nm]=ot()),Ns&&(i[et.ss+"_sampling"]=Ns),null!=Ps&&(i[et.ss+"_forced_sampling_in"]=Ps),t||(r=i[Ie],je&&(tt.keys(je).forEach(Je),je=null),$e.length&&(r=r?r.concat($e):$e,$e=[],r.length>et.mc&&(r.sort(function(e,t){return e.batch()>t.batch()?1:-1}),n=r[r.length-et.mc-1].batch(),r=r.filter(function(e){return e.batch()>n})),i[Ie]=r))}),wt(et.mb)),a=ct(a);e&&w.sendBeacon&&w.sendBeacon(o,a)||xt("POST",o,{"Content-Type":"application/json"},a,function(e){eu(e,"Message post",cu,n,t,et.rd,i,null,function(e,t){n.forEach(function(e){Xe(e,t)}),r&&($e=r.concat($e))})})}function v(e){vs(Fs,Ws,nn,e)}function lu(e){return Fs[e.nm]}function du(e){var t=et.st;return e<Cs&&rt("Activity time reversal: "+Cs+" -> "+e),0<=t&&(e<Cs||Cs+t<=e)}function pu(e){if(Oc&&(Oc=!1,mu(Sn,e)),Ts&&Os&&!du(e))_(f,ve,Cs=e);else{Zs(!(Bs=[]),!0);var t=e,n=Js[Xs];if(Ts=ut(),Os=Cs=t,v([[Gr,Ts],[zr,Os],[di,bs=0],[fi,0],[mi,0],[_i,0],[pi,0],[hi,0]]),_(f,he,bs),_(f,ve,Cs),Wt(f,ye),Rs&&Rs.abort(),Rs=Ns=null,ks=Ps=null,Ks|=Gs,Ds={},ru(),it(n))try{n()}catch(e){at(e,"onAppSessionStart")}}v([[oi,e-Os],[ma,Ze.outerWidth],[pa,Ze.outerHeight],[io,vt.title],[ro,L.href],[ao,vt.referrer],[oo,L.hostname],[_a,w.cookieEnabled]])}function fu(e,t,n){gs(v,lu,e,t,n)}function mu(e,t,n,i,r){0!=(e.ap&nn)?(pu(t),e.on&&uu({},e.nm,t,n,i,r,!0)):rt("Event inapplicable: "+e.nm+", ss",e)}function _u(t,n){var i,r;t&&Wo.forEach(function(e){i=q+e.nm,null!=(r=t[i])&&(n([[e,r]]),delete t[i])})}if(hs(Fs,Go,nn),Ts=lu(Gr),Os=lu(zr),bs=Ft(f,he)||0,Cs=Ft(f,ve)||0,Ns=Ft(f,ye),Is=Ft(f,Ee),As=Ft(f,"__ss_vendor_md"),et.st=Qs(Ft(f,Se)),Ts&&Os&&!du(ot())||(v([[eo,null]]),Fo.forEach(function(e){v([[e,null]])})),Ns?(ks=Ns.in_sample,Ps=!1,h(Gs)):Ds={},d.some(function(e){if(p=e[0].exec(U))return Ls=e[1],ws=p[1],!0})||(p=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(U))&&(Ls=p[1],ws=p[2]),(p=/Version\/([\d.]+)/.exec(U))&&(ws=p[1]),n.some(function(e){if(e[0].test(U))return Us=e[1],!0})){switch(p=null,Us){case"Mac OS X":p=/Mac OS X (10[\d._]+)/.exec(U);break;case"Android":p=/Android ([\d._]+)/.exec(U);break;case"iOS":p=/OS (\d+_\d+(_\d+)?)/.exec(U);break;case"Tizen":p=/Tizen[ \/]([\d._]+)/.exec(U);break;default:(p=/Windows (.*)/.exec(Us))&&(Us="Windows")}p&&(xs=p[1].replace(/_/g,"."))}else Us=xs="-";e.some(function(e){if(e[0].test(U))return Vs=e[1],!0}),v([[s,U],[da,Ls],[fa,ws],[Sa,Us],[c,xs],[ga,Vs],[to,et.cn],[no,et.sv],[l,3]]);var hu="baseContext",vu="contextType",Eu="contextName",gu="metadata",yu=0,Su=["base","player"],ft={},Iu=[];function Au(e){if(!e.destroyed){e.setTimer(null);try{var t=e.destroyCallback;t&&t()}catch(e){at(e,"onDestroy")}delete ft[e.id],e.removeListeners(),e.destroyed=!0}}function Tu(e,t,n,i,r,a,o){(r=r||[]).push([Xa,e.id],[Ja,e.name]),uu(t,n,i,r,Qe(e.customMetadata,a),Mt(e.vendorMetadata,o))}function Ou(e,t){return!(null!=t&&!zt(t)||(e.customMetadata=lt(ct(t)),0))}function bu(e){var t=st(Fs);return t._c_=Qe(Is,e.customMetadata),t._v_=Mt(As,e.vendorMetadata),t}function Cu(){var n,c=[],i={},a={id:ut(),type:yu,destroyed:!1,destroyCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(e,t,n){if(a.destroyed)return rt(e+" after destroyed"+(t?": "+t:""),n),!0},onDestroy:function(e){a.destroyCallback=e},setTimer:function(e){var t;n&&(0<=(t=Iu.indexOf(n))&&Iu.splice(t,1),n=null),e&&(Iu.push(e),n=e)},fireEvent:function(e,t,n,i,r){a.shallBlock("fireEvent",e.nm,e)||(pu(t),e.on&&Tu(a,{},e.nm,t,n,i,r))},fireVendorEvent:function(e,t,n){a.fireEvent({ap:I,nm:Mo(e,t),on:Vo},ot(),null,null,Ct(e,n))},addListener:function(e,t,n,i,r){if(e&&t){var a=e[i=i||"addEventListener"];if(it(a)){u=Dt(e,n,s="listener: "+(s=t));var o=de<ce?u:function(){We(s,arguments),u.apply(null,arguments)};try{"-"===t?a.call(e,o):a.call(e,t,o),c.push([e,t,n,o,r||"removeEventListener"])}catch(e){at(e,"addListener: "+t)}}else rt("Invalid add-listener method: "+i,e)}var s,u},removeListeners:function(r,a,o){c=c.filter(function(e){var t=e[0],n=e[1];if(r&&r!=t||a&&a!=n||o&&o!=e[2])return!0;var i=t&&t[e[4]];if(it(i))try{"-"===n?i.call(t,e[3]):i.call(t,n,e[3])}catch(e){}else rt("Invalid remove-listener method: "+e[4],t)})},stash:function(e,t,n){i[e]=[t,n]},unstash:function(e){e.forEach(function(t){var e=i[t];if(e){delete i[t];try{e[0].apply(null,e[1])}catch(e){at(e,"unstash: "+t)}}})}},e={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return Su[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){Au(a)},setMetadata:function(e){return Ou(a,e)},getMetadata:function(){return lt(ct(a.customMetadata))},generateEvent:function(e,t){a.fireEvent({ap:I,nm:K+e,on:Uo},ot(),null,t)}};return yt&&(e.dumpDzData=function(){return lt(ct(bu(a)))}),a.basePublicMethods=e,a.publicContext=st(e),ft[a.id]=a}function Mu(e){return et.sn&&et.sn[e]||""+e}var Du,Ru,Nu,Pu,mt=[],ku="idle",Lu=(mt[2]=mt[9]="buffering",mt[3]=mt[10]="playing",mt[4]=mt[11]="paused",mt[5]=mt[12]="seeking",mt[6]="ended",mt[0]=mt[7]=mt[8]=ku,function(U,x,r){var i,a,o,V,F,W,j,p={},B={},E={},H={},G={},z={},$=[],Y=[],q=[],K=[],X=[],J=[],Q=[],f=[],Z=ut(),m=(w=r[hu],(e=(e=zt(w)&&it(w.contextID)&&w.contextID())&&Bt(e)&&ft[e])&&e.type==yu&&e.publicContext===w?e:(null!=w&&rt("Invalid contextOptions."+hu,w),Cu())),e=r[Eu],s=(null!=e&&(m.name=e),(w=r["adapterID"])&&Bt(w)&&Ac[w]||(null!=w&&rt("Adapter not found for id: "+w),Du)),u=r["adapterOptions"];function ee(){if(o){for(var e,t=tt.keys(o),n=ot(),i=0;i<t.length;i++)k((e=o[t[i]]).ev,n,e.dl);o=null}}function g(e,t,n){(o=o||{})[n||e.nm]={ev:e,dl:t}}function _(e){vs(p,B,1,e)}function y(e){vs(E,H,2,e)}function S(e,t){return Es(t?E:p,e)}function te(e){return E[e.nm]}function ne(){var e=S(ra),t=S(aa);hs(p,Go,1),_([[Ca,"content"],[ra,e],[aa,t]])}function ie(){hs(E,Go,2),y([[Ca,"ad"]])}function t(e,t){B[e.nm]=t}function re(e,t){H[e.nm]=t}function ae(e,t){z[e.nm]=t}function n(e,t,n,i){for(var r=[],a=0;a<t.length;a++)r[t[a]]=!0;Q[e]={tr:r,en:n,ex:i}}u=zt(u)?st(u):{},s&&(W=s[2],j=s[3],tt.assign(u,s[4]||{}),V=u[Sc],F=u[Ic],(u[yc]||[]).forEach(function(e){G[e[0].nm]=e[1]})),U&&tt.keys(ft).some(function(e){e=ft[e];if(1==e.type&&e.player===U)return e.publicContext.destroy(),!0});var oe,c,se,ue,ce,l,le,de,I,pe,fe,A,me,T,O,_e,he,ve,Ee,ge,b,C,ye,Se,d,h,M,D,Ie,Ae,R,N,Te,v=0,Oe=ku,be=1,Ce=ot(),Me=Ot(rt,"Abnormal duration increment: ",1,1e3,3e5);function De(){return 2==be}function Re(){return!!T&&T.type===Ko}function Ne(e){I=e+et.hi,Tt("Heartbeats started")}function Pe(){I&&Tt("Heartbeats stopped"),I=0}function P(e,t,n){return gs(_,S,e,t,n)}function ke(e){var t=e-Ce;t<0||t>et.ed?Me.log(t):0<t&&(4==v?P(gi,t,vi):11==v?P(Ei,t,vi):2==v?(c&&P(Wi,t,Vi),P(ei,t,Qn)):9==v&&(c&&P(Fi,t,Vi),P(Zn,t,Qn))),Ce=e}function Le(e,t){null!=e&&(f[e]=t)}function k(t,n,i,e,r,a){if(!m.shallBlock("fireEvent",t.nm,t))if(a=a||(Re()?2:be),0!=(t.ap&a)){if(pu(n),(i=i||[]).push([Za,m.id]),Te||(Te=!0,(u=q.some(function(e){try{return e(n,i,t,a)}catch(e){at(e,"extEventHandler")}}))||(u=(c=z&&z[t.nm])&&c(n,i,t,a)),Te=!1),!u){ke(n);for(var o,s,u,c,l=[[bi,Oe]],d=0;d<No.length;d++)s=f[(o=No[d]).ts],l.push([o,s?n-s:0]);_(l),null==S(Jn)&&Et&&(c=Et.downlink)&&_([[Jn,1e3*c]]),Le(t.rt,n),Le(2==a?t.rta:t.rtc,n),!t.on||t.mm&&!t.mm[S(Ca,2==a)]||(c=pt(u={},Xn),2==a?(Ss(E,$o,2,u),Ss(E,Po,2,c),Ss(p,$o,an,u),Ss(p,Po,an,c)):(Ss(p,$o,1,u),Ss(p,Po,1,c),Ss(E,$o,an,u),Ss(E,Po,an,c)),Tu(m,u,t.nm,n,i,e,r))}}else rt("Event inapplicable: "+t.nm+", "+a,t)}function we(e){var t=e[1];t&&t!=S(e[0])&&g(gn)}function Ue(e,t){var n=3==t?b:C;if(e!=n){var i,r,a,o,s,u,c,l,d=ot();if(I||Ne(d),pe=!0,3==t){if(s=V||et.mp,b=e,a=d-ye,ye=d,i=S(Ta),A){var p,f=T;if(null==_e&&0<i&&(p=A.locate(i),_e=(p.type?p.start:i)-p._e),i=_e,O&&n>=O.start&&n<=O.end||(O=A.locate(n)),(T=T&&e>=T.start&&e<=T.end?T:A.locate(e))&&(u=T.type,c=T.start,l=T._d),T!=f&&(p=N<=e&&e<N+s,u===Ko?R!==c&&l&&((null==R?We:(p&&k(Ln,d),Ge))(d),R=c,N=T.end,Be(),y(l.concat([[po,N-R]])),He(d,T._a),k(dn,d,null,null,null,2),C=0,Se=d):null!=R&&(p&&k(Ln,d,null,null,null,2),Ge(d),je(d))),u===Ko)return void(l&&(Ue(f=e-c,10),E[dt.nm]=f))}de||(r=he=!he&&et.cm?et.cm.slice():he)}else s=F||et.mp,C=e,a=d-Se,Se=d,i=te(po),r=ve=!ve&&et.am?et.am.slice():ve;if(null!=n&&null!=e&&0<=n&&n<e&&e<=n+s){if(0<i&&r)for(var m,_,h=0,v=3==t&&O&&T?(_=((O.type?O.start:n)-O._e)/i,((u?c:e)-T._e)/i):(_=n/i,e/i);h<r.length&&!(v<(m=r[h]/100));)_<m?(r.splice(h,1),g(Dn,[[Vr,100*m]],Dn.nm+m)):h++;if(3==t){if(M=e,a<0||a>et.ed)Me.log(a);else if(0<a)if(u)P("promo"===u?Ti:null,a,yi);else if(i=P(Ai,a,yi)/1e3,et.cq)for(Ee=Ee||et.cq.slice();null!=(o=Ee[0])&&o<=i;)Ee.shift(),g(xn,[[Fr,o]],xn.nm+o)}else if(D=e,a<0||a>et.ed)Me.log(a);else if(0<a&&(P(Si,a,yi),i=gs(y,te,Ii,a)/1e3,et.aq))for(ge=ge||et.aq.slice();null!=(o=ge[0])&&o<=i;)ge.shift(),g(xn,[[Fr,o]],xn.nm+o)}}}function xe(e,t){null==d&&null!=e&&null!=M&&e!=M&&(d=M,k(Bn,t||ot()))}function Ve(e,t){null==h&&null!=e&&null!=D&&e!=D&&(h=D,k(Bn,t||ot()))}function Fe(e){oe&&k($n,e),oe=se=!1,be=1,d=M=null,Pe()}function We(e){var t,n,i="pre";S(Ai)>1e3*et.ep&&(t=S(dt),n=S(Ta),i=null!=t&&null!=n&&t+et.ep>n?"post":"mid"),ue=l=le=!1,ie(),_([[uo,ut()],[_o,i],[li,0]]),k(un,e)}function je(e){Ie+=e-f[14],k(cn,e,null,null,null,2),_([[uo,null],[_o,null],[li,null]])}function Be(){le||(le=!0,y([[ho,a||ut()],[Ii,0]]),a=null)}function He(e,t){var n=Js[3];if(ue=!0,ve=ge=null,fu(di,1),P(li,1),it(n))try{n(i,t)}catch(e){at(e,"onAdStart")}k(kn,e)}function Ge(e){if(ue){var t=Js[4];if(Ae+=e-f[9],it(t))try{t(i)}catch(e){at(e,"onAdEnd")}}ue=l=le=!1,h=D=R=N=null,ie()}function ze(e,t,n,i){var r,a,o,s;e!=v&&(o=Q[v],r=Mu(v)+" => "+Mu(e),a=mt[e]||Oe,m.shallBlock("setState",r)||(o.tr[e]?(Tt("state: "+r+" ("+a+")"),(o=o.ex)&&o(t,e,n,i),ke(t),s=v,Oe=a,(o=Q[v=e].en)&&o(t,s,n,i),pe=!0):rt("Invalid transition: "+r)))}function $e(e){return e!=v&&!!Q[v].tr[e]}function Ye(){return 0==v||7==v||8==v}function L(o,s,u){return function(e){var t,n,i,r,a;t=o,n=s,i=u,a=(e=e)[0],e=e[1]=Jt(e[1],a.dv),a=S(a,i),null!=i&&i!=De()||null==a||null==e||(n?!e!=!a&&g(e?t:n):e!=a&&g(t,r=t==Fn?a<e?[[kr,"up"]]:e<a?[[kr,"down"]]:null:r))}}function qe(e){e[1]=Jt(e[1],e[0].dv)}n(0,[1,8]),n(1,[2,7,8,16],function(e){var t=Js[1];if(Fe(e),oe=!(ce=!1),de=Xo.test(S(ca)),Ie=Ae=0,_([[Kr,Z],[ii,e]]),Z=ut(),fu(hi,1),it(t))try{t(i)}catch(e){at(e,"onContentSessionStart")}A=me,me=T=O=_e=null,R=N=null,fe=0,k(Mn,e)}),n(2,[3,4,5,7,8,16],function(e,t){(c=3==t)&&(P(xi,1,wi),k(Gn,e)),k(_n,e)},function(e){k(hn,e),c&&k(zn,e),c=!1,se||k(bn,e)}),n(3,[2,4,5,6,7,8,16],function(e){var t;se||(t=e-f[0],se=!0,he=Ee=null,fu(pi,1),k(kn,e,[[Br,t-Ie],[Hr,t-Ae]])),b=M=S(dt),ye=e,null!=d&&(k(Hn,e,[[Wr,1e3*d],[jr,null!=b?1e3*b:null]]),d=null),k(Un,e),ce&&(ce=!1,k(jn,e)),I||Ne(e)},function(){b=null}),n(4,[2,3,5,6,7,8,16],function(e){ce||(ce=!0,k(Nn,e))}),n(5,[2,3,4,6,7,8,16],function(e){xe(S(dt),e)}),n(6,[2,3,4,5,7,8,16],function(e){k(Ln,e)}),n(7,[],function(e){Fe(e)}),n(8,[],function(e,t,n){k(In,e,n),Fe(e)}),n(9,[10,11,12,14,15,7],function(e,t){Be(),(c=10==t)&&(P(Ui,1,wi),k(Gn,e)),k(_n,e)},function(e){k(hn,e),c&&k(zn,e),c=!1}),n(10,[9,11,12,13,14,15,7],function(e,t,n,i){Be(),ue||He(e,i),C=D=te(dt),Se=e,null!=h&&(k(Hn,e,[[Wr,1e3*h],[jr,null!=C?1e3*C:null]]),h=null),k(Un,e),l&&(l=!1,k(jn,e)),I||Ne(e)},function(){C=null}),n(11,[9,10,12,14,15,7],function(e){l||(l=!0,k(Nn,e))}),n(12,[9,10,11,13,14,15,7],function(e){Ve(te(dt),e)}),n(13,[9,10,17,7],function(e){k(Ln,e),Ge(e)}),n(14,[9,10,17,7],function(e){k(pn,e),Ge(e)}),n(15,[9,10,17,7],function(e,t,n){k(In,e,n),Ge(e)}),n(16,[9,10,15,17,7],function(e){be=2,We(e)}),n(17,[2,3,4,5,6,7],function(e){je(e),be=1});var Ke,e=ki,w=ki;function Xe(e){var i=[],r=0,a=0;return i.locate=function(t){return i.find(function(e){return t>=e.start&&t<=e.end})},e.forEach(function(e){var t=e.start,n=e.end;Ht(t)&&Ht(n)&&(t=t<r?r:t)<n?(r<t&&i.push({start:r,end:t,_e:a}),i.push(tt.assign({},e,{start:t,_e:a})),e.type&&(a+=n-t),r=n):rt("Skipped time span",e)}),i.push({start:r,end:_t.MAX_VALUE,_e:a}),i}function Je(e,t){e=e&&e({type:St,ack:t,appSID:lu(Gr),ctSID:S(Kr)});e&&e["catch"](function(e){At("Cast transfer message rejected",e)})}function Qe(e){var t,n=m.publicContext,i=null;m.player=e,tt.assign(n,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return e},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(Kr)},nextContentSessionID:function(){return Z},playerState:function(){return Oe},destroy:function(){if(!m.destroyed){$e(7)&&ze(7,ot());for(var e=0;e<Y.length;e++)try{Y[e]()}catch(e){at(e,"extOnDestroy")}Au(m)}},setMetadata:function(e){return!!Ou(m,e)&&(_u(m.customMetadata,m.setData),!0)},annotateContentSession:function(e){return null==e?!(me=null):!!Gt(e)&&(me=Xe(e.slice().sort(function(e,t){return e.start>t.start?1:-1})),!0)}}),yt&&(n.dumpDzData=function(){var e=tt.assign(bu(m),p,E),t=Ca.nm;return e[t]=(De()||Re()?E:p)[t],lt(ct(e))}),Uu.forEach(function(e){try{e(n,m,$,Y,q,K,X,J)}catch(e){at(e,"extInit")}});try{i=W?W(e,m,u):null}catch(e){i=at(e,s[0]+" initContext")}return i?(It(i),n.destroy()):(null!=(t=r[gu])&&n.setMetadata(t),t=ot(),k(yn,t),k(wn,t),m.setTimer(function(){for(var e=0;e<$.length;e++)try{$[e]()}catch(e){at(e,"extOnTimer")}if(Ke)try{Ke()}catch(e){at(e,"onTimer")}var t=ot();ke(t),I&&I<=t&&(pe?(k(On,t,[[xr,++fe]]),I=t+et.hi,pe=!1):Pe())})),n}return 1&(G[e.nm]||0)&&(e=Ni),2&(G[w.nm]||0)&&(w=Ni),t(Ta,qe),re(po,qe),t(ua,function(e){var t=e[1];e[1]=t&&Zo[t]||t}),t(ca,function(e){de=Xo.test(e[1])}),t(dt,function(e){for(var t=0;t<K.length;t++)try{K[t](e)}catch(e){at(e,"extPlayheadHandler")}5==v||2==v?xe(e[1]):3==v&&Ue(e[1],3)}),re(dt,function(e){12==v?Ve(e[1]):10==v&&Ue(e[1],10)}),t(e,L(Fn,null,!1)),re(w,L(Fn,null,!0)),t(ia,L(Rn,qn)),t(ta,L(Tn,An)),t(Jr,L(vn,En)),t(Da,L(Wn)),t(Ma,L(Wn)),t(ar,L(Kn)),t(ri,L(mn,null,!1)),re(ri,L(mn,null,!0)),t(ai,L(Yn)),t(la,L(Yn)),t($r,we),t(Yr,we),t(Mi,function(e){var t,n,i,r,a=e[1];a=a&&it(a.getBoundingClientRect)?"visible"==vt.visibilityState?(t=(n=a.getBoundingClientRect()).left,i=n.top,r=n.bottom,nt.min(100,nt.max(0,nt.round(100*(nt.min(n=n.right,Ze.innerWidth)-nt.max(t,0))*(nt.min(r,Ze.innerHeight)-nt.max(i,0))/((n-t)*(r-i)))))):0:Jt(a,Mi.dv),null!=(e[1]=a)&&_([[Ci,50<=a]])}),t(ni,function(e){var t=e[1];if(t&&it(t.end)){var n,i,r=S(dt);if(null!=r)for(n=0;n<t.length;n++)if(i=t.end(n),r>=t.start(n)&&r<=i)return void(e[1]=1e3*(i-r));e[1]=0}}),ae(bn,function(e,t,n,i){2==i&&(a=ut(),t.push([ho,a,!0]))}),ae(dn,function(e,t){a&&t.push([ho,a,!0])}),ae(In,function(e,t,n,i){fu(1==i?_i:mi,1,fi)}),ne(),ie(),tt.assign(m,{type:1,fireEvent:k,fire:function(e,t,n){k(e,ot(),t,null,null,n)},setState:function(e,t,n){ze(e,ot(),t,n)},canSetState:$e,reset:function(){$e(7)&&ze(7,ot()),ne(),ie(),f=[],v=0,Oe=ku},setData:function(e){_(e),ee()},setAdData:function(e){y(e),ee()},getData:S,getAdData:te,getState:function(){return v},isIdle:Ye,isAdIdle:function(){return 13==v||14==v||15==v},isInAds:De,isInSsaiAds:Re,onTimer:function(e){Ke=e},matchCtSource:function(e){return S(Ra)==e},reqCtSID:function(){return Ye()?Z:S(Kr)},reqTracer:function(e,a){e=Lt(e,function(e){e["delete"]("CMCD")});var t,n=m.reqCtSID(),i=ut(),r=((a=tt.assign({},a||{},{sid:n}))[fs+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(t=S(Ia))&&(a.cid=t),{url:e,sid:n,rid:i,cmcd:a,start:ot()});return{reqID:i,urlBase:e,url:function(){var t=ms(a);return Lt(e,function(e){e.append("CMCD",t[0].concat(t[1],t[2],t[3]).sort().join())})},headers:function(){for(var e={},t=ms(a),n=0;n<4;n++)t[n].length&&(e[es[n]]=t[n].sort().join());return e},enabledData:function(){for(var e,t,n=tt.keys(a),i={},r=0;r<n.length;r++)e=n[r],(t=ds[e])&&t[3]&&(i[e]=a[e]);return i},status:function(e){r.status=e},start:function(){r.start=ot()},resp:function(e){r.resp=null!=e?r.start+e:ot(),yt&&bt("reqInfo",r)},end:function(e){var t=ot(),n=(r.end=null!=e?r.start+e:t,tt.assign({},ps,a)),i=[];tt.keys(n).forEach(function(e){var t=ds[e];t&&t[2]&&i.push([t[2],n[e]])}),k(Cn,t,i,null,null,1),yt&&bt("reqInfo",r)}}},updateTimedMetadata:function(e,t,n,i,r){for(var a=0;a<X.length;a++)try{X[a](e,t,n,i,r)}catch(e){at(e,"extTimedMetadataHandler")}},addCtTimeSpans:function(e){var u=A?A.filter(function(e){return e.type}):[];e.forEach(function(e){for(var t,n,i,r,a=e.start,o=e.end,s=0;s<u.length&&(i=(n=u[s]).start,r=n.end,!(o<=i));s++)a<r&&(i<a?(u.splice(s+1,0,tt.assign({},n,{start:a})),n.end=a):(t||(u.splice(s++,0,e),t=!0),o<r?n.start=o:u.splice(s--,1)));t||u.splice(s,0,e)}),A=Xe(u),T=O=_e=null},initCastTransfer:function(e){Ye()||Je(e,!1)},handleCastMessage:function(e,t){!e||e.type!==St||Ye()||(m.setData([[$r,e.appSID],[Yr,e.ctSID]]),e.ack)||Je(t,!0)},sa:{}}),s&&_([[ra,s[1]]]),Ks&Hs&&_s((e=gt.options).cmcdEnable?e.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new ht(function(t,n){try{j(x,m,u).then(function(e){i=Qe(e),t(i)},function(e){It(e),n(e)})}catch(e){n(at(e,s[0]+" createTargetObject"))}}):ht.reject("Not implemented"):i=Qe(U)}),wu=function(e,o){var s=new(e||P);return o=o||k,s.dispatch=function(e,t,n){var i,r,a;n=n||{},t&&((a=t.media)&&tt.assign(s,a),a=t.ima)&&((t=a.adsManager)&&tt.assign(s,t),n.getAdData=function(){return{currentTime:s.currentTime}},(i=a.ad)&&(n.getAd=function(){return{getAdId:function(){return i.adId},getAdSystem:function(){return i.adSystem},getAdvertiserName:function(){return i.advertiserName},getCreativeId:function(){return i.creativeId},getDealId:function(){return i.dealId},getDuration:function(){return i.duration},getSkipTimeOffset:function(){return i.skipTimeOffset},getVastMediaBitrate:function(){return i.vastMediaBitrate},getVastMediaWidth:function(){return i.vastMediaWidth},getVastMediaHeight:function(){return i.vastMediaHeight},getWrapperAdIds:function(){return i.wrapperAdIds},getWrapperAdSystems:function(){return i.wrapperAdSystems},getWrapperCreativeIds:function(){return i.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return i.adPodIndex},getTimeOffset:function(){return i.adTimeOffset}}},h:{clickThroughUrl:i.clickThroughUrl}}}),r=a.error)&&(n.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),e&&(t=new o(e),tt.assign(t,n),s.dispatchEvent(t))},s.getBoundingClientRect=function(){return s.boundingClientRect||{left:0,right:0,top:0,bottom:0}},s.getVolume=function(){return s.volume},s},Uu=[],xu="REQUEST_COMPLETE",Vu="SLOT_STARTED",Fu="SLOT_ENDED",Wu="AD_INITIATED",ju="AD_BUFFERING_START",Bu="AD_BUFFERING_END",Hu="AD_PAUSE",Gu="AD_RESUME",zu="AD_IMPRESSION",$u="AD_IMPRESSION_END",Yu="AD_COMPLETE",qu="AD_SKIPPED",Ku="AD_CLICK",Xu=(Uu.push(function(e,i,t,n){var r,a,o=i.setState,s=i.setAdData,u=i.fire,c={},l={on:{}};function d(){r&&(i.removeListeners(r),c={},r=a=null)}l.$update=l.update=function(e,t){var n;i.isInAds()&&(t&&s([[Eo,m(t,"getTimePosition")]]),a&&(s([[dt,m(a,"getPlayheadTime")],[po,m(a,"getDuration")],[fo,m(a,"getAdId")],[lo,a._creativeId],[So,m(a,"getDealId")],[Io,m(a,"getSkipOffset")]]),t=m(a,"getActiveCreativeRendition"))&&(n=m(t,"getHeight"),s([[Li,m(t,"getWidth")],[Ni,n],[Pi,n?n+"p":null]])),e)&&(t=m(e,"getAdVolume"),i.setData([[ar,100*t],[ia,0==t]]))},l.on[xu]=function(e,t){t.success?u(Mn,null,2):u(In,null,2)},l.on[Vu]=function(e,t){a=null,o(16),l.update(e,t.slot)},l.on[Fu]=function(){o(17),a=null},l.on[Wu]=function(){s([[Oi,1]]),u(bn,null,2)},l.on[ju]=function(){o(9)},l.on[Bu]=l.on[Gu]=function(){o(10,null,a)},l.on[zu]=function(){o(10,null,a),u(dn,null,2)},l.on[Hu]=function(){o(11)},l.on[Yu]=function(){o(13),a=null},l.on[qu]=function(){o(14),a=null},l.on[$u]=function(){a=null},l.on[Ku]=function(){u(ln)},l.on["ERROR"]=function(e,t){o(15,[[Lr,t.errorCode],[wr,t.errorInfo]]),a=null},l.on["AD"]=function(e,t){a=t.adInstance,l.update(e);var n=c[t.subType];n&&n(e,t)},l.$on=st(l.on),i.sa.fwContext=l,t.push(function(){r&&l.update(r)}),n.push(d),Rt({attachFwContext:function(e){var t;!i.shallBlock("attachFwContext",null,e)&&e!=r&&(d(),r=e)&&(t=E(Ze.tv,["freewheel","SDK"]),[xu,Vu,Fu,"AD"].forEach(function(n){var e=t&&t["EVENT_"+n];e&&i.addListener(r,e,function(e){var t=l.on[n];t&&t(r,e)})}),[Wu,ju,Bu,Hu,Gu,zu,$u,Yu,qu,Ku,"ERROR"].forEach(function(i){var e=t&&t["EVENT_"+i];e&&(c[e]=function(e,t){var n=l.on[i];n&&n(e,t)})}))},detachFwContext:d},[e,i])}),"play"),Ju="waiting",Qu="playing",Zu="pause",ec="seeking",tc="seeked",nc="ended",ic="durationchange",rc="ratechange",ac="timeupdate",oc=(Uu.push(function(e,a,t,n){var r,o,s,u,i=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function p(){o&&d(o),r&&d(r),r=o=null}function f(){if(r){for(var e,t,n,i=0;i<r.length;i++)"metadata"===(n=r[i]).kind?t=t||n:"showing"===n.mode&&(e=e||n);s||c([[la,!!e],[ai,e?e.label||e.language:null]]),o!=t&&(o&&d(o),o=t)&&l(o,"cuechange",function(){var e=o.activeCues;if(e)for(var t,n,i=0;i<e.length;i++)(n=(t=e[i]).value)&&a.updateTimedMetadata("ID3",t.startTime,t.endTime,n.key,n.data)})}}n.push(p);var m={on:{}};function _(){u&&d(u),u=null}m.$update=m.update=function(e,t){t&&(c([[Ta,e.duration],[Zr,e.muted],[ea,e.playbackRate]]),f()),a.isInAds()||c([[dt,e.currentTime],[Oi,e.playbackRate],[Da,e.offsetWidth],[Ma,e.offsetHeight],[Mi,e],[ni,e.buffered],[na,e.loop],[ia,e.muted],[ar,100*e.volume],[sa,e.readyState]])},m.on[Xu]=function(e){a.isIdle()&&(a.reset(),m.update(e,!0),i(1),i(2))},m.on[Ju]=function(e){m.update(e),i(2)},m.on[Qu]=function(e){m.update(e),a.isAdIdle()&&i(17),i(3)},m.on[Zu]=function(e){m.update(e),i(4)},m.on[ec]=function(e){m.update(e),i(5)},m.on[tc]=function(e){m.update(e),i(e.paused?4:3)},m.on[nc]=function(e){m.update(e),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(e){var t,n=e.error;n&&(t=[[Lr,n.code],[wr,n.message]]),m.update(e),i(8,t)},m.on[ic]=function(e){c([[Ta,e.duration]])},m.on[rc]=function(e){c([[Oi,e.playbackRate]])},m.on[ac]=function(e){m.update(e)},m.$on=st(m.on),a.sa.mediaElement=m,t.push(function(){u&&m.update(u)}),n.push(_),Rt({attachMediaElement:function(e){_(),(u=e)&&[[Xu,(e=[[nc,Zu,ec,Xu,Ju,tc,Qu]])[0]],[Ju,e[0]],[Qu,e[0]],[Zu,e[0]],[ec,e[0]],[tc,e[0]],[nc,e[0]],["error"],[ic],[rc],[ac]].forEach(function(i){var r=i[0];l(u,r,function(e){var t,n=m.on[r];n&&((t=i[1])?(a.stash(r,n,[u,e]),W(function(){a.unstash(t)},0)):n(u,e))})})},detachMediaElement:_,attachTextTracks:function(e,t){p(),s=t,(r=e)&&["change","addtrack","removetrack"].forEach(function(e){l(r,e,f)})},detachTextTracks:p},[a])}),"CLICK"),sc="STARTED",uc="AD_PROGRESS",cc="AD_BUFFERING",lc="IMPRESSION",dc="PAUSED",pc="RESUMED",fc="COMPLETE",mc="LOADED",_c="ALL_ADS_COMPLETED",hc="SKIPPED",vc="VOLUME_CHANGED",Ec="AD_ERROR",gc={CLICK:"click",STARTED:"start",AD_PROGRESS:"adProgress",AD_BUFFERING:"adBuffering",IMPRESSION:"impression",PAUSED:"pause",RESUMED:"resume",COMPLETE:"complete",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",VOLUME_CHANGED:"volumeChange",AD_ERROR:"adError"},yc=(Uu.push(function(e,a,t,n){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(e){var t,e=e.getError();return e&&(t=[[Lr,e.getErrorCode()],[wr,e.getMessage()]],e=e.getInnerError())&&t.push([Ur,""+e]),t}var d,p,f={on:{}};function m(){o&&c(o),o=null}function _(e){var t=e.getAdPodInfo(),n=e.getVastMediaHeight(),n=[[fo,e.getAdId(),!0],[vo,e.getAdSystem(),!0],[yo,e.getAdvertiserName(),!0],[lo,e.getCreativeId(),!0],[So,e.getDealId(),!0],[po,e.getDuration(),!0],[Io,e.getSkipTimeOffset(),!0],[ki,e.getVastMediaBitrate(),!0],[Li,e.getVastMediaWidth(),!0],[Ni,n,!0],[Pi,n?n+"p":null,!0],[To,e.getWrapperAdIds(),!0],[Oo,e.getWrapperAdSystems(),!0],[Ao,e.getWrapperCreativeIds(),!0],[co,E(e,[/[a-z]/,"clickThroughUrl"]),!0]];return t&&n.push([Eo,t.getTimeOffset(),!0]),n}f.$update=f.update=function(e,t){a.isInAds()&&(t&&r(_(t)),e)&&(t=e.getVolume(),a.setData([[ar,100*t],[ia,0==t]]))},f.on[oc]=function(e){f.update(e),s(ln)},f.on[sc]=function(e,t){t=t.getAd();a.isInAds()||i(16),r([[Oi,1]]),f.update(e,t),i(10,null,t)},f.on[uc]=function(e,t){t=E(t.getAdData(),["currentTime"]);null!=t&&(f.update(e),9==a.getState()&&(null==d?d=t:d!=t&&i(10)),r([[dt,t]]))},f.on[cc]=function(e){f.update(e),i(9),d=null},f.on[lc]=function(e){f.update(e),s(dn,null,2)},f.on[dc]=function(e){f.update(e),i(11)},f.on[pc]=function(e){f.update(e),i(10)},f.on[fc]=function(e){f.update(e),i(13)},f.on[mc]=function(e,t){t=t.getAd();s(bn,t&&_(t),2)},f.on[_c]=function(){i(17),m()},f.on[hc]=function(e){f.update(e),i(14)},f.on[vc]=function(e){f.update(e)},f.on[Ec]=function(e,t){f.update(e),a.canSetState(15)?i(15,l(t)):s(In,l(t),2)},f.$on=st(f.on),a.sa.imaAdsManager=f,t.push(function(){o&&f.update(o)}),n.push(m);var h={on:{}};function v(){p&&c(p),p=null}h.on[Ec]=function(e,t){s(In,l(t),2)},h.$on=st(h.on),a.sa.imaAdsLoader=h,n.push(v),Rt({attachImaAdsManager:function(e){var t,n;!a.shallBlock("attachImaAdsManager",null,e)&&e!=o&&(m(),o=e)&&(e=E(Ze.google,["ima"]),t=E(e,["AdEvent","Type"],gc),[[oc],[sc,null,(n=[[sc,lc]])[0]],[uc],[cc],[lc,null,n[0]],[dc],[pc],[fc],[mc],[_c],[hc],[vc],[Ec,E(e,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],e=(i[1]||t)[r];e&&u(o,e,function(e){var t,n=f.on[r];n&&((t=i[2])?(a.stash(r,n,[o,e]),W(function(){a.unstash(t)},0)):n(o,e))})}),s(Mn,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(e){a.shallBlock("attachImaAdsLoader",null,e)||e==p||(v(),(p=e)&&(e=E(Ze.google,["ima","AdErrorEvent","Type"],gc)[Ec])&&u(p,e,function(e){var t=h.on[Ec];t&&t(p,e)}))},detachImaAdsLoader:v},[e,a])}),Uu.push(function(t,r,e,n,i,a,o){var s,u,c,l=r.addListener;function d(){s&&r.removeListeners(s),s=u=c=null}function p(e){for(var t;(t=u[0])&&t.t<=e;)u.shift(),delete t.t,s.onTimedMetadata(t)}n.push(d),a.push(function(e){s&&p(c=e[1])}),o.push(function(e,t,n,i,r){var a;s&&i&&r&&Bt(a="ID3"===e?r:a)&&((e={t:t})[i]=a,u.push(e),null!=c)&&p(c)}),Rt({attachImaDaiStreamManager:function(e){r.shallBlock("attachImaDaiStreamManager",null,e)||e==s||(d(),(s=e)&&(e=E(Ze.google,["ima","dai","api","StreamEvent","Type"]),u=[],e)&&(l(s,e.CUEPOINTS_CHANGED,function(e){r.isIdle()&&(e=E(e.getStreamData(),["cuepoints"]))&&e.length&&t.annotateContentSession(e.map(function(e){return{type:Ko,start:e.start,end:e.end}}))}),l(s,e.STARTED,function(e){var t,n,i,e=e.getAd();e&&(t=c||0,n=e.getAdPodInfo(),i=e.getVastMediaHeight(),r.addCtTimeSpans([{type:Ko,start:t,end:t+(e.getDuration()||0),_d:[[fo,e.getAdId()],[vo,e.getAdSystem()],[yo,e.getAdvertiserName()],[lo,e.getCreativeId()],[So,e.getDealId()],[Io,e.getSkipTimeOffset()],[Li,e.getVastMediaWidth()],[Ni,i],[Pi,i?i+"p":null],[To,e.getWrapperAdIds()],[Oo,e.getWrapperAdSystems()],[Ao,e.getWrapperCreativeIds()],[Eo,n?n.getTimeOffset():null]],_a:e}]))})))},detachImaDaiStreamManager:d},[t,r])}),gt.mediatailor=((fn=g.mediatailor)&&(fn.clientInfo+=" DZSDK "+et.cn+" v"+et.sv),fn),Uu.push(function(e,s,t,n,i,r,a,o){var u,c,l,d,p;function f(e,t,n){if(e&&1===e.playCount)for(var i=o.length,r=0;r<i;r++)o[r](t,n)}function m(){u&&c&&u.removeAdObserver(c),u=c=null,l=d=p=null}n.push(m),i.push(function(e,t,n,i){var r=l&&l[n.nm];return r&&r(e,t,n,i)}),r.push(function(e){u&&!s.isIdle()&&(d=e[1],p=s.getData(Di),de<ce||We("MT onPlayheadUpdate: "+d+", "+p),u.onPlayheadUpdate(d,p||null))}),Rt({attachMediaTailorSession:function(e,t){var o,n,i,r,a;t=t||gt.mediatailor,!s.shallBlock("attachMediaTailorSession",null,e)&&t&&e!=u&&(m(),n=function(){var e=s.getData(ar);Ht(e)&&f(o,14,e)},i=t.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(e){return function(){f(o,e)}})(3),r[i.LOADED]=a(1),r[i.START]=a(2),r[i.FIRST_QUARTILE]=a(4),r[i.MID_POINT]=a(5),r[i.THIRD_QUARTILE]=a(6),r[i.COMPLETE]=a(7),r[i.PAUSE]=a(8),r[i.RESUME]=a(9),r[i.FULLSCREEN]=a(15),r[i.EXIT_FULLSCREEN]=a(16),r[i.MUTE]=function(){f(o,14,0)},r[i.UNMUTE]=n,r[i.CLICK_THROUGH]=function(){s.fire(ln),f(o,13)},r[i.SKIP]=function(){s.fire(pn),f(o,12)},u=e)&&(a=t.PlaybackEvent,l={},[[a.START,kn,1],[a.END,$n,I],[a.PAUSE,Nn,I],[a.RESUME,jn,I],[a.MUTE,Rn,I],[a.UNMUTE,qn,I],[a.FULLSCREEN,Tn,I],[a.EXIT_FULLSCREEN,An,I]].forEach(function(r){l[r[1].nm]=function(e,t,n,i){r[2]&i&&u.onPlaybackEvent(r[0])}}),l[Kn.nm]=n,l[_n.nm]=function(){f(o,10)},l[hn.nm]=function(){f(o,11)},c={onNewAd:function(e){var t;s.addCtTimeSpans([(t=(t=(e=e).startDate)&&p?t-p+d:e.start,{type:Ko,start:t,end:t+e.duration,_a:e,_d:[[fo,e.vastAdId],[vo,e.adSystem],[lo,e.creativeId],[Io,e.skipOffset],[Eo,e.availStart],[co,e.videoClickThrough]]})])},onAdLoad:function(e){var t,n,i,r,a;1===(o=e).playCount&&(t=e.adVerifications)&&(n={},i=[],r=s.getData(ar),a=e.skipOffset,Ht(r)&&(n["v"]=r),n["d"]=e.duration,n["ap"]=!!s.getData(Xr),n["po"]=0===e.availStart?0:1,n["sk"]=0<=a,n["so"]=n["sk"]?a:null,n["vf"]=i,t.forEach(function(e){var t=E(e.javaScriptResource,[0,"uri"]),n=e.vendor;t&&n&&i.push({url:t,vd:n,p:e.verificationParameters||""})}),f(e,0,n))},onAdEnd:function(e){f(e,17),o=null},onAdTrackingEvent:function(e,t){t=r[t];t&&t()}},u.addAdObserver(c))},detachMediaTailorSession:m},[e])}),Uu.push(function(s,u,e,t,n,i,r){var p,c,l,a,d,f,m,_,h,v=["YMID","YSEQ","YTYP","YDUR"];function E(){p&&c&&p.removeAnalyticObserver(c),p=c=null,l=a=d=m=null}function o(e){for(var t;(t=l[0])&&t.t<=e;)l.shift(),p.onTimedMetadata(h.createFromMetadata(t.YMID,t.YSEQ,t.YTYP,t.YDUR,1e3*t.t))}function g(e,t,n){(a=a&&a.t===e?a:{t:e})[t]=n||"",tt.keys(a).length===v.length+1&&(l.push(a),(a=null)!=m)&&o(m)}t.push(E),n.push(function(e,t,n,i){var r=d&&d[n.nm];return r&&r(e,t,n,i)}),i.push(function(e){p&&!u.isIdle()&&(m=e[1],f===_.VOD||f===_.DVRLIVE?p.onPlayheadUpdate(nt.round(1e3*m)):o(m))});var y=T.fromCharCode;function S(e,t,n){for(var i,r=[];t<n;)31<(i=e[t++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(e,t,n,i,r){var a;if(p&&r&&f===_.LIVE)if("ID3"===e||"org.id3"===e)v.includes(i)&&(r instanceof M&&(r=new C(r))||r instanceof C?3===r[0]&&(a=S(r,1,r.length)):a=r,Bt(a))&&g(t,i,a);else if("urn:yospace:a:id3:2016"===e){if(r instanceof C)for(var o,s=S(r,0,r.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),v.includes(o[0])&&g(t,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===e&&r instanceof C){var c=r.length;if(9<c&&73===r[0]&&68===r[1]&&51===r[2]&&(r[3]<<8|r[4])<=1024&&!(192&r[5])){u=6;for(var l=0,d=10;u<d;)l=l<<7|127&r[u++];for(c=nt.min(c,l+10);u+9<c;){for(i="",d=u+4;u<d;)i+=y(r[u++]);for(l=0,d=u+4;u<d;)l=l<<7|127&r[u++];d=(u+=2)+l,v.includes(i)&&d<=c&&g(t,i,S(r,u,d)),u=d}}}}),Rt({attachYospaceSession:function(e){var t,a,o,n,i,r=Ze.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,e)&&r&&e!=p&&(E(),p=e)&&(t=r.PlayerEvent,e=r.BreakType,_=r.PlaybackMode,h=r.TimedMetadata,f=p.getPlaybackMode(),l=[],d={},[[t.START,kn,1],[t.STOP,$n,I],[t.PAUSE,Nn,I],[t.RESUME,jn,I],[t.STALL,Gn,I],[t.CONTINUE,zn,I]].forEach(function(r){d[r[1].nm]=function(e,t,n,i){r[2]&i&&p.onPlayerEvent(r[0],0)}}),d[Hn.nm]=function(){p.onPlayerEvent(t.SEEK,1e3*(m||0))},d[Rn.nm]=function(){p.onVolumeChange(!0)},d[qn.nm]=function(){p.onVolumeChange(!1)},a=function(e,t){e=e.getProperty(t);return e&&e.getValue()},o=function(e,t,n,i){e&&(t.push(e.getIdentifier()),n.push(e.getAdSystem()),i.push(e.getCreativeIdentifier()),o(e.getLineage(),t,n,i))},n=function(e){var t=e.getSkipOffset(),n=[],i=[],r=[],t=(o(e.getLineage(),n,i,r),[[fo,e.getIdentifier()],[vo,a(e,"AdSystem")],[yo,a(e,"Advertiser")],[Io,0<t?t/1e3:t],[To,n],[Oo,i],[Ao,r]]),n=e.getLinearCreative(),i=(n&&t.push([lo,n.getCreativeIdentifier()],[co,n.getClickThroughUrl()]),e.getStart()/1e3);return{type:Ko,start:i,end:i+e.getDuration()/1e3,_d:t,_a:e}},c={onAdvertBreakStart:function(e){},onAdvertBreakEnd:function(){},onAdvertStart:function(e){u.addCtTimeSpans([n(e)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(e){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(e){}},p.addAnalyticObserver(c),f===_.VOD)&&(i=[],(r=p.getAdBreaksByType(e.LINEAR))&&r.forEach(function(e){e=e.adverts;e&&e.forEach(function(e){i.push(n(e))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:E},[s])}),Uu.push(function(e,i,t,n,r,a,o,s){var u,m,_,c;function h(){c&&c(17),m=_=c=null,u=!1}n.push(h),s.push(function(e,t){u&&(0===e?(c&&c(17),c=!1===et.om?null:_(t)):c&&(c(e,t),17===e)&&(c=null))}),Rt({startOmidSessionClient:function(e){var c,l,d,p,f=g.OmidSessionClient,t=jt.omidPartnerName,n=jt.omidPartnerVersion;i.shallBlock("startOmidSessionClient",null,e=e||{})||(c=e.omidServiceWindow||Ze.self,l=e.videoElement,d=e.contentURL||L.href,p=e.accessModeHandler,f&&t&&n&&l?(h(),m=new f.Partner(t,n),_=function(t){var n,i,r,a,o,s,e=t["vf"],e=e&&e.map(function(e){var t=e["url"],n=e["vd"],e=e["p"]||"";return new f.VerificationScriptResource(t,n,e,p&&p(t,n,e)||"full")});return e&&e.length?((e=new f.Context(m,e,d)).setServiceWindow(c),"VIDEO"===l.tagName?e.setVideoElement(l):e.setVideoElement(l.getElementsByTagName("video")[0]||l),n=new f.AdSession(e),i=!1,r=[],n.setCreativeType("video"),n.setImpressionType("beginToRender"),n.isSupported()?(s=[,function(){a.loaded(new f.VastProperties(t["sk"],t["so"],t["ap"],t["po"]))},function(){o.start(t["d"],t["v"]/100)},function(){a.impressionOccurred()},function(){o.firstQuartile()},function(){o.midpoint()},function(){o.thirdQuartile()},function(){o.complete()},function(){o.pause()},function(){o.resume()},function(){o.bufferStart()},function(){o.bufferFinish()},function(){o.skipped()},function(){o.adUserInteraction("click")},function(e){t["v"]=e,o.volumeChange(e/100)},function(){o.playerStateChange("fullscreen")},function(){o.playerStateChange("normal")},function(){n.finish()}],n.registerSessionObserver(function(e){switch(e.type){case"sessionStart":var t;for(a=new f.AdEvents(n),o=new f.MediaEvents(n),i=!0;t=r.shift();)u(t[0],t[1]);break;case"sessionError":rt("OMID ad session error")}}),n.start(),u):(rt("OMID ad session unsupported"),null)):null;function u(e,t){var n;i?(n=s[e])&&n(t):r.push([e,t])}},u=!0):It("Missing OM SDK library or parameters"))},stopOmidSessionClient:h},[e])}),gt.omidPartnerName=jt.omidPartnerName,gt.omidPartnerVersion=jt.omidPartnerVersion,"unsupportedDataList"),Sc="maxCtPlayheadInterval",Ic="maxAdPlayheadInterval",Ac={};function Tc(){if(!Nu){var e=Js[2];if(it(e))try{e()}catch(e){at(e,"onPageUnload")}tt.keys(ft).forEach(function(e){ft[e].publicContext.destroy()}),Zs(!0),Nu=!0}}ti=[Pn="jw","JW Player",ti=function(l,d){var p,i={"hlsjs":"HLS","html5":"MP4","shaka":Jo,"flash_video":Qo,"flash_adaptive":Qo,"flash_sound":Qo};if(!l)return"Invalid player";function e(e,t){d.addListener(l,e,t,"on","off")}function t(e,t){d.addListener(l,e,t,"on","off")}function n(){var e=E(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();return e&&e.getCurrentSession()}function r(e){var t=n();return t&&t.sendMessage(ie,e)}function a(e){var t,n,i,r,a,o,s,u,c=l.getConfig();e&&(e=[],(t=l.getPlaylistItem())&&(n=t.file,i=t.title,r=t.description,a=t.tags),a=a||c.tags,n&&e.push([Ra,n]),null!=i&&e.push([Na,i]),null!=r&&e.push([Aa,r]),a&&e.push([ba,a]),d.setData(e)),d.isIdle()||(t=l.getCurrentTime(),n=l.getDuration(),i=l.getVisualQuality(),r=E(c,["streamType"],"").toUpperCase(),a=l.getCurrentAudioTrack(),o=0<(e=l.getCurrentCaptions()),s=E(i,["level","height"]),u=E(i,["level","bitrate"])/1e3,null!=p&&d.setData([[Di,t+p]]),d.setData([[dt,t],[Ta,n||0],[na,E(c,["repeat"])],[ki,u],[Li,E(i,["level","width"])],[Ni,s],[Pi,s?s+"p":null],[Oi,l.getPlaybackRate()],[ri,0<=a?E(m(l,"getAudioTracks"),[a,"name"]):null],[ai,o?l.getCaptionsList()[e].label:null],[la,o]]),c.streamType&&d.setData([[ca,"VOD"==r?"VOD":"Live"]]),it(l.getViewable)&&d.setData([[Ci,1===l.getViewable()]]),it(l.getPercentViewable)&&d.setData([[Mi,100*l.getPercentViewable()]]))}function o(){d.setAdData([[ri,null]]),it(l.getViewable)&&d.setData([[Ci,1===l.getViewable()]]),it(l.getPercentViewable)&&d.setData([[Mi,100*l.getPercentViewable()]])}d.setData([[aa,l.version]]),e("playlistItem",function(){d.isIdle()||d.reset()}),e("cast",function(e){e=e.active;d.setData([[Jr,e]]),e&&(d.removeListeners(null,ie),d.addListener(n(),ie,function(e,t){d.handleCastMessage(lt(t),r)},"addMessageListener","removeMessageListener"),d.initCastTransfer(r))}),e("meta",function(t){var e,n,i=t.metadataType,r=t.metadata;r&&("program-date-time"===i?(e=r.start,n=(n=r.programDateTime)&&new A(n).getTime(),null!=e&&n&&(p=n/1e3-e)):"id3"===i?tt.keys(r).forEach(function(e){d.updateTimedMetadata("ID3",t.metadataTime,null,e,r[e])}):"emsg"===i&&d.updateTimedMetadata(r.schemeIdUri,r.start,r.end,null,r.messageData))}),e("beforePlay",function(){var e=l.getConfig(),t=l.getProvider(),n=E(e,["autostart"]);null!=l.getPlaylist()&&!n&&1<=l.getPlaylist().length&&(n=0!=l.getPlaylistIndex()),d.isIdle()&&(d.reset(),d.setData([[Zr,l.getMute()],[ua,i[E(t,["name"])]],[oa,E(e,["setupConfig","preload"])],[Ia,E(e,["playlistItem","mediaid"],"")],[ea,E(e,["defaultPlaybackRate"])],[Xr,n]]),a(!(p=null)),d.setState(1))}),e("buffer",function(){a(!0),d.setState(2)}),e("time",function(){a()}),e("idle",function(e){l.getConfig().castActive&&(a(),d.setState(7))}),e("play",function(){l.getConfig().castActive&&d.isIdle()&&(d.setState(1),d.initCastTransfer(r),d.setState(2)),d.isInAds()||(a(),d.setState(3))}),e("pause",function(){a(),d.setState(4)}),e("seek",function(){a(),d.setState(5)}),e("complete",function(){a(),d.setState(6)}),e("error",function(e){var t=[];e&&(t.push([wr,e.message]),t.push([Lr,e.code])),a(),d.setState(8,t)}),e("levelsChanged",function(){a(),d.fire(Vn)}),e("fullscreen",function(){W(a,200)}),e("mutechange",a),e("volumechange",a),t("adRequest",function(){d.fire(Mn,null,2)}),t("adTime",function(e){var t=E(e,["ima","ad",/[a-z]/,"vastMediaHeight"],null);d.setAdData([[dt,e.position],[po,e.duration],[ki,E(e,["ima","ad",/[a-z]/,"vastMediaBitrate"],null)],[Li,E(e,["ima","ad",/[a-z]/,"vastMediaWidth"],null)],[Ni,t],[Pi,t?t+"p":null]]),o()}),t("adBreakStart",function(){o(),d.setState(16)}),t("adBreakEnd",function(){o(),d.setState(17)}),t("adClick",function(){o(),d.fire(ln)}),t("adLoaded",function(){d.fire(bn,null,2)}),t("adPlay",function(){o(),d.setState(10)}),t("adPause",function(){o(),d.setState(11)}),t("adStarted",function(){d.setAdData([[Oi,1]]),o(),d.setState(10)}),t("adSkipped",function(){o(),d.setState(14)}),t("adImpression",function(e){o(),e&&d.setAdData([[co,e.tag],[lo,E(e,["ima","ad",/[a-z]/,"creativeId"])],[fo,E(e,["ima","ad",/[a-z]/,"adId"])],[mo,e.client],[vo,e.adsystem],[Oo,E(e,["ima","ad",/[a-z]/,"adWrapperSystems"],[])],[Eo,E(e,["ima","ad",/[a-z]/,"adPodInfo","timeOffset"])],[So,E(e,["ima","ad",/[a-z]/,"dealId"])],[Io,E(e,["ima","ad",/[a-z]/,"skipTimeOffset"])],[Ao,E(e,["ima","ad",/[a-z]/,"adWrapperCreativeIds"],[])],[To,E(e,["ima","ad",/[a-z]/,"adWrapperIds"],[])],[yo,e.advertiser]]),d.fire(dn,null,2)}),t("adError",function(e){var t;e&&(t=[[wr,e.message],[Lr,e.adErrorCode],[Ur,E(e,["sourceError","stack"])]]),o(),d.setState(15,t)}),t("adComplete",function(){o(),d.setState(13)}),d.onTimer(function(){var e,t=l.getConfig();t&&(e=t.autostart,t=l.getPlaylist())&&!e&&1<=t.length&&(e=0!=l.getPlaylistIndex()),(d.isInAds()?o:a)(),d.setData([[Da,l.getWidth()],[Ma,l.getHeight()],[ta,l.getFullscreen()],[ia,l.getMute()],[ar,l.getMute()?0:l.getVolume()],[Xr,e],[Qr,l.getControls()]])})},function(e,r){var t,n,i=e[1];function a(t,e){var n,i=r.reqTracer(e);t.addEventListener("readystatechange",function(){var e=this.readyState;1==e?i.start():2==e?(i.status(this.status),i.resp()):4==e&&i.end()}),ls?(n=i.headers(),i.urlBase!=e&&t.open("GET",i.urlBase,!0),tt.keys(n).forEach(function(e){t.setRequestHeader(e,n[e])})):t.open("GET",i.url(),!0)}return cs&&i&&(S.isArray(i.playlist)?(i=st(i)).playlist=i.playlist.map(function(e){return(e=st(e)).sources?e.sources=e.sources.map(function(e){return(e=st(e)).onXhrOpen=a,e}):e.file&&(e.sources=[{file:e.file,onXhrOpen:a}],delete e.file),e}):i.file&&!i.playlist&&((i=st(i)).playlist=[{sources:[{onXhrOpen:a}]}],t=i.playlist[0],["description","image","mediaid","title"].forEach(function(e){i[e]&&(t[e]=i[e],delete i[e])}),n=t.sources[0],["file","type"].forEach(function(e){i[e]&&(n[e]=i[e],delete i[e])}))),ht.resolve(jwplayer(e[0]).setup(i))},Ru],Du=Du||ti,Ac[Pn]=ti;var Oc=!0;function bc(n){if(!Pu){if(!(et.ci||Ut(ee,ne)||n&&n[ne]))return!1;n&&(ee=Lt(ee,function(t){tt.keys(n).forEach(function(e){t.set(e,n[e])})}),fe()),Oc&&(Oc=!1,mu(Sn,ot()));var e=Ut(ee,"env");et.cf="staging"===e||"dev"===e||"sandbox"===e?e:"",et.ci=Ut(ee,ne)||et.ci,et.om=null,v([[cr,et.ci]]),ou(),Pu=!0}return!0}function Cc(e){e()}function Mc(e,t,n){zt(n)||(null!=n&&rt("Invalid contextOptions",n),n={});var i,r,a,o,s=n[vu];return s&&s!==Su[1]?s===Su[yu]?(r=(i=Cu()).publicContext,a=n[gu],i.name=n[Eu],null!=a&&r.setMetadata(a),i.fireEvent(yn,ot()),r):(It(a="Unknown context type: "+s),t?ht.reject(a):(o=a,{getError:function(){return o}})):Lu(e,t,n)}m(Ze,"addEventListener",["pagehide",Tc]),"Safari"==Ls&&m(Ze,"addEventListener",["beforeunload",function(e){W(function(){e.defaultPrevented||e.returnValue||Tc()},0)}]),At("Datazoom SDK "+et.sv+" ("+et.cn+") DDv3"),F(function(){Iu.length?Iu.forEach(Cc):ot()},et.ti),tt.assign(gt,{init:bc,setLogLevel:pe,createContext:function(e,t){return Mc(e,null,t)},createBaseContext:function(e){return(e=zt(e)?st(e):{})[vu]=Su[yu],Mc(null,null,e)},createContextAndTarget:function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);return Mc(null,t,e)},createCollectorProxy:function(e,t,n){return e&&e!==Su[1]?(It("Unsupported context type: "+e),null):wu(t,n)},adapterIDs:function(){return tt.keys(Ac)},contexts:function(){return tt.keys(ft).map(function(e){return ft[e].publicContext})},playerContexts:function(){return tt.keys(ft).filter(function(e){return 1==ft[e].type}).map(function(e){return ft[e].publicContext})},setMetadata:function(e){return!(null!=e&&!zt(e)||(_u(Is=lt(ct(e)),v),_(f,Ee,Is),0))},getMetadata:function(){return lt(ct(Is))},generateEvent:function(e,t,n){n=!n&&tt.keys(ft)[0];n?ft[n].publicContext.generateEvent(e,t):mu({ap:sn,nm:K+e,on:Uo},ot(),null,t)},on:function(e,t){Js[e]=t},appSessionID:function(){return Ts},generateUUID(){return ut()},sdkEvent:{APP_SESSION_START:Xs,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:Ko,PROMO:"promo"},overridableMetadata:jo,name:et.cn,version:et.sv,dictionaryVersion:3}),Dc||W(bc,et.kd)})("object"==typeof globalThis?globalThis:window,{},(s={},function(){function e(t,i){var u=u||{},r=(u.scope={},u.createTemplateTagFirstArg=function(e){return e.raw=e},u.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,e},u.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},u.arrayIterator=function(e){return{next:u.arrayIteratorImpl(e)}},u.makeIterator=function(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if("number"==typeof e.length)return u.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n},u.arrayFromIterable=function(e){return e instanceof Array?e:u.arrayFromIterator(u.makeIterator(e))},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.objectCreate=u.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value),e},u.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof re&&re];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$",u.polyfill=function(e,t,n,i){t&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(e,t,n,i):u.polyfillUnisolated(e,t,n,i))},u.polyfillUnisolated=function(e,t,n,i){for(n=u.global,e=e.split("."),i=0;i<e.length-1;i++){var r=e[i];if(!(r in n))return;n=n[r]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&u.defineProperty(n,e,{configurable:!0,writable:!0,value:t})},u.polyfillIsolated=function(e,t,n,i){var r=e.split(".");e=1===r.length,i=r[0],i=!e&&i in u.polyfills?u.polyfills:u.global;for(var a=0;a<r.length-1;a++){var o=r[a];if(!(o in i))return;i=i[o]}r=r[r.length-1],null!=(t=t(n=u.IS_SYMBOL_NATIVE&&"es6"===n?i[r]:null))&&(e?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:t}):t!==n&&(void 0===u.propertyToPolyfillSymbol[r]&&(n=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+n+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:t})))},u.getConstructImplementation=function(){var i;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(e,[],function(){}),new e instanceof e?Reflect.construct:(i=Reflect.construct,function(e,t,n){return e=i(e,t),n&&Reflect.setPrototypeOf(e,n.prototype),e})):function(e,t,n){return n=u.objectCreate((n=void 0===n?e:n).prototype||Object.prototype),Function.prototype.apply.call(e,n,t)||n};function e(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var e={};try{return e.__proto__={a:!0},e.a}catch(e){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null,u.inherits=function(e,t){if(e.prototype=u.objectCreate(t.prototype),e.prototype.constructor=e,u.setPrototypeOf){var n=u.setPrototypeOf;n(e,t)}else for(n in t){var i;"prototype"!=n&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(t,n))&&Object.defineProperty(e,n,i):e[n]=t[n])}e.superClass_=t.prototype},u.getRestArguments=function(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t},u.polyfill("Reflect",function(e){return e||{}},"es6","es3"),u.polyfill("Reflect.construct",function(e){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(e){var n;return e||(u.setPrototypeOf?(n=u.setPrototypeOf,function(e,t){try{return n(e,t),!0}catch(e){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(e){var t,n,i,r;return e||((t=function(e,t){this.$jscomp$symbol$id_=e,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})}).prototype.toString=function(){return this.$jscomp$symbol$id_},n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new t(n+(e||"")+"_"+i++,e)})},"es6","es3"),u.polyfill("Symbol.iterator",function(e){if(!e){e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var i=u.global[t[n]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&u.defineProperty(i.prototype,e,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return e},"es6","es3"),u.iteratorPrototype=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e},u.iteratorFromArray=function(t,n){t instanceof String&&(t+="");var i=0,r=!1,e={next:function(){var e;return!r&&i<t.length?(e=i++,{value:n(e,t[e]),done:!1}):{done:r=!0,value:void 0}}};return e[Symbol.iterator]=function(){return e},e},u.polyfill("Array.prototype.keys",function(e){return e||function(){return u.iteratorFromArray(this,function(e){return e})}},"es6","es3"),u.owns=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.polyfill("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)u.owns(e,t)&&n.push(e[t]);return n}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(e,t,n){return e==i&&"q"==t&&n==r}}));return!0===r.q}catch(e){return!1}},u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,u.ES6_CONFORMANCE=u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&u.checkEs6ConformanceViaProxy(),u.polyfill("WeakMap",function(i){function n(){}function r(e){var t=typeof e;return"object"==t&&null!==e||"function"==t}function a(e){var t;u.owns(e,o)||(t=new n,u.defineProperty(e,o,{value:t}))}function e(e){var t;u.ISOLATE_POLYFILLS||(t=Object[e])&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&a(e),t(e))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if((()=>{if(i&&Object.seal)try{var e=Object.seal({}),t=Object.seal({}),n=new i([[e,2],[t,3]]);return 2==n.get(e)&&3==n.get(t)?(n.delete(e),n.set(t,4),!n.has(e)&&4==n.get(t)):void 0}catch(e){}})())return i;function t(e){if(this.id_=(s+=Math.random()+1).toString(),e){e=u.makeIterator(e);for(var t;!(t=e.next()).done;)this.set((t=t.value)[0],t[1])}}var o="$jscomp_hidden_"+Math.random(),s=(e("freeze"),e("preventExtensions"),e("seal"),0);return t.prototype.set=function(e,t){if(!r(e))throw Error("Invalid WeakMap key");if(a(e),u.owns(e,o))return e[o][this.id_]=t,this;throw Error("WeakMap key fail: "+e)},t.prototype.get=function(e){return r(e)&&u.owns(e,o)?e[o][this.id_]:void 0},t.prototype.has=function(e){return r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_)},t.prototype.delete=function(e){return!!(r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_))&&delete e[o][this.id_]},t},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(r){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if((()=>{if(!u.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var e,t,n=Object.seal({x:4}),i=new r(u.makeIterator([[n,"s"]]));return"s"!=i.get(n)||1!=i.size||i.get({x:4})||i.set({x:4},"t")!=i||2!=i.size?void 0:(t=(e=i.entries()).next()).done||t.value[0]!=n||"s"!=t.value[1]?void 0:!((t=e.next()).done||4!=t.value[0].x||"t"!=t.value[1]||!e.next().done)}catch(e){}})())return r;function e(e){if(this.data_={},this.head_=n(),this.size=0,e){e=u.makeIterator(e);for(var t;!(t=e.next()).done;)this.set((t=t.value)[0],t[1])}}var a=new WeakMap,i=(e.prototype.set=function(e,t){var n=i(this,e=0===e?0:e);return n.list||(n.list=this.data_[n.id]=[]),n.entry?n.entry.value=t:(n.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:e,value:t},n.list.push(n.entry),this.head_.previous.next=n.entry,this.head_.previous=n.entry,this.size++),this},e.prototype.delete=function(e){return!(!(e=i(this,e)).entry||!e.list||(e.list.splice(e.index,1),e.list.length||delete this.data_[e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,0))},e.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=n(),this.size=0},e.prototype.has=function(e){return!!i(this,e).entry},e.prototype.get=function(e){return(e=i(this,e).entry)&&e.value},e.prototype.entries=function(){return t(this,function(e){return[e.key,e.value]})},e.prototype.keys=function(){return t(this,function(e){return e.key})},e.prototype.values=function(){return t(this,function(e){return e.value})},e.prototype.forEach=function(e,t){for(var n,i=this.entries();!(n=i.next()).done;)e.call(t,(n=n.value)[1],n[0],this)},e.prototype[Symbol.iterator]=e.prototype.entries,function(e,t){var n=t&&typeof t,i=("object"==n||"function"==n?a.has(t)?n=a.get(t):(n=""+ ++o,a.set(t,n)):n="p_"+t,e.data_[n]);if(i&&u.owns(e.data_,n))for(e=0;e<i.length;e++){var r=i[e];if(t!=t&&r.key!=r.key||t===r.key)return{id:n,list:i,index:e,entry:r}}return{id:n,list:i,index:-1,entry:void 0}}),t=function(e,t){var n=e.head_;return u.iteratorPrototype(function(){if(n){for(;n.head!=e.head_;)n=n.previous;if(n.next!=n.head)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}})},n=function(){var e={};return e.previous=e.next=e.head=e},o=0;return e},"es6","es3"),{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction",STATE_CHANGE:"stateChange"},MediaEventType:{LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},SupportedFeatures:{CONTAINER:"clid",VIDEO:"vlid"},VideoPosition:{PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},VideoPlayerState:{MINIMIZED:"minimized",COLLAPSED:"collapsed",NORMAL:"normal",EXPANDED:"expanded",FULLSCREEN:"fullscreen"},NativeViewKeys:{X:"x",LEFT:"left",Y:"y",TOP:"top",WIDTH:"width",HEIGHT:"height",AD_SESSION_ID:"adSessionId",IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",CLIPS_TO_BOUNDS:"clipsToBounds",CHILD_VIEWS:"childViews",END_X:"endX",END_Y:"endY",OBSTRUCTIONS:"obstructions",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),n="omid_message_guid",a="omid_message_method",o="omid_message_version",s="omid_message_args",c=function(e,t,n,i){this.guid=e,this.method=t,this.version=n,this.args=i},l=(c.isValidSerializedMessage=function(e){return!!e&&void 0!==e[n]&&void 0!==e[a]&&void 0!==e[o]&&"string"==typeof e[n]&&"string"==typeof e[a]&&"string"==typeof e[o]&&(void 0===e[s]||void 0!==e[s])},c.deserialize=function(e){return new c(e[n],e[a],e[o],e[s])},c.prototype.serialize=function(){var e={};return e[n]=this.guid,e[a]=this.method,e[o]=this.version,void 0!==this.args&&(e[s]=this.args),e},function(e){this.to=e,this.communicationType_=r.CommunicationType.NONE});function d(e,t){if(!t)throw Error("Value for "+e+" is undefined, null or blank.");if("string"!=typeof t&&!(t instanceof String))throw Error("Value for "+e+" is not a string.");if(""===t.trim())throw Error("Value for "+e+" is empty string.")}function p(e,t){if(null==t)throw Error("Value for "+e+" is undefined or null")}function f(e,t){if(null==t)throw Error(e+" must not be null or undefined.");if("number"!=typeof t||isNaN(t))throw Error("Value for "+e+" is not a number")}function m(e,t,n,i){if(f(e,t),t<n||i<t)throw Error("Value for "+e+" is outside the range ["+n+","+i+"]")}function U(e,t){return e&&(e[t]||(e[t]={}))}function e(e,t,n){(n=void 0===n?void 0===i?null:i:n)&&((e=e.split(".")).slice(0,e.length-1).reduce(U,n)[e[e.length-1]]=t)}function _(e,t,n,i){i=void 0===i?r.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=t,this.verificationParameters=n,this.accessMode=i}function h(e,t,n,i){n=void 0===n?null:n,i=void 0===i?null:i,p("Context.partner",e),this.partner=e,this.verificationScriptResources=t,this.videoElement=this.slotElement=null,this.contentUrl=n,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null}l.prototype.sendMessage=function(e,t){},l.prototype.handleMessage=function(e,t){this.onMessage&&this.onMessage(e,t)},l.prototype.serialize=function(e){return JSON.stringify(e)},l.prototype.deserialize=function(e){return JSON.parse(e)},l.prototype.isDirectCommunication=function(){return this.communicationType_===r.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},e("OmidSessionClient.Partner",function(e,t){d("Partner.name",e),d("Partner.version",t),this.name=e,this.version=t}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},e("OmidSessionClient.VerificationScriptResource",_),h.prototype.setVideoElement=function(e){p("Context.videoElement",e),this.videoElement=e},h.prototype.setSlotElement=function(e){p("Context.slotElement",e),this.slotElement=e},h.prototype.setServiceWindow=function(e){p("Context.serviceWindow",e),this.serviceWindow=e},e("OmidSessionClient.Context",h);var v={},E=(v.omidGlobal=(()=>{if(void 0!==t&&t)return t;if(void 0!==re&&re)return re;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var e=Function("return this")();if(e)return e;throw Error("Could not determine global object context.")})(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),g={sessionError:"reportError"},x=Object.keys(r.MediaEventType).map(function(e){return r.MediaEventType[e]}),V=["impressionOccurred"],y=function(e){e=void 0===e?v.omidGlobal:e,this.interfaceRoot_=e[E.ROOT]};function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return e=("y"===e?3&t|8:t).toString(16)})}function I(){var e=u.getRestArguments.apply(0,arguments);F(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(e))))},function(){console.error.apply(console,u.arrayFromIterable(e))})}function F(e,t){"undefined"!=typeof jasmine&&jasmine?e():"undefined"!=typeof console&&console&&console.error&&t()}y.prototype.isSupported=function(){return null!=this.interfaceRoot_},y.prototype.sendMessage=function(e,t,n){if("registerSessionObserver"==e&&(n=[t]),t=this.interfaceRoot_,0<=V.indexOf(e=g[e]?g[e]:e)&&(t=t[E.AD_EVENTS]),!(t=(t=0<=x.indexOf(e)?t[E.MEDIA_EVENTS]:t)[e]))throw Error("Unrecognized method name: "+e+".");t.apply(null,u.arrayFromIterable(n))};var A="1.5.0-iab4484",W=3;function T(e){return/\d+\.\d+\.\d+(-.*)?/.test(e)}function O(e,t){e=e.split("-")[0].split("."),t=t.split("-")[0].split(".");for(var n=0;n<W;n++){var i=parseInt(e[n],10),r=parseInt(t[n],10);if(r<i)break;if(i<r)return!1}return!0}var b="1.0.3";function j(e,t){return T(e)&&O(e,b)?t:JSON.stringify(t)}function B(e,t){return T(e)&&O(e,b)?t||[]:t&&"string"==typeof t?JSON.parse(t):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function G(e){return z(e,H.SESSION_SERVICE)}function z(e,t){return t+e}function C(e){return null!=e&&void 0!==e.top&&null!=e.top}function M(e){var t;if(e!==v.omidGlobal)try{if(void 0===e.location.hostname)return!0;""!==(t=e).x&&t.x}catch(e){return!0}return!1}function $(e){return C(e=void 0===e&&"undefined"!=typeof window&&window?window:e)?e:v.omidGlobal}function Y(e){return C(e)?e.top:v.omidGlobal}var D=function(e){l.call(this,e),this.communicationType_=r.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,l),D.prototype.sendMessage=function(e,t){if(!(t=void 0===t?this.to:t))throw Error("Message destination must be defined at construction time or when sending the message.");t.handleExportedMessage(e.serialize(),this)},D.prototype.handleExportedMessage=function(e,t){c.isValidSerializedMessage(e)&&this.handleMessage(c.deserialize(e),t)},D.prototype.isCrossOrigin=function(){return!1},function(e,t){t=void 0===t?v.omidGlobal:t,l.call(this,t);var n=this;this.communicationType_=r.CommunicationType.POST_MESSAGE,e.addEventListener("message",function(e){var t;"object"==typeof e.data&&(t=e.data,c.isValidSerializedMessage(t))&&(t=c.deserialize(t),e.source)&&n.handleMessage(t,e.source)})}),N=(u.inherits(R,l),R.isCompatibleContext=function(e){return!!(e&&e.addEventListener&&e.postMessage)},R.prototype.sendMessage=function(e,t){if(!(t=void 0===t?this.to:t))throw Error("Message destination must be defined at construction time or when sending the message.");t.postMessage(e.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||M(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(e){var t={};return t[r.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,t[r.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,t[e]}});function q(e,t){try{return e.frames&&!!e.frames[t]}catch(e){return!1}}function K(e,t){e.document.write('<iframe style="display:none" id="'+t+'" name="'+t+'" sandbox></iframe>')}N.isOmidPresent=function(t){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return q(t,e)})},N.getOmidEnvironment=function(e){for(var t=u.makeIterator(Object.values(r.Environment)),n=t.next();!n.done;n=t.next()){n=n.value;if(q(e,N.getEnvironmentIframeName(n)))return n}return null},N.declareOmidPresence=function(t,e){t.frames&&t.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return!!t.frames[e]})&&(null==t.document.body&&N.isMutationObserverAvailable_(t)?N.registerMutationObserver_(t,e):(e=N.getEnvironmentIframeName(e),t.document.body?(N.appendPresenceIframe_(t,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(t,e)):(K(t,N.OMID_PRESENT_FRAME_NAME),K(t,e))))},N.appendPresenceIframe_=function(e,t){var n=e.document.createElement("iframe");n.id=t,n.name=t,n.style.display="none",n.sandbox="",e.document.body.appendChild(n)},N.isMutationObserverAvailable_=function(e){return"MutationObserver"in e},N.registerMutationObserver_=function(t,n){var i=new MutationObserver(function(e){e.forEach(function(e){"BODY"===e.addedNodes[0].nodeName&&(e=N.getEnvironmentIframeName(n),N.appendPresenceIframe_(t,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(t,e),i.disconnect())})});i.observe(t.document.documentElement,{childList:!0})};var X=["omid","v1_SessionServiceCommunication"];function J(e,t){return t.reduce(function(e,t){return e&&e[t]},e)}function Q(e,t,n,i){for(var r=(t=u.makeIterator(t)).next();!r.done;r=t.next())if(r=((e,t,n,i)=>{if(!M(t))try{var r=J(t,n);if(r)return new D(r)}catch(e){}return i(t)?new R(e,t):null})(e,r.value,n,i))return r;return null}function Z(e,t,n){n=void 0===n?N.isOmidPresent:n;var i=[e,Y(e)];return t&&i.unshift(t),Q(e,i,X,n)}function P(e,t,n){p("AdSession.context",e),this.adSessionId_=S(),this.context_=e,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=t||Z($(),i),this.sessionInterface_=n||new y,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(e.verificationScriptResources),this.sendSlotElement_(e.slotElement),this.sendVideoElement_(e.videoElement),this.sendContentUrl_(e.contentUrl),this.watchSessionEvents_()}function ee(e,t,n,i){this.isSkippable=e,this.skipOffset=t,this.isAutoPlay=n,this.position=i}function k(e){p("AdEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerAdEvents(),this.adSession=e}catch(e){throw Error("AdSession already has an ad events instance registered")}}function L(e){p("MediaEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerMediaEvents(),this.adSession=e}catch(e){throw Error("AdSession already has a media events instance registered")}}function te(n){var e=$();new R(e).onMessage=function(e,t){e.method===r.MessageMethod.IDENTIFY_SERVICE_WINDOW&&n(t)}}P.prototype.getAdSessionId=function(){return this.adSessionId_},P.prototype.setCreativeType=function(e){if(e===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+r.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",e,this.adSessionId_),this.creativeType_=e},P.prototype.setImpressionType=function(e){if(e===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+r.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",e,this.adSessionId_),this.impressionType_=e},P.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},P.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},P.prototype.registerSessionObserver=function(e){this.sendMessage("registerSessionObserver",e,this.adSessionId_)},P.prototype.start=function(){this.sendOneWayMessage("startSession",{customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation},this.adSessionId_)},P.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},P.prototype.error=function(e,t){this.sendOneWayMessage("sessionError",e,t,this.adSessionId_)},P.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},P.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},P.prototype.sendOneWayMessage=function(e){var t=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[e,null].concat(u.arrayFromIterable(t)))},P.prototype.sendMessage=function(e,t){var n=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(e,t,n):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(e,t,n)},P.prototype.sendInternalMessage_=function(e,t,n){var i=S();t&&(this.callbackMap_[i]=t),e=new c(i,G(e),A,j(A,n)),this.communication_.sendMessage(e)},P.prototype.handleInternalMessage_=function(e,t){t=e.method;var n,i=e.guid;e=e.args,"response"===t&&this.callbackMap_[i]&&(n=B(A,e),this.callbackMap_[i].apply(this,n)),"error"===t&&window.console&&I(e)},P.prototype.sendInterfaceMessage_=function(e,t,n){try{this.sessionInterface_.sendMessage(e,t,n)}catch(e){I("Failed to communicate with SessionInterface with error:"),I(e)}},P.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},P.prototype.impressionOccurred=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},P.prototype.creativeLoaded=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},P.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",A,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},P.prototype.injectVerificationScripts_=function(e){e&&(e=e.map(function(e){return e.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",e,this.adSessionId_))},P.prototype.sendSlotElement_=function(e){this.sendElement_(e,"setSlotElement")},P.prototype.sendVideoElement_=function(e){this.sendElement_(e,"setVideoElement")},P.prototype.sendElement_=function(e,t){e&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(t,e,this.adSessionId_):this.error(r.ErrorType.GENERIC,"Session Client "+t+" called when communication is cross-origin"))},P.prototype.sendContentUrl_=function(e){e&&this.sendOneWayMessage("setContentUrl",e,this.adSessionId_)},P.prototype.setElementBounds=function(e){p("AdSession.elementBounds",e),this.sendOneWayMessage("setElementBounds",e,this.adSessionId_)},P.prototype.watchSessionEvents_=function(){var t=this;this.registerSessionObserver(function(e){e.type===r.AdEventType.SESSION_START&&(t.isSessionRunning_=!0,t.creativeType_=e.data.creativeType,t.impressionType_=e.data.impressionType),e.type===r.AdEventType.SESSION_FINISH&&(t.isSessionRunning_=!1)})},e("OmidSessionClient.AdSession",P),ee.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},k.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},k.prototype.loaded=function(e){e=void 0===e?null:e,this.adSession.creativeLoaded(),e=e?e.toJSON():null,this.adSession.sendOneWayMessage("loaded",e,this.adSessionId_)},e("OmidSessionClient.AdEvents",k),L.prototype.start=function(e,t){f("MediaEvents.start.duration",e),m("MediaEvents.start.mediaPlayerVolume",t,0,1),this.adSession.sendOneWayMessage("start",e,t,this.adSessionId_)},L.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},L.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},L.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},L.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},L.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},L.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},L.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},L.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},L.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},L.prototype.volumeChange=function(e){m("MediaEvents.volumeChange.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("volumeChange",e,this.adSessionId_)},L.prototype.playerStateChange=function(e){p("MediaEvents.playerStateChange.playerState",e),this.adSession.sendOneWayMessage("playerStateChange",e,this.adSessionId_)},L.prototype.adUserInteraction=function(e){p("MediaEvents.adUserInteraction.interactionType",e),this.adSession.sendOneWayMessage("adUserInteraction",e,this.adSessionId_)},e("OmidSessionClient.MediaEvents",L),e("OmidSessionClient.OmidVersion",function(e,t){d("OmidVersion.semanticVersion",e),d("OmidVersion.apiLevel",t)}),e("OmidSessionClient.listenForServiceWindow",te),e("OmidSessionClient.VastProperties",ee);var w={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9}};function ne(e){for(var t=u.makeIterator(ie.keys()),n=t.next();!n.done;n=t.next())for(var n=n.value,i=u.makeIterator(ie.get(n)),r=i.next();!r.done;r=i.next())if(r.value.test(e))return n;return w.VerificationVendorId.OTHER}var ie=new Map([[w.VerificationVendorId.MOAT,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.moatads\.com\/.*$/]],[w.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[w.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[w.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[w.VerificationVendorId.NIELSEN,[]],[w.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[w.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[w.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]]]);e("OmidSessionClient.verificationVendorIdForScriptUrl",ne),e("OmidSessionClient.VerificationVendorId",w.VerificationVendorId),w.verificationVendorIdForScriptUrl=ne}var re="object"==typeof globalThis?globalThis:window,t={},n=void 0===re?this:re;if("object"==typeof(r=void 0===t?void 0:t)&&"string"!=typeof r.nodeName)e(n,r);else{var i,r={},a=["1.5.0-iab4484"],o="default";for(i in a.push(o),e(n,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(n,i)&&Object.defineProperty(n,i,{value:{}}),a.forEach(function(e){var t;null==Object.getOwnPropertyDescriptor(n[i],e)&&(t=function e(t){for(var n in t)t.hasOwnProperty(n)&&(t[n]=e(t[n]));return Object.freeze(t)}(r[i]),Object.defineProperty(n[i],e,{get:function(){return t},enumerable:!0}))}))}s.OmidSessionClient=t.OmidSessionClient}(),n={},e=self,t=function(){{var O,b,C,M,D={d:function(e,t){for(var n in t)D.o(t,n)&&!D.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},R={};D.d(R,{default:function(){return T}});let o=1,n=2,i=4,r="[MT] ",s=((O={})[O.NONE=0]="NONE",O[O.ERROR=1]="ERROR",O[O.WARNING=2]="WARNING",O[O.INFO=3]="INFO",O[O.DEBUG=4]="DEBUG",O),a=n;function N(e,t,n,i){a>=e&&(n=r+n,void 0===i?t.call(console,n):t.call(console,n,i))}let u=console.error,p=console.warn,f=console.debug;function P(e,t){N(o,u,e,t)}function be(e,t){N(n,p,e,t)}function Ce(e,t){N(i,f,e,t)}function k(e){return("object"==typeof globalThis?globalThis:window)?.[e]}function L(e){if(e){if(Array.isArray(e))return e.slice();if("object"==typeof e)return Object.assign({},e)}return null}function Me(e){if(e)try{return JSON.parse(JSON.stringify(e))}catch(e){P("Exception during deep-copy: "+e,e)}return null}function w(e,t){if(null!=e)try{return new URL(e,t).toString()}catch(e){P("URL Exception: "+e,e)}return null}function De(r,a,o){let e=a?.length||0;if(0<e){let n=0,i=e-1;for(;n<=i;){let e=Math.ceil((n+i)/2),t=o(r,a[e]);if(0===t)return e;0<t?n=e+1:i=e-1}}return-1}let c=[];for(let e=0;e<256;e++)c.push((e+256).toString(16).substr(1).toLowerCase());let l=!!k("crypto")?.getRandomValues,m=(l||be("crypto.getRandomValues() unavailable"),[2,9]),F=10,de=5,W=2,j="ad_start",B="ad_end",H="ad_progress",G="ad_click",z="ad_can_skip",pe="ad_incoming",fe="nonlinear_ad_start",me="nonlinear_ad_end",_e="ad_tracking_info_response",he=0,ve=1,Ee=2,ge=3,ye=4,Se=5,Ie=6,Ae=7,$=0,Y=1,q=2,K=3,X=4,J=5,Q=6,Z=7,ee=8,te=9,ne=10,ie=11,re=12,ae=13,oe=14,_=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],d=null;function Re(e){try{return JSON.parse(e)}catch(e){return be("JSON Parse Exception: "+e,e),null}}function U(i,r,t,a,o){let s=new XMLHttpRequest,u=a?.retryHeuristics,c=0,l=!1;function d(){if(!l)try{{var n=s;var e=a;let t=e?.headers;n.open(i,r,!0),n.timeout=e?.timeout??0,t&&Object.keys(t).forEach(e=>{n.setRequestHeader(e,t[e])})}c++,s.send(t),Ce(`XHR (${i} ${r}, #${c}) request sent`,t)}catch(e){be("XHR Exception: "+e,e)}}return s.onreadystatechange=()=>{if(!l&&4===s.readyState){var e=s.status,t=s.responseText;if(Ce(`XHR (${r}) response received, status `+e,t),e<200||299<e){var n=u?u(c,e,t):-1;if(0<=n)return setTimeout(d,n),void be(`XHR (${r}) failed (status ${e}), retry in ${n} ms`,t)}o&&o(t,e,r)}},d(),{abort(){l=!0,s.abort(),Ce(`XHR (${r}) aborted`)}}}function Ne(e,t,n){return U("GET",e,null,t,n)}let se="adData: ";function Pe(e){return e&&"object"==typeof e&&e}function ke(a,e){if(!Pe(a))return null;let[,o]=e,s={},t=o.length;for(let r=0;r<t;r++){let[e,t,n]=o[r],i=n[0](a[e],n);if(null!=i)s[e]=i;else if(!t)return Ce(se+("Missing object field: "+e),a),null}return s}function Le(e){return e&&Array.isArray(e)?e:null}function x(n,e){if(!Le(n))return null;let[,i,r]=e,a=[],o=n.length;for(let t=0;t<o;t++){let e=r[0](n[t],r);null!=e||i?a.push(e):Ce(se+("Invalid array entry at: "+t),n)}return a}function we(e){return"number"==typeof e?e:null}function Ue(e){return"string"==typeof e?e:null}let e=[we],t=[Ue],h=[function(e){return"boolean"==typeof e?e:null}],v=[ke,[["content",!1,t],["type",!1,t]]],E=[ke,[["beaconUrls",!1,[x,!1,t]],["durationInSeconds",!0,e],["eventId",!0,t],["eventProgramDateTime",!0,t],["eventType",!1,t],["startTimeInSeconds",!0,e]]],Te=[ke,[["adId",!0,t],["adParameters",!0,t],["adSystem",!0,t],["adTitle",!0,t],["adVerifications",!0,[x,!1,[ke,[["executableResource",!0,[x,!1,[ke,[["apiFramework",!0,t],["language",!0,t],["type",!0,t],["uri",!0,t]]]]],["javaScriptResource",!0,[x,!1,[ke,[["apiFramework",!0,t],["browserOptional",!0,t],["uri",!0,t]]]]],["trackingEvents",!0,[x,!1,[ke,[["event",!1,t],["uri",!1,t]]]]],["vendor",!0,t],["verificationParameters",!0,t]]]]],["companionAds",!0,[x,!1,[ke,[["adParameters",!0,t],["altText",!0,t],["attributes",!0,[ke,[["adSlotId",!0,t],["apiFramework",!0,t],["assetHeight",!0,t],["assetWidth",!0,t],["expandedHeight",!0,t],["expandedWidth",!0,t],["height",!0,t],["id",!0,t],["pxratio",!0,t],["renderingMode",!0,t],["width",!0,t]]]],["companionClickThrough",!0,t],["companionClickTracking",!0,t],["htmlResource",!0,t],["iFrameResource",!0,t],["sequence",!0,t],["staticResource",!0,t],["trackingEvents",!0,[x,!1,[ke,[["beaconUrls",!1,[x,!1,t]],["eventType",!1,t]]]]]]]]],["creativeId",!0,t],["creativeSequence",!0,t],["extensions",!0,[x,!1,v]],["trackingEvents",!0,[x,!1,E]],["vastAdId",!0,t]]],Oe=[ke,[["nonLinearAdList",!1,[x,!1,[ke,[["durationInSeconds",!1,e],["adId",!0,t],["adParameters",!0,t],["adSystem",!0,t],["adTitle",!0,t],["creativeId",!0,t],["creativeAdId",!0,t],["creativeSequence",!0,t],["width",!0,t],["height",!0,t],["expandedWidth",!0,t],["expandedHeight",!0,t],["scalable",!0,h],["maintainAspectRatio",!0,h],["minSuggestedDuration",!0,t],["apiFramework",!0,t],["staticResource",!0,t],["staticResourceCreativeType",!0,t],["iFrameResource",!0,t],["htmlResource",!0,t],["clickThrough",!0,t],["clickTracking",!0,t],["clickTrackingId",!0,t]]]]],["extensions",!0,[x,!1,v]],["trackingEvents",!0,[x,!1,E]]]],ue=new DOMParser,g=/\n|<!\[CDATA\[|\]\]>/g;function xe(e){e=e?.textContent;return null==e?null:e.replace(g,"").trim()}function Ve(e,t,n){n&&(e[t]=n)}function Fe(e,t){for(var n of e.children)t[n.tagName]?.(n)}function We(e){let n=[];return Fe(e,{IconClickFallbackImage:e=>{let t={};n.push(t),Ve(t,"width",e.getAttribute("width")),Ve(t,"height",e.getAttribute("height")),Fe(e,{AltText:e=>{Ve(t,"altText",xe(e))},StaticResource:e=>{Ve(t,"staticResource",xe(e))}})}}),n}(O={})[O.AD_START=j]="AD_START",O[O.AD_END=B]="AD_END",O[O.AD_PROGRESS=H]="AD_PROGRESS",O[O.AD_CLICK=G]="AD_CLICK",O[O.AD_CAN_SKIP=z]="AD_CAN_SKIP",O[O.AD_INCOMING=pe]="AD_INCOMING",O[O.NONLINEAR_AD_START=fe]="NONLINEAR_AD_START",O[O.NONLINEAR_AD_END=me]="NONLINEAR_AD_END",O[O.AD_TRACKING_INFO_RESPONSE=_e]="AD_TRACKING_INFO_RESPONSE";let ce=[],le=(ce[$]=["impression"],ce[Y]=["clickThrough"],ce[q]=["loaded"],ce[K]=["start","creativeView"],ce[X]=["firstQuartile"],ce[J]=["midpoint"],ce[Q]=["thirdQuartile"],ce[Z]=["complete"],ce[ee]=["skip"],ce[te]=["pause"],ce[ne]=["resume"],ce[ie]=["mute"],ce[re]=["unmute"],ce[ae]=["fullscreen","playerExpand"],ce[oe]=["exitFullscreen","playerCollapse"],(b={})[b.START=he]="START",b[b.END=ve]="END",b[b.PAUSE=Ee]="PAUSE",b[b.RESUME=ge]="RESUME",b[b.MUTE=ye]="MUTE",b[b.UNMUTE=Se]="UNMUTE",b[b.FULLSCREEN=Ie]="FULLSCREEN",b[b.EXIT_FULLSCREEN=Ae]="EXIT_FULLSCREEN",[]);function V(r,t,e){let u="adTracking: ",_=(e,t)=>e-t.start,c=(e,t)=>e-t.startDate,a=(e,t)=>e.start-t.start,o={headers:{"Cache-Control":"no-cache, no-store"}},s=e.defaultTrackingRequestInterval||F,U=e.incomingAdCountdownInterval??de,n=e.adTrackingUpdateMode||"pagination",x="playhead"===n,V="pagination"===n,h=[],v=[],l,d=null,p=null,E=null,g=null,f=null,y=null,S=null,I=null,m=null,A=null,T=null,O=null,b=null,C=null,M=0,D=[],R=(()=>{let i=new EventTarget,a=null,r=null,o=-1,s=!1;function u(e,t){i.dispatchEvent(new CustomEvent(e,{detail:t}))}function c(e,t){var n=e.availDuration,i=e.inAvailStartOffset;return{toAdEnd:e.duration-t,toAvailEnd:null!=n&&null!=i?n-i-t:null,toSkipThreshold:0<=o?Math.max(0,o-t):null}}return{addEventListener(e,t,n){i.addEventListener(e,t,n)},removeEventListener(e,t,n){i.removeEventListener(e,t,n)},onTrackingInfoResponse(e){u(_e,{failedAdTrackingInfoRequest:e})},onAdStart(e,t,n){var i,r;a=(r=t,n=n,{adData:Me(i=e),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:n+i.duration-r}),o=e.skipOffset,s=!1,u(j,{adObject:a,adElapsedTime:t,adCountdown:c(e,t)})},onAdEnd(e){u(B,{adObject:a}),a=null},onAdProgress(e,t,n){u(H,{adObject:a,adElapsedTime:t,adCountdown:c(e,t)}),!s&&0<=o&&t>=o&&(s=!0,u(z,{adObject:a}))},onAdClick(e){u(G,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart(e,t,n){r={adData:Me(e)},u(fe,{nonLinearAdsObject:r,adElapsedTime:t})},onNonLinearAdsEnd(e){u(me,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}})();function N(n,i){let e=D.length;for(let t=0;t<e;t++){let e=D[t];e[n]?.apply(e,i)}}function P(e,t){t=t||d,Ce(u+("Ad tracking event "+le[e]),t),N("onAdTrackingEvent",[t,e])}function k(e,t){!e.startDate&&O&&(e.startDate=t+O);t=l;(l=!!e.startDate)!==t&&Ce(u+("Set adHasStartDate to "+l))}function L(e,t){var i,n=[["tttt",""+Date.now()]];x&&n.push(["aws.playheadPositionInSeconds",""+Math.round(t&&O?t-O:e)]),V&&T&&n.push(["aws.nextToken",T]),m?.abort(),t=(e=>{let t=new URL(r),n=new URLSearchParams(t.search);return e.forEach(e=>{n.append(e[0],e[1])}),t.search="?"+n.toString(),t.toString()})(n),i=(e,t)=>{if(200===t){let f=!1,m=!1;T=((e,u)=>{if(Pe(e)){let n=Ue(e.dashAvailabilityStartTime),t=Le(e.avails),i=(t?.forEach(e=>{if(Pe(e)){Ce(se+`Avail (${e.duration} @ ${e.startTime} / ${e.availProgramDateTime})`,e);let r=we(e.startTimeInSeconds),a=we(e.durationInSeconds),o=Ue(e.availProgramDateTime),s=(o=(o?new Date(o).getTime()/1e3:n?new Date(n).getTime()/1e3+r:0)||0,c(!1,e,r,a,o),Le(e.ads));if(s){let i=s.length;s.forEach((e,t)=>{var n;Pe(e)?null!=(n=we(e.startTimeInSeconds))?(Ce(se+`Ad #${t+1} of ${i} `+`(${e.duration} @ ${e.startTime} / ${e.adProgramDateTime})`,e),u(n,t,i,r,a,o,e,!1,!1)):be(se+"Invalid or missing ad start time",e):be(se+"Invalid ad object",s)})}}else be(se+"Invalid avail object",t)}),Le(e.nonLinearAvails));i?.forEach(e=>{var t;Pe(e)?(Ce(se+`nonLinearAvail (${e.startTime} / ${e.availProgramDateTime})`,e),c(!0,e,t=we(e.startTimeInSeconds),null,e=((e=Ue(e.availProgramDateTime))?new Date(e).getTime()/1e3:n?new Date(n).getTime()/1e3+t:0)||0)):be(se+"Invalid nonLinearAvail object",i)});e=Ue(e.nextToken);return e&&Ce(se+`nextToken "${e}"`),e;function c(e,t,n,i,r){t=Le(t.nonLinearAdsList)?.[0];t&&(Pe(t)?null==n?be(se+"Invalid or missing nonlinear ad start time",t):(Ce(se+"nonLinearAds",t),u(n,0,1,n,i,r,t,!0,e)):be(se+"Invalid nonLinearAds object",t))}}else be(se+"Invalid tracking-info response")})(e,(t,n,i,r,a,o,s,u,c)=>{if(null!=r&&o&&(O=o-r),u){if(De(t,v,_)<0){u=t,o=o,c=c;let e=(p=ke(l=s,Oe))?(d=p.nonLinearAdList.reduce((e,t)=>Math.max(e,t.durationInSeconds),0))?(Object.assign(p,{start:u,startDate:o,duration:d,nonlinearAvail:c}),Ce(se+`New NonLinearAdsData (${d}s @ ${u}s / ${o}s)`,p),p):(be(se+"Invalid nonlinear ad duration",l),null):(be(se+"Missing required fields for NonLinearAdsData",l),null);e&&(k(e,t),v.push(e),m=!0,N("onNewNonLinearAds",[e]))}}else{let e=De(t,h,_);if(0<=e)h[e].availAdCount=i;else{let e=((e,t,n,i,r,a)=>{var o=we(a.durationInSeconds);if(null==o||o<=0)return be(se+"Invalid or missing ad duration",a),null;let s=Ue(a.adProgramDateTime);s=s&&new Date(s).getTime()/1e3;var u=Ue(a.skipOffset);let c=u&&new Date(`1970-01-01T${u}Z`).getTime()/1e3,l=(c||0===c||(c=-1),ke(a,Te));return l?(l.extensions?.forEach(e=>{if("AdVerifications"===e.type){var t=e.content;try{var n=ue.parseFromString(t,"application/xml")?.documentElement,i=n?.getElementsByTagName("JavaScriptResource"),r=n?.getElementsByTagName("VerificationParameters"),a=n?.getAttribute("vendor"),o=xe(i?.[0]),s=xe(r?.[0]);a&&o?(l.adVerifications||(l.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):be(se+"Invalid AdVerifications extension content",e)}catch(e){be(se+"Exception parsing AdVerifications extension: "+t,e)}}else if("companion_about_this_ad"===e.type){n="<root>"+e.content+"</root>";try{let e=ue.parseFromString(n,"application/xml")?.documentElement;e&&Fe(e,{Icon:e=>{let t=l.icons||(l.icons=[]),n={};t.push(n),Ve(n,"program",e.getAttribute("program")),Ve(n,"width",e.getAttribute("width")),Ve(n,"height",e.getAttribute("height")),Ve(n,"xPosition",e.getAttribute("xPosition")),Ve(n,"yPosition",e.getAttribute("yPosition")),Fe(e,{StaticResource:e=>{Ve(n,"staticResource",xe(e))},IconClicks:e=>{let t={};n.iconClicks=t,Fe(e,{IconClickThrough:e=>{Ve(t,"iconClickThrough",xe(e))},IconClickFallbackImages:e=>{e=We(e);e.length&&(t.iconClickFallbackImages=e)}})}})}})}catch(e){be(se+"Exception parsing AdChoices extension: "+n,e)}}else if("IconClickFallbackImages"===e.type){i="<root>"+e.content+"</root>";try{let e=ue.parseFromString(i,"application/xml")?.documentElement;e&&Fe(e,{IconClickFallbackImages:e=>{var t={},e=((l.icons||(l.icons=[])).push(t),Ve(t,"program",e.getAttribute("program")),We(e));e.length&&(t.iconClicks={iconClickFallbackImages:e})}})}catch(e){be(se+"Exception parsing AdChoices extension: "+i,e)}}}),Object.assign(l,{start:e,startDate:s||0,duration:o,skipOffset:c,availAdIndex:t,availAdCount:n,availStart:i,availDuration:r,inAvailStartOffset:null!=i?e-i:null,playCount:0}),l.videoClickThrough=null,l.trackingEvents=l.trackingEvents?.filter(e=>"clickThrough"!==e.eventType||((e=e.beaconUrls[0])&&(l.videoClickThrough=e),!1)),Ce(se+`New AdData (${o}s @ ${e}s / ${s})`,l),l):(be(se+"Missing required fields for AdData",a),null)})(t,n,i,r,a,s);e&&(k(e,t),h.push(e),f=!0,N("onNewAd",[e]))}}var l,d,p}),f&&(h.sort(a),p=E=null,g=null),m&&(v.sort(a),y=S=null,I=null),N("onTrackingInfoResponse",[!1])}else be(u+"Request failed, status "+t,e),N("onTrackingInfoResponse",[!0]);m=null},m=Ne(t,o,(e,t,n)=>{200===t&&null!=e&&(e=Re(e)),i(e,t)})}function w(e,t,n,i){let r,a,o;var s=i?"startDate":"start",n=((r,a,o)=>{let e=a?.length||0;if(0<e){let n=0,i=e-1;for(;n<i;){let e=Math.ceil((n+i)/2),t=o(r,a[e]);if(0===t)return e;0<t?n=e:i=e-1}if(0<n||0<=o(r,a[n]))return n}return-1})(n,t,i?c:_);return o=0<=n?(r=t[n],a=r[s],n+1<t.length?t[n+1][s]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,t.length?t[0][s]:Number.MAX_VALUE),Ce(u+`Update time range (${a} - ${o}), `+e+" ad index "+n,r),[r,a,o]}function i(e){e&&D.indexOf(e)<0&&D.push(e)}return 0<=s&&L(0),i(R),i((a=>{let o={},r=null;return{onAdLoad(e){r={},e.trackingEvents?.forEach(e=>{r[e.eventType]=e})},onAdEnd(e){r=null},onAdTrackingEvent(n,e){var i=ce[e];if(r&&1===n.playCount&&i){let t=i.length;for(let e=0;e<t;e++)((i,r)=>{var t=r?.beaconUrls;if(t){var n=t.length;for(let e=0;e<n;e++)Ne(t[e],o,(e,t,n)=>{a(i,r,n,t)})}})(n,r[i[e]])}}}})((e,t,n,i)=>{N("onAdBeaconResponse",[e,t,n,i])})),{updateAdTrackingInfo:function(){L(b??0,C),A=b},startUpdatingAdTrackingInfo:function(e){s=e||F,A=null},stopUpdatingAdTrackingInfo:function(){s=-1},onPlayheadUpdate:function(e,t){if(null!=b&&e>b&&e<b+W){0<=s&&!m&&(null==A||Math.abs(e-A)>=s)&&(L(e,t),A=e);var n=(t=l?t:null)||e,i=((null==p||n<p||n>=E)&&([g,p,E]=w("linear",h,n,t)),d),r=n-p;if((d=g&&n<p+g.duration?g:null)===i){if(d&&(Ce(u+"Ad progresses, time => "+r),N("onAdProgress",[d,r,e]),r>M)&&r<M+W){let e=d.duration,t=M/e;var a=(M=r)/e;t<.25&&.25<=a&&P(X),t<.5&&.5<=a&&P(J),t<.75&&.75<=a&&P(Q)}}else i&&(M+W>i.duration&&P(Z,i),Ce(u+"Ad ends",i),N("onAdEnd",[i])),M=0,d&&(d.playCount++,t&&Ce(u+`PDT offset => player ${t-e}, ad `+(d.startDate-d.start),d),Ce(u+"Ad loads",d),N("onAdLoad",[d]),P(q),Ce(u+"Ad starts, time => "+r,d),N("onAdStart",[d,r,e]),P(K),P($));if(!d){let e=E-n;e<=U&&R.dispatchEvent(pe,{timeToNextAd:e})}(null==y||n<y||n>=S)&&([I,y,S]=w("nonlinear",v,n,t));a=f,i=n-y;(f=I&&n<y+I.duration?I:null)!==a&&(a&&(Ce(u+"Nonlinear ad ends",a),N("onNonLinearAdsEnd",[a])),f)&&(t&&Ce(u+`PDT offset => player ${t-e}, nonlinear ad `+(f.startDate-f.start),f),Ce(u+"Nonlinear ad starts, time => "+i,f),N("onNonLinearAdsStart",[f,i,e]))}b=e,C=t},onPlaybackRateUpdate:function(e){},onPlaybackEvent:function(e){switch(e){case he:t?.sendPlaybackStart();break;case ve:t?.sendPlaybackEnd()}if(d)switch(e){case Ee:P(te);break;case ge:P(ne);break;case ye:P(ie);break;case Se:P(re);break;case Ie:P(ae);break;case Ae:P(oe)}},onVideoClick:function(e){d&&(t?.sendAdTouch(e),N("onAdClick",[d]))},onPlayerControlClick:function(e){d&&t?.sendAdTouch(e)},onAdClickthrough:function(){d&&(t?.sendAdClick(),P(Y))},onAdSkip:function(){d&&P(ee)},addAdObserver:i,removeAdObserver:function(e){e&&0<=(e=D.indexOf(e))&&D.splice(e,1)},getAllAds:function(){return h.map(e=>Me(e))},getAllNonLinearAds:function(){return v.map(e=>Me(e))},addEventListener(e,t,n){R.addEventListener(e,t,n)},removeEventListener(e,t,n){R.removeEventListener(e,t,n)}}}le[$]="IMPRESSION",le[Y]="CLICK_THROUGH",le[q]="LOADED",le[K]="START",le[X]="FIRST_QUARTILE",le[J]="MID_POINT",le[Q]="THIRD_QUARTILE",le[Z]="COMPLETE",le[ee]="SKIP",le[te]="PAUSE",le[ne]="RESUME",le[ie]="MUTE",le[re]="UNMUTE",le[ae]="FULLSCREEN",le[oe]="EXIT_FULLSCREEN",(M={})[M.IMPRESSION=$]="IMPRESSION",M[M.CLICK_THROUGH=Y]="CLICK_THROUGH",M[M.LOADED=q]="LOADED",M[M.START=K]="START",M[M.FIRST_QUARTILE=X]="FIRST_QUARTILE",M[M.MID_POINT=J]="MID_POINT",M[M.THIRD_QUARTILE=Q]="THIRD_QUARTILE",M[M.COMPLETE=Z]="COMPLETE",M[M.SKIP=ee]="SKIP",M[M.PAUSE=te]="PAUSE",M[M.RESUME=ne]="RESUME",M[M.MUTE=ie]="MUTE",M[M.UNMUTE=re]="UNMUTE",M[M.FULLSCREEN=ae]="FULLSCREEN",M[M.EXIT_FULLSCREEN=oe]="EXIT_FULLSCREEN";let I=["overlayAvails","availSuppression","adSignaling","reportingMode"],S=((C={})[C.INVALID_CONFIG=0]="INVALID_CONFIG",C[C.INVALID_INIT_RESPONSE=1]="INVALID_INIT_RESPONSE",C[C.INIT_ERROR=2]="INIT_ERROR",C);function je(r,e,a,o){let s,u=null,c=r.trackingUrl,l=r.sessionInitUrl,d=r.palNonceManager||e,t=d?.getNonce?.()??null,p={getPlaybackUrl:()=>u,getTrackingUrl:()=>c,getPalNonce:()=>t,updateAdTrackingInfo(){s.updateAdTrackingInfo()},startUpdatingAdTrackingInfo(e){s.startUpdatingAdTrackingInfo(e)},stopUpdatingAdTrackingInfo(){s.stopUpdatingAdTrackingInfo()},onPlayheadUpdate(e,t){s.onPlayheadUpdate(e,t)},onPlaybackRateUpdate(e){s.onPlaybackRateUpdate(e)},onPlaybackEvent(e){s.onPlaybackEvent(e)},onVideoClick(e){s.onVideoClick(e)},onPlayerControlClick(e){s.onPlayerControlClick(e)},onAdClickthrough(){s.onAdClickthrough()},onAdSkip(){s.onAdSkip()},addAdObserver(e){s.addAdObserver(e)},removeAdObserver(e){s.removeAdObserver(e)},getAllAds:()=>s.getAllAds(),getAllNonLinearAds:()=>s.getAllNonLinearAds(),destroy(){},addEventListener(e,t,n){s.addEventListener(e,t,n)},removeEventListener(e,t,n){s.removeEventListener(e,t,n)}};if(c)s=V(c,d,r),a(p,"Session initialized elsewhere");else if(l){let n=L(r.originParams)||{},i=r.sessionFeatures;i&&I.forEach(e=>{var t=i[e];null!=t&&(n[e]=t)});var f,m,_,h,v=L(r.playerParams)||{},v=(v.device_sdk_info||=T.clientInfo,t&&(v.givn=t),n.playerParams=v,{}),E=(Ce(`createSession: Request sent to URL "${l}"`,n),l),g=n,y=(e,t)=>{200===t?(u=w(e?.manifestUrl,l))&&(c=w(e?.trackingUrl,l))?(s=V(c,d,r),a(p,"Successful session response",e)):o(S.INVALID_INIT_RESPONSE,"Invalid session response"):o(S.INIT_ERROR)};try{(v=L(v)||{}).headers=(_={"Content-Type":"application/json; charset=utf-8"},(h=v.headers)?Object.assign(_,h):_),f=E,m=JSON.stringify(g),U("POST",f,m,v,(e,t,n)=>{200===t&&null!=e&&(e=Re(e)),y&&y(e,t)})}catch(E){return void be("JSON Encode Exception: "+E,E)}}else o(S.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function Be(n,i,r,a){let o="createSession: ";function s(e,t,n){Ce(o+t,n),i?i(e,null):r(e)}function u(e,t){var n={code:e,message:t};P(o+`(${e}) `+t),i?i(null,n):a(n)}if(n){let e=n.palNonceRequestParams;if(n.trackingUrl||n.palNonceManager||!e)return je(n,null,s,u);let t=(i=>{var e="nonceReq: ";if(d){var t=k("goog")?.pal?.NonceRequest;if(t){let n=new t;n.omidPartnerName="MediaTailor",n.omidPartnerVersion="1.0.0",n.supportedApiFrameworks=m,_.forEach(e=>{var t=i[e];null!=t&&(n[e]=t)}),n.sessionId||(n.sessionId=(()=>{var t=new Uint8Array(16);if(l)crypto.getRandomValues(t);else for(let e=0;e<16;e++)t[e]=Math.floor(256*Math.random());return t[6]=15&t[6]|64,t[8]=63&t[8]|128,c[t[0]]+c[t[1]]+c[t[2]]+c[t[3]]+"-"+c[t[4]]+c[t[5]]+"-"+c[t[6]]+c[t[7]]+"-"+c[t[8]]+c[t[9]]+"-"+c[t[10]]+c[t[11]]+c[t[12]]+c[t[13]]+c[t[14]]+c[t[15]]})());t=d.loadNonceManager?.(n);return t?Ce(e+"Request sent",n):P(e+"Request failed",n),t}P(e+"Missing PAL SDK classes")}else P(e+"PAL isn't initialized");return null})(e);t?t.then(e=>{Ce(o+"NonceManager received",e),je(n,e,s,u)}).catch(e=>{be(o+"Nonce request rejected",e),je(n,null,s,u)}):(be(o+"Unable to create a nonce request"),je(n,null,s,u))}else u(S.INVALID_CONFIG,"Missing config")}let y="1.4.0",A=(console.debug("[MT] AWS Elemental MediaTailor SDK v1.4.0"),{initPal:function(t,n){let e="initPal: ";if(!t){if(!n)return P(e+"Missing consent settings"),!1;var i=k("goog")?.pal,r=i?.NonceLoader,i=i?.ConsentSettings;if(!r||!i)return P(e+"Missing PAL SDK classes"),!1;{let e=new i;e.allowStorage=n.allowStorage??!1,t=new r(e)}}return d&&be(e+"Resetting NonceLoader"),d=t,!0},createSession:function(n,e){if(!e)return new Promise((e,t)=>{Be(n,null,e,t)});Be(n,e,null,null)},PlaybackEvent:b,AdTrackingEvent:M,SessionUiEvent:O,setLogLevel:function(e){0<=e&&e<=i?a=e:console.warn(r+"Invalid log level: "+e)},LogLevel:s,getSdkVersion:()=>y,clientInfo:"MTSDK v"+y}),T=A;return R.default}},"object"==typeof n?n.mediatailor=t():e.mediatailor=t(),s.mediatailor=n.mediatailor,s)),Dc&&(module.exports=Dc.datazoom)})();
1
+ (()=>{var e,t,n,s,Sl="object"==typeof module?{}:null;((Ze,et,g)=>{var y,f,tt=Ze.Object,S=Ze.Array,A=Ze.Date,_t=Ze.Number,T=Ze.String,O=Ze.RegExp,nt=Ze.Math,b=Ze.XMLHttpRequest,C=Ze.Uint8Array,M=Ze.ArrayBuffer,D=Ze.JSON,ht=Ze.Promise,R=Ze.URL,N=Ze.URLSearchParams,P=Ze.EventTarget,k=Ze.CustomEvent,vt=Ze.document||{},e=vt.currentScript||{},L=Ze.location||{},w=Ze.navigator||{},U=w.userAgent||"",Et=w.connection||w.mozConnection||w.webkitConnection,x=Ze.crypto,V=Ze.console||{},t=Ze.performance,F=Ze.setInterval,W=Ze.setTimeout,j=Ze.decodeURIComponent,B=Ze.encodeURIComponent;try{y=Ze.localStorage,f=Ze.sessionStorage}catch(e){}function H(n){return n?function(e,t){e="[DZ] "+e,void 0===t?n.call(V,e):n.call(V,e,t)}:null}var n=H(V.log)||function(){},z=H(V.error)||n,G=H(V.warn)||n,$=H(V.info)||n,q=H(V.debug)||n,gt={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},Y="datazoom_",K="custom_",X="v_";if(gt[n="__"+Y+"rootobj"]=1,Sl)Sl.datazoom=gt;else{if(Ht(Ze.datazoom)){if(Ze.datazoom[n])return G("Collector already loaded");G("Overwriting window.datazoom")}Ze.datazoom=gt}function E(t,n,e){var i,r=n.shift();return null==r?i=t:t?r instanceof O?tt.keys(t).some(function(e){if(r.test(e))return null!=(i=E(t[e],n.slice()))}):i=E(t[r],n):i=null,null!=i?i:e}function it(e){return"function"==typeof e}function J(e,t){if(it(e))try{return new(e=t?e.bind.apply(e,[null].concat(t)):e),1}catch(e){}}J(R,["http://x.io"])&&J(N)||(N=function(e){var i=[];function n(e,t){!1!==t&&i.push([e,t])}function r(t){i=i.filter(function(e){return e[0]!==t})}e&&e.slice(1).split("&").forEach(function(e){e=e.split("=");try{i.push([j(e[0]),null==e[1]||j(e[1])])}catch(e){at(e,"URLSearchParams()")}});e=this;e.append=n,e["delete"]=r,e.set=function(e,t){r(e),n(e,t)},e.get=function(t){var n=null;return i.some(function(e){if(e[0]===t)return n=e[1],!0}),n},e.toString=function(){return i.map(function(e){var t=B(e[0]);return!0===e[1]?t:t+"="+B(e[1])}).join("&")}},R=function(e){var t=this,e=e.split("?"),n=e[0],e=e[1]?"?"+e[1]:"";t.search=e,t.searchParams=new N(e),t.toString=function(){return n+t.search}}),J(P)&&J(k,["x"])||(P=function(){var n=this,i={};n.addEventListener=function(e,t){var n=i[e];n||(i[e]=n=[]),n.push(t)},n.removeEventListener=function(e,t){var n=i[e];n&&(i[e]=n.filter(function(e){return e!=t}))},n.dispatchEvent=function(t){var e=i[t.type];e&&e.forEach(function(e){W(function(){e.call(n,t)},0)})}},k=function(e){this.type=e}),et=tt.assign({},{cn:"JW Player (MT/OM)",sv:"2.26.0",cf:"",mf:null,ev:[],fd:[],md:[],mb:"",sw:!1,sm:"",sp:[],ss:"",sd:"",sc:"",ab:"",st:null,hi:1e4,ti:200,cm:null,am:null,cq:null,aq:null,rd:[1,2,4,8,8,8,8],bd:50,kd:50,mh:5e3,ml:0,mc:256,mp:2,ep:2,ed:2e3,ec:_t.MAX_VALUE,cc:"",cl:"",ci:"",cd:[],og:!0,os:!0,tt:!1,om:!1,ps:null,sn:["IDLE","CT_REQUESTED","CT_BUFFERING","CT_PLAYING","CT_PAUSED","CT_SEEKING","CT_COMPLETED","CT_STOPPED","CT_ERROR","AD_BUFFERING","AD_PLAYING","AD_PAUSED","AD_SEEKING","AD_COMPLETED","AD_SKIPPED","AD_ERROR","AD_BREAK_STARTED","AD_BREAK_ENDED"],le:function(e){var t=e.event,n=e.video;Tt("[Event] "+t.type+(n?" ("+n.media_type+")":"")+" @"+t.timestamp,lt(e))}},et||{});var o,Q,yt,Z={datapoints:{events:"ev",flux_data:"fd",metadata:"md",cmcd:"cd"},endpoints:{event_ingest:"mb",sampling:"sm",ad_blocker_bait:"ab"},sampling:{enable:"sw",definition_namespace:"ss",definition_key_name:"sd",criteria_sampling_key_name:"sc",criteria_matching_fields:"sp"},customer_code:"cc",connector_list:"cl",app_session_timeout_mins:"st",heartbeat_interval_ms:"hi",content_milestone_percent:"cm",ad_milestone_percent:"am",content_qv_sec:"cq",ad_qv_sec:"aq",observability:{lag_enabled:"og",loss_enabled:"os"},om_enabled:"om",configuration_id:""},ee=!Sl&&e.src||"/",te=L.href||"https://localhost",ne="configuration_id",ie="urn:x-cast:io.datazoom.collector",St="transfer",re=0,ae=1,oe=2,se=3,ue=4,le=5,ce={off:re,error:ae,warning:oe,info:se,debug:ue,verbose:le},de=oe;function pe(e){var t;e&&(t=ce[e],re<=(t=null!=t?t:+e)&&t<=le?de=t:G("Invalid log level: "+e))}function fe(){o={},Q=[],[[et.ps],[ee.split("?")[1]],[te.split("?")[1],Y]].forEach(function(e){var i=e[1];e[0]&&e[0].split("&").forEach(function(e){try{var t=e.split("="),n=j(t[0]);if(i){if(!n.startsWith(i))return;n=n.slice(i.length)}o[n]=null==t[1]||j(t[1]),n.startsWith("x-")&&Q.push([n,o[n]])}catch(e){G("Invalid query string: "+e.message)}})}),yt="true"==o.demo,pe(o.log)}fe();var me="io.datazoom.",_e=me,he="__ss_ev_count",ve="__ss_last_act",Ee="__ss_custom_md",ge="__ss_msg_queue",ye="__ss_sm_resp",Se="__ss_appss_to",Ie="collector_observability",Ae="loss",Te="process_duration_ms",Oe="send_duration_ms",be="call_duration_ms",Ce="queue_duration_ms",Me="evnt_fail",De="attempt_count",Re="attempt",Ne="status_code",Pe="status_codes",ke="b4_ss",Le="sample",we="config",Ue="log";function xe(e,t,n,i){de<e||t(n,i)}function It(e,t){xe(ae,z,e,t)}function rt(e,t){xe(oe,G,e,t)}function At(e,t){xe(se,$,e,t)}function Tt(e,t){xe(ue,q,e,t)}function Ve(e,t){xe(le,q,e,t)}function at(e,t){t="[Exception] "+(t?"("+t+") ":"")+e;return It(t,e),t}function Ot(n,i,r,a,o){var s,u=0,l=1,c=0;return i=i||"",r=r||1,a=a||_t.MAX_VALUE,{log:function(e,t){o&&(s=ot())>=c+o&&(u=0,l=1,c=s),++u>=l&&(n("["+u+"] "+i+e,t),l+=nt.min(l*r,a))}}}function bt(e,t){m(Ze,"postMessage",[{type:e,data:t},"*"])}var Fe,ot,We,je,Be,He,ze=[],Ge=0;function $e(e,t,n,i,r,a,o,s){var n={time:n,metric_name:i,dimension:{},batch:function(){return a}},u=(e&&(n.type=e),null!=r&&(n.metric_value=r),n.dimension);return t&&(u.target=t),s&&s.forEach(function(e){u[e[0]]=e[1]}),o&&(u[ke]=!0),n}function qe(i,r,a,o){var s=r,u=1,l=Ge++;return{retry:function(e){s=e,u++},log:function(e,t){var n;et.og&&(null!=a&&ze.push($e(null,i,n=r-a,Te,e-n,l,o,[[De,u],[Ne,t]]),$e(null,i,n,Ce,a,l,o)),ze.push($e(null,i,r,Oe,e-r,l,!1,[[De,u],[Ne,t]]),$e(null,i,s,be,e-s,l,!1,[[Re,u],[Ne,t]])))}}}function Ye(e,t){var n,i;et.os&&(i=e.t,i=nt.trunc(i/6e4),(i=(Fe=Fe||{})[i]||(Fe[i]=[0,0,0]))[2]++,n=(i=i[3]||(i[3]={}))[t],e=_s(e.m,cr),n?n.push(e):i[t]=[e])}function Ke(e){var t,n=Fe[e],i=Ge++;n[2]&&(n[3]&&(t=[[Pe,n[3]]]),ze.push($e(Ae,null,6e4*+e,Me,n[2],i,!1,t)))}function st(e){return e&&(Bt(e)?e.slice():tt.assign({},e))}function Xe(e,t){return Ht(t)?e?tt.assign({},e,t):t:e}function Je(e,t){var n;return t?((n={})[e]=t,n):null}function Qe(n,i){var r;return i?n?(r=st(n),tt.keys(i).forEach(function(e){var t=n[e];r[e]=t?tt.assign({},t,i[e]):i[e]}),r):i:n}function m(e,t,n,i){t=E(e,[t],i);return it(t)?t.apply(e,n):null}function Ct(e,t,n){return function(){try{return t.apply(e,arguments)}catch(e){at(e,n)}}}function Mt(n,e){tt.keys(n).forEach(function(t){e.forEach(function(e){e[t]=Ct(e,n[t],t)})}),e[0]}function Dt(e){var t={};return e.forEach(function(e){t[e.nm]=e}),t}function Rt(e){var t={};return e.forEach(function(e){t[e.nm]=!0}),t}function Nt(e,t,n){e.forEach(function(e){e[t]=n})}function Pt(e,t){var e=new R(e,te),n=new N(e.search);return t(n),e.search="?"+n.toString(),e.toString()}function kt(e){var t,n=Q.length;return n?Pt(e,function(e){for(t=0;t<n;t++)e.append(Q[t][0],Q[t][1])}):e}function Lt(e,t,n){var i;return null!=(i=e?new R(e,te).searchParams.get(t):i)?i:n}We=0,je=et.ec,Be=Ot(rt,"Abnormal clock increment: ",.2,1e3,3e5),t&&t.now,He=We+A.now(),ot=function(e){var t=A.now(),n=He,i=(He=We+t)-n;return(i<0||je<i)&&(He=n+et.ti,We=He-t,Be.log(i)),He};var ut=(()=>{for(var n=[],e=0;e<256;e++)n.push((e+256).toString(16).substr(1).toLowerCase());return function(){var e=new C(16);if(x&&x.getRandomValues)x.getRandomValues(e);else{rt("getRandomValues() not supported");for(var t=0;t<16;t++)e[t]=nt.floor(256*nt.random())}return e[6]=15&e[6]|64,e[8]=63&e[8]|128,n[e[0]]+n[e[1]]+n[e[2]]+n[e[3]]+"-"+n[e[4]]+n[e[5]]+"-"+n[e[6]]+n[e[7]]+"-"+n[e[8]]+n[e[9]]+"-"+n[e[10]]+n[e[11]]+n[e[12]]+n[e[13]]+n[e[14]]+n[e[15]]}})();function wt(e,t,n,i,r,a){var o=new b;if(o.open(e,t,!0),null!=a&&(o.timeout=a),n)for(var s=tt.keys(n),u=0;u<s.length;u++)o.setRequestHeader(s[u],n[s[u]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function lt(e){if(e)try{return D.stringify(e)}catch(e){at(e,"toJSON")}return null}function ct(e){if(e)try{return D.parse(e)}catch(e){at(e,"fromJSON")}return null}function Ut(e,t){return(e===f?_e:me)+t}function _(e,t,n){if(e)if(null==n)Vt(e,t);else try{e.setItem(Ut(e,t),lt({v:n}))}catch(e){at(e,"storageSet")}}function xt(e,t){e=e?ct(e.getItem(Ut(e,t))):null;return e?e.v:null}function Vt(e,t){e&&e.removeItem(Ut(e,t))}Ze.self!==Ze.top&&Tt("Page loaded in a frame, set sessionStorage prefix to: "+(_e+=(o.frame_id||ut())+"."));var Ft=ct('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Wt(e){return"string"==typeof e}function jt(e){return _t.isFinite(e)}function Bt(e){return S.isArray(e)}function Ht(e){return null!=e&&"object"==typeof e&&!Bt(e)}function zt(e){return Wt(e)?e:""+e}function Gt(e){return jt(e=+e)?e:null}function $t(t,n,i){return null==t&&null==n?Gt:function(e){return null!=(e=Gt(e))&&(null!=t&&e<t?e=i?null:t:null!=n&&n<e&&(e=i?null:n)),e}}function qt(e){return nt.round(e)}function Yt(e,t){for(var n=0;n<t.length;n++)!function(e){for(var t=e,n=1;n<arguments.length;n++)t.dv||(t.dv=[]),t.dv.push(arguments[n])}(t[n],e)}function Kt(e,t){if(t)for(var n=0;n<t.length&&null!=e;n++)e=t[n](e);return e}var Xt,Jt,Qt,Zt,en=4,tn=8,nn=16,rn=32,I=65535,an=en,n=1|nn,t=(e=en|nn)|rn,r=tn,on={ap:2,nm:"ad_break_start"},sn={ap:2,nm:"ad_break_end"},un={ap:2,nm:"ad_click"},ln={ap:2,nm:"ad_impression"},cn={ap:2,nm:"ad_skip"},dn={ap:an,nm:"app_session_end"},pn={ap:3,nm:"audio_track_changed"},fn={ap:3,nm:"buffer_start"},mn={ap:3,nm:"buffer_end"},_n={ap:3,nm:"cast_start"},hn={ap:3,nm:"cast_end"},vn={ap:3,nm:"cast_transfer"},En={ap:I,nm:"context_ready"},gn={ap:an,nm:"datazoom_loaded"},yn={ap:3,nm:"error"},Sn={ap:3,nm:"exit_fullscreen"},In={ap:3,nm:"fullscreen"},An={ap:3,nm:"heartbeat"},Tn={ap:3,nm:"media_loaded"},On={ap:1,nm:"media_object_request"},bn={ap:3,nm:"media_request"},Cn={ap:3,nm:"milestone"},Mn={ap:3,nm:"mute"},Dn={ap:3,nm:"pause"},Rn={ap:3,nm:"play_btn"},Nn={ap:3,nm:"playback_start"},Pn={ap:3,nm:"playback_complete"},kn={ap:1,nm:"player_ready"},Ln={ap:3,nm:"playing"},wn={ap:3,nm:"qualified_view"},Un={ap:1,nm:"quality_change_request"},xn={ap:3,nm:"rendition_change"},Vn={ap:3,nm:"resize"},Fn={ap:3,nm:"resume"},Wn={ap:3,nm:"seek_start"},jn={ap:3,nm:"seek_end"},Bn={ap:3,nm:"stall_start"},Hn={ap:3,nm:"stall_end"},zn={ap:3,nm:"stop"},Gn={ap:3,nm:"subtitle_change"},$n={ap:3,nm:"unmute"},qn={ap:3,nm:"volume_change"},Yn=(bn.rtc=0,Nn.rtc=1,Dn.rtc=2,fn.rtc=3,Bn.rtc=4,Wn.rtc=5,xn.rtc=6,Cn.rtc=7,bn.rta=8,Nn.rta=9,fn.rta=10,Bn.rta=11,Cn.rta=12,yn.rta=cn.rta=Pn.rta=13,on.rta=14,sn.rta=15,An.rt=16,fn.rt=17,Bn.rt=18,["event","metrics"]),Kn={ap:n,nm:"bandwidth_kbps"},Xn={ap:n,nm:"buffer_duration_ms"},Jn={ap:n,nm:"buffer_duration_ads_ms"},Qn={ap:n,nm:"buffer_duration_content_ms"},Zn={ap:n,nm:"buffer_fill_percent"},ei={ap:n,nm:"buffer_length_ms"},ti={ap:n,nm:"content_session_start_ts_ms"},ni={ap:3,nm:"current_audio_track"},ii={ap:n,nm:"current_subtitles"},ri={ap:e,nm:"engagement_duration_ms"},ai={ap:e,nm:"engagement_duration_ads_ms"},oi={ap:e,nm:"engagement_duration_content_ms"},si={ap:r,nm:"event_count"},ui={ap:n,nm:"num_ad_break_plays"},li={ap:e,nm:"num_ad_plays"},ci={ap:e,nm:"num_content_plays"},di={ap:e,nm:"num_errors"},pi={ap:e,nm:"num_errors_ads"},fi={ap:e,nm:"num_errors_content"},mi={ap:e,nm:"num_requests_content"},_i={ap:n,nm:"pause_duration_ms"},hi={ap:n,nm:"pause_duration_ads_ms"},vi={ap:n,nm:"pause_duration_content_ms"},Ei={ap:n,nm:"playback_duration_ms"},gi={ap:n,nm:"playback_duration_ads_ms"},yi={ap:2,nm:"playback_duration_ad_session_ms"},Si={ap:n,nm:"playback_duration_content_ms"},Ii={ap:n,nm:"playback_duration_promo_ms"},Ai={ap:3,nm:"playback_rate"},Ti={ap:n,nm:"player_state"},Oi={ap:n,nm:"player_viewable"},bi={ap:n,nm:"player_viewable_percent"},dt={ap:3,nm:"playhead_position_sec"},Ci={ap:n,nm:"playhead_pdt_sec"},Mi={ap:3,nm:"rendition_audio_bitrate_kbps"},Di={ap:3,nm:"rendition_height"},Ri={ap:3,nm:"rendition_name"},Ni={ap:3,nm:"rendition_video_bitrate_kbps"},Pi={ap:3,nm:"rendition_width"},ki={ap:n,nm:"stall_count"},Li={ap:n,nm:"stall_count_ads"},wi={ap:n,nm:"stall_count_content"},Ui={ap:n,nm:"stall_duration_ms"},xi={ap:n,nm:"stall_duration_ads_ms"},Vi={ap:n,nm:"stall_duration_content_ms"},Fi={ap:n,nm:"time_since_last_ad_break_start_ms"},Wi={ap:n,nm:"time_since_last_ad_completed_ms"},ji={ap:n,nm:"time_since_last_buffer_start_ms"},Bi={ap:n,nm:"time_since_last_buffer_start_ad_ms"},Hi={ap:n,nm:"time_since_last_buffer_start_content_ms"},zi={ap:n,nm:"time_since_last_heartbeat_ms"},Gi={ap:n,nm:"time_since_last_milestone_ad_ms"},$i={ap:n,nm:"time_since_last_milestone_content_ms"},qi={ap:n,nm:"time_since_last_pause_ms"},Yi={ap:n,nm:"time_since_last_rendition_change_ms"},Ki={ap:n,nm:"time_since_last_request_ad_ms"},Xi={ap:n,nm:"time_since_last_seek_start_ms"},Ji={ap:n,nm:"time_since_last_stall_start_ms"},Qi={ap:n,nm:"time_since_last_stall_start_ad_ms"},Zi={ap:n,nm:"time_since_last_stall_start_content_ms"},er={ap:n,nm:"time_since_last_started_ad_ms"},tr={ap:n,nm:"time_since_request_content_ms"},nr={ap:n,nm:"time_since_started_content_ms"},ir={ap:n,nm:"volume_level_percent"};Nt([Xn,Jn,Qn,_i,hi,vi,Ei,gi,Si,Ii,ki,Li,wi,Ui,xi,Vi,li,di,pi,fi,ci,mi],"df",0),tr.ts=0,nr.ts=1,qi.ts=2,Hi.ts=3,Zi.ts=4,Xi.ts=5,Yi.ts=6,$i.ts=7,Ki.ts=8,er.ts=9,Bi.ts=10,Qi.ts=11,Gi.ts=12,Fi.ts=14,Wi.ts=13,zi.ts=16,ji.ts=17,Ji.ts=18;var rr=["ops_metadata"],ar=["custom"],or=["vendor"],sr={p:fr=[],ap:t,nm:"configuration_id"},ur={p:fr,ap:t,nm:"connector_list"},lr={p:fr,ap:t,nm:"customer_code"},cr={p:fr,ap:r,nm:"event_id"},dr={p:mr=["event"],ap:r,nm:"timestamp"},pr={p:mr,ap:r,nm:"type"},fr={p:i=["cmcd"],ap:r,nm:"bl"},mr={p:i,ap:r,nm:"br"},_r={p:i,ap:r,nm:"bs"},hr={p:i,ap:r,nm:"cid"},vr={p:i,ap:r,nm:"d"},Er={p:i,ap:r,nm:"dl"},gr={p:i,ap:r,nm:"mtp"},yr={p:i,ap:r,nm:"nor"},Sr={p:i,ap:r,nm:"nrr"},Ir={p:i,ap:r,nm:"ot"},Ar={p:i,ap:r,nm:"pr"},Tr={p:i,ap:r,nm:"rid"},Or={p:i,ap:r,nm:"rtp"},br={p:i,ap:r,nm:"sf"},Cr={p:i,ap:r,nm:"sid"},Mr={p:i,ap:r,nm:"st"},Dr={p:i,ap:r,nm:"su"},Rr={p:i,ap:r,nm:"tb"},i={p:i,ap:r,nm:"v"},Nr={p:a=["event","attributes"],ap:r,nm:"abs_shift"},Pr={p:a,ap:r,nm:"error_code"},kr={p:a,ap:r,nm:"error_msg"},Lr={p:a,ap:r,nm:"inner_error"},wr={p:a,ap:r,nm:"heartbeat_count"},Ur={p:a,ap:r,nm:"milestone_percent"},xr={p:a,ap:r,nm:"qualified_view_sec"},Vr={p:a,ap:r,nm:"seek_start_point_ms"},Fr={p:a,ap:r,nm:"seek_end_point_ms"},Wr={p:a,ap:r,nm:"startup_duration_content_ms"},jr={p:a,ap:r,nm:"startup_duration_total_ms"},Br={p:s=["user_details"],ap:e,nm:"app_session_id"},Hr={p:s,ap:e,nm:"app_session_start_ts_ms"},a={p:s,ap:e,nm:"app_session_end_ts_ms"},zr={p:s,ap:n,nm:"cast_app_session_id"},Gr={p:s,ap:n,nm:"cast_content_session_id"},$r={p:s,ap:t,nm:"client_ip"},qr={p:s,ap:n,nm:"content_session_id"},s={p:s,ap:e,nm:"user_agent"},Yr={p:u=["player"],ap:n,nm:"autostart"},Kr={p:u,ap:n,nm:"casting"},Xr={p:u,ap:n,nm:"controls"},Jr={p:u,ap:n,nm:"default_muted"},Qr={p:u,ap:n,nm:"default_playback_rate"},Zr={p:u,ap:n,nm:"fullscreen"},ea={p:u,ap:n,nm:"loop"},ta={p:u,ap:n,nm:"muted"},na={p:u,ap:n,nm:"player_name"},ia={p:u,ap:n,nm:"player_version"},ra={p:u,ap:n,nm:"preload"},aa={p:u,ap:n,nm:"ready_state"},oa={p:u,ap:n,nm:"streaming_protocol"},sa={p:u,ap:n,nm:"streaming_type"},ua={p:u,ap:n,nm:"subtitles"},u={p:l=["device"],ap:e,nm:"advertising_id"},la={p:l,ap:e,nm:"browser_name"},ca={p:l,ap:e,nm:"browser_height"},da={p:l,ap:e,nm:"browser_version"},pa={p:l,ap:e,nm:"browser_width"},fa={p:l,ap:e,nm:"cookies_enabled"},ma={p:l,ap:t,nm:"device_id"},_a={p:l,ap:e,nm:"device_mfg"},ha={p:l,ap:e,nm:"device_name"},va={p:l,ap:e,nm:"device_type"},Ea={p:l,ap:e,nm:"orientation"},ga={p:l,ap:e,nm:"os_name"},l={p:l,ap:e,nm:"os_version"},ya={p:c=["video"],ap:n,nm:"asset_id"},Sa={p:c,ap:n,nm:"description"},Ia={p:c,ap:n,nm:"duration_sec"},Aa={p:c,ap:n,nm:"frame_rate"},Ta={p:c,ap:n,nm:"media_tags"},Oa={p:c,ap:3,nm:"media_type"},ba={p:c,ap:n,nm:"player_height"},Ca={p:c,ap:n,nm:"player_width"},Ma={p:c,ap:n,nm:"source"},Da={p:c,ap:n,nm:"title"},Ra={p:d=["geo_location"],ap:t,nm:"city"},Na={p:d,ap:t,nm:"country"},Pa={p:d,ap:t,nm:"country_code"},ka={p:d,ap:t,nm:"latitude"},La={p:d,ap:t,nm:"longitude"},wa={p:d,ap:t,nm:"postal_code"},Ua={p:d,ap:t,nm:"region"},xa={p:d,ap:t,nm:"region_code"},Va={p:d,ap:t,nm:"continent"},Fa={p:d,ap:t,nm:"continent_code"},c={p:d,ap:t,nm:"district"},Wa={p:d,ap:t,nm:"timezone_name"},ja={p:d,ap:t,nm:"timezone_offset"},Ba={p:Ya=["network"],ap:t,nm:"asn"},d={p:Ya,ap:t,nm:"asn_org"},Ha={p:Ya,ap:e,nm:"connection_type"},za={p:Ya,ap:t,nm:"isp"},Ga={p:Ya,ap:t,nm:"mobile_connection"},$a={p:rr,ap:r,nm:"context_id"},qa={p:rr,ap:r,nm:"context_name"},Ya={p:rr,ap:e,nm:"dz_dictionary_version"},Ka={p:rr,ap:r,nm:"msg_send_client_ts_ms"},Xa={p:rr,ap:r,nm:"player_context_id"},Ja={p:rr,ap:t,nm:"server_ts_offset_ms"},Qa={p:ho=["page"],ap:e,nm:"collector_name"},Za={p:ho,ap:e,nm:"dz_sdk_version"},eo={p:ho,ap:e,nm:"page_title"},to={p:ho,ap:e,nm:"page_url"},no={p:ho,ap:e,nm:"referrer_url"},io={p:ho,ap:e,nm:"site_domain"},ro={p:p=["ad"],ap:t,nm:"ad_blocker"},ao={p:p,ap:n,nm:"ad_break_id"},oo={p:p,ap:2,nm:"ad_click_url"},so={p:p,ap:2,nm:"ad_creative_id"},uo={p:p,ap:2,nm:"ad_duration_sec"},lo={p:p,ap:2,nm:"ad_id"},co={p:p,ap:2,nm:"ad_partner"},po={p:p,ap:n,nm:"ad_position"},fo={p:p,ap:2,nm:"ad_session_id"},mo={p:p,ap:2,nm:"ad_system"},_o={p:p,ap:2,nm:"ad_time_offset_sec"},ho={p:p,ap:e,nm:"ad_tracking_opt_out"},vo={p:p,ap:2,nm:"advertiser_name"},Eo={p:p,ap:2,nm:"deal_id"},go={p:p,ap:2,nm:"skip_time_offset_sec"},yo={p:p,ap:2,nm:"wrapper_creative_ids"},So={p:p,ap:2,nm:"wrapper_id"},Io={p:p,ap:2,nm:"wrapper_systems"},t={p:["cdn"],ap:n,nm:"cdn"},Ao=(Eo.df="",Nt([yo,So,Io],"df",[]),Yt(function(e){return!!e},[ro,ho,Yr,_r,Kr,Xr,fa,Jr,Zr,ea,Ga,ta,Dr,ua,Oi]),Yt(function(e){Bt(e)||(e=[e]);for(var t=0;t<e.length;t++)e[t]=zt(e[t])||"";return e},[yo,So,Io]),Yt(null==Xt&&null==Jt?zt:function(e){var t;return null!=(e=zt(e))&&(t=e.length,null!=Xt&&t<Xt?e=null:null!=Jt&&Jt<t&&(e=Qt?null:e.slice(0,Jt))),e},[Nr,ao,oo,so,lo,co,po,fo,mo,vo,u,Br,Ba,d,ya,la,da,zr,Gr,t,hr,Ra,$r,sr,ur,qr,Va,Fa,Na,Pa,lr,Eo,Sa,ma,_a,ha,va,c,Za,Pr,kr,cr,Lr,za,Oa,yr,Sr,Ea,ga,l,Ir,eo,to,Xa,na,ia,wa,ra,no,Ua,xa,Tr,br,Cr,io,Ma,Mr,oa,sa,Wa,Da,pr,s,ni,ii,Ti,Ri]),Yt($t(0,100),[Zn,bi,ir]),Yt($t(0,1e9,!0),[Kn]),Yt($t(),[uo,_o,a,Hr,fr,mr,ca,pa,vr,Qr,Er,Ia,Aa,wr,ka,La,Ur,gr,ba,Ca,Ar,xr,aa,Or,Fr,Vr,Ja,go,Wr,jr,Rr,dr,ja,i,Jn,Qn,Xn,ei,ti,ai,oi,ri,si,ui,li,ci,di,pi,fi,mi,hi,vi,_i,gi,yi,Si,Ei,Ii,Ai,dt,Mi,Di,Ni,Pi,ki,Li,wi,xi,Vi,Ui,Fi,Wi,Bi,Hi,ji,zi,Gi,$i,qi,Yi,Ki,Xi,Qi,Zi,Ji,er,tr,nr]),Yt(0==(e=5)?qt:(Zt=nt.pow(10,e),function(e){return nt.round(e*Zt)/Zt}),[uo,_o,a,Hr,fr,mr,ca,pa,vr,Qr,Er,Ia,Aa,wr,ka,La,Ur,gr,ba,Ca,Ar,xr,aa,Or,Fr,Vr,Ja,go,Wr,jr,Rr,dr,ja,i,Kn,Jn,Qn,Xn,Zn,ei,ti,ai,oi,ri,si,ui,li,ci,di,pi,fi,mi,hi,vi,_i,gi,yi,Si,Ei,Ii,Ai,bi,dt,Mi,Di,Ni,Pi,ki,Li,wi,xi,Vi,Ui,Fi,Wi,Bi,Hi,ji,zi,Gi,$i,qi,Yi,Ki,Xi,Qi,Zi,Ji,er,tr,nr,ir]),[on,sn,un,ln,cn,dn,pn,fn,mn,_n,hn,vn,En,gn,yn,Sn,In,An,Tn,On,bn,Cn,Mn,Dn,Rn,Nn,Pn,kn,Ln,wn,Un,xn,Vn,Fn,Wn,jn,Bn,Hn,zn,Gn,$n,qn]),To=Dt(Ao);function Oo(e,t){return X+e+"_"+t}function bo(e,t){var n,i=Rt(Ao),r={},a={};e?0<e.length?(e=Wt(n=et.tt&&o.beta_ev)?e.concat(n.split(".").map(function(e){return{name:e,media_types:["na"]}})):e).forEach(function(e){var t,n=e&&e.name;n&&i[n]?(e=e.media_types)&&0<e.length&&(r[n]=!0,"na"!=e[0])&&(t={},e.forEach(function(e){t[e]=!0}),a[n]=t):rt("Unknown event: "+n)}):t&&rt("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,Ao.forEach(function(e){e.on=!(r&&!r[e.nm]),e.mm=a&&a[e.nm]})}bo(),Nt([li,di,pi,fi,ci,mi],"st",f);var Co=[Kn,Xn,Jn,Qn,Zn,ei,ti,ni,ii,ri,ai,oi,si,ui,li,ci,di,pi,fi,mi,_i,hi,vi,Ei,gi,yi,Si,Ii,Ai,Ti,Oi,bi,dt,Ci,Mi,Di,Ri,Ni,Pi,ki,Li,wi,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,zi,Gi,$i,qi,Yi,Ki,Xi,Ji,Qi,Zi,er,tr,nr,ir],Mo=[],Do=(Co.forEach(function(e){null!=e.ts&&Mo.push(e)}),[]),Ro=[];function No(e){var t,n=Rt(Co),i={};e?(e=Wt(t=et.tt&&o.beta_fd)?e.concat(t.split(".")):e).forEach(function(e){n[e]?i[e]=!0:rt("Unknown flux data: "+e)}):i=null,Do=[],Ro=[],Co.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Ro:Do).push(e)})}No(),Nt([Br,Hr],"st",f);var Po,ko,Lo,wo,Uo=[na,ia,u,Da,ya,sa,Kr],xo={},Vo=(Uo.forEach(function(e){xo[e.nm.toUpperCase()]=Y+e.nm}),[sr,ur,lr,cr,dr,pr,fr,mr,_r,hr,vr,Er,gr,yr,Sr,Ir,Ar,Tr,Or,br,Cr,Mr,Dr,Rr,i,Nr,Pr,kr,Lr,wr,Ur,xr,Vr,Fr,Wr,jr,Br,Hr,a,zr,Gr,$r,qr,s,Yr,Kr,Xr,Jr,Qr,Zr,ea,ta,na,ia,ra,aa,oa,sa,ua,u,la,ca,da,pa,fa,ma,_a,ha,va,Ea,ga,l,ya,Sa,Ia,Aa,Ta,Oa,ba,Ca,Ma,Da,Ra,Na,Pa,ka,La,wa,Ua,xa,Va,Fa,c,Wa,ja,Ba,d,Ha,za,Ga,$a,qa,Ya,Ka,Xa,Ja,Qa,Za,eo,to,no,io,ro,ao,oo,so,uo,lo,co,po,fo,mo,_o,ho,vo,Eo,go,yo,So,Io,t]),Fo=Dt(Vo),Wo=Vo.concat(Co),jo=[cr],Bo=[],Ho=[];function zo(e){var t,n=Rt(Vo),i={};Po=ko=Lo=wo=!1,e?((e=Wt(t=et.tt&&o.beta_md)?e.concat(t.split(".")):e).forEach(function(e){n[e]?i[e]=!0:"custom_metadata_all"==e?Po=!0:"custom_events_all"==e?ko=!0:"vendor_metadata_all"==e?Lo=!0:"vendor_events_all"==e?wo=!0:rt("Unknown metadata: "+e)}),jo.forEach(function(e){i[e.nm]=!0})):Po=ko=Lo=wo=!(i=null),Bo=[],Ho=[],Vo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Ho:Bo).push(e)})}zo();var Go="ad",$o=/^live$/i,qo="DASH",Yo="Flash",Ko={"application/x-mpegURL":"HLS","application/dash+xml":qo,"application/vnd.ms-sstr+xm":"Smooth","video/x-flv":Yo,"video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"},p=[[/Opera\/([\d.]+)/,"Opera"],[/OPR\/([\d.]+)/,"Opera"],[/Edge\/([\d.]+)/,"Microsoft Edge"],[/Edg\/([\d.]+)/,"Microsoft Edge"],[/MSIE ([\d.]+)/,"Microsoft Internet Explorer"],[/Trident\/.*rv:([\d.]+)/,"Microsoft Internet Explorer"],[/Seamonkey\/([\d.]+)/,"Seamonkey"],[/Firefox\/([\d.]+)/,"Firefox"],[/Chromium\/([\d.]+)/,"Chromium"],[/Chrome\/([\d.]+)/,"Chrome"],[/Safari\/([\d.]+)/,"Safari"]],n=[[/Windows 10\.0|Windows NT 10\.0/,"Windows 10"],[/Windows 8\.1|Windows NT 6\.3/,"Windows 8.1"],[/Windows 8|Windows NT 6\.2/,"Windows 8"],[/Windows 7|Windows NT 6\.1/,"Windows 7"],[/Windows NT 6\.0/,"Windows Vista"],[/Windows NT 5\.2/,"Windows Server 2003"],[/Windows NT 5\.1|Windows XP/,"Windows XP"],[/Windows NT 5\.0|Windows 2000/,"Windows 2000"],[/Win 9x 4\.90|Windows ME/,"Windows ME"],[/Windows 98|Win98/,"Windows 98"],[/Windows 95|Win95|Windows_95/,"Windows 95"],[/Windows NT 4\.0|WinNT4\.0|WinNT|Windows NT/,"Windows NT 4.0"],[/Windows CE/,"Windows CE"],[/Win16/,"Windows 3.11"],[/Tizen/,"Tizen"],[/Android/,"Android"],[/OpenBSD/,"Open BSD"],[/SunOS/,"Sun OS"],[/Linux|X11/,"Linux"],[/iPhone|iPad|iPod/,"iOS"],[/Mac OS X/,"Mac OS X"],[/MacPPC|MacIntel|Mac_PowerPC|Macintosh/,"Mac OS"],[/QNX/,"QNX"],[/UNIX/,"UNIX"],[/BeOS/,"BeOS"],[/OS\/2/,"OS/2"],[/nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver/,"Search Bot"]],e=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],Xo=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function Jo(e,t,n){t&&n.push(e)}function h(e,t,n){n.push(e+"="+t)}function Qo(e,t,n){n.push(e+(o.cmcd_ntq?"="+t:'="'+t+'"'))}function Zo(e,t,n){n.push(e+'="'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function es(e){return"false"!==e}function ts(e){return+e}function ns(e){return e.replace(/"/g,"")}function is(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var rs,as,os={bl:[0,[h,ts],fr],br:[1,[h,ts],mr],bs:[2,[Jo,es],_r],cid:[3,[Zo,is],hr],d:[1,[h,ts],vr],dl:[0,[h,ts],Er],mtp:[0,[h,ts],gr],nor:[0,[Zo,is],yr],nrr:[0,[Zo,is],Sr],ot:[1,[Qo,ns],Ir],pr:[3,[h,ts],Ar],rtp:[2,[h,ts],Or],sf:[3,[Qo,ns],br],sid:[3,[Zo,is],Cr],st:[3,[Qo,ns],Mr],su:[0,[Jo,es],Dr],tb:[1,[h,ts],Rr],v:[3,[h,ts],i]},ss={bs:!1,su:!1,v:1,pr:1},us="org.svalabs-";function ls(e){for(var t,n,i=[[],[],[],[]],r=tt.keys(e),a=0;a<r.length;a++)t=r[a],(n=os[t])&&n[3]&&n[1][0](t,e[t],i[n[0]]);return i}function cs(e){var t,n=tt.keys(os);for(rs=!1,as="header"===(gt.options.cmcdMode||o.cmcd_mode),t=0;t<n.length;t++)os[n[t]][3]=!1;if(e&&Bt(e)&&0<e.length)if(rs=!0,"na"==e[0])for(t=0;t<n.length;t++)os[n[t]][3]=!0;else e.forEach(function(e){var t=os[e];t?t[3]=!0:rt("Unknown CMCD key: "+e)})}function ds(e,t,n){for(var i,r,a=tt.keys(e),o=0;o<a.length;o++)delete e[a[o]];for(o=0;o<t.length;o++)0!=((i=t[o]).ap&n)&&null!=(r=null==(r=(r=i.st||i.se)&&xt(r,i.nm))?i.df:r)&&(e[i.nm]=r)}function ps(e,t,n,i){for(var r,a,o,s,u=0;u<i.length;u++)o=(a=(r=i[u])[0]).nm,0!=(a.ap&n)?(s=t[o])&&s(r)||(e[o]=r[1],(s=a.st||a.on&&a.se)&&_(s,o,r[1])):rt("Setting inapplicable data",a)}function fs(e,t){return e[t.nm]}function ms(e,t,n,i,r){var a,o=[];return n&&o.push([n,a=t(n)+i]),r&&o.push([r,t(r)+i]),e(o),a}function pt(e,t,n){if(t)for(var i,r,a=0;a<t.length;a++)if(r=e[i=t[a]])e=r;else{if(n)return null;e=e[i]={}}return e}function _s(e,t){e=pt(e,t.p||Yn,!0);return e&&e[t.nm]}function hs(e,t,n,i){for(var r,a,o,s=0;s<t.length;s++)0!=((r=t[s]).ap&n)&&null!=(o=Kt(e[a=r.nm],r.dv))&&(pt(i,r.p)[a]=o)}os[us+"rid"]=[0,[Zo,is],Tr],os[us+"tid"]=[0,[Zo,is]],os[us+"cmi"]=[0,[h,ts]],os[us+"pmi"]=[0,[h,ts]],cs();var vs,Es,gs,ys,Ss,Is,As,Ts,Os,bs,Cs,Ms,Ds,Rs,Ns,Ps,ks,v,Ls={},ws={},Us=xt(f,ge)||[],xs=[],Vs=1,Fs=2,Ws=4,js=Ws,Bs=Fs|Vs|js,Hs=0,zs=[];function Gs(e){return null!=e?6e4*e:12e5}function $s(e,t){if(!Bs&&0<Us.length){for(var n,i=ot(),r=0,a=0;a<Us.length;a++)Us[a].p&&(n=!0,hs(Ls,Bo,rn,Us[a].m)),r=nt.max(r,i-Us[a].t);Ms&&tu(Us,0,qe(Ue,i,r,n),e),t=!0}t&&(Us=[],Vt(f,ge)),As=null}function qs(e){(Bs&=~e)||null!=As||$s()}function Ys(e,t,n,i,r,a,o,s,u){if(4==e.readyState){var l=ot(),c=e.status;if(t+=" status: "+c+", ",0==c||429==c||500<=c&&c<=599){a=a[r++];if(null!=a)return W(function(){o.retry(ot()),n(i,r,o)},1e3*a),void rt(t+"retry #"+r+" after "+a+"s")}o.log(l,c),!(c<200||299<c||s&&!s(e,l))||u&&u(t,c)||rt(t+"failed")}}function Ks(t,n,i){Os=wt("POST",kt(et.sm),{"Content-Type":"application/json","cache-control":"no-cache"},t,function(e){4==e.readyState&&(Os=null,Ys(e,"Sampling API",Ks,t,n,et.rd,i,function(e){e=ct(e.responseText);if(bs=e&&e[et.ss+"_sampling"])return Ms=bs.in_sample,Cs=!1,qs(Fs),_(f,ye,bs),!0},function(e){return Ms=Cs=!0,qs(Fs),rt(e+"forced in"),!0}))})}function Xs(){var e;!Ts||Bs&Vs||(et.sw&&et.sm?(et.sp,(e=Fo[et.sd])&&(Ts.sampling_definition_params={namespace:et.ss,key_name:e.nm,key_value:iu(e)}),(e=Fo[et.sc])&&(Ts.sampling_criteria_params={sampling:{key_name:e.nm,key_value:iu(e)}}),Ts.sampling_override=o.sampling_override||"NONE",Ts.sampling_request_id=ut(),Ks(lt(Ts),0,qe(Le,ot()))):(Ms=!0,qs(Fs)),Ts=null)}function Js(i,t,n){var e,r;et.ci?(et.tt&&(et.mf=o.mock_config||et.mf),Tt("Get config from "+(e=et.mf||Pt(kt("https://"+et.cf+"platform.datazoom.io/beacon/v2/config"),function(e){e.append(ne,et.ci)}))),r=ot(),wt("GET",e,null,null,function(e){Ys(e,"Config API",Js,i,t,et.rd,n,function(e,t){var n=ct(e.responseText);if(n)return i(n,e.getResponseHeader("dz-extra"),r,t),!0},function(e,t){t<400||429==t||499<t||(et.om=!1),i()})})):(rt("Missing configuration ID"),et.om=!1,i())}function Qs(){Js(function(e,t,n,i){et.st=null,e&&function i(r,a){Ht(r)?tt.keys(r).forEach(function(e){var t=r[e],n=a[e];Ht(n)?i(t,n):null==n?At("Unknown config key: "+e):null==t?At("Undefined config key: "+e):n&&(et[n]=t)}):rt("Invalid config object",r)}(e,Z),_(f,Se,et.st),et.st=Gs(et.st),bo(et.ev,e),No(et.fd),zo(et.md),cs(et.cd),et.og||(ze=[]),et.os||(Fe=null),m(et.cm,"sort"),m(et.am,"sort"),m(et.cq,"sort"),m(et.aq,"sort"),nu([[lr,et.cc],[ur,et.cl]]),xs.forEach(function(e){var t,n,i,r,a,o=!1,s=_s(e.m,pr),u=To[s];u?o=u.on:s.startsWith(K)?o=ko:s.startsWith(X)&&(o=wo),o&&(t=e.m,n={},Bo.concat(Ho).forEach(function(e){null!=(i=_s(t,e))&&(pt(n,e.p)[e.nm]=i)}),r=pt(t,Yn),a=pt(n,Yn),Do.concat(Ro).forEach(function(e){null!=(i=_s(r,e))&&(a[e.nm]=i)}),Po&&(i=pt(t,ar,!0))&&tt.assign(pt(n,ar),i),Lo&&(i=pt(t,or,!0))&&tt.assign(pt(n,or),i),Zs(n,a),e.m=n,Us.push(e))}),_(f,ge,Us),xs=[];var r,e=ma.nm,e=(ma.on?(r=xt(y,e))||(r=ut(),_(y,e,r)):Vt(y,e),nu([[ma,r]]),t);try{var a,o,s,u,l,c=e&&ct(atob(e));c?(a=c.latitude,o=c.longitude,s=c.timezone_offset,l=(u=c.time_sync)&&+u,nu([[$r,c.client_ip],[Ga,c.mobile_connection],[Ba,c.asn],[xa,c.region_code],[Ua,c.region],[Pa,c.country_code],[Na,c.country],[wa,c.postal_code],[Ra,c.city],[ka,a?+a:null],[La,o?+o:null],[Va,c.continent],[Fa,c.continent_code],[Wa,c.timezone_name],[ja,null!=s?s/3600:null]]),l&&nu([[Ja,nt.round(l-(n+i)/2)]])):rt("Missing or invalid dz-extra header")}catch(e){at(e,"processDzExtra")}et.ab&&ro.on&&null==iu(ro)?wt("GET",kt(et.ab),null,null,function(e){4==e.readyState&&(nu([[ro,!e.status]]),qs(Ws))}):qs(Ws),qs(Vs),Xs(),W(function(){qs(js),Xs()},et.mh)},0,qe(we,ot()))}function Zs(e,t){var n=""+(Ss+1e7);pt(e,cr.p)[cr.nm]=gs+"_"+n.substr(-7,2)+"."+n.substr(-5),_(f,he,++Ss),si.on&&(t[si.nm]=Ss)}function eu(e,t,n,i,r,a,o){var s,u,l,c,d,o=o?en:nn,p=pt(e,Yn);for(hs(Ls,Bo,o,e),hs(Ls,Do,o,p),(i=i||[]).push([pr,t],[dr,n]),s=0;s<i.length;s++)u=(l=i[s])[0],l[2]||0!=(u.ap&tn)?u.on&&null!=(l=Kt(l[1],u.dv))&&(pt(e,u.p)[u.nm]=l):rt("Invalid event data",u);Po&&(o=Xe(vs,r),t=e,r=lt(o),d=r?r.length:0,(c=et.ml)&&c<d?rt("Custom metadata size: "+d+" > "+c):2<d&&(o=ct(r))&&tt.assign(pt(t,ar),o)),Lo&&(c=Qe(Es,a),d=e,c)&&tt.assign(pt(d,or),c),yt&&bt("evInfo",e),!(de<ue)&&et.le&&et.le(e)||(r={p:Bs,m:e,t:n},Bs&Vs?xs.push(r):(Zs(e,p),Us.push(r),_(f,ge,Us),null==As&&(As=W($s,et.bd))))}function tu(n,t,i,e){var r,a=n.map(function(e){return e.m}),o=(a.forEach(function(e,t){var n,i=pt(e,rr);Ka.on&&(pt(e,Ka.p)[Ka.nm]=ot()),bs&&(i[et.ss+"_sampling"]=bs),null!=Cs&&(i[et.ss+"_forced_sampling_in"]=Cs),t||(r=i[Ie],Fe&&(tt.keys(Fe).forEach(Ke),Fe=null),ze.length&&(r=r?r.concat(ze):ze,ze=[],r.length>et.mc&&(r.sort(function(e,t){return e.batch()>t.batch()?1:-1}),n=r[r.length-et.mc-1].batch(),r=r.filter(function(e){return e.batch()>n})),i[Ie]=r))}),kt(et.mb)),a=lt(a);e&&w.sendBeacon&&w.sendBeacon(o,a)||wt("POST",o,{"Content-Type":"application/json"},a,function(e){Ys(e,"Message post",tu,n,t,et.rd,i,null,function(e,t){n.forEach(function(e){Ye(e,t)}),r&&(ze=r.concat(ze))})})}function nu(e){ps(Ls,ws,en,e)}function iu(e){return Ls[e.nm]}function ru(e){if(vl&&(vl=!1,ou(gn,e)),!gs||!ys||(t=e,n=et.st,t<Is&&rt("Activity time reversal: "+Is+" -> "+t),0<=n&&(t<Is||Is+n<=t))){$s(!(xs=[]),!0);n=e,t=zs[Hs];if(gs=ut(),ys=Is=n,nu([[Br,gs],[Hr,ys],[li,Ss=0],[di,0],[pi,0],[fi,0],[ci,0],[mi,0]]),_(f,he,Ss),_(f,ve,Is),Vt(f,ye),Os&&Os.abort(),Os=bs=null,Ms=Cs=null,Bs|=Fs,Ts={},Xs(),it(t))try{t()}catch(e){at(e,"onAppSessionStart")}}else _(f,ve,Is=e);var t,n;nu([[ri,e-ys],[pa,Ze.outerWidth],[ca,Ze.outerHeight],[eo,vt.title],[to,L.href],[no,vt.referrer],[io,L.hostname],[fa,w.cookieEnabled]])}function au(e,t,n){ms(nu,iu,e,t,n)}function ou(e,t,n,i,r){0!=(e.ap&en)?(ru(t),e.on&&eu({},e.nm,t,n,i,r,!0)):rt("Event inapplicable: "+e.nm+", ss",e)}function su(t,n){var i,r;t&&Uo.forEach(function(e){i=Y+e.nm,null!=(r=t[i])&&(n([[e,r]]),delete t[i])})}if(ds(Ls,Wo,en),gs=iu(Br),ys=iu(Hr),Ss=xt(f,he)||0,Is=xt(f,ve)||0,bs=xt(f,ye),vs=xt(f,Ee),Es=xt(f,"__ss_vendor_md"),et.st=Gs(xt(f,Se)),bs?(Ms=bs.in_sample,Cs=!1,qs(Fs)):Ts={},p.some(function(e){if(v=e[0].exec(U))return Ds=e[1],Rs=v[1],!0})||(v=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(U))&&(Ds=v[1],Rs=v[2]),(v=/Version\/([\d.]+)/.exec(U))&&(Rs=v[1]),n.some(function(e){if(e[0].test(U))return Ns=e[1],!0})){switch(v=null,Ns){case"Mac OS X":v=/Mac OS X (10[\d._]+)/.exec(U);break;case"Android":v=/Android ([\d._]+)/.exec(U);break;case"iOS":v=/OS (\d+_\d+(_\d+)?)/.exec(U);break;case"Tizen":v=/Tizen[ \/]([\d._]+)/.exec(U);break;default:(v=/Windows (.*)/.exec(Ns))&&(Ns="Windows")}v&&(Ps=v[1].replace(/_/g,"."))}else Ns=Ps="-";e.some(function(e){if(e[0].test(U))return ks=e[1],!0}),nu([[s,U],[la,Ds],[da,Rs],[ga,Ns],[l,Ps],[va,ks],[Qa,et.cn],[Za,et.sv],[Ya,3]]);var uu="baseContext",lu="contextType",cu="contextName",du="metadata",pu=0,fu=["base","player"],ft={},mu=[];function _u(e){if(!e.destroyed){e.setTimer(null);try{var t=e.destroyCallback;t&&t()}catch(e){at(e,"onDestroy")}delete ft[e.id],e.removeListeners(),e.destroyed=!0}}function hu(e,t,n,i,r,a,o){(r=r||[]).push([$a,e.id],[qa,e.name]),eu(t,n,i,r,Xe(e.customMetadata,a),Qe(e.vendorMetadata,o))}function vu(e,t){return!(null!=t&&!Ht(t)||(e.customMetadata=ct(lt(t)),0))}function Eu(e){var t=st(Ls);return t._c_=Xe(vs,e.customMetadata),t._v_=Qe(Es,e.vendorMetadata),t}function gu(){var n,l=[],i={},a={id:ut(),type:pu,destroyed:!1,destroyCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(e,t,n){if(a.destroyed)return rt(e+" after destroyed"+(t?": "+t:""),n),!0},onDestroy:function(e){a.destroyCallback=e},setTimer:function(e){var t;n&&(0<=(t=mu.indexOf(n))&&mu.splice(t,1),n=null),e&&(mu.push(e),n=e)},fireEvent:function(e,t,n,i,r){a.shallBlock("fireEvent",e.nm,e)||(ru(t),e.on&&hu(a,{},e.nm,t,n,i,r))},fireVendorEvent:function(e,t,n){a.fireEvent({ap:I,nm:Oo(e,t),on:wo},ot(),null,null,Je(e,n))},addListener:function(e,t,n,i,r){if(e&&t){var a=e[i=i||"addEventListener"];if(it(a)){u=Ct(e,n,s="listener: "+(s=t));var o=de<le?u:function(){Ve(s,arguments),u.apply(null,arguments)};try{"-"===t?a.call(e,o):a.call(e,t,o),l.push([e,t,n,o,r||"removeEventListener"])}catch(e){at(e,"addListener: "+t)}}else rt("Invalid add-listener method: "+i,e)}var s,u},removeListeners:function(r,a,o){l=l.filter(function(e){var t=e[0],n=e[1];if(r&&r!=t||a&&a!=n||o&&o!=e[2])return!0;var i=t&&t[e[4]];if(it(i))try{"-"===n?i.call(t,e[3]):i.call(t,n,e[3])}catch(e){}else rt("Invalid remove-listener method: "+e[4],t)})},stash:function(e,t,n){i[e]=[t,n]},unstash:function(e){e.forEach(function(t){var e=i[t];if(e){delete i[t];try{e[0].apply(null,e[1])}catch(e){at(e,"unstash: "+t)}}})}},e={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return fu[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){_u(a)},setMetadata:function(e){return vu(a,e)},getMetadata:function(){return ct(lt(a.customMetadata))},generateEvent:function(e,t){a.fireEvent({ap:I,nm:K+e,on:ko},ot(),null,t)},dumpDzData:function(e){var t=ct(lt(Eu(a)));return null==e?t:t[e]}};return a.basePublicMethods=e,a.publicContext=st(e),ft[a.id]=a}function yu(e){return et.sn&&et.sn[e]||""+e}var Su,Iu,Au,Tu,mt=[],Ou="idle",bu=(mt[2]=mt[9]="buffering",mt[3]=mt[10]="playing",mt[4]=mt[11]="paused",mt[5]=mt[12]="seeking",mt[6]="ended",mt[0]=mt[7]=mt[8]=Ou,function(U,x,r){var i,a,o,V,F,W,j,p={},B={},E={},H={},z={},G={},$=[],q=[],Y=[],K=[],X=[],J=[],Q=[],f=[],Z=ut(),m=(w=r[uu],(e=(e=Ht(w)&&it(w.contextID)&&w.contextID())&&Wt(e)&&ft[e])&&e.type==pu&&e.publicContext===w?e:(null!=w&&rt("Invalid contextOptions."+uu,w),gu())),e=r[cu],s=(null!=e&&(m.name=e),(w=r["adapterID"])&&Wt(w)&&_l[w]||(null!=w&&rt("Adapter not found for id: "+w),Su)),u=r["adapterOptions"];function ee(){if(o){for(var e,t=tt.keys(o),n=ot(),i=0;i<t.length;i++)k((e=o[t[i]]).ev,n,e.dl);o=null}}function g(e,t,n){(o=o||{})[n||e.nm]={ev:e,dl:t}}function _(e){ps(p,B,1,e)}function y(e){ps(E,H,2,e)}function S(e,t){return fs(t?E:p,e)}function te(e){return E[e.nm]}function ne(){var e=S(na),t=S(ia);ds(p,Wo,1),_([[Oa,"content"],[na,e],[ia,t]])}function ie(){ds(E,Wo,2),y([[Oa,"ad"]])}function t(e,t){B[e.nm]=t}function re(e,t){H[e.nm]=t}function ae(e,t){G[e.nm]=t}function n(e,t,n,i){for(var r=[],a=0;a<t.length;a++)r[t[a]]=!0;Q[e]={tr:r,en:n,ex:i}}u=Ht(u)?st(u):{},s&&(W=s[2],j=s[3],tt.assign(u,s[4]||{}),V=u[fl],F=u[ml],(u[pl]||[]).forEach(function(e){z[e[0].nm]=e[1]})),U&&tt.keys(ft).some(function(e){e=ft[e];if(1==e.type&&e.player===U)return e.publicContext.destroy(),!0});var oe,l,se,ue,le,c,ce,de,I,pe,fe,A,me,T,O,_e,he,ve,Ee,ge,b,C,ye,Se,d,h,M,D,Ie,Ae,R,N,Te,v=0,Oe=Ou,be=1,Ce=ot(),Me=Ot(rt,"Abnormal duration increment: ",1,1e3,3e5);function De(){return 2==be}function Re(){return!!T&&T.type===Go}function Ne(e){I=e+et.hi,Tt("Heartbeats started")}function Pe(){I&&Tt("Heartbeats stopped"),I=0}function P(e,t,n){return ms(_,S,e,t,n)}function ke(e){var t=e-Ce;t<0||t>et.ed?Me.log(t):0<t&&(4==v?P(vi,t,_i):11==v?P(hi,t,_i):2==v?(l&&P(Vi,t,Ui),P(Qn,t,Xn)):9==v&&(l&&P(xi,t,Ui),P(Jn,t,Xn))),Ce=e}function Le(e,t){null!=e&&(f[e]=t)}function k(t,n,i,e,r,a){if(!m.shallBlock("fireEvent",t.nm,t))if(a=a||(Re()?2:be),0!=(t.ap&a)){if(ru(n),(i=i||[]).push([Xa,m.id]),Te||(Te=!0,(u=Y.some(function(e){try{return e(n,i,t,a)}catch(e){at(e,"extEventHandler")}}))||(u=(l=G&&G[t.nm])&&l(n,i,t,a)),Te=!1),!u){ke(n);for(var o,s,u,l,c=[[Ti,Oe]],d=0;d<Mo.length;d++)s=f[(o=Mo[d]).ts],c.push([o,s?n-s:0]);_(c),null==S(Kn)&&Et&&(l=Et.downlink)&&_([[Kn,1e3*l]]),Le(t.rt,n),Le(2==a?t.rta:t.rtc,n),!t.on||t.mm&&!t.mm[S(Oa,2==a)]||(l=pt(u={},Yn),2==a?(hs(E,Bo,2,u),hs(E,Do,2,l),hs(p,Bo,nn,u),hs(p,Do,nn,l)):(hs(p,Bo,1,u),hs(p,Do,1,l),hs(E,Bo,nn,u),hs(E,Do,nn,l)),hu(m,u,t.nm,n,i,e,r))}}else rt("Event inapplicable: "+t.nm+", "+a,t)}function we(e){var t=e[1];t&&t!=S(e[0])&&g(vn)}function Ue(e,t){var n=3==t?b:C;if(e!=n){var i,r,a,o,s,u,l,c,d=ot();if(I||Ne(d),pe=!0,3==t){if(s=V||et.mp,b=e,a=d-ye,ye=d,i=S(Ia),A){var p,f=T;if(null==_e&&0<i&&(p=A.locate(i),_e=(p.type?p.start:i)-p._e),i=_e,O&&n>=O.start&&n<=O.end||(O=A.locate(n)),(T=T&&e>=T.start&&e<=T.end?T:A.locate(e))&&(u=T.type,l=T.start,c=T._d),T!=f&&(p=N<=e&&e<N+s,u===Go?R!==l&&c&&((null==R?We:(p&&k(Pn,d),ze))(d),R=l,N=T.end,Be(),y(c.concat([[uo,N-R]])),He(d,T._a),k(ln,d,null,null,null,2),C=0,Se=d):null!=R&&(p&&k(Pn,d,null,null,null,2),ze(d),je(d))),u===Go)return void(c&&(Ue(f=e-l,10),E[dt.nm]=f))}de||(r=he=!he&&et.cm?et.cm.slice():he)}else s=F||et.mp,C=e,a=d-Se,Se=d,i=te(uo),r=ve=!ve&&et.am?et.am.slice():ve;if(null!=n&&null!=e&&0<=n&&n<e&&e<=n+s){if(0<i&&r)for(var m,_,h=0,v=3==t&&O&&T?(_=((O.type?O.start:n)-O._e)/i,((u?l:e)-T._e)/i):(_=n/i,e/i);h<r.length&&!(v<(m=r[h]/100));)_<m?(r.splice(h,1),g(Cn,[[Ur,100*m]],Cn.nm+m)):h++;if(3==t){if(M=e,a<0||a>et.ed)Me.log(a);else if(0<a)if(u)P("promo"===u?Ii:null,a,Ei);else if(i=P(Si,a,Ei)/1e3,et.cq)for(Ee=Ee||et.cq.slice();null!=(o=Ee[0])&&o<=i;)Ee.shift(),g(wn,[[xr,o]],wn.nm+o)}else if(D=e,a<0||a>et.ed)Me.log(a);else if(0<a&&(P(gi,a,Ei),i=ms(y,te,yi,a)/1e3,et.aq))for(ge=ge||et.aq.slice();null!=(o=ge[0])&&o<=i;)ge.shift(),g(wn,[[xr,o]],wn.nm+o)}}}function xe(e,t){null==d&&null!=e&&null!=M&&e!=M&&(d=M,k(Wn,t||ot()))}function Ve(e,t){null==h&&null!=e&&null!=D&&e!=D&&(h=D,k(Wn,t||ot()))}function Fe(e){oe&&k(zn,e),oe=se=!1,be=1,d=M=null,Pe()}function We(e){var t,n,i="pre";S(Si)>1e3*et.ep&&(t=S(dt),n=S(Ia),i=null!=t&&null!=n&&t+et.ep>n?"post":"mid"),ue=c=ce=!1,ie(),_([[ao,ut()],[po,i],[ui,0]]),k(on,e)}function je(e){Ie+=e-f[14],k(sn,e,null,null,null,2),_([[ao,null],[po,null],[ui,null]])}function Be(){ce||(ce=!0,y([[fo,a||ut()],[yi,0]]),a=null)}function He(e,t){var n=zs[3];if(ue=!0,ve=ge=null,au(li,1),P(ui,1),it(n))try{n(i,t)}catch(e){at(e,"onAdStart")}k(Nn,e)}function ze(e){if(ue){var t=zs[4];if(Ae+=e-f[9],it(t))try{t(i)}catch(e){at(e,"onAdEnd")}}ue=c=ce=!1,h=D=R=N=null,ie()}function Ge(e,t,n,i){var r,a,o,s;e!=v&&(o=Q[v],r=yu(v)+" => "+yu(e),a=mt[e]||Oe,m.shallBlock("setState",r)||(o.tr[e]?(Tt("state: "+r+" ("+a+")"),(o=o.ex)&&o(t,e,n,i),ke(t),s=v,Oe=a,(o=Q[v=e].en)&&o(t,s,n,i),pe=!0):rt("Invalid transition: "+r)))}function $e(e){return e!=v&&!!Q[v].tr[e]}function qe(){return 0==v||7==v||8==v}function L(o,s,u){return function(e){var t,n,i,r,a;t=o,n=s,i=u,a=(e=e)[0],e=e[1]=Kt(e[1],a.dv),a=S(a,i),null!=i&&i!=De()||null==a||null==e||(n?!e!=!a&&g(e?t:n):e!=a&&g(t,r=t==xn?a<e?[[Nr,"up"]]:e<a?[[Nr,"down"]]:null:r))}}function Ye(e){e[1]=Kt(e[1],e[0].dv)}n(0,[1,8]),n(1,[2,7,8,16],function(e){var t=zs[1];if(Fe(e),oe=!(le=!1),de=$o.test(S(sa)),Ie=Ae=0,_([[qr,Z],[ti,e]]),Z=ut(),au(mi,1),it(t))try{t(i)}catch(e){at(e,"onContentSessionStart")}A=me,me=T=O=_e=null,R=N=null,fe=0,k(bn,e)}),n(2,[3,4,5,7,8,16],function(e,t){(l=3==t)&&(P(wi,1,ki),k(Bn,e)),k(fn,e)},function(e){k(mn,e),l&&k(Hn,e),l=!1,se||k(Tn,e)}),n(3,[2,4,5,6,7,8,16],function(e){var t;se||(t=e-f[0],se=!0,he=Ee=null,au(ci,1),k(Nn,e,[[Wr,t-Ie],[jr,t-Ae]])),b=M=S(dt),ye=e,null!=d&&(k(jn,e,[[Vr,1e3*d],[Fr,null!=b?1e3*b:null]]),d=null),k(Ln,e),le&&(le=!1,k(Fn,e)),I||Ne(e)},function(){b=null}),n(4,[2,3,5,6,7,8,16],function(e){le||(le=!0,k(Dn,e))}),n(5,[2,3,4,6,7,8,16],function(e){xe(S(dt),e)}),n(6,[2,3,4,5,7,8,16],function(e){k(Pn,e)}),n(7,[],function(e){Fe(e)}),n(8,[],function(e,t,n){k(yn,e,n),Fe(e)}),n(9,[10,11,12,14,15,7],function(e,t){Be(),(l=10==t)&&(P(Li,1,ki),k(Bn,e)),k(fn,e)},function(e){k(mn,e),l&&k(Hn,e),l=!1}),n(10,[9,11,12,13,14,15,7],function(e,t,n,i){Be(),ue||He(e,i),C=D=te(dt),Se=e,null!=h&&(k(jn,e,[[Vr,1e3*h],[Fr,null!=C?1e3*C:null]]),h=null),k(Ln,e),c&&(c=!1,k(Fn,e)),I||Ne(e)},function(){C=null}),n(11,[9,10,12,14,15,7],function(e){c||(c=!0,k(Dn,e))}),n(12,[9,10,11,13,14,15,7],function(e){Ve(te(dt),e)}),n(13,[9,10,17,7],function(e){k(Pn,e),ze(e)}),n(14,[9,10,17,7],function(e){k(cn,e),ze(e)}),n(15,[9,10,17,7],function(e,t,n){k(yn,e,n),ze(e)}),n(16,[9,10,15,17,7],function(e){be=2,We(e)}),n(17,[2,3,4,5,6,7],function(e){je(e),be=1});var Ke,e=Ni,w=Ni;function Xe(e){var i=[],r=0,a=0;return i.locate=function(t){return i.find(function(e){return t>=e.start&&t<=e.end})},e.forEach(function(e){var t=e.start,n=e.end;jt(t)&&jt(n)&&(t=t<r?r:t)<n?(r<t&&i.push({start:r,end:t,_e:a}),i.push(tt.assign({},e,{start:t,_e:a})),e.type&&(a+=n-t),r=n):rt("Skipped time span",e)}),i.push({start:r,end:_t.MAX_VALUE,_e:a}),i}function Je(e,t){e=e&&e({type:St,ack:t,appSID:iu(Br),ctSID:S(qr)});e&&e["catch"](function(e){At("Cast transfer message rejected",e)})}function Qe(e){var t,n=m.publicContext,i=null;m.player=e,tt.assign(n,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return e},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(qr)},nextContentSessionID:function(){return Z},playerState:function(){return Oe},destroy:function(){if(!m.destroyed){$e(7)&&Ge(7,ot());for(var e=0;e<q.length;e++)try{q[e]()}catch(e){at(e,"extOnDestroy")}_u(m)}},setMetadata:function(e){return!!vu(m,e)&&(su(m.customMetadata,m.setData),!0)},annotateContentSession:function(e){return null==e?!(me=null):!!Bt(e)&&(me=Xe(e.slice().sort(function(e,t){return e.start>t.start?1:-1})),!0)},dumpDzData:function(e){var t=tt.assign(Eu(m),p,E),n=Oa.nm;return t[n]=(De()||Re()?E:p)[n],t=ct(lt(t)),null==e?t:t[e]}}),Mu.forEach(function(e){try{e(n,m,$,q,Y,K,X,J)}catch(e){at(e,"extInit")}});try{i=W?W(e,m,u):null}catch(e){i=at(e,s[0]+" initContext")}return i?(It(i),n.destroy()):(null!=(t=r[du])&&n.setMetadata(t),t=ot(),k(En,t),k(kn,t),m.setTimer(function(){for(var e=0;e<$.length;e++)try{$[e]()}catch(e){at(e,"extOnTimer")}if(Ke)try{Ke()}catch(e){at(e,"onTimer")}var t=ot();ke(t),I&&I<=t&&(pe?(k(An,t,[[wr,++fe]]),I=t+et.hi,pe=!1):Pe())})),n}return 1&(z[e.nm]||0)&&(e=Di),2&(z[w.nm]||0)&&(w=Di),t(Ia,Ye),re(uo,Ye),t(oa,function(e){var t=e[1];e[1]=t&&Ko[t]||t}),t(sa,function(e){de=$o.test(e[1])}),t(dt,function(e){for(var t=0;t<K.length;t++)try{K[t](e)}catch(e){at(e,"extPlayheadHandler")}5==v||2==v?xe(e[1]):3==v&&Ue(e[1],3)}),re(dt,function(e){12==v?Ve(e[1]):10==v&&Ue(e[1],10)}),t(e,L(xn,null,!1)),re(w,L(xn,null,!0)),t(ta,L(Mn,$n)),t(Zr,L(In,Sn)),t(Kr,L(_n,hn)),t(Ca,L(Vn)),t(ba,L(Vn)),t(ir,L(qn)),t(ni,L(pn,null,!1)),re(ni,L(pn,null,!0)),t(ii,L(Gn)),t(ua,L(Gn)),t(zr,we),t(Gr,we),t(bi,function(e){var t,n,i,r,a=e[1];a=a&&it(a.getBoundingClientRect)?"visible"==vt.visibilityState?(t=(n=a.getBoundingClientRect()).left,i=n.top,r=n.bottom,nt.min(100,nt.max(0,nt.round(100*(nt.min(n=n.right,Ze.innerWidth)-nt.max(t,0))*(nt.min(r,Ze.innerHeight)-nt.max(i,0))/((n-t)*(r-i)))))):0:Kt(a,bi.dv),null!=(e[1]=a)&&_([[Oi,50<=a]])}),t(ei,function(e){var t=e[1];if(t&&it(t.end)){var n,i,r=S(dt);if(null!=r)for(n=0;n<t.length;n++)if(i=t.end(n),r>=t.start(n)&&r<=i)return void(e[1]=1e3*(i-r));e[1]=0}}),ae(Tn,function(e,t,n,i){2==i&&(a=ut(),t.push([fo,a,!0]))}),ae(ln,function(e,t){a&&t.push([fo,a,!0])}),ae(yn,function(e,t,n,i){au(1==i?fi:pi,1,di)}),ne(),ie(),tt.assign(m,{type:1,fireEvent:k,fire:function(e,t,n){k(e,ot(),t,null,null,n)},setState:function(e,t,n){Ge(e,ot(),t,n)},canSetState:$e,reset:function(){$e(7)&&Ge(7,ot()),ne(),ie(),f=[],v=0,Oe=Ou},setData:function(e){_(e),ee()},setAdData:function(e){y(e),ee()},getData:S,getAdData:te,getState:function(){return v},isIdle:qe,isAdIdle:function(){return 13==v||14==v||15==v},isInAds:De,isInSsaiAds:Re,onTimer:function(e){Ke=e},matchCtSource:function(e){return S(Ma)==e},reqCtSID:function(){return qe()?Z:S(qr)},reqTracer:function(e,a){e=Pt(e,function(e){e["delete"]("CMCD")});var t,n=m.reqCtSID(),i=ut(),r=((a=tt.assign({},a||{},{sid:n}))[us+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(t=S(ya))&&(a.cid=t),{url:e,sid:n,rid:i,cmcd:a,start:ot()});return{reqID:i,urlBase:e,url:function(){var t=ls(a);return Pt(e,function(e){e.append("CMCD",t[0].concat(t[1],t[2],t[3]).sort().join())})},headers:function(){for(var e={},t=ls(a),n=0;n<4;n++)t[n].length&&(e[Xo[n]]=t[n].sort().join());return e},enabledData:function(){for(var e,t,n=tt.keys(a),i={},r=0;r<n.length;r++)e=n[r],(t=os[e])&&t[3]&&(i[e]=a[e]);return i},status:function(e){r.status=e},start:function(){r.start=ot()},resp:function(e){r.resp=null!=e?r.start+e:ot(),yt&&bt("reqInfo",r)},end:function(e){var t=ot(),n=(r.end=null!=e?r.start+e:t,tt.assign({},ss,a)),i=[];tt.keys(n).forEach(function(e){var t=os[e];t&&t[2]&&i.push([t[2],n[e]])}),k(On,t,i,null,null,1),yt&&bt("reqInfo",r)}}},updateTimedMetadata:function(e,t,n,i,r){for(var a=0;a<X.length;a++)try{X[a](e,t,n,i,r)}catch(e){at(e,"extTimedMetadataHandler")}},addCtTimeSpans:function(e){var u=A?A.filter(function(e){return e.type}):[];e.forEach(function(e){for(var t,n,i,r,a=e.start,o=e.end,s=0;s<u.length&&(i=(n=u[s]).start,r=n.end,!(o<=i));s++)a<r&&(i<a?(u.splice(s+1,0,tt.assign({},n,{start:a})),n.end=a):(t||(u.splice(s++,0,e),t=!0),o<r?n.start=o:u.splice(s--,1)));t||u.splice(s,0,e)}),A=Xe(u),T=O=_e=null},initCastTransfer:function(e){qe()||Je(e,!1)},handleCastMessage:function(e,t){!e||e.type!==St||qe()||(m.setData([[zr,e.appSID],[Gr,e.ctSID]]),e.ack)||Je(t,!0)},sa:{}}),s&&_([[na,s[1]]]),Bs&Vs&&cs((e=gt.options).cmcdEnable?e.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new ht(function(t,n){try{j(x,m,u).then(function(e){i=Qe(e),t(i)},function(e){It(e),n(e)})}catch(e){n(at(e,s[0]+" createTargetObject"))}}):ht.reject("Not implemented"):i=Qe(U)}),Cu=function(e,o){var s=new(e||P);return o=o||k,s.dispatch=function(e,t,n){var i,r,a;n=n||{},t&&((a=t.media)&&tt.assign(s,a),a=t.ima)&&((t=a.adsManager)&&tt.assign(s,t),n.getAdData=function(){return{currentTime:s.currentTime}},(i=a.ad)&&(n.getAd=function(){return{getAdId:function(){return i.adId},getAdSystem:function(){return i.adSystem},getAdvertiserName:function(){return i.advertiserName},getCreativeId:function(){return i.creativeId},getDealId:function(){return i.dealId},getDuration:function(){return i.duration},getSkipTimeOffset:function(){return i.skipTimeOffset},getVastMediaBitrate:function(){return i.vastMediaBitrate},getVastMediaWidth:function(){return i.vastMediaWidth},getVastMediaHeight:function(){return i.vastMediaHeight},getWrapperAdIds:function(){return i.wrapperAdIds},getWrapperAdSystems:function(){return i.wrapperAdSystems},getWrapperCreativeIds:function(){return i.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return i.adPodIndex},getTimeOffset:function(){return i.adTimeOffset}}},h:{clickThroughUrl:i.clickThroughUrl}}}),r=a.error)&&(n.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),e&&(t=new o(e),tt.assign(t,n),s.dispatchEvent(t))},s.getBoundingClientRect=function(){return s.boundingClientRect||{left:0,right:0,top:0,bottom:0}},s.getVolume=function(){return s.volume},s},Mu=[],Du="REQUEST_COMPLETE",Ru="SLOT_STARTED",Nu="SLOT_ENDED",Pu="AD_INITIATED",ku="AD_BUFFERING_START",Lu="AD_BUFFERING_END",wu="AD_PAUSE",Uu="AD_RESUME",xu="AD_IMPRESSION",Vu="AD_IMPRESSION_END",Fu="AD_COMPLETE",Wu="AD_SKIPPED",ju="AD_CLICK",Bu=(Mu.push(function(e,i,t,n){var r,a,o=i.setState,s=i.setAdData,u=i.fire,l={},c={on:{}};function d(){r&&(i.removeListeners(r),l={},r=a=null)}c.$update=c.update=function(e,t){var n;i.isInAds()&&(t&&s([[_o,m(t,"getTimePosition")]]),a&&(s([[dt,m(a,"getPlayheadTime")],[uo,m(a,"getDuration")],[lo,m(a,"getAdId")],[so,a._creativeId],[Eo,m(a,"getDealId")],[go,m(a,"getSkipOffset")]]),t=m(a,"getActiveCreativeRendition"))&&(n=m(t,"getHeight"),s([[Pi,m(t,"getWidth")],[Di,n],[Ri,n?n+"p":null]])),e)&&(t=m(e,"getAdVolume"),i.setData([[ir,100*t],[ta,0==t]]))},c.on[Du]=function(e,t){t.success?u(bn,null,2):u(yn,null,2)},c.on[Ru]=function(e,t){a=null,o(16),c.update(e,t.slot)},c.on[Nu]=function(){o(17),a=null},c.on[Pu]=function(){s([[Ai,1]]),u(Tn,null,2)},c.on[ku]=function(){o(9)},c.on[Lu]=c.on[Uu]=function(){o(10,null,a)},c.on[xu]=function(){o(10,null,a),u(ln,null,2)},c.on[wu]=function(){o(11)},c.on[Fu]=function(){o(13),a=null},c.on[Wu]=function(){o(14),a=null},c.on[Vu]=function(){a=null},c.on[ju]=function(){u(un)},c.on["ERROR"]=function(e,t){o(15,[[Pr,t.errorCode],[kr,t.errorInfo]]),a=null},c.on["AD"]=function(e,t){a=t.adInstance,c.update(e);var n=l[t.subType];n&&n(e,t)},c.$on=st(c.on),i.sa.fwContext=c,t.push(function(){r&&c.update(r)}),n.push(d),Mt({attachFwContext:function(e){var t;!i.shallBlock("attachFwContext",null,e)&&e!=r&&(d(),r=e)&&(t=E(Ze.tv,["freewheel","SDK"]),[Du,Ru,Nu,"AD"].forEach(function(n){var e=t&&t["EVENT_"+n];e&&i.addListener(r,e,function(e){var t=c.on[n];t&&t(r,e)})}),[Pu,ku,Lu,wu,Uu,xu,Vu,Fu,Wu,ju,"ERROR"].forEach(function(i){var e=t&&t["EVENT_"+i];e&&(l[e]=function(e,t){var n=c.on[i];n&&n(e,t)})}))},detachFwContext:d},[e,i])}),"play"),Hu="waiting",zu="playing",Gu="pause",$u="seeking",qu="seeked",Yu="ended",Ku="durationchange",Xu="ratechange",Ju="timeupdate",Qu=(Mu.push(function(e,a,t,n){var r,o,s,u,i=a.setState,l=a.setData,c=a.addListener,d=a.removeListeners;function p(){o&&d(o),r&&d(r),r=o=null}function f(){if(r){for(var e,t,n,i=0;i<r.length;i++)"metadata"===(n=r[i]).kind?t=t||n:"showing"===n.mode&&(e=e||n);s||l([[ua,!!e],[ii,e?e.label||e.language:null]]),o!=t&&(o&&d(o),o=t)&&c(o,"cuechange",function(){var e=o.activeCues;if(e)for(var t,n,i=0;i<e.length;i++)(n=(t=e[i]).value)&&a.updateTimedMetadata("ID3",t.startTime,t.endTime,n.key,n.data)})}}n.push(p);var m={on:{}};function _(){u&&d(u),u=null}m.$update=m.update=function(e,t){t&&(l([[Ia,e.duration],[Jr,e.muted],[Qr,e.playbackRate]]),f()),a.isInAds()||l([[dt,e.currentTime],[Ai,e.playbackRate],[Ca,e.offsetWidth],[ba,e.offsetHeight],[bi,e],[ei,e.buffered],[ea,e.loop],[ta,e.muted],[ir,100*e.volume],[aa,e.readyState]])},m.on[Bu]=function(e){a.isIdle()&&(a.reset(),m.update(e,!0),i(1),i(2))},m.on[Hu]=function(e){m.update(e),i(2)},m.on[zu]=function(e){m.update(e),a.isAdIdle()&&i(17),i(3)},m.on[Gu]=function(e){m.update(e),i(4)},m.on[$u]=function(e){m.update(e),i(5)},m.on[qu]=function(e){m.update(e),i(e.paused?4:3)},m.on[Yu]=function(e){m.update(e),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(e){var t,n=e.error;n&&(t=[[Pr,n.code],[kr,n.message]]),m.update(e),i(8,t)},m.on[Ku]=function(e){l([[Ia,e.duration]])},m.on[Xu]=function(e){l([[Ai,e.playbackRate]])},m.on[Ju]=function(e){m.update(e)},m.$on=st(m.on),a.sa.mediaElement=m,t.push(function(){u&&m.update(u)}),n.push(_),Mt({attachMediaElement:function(e){_(),(u=e)&&[[Bu,(e=[[Yu,Gu,$u,Bu,Hu,qu,zu]])[0]],[Hu,e[0]],[zu,e[0]],[Gu,e[0]],[$u,e[0]],[qu,e[0]],[Yu,e[0]],["error"],[Ku],[Xu],[Ju]].forEach(function(i){var r=i[0];c(u,r,function(e){var t,n=m.on[r];n&&((t=i[1])?(a.stash(r,n,[u,e]),W(function(){a.unstash(t)},0)):n(u,e))})})},detachMediaElement:_,attachTextTracks:function(e,t){p(),s=t,(r=e)&&["change","addtrack","removetrack"].forEach(function(e){c(r,e,f)})},detachTextTracks:p},[a])}),"CLICK"),Zu="STARTED",el="AD_PROGRESS",tl="AD_BUFFERING",nl="IMPRESSION",il="PAUSED",rl="RESUMED",al="COMPLETE",ol="LOADED",sl="ALL_ADS_COMPLETED",ul="SKIPPED",ll="VOLUME_CHANGED",cl="AD_ERROR",dl={CLICK:"click",STARTED:"start",AD_PROGRESS:"adProgress",AD_BUFFERING:"adBuffering",IMPRESSION:"impression",PAUSED:"pause",RESUMED:"resume",COMPLETE:"complete",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",VOLUME_CHANGED:"volumeChange",AD_ERROR:"adError"},pl=(Mu.push(function(e,a,t,n){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,l=a.removeListeners;function c(e){var t,e=e.getError();return e&&(t=[[Pr,e.getErrorCode()],[kr,e.getMessage()]],e=e.getInnerError())&&t.push([Lr,""+e]),t}var d,p,f={on:{}};function m(){o&&l(o),o=null}function _(e){var t=e.getAdPodInfo(),n=e.getVastMediaHeight(),n=[[lo,e.getAdId(),!0],[mo,e.getAdSystem(),!0],[vo,e.getAdvertiserName(),!0],[so,e.getCreativeId(),!0],[Eo,e.getDealId(),!0],[uo,e.getDuration(),!0],[go,e.getSkipTimeOffset(),!0],[Ni,e.getVastMediaBitrate(),!0],[Pi,e.getVastMediaWidth(),!0],[Di,n,!0],[Ri,n?n+"p":null,!0],[So,e.getWrapperAdIds(),!0],[Io,e.getWrapperAdSystems(),!0],[yo,e.getWrapperCreativeIds(),!0],[oo,E(e,[/[a-z]/,"clickThroughUrl"]),!0]];return t&&n.push([_o,t.getTimeOffset(),!0]),n}f.$update=f.update=function(e,t){a.isInAds()&&(t&&r(_(t)),e)&&(t=e.getVolume(),a.setData([[ir,100*t],[ta,0==t]]))},f.on[Qu]=function(e){f.update(e),s(un)},f.on[Zu]=function(e,t){t=t.getAd();a.isInAds()||i(16),r([[Ai,1]]),f.update(e,t),i(10,null,t)},f.on[el]=function(e,t){t=E(t.getAdData(),["currentTime"]);null!=t&&(f.update(e),9==a.getState()&&(null==d?d=t:d!=t&&i(10)),r([[dt,t]]))},f.on[tl]=function(e){f.update(e),i(9),d=null},f.on[nl]=function(e){f.update(e),s(ln,null,2)},f.on[il]=function(e){f.update(e),i(11)},f.on[rl]=function(e){f.update(e),i(10)},f.on[al]=function(e){f.update(e),i(13)},f.on[ol]=function(e,t){t=t.getAd();s(Tn,t&&_(t),2)},f.on[sl]=function(){i(17),m()},f.on[ul]=function(e){f.update(e),i(14)},f.on[ll]=function(e){f.update(e)},f.on[cl]=function(e,t){f.update(e),a.canSetState(15)?i(15,c(t)):s(yn,c(t),2)},f.$on=st(f.on),a.sa.imaAdsManager=f,t.push(function(){o&&f.update(o)}),n.push(m);var h={on:{}};function v(){p&&l(p),p=null}h.on[cl]=function(e,t){s(yn,c(t),2)},h.$on=st(h.on),a.sa.imaAdsLoader=h,n.push(v),Mt({attachImaAdsManager:function(e){var t,n;!a.shallBlock("attachImaAdsManager",null,e)&&e!=o&&(m(),o=e)&&(e=E(Ze.google,["ima"]),t=E(e,["AdEvent","Type"],dl),[[Qu],[Zu,null,(n=[[Zu,nl]])[0]],[el],[tl],[nl,null,n[0]],[il],[rl],[al],[ol],[sl],[ul],[ll],[cl,E(e,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],e=(i[1]||t)[r];e&&u(o,e,function(e){var t,n=f.on[r];n&&((t=i[2])?(a.stash(r,n,[o,e]),W(function(){a.unstash(t)},0)):n(o,e))})}),s(bn,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(e){a.shallBlock("attachImaAdsLoader",null,e)||e==p||(v(),(p=e)&&(e=E(Ze.google,["ima","AdErrorEvent","Type"],dl)[cl])&&u(p,e,function(e){var t=h.on[cl];t&&t(p,e)}))},detachImaAdsLoader:v},[e,a])}),Mu.push(function(t,r,e,n,i,a,o){var s,u,l,c=r.addListener;function d(){s&&r.removeListeners(s),s=u=l=null}function p(e){for(var t;(t=u[0])&&t.t<=e;)u.shift(),delete t.t,s.onTimedMetadata(t)}n.push(d),a.push(function(e){s&&p(l=e[1])}),o.push(function(e,t,n,i,r){var a;s&&i&&r&&Wt(a="ID3"===e?r:a)&&((e={t:t})[i]=a,u.push(e),null!=l)&&p(l)}),Mt({attachImaDaiStreamManager:function(e){r.shallBlock("attachImaDaiStreamManager",null,e)||e==s||(d(),(s=e)&&(e=E(Ze.google,["ima","dai","api","StreamEvent","Type"]),u=[],e)&&(c(s,e.CUEPOINTS_CHANGED,function(e){r.isIdle()&&(e=E(e.getStreamData(),["cuepoints"]))&&e.length&&t.annotateContentSession(e.map(function(e){return{type:Go,start:e.start,end:e.end}}))}),c(s,e.STARTED,function(e){var t,n,i,e=e.getAd();e&&(t=l||0,n=e.getAdPodInfo(),i=e.getVastMediaHeight(),r.addCtTimeSpans([{type:Go,start:t,end:t+(e.getDuration()||0),_d:[[lo,e.getAdId()],[mo,e.getAdSystem()],[vo,e.getAdvertiserName()],[so,e.getCreativeId()],[Eo,e.getDealId()],[go,e.getSkipTimeOffset()],[Pi,e.getVastMediaWidth()],[Di,i],[Ri,i?i+"p":null],[So,e.getWrapperAdIds()],[Io,e.getWrapperAdSystems()],[yo,e.getWrapperCreativeIds()],[_o,n?n.getTimeOffset():null]],_a:e}]))})))},detachImaDaiStreamManager:d},[t,r])}),gt.mediatailor=((dn=g.mediatailor)&&(dn.clientInfo+=" DZSDK "+et.cn+" v"+et.sv),dn),Mu.push(function(e,s,t,n,i,r,a,o){var u,l,c,d,p;function f(e,t,n){if(e&&1===e.playCount)for(var i=o.length,r=0;r<i;r++)o[r](t,n)}function m(){u&&l&&u.removeAdObserver(l),u=l=null,c=d=p=null}n.push(m),i.push(function(e,t,n,i){var r=c&&c[n.nm];return r&&r(e,t,n,i)}),r.push(function(e){u&&!s.isIdle()&&(d=e[1],p=s.getData(Ci),de<le||Ve("MT onPlayheadUpdate: "+d+", "+p),u.onPlayheadUpdate(d,p||null))}),Mt({attachMediaTailorSession:function(e,t){var o,n,i,r,a;t=t||gt.mediatailor,!s.shallBlock("attachMediaTailorSession",null,e)&&t&&e!=u&&(m(),n=function(){var e=s.getData(ir);jt(e)&&f(o,14,e)},i=t.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(e){return function(){f(o,e)}})(3),r[i.LOADED]=a(1),r[i.START]=a(2),r[i.FIRST_QUARTILE]=a(4),r[i.MID_POINT]=a(5),r[i.THIRD_QUARTILE]=a(6),r[i.COMPLETE]=a(7),r[i.PAUSE]=a(8),r[i.RESUME]=a(9),r[i.FULLSCREEN]=a(15),r[i.EXIT_FULLSCREEN]=a(16),r[i.MUTE]=function(){f(o,14,0)},r[i.UNMUTE]=n,r[i.CLICK_THROUGH]=function(){s.fire(un),f(o,13)},r[i.SKIP]=function(){s.fire(cn),f(o,12)},u=e)&&(a=t.PlaybackEvent,c={},[[a.START,Nn,1],[a.END,zn,I],[a.PAUSE,Dn,I],[a.RESUME,Fn,I],[a.MUTE,Mn,I],[a.UNMUTE,$n,I],[a.FULLSCREEN,In,I],[a.EXIT_FULLSCREEN,Sn,I]].forEach(function(r){c[r[1].nm]=function(e,t,n,i){r[2]&i&&u.onPlaybackEvent(r[0])}}),c[qn.nm]=n,c[fn.nm]=function(){f(o,10)},c[mn.nm]=function(){f(o,11)},l={onNewAd:function(e){var t;s.addCtTimeSpans([(t=(t=(e=e).startDate)&&p?t-p+d:e.start,{type:Go,start:t,end:t+e.duration,_a:e,_d:[[lo,e.vastAdId],[mo,e.adSystem],[so,e.creativeId],[go,e.skipOffset],[_o,e.availStart],[oo,e.videoClickThrough]]})])},onAdLoad:function(e){var t,n,i,r,a;1===(o=e).playCount&&(t=e.adVerifications)&&(n={},i=[],r=s.getData(ir),a=e.skipOffset,jt(r)&&(n["v"]=r),n["d"]=e.duration,n["ap"]=!!s.getData(Yr),n["po"]=0===e.availStart?0:1,n["sk"]=0<=a,n["so"]=n["sk"]?a:null,n["vf"]=i,t.forEach(function(e){var t=E(e.javaScriptResource,[0,"uri"]),n=e.vendor;t&&n&&i.push({url:t,vd:n,p:e.verificationParameters||""})}),f(e,0,n))},onAdEnd:function(e){f(e,17),o=null},onAdTrackingEvent:function(e,t){t=r[t];t&&t()}},u.addAdObserver(l))},detachMediaTailorSession:m},[e])}),Mu.push(function(s,u,e,t,n,i,r){var p,l,c,a,d,f,m,_,h,v=["YMID","YSEQ","YTYP","YDUR"];function E(){p&&l&&p.removeAnalyticObserver(l),p=l=null,c=a=d=m=null}function o(e){for(var t;(t=c[0])&&t.t<=e;)c.shift(),p.onTimedMetadata(h.createFromMetadata(t.YMID,t.YSEQ,t.YTYP,t.YDUR,1e3*t.t))}function g(e,t,n){(a=a&&a.t===e?a:{t:e})[t]=n||"",tt.keys(a).length===v.length+1&&(c.push(a),(a=null)!=m)&&o(m)}t.push(E),n.push(function(e,t,n,i){var r=d&&d[n.nm];return r&&r(e,t,n,i)}),i.push(function(e){p&&!u.isIdle()&&(m=e[1],f===_.VOD||f===_.DVRLIVE?p.onPlayheadUpdate(nt.round(1e3*m)):o(m))});var y=T.fromCharCode;function S(e,t,n){for(var i,r=[];t<n;)31<(i=e[t++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(e,t,n,i,r){var a;if(p&&r&&f===_.LIVE)if("ID3"===e||"org.id3"===e)v.includes(i)&&(r instanceof M&&(r=new C(r))||r instanceof C?3===r[0]&&(a=S(r,1,r.length)):a=r,Wt(a))&&g(t,i,a);else if("urn:yospace:a:id3:2016"===e){if(r instanceof C)for(var o,s=S(r,0,r.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),v.includes(o[0])&&g(t,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===e&&r instanceof C){var l=r.length;if(9<l&&73===r[0]&&68===r[1]&&51===r[2]&&(r[3]<<8|r[4])<=1024&&!(192&r[5])){u=6;for(var c=0,d=10;u<d;)c=c<<7|127&r[u++];for(l=nt.min(l,c+10);u+9<l;){for(i="",d=u+4;u<d;)i+=y(r[u++]);for(c=0,d=u+4;u<d;)c=c<<7|127&r[u++];d=(u+=2)+c,v.includes(i)&&d<=l&&g(t,i,S(r,u,d)),u=d}}}}),Mt({attachYospaceSession:function(e){var t,a,o,n,i,r=Ze.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,e)&&r&&e!=p&&(E(),p=e)&&(t=r.PlayerEvent,e=r.BreakType,_=r.PlaybackMode,h=r.TimedMetadata,f=p.getPlaybackMode(),c=[],d={},[[t.START,Nn,1],[t.STOP,zn,I],[t.PAUSE,Dn,I],[t.RESUME,Fn,I],[t.STALL,Bn,I],[t.CONTINUE,Hn,I]].forEach(function(r){d[r[1].nm]=function(e,t,n,i){r[2]&i&&p.onPlayerEvent(r[0],0)}}),d[jn.nm]=function(){p.onPlayerEvent(t.SEEK,1e3*(m||0))},d[Mn.nm]=function(){p.onVolumeChange(!0)},d[$n.nm]=function(){p.onVolumeChange(!1)},a=function(e,t){e=e.getProperty(t);return e&&e.getValue()},o=function(e,t,n,i){e&&(t.push(e.getIdentifier()),n.push(e.getAdSystem()),i.push(e.getCreativeIdentifier()),o(e.getLineage(),t,n,i))},n=function(e){var t=e.getSkipOffset(),n=[],i=[],r=[],t=(o(e.getLineage(),n,i,r),[[lo,e.getIdentifier()],[mo,a(e,"AdSystem")],[vo,a(e,"Advertiser")],[go,0<t?t/1e3:t],[So,n],[Io,i],[yo,r]]),n=e.getLinearCreative(),i=(n&&t.push([so,n.getCreativeIdentifier()],[oo,n.getClickThroughUrl()]),e.getStart()/1e3);return{type:Go,start:i,end:i+e.getDuration()/1e3,_d:t,_a:e}},l={onAdvertBreakStart:function(e){},onAdvertBreakEnd:function(){},onAdvertStart:function(e){u.addCtTimeSpans([n(e)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(e){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(e){}},p.addAnalyticObserver(l),f===_.VOD)&&(i=[],(r=p.getAdBreaksByType(e.LINEAR))&&r.forEach(function(e){e=e.adverts;e&&e.forEach(function(e){i.push(n(e))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:E},[s])}),Mu.push(function(e,i,t,n,r,a,o,s){var u,m,_,l;function h(){l&&l(17),m=_=l=null,u=!1}n.push(h),s.push(function(e,t){u&&(0===e?(l&&l(17),l=!1===et.om?null:_(t)):l&&(l(e,t),17===e)&&(l=null))}),Mt({startOmidSessionClient:function(e){var l,c,d,p,f=g.OmidSessionClient,t=Ft.omidPartnerName,n=Ft.omidPartnerVersion;i.shallBlock("startOmidSessionClient",null,e=e||{})||(l=e.omidServiceWindow||Ze.self,c=e.videoElement,d=e.contentURL||L.href,p=e.accessModeHandler,f&&t&&n&&c?(h(),m=new f.Partner(t,n),_=function(t){var n,i,r,a,o,s,e=t["vf"],e=e&&e.map(function(e){var t=e["url"],n=e["vd"],e=e["p"]||"";return new f.VerificationScriptResource(t,n,e,p&&p(t,n,e)||"full")});return e&&e.length?((e=new f.Context(m,e,d)).setServiceWindow(l),"VIDEO"===c.tagName?e.setVideoElement(c):e.setVideoElement(c.getElementsByTagName("video")[0]||c),n=new f.AdSession(e),i=!1,r=[],n.setCreativeType("video"),n.setImpressionType("beginToRender"),n.isSupported()?(s=[,function(){a.loaded(new f.VastProperties(t["sk"],t["so"],t["ap"],t["po"]))},function(){o.start(t["d"],t["v"]/100)},function(){a.impressionOccurred()},function(){o.firstQuartile()},function(){o.midpoint()},function(){o.thirdQuartile()},function(){o.complete()},function(){o.pause()},function(){o.resume()},function(){o.bufferStart()},function(){o.bufferFinish()},function(){o.skipped()},function(){o.adUserInteraction("click")},function(e){t["v"]=e,o.volumeChange(e/100)},function(){o.playerStateChange("fullscreen")},function(){o.playerStateChange("normal")},function(){n.finish()}],n.registerSessionObserver(function(e){switch(e.type){case"sessionStart":var t;for(a=new f.AdEvents(n),o=new f.MediaEvents(n),i=!0;t=r.shift();)u(t[0],t[1]);break;case"sessionError":rt("OMID ad session error")}}),n.start(),u):(rt("OMID ad session unsupported"),null)):null;function u(e,t){var n;i?(n=s[e])&&n(t):r.push([e,t])}},u=!0):It("Missing OM SDK library or parameters"))},stopOmidSessionClient:h},[e])}),gt.omidPartnerName=Ft.omidPartnerName,gt.omidPartnerVersion=Ft.omidPartnerVersion,"unsupportedDataList"),fl="maxCtPlayheadInterval",ml="maxAdPlayheadInterval",_l={};function hl(){if(!Au){var e=zs[2];if(it(e))try{e()}catch(e){at(e,"onPageUnload")}tt.keys(ft).forEach(function(e){ft[e].publicContext.destroy()}),$s(!0),Au=!0}}Zn=[Rn="jw","JW Player",Zn=function(c,d){var p,i={"hlsjs":"HLS","html5":"MP4","shaka":qo,"flash_video":Yo,"flash_adaptive":Yo,"flash_sound":Yo};if(!c)return"Invalid player";function e(e,t){d.addListener(c,e,t,"on","off")}function t(e,t){d.addListener(c,e,t,"on","off")}function n(){var e=E(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();return e&&e.getCurrentSession()}function r(e){var t=n();return t&&t.sendMessage(ie,e)}function a(e){var t,n,i,r,a,o,s,u,l=c.getConfig();e&&(e=[],(t=c.getPlaylistItem())&&(n=t.file,i=t.title,r=t.description,a=t.tags),a=a||l.tags,n&&e.push([Ma,n]),null!=i&&e.push([Da,i]),null!=r&&e.push([Sa,r]),a&&e.push([Ta,a]),d.setData(e)),d.isIdle()||(t=c.getCurrentTime(),n=c.getDuration(),i=c.getVisualQuality(),r=E(l,["streamType"],"").toUpperCase(),a=c.getCurrentAudioTrack(),o=0<(e=c.getCurrentCaptions()),s=E(i,["level","height"]),u=E(i,["level","bitrate"])/1e3,null!=p&&d.setData([[Ci,t+p]]),d.setData([[dt,t],[Ia,n||0],[ea,E(l,["repeat"])],[Ni,u],[Pi,E(i,["level","width"])],[Di,s],[Ri,s?s+"p":null],[Ai,c.getPlaybackRate()],[ni,0<=a?E(m(c,"getAudioTracks"),[a,"name"]):null],[ii,o?c.getCaptionsList()[e].label:null],[ua,o]]),l.streamType&&d.setData([[sa,"VOD"==r?"VOD":"Live"]]),it(c.getViewable)&&d.setData([[Oi,1===c.getViewable()]]),it(c.getPercentViewable)&&d.setData([[bi,100*c.getPercentViewable()]]))}function o(){d.setAdData([[ni,null]]),it(c.getViewable)&&d.setData([[Oi,1===c.getViewable()]]),it(c.getPercentViewable)&&d.setData([[bi,100*c.getPercentViewable()]])}d.setData([[ia,c.version]]),e("playlistItem",function(){d.isIdle()||d.reset()}),e("cast",function(e){e=e.active;d.setData([[Kr,e]]),e&&(d.removeListeners(null,ie),d.addListener(n(),ie,function(e,t){d.handleCastMessage(ct(t),r)},"addMessageListener","removeMessageListener"),d.initCastTransfer(r))}),e("meta",function(t){var e,n,i=t.metadataType,r=t.metadata;r&&("program-date-time"===i?(e=r.start,n=(n=r.programDateTime)&&new A(n).getTime(),null!=e&&n&&(p=n/1e3-e)):"id3"===i?tt.keys(r).forEach(function(e){d.updateTimedMetadata("ID3",t.metadataTime,null,e,r[e])}):"emsg"===i&&d.updateTimedMetadata(r.schemeIdUri,r.start,r.end,null,r.messageData))}),e("beforePlay",function(){var e=c.getConfig(),t=c.getProvider(),n=E(e,["autostart"]);null!=c.getPlaylist()&&!n&&1<=c.getPlaylist().length&&(n=0!=c.getPlaylistIndex()),d.isIdle()&&(d.reset(),d.setData([[Jr,c.getMute()],[oa,i[E(t,["name"])]],[ra,E(e,["setupConfig","preload"])],[ya,E(e,["playlistItem","mediaid"],"")],[Qr,E(e,["defaultPlaybackRate"])],[Yr,n]]),a(!(p=null)),d.setState(1))}),e("buffer",function(){a(!0),d.setState(2)}),e("time",function(){a()}),e("idle",function(e){c.getConfig().castActive&&(a(),d.setState(7))}),e("play",function(){c.getConfig().castActive&&d.isIdle()&&(d.setState(1),d.initCastTransfer(r),d.setState(2)),d.isInAds()||(a(),d.setState(3))}),e("pause",function(){a(),d.setState(4)}),e("seek",function(){a(),d.setState(5)}),e("complete",function(){a(),d.setState(6)}),e("error",function(e){var t=[];e&&(t.push([kr,e.message]),t.push([Pr,e.code])),a(),d.setState(8,t)}),e("levelsChanged",function(){a(),d.fire(Un)}),e("fullscreen",function(){W(a,200)}),e("mutechange",a),e("volumechange",a),t("adRequest",function(){d.fire(bn,null,2)}),t("adTime",function(e){var t=E(e,["ima","ad",/[a-z]/,"vastMediaHeight"],null);d.setAdData([[dt,e.position],[uo,e.duration],[Ni,E(e,["ima","ad",/[a-z]/,"vastMediaBitrate"],null)],[Pi,E(e,["ima","ad",/[a-z]/,"vastMediaWidth"],null)],[Di,t],[Ri,t?t+"p":null]]),o()}),t("adBreakStart",function(){o(),d.setState(16)}),t("adBreakEnd",function(){o(),d.setState(17)}),t("adClick",function(){o(),d.fire(un)}),t("adLoaded",function(){d.fire(Tn,null,2)}),t("adPlay",function(){o(),d.setState(10)}),t("adPause",function(){o(),d.setState(11)}),t("adStarted",function(){d.setAdData([[Ai,1]]),o(),d.setState(10)}),t("adSkipped",function(){o(),d.setState(14)}),t("adImpression",function(e){o(),e&&d.setAdData([[oo,e.tag],[so,E(e,["ima","ad",/[a-z]/,"creativeId"])],[lo,E(e,["ima","ad",/[a-z]/,"adId"])],[co,e.client],[mo,e.adsystem],[Io,E(e,["ima","ad",/[a-z]/,"adWrapperSystems"],[])],[_o,E(e,["ima","ad",/[a-z]/,"adPodInfo","timeOffset"])],[Eo,E(e,["ima","ad",/[a-z]/,"dealId"])],[go,E(e,["ima","ad",/[a-z]/,"skipTimeOffset"])],[yo,E(e,["ima","ad",/[a-z]/,"adWrapperCreativeIds"],[])],[So,E(e,["ima","ad",/[a-z]/,"adWrapperIds"],[])],[vo,e.advertiser]]),d.fire(ln,null,2)}),t("adError",function(e){var t;e&&(t=[[kr,e.message],[Pr,e.adErrorCode],[Lr,E(e,["sourceError","stack"])]]),o(),d.setState(15,t)}),t("adComplete",function(){o(),d.setState(13)}),d.onTimer(function(){var e,t=c.getConfig();t&&(e=t.autostart,t=c.getPlaylist())&&!e&&1<=t.length&&(e=0!=c.getPlaylistIndex()),(d.isInAds()?o:a)(),d.setData([[Ca,c.getWidth()],[ba,c.getHeight()],[Zr,c.getFullscreen()],[ta,c.getMute()],[ir,c.getMute()?0:c.getVolume()],[Yr,e],[Xr,c.getControls()]])})},function(e,r,t){var n,i,a=e[1];function o(t,e){var n,i=r.reqTracer(e);t.addEventListener("readystatechange",function(){var e=this.readyState;1==e?i.start():2==e?(i.status(this.status),i.resp()):4==e&&i.end()}),as?(n=i.headers(),i.urlBase!=e&&t.open("GET",i.urlBase,!0),tt.keys(n).forEach(function(e){t.setRequestHeader(e,n[e])})):t.open("GET",i.url(),!0)}rs&&a&&(S.isArray(a.playlist)?(a=st(a)).playlist=a.playlist.map(function(e){return(e=st(e)).sources?e.sources=e.sources.map(function(e){return(e=st(e)).onXhrOpen=o,e}):e.file&&(e.sources=[{file:e.file,onXhrOpen:o}],delete e.file),e}):a.file&&!a.playlist&&((a=st(a)).playlist=[{sources:[{onXhrOpen:o}]}],n=a.playlist[0],["description","image","mediaid","title"].forEach(function(e){a[e]&&(n[e]=a[e],delete a[e])}),i=n.sources[0],["file","type"].forEach(function(e){a[e]&&(i[e]=a[e],delete a[e])})));t=t.jwplayerFunction||Ze.jwplayer;return t?ht.resolve(t(e[0]).setup(a)):ht.reject("Missing jwplayer function")},Iu],Su=Su||Zn,_l[Rn]=Zn;var vl=!0;function El(n){if(!Tu){if(!(et.ci||Lt(ee,ne)||n&&n[ne]))return!1;n&&(ee=Pt(ee,function(t){tt.keys(n).forEach(function(e){t.set(e,n[e])})}),fe()),vl&&(vl=!1,ou(gn,ot()));var e=Lt(ee,"env");et.cf="staging"===e||"dev"===e||"sandbox"===e?e:"",et.ci=Lt(ee,ne)||et.ci,et.om=null,nu([[sr,et.ci]]),Qs(),Tu=!0}return!0}function gl(e){e()}function yl(e,t,n){Ht(n)||(null!=n&&rt("Invalid contextOptions",n),n={});var i,r,a,o,s=n[lu];return s&&s!==fu[1]?s===fu[pu]?(r=(i=gu()).publicContext,a=n[du],i.name=n[cu],null!=a&&r.setMetadata(a),i.fireEvent(En,ot()),r):(It(a="Unknown context type: "+s),t?ht.reject(a):(o=a,{getError:function(){return o}})):bu(e,t,n)}m(Ze,"addEventListener",["pagehide",hl]),"Safari"==Ds&&m(Ze,"addEventListener",["beforeunload",function(e){W(function(){e.defaultPrevented||e.returnValue||hl()},0)}]),At("Datazoom SDK "+et.sv+" ("+et.cn+") DDv3"),F(function(){mu.length?mu.forEach(gl):ot()},et.ti),tt.assign(gt,{init:El,setLogLevel:pe,createContext:function(e,t){return yl(e,null,t)},createBaseContext:function(e){return(e=Ht(e)?st(e):{})[lu]=fu[pu],yl(null,null,e)},createContextAndTarget:function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);return yl(null,t,e)},createCollectorProxy:function(e,t,n){return e&&e!==fu[1]?(It("Unsupported context type: "+e),null):Cu(t,n)},adapterIDs:function(){return tt.keys(_l)},contexts:function(){return tt.keys(ft).map(function(e){return ft[e].publicContext})},playerContexts:function(){return tt.keys(ft).filter(function(e){return 1==ft[e].type}).map(function(e){return ft[e].publicContext})},setMetadata:function(e){return!(null!=e&&!Ht(e)||(su(vs=ct(lt(e)),nu),_(f,Ee,vs),0))},getMetadata:function(){return ct(lt(vs))},generateEvent:function(e,t,n){n=!n&&tt.keys(ft)[0];n?ft[n].publicContext.generateEvent(e,t):ou({ap:an,nm:K+e,on:ko},ot(),null,t)},on:function(e,t){zs[e]=t},appSessionID:function(){return gs},generateUUID(){return ut()},sdkEvent:{APP_SESSION_START:Hs,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:Go,PROMO:"promo"},overridableMetadata:xo,name:et.cn,version:et.sv,dictionaryVersion:3}),Sl||W(El,et.kd)})("object"==typeof globalThis?globalThis:window,{},(s={},function(){function e(t,i){var u=u||{},r=(u.scope={},u.createTemplateTagFirstArg=function(e){return e.raw=e},u.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,e},u.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},u.arrayIterator=function(e){return{next:u.arrayIteratorImpl(e)}},u.makeIterator=function(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.call(e);if("number"==typeof e.length)return u.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n},u.arrayFromIterable=function(e){return e instanceof Array?e:u.arrayFromIterator(u.makeIterator(e))},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.objectCreate=u.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value),e},u.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof re&&re];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$",u.polyfill=function(e,t,n,i){t&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(e,t,n,i):u.polyfillUnisolated(e,t,n,i))},u.polyfillUnisolated=function(e,t,n,i){for(n=u.global,e=e.split("."),i=0;i<e.length-1;i++){var r=e[i];if(!(r in n))return;n=n[r]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&u.defineProperty(n,e,{configurable:!0,writable:!0,value:t})},u.polyfillIsolated=function(e,t,n,i){var r=e.split(".");e=1===r.length,i=r[0],i=!e&&i in u.polyfills?u.polyfills:u.global;for(var a=0;a<r.length-1;a++){var o=r[a];if(!(o in i))return;i=i[o]}r=r[r.length-1],null!=(t=t(n=u.IS_SYMBOL_NATIVE&&"es6"===n?i[r]:null))&&(e?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:t}):t!==n&&(void 0===u.propertyToPolyfillSymbol[r]&&(n=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+n+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:t})))},u.getConstructImplementation=function(){var i;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(e,[],function(){}),new e instanceof e?Reflect.construct:(i=Reflect.construct,function(e,t,n){return e=i(e,t),n&&Reflect.setPrototypeOf(e,n.prototype),e})):function(e,t,n){return n=u.objectCreate((n=void 0===n?e:n).prototype||Object.prototype),Function.prototype.apply.call(e,n,t)||n};function e(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var e={};try{return e.__proto__={a:!0},e.a}catch(e){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null,u.inherits=function(e,t){if(e.prototype=u.objectCreate(t.prototype),e.prototype.constructor=e,u.setPrototypeOf){var n=u.setPrototypeOf;n(e,t)}else for(n in t){var i;"prototype"!=n&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(t,n))&&Object.defineProperty(e,n,i):e[n]=t[n])}e.superClass_=t.prototype},u.getRestArguments=function(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t},u.polyfill("Reflect",function(e){return e||{}},"es6","es3"),u.polyfill("Reflect.construct",function(e){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(e){var n;return e||(u.setPrototypeOf?(n=u.setPrototypeOf,function(e,t){try{return n(e,t),!0}catch(e){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(e){var t,n,i,r;return e||((t=function(e,t){this.$jscomp$symbol$id_=e,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})}).prototype.toString=function(){return this.$jscomp$symbol$id_},n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new t(n+(e||"")+"_"+i++,e)})},"es6","es3"),u.polyfill("Symbol.iterator",function(e){if(!e){e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var i=u.global[t[n]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&u.defineProperty(i.prototype,e,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return e},"es6","es3"),u.iteratorPrototype=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e},u.iteratorFromArray=function(t,n){t instanceof String&&(t+="");var i=0,r=!1,e={next:function(){var e;return!r&&i<t.length?(e=i++,{value:n(e,t[e]),done:!1}):{done:r=!0,value:void 0}}};return e[Symbol.iterator]=function(){return e},e},u.polyfill("Array.prototype.keys",function(e){return e||function(){return u.iteratorFromArray(this,function(e){return e})}},"es6","es3"),u.owns=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.polyfill("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)u.owns(e,t)&&n.push(e[t]);return n}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(e,t,n){return e==i&&"q"==t&&n==r}}));return!0===r.q}catch(e){return!1}},u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,u.ES6_CONFORMANCE=u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&u.checkEs6ConformanceViaProxy(),u.polyfill("WeakMap",function(i){function n(){}function r(e){var t=typeof e;return"object"==t&&null!==e||"function"==t}function a(e){var t;u.owns(e,o)||(t=new n,u.defineProperty(e,o,{value:t}))}function e(e){var t;u.ISOLATE_POLYFILLS||(t=Object[e])&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&a(e),t(e))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if((()=>{if(i&&Object.seal)try{var e=Object.seal({}),t=Object.seal({}),n=new i([[e,2],[t,3]]);return 2==n.get(e)&&3==n.get(t)?(n.delete(e),n.set(t,4),!n.has(e)&&4==n.get(t)):void 0}catch(e){}})())return i;function t(e){if(this.id_=(s+=Math.random()+1).toString(),e){e=u.makeIterator(e);for(var t;!(t=e.next()).done;)this.set((t=t.value)[0],t[1])}}var o="$jscomp_hidden_"+Math.random(),s=(e("freeze"),e("preventExtensions"),e("seal"),0);return t.prototype.set=function(e,t){if(!r(e))throw Error("Invalid WeakMap key");if(a(e),u.owns(e,o))return e[o][this.id_]=t,this;throw Error("WeakMap key fail: "+e)},t.prototype.get=function(e){return r(e)&&u.owns(e,o)?e[o][this.id_]:void 0},t.prototype.has=function(e){return r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_)},t.prototype.delete=function(e){return!!(r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_))&&delete e[o][this.id_]},t},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(r){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if((()=>{if(!u.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var e,t,n=Object.seal({x:4}),i=new r(u.makeIterator([[n,"s"]]));return"s"!=i.get(n)||1!=i.size||i.get({x:4})||i.set({x:4},"t")!=i||2!=i.size?void 0:(t=(e=i.entries()).next()).done||t.value[0]!=n||"s"!=t.value[1]?void 0:!((t=e.next()).done||4!=t.value[0].x||"t"!=t.value[1]||!e.next().done)}catch(e){}})())return r;function e(e){if(this.data_={},this.head_=n(),this.size=0,e){e=u.makeIterator(e);for(var t;!(t=e.next()).done;)this.set((t=t.value)[0],t[1])}}var a=new WeakMap,i=(e.prototype.set=function(e,t){var n=i(this,e=0===e?0:e);return n.list||(n.list=this.data_[n.id]=[]),n.entry?n.entry.value=t:(n.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:e,value:t},n.list.push(n.entry),this.head_.previous.next=n.entry,this.head_.previous=n.entry,this.size++),this},e.prototype.delete=function(e){return!(!(e=i(this,e)).entry||!e.list||(e.list.splice(e.index,1),e.list.length||delete this.data_[e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,0))},e.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=n(),this.size=0},e.prototype.has=function(e){return!!i(this,e).entry},e.prototype.get=function(e){return(e=i(this,e).entry)&&e.value},e.prototype.entries=function(){return t(this,function(e){return[e.key,e.value]})},e.prototype.keys=function(){return t(this,function(e){return e.key})},e.prototype.values=function(){return t(this,function(e){return e.value})},e.prototype.forEach=function(e,t){for(var n,i=this.entries();!(n=i.next()).done;)e.call(t,(n=n.value)[1],n[0],this)},e.prototype[Symbol.iterator]=e.prototype.entries,function(e,t){var n=t&&typeof t,i=("object"==n||"function"==n?a.has(t)?n=a.get(t):(n=""+ ++o,a.set(t,n)):n="p_"+t,e.data_[n]);if(i&&u.owns(e.data_,n))for(e=0;e<i.length;e++){var r=i[e];if(t!=t&&r.key!=r.key||t===r.key)return{id:n,list:i,index:e,entry:r}}return{id:n,list:i,index:-1,entry:void 0}}),t=function(e,t){var n=e.head_;return u.iteratorPrototype(function(){if(n){for(;n.head!=e.head_;)n=n.previous;if(n.next!=n.head)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}})},n=function(){var e={};return e.previous=e.next=e.head=e},o=0;return e},"es6","es3"),{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction",STATE_CHANGE:"stateChange"},MediaEventType:{LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},SupportedFeatures:{CONTAINER:"clid",VIDEO:"vlid"},VideoPosition:{PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},VideoPlayerState:{MINIMIZED:"minimized",COLLAPSED:"collapsed",NORMAL:"normal",EXPANDED:"expanded",FULLSCREEN:"fullscreen"},NativeViewKeys:{X:"x",LEFT:"left",Y:"y",TOP:"top",WIDTH:"width",HEIGHT:"height",AD_SESSION_ID:"adSessionId",IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",CLIPS_TO_BOUNDS:"clipsToBounds",CHILD_VIEWS:"childViews",END_X:"endX",END_Y:"endY",OBSTRUCTIONS:"obstructions",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),n="omid_message_guid",a="omid_message_method",o="omid_message_version",s="omid_message_args",l=function(e,t,n,i){this.guid=e,this.method=t,this.version=n,this.args=i},c=(l.isValidSerializedMessage=function(e){return!!e&&void 0!==e[n]&&void 0!==e[a]&&void 0!==e[o]&&"string"==typeof e[n]&&"string"==typeof e[a]&&"string"==typeof e[o]&&(void 0===e[s]||void 0!==e[s])},l.deserialize=function(e){return new l(e[n],e[a],e[o],e[s])},l.prototype.serialize=function(){var e={};return e[n]=this.guid,e[a]=this.method,e[o]=this.version,void 0!==this.args&&(e[s]=this.args),e},function(e){this.to=e,this.communicationType_=r.CommunicationType.NONE});function d(e,t){if(!t)throw Error("Value for "+e+" is undefined, null or blank.");if("string"!=typeof t&&!(t instanceof String))throw Error("Value for "+e+" is not a string.");if(""===t.trim())throw Error("Value for "+e+" is empty string.")}function p(e,t){if(null==t)throw Error("Value for "+e+" is undefined or null")}function f(e,t){if(null==t)throw Error(e+" must not be null or undefined.");if("number"!=typeof t||isNaN(t))throw Error("Value for "+e+" is not a number")}function m(e,t,n,i){if(f(e,t),t<n||i<t)throw Error("Value for "+e+" is outside the range ["+n+","+i+"]")}function U(e,t){return e&&(e[t]||(e[t]={}))}function e(e,t,n){(n=void 0===n?void 0===i?null:i:n)&&((e=e.split(".")).slice(0,e.length-1).reduce(U,n)[e[e.length-1]]=t)}function _(e,t,n,i){i=void 0===i?r.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=t,this.verificationParameters=n,this.accessMode=i}function h(e,t,n,i){n=void 0===n?null:n,i=void 0===i?null:i,p("Context.partner",e),this.partner=e,this.verificationScriptResources=t,this.videoElement=this.slotElement=null,this.contentUrl=n,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null}c.prototype.sendMessage=function(e,t){},c.prototype.handleMessage=function(e,t){this.onMessage&&this.onMessage(e,t)},c.prototype.serialize=function(e){return JSON.stringify(e)},c.prototype.deserialize=function(e){return JSON.parse(e)},c.prototype.isDirectCommunication=function(){return this.communicationType_===r.CommunicationType.DIRECT},c.prototype.isCrossOrigin=function(){},e("OmidSessionClient.Partner",function(e,t){d("Partner.name",e),d("Partner.version",t),this.name=e,this.version=t}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},e("OmidSessionClient.VerificationScriptResource",_),h.prototype.setVideoElement=function(e){p("Context.videoElement",e),this.videoElement=e},h.prototype.setSlotElement=function(e){p("Context.slotElement",e),this.slotElement=e},h.prototype.setServiceWindow=function(e){p("Context.serviceWindow",e),this.serviceWindow=e},e("OmidSessionClient.Context",h);var v={},E=(v.omidGlobal=(()=>{if(void 0!==t&&t)return t;if(void 0!==re&&re)return re;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var e=Function("return this")();if(e)return e;throw Error("Could not determine global object context.")})(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),g={sessionError:"reportError"},x=Object.keys(r.MediaEventType).map(function(e){return r.MediaEventType[e]}),V=["impressionOccurred"],y=function(e){e=void 0===e?v.omidGlobal:e,this.interfaceRoot_=e[E.ROOT]};function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return e=("y"===e?3&t|8:t).toString(16)})}function I(){var e=u.getRestArguments.apply(0,arguments);F(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(e))))},function(){console.error.apply(console,u.arrayFromIterable(e))})}function F(e,t){"undefined"!=typeof jasmine&&jasmine?e():"undefined"!=typeof console&&console&&console.error&&t()}y.prototype.isSupported=function(){return null!=this.interfaceRoot_},y.prototype.sendMessage=function(e,t,n){if("registerSessionObserver"==e&&(n=[t]),t=this.interfaceRoot_,0<=V.indexOf(e=g[e]?g[e]:e)&&(t=t[E.AD_EVENTS]),!(t=(t=0<=x.indexOf(e)?t[E.MEDIA_EVENTS]:t)[e]))throw Error("Unrecognized method name: "+e+".");t.apply(null,u.arrayFromIterable(n))};var A="1.5.0-iab4484",W=3;function T(e){return/\d+\.\d+\.\d+(-.*)?/.test(e)}function O(e,t){e=e.split("-")[0].split("."),t=t.split("-")[0].split(".");for(var n=0;n<W;n++){var i=parseInt(e[n],10),r=parseInt(t[n],10);if(r<i)break;if(i<r)return!1}return!0}var b="1.0.3";function j(e,t){return T(e)&&O(e,b)?t:JSON.stringify(t)}function B(e,t){return T(e)&&O(e,b)?t||[]:t&&"string"==typeof t?JSON.parse(t):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function z(e){return G(e,H.SESSION_SERVICE)}function G(e,t){return t+e}function C(e){return null!=e&&void 0!==e.top&&null!=e.top}function M(e){var t;if(e!==v.omidGlobal)try{if(void 0===e.location.hostname)return!0;""!==(t=e).x&&t.x}catch(e){return!0}return!1}function $(e){return C(e=void 0===e&&"undefined"!=typeof window&&window?window:e)?e:v.omidGlobal}function q(e){return C(e)?e.top:v.omidGlobal}var D=function(e){c.call(this,e),this.communicationType_=r.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,c),D.prototype.sendMessage=function(e,t){if(!(t=void 0===t?this.to:t))throw Error("Message destination must be defined at construction time or when sending the message.");t.handleExportedMessage(e.serialize(),this)},D.prototype.handleExportedMessage=function(e,t){l.isValidSerializedMessage(e)&&this.handleMessage(l.deserialize(e),t)},D.prototype.isCrossOrigin=function(){return!1},function(e,t){t=void 0===t?v.omidGlobal:t,c.call(this,t);var n=this;this.communicationType_=r.CommunicationType.POST_MESSAGE,e.addEventListener("message",function(e){var t;"object"==typeof e.data&&(t=e.data,l.isValidSerializedMessage(t))&&(t=l.deserialize(t),e.source)&&n.handleMessage(t,e.source)})}),N=(u.inherits(R,c),R.isCompatibleContext=function(e){return!!(e&&e.addEventListener&&e.postMessage)},R.prototype.sendMessage=function(e,t){if(!(t=void 0===t?this.to:t))throw Error("Message destination must be defined at construction time or when sending the message.");t.postMessage(e.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||M(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(e){var t={};return t[r.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,t[r.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,t[e]}});function Y(e,t){try{return e.frames&&!!e.frames[t]}catch(e){return!1}}function K(e,t){e.document.write('<iframe style="display:none" id="'+t+'" name="'+t+'" sandbox></iframe>')}N.isOmidPresent=function(t){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return Y(t,e)})},N.getOmidEnvironment=function(e){for(var t=u.makeIterator(Object.values(r.Environment)),n=t.next();!n.done;n=t.next()){n=n.value;if(Y(e,N.getEnvironmentIframeName(n)))return n}return null},N.declareOmidPresence=function(t,e){t.frames&&t.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return!!t.frames[e]})&&(null==t.document.body&&N.isMutationObserverAvailable_(t)?N.registerMutationObserver_(t,e):(e=N.getEnvironmentIframeName(e),t.document.body?(N.appendPresenceIframe_(t,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(t,e)):(K(t,N.OMID_PRESENT_FRAME_NAME),K(t,e))))},N.appendPresenceIframe_=function(e,t){var n=e.document.createElement("iframe");n.id=t,n.name=t,n.style.display="none",n.sandbox="",e.document.body.appendChild(n)},N.isMutationObserverAvailable_=function(e){return"MutationObserver"in e},N.registerMutationObserver_=function(t,n){var i=new MutationObserver(function(e){e.forEach(function(e){"BODY"===e.addedNodes[0].nodeName&&(e=N.getEnvironmentIframeName(n),N.appendPresenceIframe_(t,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(t,e),i.disconnect())})});i.observe(t.document.documentElement,{childList:!0})};var X=["omid","v1_SessionServiceCommunication"];function J(e,t){return t.reduce(function(e,t){return e&&e[t]},e)}function Q(e,t,n,i){for(var r=(t=u.makeIterator(t)).next();!r.done;r=t.next())if(r=((e,t,n,i)=>{if(!M(t))try{var r=J(t,n);if(r)return new D(r)}catch(e){}return i(t)?new R(e,t):null})(e,r.value,n,i))return r;return null}function Z(e,t,n){n=void 0===n?N.isOmidPresent:n;var i=[e,q(e)];return t&&i.unshift(t),Q(e,i,X,n)}function P(e,t,n){p("AdSession.context",e),this.adSessionId_=S(),this.context_=e,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=t||Z($(),i),this.sessionInterface_=n||new y,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(e.verificationScriptResources),this.sendSlotElement_(e.slotElement),this.sendVideoElement_(e.videoElement),this.sendContentUrl_(e.contentUrl),this.watchSessionEvents_()}function ee(e,t,n,i){this.isSkippable=e,this.skipOffset=t,this.isAutoPlay=n,this.position=i}function k(e){p("AdEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerAdEvents(),this.adSession=e}catch(e){throw Error("AdSession already has an ad events instance registered")}}function L(e){p("MediaEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerMediaEvents(),this.adSession=e}catch(e){throw Error("AdSession already has a media events instance registered")}}function te(n){var e=$();new R(e).onMessage=function(e,t){e.method===r.MessageMethod.IDENTIFY_SERVICE_WINDOW&&n(t)}}P.prototype.getAdSessionId=function(){return this.adSessionId_},P.prototype.setCreativeType=function(e){if(e===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+r.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",e,this.adSessionId_),this.creativeType_=e},P.prototype.setImpressionType=function(e){if(e===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+r.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",e,this.adSessionId_),this.impressionType_=e},P.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},P.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},P.prototype.registerSessionObserver=function(e){this.sendMessage("registerSessionObserver",e,this.adSessionId_)},P.prototype.start=function(){this.sendOneWayMessage("startSession",{customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation},this.adSessionId_)},P.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},P.prototype.error=function(e,t){this.sendOneWayMessage("sessionError",e,t,this.adSessionId_)},P.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},P.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},P.prototype.sendOneWayMessage=function(e){var t=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[e,null].concat(u.arrayFromIterable(t)))},P.prototype.sendMessage=function(e,t){var n=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(e,t,n):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(e,t,n)},P.prototype.sendInternalMessage_=function(e,t,n){var i=S();t&&(this.callbackMap_[i]=t),e=new l(i,z(e),A,j(A,n)),this.communication_.sendMessage(e)},P.prototype.handleInternalMessage_=function(e,t){t=e.method;var n,i=e.guid;e=e.args,"response"===t&&this.callbackMap_[i]&&(n=B(A,e),this.callbackMap_[i].apply(this,n)),"error"===t&&window.console&&I(e)},P.prototype.sendInterfaceMessage_=function(e,t,n){try{this.sessionInterface_.sendMessage(e,t,n)}catch(e){I("Failed to communicate with SessionInterface with error:"),I(e)}},P.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},P.prototype.impressionOccurred=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},P.prototype.creativeLoaded=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},P.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",A,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},P.prototype.injectVerificationScripts_=function(e){e&&(e=e.map(function(e){return e.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",e,this.adSessionId_))},P.prototype.sendSlotElement_=function(e){this.sendElement_(e,"setSlotElement")},P.prototype.sendVideoElement_=function(e){this.sendElement_(e,"setVideoElement")},P.prototype.sendElement_=function(e,t){e&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(t,e,this.adSessionId_):this.error(r.ErrorType.GENERIC,"Session Client "+t+" called when communication is cross-origin"))},P.prototype.sendContentUrl_=function(e){e&&this.sendOneWayMessage("setContentUrl",e,this.adSessionId_)},P.prototype.setElementBounds=function(e){p("AdSession.elementBounds",e),this.sendOneWayMessage("setElementBounds",e,this.adSessionId_)},P.prototype.watchSessionEvents_=function(){var t=this;this.registerSessionObserver(function(e){e.type===r.AdEventType.SESSION_START&&(t.isSessionRunning_=!0,t.creativeType_=e.data.creativeType,t.impressionType_=e.data.impressionType),e.type===r.AdEventType.SESSION_FINISH&&(t.isSessionRunning_=!1)})},e("OmidSessionClient.AdSession",P),ee.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},k.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},k.prototype.loaded=function(e){e=void 0===e?null:e,this.adSession.creativeLoaded(),e=e?e.toJSON():null,this.adSession.sendOneWayMessage("loaded",e,this.adSessionId_)},e("OmidSessionClient.AdEvents",k),L.prototype.start=function(e,t){f("MediaEvents.start.duration",e),m("MediaEvents.start.mediaPlayerVolume",t,0,1),this.adSession.sendOneWayMessage("start",e,t,this.adSessionId_)},L.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},L.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},L.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},L.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},L.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},L.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},L.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},L.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},L.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},L.prototype.volumeChange=function(e){m("MediaEvents.volumeChange.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("volumeChange",e,this.adSessionId_)},L.prototype.playerStateChange=function(e){p("MediaEvents.playerStateChange.playerState",e),this.adSession.sendOneWayMessage("playerStateChange",e,this.adSessionId_)},L.prototype.adUserInteraction=function(e){p("MediaEvents.adUserInteraction.interactionType",e),this.adSession.sendOneWayMessage("adUserInteraction",e,this.adSessionId_)},e("OmidSessionClient.MediaEvents",L),e("OmidSessionClient.OmidVersion",function(e,t){d("OmidVersion.semanticVersion",e),d("OmidVersion.apiLevel",t)}),e("OmidSessionClient.listenForServiceWindow",te),e("OmidSessionClient.VastProperties",ee);var w={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9}};function ne(e){for(var t=u.makeIterator(ie.keys()),n=t.next();!n.done;n=t.next())for(var n=n.value,i=u.makeIterator(ie.get(n)),r=i.next();!r.done;r=i.next())if(r.value.test(e))return n;return w.VerificationVendorId.OTHER}var ie=new Map([[w.VerificationVendorId.MOAT,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.moatads\.com\/.*$/]],[w.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[w.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[w.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[w.VerificationVendorId.NIELSEN,[]],[w.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[w.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[w.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]]]);e("OmidSessionClient.verificationVendorIdForScriptUrl",ne),e("OmidSessionClient.VerificationVendorId",w.VerificationVendorId),w.verificationVendorIdForScriptUrl=ne}var re="object"==typeof globalThis?globalThis:window,t={},n=void 0===re?this:re;if("object"==typeof(r=void 0===t?void 0:t)&&"string"!=typeof r.nodeName)e(n,r);else{var i,r={},a=["1.5.0-iab4484"],o="default";for(i in a.push(o),e(n,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(n,i)&&Object.defineProperty(n,i,{value:{}}),a.forEach(function(e){var t;null==Object.getOwnPropertyDescriptor(n[i],e)&&(t=function e(t){for(var n in t)t.hasOwnProperty(n)&&(t[n]=e(t[n]));return Object.freeze(t)}(r[i]),Object.defineProperty(n[i],e,{get:function(){return t},enumerable:!0}))}))}s.OmidSessionClient=t.OmidSessionClient}(),n={},e=self,t=function(){{var M,D,R,N,P={d:function(e,t){for(var n in t)P.o(t,n)&&!P.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},k={};P.d(k,{default:function(){return C}});let o=1,n=2,i=4,r="[MT] ",s=((M={})[M.NONE=0]="NONE",M[M.ERROR=1]="ERROR",M[M.WARNING=2]="WARNING",M[M.INFO=3]="INFO",M[M.DEBUG=4]="DEBUG",M),a=n;function L(e,t,n,i){a>=e&&(n=r+n,void 0===i?t.call(console,n):t.call(console,n,i))}let u=console.error,p=console.warn,f=console.debug;function w(e,t){L(o,u,e,t)}function ke(e,t){L(n,p,e,t)}function Le(e,t){L(i,f,e,t)}function U(e){return("object"==typeof globalThis?globalThis:window)?.[e]}function x(e){if(e){if(Array.isArray(e))return e.slice();if("object"==typeof e)return Object.assign({},e)}return null}function we(e){if(e)try{return JSON.parse(JSON.stringify(e))}catch(e){w("Exception during deep-copy: "+e,e)}return null}function V(e,t){if(null!=e)try{return new URL(e,t).toString()}catch(e){w("URL Exception: "+e,e)}return null}function Ue(r,a,o){let e=a?.length||0;if(0<e){let n=0,i=e-1;for(;n<=i;){let e=Math.ceil((n+i)/2),t=o(r,a[e]);if(0===t)return e;0<t?n=e+1:i=e-1}}return-1}let l=[];for(let e=0;e<256;e++)l.push((e+256).toString(16).substr(1).toLowerCase());let c=!!U("crypto")?.getRandomValues,_=(c||ke("crypto.getRandomValues() unavailable"),/P.*T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?/),m=[2,9],W=10,pe=5,j=2,B="ad_start",fe="ad_end",me="ad_progress",_e="ad_click",he="ad_can_skip",ve="ad_incoming",Ee="nonlinear_ad_start",ge="nonlinear_ad_end",ye="ad_tracking_info_response",Se=0,Ie=1,Ae=2,Te=3,Oe=4,be=5,Ce=6,Me=7,H=0,z=1,G=2,$=3,q=4,Y=5,K=6,X=7,J=8,Q=9,Z=10,ee=11,te=12,ne=13,ie=14,h=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],d=null;function xe(e){try{return JSON.parse(e)}catch(e){return ke("JSON Parse Exception: "+e,e),null}}function F(i,r,t,a,o){let s=new XMLHttpRequest,u=a?.retryHeuristics,l=0,c=!1;function d(){if(!c)try{{var n=s;var e=a;let t=e?.headers;n.open(i,r,!0),n.timeout=e?.timeout??0,t&&Object.keys(t).forEach(e=>{n.setRequestHeader(e,t[e])})}l++,s.send(t),Le(`XHR (${i} ${r}, #${l}) request sent`,t)}catch(e){ke("XHR Exception: "+e,e)}}return s.onreadystatechange=()=>{if(!c&&4===s.readyState){var e=s.status,t=s.responseText;if(Le(`XHR (${r}) response received, status `+e,t),e<200||299<e){var n=u?u(l,e,t):-1;if(0<=n)return setTimeout(d,n),void ke(`XHR (${r}) failed (status ${e}), retry in ${n} ms`,t)}o&&o(t,e,r)}},d(),{abort(){c=!0,s.abort(),Le(`XHR (${r}) aborted`)}}}function Ve(e,t,n){return F("GET",e,null,t,n)}let v="impression",De="clickThrough",re="firstQuartile",ae="midpoint",oe="thirdQuartile",se="complete",E="creativeView",ue=[],Re=(ue[H]=[v],ue[z]=["clickTracking"],ue[G]=["loaded"],ue[$]=["start",E],ue[q]=[re],ue[Y]=[ae],ue[K]=[oe],ue[X]=[se],ue[J]=["skip"],ue[Q]=["pause"],ue[Z]=["resume"],ue[ee]=["mute"],ue[te]=["unmute"],ue[ne]=["fullscreen","playerExpand"],ue[ie]=["exitFullscreen","playerCollapse"],{}),le=([v,"loaded","start",E,re,ae,oe,se].forEach(e=>{Re[e]={noninteractive:!0}}),"adData: ");function Fe(e){return e&&"object"==typeof e&&e}function We(a,e){if(!Fe(a))return null;let[,o]=e,s={},t=o.length;for(let r=0;r<t;r++){let[e,t,n]=o[r],i=n[0](a[e],n);if(null!=i)s[e]=i;else if(!t)return Le(le+("Missing object field: "+e),a),null}return s}function je(e){return e&&Array.isArray(e)?e:null}function Be(n,e){if(!je(n))return null;let[,i,r]=e,a=[],o=n.length;for(let t=0;t<o;t++){let e=r[0](n[t],r);null!=e||i?a.push(e):Le(le+("Invalid array entry at: "+t),n)}return a}function He(e){return"number"==typeof e?e:null}function ze(e){return"string"==typeof e?e:null}let e=[He],t=[ze],g=[function(e){return"boolean"==typeof e?e:null}],y=[We,[["content",!1,t],["type",!1,t]]],S=[We,[["beaconUrls",!1,[Be,!1,t]],["durationInSeconds",!0,e],["eventId",!0,t],["eventProgramDateTime",!0,t],["eventType",!1,t],["startTimeInSeconds",!0,e]]],Ne=[We,[["adId",!0,t],["adParameters",!0,t],["adSystem",!0,t],["adTitle",!0,t],["adVerifications",!0,[Be,!1,[We,[["executableResource",!0,[Be,!1,[We,[["apiFramework",!0,t],["language",!0,t],["type",!0,t],["uri",!0,t]]]]],["javaScriptResource",!0,[Be,!1,[We,[["apiFramework",!0,t],["browserOptional",!0,t],["uri",!0,t]]]]],["trackingEvents",!0,[Be,!1,[We,[["event",!1,t],["uri",!1,t]]]]],["vendor",!0,t],["verificationParameters",!0,t]]]]],["companionAds",!0,[Be,!1,[We,[["adParameters",!0,t],["altText",!0,t],["attributes",!0,[We,[["adSlotId",!0,t],["apiFramework",!0,t],["assetHeight",!0,t],["assetWidth",!0,t],["expandedHeight",!0,t],["expandedWidth",!0,t],["height",!0,t],["id",!0,t],["pxratio",!0,t],["renderingMode",!0,t],["width",!0,t]]]],["companionClickThrough",!0,t],["companionClickTracking",!0,t],["htmlResource",!0,t],["iFrameResource",!0,t],["sequence",!0,t],["staticResource",!0,t],["trackingEvents",!0,[Be,!1,[We,[["beaconUrls",!1,[Be,!1,t]],["eventType",!1,t]]]]]]]]],["creativeId",!0,t],["creativeSequence",!0,t],["extensions",!0,[Be,!1,y]],["trackingEvents",!0,[Be,!1,S]],["vastAdId",!0,t]]],Pe=[We,[["nonLinearAdList",!1,[Be,!1,[We,[["durationInSeconds",!1,e],["adId",!0,t],["adParameters",!0,t],["adSystem",!0,t],["adTitle",!0,t],["creativeId",!0,t],["creativeAdId",!0,t],["creativeSequence",!0,t],["width",!0,t],["height",!0,t],["expandedWidth",!0,t],["expandedHeight",!0,t],["scalable",!0,g],["maintainAspectRatio",!0,g],["minSuggestedDuration",!0,t],["apiFramework",!0,t],["staticResource",!0,t],["staticResourceCreativeType",!0,t],["iFrameResource",!0,t],["htmlResource",!0,t],["clickThrough",!0,t],["clickTracking",!0,t],["clickTrackingId",!0,t]]]]],["extensions",!0,[Be,!1,y]],["trackingEvents",!0,[Be,!1,S]]]],ce=new DOMParser,I=/\n|<!\[CDATA\[|\]\]>/g;function Ge(e){e=e?.textContent;return null==e?null:e.replace(I,"").trim()}function $e(e,t,n){n&&(e[t]=n)}function qe(e,t){for(var n of e.children)t[n.tagName]?.(n)}function Ye(e){let n=[];return qe(e,{IconClickFallbackImage:e=>{let t={};n.push(t),$e(t,"width",e.getAttribute("width")),$e(t,"height",e.getAttribute("height")),qe(e,{AltText:e=>{$e(t,"altText",Ge(e))},StaticResource:e=>{$e(t,"staticResource",Ge(e))}})}}),n}function Ke(t,f,m){if(Fe(t)){let o=ze(t.dashAvailabilityStartTime),e=je(t.avails),n=(e?.forEach(n=>{if(Fe(n)){var i=ze(n.availId);if(i){let l=He(n.startTimeInSeconds),c=He(n.durationInSeconds),d=(r=(r=ze(n.adMarkerDuration))&&_.exec(r))?3600*((a=r[1])?+a:0)+60*((a=r[2])?+a:0)+((a=r[3])?+a:0):null;let p=ze(n.availProgramDateTime);p=(p?new Date(p).getTime()/1e3:o?new Date(o).getTime()/1e3+l:0)||0,s(!1,n,l,c,p,d);var r=f[i];let t="",e=je(n.ads);e?.forEach(e=>{Fe(e)&&(t+=e.adId+`,${e.startTime},${e.duration};`)});var a=!r||t!==r.digest;if(Le(le+`Avail ${a?r?"!":"":"~"}${i} `+`(${n.duration} @ ${n.startTime} / ${n.availProgramDateTime})`,n),a){let o={},s=r?.ads,u=e?.length;if(e?.forEach((t,n)=>{if(Fe(t)){var i=ze(t.adId);if(i){var r=He(t.startTimeInSeconds);if(null==r)ke(le+"Invalid or missing ad start time",t);else{o[i]={start:r,duration:t.duration};let e=null;s&&(e=s[i],s[i]=null);var a=!e||r!==e.start||t.duration!==e.duration;Le(le+`Ad ${a?e?"!":"":"~"}${i} `+`(#${n+1} of ${u}) `+`(${t.duration} @ ${t.startTime} / ${t.adProgramDateTime})`,t),a&&m(r,n,u,l,c,p,d,t,!1,!1,e?.start)}}else ke(le+"Missing ad ID",t)}else ke(le+"Invalid ad object",e)}),s)for(let t in s){let e=s[t];e&&m(0,0,0,l,c,p,d,null,!1,!1,e.start)}f[i]={digest:t,ads:o}}}else ke(le+"Missing avail ID",n)}else ke(le+"Invalid avail object",e)}),je(t.nonLinearAvails));n?.forEach(e=>{var t;Fe(e)?(Le(le+`nonLinearAvail (${e.startTime} / ${e.availProgramDateTime})`,e),s(!0,e,t=He(e.startTimeInSeconds),null,e=((e=ze(e.availProgramDateTime))?new Date(e).getTime()/1e3:o?new Date(o).getTime()/1e3+t:0)||0,null)):ke(le+"Invalid nonLinearAvail object",n)});t=ze(t.nextToken);return t&&Le(le+`nextToken "${t}"`),t;function s(e,t,n,i,r,a){t=je(t.nonLinearAdsList)?.[0];t&&(Fe(t)?null==n?ke(le+"Invalid or missing nonlinear ad start time",t):(Le(le+"nonLinearAds",t),m(n,0,1,n,i,r,a,t,!0,e)):ke(le+"Invalid nonLinearAds object",t))}}else ke(le+"Invalid tracking-info response")}(M={})[M.AD_START=B]="AD_START",M[M.AD_END=fe]="AD_END",M[M.AD_PROGRESS=me]="AD_PROGRESS",M[M.AD_CLICK=_e]="AD_CLICK",M[M.AD_CAN_SKIP=he]="AD_CAN_SKIP",M[M.AD_INCOMING=ve]="AD_INCOMING",M[M.NONLINEAR_AD_START=Ee]="NONLINEAR_AD_START",M[M.NONLINEAR_AD_END=ge]="NONLINEAR_AD_END",M[M.AD_TRACKING_INFO_RESPONSE=ye]="AD_TRACKING_INFO_RESPONSE",(D={})[D.START=Se]="START",D[D.END=Ie]="END",D[D.PAUSE=Ae]="PAUSE",D[D.RESUME=Te]="RESUME",D[D.MUTE=Oe]="MUTE",D[D.UNMUTE=be]="UNMUTE",D[D.FULLSCREEN=Ce]="FULLSCREEN",D[D.EXIT_FULLSCREEN=Me]="EXIT_FULLSCREEN";let de=[];function Xe(r,t,e){let u="adTracking: ",v=(e,t)=>e-t.start,l=(e,t)=>e-t.startDate,a=(e,t)=>e.start-t.start,o={headers:{"Cache-Control":"no-cache, no-store"}},s=e.defaultTrackingRequestInterval||W,U=e.incomingAdCountdownInterval??pe,n=e.adTrackingUpdateMode||"pagination",x="playhead"===n,V="pagination"===n,E=[],F={},g=[],c,d=null,p=null,f=null,m=null,_=null,y=null,S=null,I=null,h=null,A=null,T=null,O=null,b=null,C=null,M=0,D=[],R=(()=>{let i=new EventTarget,a=null,r=null,o=-1,s=!1;function u(e,t){i.dispatchEvent(new CustomEvent(e,{detail:t}))}function l(e,t){var n=e.availDuration,i=e.inAvailStartOffset;return{toAdEnd:e.duration-t,toAvailEnd:null!=n&&null!=i?n-i-t:null,toSkipThreshold:0<=o?Math.max(0,o-t):null}}return{addEventListener(e,t,n){i.addEventListener(e,t,n)},removeEventListener(e,t,n){i.removeEventListener(e,t,n)},onTrackingInfoResponse(e){u(ye,{failedAdTrackingInfoRequest:e})},onAdStart(e,t,n){var i,r;a=(r=t,n=n,{adData:we(i=e),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:n+i.duration-r}),o=e.skipOffset,s=!1,u(B,{adObject:a,adElapsedTime:t,adCountdown:l(e,t)})},onAdEnd(e){u(fe,{adObject:a}),a=null},onAdProgress(e,t,n){u(me,{adObject:a,adElapsedTime:t,adCountdown:l(e,t)}),!s&&0<=o&&t>=o&&(s=!0,u(he,{adObject:a}))},onAdClick(e){u(_e,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart(e,t,n){r={adData:we(e)},u(Ee,{nonLinearAdsObject:r,adElapsedTime:t})},onNonLinearAdsEnd(e){u(ge,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}})();function N(n,i){let e=D.length;for(let t=0;t<e;t++){let e=D[t];e[n]?.apply(e,i)}}function P(e,t){t=t||d,Le(u+("Ad tracking event "+de[e]),t),N("onAdTrackingEvent",[t,e])}function k(e,t){!e.startDate&&O&&(e.startDate=t+O);t=c;(c=!!e.startDate)!==t&&Le(u+("Set adHasStartDate to "+c))}function L(e,t){var i,n=[["tttt",""+Date.now()]];x&&n.push(["aws.playheadPositionInSeconds",""+Math.round(t&&O?t-O:e)]),V&&T&&n.push(["aws.nextToken",T]),h?.abort(),t=(e=>{let t=new URL(r),n=new URLSearchParams(t.search);return e.forEach(e=>{n.append(e[0],e[1])}),t.search="?"+n.toString(),t.toString()})(n),i=(e,t)=>{if(200===t){let _=!1,h=!1;T=Ke(e,F,(n,i,r,a,o,t,s,u,l,c,d)=>{if(null!=a&&t&&(O=t-a),l){if(Ue(n,g,v)<0){l=n,t=t,c=c;let e=(m=We(p=u,Pe))?(f=m.nonLinearAdList.reduce((e,t)=>Math.max(e,t.durationInSeconds),0))?(Object.assign(m,{start:l,startDate:t,duration:f,nonlinearAvail:c}),Le(le+`New NonLinearAdsData (${f}s @ ${l}s / ${t}s)`,m),m):(ke(le+"Invalid nonlinear ad duration",p),null):(ke(le+"Missing required fields for NonLinearAdsData",p),null);e&&(k(e,n),g.push(e),h=!0,N("onNewNonLinearAds",[e]))}}else{let e=null!=d?Ue(d,E,v):-1,t=u&&((n,e,t,i,r,a,o)=>{let s=He(o.durationInSeconds);if(null==s||s<=0)return ke(le+"Invalid or missing ad duration",o),null;let u=ze(o.adProgramDateTime);u=u&&new Date(u).getTime()/1e3;var l=ze(o.skipOffset);let c=l&&new Date(`1970-01-01T${l}Z`).getTime()/1e3,d=(c||0===c||(c=-1),We(o,Ne));if(!d)return ke(le+"Missing required fields for AdData",o),null;d.extensions?.forEach(e=>{if("AdVerifications"===e.type){var t=e.content;try{var n=ce.parseFromString(t,"application/xml")?.documentElement,i=n?.getElementsByTagName("JavaScriptResource"),r=n?.getElementsByTagName("VerificationParameters"),a=n?.getAttribute("vendor"),o=Ge(i?.[0]),s=Ge(r?.[0]);a&&o?(d.adVerifications||(d.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):ke(le+"Invalid AdVerifications extension content",e)}catch(e){ke(le+"Exception parsing AdVerifications extension: "+t,e)}}else if("companion_about_this_ad"===e.type){n="<root>"+e.content+"</root>";try{let e=ce.parseFromString(n,"application/xml")?.documentElement;e&&qe(e,{Icon:e=>{let t=d.icons||(d.icons=[]),n={};t.push(n),$e(n,"program",e.getAttribute("program")),$e(n,"width",e.getAttribute("width")),$e(n,"height",e.getAttribute("height")),$e(n,"xPosition",e.getAttribute("xPosition")),$e(n,"yPosition",e.getAttribute("yPosition")),qe(e,{StaticResource:e=>{$e(n,"staticResource",Ge(e))},IconClicks:e=>{let t={};n.iconClicks=t,qe(e,{IconClickThrough:e=>{$e(t,"iconClickThrough",Ge(e))},IconClickFallbackImages:e=>{e=Ye(e);e.length&&(t.iconClickFallbackImages=e)}})}})}})}catch(e){ke(le+"Exception parsing AdChoices extension: "+n,e)}}else if("IconClickFallbackImages"===e.type){i="<root>"+e.content+"</root>";try{let e=ce.parseFromString(i,"application/xml")?.documentElement;e&&qe(e,{IconClickFallbackImages:e=>{var t={},e=((d.icons||(d.icons=[])).push(t),$e(t,"program",e.getAttribute("program")),Ye(e));e.length&&(t.iconClicks={iconClickFallbackImages:e})}})}catch(e){ke(le+"Exception parsing AdChoices extension: "+i,e)}}});let p=[0,0,0,0];function f(e,t){t-=n;0<t&&t<s+.01&&(p[e]=t)}return Object.assign(d,{start:n,startDate:u||0,duration:s,skipOffset:c,availAdIndex:e,availAdCount:t,availStart:i,availDuration:r,availMarkedDuration:a,inAvailStartOffset:null!=i?n-i:null,playCount:0,quartileEventOffsets:p}),d.videoClickThrough=null,d.trackingEvents=d.trackingEvents?.filter(e=>{switch(e.eventType){case De:var t=e.beaconUrls[0];return t&&(d.videoClickThrough=t),!1;case re:f(0,e.startTimeInSeconds);break;case ae:f(1,e.startTimeInSeconds);break;case oe:f(2,e.startTimeInSeconds);break;case se:f(3,e.startTimeInSeconds)}return!0}),Le(le+`New AdData (${s}s @ ${n}s / ${u})`,d),d})(n,i,r,a,o,s,u);t?(k(t,n),0<=e?(t.playCount=E[e].playCount,E[e]=t):E.push(t),_=!0,N("onNewAd",[t,0<=e])):0<=e&&(E.splice(e,1),_=!0)}var p,f,m}),_&&(E.sort(a),p=f=null,m=null),h&&(g.sort(a),y=S=null,I=null),N("onTrackingInfoResponse",[!1])}else ke(u+"Request failed, status "+t,e),N("onTrackingInfoResponse",[!0]);h=null},h=Ve(t,o,(e,t,n)=>{200===t&&null!=e&&(e=xe(e)),i(e,t)})}function w(e,t,n,i){let r,a,o;var s=i?"startDate":"start",n=((r,a,o)=>{let e=a?.length||0;if(0<e){let n=0,i=e-1;for(;n<i;){let e=Math.ceil((n+i)/2),t=o(r,a[e]);if(0===t)return e;0<t?n=e:i=e-1}if(0<n||0<=o(r,a[n]))return n}return-1})(n,t,i?l:v);return o=0<=n?(r=t[n],a=r[s],n+1<t.length?t[n+1][s]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,t.length?t[0][s]:Number.MAX_VALUE),Le(u+`Update time range (${a} - ${o}), `+e+" ad index "+n,r),[r,a,o]}function i(e){e&&D.indexOf(e)<0&&D.push(e)}return 0<=s&&L(0),i(R),i(((r,o)=>{let s={},a=null;return{onAdLoad(e){a={},e.trackingEvents?.forEach(e=>{a[e.eventType]=e})},onAdEnd(e){a=null},onAdTrackingEvent(n,e){var i=ue[e];if(a&&1===n.playCount&&i){let e=i.length;for(let t=0;t<e;t++){let e=i[t];r&&Re[e]?.noninteractive||((i,r)=>{var t=r?.beaconUrls;if(t){var n=t.length;for(let e=0;e<n;e++){var a=t[e]?.trim();a&&Ve(a,s,(e,t,n)=>{o(i,r,n,t)})}}})(n,a[e])}}}}})(e.disableNoninteractiveClientSideBeaconing,(e,t,n,i)=>{N("onAdBeaconResponse",[e,t,n,i])})),{updateAdTrackingInfo:function(){L(b??0,C),A=b},startUpdatingAdTrackingInfo:function(e){s=e||W,A=null},stopUpdatingAdTrackingInfo:function(){s=-1},onPlayheadUpdate:function(e,t){if(null!=b&&e>b&&e<b+j){0<=s&&!h&&(null==A||Math.abs(e-A)>=s)&&(L(e,t),A=e);var n=(t=c?t:null)||e,i=((null==p||n<p||n>=f)&&([m,p,f]=w("linear",E,n,t)),d),r=n-p;if((d=m&&n<p+m.duration?m:null)?.adId===i?.adId){if(d&&(Le(u+"Ad progresses, time => "+r),N("onAdProgress",[d,r,e]),r>M)&&r<M+j){let e=M;M=r,(a=d.quartileEventOffsets[0])&&e<a&&M>=a&&P(q),(a=d.quartileEventOffsets[1])&&e<a&&M>=a&&P(Y),(a=d.quartileEventOffsets[2])&&e<a&&M>=a&&P(K)}}else{if(i){let e=i.quartileEventOffsets[3];e&&M+j>e&&P(X,i),Le(u+"Ad ends",i),N("onAdEnd",[i])}M=0,d&&(d.playCount++,t&&Le(u+`PDT offset => player ${t-e}, ad `+(d.startDate-d.start),d),Le(u+"Ad loads",d),N("onAdLoad",[d]),P(G),Le(u+"Ad starts, time => "+r,d),N("onAdStart",[d,r,e]),P($),P(H))}if(!d){let e=f-n;e<=U&&R.dispatchEvent(ve,{timeToNextAd:e})}(null==y||n<y||n>=S)&&([I,y,S]=w("nonlinear",g,n,t));var a=_,i=n-y;(_=I&&n<y+I.duration?I:null)!==a&&(a&&(Le(u+"Nonlinear ad ends",a),N("onNonLinearAdsEnd",[a])),_)&&(t&&Le(u+`PDT offset => player ${t-e}, nonlinear ad `+(_.startDate-_.start),_),Le(u+"Nonlinear ad starts, time => "+i,_),N("onNonLinearAdsStart",[_,i,e]))}b=e,C=t},onPlaybackRateUpdate:function(e){},onPlaybackEvent:function(e){switch(e){case Se:t?.sendPlaybackStart();break;case Ie:t?.sendPlaybackEnd()}if(d)switch(e){case Ae:P(Q);break;case Te:P(Z);break;case Oe:P(ee);break;case be:P(te);break;case Ce:P(ne);break;case Me:P(ie)}},onVideoClick:function(e){d&&(t?.sendAdTouch(e),N("onAdClick",[d]))},onPlayerControlClick:function(e){d&&t?.sendAdTouch(e)},onAdClickthrough:function(){d&&(t?.sendAdClick(),P(z))},onAdSkip:function(){d&&P(J)},addAdObserver:i,removeAdObserver:function(e){e&&0<=(e=D.indexOf(e))&&D.splice(e,1)},getAllAds:function(){return E.map(e=>we(e))},getAllNonLinearAds:function(){return g.map(e=>we(e))},addEventListener(e,t,n){R.addEventListener(e,t,n)},removeEventListener(e,t,n){R.removeEventListener(e,t,n)}}}de[H]="IMPRESSION",de[z]="CLICK_THROUGH",de[G]="LOADED",de[$]="START",de[q]="FIRST_QUARTILE",de[Y]="MID_POINT",de[K]="THIRD_QUARTILE",de[X]="COMPLETE",de[J]="SKIP",de[Q]="PAUSE",de[Z]="RESUME",de[ee]="MUTE",de[te]="UNMUTE",de[ne]="FULLSCREEN",de[ie]="EXIT_FULLSCREEN",(N={})[N.IMPRESSION=H]="IMPRESSION",N[N.CLICK_THROUGH=z]="CLICK_THROUGH",N[N.LOADED=G]="LOADED",N[N.START=$]="START",N[N.FIRST_QUARTILE=q]="FIRST_QUARTILE",N[N.MID_POINT=Y]="MID_POINT",N[N.THIRD_QUARTILE=K]="THIRD_QUARTILE",N[N.COMPLETE=X]="COMPLETE",N[N.SKIP=J]="SKIP",N[N.PAUSE=Q]="PAUSE",N[N.RESUME=Z]="RESUME",N[N.MUTE=ee]="MUTE",N[N.UNMUTE=te]="UNMUTE",N[N.FULLSCREEN=ne]="FULLSCREEN",N[N.EXIT_FULLSCREEN=ie]="EXIT_FULLSCREEN";let T=["overlayAvails","availSuppression","adSignaling","reportingMode"],A=((R={})[R.INVALID_CONFIG=0]="INVALID_CONFIG",R[R.INVALID_INIT_RESPONSE=1]="INVALID_INIT_RESPONSE",R[R.INIT_DISRUPTED=2]="INIT_DISRUPTED",R[R.INIT_ERROR=3]="INIT_ERROR",R);function Je(r,e,a,o){let s,u=null,l=r.trackingUrl,c=r.sessionInitUrl,t=r.sessionInitHeaders,d=r.sessionInitTimeout,p=r.palNonceManager||e,f=p?.getNonce?.()??null,m={getPlaybackUrl:()=>u,getTrackingUrl:()=>l,getPalNonce:()=>f,updateAdTrackingInfo(){s.updateAdTrackingInfo()},startUpdatingAdTrackingInfo(e){s.startUpdatingAdTrackingInfo(e)},stopUpdatingAdTrackingInfo(){s.stopUpdatingAdTrackingInfo()},onPlayheadUpdate(e,t){s.onPlayheadUpdate(e,t)},onPlaybackRateUpdate(e){s.onPlaybackRateUpdate(e)},onPlaybackEvent(e){s.onPlaybackEvent(e)},onVideoClick(e){s.onVideoClick(e)},onPlayerControlClick(e){s.onPlayerControlClick(e)},onAdClickthrough(){s.onAdClickthrough()},onAdSkip(){s.onAdSkip()},addAdObserver(e){s.addAdObserver(e)},removeAdObserver(e){s.removeAdObserver(e)},getAllAds:()=>s.getAllAds(),getAllNonLinearAds:()=>s.getAllNonLinearAds(),destroy(){},addEventListener(e,t,n){s.addEventListener(e,t,n)},removeEventListener(e,t,n){s.removeEventListener(e,t,n)}};if(l)s=Xe(l,p,r),a(m,"Session initialized elsewhere");else if(c){let n=x(r.originParams)||{},i=r.sessionFeatures;i&&T.forEach(e=>{var t=i[e];null!=t&&(n[e]=t)});var _,h,v,E,g=x(r.playerParams)||{},g=(g.device_sdk_info||=C.clientInfo,f&&(g.givn=f),n.playerParams=g,{}),y=(t&&(g.headers=t),d&&(g.timeout=d),Le(`createSession: Request sent to URL "${c}"`,n),c),S=n,I=(e,t)=>{200===t?(u=V(e?.manifestUrl,c))&&(l=V(e?.trackingUrl,c))?(s=Xe(l,p,r),a(m,"Successful session response",e)):o(A.INVALID_INIT_RESPONSE,"Invalid session response"):0===t?o(A.INIT_DISRUPTED,"Disrupted session initialization"):o(A.INIT_ERROR,"Failed session initialization")};try{(g=x(g)||{}).headers=(v={"Content-Type":"application/json; charset=utf-8"},(E=g.headers)?Object.assign(v,E):v),_=y,h=JSON.stringify(S),F("POST",_,h,g,(e,t,n)=>{200===t&&null!=e&&(e=xe(e)),I&&I(e,t)})}catch(y){return void ke("JSON Encode Exception: "+y,y)}}else o(A.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function Qe(n,i,r,a){let o="createSession: ";function s(e,t,n){Le(o+t,n),i?i(e,null):r(e)}function u(e,t){var n={code:e,message:t};w(o+`(${e}) `+t),i?i(null,n):a(n)}if(n){let e=n.palNonceRequestParams;if(n.trackingUrl||n.palNonceManager||!e)return Je(n,null,s,u);let t=(i=>{var e="nonceReq: ";if(d){var t=U("goog")?.pal?.NonceRequest;if(t){let n=new t;n.omidPartnerName="MediaTailor",n.omidPartnerVersion="1.0.0",n.supportedApiFrameworks=m,h.forEach(e=>{var t=i[e];null!=t&&(n[e]=t)}),n.sessionId||(n.sessionId=(()=>{var t=new Uint8Array(16);if(c)crypto.getRandomValues(t);else for(let e=0;e<16;e++)t[e]=Math.floor(256*Math.random());return t[6]=15&t[6]|64,t[8]=63&t[8]|128,l[t[0]]+l[t[1]]+l[t[2]]+l[t[3]]+"-"+l[t[4]]+l[t[5]]+"-"+l[t[6]]+l[t[7]]+"-"+l[t[8]]+l[t[9]]+"-"+l[t[10]]+l[t[11]]+l[t[12]]+l[t[13]]+l[t[14]]+l[t[15]]})());t=d.loadNonceManager?.(n);return t?Le(e+"Request sent",n):w(e+"Request failed",n),t}w(e+"Missing PAL SDK classes")}else w(e+"PAL isn't initialized");return null})(e);t?t.then(e=>{Le(o+"NonceManager received",e),Je(n,e,s,u)}).catch(e=>{ke(o+"Nonce request rejected",e),Je(n,null,s,u)}):(ke(o+"Unable to create a nonce request"),Je(n,null,s,u))}else u(A.INVALID_CONFIG,"Missing config")}let O="1.7.0",b=(console.debug("[MT] AWS Elemental MediaTailor SDK v1.7.0"),{initPal:function(t,n){let e="initPal: ";if(!t){if(!n)return w(e+"Missing consent settings"),!1;var i=U("goog")?.pal,r=i?.NonceLoader,i=i?.ConsentSettings;if(!r||!i)return w(e+"Missing PAL SDK classes"),!1;{let e=new i;e.allowStorage=n.allowStorage??!1,t=new r(e)}}return d&&ke(e+"Resetting NonceLoader"),d=t,!0},createSession:function(n,e){if(!e)return new Promise((e,t)=>{Qe(n,null,e,t)});Qe(n,e,null,null)},PlaybackEvent:D,AdTrackingEvent:N,SessionUiEvent:M,setLogLevel:function(e){0<=e&&e<=i?a=e:console.warn(r+"Invalid log level: "+e)},LogLevel:s,getSdkVersion:()=>O,clientInfo:"MTSDK v"+O}),C=b;return k.default}},"object"==typeof n?n.mediatailor=t():e.mediatailor=t(),s.mediatailor=n.mediatailor,s)),Sl&&(module.exports=Sl.datazoom)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datazoom/collector_jw_mt_om",
3
- "version": "2.24.0",
3
+ "version": "2.26.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {