@datazoom/collector_jw_mt_om 2.26.0 → 2.28.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.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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)})();
|
|
1
|
+
!function(){var n,e,t,s,yc="object"==typeof module?{}:null,Sc=window.URL,Ic=window.URLSearchParams,Ac=window.EventTarget,Tc=window.CustomEvent;!function(ee,te,h){"use strict";var E,p,ie=ee.Object,y=ee.Array,S=ee.Date,ge=ee.Number,A=ee.String,T=ee.RegExp,re=ee.Math,O=ee.XMLHttpRequest,b=ee.Uint8Array,C=ee.ArrayBuffer,M=ee.JSON,Ee=ee.Promise,ye=ee.document||{},n=ye.currentScript||{},D=ee.location||{},R=ee.navigator||{},N=R.userAgent||"",Se=R.connection||R.mozConnection||R.webkitConnection,P=ee.crypto,k=ee.console||{},e=ee.performance,w=ee.setInterval,L=ee.setTimeout,U=(ee.clearInterval,ee.decodeURIComponent),x=ee.encodeURIComponent;try{E=ee.localStorage,p=ee.sessionStorage}catch(n){}function V(t){return t?function(n,e){n="[DZ] "+n,void 0===e?t.call(k,n):t.call(k,n,e)}:null}var t=V(k.log)||function(){},F=V(k.error)||t,W=V(k.warn)||t,j=V(k.info)||t,B=V(k.debug)||t,Ie={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},H="datazoom_",t="__"+H+"rootobj",z="custom_",G="v_";if(Ie[t]=1,yc)yc.datazoom=Ie;else{if(pe(ee.datazoom)){if(ee.datazoom[t])return W("Collector already loaded");W("Overwriting window.datazoom")}ee.datazoom=Ie}function g(e,t,n){var i,r=t.shift();return null==r?i=e:e?r instanceof T?ie.keys(e).some(function(n){if(r.test(n))return null!=(i=g(e[n],t.slice()))}):i=g(e[r],t):i=null,null!=i?i:n}function ae(n){return"function"==typeof n}function q(n,e){if(ae(n))try{return new(n=e?n.bind.apply(n,[null].concat(e)):n),1}catch(n){}}q(Sc,["http://x.io"])&&q(Ic)||(Ic=function(n){var i=[];function t(n,e){!1!==e&&i.push([n,e])}function r(e){i=i.filter(function(n){return n[0]!==e})}n&&n.slice(1).split("&").forEach(function(n){n=n.split("=");try{i.push([U(n[0]),null==n[1]||U(n[1])])}catch(n){se(n,"URLSearchParams()")}});n=this;n.append=t,n["delete"]=r,n.set=function(n,e){r(n),t(n,e)},n.get=function(e){var t=null;return i.some(function(n){if(n[0]===e)return t=n[1],!0}),t},n.toString=function(){return i.map(function(n){var e=x(n[0]);return!0===n[1]?e:e+"="+x(n[1])}).join("&")}},Sc=function(n){var e=this,n=n.split("?"),t=n[0],n=n[1]?"?"+n[1]:"";e.search=n,e.searchParams=new Ic(n),e.toString=function(){return t+e.search}}),q(Ac)&&q(Tc,["x"])||(Ac=function(){var t=this,i={};t.addEventListener=function(n,e){var t=i[n];t||(i[n]=t=[]),t.push(e)},t.removeEventListener=function(n,e){var t=i[n];t&&(i[n]=t.filter(function(n){return n!=e}))},t.dispatchEvent=function(e){var n=i[e.type];n&&n.forEach(function(n){L(function(){n.call(t,e)},0)})}},Tc=function(n,e){this.type=n,e&&(this.detail=e.detail)}),te=ie.assign({},{cn:"JW Player (MT/OM)",sv:"2.28.0",cf:"",mf:null,ev:[],fd:[],md:[],od:null,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.5,ep:2,ed:2500,ec:ge.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(n){var e=n.event,t=n.video;Ce("[Event] "+e.type+(t?" ("+t.media_type+")":"")+" @"+e.timestamp,de(n))}},te||{});var o,Y,Ae,K={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"},ondemand:"od",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:""},X=!yc&&n.src||"/",J=D.href||"https://localhost",$="configuration_id",Q="urn:x-cast:io.datazoom.collector",Te="transfer",Z=0,nn=1,en=2,tn=3,rn=4,an=5,on={off:Z,error:nn,warning:en,info:tn,debug:rn,verbose:an},sn=en;function un(n){var e;n&&(e=on[n],Z<=(e=null!=e?e:+n)&&e<=an?sn=e:W("Invalid log level: "+n))}function cn(){o={},Y=[],[[te.ps],[X.split("?")[1]],[J.split("?")[1],H]].forEach(function(n){var i=n[1];n[0]&&n[0].split("&").forEach(function(n){try{var e=n.split("="),t=U(e[0]);if(i){if(!t.startsWith(i))return;t=t.slice(i.length)}o[t]=null==e[1]||U(e[1]),t.startsWith("x-")&&Y.push([t,o[t]])}catch(n){W("Invalid query string: "+n.message)}})}),Ae="true"==o.demo,un(o.log)}cn();var ln="io.datazoom.",dn=ln,fn="__ss_ev_count",pn="__ss_last_act",mn="__ss_custom_md",vn="__ss_msg_queue",_n="__ss_sm_resp",hn="__ss_appss_to",gn="__ss_on_demand",En="collector_observability",yn="process_duration_ms",Sn="send_duration_ms",In="call_duration_ms",An="queue_duration_ms",Tn="attempt_count",On="attempt",bn="status_code",Cn="sample",Mn="config",Dn="log";function Rn(n,e,t,i){sn<n||e(t,i)}function Oe(n,e){Rn(nn,F,n,e)}function oe(n,e){Rn(en,W,n,e)}function be(n,e){Rn(tn,j,n,e)}function Ce(n,e){Rn(rn,B,n,e)}function Nn(n,e){Rn(an,B,n,e)}function se(n,e){e="[Exception] "+(e?"("+e+") ":"")+n;return Oe(e,n),e}function Me(t,i,r,a,o){var s,u=0,c=1,l=0;return i=i||"",r=r||1,a=a||ge.MAX_VALUE,{log:function(n,e){o&&(s=ue())>=l+o&&(u=0,c=1,l=s),++u>=c&&(t("["+u+"] "+i+n,e),c+=re.min(c*r,a))}}}function De(n,e){m(ee,"postMessage",[{type:n,data:e},"*"])}var Pn,ue,kn,wn,Ln,Un,xn=[],Vn=0;function Fn(n,e,t,i,r,a,o,s){var t={time:t,metric_name:i,dimension:{},batch:function(){return a}},u=(n&&(t.type=n),null!=r&&(t.metric_value=r),t.dimension);return e&&(u.target=e),s&&s.forEach(function(n){u[n[0]]=n[1]}),o&&(u["b4_ss"]=!0),t}function Wn(i,r,a,o){var s=r,u=1,c=Vn++;return{retry:function(n){s=n,u++},log:function(n,e){var t;te.og&&(null!=a&&xn.push(Fn(null,i,t=r-a,yn,n-t,c,o,[[Tn,u],[bn,e]]),Fn(null,i,t,An,a,c,o)),xn.push(Fn(null,i,r,Sn,n-r,c,!1,[[Tn,u],[bn,e]]),Fn(null,i,s,In,n-s,c,!1,[[On,u],[bn,e]])))}}}function jn(n,e){var t,i;te.os&&(i=n.t,i=re.trunc(i/6e4),(i=(Pn=Pn||{})[i]||(Pn[i]=[0,0,0]))[2]++,t=(i=i[3]||(i[3]={}))[e],n=us(n.m,or),t?t.push(n):i[e]=[n])}function Bn(n){var e,t=Pn[n],i=Vn++;t[2]&&(t[3]&&(e=[["status_codes",t[3]]]),xn.push(Fn("loss",null,6e4*+n,"evnt_fail",t[2],i,!1,e)))}function ce(n){return n&&(Ue(n)?n.slice():ie.assign({},n))}function Hn(n,e){return pe(e)?n?ie.assign({},n,e):e:n}function zn(n,e){var t;return e?((t={})[n]=e,t):null}function Gn(t,i){var r;return i?t?(r=ce(t),ie.keys(i).forEach(function(n){var e=t[n];r[n]=e?ie.assign({},e,i[n]):i[n]}),r):i:t}function m(n,e,t,i){e=g(n,[e],i);return ae(e)?e.apply(n,t):null}function qn(n,e,t){return function(){try{return e.apply(n,arguments)}catch(n){se(n,t)}}}function Yn(t,n){ie.keys(t).forEach(function(e){n.forEach(function(n){n[e]=qn(n,t[e],e)})}),n[0]}function Kn(n){var e={};return n.forEach(function(n){e[n.nm]=n}),e}function Xn(n){var e={};return n.forEach(function(n){e[n.nm]=!0}),e}function Jn(n,e,t){n.forEach(function(n){n[e]=t})}function Re(n,e){var n=new Sc(n,J),t=new Ic(n.search);return e(t),n.search="?"+t.toString(),n.toString()}function $n(n){var e,t=Y.length;return t?Re(n,function(n){for(e=0;e<t;e++)n.append(Y[e][0],Y[e][1])}):n}function Qn(n,e,t){var i;return null!=(i=n?new Sc(n,J).searchParams.get(e):i)?i:t}kn=0,wn=te.ec,Ln=Me(oe,"Abnormal clock increment: ",.2,1e3,3e5),e&&e.now,Un=kn+S.now(),ue=function(n){var e=S.now(),t=Un,i=(Un=kn+e)-t;return(i<0||wn<i)&&(Un=t+te.ti,kn=Un-e,Ln.log(i)),Un};var le=function(){for(var t=[],n=0;n<256;n++)t.push((n+256).toString(16).substr(1).toLowerCase());return function(){var n=new b(16);if(P&&P.getRandomValues)P.getRandomValues(n);else{oe("getRandomValues() not supported");for(var e=0;e<16;e++)n[e]=re.floor(256*re.random())}return n[6]=15&n[6]|64,n[8]=63&n[8]|128,t[n[0]]+t[n[1]]+t[n[2]]+t[n[3]]+"-"+t[n[4]]+t[n[5]]+"-"+t[n[6]]+t[n[7]]+"-"+t[n[8]]+t[n[9]]+"-"+t[n[10]]+t[n[11]]+t[n[12]]+t[n[13]]+t[n[14]]+t[n[15]]}}();function Zn(n,e,t,i,r,a){var o=new O;if(o.open(n,e,!0),null!=a&&(o.timeout=a),t)for(var s=ie.keys(t),u=0;u<s.length;u++)o.setRequestHeader(s[u],t[s[u]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function de(n){if(n)try{return M.stringify(n)}catch(n){se(n,"toJSON")}return null}function fe(n){if(n)try{return M.parse(n)}catch(n){se(n,"fromJSON")}return null}function ne(n,e){return(n===p?dn:ln)+e}function v(n,e,t){if(n)if(null==t)Pe(n,e);else try{n.setItem(ne(n,e),de({v:t}))}catch(n){se(n,"storageSet")}}function Ne(n,e){n=n?fe(n.getItem(ne(n,e))):null;return n?n.v:null}function Pe(n,e){n&&n.removeItem(ne(n,e))}ee.self!==ee.top&&Ce("Page loaded in a frame, set sessionStorage prefix to: "+(dn+=(o.frame_id||le())+"."));var ke=fe('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function we(n){return"string"==typeof n}function Le(n){return ge.isFinite(n)}function Ue(n){return y.isArray(n)}function pe(n){return null!=n&&"object"==typeof n&&!Ue(n)}function xe(n){return we(n)?n:""+n}function Ve(n){return Le(n=+n)?n:null}function Fe(e,t,i){return null==e&&null==t?Ve:function(n){return null!=(n=Ve(n))&&(null!=e&&n<e?n=i?null:e:null!=t&&t<n&&(n=i?null:t)),n}}function We(n){return re.round(n)}function je(n,e){for(var t=0;t<e.length;t++)!function(n){for(var e=n,t=1;t<arguments.length;t++)e.dv||(e.dv=[]),e.dv.push(arguments[t])}(e[t],n)}function Be(n,e){if(e)for(var t=0;t<e.length&&null!=n;t++)n=e[t](n);return n}var He,ze,Ge,qe,Ye=4,Ke=8,Xe=16,Je=32,I=65535,$e=Ye,t=1|Xe,n=Ye|Xe,e=n|Je,r=Ke,Qe={ap:2,nm:"ad_break_start"},Ze={ap:2,nm:"ad_break_end"},nt={ap:2,nm:"ad_click"},et={ap:2,nm:"ad_impression"},tt={ap:2,nm:"ad_skip"},it={ap:$e,nm:"app_session_end"},rt={ap:3,nm:"audio_track_changed"},at={ap:3,nm:"buffer_start"},ot={ap:3,nm:"buffer_end"},st={ap:3,nm:"cast_start"},ut={ap:3,nm:"cast_end"},ct={ap:3,nm:"cast_transfer"},lt={ap:I,nm:"context_ready"},dt={ap:$e,nm:"datazoom_loaded"},ft={ap:3,nm:"error"},pt={ap:3,nm:"exit_fullscreen"},mt={ap:3,nm:"fullscreen"},vt={ap:3,nm:"heartbeat"},_t={ap:3,nm:"media_loaded"},ht={ap:1,nm:"media_object_request"},gt={ap:3,nm:"media_request"},Et={ap:3,nm:"milestone"},yt={ap:3,nm:"mute"},St={ap:3,nm:"pause"},It={ap:3,nm:"play_btn"},At={ap:3,nm:"playback_start"},Tt={ap:3,nm:"playback_complete"},Ot={ap:1,nm:"player_ready"},bt={ap:3,nm:"playing"},Ct={ap:3,nm:"qualified_view"},Mt={ap:1,nm:"quality_change_request"},Dt={ap:3,nm:"rendition_change"},Rt={ap:3,nm:"resize"},Nt={ap:3,nm:"resume"},Pt={ap:3,nm:"seek_start"},kt={ap:3,nm:"seek_end"},wt={ap:3,nm:"stall_start"},Lt={ap:3,nm:"stall_end"},Ut={ap:3,nm:"stop"},xt={ap:3,nm:"subtitle_change"},Vt={ap:3,nm:"unmute"},Ft={ap:3,nm:"volume_change"},Wt=(gt.rtc=0,At.rtc=1,St.rtc=2,at.rtc=3,wt.rtc=4,Pt.rtc=5,Dt.rtc=6,Et.rtc=7,gt.rta=8,At.rta=9,at.rta=10,wt.rta=11,Et.rta=12,ft.rta=tt.rta=Tt.rta=13,Qe.rta=14,Ze.rta=15,vt.rt=16,at.rt=17,wt.rt=18,["event","metrics"]),jt={ap:t,nm:"bandwidth_kbps"},Bt={ap:t,nm:"buffer_duration_ms"},Ht={ap:t,nm:"buffer_duration_ads_ms"},zt={ap:t,nm:"buffer_duration_content_ms"},Gt={ap:t,nm:"buffer_fill_percent"},qt={ap:t,nm:"buffer_length_ms"},Yt={ap:t,nm:"content_session_start_ts_ms"},Kt={ap:3,nm:"current_audio_track"},Xt={ap:t,nm:"current_subtitles"},Jt={ap:n,nm:"engagement_duration_ms"},$t={ap:n,nm:"engagement_duration_ads_ms"},Qt={ap:n,nm:"engagement_duration_content_ms"},Zt={ap:r,nm:"event_count"},ni={ap:t,nm:"num_ad_break_plays"},ei={ap:n,nm:"num_ad_plays"},ti={ap:n,nm:"num_content_plays"},ii={ap:n,nm:"num_errors"},ri={ap:n,nm:"num_errors_ads"},ai={ap:n,nm:"num_errors_content"},oi={ap:n,nm:"num_requests_content"},si={ap:t,nm:"pause_duration_ms"},ui={ap:t,nm:"pause_duration_ads_ms"},ci={ap:t,nm:"pause_duration_content_ms"},li={ap:t,nm:"playback_duration_ms"},di={ap:t,nm:"playback_duration_ads_ms"},fi={ap:2,nm:"playback_duration_ad_session_ms"},pi={ap:t,nm:"playback_duration_content_ms"},mi={ap:t,nm:"playback_duration_promo_ms"},vi={ap:3,nm:"playback_rate"},_i={ap:t,nm:"player_state"},hi={ap:t,nm:"player_viewable"},gi={ap:t,nm:"player_viewable_percent"},me={ap:3,nm:"playhead_position_sec"},Ei={ap:t,nm:"playhead_pdt_sec"},yi={ap:3,nm:"rendition_audio_bitrate_kbps"},Si={ap:3,nm:"rendition_height"},Ii={ap:3,nm:"rendition_name"},Ai={ap:3,nm:"rendition_video_bitrate_kbps"},Ti={ap:3,nm:"rendition_width"},Oi={ap:t,nm:"stall_count"},bi={ap:t,nm:"stall_count_ads"},Ci={ap:t,nm:"stall_count_content"},Mi={ap:t,nm:"stall_duration_ms"},Di={ap:t,nm:"stall_duration_ads_ms"},Ri={ap:t,nm:"stall_duration_content_ms"},Ni={ap:t,nm:"time_since_last_ad_break_start_ms"},Pi={ap:t,nm:"time_since_last_ad_completed_ms"},ki={ap:t,nm:"time_since_last_buffer_start_ms"},wi={ap:t,nm:"time_since_last_buffer_start_ad_ms"},Li={ap:t,nm:"time_since_last_buffer_start_content_ms"},Ui={ap:t,nm:"time_since_last_heartbeat_ms"},xi={ap:t,nm:"time_since_last_milestone_ad_ms"},Vi={ap:t,nm:"time_since_last_milestone_content_ms"},Fi={ap:t,nm:"time_since_last_pause_ms"},Wi={ap:t,nm:"time_since_last_rendition_change_ms"},ji={ap:t,nm:"time_since_last_request_ad_ms"},Bi={ap:t,nm:"time_since_last_seek_start_ms"},Hi={ap:t,nm:"time_since_last_stall_start_ms"},zi={ap:t,nm:"time_since_last_stall_start_ad_ms"},Gi={ap:t,nm:"time_since_last_stall_start_content_ms"},qi={ap:t,nm:"time_since_last_started_ad_ms"},Yi={ap:t,nm:"time_since_request_content_ms"},Ki={ap:t,nm:"time_since_started_content_ms"},Xi={ap:t,nm:"volume_level_percent"},Ji=(Jn([Bt,Ht,zt,si,ui,ci,li,di,pi,mi,Oi,bi,Ci,Mi,Di,Ri,ei,ii,ri,ai,ti,oi],"df",0),Yi.ts=0,Ki.ts=1,Fi.ts=2,Li.ts=3,Gi.ts=4,Bi.ts=5,Wi.ts=6,Vi.ts=7,ji.ts=8,qi.ts=9,wi.ts=10,zi.ts=11,xi.ts=12,Ni.ts=14,Pi.ts=13,Ui.ts=16,ki.ts=17,Hi.ts=18,[]),$i=["event"],i=["event","attributes"],a=["cmcd"],s=["user_details"],u=["player"],c=["device"],l=["video"],d=["geo_location"],Qi=["network"],Zi=["page"],f=["ad"],nr=["ops_metadata"],er=["custom"],tr=["vendor"],ir={p:Ji,ap:e,nm:"configuration_id"},rr={p:Ji,ap:e,nm:"connector_list"},ar={p:Ji,ap:e,nm:"customer_code"},or={p:Ji,ap:r,nm:"event_id"},sr={p:$i,ap:r,nm:"timestamp"},ur={p:$i,ap:r,nm:"type"},Ji={p:a,ap:r,nm:"bl"},$i={p:a,ap:r,nm:"br"},cr={p:a,ap:r,nm:"bs"},lr={p:a,ap:r,nm:"cid"},dr={p:a,ap:r,nm:"d"},fr={p:a,ap:r,nm:"dl"},pr={p:a,ap:r,nm:"mtp"},mr={p:a,ap:r,nm:"nor"},vr={p:a,ap:r,nm:"nrr"},_r={p:a,ap:r,nm:"ot"},hr={p:a,ap:r,nm:"pr"},gr={p:a,ap:r,nm:"rid"},Er={p:a,ap:r,nm:"rtp"},yr={p:a,ap:r,nm:"sf"},Sr={p:a,ap:r,nm:"sid"},Ir={p:a,ap:r,nm:"st"},Ar={p:a,ap:r,nm:"su"},Tr={p:a,ap:r,nm:"tb"},a={p:a,ap:r,nm:"v"},Or={p:i,ap:r,nm:"abs_shift"},br={p:i,ap:r,nm:"error_code"},Cr={p:i,ap:r,nm:"error_msg"},Mr={p:i,ap:r,nm:"inner_error"},Dr={p:i,ap:r,nm:"heartbeat_count"},Rr={p:i,ap:r,nm:"milestone_percent"},Nr={p:i,ap:r,nm:"qualified_view_sec"},Pr={p:i,ap:r,nm:"seek_start_point_ms"},kr={p:i,ap:r,nm:"seek_end_point_ms"},wr={p:i,ap:r,nm:"startup_duration_content_ms"},Lr={p:i,ap:r,nm:"startup_duration_total_ms"},Ur={p:s,ap:n,nm:"app_session_id"},xr={p:s,ap:n,nm:"app_session_start_ts_ms"},i={p:s,ap:n,nm:"app_session_end_ts_ms"},Vr={p:s,ap:t,nm:"cast_app_session_id"},Fr={p:s,ap:t,nm:"cast_content_session_id"},Wr={p:s,ap:e,nm:"client_ip"},jr={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:n,nm:"user_agent"},Br={p:u,ap:t,nm:"autostart"},Hr={p:u,ap:t,nm:"casting"},zr={p:u,ap:t,nm:"controls"},Gr={p:u,ap:t,nm:"default_muted"},qr={p:u,ap:t,nm:"default_playback_rate"},Yr={p:u,ap:t,nm:"fullscreen"},Kr={p:u,ap:t,nm:"loop"},Xr={p:u,ap:t,nm:"muted"},Jr={p:u,ap:t,nm:"player_name"},$r={p:u,ap:t,nm:"player_version"},Qr={p:u,ap:t,nm:"preload"},Zr={p:u,ap:t,nm:"ready_state"},na={p:u,ap:t,nm:"streaming_protocol"},ea={p:u,ap:t,nm:"streaming_type"},ta={p:u,ap:t,nm:"subtitles"},u={p:c,ap:n,nm:"advertising_id"},ia={p:c,ap:n,nm:"browser_name"},ra={p:c,ap:n,nm:"browser_height"},aa={p:c,ap:n,nm:"browser_version"},oa={p:c,ap:n,nm:"browser_width"},sa={p:c,ap:n,nm:"cookies_enabled"},ua={p:c,ap:e,nm:"device_id"},ca={p:c,ap:n,nm:"device_mfg"},la={p:c,ap:n,nm:"device_name"},da={p:c,ap:n,nm:"device_type"},fa={p:c,ap:n,nm:"orientation"},pa={p:c,ap:n,nm:"os_name"},c={p:c,ap:n,nm:"os_version"},ma={p:l,ap:t,nm:"asset_id"},va={p:l,ap:t,nm:"description"},_a={p:l,ap:t,nm:"duration_sec"},ha={p:l,ap:t,nm:"frame_rate"},ga={p:l,ap:t,nm:"media_tags"},Ea={p:l,ap:3,nm:"media_type"},ya={p:l,ap:t,nm:"player_height"},Sa={p:l,ap:t,nm:"player_width"},Ia={p:l,ap:t,nm:"source"},Aa={p:l,ap:t,nm:"title"},Ta={p:d,ap:e,nm:"city"},Oa={p:d,ap:e,nm:"country"},ba={p:d,ap:e,nm:"country_code"},Ca={p:d,ap:e,nm:"latitude"},Ma={p:d,ap:e,nm:"longitude"},Da={p:d,ap:e,nm:"postal_code"},Ra={p:d,ap:e,nm:"region"},Na={p:d,ap:e,nm:"region_code"},Pa={p:d,ap:e,nm:"continent"},ka={p:d,ap:e,nm:"continent_code"},l={p:d,ap:e,nm:"district"},wa={p:d,ap:e,nm:"timezone_name"},La={p:d,ap:e,nm:"timezone_offset"},Ua={p:Qi,ap:e,nm:"asn"},d={p:Qi,ap:e,nm:"asn_org"},xa={p:Qi,ap:n,nm:"connection_type"},Va={p:Qi,ap:e,nm:"isp"},Fa={p:Qi,ap:e,nm:"mobile_connection"},Wa={p:nr,ap:r,nm:"context_id"},ja={p:nr,ap:r,nm:"context_name"},Qi={p:nr,ap:n,nm:"dz_dictionary_version"},Ba={p:nr,ap:r,nm:"msg_send_client_ts_ms"},Ha={p:nr,ap:r,nm:"player_context_id"},za={p:nr,ap:e,nm:"server_ts_offset_ms"},Ga={p:Zi,ap:n,nm:"collector_name"},qa={p:Zi,ap:n,nm:"dz_sdk_version"},Ya={p:Zi,ap:n,nm:"page_title"},Ka={p:Zi,ap:n,nm:"page_url"},Xa={p:Zi,ap:n,nm:"referrer_url"},Ja={p:Zi,ap:n,nm:"site_domain"},$a={p:f,ap:e,nm:"ad_blocker"},Qa={p:f,ap:t,nm:"ad_break_id"},Za={p:f,ap:2,nm:"ad_click_url"},no={p:f,ap:2,nm:"ad_creative_id"},eo={p:f,ap:2,nm:"ad_duration_sec"},to={p:f,ap:2,nm:"ad_id"},io={p:f,ap:2,nm:"ad_partner"},ro={p:f,ap:t,nm:"ad_position"},ao={p:f,ap:2,nm:"ad_session_id"},oo={p:f,ap:2,nm:"ad_system"},so={p:f,ap:2,nm:"ad_time_offset_sec"},Zi={p:f,ap:n,nm:"ad_tracking_opt_out"},uo={p:f,ap:2,nm:"advertiser_name"},co={p:f,ap:2,nm:"deal_id"},lo={p:f,ap:2,nm:"skip_time_offset_sec"},fo={p:f,ap:2,nm:"wrapper_creative_ids"},po={p:f,ap:2,nm:"wrapper_id"},mo={p:f,ap:2,nm:"wrapper_systems"},e={p:["cdn"],ap:t,nm:"cdn"},vo=(co.df="",Jn([fo,po,mo],"df",[]),je(function(n){return!!n},[$a,Zi,Br,cr,Hr,zr,sa,Gr,Yr,Kr,Fa,Xr,Ar,ta,hi]),je(function(n){Ue(n)||(n=[n]);for(var e=0;e<n.length;e++)n[e]=xe(n[e])||"";return n},[fo,po,mo]),je(null==He&&null==ze?xe:function(n){var e;return null!=(n=xe(n))&&(e=n.length,null!=He&&e<He?n=null:null!=ze&&ze<e&&(n=Ge?null:n.slice(0,ze))),n},[Or,Qa,Za,no,to,io,ro,ao,oo,uo,u,Ur,Ua,d,ma,ia,aa,Vr,Fr,e,lr,Ta,Wr,ir,rr,jr,Pa,ka,Oa,ba,ar,co,va,ua,ca,la,da,l,qa,br,Cr,or,Mr,Va,Ea,mr,vr,fa,pa,c,_r,Ya,Ka,Ha,Jr,$r,Da,Qr,Xa,Ra,Na,gr,yr,Sr,Ja,Ia,Ir,na,ea,wa,Aa,ur,s,Kt,Xt,_i,Ii]),je(Fe(0,100),[Gt,gi,Xi]),je(Fe(0,1e9,!0),[jt]),je(Fe(),[eo,so,i,xr,Ji,$i,ra,oa,dr,qr,fr,_a,ha,Dr,Ca,Ma,Rr,pr,ya,Sa,hr,Nr,Zr,Er,kr,Pr,za,lo,wr,Lr,Tr,sr,La,a,Ht,zt,Bt,qt,Yt,$t,Qt,Jt,Zt,ni,ei,ti,ii,ri,ai,oi,ui,ci,si,di,fi,pi,li,mi,vi,me,yi,Si,Ai,Ti,Oi,bi,Ci,Di,Ri,Mi,Ni,Pi,wi,Li,ki,Ui,xi,Vi,Fi,Wi,ji,Bi,zi,Gi,Hi,qi,Yi,Ki]),je(0==(n=5)?We:(qe=re.pow(10,n),function(n){return re.round(n*qe)/qe}),[eo,so,i,xr,Ji,$i,ra,oa,dr,qr,fr,_a,ha,Dr,Ca,Ma,Rr,pr,ya,Sa,hr,Nr,Zr,Er,kr,Pr,za,lo,wr,Lr,Tr,sr,La,a,jt,Ht,zt,Bt,Gt,qt,Yt,$t,Qt,Jt,Zt,ni,ei,ti,ii,ri,ai,oi,ui,ci,si,di,fi,pi,li,mi,vi,gi,me,yi,Si,Ai,Ti,Oi,bi,Ci,Di,Ri,Mi,Ni,Pi,wi,Li,ki,Ui,xi,Vi,Fi,Wi,ji,Bi,zi,Gi,Hi,qi,Yi,Ki,Xi]),[Qe,Ze,nt,et,tt,it,rt,at,ot,st,ut,ct,lt,dt,ft,pt,mt,vt,_t,ht,gt,Et,yt,St,It,At,Tt,Ot,bt,Ct,Mt,Dt,Rt,Nt,Pt,kt,wt,Lt,Ut,xt,Vt,Ft]),_o=Kn(vo);function ho(n,e){return G+n+"_"+e}function go(n,e){var t,i=Xn(vo),r={},a={};n?0<n.length?(n=we(t=te.tt&&o.beta_ev)?n.concat(t.split(".").map(function(n){return{name:n,media_types:["na"]}})):n).forEach(function(n){var e,t=n&&n.name;t&&i[t]?(n=n.media_types)&&0<n.length&&(r[t]=!0,"na"!=n[0])&&(e={},n.forEach(function(n){e[n]=!0}),a[t]=e):oe("Unknown event: "+t)}):e&&oe("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,vo.forEach(function(n){n.on=!(r&&!r[n.nm]),n.mm=a&&a[n.nm]})}go(),Jn([ei,ii,ri,ai,ti,oi],"st",p);var Eo=[jt,Bt,Ht,zt,Gt,qt,Yt,Kt,Xt,Jt,$t,Qt,Zt,ni,ei,ti,ii,ri,ai,oi,si,ui,ci,li,di,fi,pi,mi,vi,_i,hi,gi,me,Ei,yi,Si,Ii,Ai,Ti,Oi,bi,Ci,Mi,Di,Ri,Ni,Pi,ki,wi,Li,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,zi,Gi,qi,Yi,Ki,Xi],yo=[],So=(Eo.forEach(function(n){null!=n.ts&&yo.push(n)}),[]),Io=[];function Ao(n){var e,t=Xn(Eo),i={};n?(n=we(e=te.tt&&o.beta_fd)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:oe("Unknown flux data: "+n)}):i=null,So=[],Io=[],Eo.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?Io:So).push(n)})}Ao(),Jn([Ur,xr],"st",p);var To,Oo,bo,Co,Mo=[Jr,$r,u,Aa,ma,ea,Hr],Do={},Ro=(Mo.forEach(function(n){Do[n.nm.toUpperCase()]=H+n.nm}),[ir,rr,ar,or,sr,ur,Ji,$i,cr,lr,dr,fr,pr,mr,vr,_r,hr,gr,Er,yr,Sr,Ir,Ar,Tr,a,Or,br,Cr,Mr,Dr,Rr,Nr,Pr,kr,wr,Lr,Ur,xr,i,Vr,Fr,Wr,jr,s,Br,Hr,zr,Gr,qr,Yr,Kr,Xr,Jr,$r,Qr,Zr,na,ea,ta,u,ia,ra,aa,oa,sa,ua,ca,la,da,fa,pa,c,ma,va,_a,ha,ga,Ea,ya,Sa,Ia,Aa,Ta,Oa,ba,Ca,Ma,Da,Ra,Na,Pa,ka,l,wa,La,Ua,d,xa,Va,Fa,Wa,ja,Qi,Ba,Ha,za,Ga,qa,Ya,Ka,Xa,Ja,$a,Qa,Za,no,eo,to,io,ro,ao,oo,so,Zi,uo,co,lo,fo,po,mo,e]),No=Kn(Ro),Po=Ro.concat(Eo),ko=[or],wo=[],Lo=[];function Uo(n){var e,t=Xn(Ro),i={};To=Oo=bo=Co=!1,n?((n=we(e=te.tt&&o.beta_md)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:"custom_metadata_all"==n?To=!0:"custom_events_all"==n?Oo=!0:"vendor_metadata_all"==n?bo=!0:"vendor_events_all"==n?Co=!0:oe("Unknown metadata: "+n)}),ko.forEach(function(n){i[n.nm]=!0})):To=Oo=bo=Co=!(i=null),wo=[],Lo=[],Ro.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?Lo:wo).push(n)})}Uo();var xo="ad",Vo=/^live$/i,Fo="DASH",Wo="Flash",jo={"application/x-mpegURL":"HLS","application/dash+xml":Fo,"application/vnd.ms-sstr+xm":"Smooth","video/x-flv":Wo,"video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"};var f=[[/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"]],t=[[/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"]],n=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],Bo=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function Ho(n,e,t){e&&t.push(n)}function zo(n,e,t){t.push(n+"="+e)}function Go(n,e,t){t.push(n+(o.cmcd_ntq?"="+e:'="'+e+'"'))}function qo(n,e,t){t.push(n+'="'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function Yo(n){return"false"!==n}function Ko(n){return+n}function Xo(n){return n.replace(/"/g,"")}function Jo(n){return n.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var $o,Qo,Zo={bl:[0,[zo,Ko],Ji],br:[1,[zo,Ko],$i],bs:[2,[Ho,Yo],cr],cid:[3,[qo,Jo],lr],d:[1,[zo,Ko],dr],dl:[0,[zo,Ko],fr],mtp:[0,[zo,Ko],pr],nor:[0,[qo,Jo],mr],nrr:[0,[qo,Jo],vr],ot:[1,[Go,Xo],_r],pr:[3,[zo,Ko],hr],rtp:[2,[zo,Ko],Er],sf:[3,[Go,Xo],yr],sid:[3,[qo,Jo],Sr],st:[3,[Go,Xo],Ir],su:[0,[Ho,Yo],Ar],tb:[1,[zo,Ko],Tr],v:[3,[zo,Ko],a]},ns={bs:!1,su:!1,v:1,pr:1},es="org.svalabs-";function ts(n){for(var e,t,i=[[],[],[],[]],r=ie.keys(n),a=0;a<r.length;a++)e=r[a],(t=Zo[e])&&t[3]&&t[1][0](e,n[e],i[t[0]]);return i}function is(n){var e,t=ie.keys(Zo);for($o=!1,Qo="header"===(Ie.options.cmcdMode||o.cmcd_mode),e=0;e<t.length;e++)Zo[t[e]][3]=!1;if(n&&Ue(n)&&0<n.length)if($o=!0,"na"==n[0])for(e=0;e<t.length;e++)Zo[t[e]][3]=!0;else n.forEach(function(n){var e=Zo[n];e?e[3]=!0:oe("Unknown CMCD key: "+n)})}function rs(n,e,t){for(var i,r,a=ie.keys(n),o=0;o<a.length;o++)delete n[a[o]];for(o=0;o<e.length;o++)0!=((i=e[o]).ap&t)&&null!=(r=null==(r=(r=i.st||i.se)&&Ne(r,i.nm))?i.df:r)&&(n[i.nm]=r)}function as(n,e,t,i){for(var r,a,o,s,u=0;u<i.length;u++)o=(a=(r=i[u])[0]).nm,0!=(a.ap&t)?(s=e[o])&&s(r)||(n[o]=r[1],(s=a.st||a.on&&a.se)&&v(s,o,r[1])):oe("Setting inapplicable data",a)}function os(n,e){return n[e.nm]}function ss(n,e,t,i,r){var a,o=[];return t&&o.push([t,a=e(t)+i]),r&&o.push([r,e(r)+i]),n(o),a}function ve(n,e,t){if(e)for(var i,r,a=0;a<e.length;a++)if(r=n[i=e[a]])n=r;else{if(t)return null;n=n[i]={}}return n}function us(n,e){n=ve(n,e.p||Wt,!0);return n&&n[e.nm]}function cs(n,e,t,i){for(var r,a,o,s=0;s<e.length;s++)0!=((r=e[s]).ap&t)&&null!=(o=Be(n[a=r.nm],r.dv))&&(ve(i,r.p)[a]=o)}Zo[es+"rid"]=[0,[qo,Jo],gr],Zo[es+"tid"]=[0,[qo,Jo]],Zo[es+"cmi"]=[0,[zo,Ko]],Zo[es+"pmi"]=[0,[zo,Ko]],is();var ls,ds,fs,ps,ms,vs,_s,hs,gs,Es,ys,Ss,Is,As,Ts,Os,bs,_,Cs={},Ms={},Ds=Ne(p,vn)||[],Rs=[],Ns=1,Ps=2,ks=4,ws=ks,Ls=Ps|Ns|ws,Us=0,xs=[];function Vs(n){return null!=n?6e4*n:12e5}function Fs(n,e){if(!Ls&&0<Ds.length){for(var t,i=ue(),r=0,a=0;a<Ds.length;a++)Ds[a].p&&(t=!0,cs(Cs,wo,Je,Ds[a].m)),r=re.max(r,i-Ds[a].t);Ss&&Ks(Ds,0,Wn(Dn,i,r,t),n),e=!0}e&&(Ds=[],Pe(p,vn)),_s=null}function Ws(n){(Ls&=~n)||null!=_s||Fs()}function js(n,e,t,i,r,a,o,s,u){if(4==n.readyState){var c=ue(),l=n.status;if(e+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[r++];if(null!=a)return L(function(){o.retry(ue()),t(i,r,o)},1e3*a),void oe(e+"retry #"+r+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(n,c))||u&&u(e,l)||oe(e+"failed")}}function Bs(e,t,i){gs=Zn("POST",$n(te.sm),{"Content-Type":"application/json","cache-control":"no-cache"},e,function(n){4==n.readyState&&(gs=null,js(n,"Sampling API",Bs,e,t,te.rd,i,function(n){n=fe(n.responseText);if(Es=n&&n[te.ss+"_sampling"])return Ss=Es.in_sample,ys=!1,Ws(Ps),v(p,_n,Es),!0},function(n){return Ss=ys=!0,Ws(Ps),oe(n+"forced in"),!0}))})}function Hs(){var n;!hs||Ls&Ns||(te.sw&&te.sm?(te.sp,(n=No[te.sd])&&(hs.sampling_definition_params={namespace:te.ss,key_name:n.nm,key_value:Js(n)}),(n=No[te.sc])&&(hs.sampling_criteria_params={sampling:{key_name:n.nm,key_value:Js(n)}}),hs.sampling_override=o.sampling_override||"NONE",hs.sampling_request_id=le(),Bs(de(hs),0,Wn(Cn,ue()))):(Ss=!0,Ws(Ps)),hs=null)}function zs(i,e,t){var n,r;te.ci?(te.tt&&(te.mf=o.mock_config||te.mf),Ce("Get config from "+(n=te.mf||Re($n("https://"+te.cf+"platform.datazoom.io/beacon/v2/config"),function(n){n.append($,te.ci)}))),r=ue(),Zn("GET",n,null,null,function(n){js(n,"Config API",zs,i,e,te.rd,t,function(n,e){var t=fe(n.responseText);if(t)return i(t,n.getResponseHeader("dz-extra"),r,e),!0},function(n,e){e<400||429==e||499<e||(te.om=!1),i()})})):(oe("Missing configuration ID"),te.om=!1,i())}function Gs(){zs(function(n,e,t,i){te.st=null,n&&function i(r,a){pe(r)?ie.keys(r).forEach(function(n){var e=r[n],t=a[n];pe(t)?i(e,t):null==t?be("Unknown config key: "+n):null==e?be("Undefined config key: "+n):t&&(te[t]=e)}):oe("Invalid config object",r)}(n,K),v(p,hn,te.st),te.st=Vs(te.st),v(p,gn,te.od),go(te.ev,n),Ao(te.fd),Uo(te.md),is(te.cd),te.og||(xn=[]),te.os||(Pn=null),m(te.cm,"sort"),m(te.am,"sort"),m(te.cq,"sort"),m(te.aq,"sort"),Xs([[ar,te.cc],[rr,te.cl]]),Rs.forEach(function(n){var e,t,i,r,a,o=!1,s=us(n.m,ur),u=_o[s];u?o=u.on:s.startsWith(z)?o=Oo:s.startsWith(G)&&(o=Co),o&&(e=n.m,t={},wo.concat(Lo).forEach(function(n){null!=(i=us(e,n))&&(ve(t,n.p)[n.nm]=i)}),r=ve(e,Wt),a=ve(t,Wt),So.concat(Io).forEach(function(n){null!=(i=us(r,n))&&(a[n.nm]=i)}),To&&(i=ve(e,er,!0))&&ie.assign(ve(t,er),i),bo&&(i=ve(e,tr,!0))&&ie.assign(ve(t,tr),i),qs(t,a),n.m=t,Ds.push(n))}),v(p,vn,Ds),Rs=[];var r,n=ua.nm,n=(ua.on?(r=Ne(E,n))||(r=le(),v(E,n,r)):Pe(E,n),Xs([[ua,r]]),e);try{var a,o,s,u,c,l=n&&fe(atob(n));l?(a=l.latitude,o=l.longitude,s=l.timezone_offset,c=(u=l.time_sync)&&+u,Xs([[Wr,l.client_ip],[Fa,l.mobile_connection],[Ua,l.asn],[Na,l.region_code],[Ra,l.region],[ba,l.country_code],[Oa,l.country],[Da,l.postal_code],[Ta,l.city],[Ca,a?+a:null],[Ma,o?+o:null],[Pa,l.continent],[ka,l.continent_code],[wa,l.timezone_name],[La,null!=s?s/3600:null]]),c&&Xs([[za,re.round(c-(t+i)/2)]])):oe("Missing or invalid dz-extra header")}catch(n){se(n,"processDzExtra")}te.ab&&$a.on&&null==Js($a)?Zn("GET",$n(te.ab),null,null,function(n){4==n.readyState&&(Xs([[$a,!n.status]]),Ws(ks))}):Ws(ks),Ws(Ns),Hs(),L(function(){Ws(ws),Hs()},te.mh),ie.keys(_e).forEach(function(n){n=_e[n].configCallback;n&&n(te)})},0,Wn(Mn,ue()))}function qs(n,e){var t=""+(ms+1e7);ve(n,or.p)[or.nm]=fs+"_"+t.substr(-7,2)+"."+t.substr(-5),v(p,fn,++ms),Zt.on&&(e[Zt.nm]=ms)}function Ys(n,e,t,i,r,a,o){var s,u,c,l,d,o=o?Ye:Xe,f=ve(n,Wt);for(cs(Cs,wo,o,n),cs(Cs,So,o,f),(i=i||[]).push([ur,e],[sr,t]),s=0;s<i.length;s++)u=(c=i[s])[0],c[2]||0!=(u.ap&Ke)?u.on&&null!=(c=Be(c[1],u.dv))&&(ve(n,u.p)[u.nm]=c):oe("Invalid event data",u);To&&(o=Hn(ls,r),e=n,r=de(o),d=r?r.length:0,(l=te.ml)&&l<d?oe("Custom metadata size: "+d+" > "+l):2<d&&(o=fe(r))&&ie.assign(ve(e,er),o)),bo&&(l=Gn(ds,a),d=n,l)&&ie.assign(ve(d,tr),l),Ae&&De("evInfo",n),!(sn<rn)&&te.le&&te.le(n)||(r={p:Ls,m:n,t:t},Ls&Ns?Rs.push(r):(qs(n,f),Ds.push(r),v(p,vn,Ds),null==_s&&(_s=L(Fs,te.bd))))}function Ks(t,e,i,n){var r,a=t.map(function(n){return n.m}),o=(a.forEach(function(n,e){var t,i=ve(n,nr);Ba.on&&(ve(n,Ba.p)[Ba.nm]=ue()),Es&&(i[te.ss+"_sampling"]=Es),null!=ys&&(i[te.ss+"_forced_sampling_in"]=ys),e||(r=i[En],Pn&&(ie.keys(Pn).forEach(Bn),Pn=null),xn.length&&(r=r?r.concat(xn):xn,xn=[],r.length>te.mc&&(r.sort(function(n,e){return n.batch()>e.batch()?1:-1}),t=r[r.length-te.mc-1].batch(),r=r.filter(function(n){return n.batch()>t})),i[En]=r))}),$n(te.mb)),a=de(a);n&&R.sendBeacon&&R.sendBeacon(o,a)||Zn("POST",o,{"Content-Type":"application/json"},a,function(n){js(n,"Message post",Ks,t,e,te.rd,i,null,function(n,e){t.forEach(function(n){jn(n,e)}),r&&(xn=r.concat(xn))})})}function Xs(n){as(Cs,Ms,Ye,n)}function Js(n){return Cs[n.nm]}function $s(n){if(_c&&(_c=!1,Zs(dt,n)),!fs||!ps||(e=n,t=te.st,e<vs&&oe("Activity time reversal: "+vs+" -> "+e),0<=t&&(e<vs||vs+t<=e))){Fs(!(Rs=[]),!0);t=n,e=xs[Us];if(fs=le(),ps=vs=t,Xs([[Ur,fs],[xr,ps],[ei,ms=0],[ii,0],[ri,0],[ai,0],[ti,0],[oi,0]]),v(p,fn,ms),v(p,pn,vs),Pe(p,_n),gs&&gs.abort(),gs=Es=null,Ss=ys=null,Ls|=Ps,hs={},Hs(),ae(e))try{e()}catch(n){se(n,"onAppSessionStart")}}else v(p,pn,vs=n);var e,t;Xs([[Jt,n-ps],[oa,ee.outerWidth],[ra,ee.outerHeight],[Ya,ye.title],[Ka,D.href],[Xa,ye.referrer],[Ja,D.hostname],[sa,R.cookieEnabled]])}function Qs(n,e,t){ss(Xs,Js,n,e,t)}function Zs(n,e,t,i,r){0!=(n.ap&Ye)?($s(e),n.on&&Ys({},n.nm,e,t,i,r,!0)):oe("Event inapplicable: "+n.nm+", ss",n)}function nu(e,t){var i,r;e&&Mo.forEach(function(n){i=H+n.nm,null!=(r=e[i])&&(t([[n,r]]),delete e[i])})}if(rs(Cs,Po,Ye),fs=Js(Ur),ps=Js(xr),ms=Ne(p,fn)||0,vs=Ne(p,pn)||0,Es=Ne(p,_n),ls=Ne(p,mn),ds=Ne(p,"__ss_vendor_md"),te.st=Vs(Ne(p,hn)),te.od=Ne(p,gn),Es?(Ss=Es.in_sample,ys=!1,Ws(Ps)):hs={},f.some(function(n){if(_=n[0].exec(N))return Is=n[1],As=_[1],!0})||(_=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(N))&&(Is=_[1],As=_[2]),(_=/Version\/([\d.]+)/.exec(N))&&(As=_[1]),t.some(function(n){if(n[0].test(N))return Ts=n[1],!0})){switch(_=null,Ts){case"Mac OS X":_=/Mac OS X (10[\d._]+)/.exec(N);break;case"Android":_=/Android ([\d._]+)/.exec(N);break;case"iOS":_=/OS (\d+_\d+(_\d+)?)/.exec(N);break;case"Tizen":_=/Tizen[ \/]([\d._]+)/.exec(N);break;default:(_=/Windows (.*)/.exec(Ts))&&(Ts="Windows")}_&&(Os=_[1].replace(/_/g,"."))}else Ts=Os="-";n.some(function(n){if(n[0].test(N))return bs=n[1],!0}),Xs([[s,N],[ia,Is],[aa,As],[pa,Ts],[c,Os],[da,bs],[Ga,te.cn],[qa,te.sv],[Qi,3]]);var eu="adapterID",tu="adapterOptions",iu="baseContext",ru="contextType",au="contextName",ou="metadata",su=0,uu=2,cu=["base","player","app"],_e={},lu=[];function du(n){if(!n.destroyed){n.setTimer(null);try{var e=n.destroyCallback;e&&e()}catch(n){se(n,"onDestroy")}delete _e[n.id],n.removeListeners(),n.destroyed=!0}}function fu(n,e,t,i,r,a,o){(r=r||[]).push([Wa,n.id],[ja,n.name]),Ys(e,t,i,r,Hn(n.customMetadata,a),Gn(n.vendorMetadata,o))}function pu(n,e){return!(null!=e&&!pe(e)||(n.customMetadata=fe(de(e)),0))}function mu(n){var e=ce(Cs);return e._c_=Hn(ls,n.customMetadata),e._v_=Gn(ds,n.vendorMetadata),e}function vu(){var t,c=[],i={},a={id:le(),type:su,destroyed:!1,destroyCallback:null,configCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(n,e,t){if(a.destroyed)return oe(n+" after destroyed"+(e?": "+e:""),t),!0},onDestroy:function(n){a.destroyCallback=n},onConfig:function(n){a.configCallback=n},setTimer:function(n){var e;t&&(0<=(e=lu.indexOf(t))&&lu.splice(e,1),t=null),n&&(lu.push(n),t=n)},fireEvent:function(n,e,t,i,r){a.shallBlock("fireEvent",n.nm,n)||($s(e),n.on&&fu(a,{},n.nm,e,t,i,r))},fireVendorEvent:function(n,e,t){a.fireEvent({ap:I,nm:ho(n,e),on:Co},ue(),null,null,zn(n,t))},addListener:function(n,e,t,i,r){if(n&&e){var a=n[i=i||"addEventListener"];if(ae(a)){u=qn(n,t,s="listener: "+(s=e));var o=sn<an?u:function(){Nn(s,arguments),u.apply(null,arguments)};try{"-"===e?a.call(n,o):a.call(n,e,o),c.push([n,e,t,o,r||"removeEventListener"])}catch(n){se(n,"addListener: "+e)}}else oe("Invalid add-listener method: "+i,n)}var s,u},removeListeners:function(r,a,o){c=c.filter(function(n){var e=n[0],t=n[1];if(r&&r!=e||a&&a!=t||o&&o!=n[2])return!0;var i=e&&e[n[4]];if(ae(i))try{"-"===t?i.call(e,n[3]):i.call(e,t,n[3])}catch(n){}else oe("Invalid remove-listener method: "+n[4],e)})},stash:function(n,e,t){i[n]=[e,t]},unstash:function(n){n.forEach(function(e){var n=i[e];if(n){delete i[e];try{n[0].apply(null,n[1])}catch(n){se(n,"unstash: "+e)}}})}},n={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return cu[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){du(a)},setMetadata:function(n){return pu(a,n)},getMetadata:function(){return fe(de(a.customMetadata))},generateEvent:function(n,e){a.fireEvent({ap:I,nm:z+n,on:Oo},ue(),null,e)},dumpDzData:function(n){var e=fe(de(mu(a)));return null==n?e:e[n]}};return a.basePublicMethods=n,a.publicContext=ce(n),_e[a.id]=a}function _u(n,e){var t,i;return null==n?i=vu():(i=(t=pe(n)&&ae(n.contextID)&&n.contextID())&&we(t)&&_e[t])&&i.type===su&&i.publicContext===n||(oe("Invalid contextOptions."+iu,n),i=vu()),null!=e&&(i.name=e),i}function hu(n){return te.sn&&te.sn[n]||""+n}var gu,Eu,yu,Su,he=[],Iu="idle",Au=(he[2]=he[9]="buffering",he[3]=he[10]="playing",he[4]=he[11]="paused",he[5]=he[12]="seeking",he[6]="ended",he[0]=he[7]=he[8]=Iu,function(U,x,r){var i,a,o,V,F,W,j,B,f={},H={},g={},z={},G={},q={},Y=[],K=[],X=[],J=[],$=[],Q=[],Z=[],p=[],nn=le(),m=_u(r[iu],r[au]),s=pc(r[eu],1),u=r[tu];function en(){if(o){for(var n,e=ie.keys(o),t=ue(),i=0;i<e.length;i++)w((n=o[e[i]]).ev,t,n.dl);o=null}}function E(n,e,t){(o=o||{})[t||n.nm]={ev:n,dl:e}}function v(n){as(f,H,1,n)}function y(n){as(g,z,2,n)}function S(n,e){return os(e?g:f,n)}function I(n){return g[n.nm]}function tn(){var n=S(Jr),e=S($r);rs(f,Po,1),v([[Ea,"content"],[Jr,n],[$r,e]])}function rn(){rs(g,Po,2),y([[Ea,"ad"]])}function n(n,e){H[n.nm]=e}function an(n,e){z[n.nm]=e}function on(n,e){q[n.nm]=e}function e(n,e,t,i){for(var r=[],a=0;a<e.length;a++)r[e[a]]=!0;Z[n]={tr:r,en:t,ex:i}}u=pe(u)?ce(u):{},s&&(W=s[2],j=s[3],ie.assign(u,s[4]||{}),V=u[lc],F=u[dc],(u[cc]||[]).forEach(function(n){G[n[0].nm]=n[1]})),U&&ie.keys(_e).some(function(n){n=_e[n];if(1==n.type&&n.player===U)return n.publicContext.destroy(),!0});var sn,t,un,c,cn,l,ln,dn,A,fn,pn,T,mn,O,b,vn,_n,hn,gn,En,C,M,yn,Sn,d,_,D,R,In,An,N,P,Tn,h=0,On=Iu,bn=1,Cn=ue(),Mn=Me(oe,"Abnormal duration increment: ",1,1e3,3e5);function Dn(){return 2==bn}function Rn(){return!!O&&O.type===xo}function Nn(n){A=n+te.hi,Ce("Heartbeats started")}function Pn(){A&&Ce("Heartbeats stopped"),A=0}function k(n,e,t){return ss(v,S,n,e,t)}function kn(n){var e=n-Cn;e<0||e>te.ed?Mn.log(e):0<e&&(4==h?k(ci,e,si):11==h?k(ui,e,si):2==h?(t&&k(Ri,e,Mi),k(zt,e,Bt)):9==h&&(t&&k(Di,e,Mi),k(Ht,e,Bt))),Cn=n}function wn(n,e){null!=n&&(p[n]=e)}function w(e,t,i,n,r,a){if(!m.shallBlock("fireEvent",e.nm,e))if(a=a||(Rn()?2:bn),0!=(e.ap&a)){if($s(t),(i=i||[]).push([Ha,m.id]),Tn||(Tn=!0,(u=X.some(function(n){try{return n(t,i,e,a)}catch(n){se(n,"extEventHandler")}}))||(u=(c=q&&q[e.nm])&&c(t,i,e,a)),Tn=!1),!u){kn(t);for(var o,s,u,c,l=[[_i,On]],d=0;d<yo.length;d++)s=p[(o=yo[d]).ts],l.push([o,s?t-s:0]);v(l),null==S(jt)&&Se&&(c=Se.downlink)&&v([[jt,1e3*c]]),wn(e.rt,t),wn(2==a?e.rta:e.rtc,t),!e.on||e.mm&&!e.mm[S(Ea,2==a)]||(c=ve(u={},Wt),2==a?(cs(g,wo,2,u),cs(g,So,2,c),cs(f,wo,Xe,u),cs(f,So,Xe,c)):(cs(f,wo,1,u),cs(f,So,1,c),cs(g,wo,Xe,u),cs(g,So,Xe,c)),fu(m,u,e.nm,t,i,n,r))}}else oe("Event inapplicable: "+e.nm+", "+a,e)}function Ln(n){var e=n[1];e&&e!=S(n[0])&&E(ct)}function Un(n,e){var t=3==e?C:M;if(n!=t){var i,r,a,o,s,u,c,l,d=ue();if(A||Nn(d),fn=!0,3==e){if(s=V||te.mp,C=n,a=d-yn,yn=d,i=S(_a),T){var f,p=O;if(null==vn&&0<i&&(f=T.locate(i),vn=(f.type?f.start:i)-f._e),i=vn,b&&t>=b.start&&t<=b.end||(b=T.locate(t)),(O=O&&n>=O.start&&n<=O.end?O:T.locate(n))&&(u=O.type,c=O.start,l=O._d),O!=p&&(f=P<=n&&n<P+s,u===xo?N!==c&&l&&((null==N?Wn:(f&&w(Tt,d),zn))(d),N=c,P=O.end,Bn(),y(l.concat([[eo,P-N]])),Hn(d,O._a),w(et,d,null,null,null,2),M=0,Sn=d):null!=N&&(f&&w(Tt,d,null,null,null,2),zn(d),jn(d))),u===xo)return void(l&&(Un(p=n-c,10),g[me.nm]=p))}dn||(r=_n=!_n&&te.cm?te.cm.slice():_n)}else s=F||te.mp,M=n,a=d-Sn,Sn=d,i=I(eo),r=hn=!hn&&te.am?te.am.slice():hn;if(null!=t&&null!=n&&0<=t&&t<n&&n<=t+s){if(0<i&&r)for(var m,v,_=0,h=3==e&&b&&O?(v=((b.type?b.start:t)-b._e)/i,((u?c:n)-O._e)/i):(v=t/i,n/i);_<r.length&&!(h<(m=r[_]/100));)v<m?(r.splice(_,1),E(Et,[[Rr,100*m]],Et.nm+m)):_++;if(3==e){if(D=n,a<0||a>te.ed)Mn.log(a);else if(0<a)if(u)k("promo"===u?mi:null,a,li);else if(i=k(pi,a,li)/1e3,te.cq)for(gn=gn||te.cq.slice();null!=(o=gn[0])&&o<=i;)gn.shift(),E(Ct,[[Nr,o]],Ct.nm+o)}else if(R=n,a<0||a>te.ed)Mn.log(a);else if(0<a&&(k(di,a,li),i=ss(y,I,fi,a)/1e3,te.aq))for(En=En||te.aq.slice();null!=(o=En[0])&&o<=i;)En.shift(),E(Ct,[[Nr,o]],Ct.nm+o)}}}function xn(n,e){null==d&&null!=n&&null!=D&&n!=D&&(d=D,w(Pt,e||ue()))}function Vn(n,e){null==_&&null!=n&&null!=R&&n!=R&&(_=R,w(Pt,e||ue()))}function Fn(n){sn&&w(Ut,n),sn=un=!1,bn=1,d=D=null,Pn()}function Wn(n){var e,t,i="pre";S(pi)>1e3*te.ep&&(e=S(me),t=S(_a),i=null!=e&&null!=t&&e+te.ep>t?"post":"mid"),c=l=ln=!1,rn(),v([[Qa,le()],[ro,i],[ni,0]]),w(Qe,n)}function jn(n){In+=n-p[14],w(Ze,n,null,null,null,2),v([[Qa,null],[ro,null],[ni,null]])}function Bn(){ln||(ln=!0,y([[ao,a||le()],[fi,0]]),a=null)}function Hn(n,e){var t=xs[3];if(c=!0,hn=En=null,Qs(ei,1),k(ni,1),ae(t))try{t(i,e)}catch(n){se(n,"onAdStart")}w(At,n)}function zn(n){if(c){var e=xs[4];if(An+=n-p[9],ae(e))try{e(i)}catch(n){se(n,"onAdEnd")}}c=l=ln=!1,_=R=N=P=null,rn()}function Gn(n,e,t,i){var r,a,o,s;n!=h&&(o=Z[h],r=hu(h)+" => "+hu(n),a=he[n]||On,m.shallBlock("setState",r)||(o.tr[n]?(Ce("state: "+r+" ("+a+")"),(o=o.ex)&&o(e,n,t,i),kn(e),s=h,On=a,(o=Z[h=n].en)&&o(e,s,t,i),fn=!0):oe("Invalid transition: "+r)))}function qn(n){return n!=h&&!!Z[h].tr[n]}function Yn(){return 0==h||7==h||8==h}function L(o,s,u){return function(n){var e,t,i,r,a;e=o,t=s,i=u,a=(n=n)[0],n=n[1]=Be(n[1],a.dv),a=S(a,i),null!=i&&i!=Dn()||null==a||null==n||(t?!n!=!a&&E(n?e:t):n!=a&&E(e,r=e==Dt?a<n?[[Or,"up"]]:n<a?[[Or,"down"]]:null:r))}}function Kn(n){n[1]=Be(n[1],n[0].dv)}e(0,[1,8]),e(1,[2,7,8,16],function(n){var e=xs[1];if(Fn(n),sn=!(cn=!1),dn=Vo.test(S(ea)),In=An=0,v([[jr,nn],[Yt,n]]),nn=le(),Qs(oi,1),B&&B(),ae(e))try{e(i)}catch(n){se(n,"onContentSessionStart")}T=mn,mn=O=b=vn=null,N=P=null,pn=0,w(gt,n)}),e(2,[3,4,5,7,8,16],function(n,e){(t=3==e)&&(k(Ci,1,Oi),w(wt,n)),w(at,n)},function(n){w(ot,n),t&&w(Lt,n),t=!1,un||w(_t,n)}),e(3,[2,4,5,6,7,8,16],function(n){var e;un||(e=n-p[0],un=!0,_n=gn=null,Qs(ti,1),w(At,n,[[wr,e-In],[Lr,e-An]])),C=D=S(me),yn=n,null!=d&&(w(kt,n,[[Pr,1e3*d],[kr,null!=C?1e3*C:null]]),d=null),w(bt,n),cn&&(cn=!1,w(Nt,n)),A||Nn(n)},function(){C=null}),e(4,[2,3,5,6,7,8,16],function(n){cn||(cn=!0,w(St,n))}),e(5,[2,3,4,6,7,8,16],function(n){xn(S(me),n)}),e(6,[2,3,4,5,7,8,16],function(n){w(Tt,n)}),e(7,[],function(n){Fn(n)}),e(8,[],function(n,e,t){w(ft,n,t),Fn(n)}),e(9,[10,11,12,14,15,7],function(n,e){Bn(),(t=10==e)&&(k(bi,1,Oi),w(wt,n)),w(at,n)},function(n){w(ot,n),t&&w(Lt,n),t=!1}),e(10,[9,11,12,13,14,15,7],function(n,e,t,i){Bn(),c||Hn(n,i),M=R=I(me),Sn=n,null!=_&&(w(kt,n,[[Pr,1e3*_],[kr,null!=M?1e3*M:null]]),_=null),w(bt,n),l&&(l=!1,w(Nt,n)),A||Nn(n)},function(){M=null}),e(11,[9,10,12,14,15,7],function(n){l||(l=!0,w(St,n))}),e(12,[9,10,11,13,14,15,7],function(n){Vn(I(me),n)}),e(13,[9,10,17,7],function(n){w(Tt,n),zn(n)}),e(14,[9,10,17,7],function(n){w(tt,n),zn(n)}),e(15,[9,10,17,7],function(n,e,t){w(ft,n,t),zn(n)}),e(16,[9,10,15,17,7],function(n){bn=2,Wn(n)}),e(17,[2,3,4,5,6,7],function(n){jn(n),bn=1});var Xn,Jn=Ai,$n=Ai;function Qn(n){var i=[],r=0,a=0;return i.locate=function(e){return i.find(function(n){return e>=n.start&&e<=n.end})},n.forEach(function(n){var e=n.start,t=n.end;Le(e)&&Le(t)&&(e=e<r?r:e)<t?(r<e&&i.push({start:r,end:e,_e:a}),i.push(ie.assign({},n,{start:e,_e:a})),n.type&&(a+=t-e),r=t):oe("Skipped time span",n)}),i.push({start:r,end:ge.MAX_VALUE,_e:a}),i}function Zn(n,e){n=n&&n({type:Te,ack:e,appSID:Js(Ur),ctSID:S(jr)});n&&n["catch"](function(n){be("Cast transfer message rejected",n)})}function ne(n){var e,t=m.publicContext,i=null;m.player=n,ie.assign(t,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return n},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(jr)},nextContentSessionID:function(){return nn},playerState:function(){return On},destroy:function(){if(!m.destroyed){qn(7)&&Gn(7,ue());for(var n=0;n<K.length;n++)try{K[n]()}catch(n){se(n,"extOnDestroy")}du(m)}},startContentSession:function(){return!!Yn()&&(m.reset(),m.setState(1),m.setState(2),!0)},setMetadata:function(n){return!!pu(m,n)&&(nu(m.customMetadata,m.setData),!0)},annotateContentSession:function(n){return null==n?!(mn=null):!!Ue(n)&&(mn=Qn(n.slice().sort(function(n,e){return n.start>e.start?1:-1})),!0)},dumpDzData:function(n){var e=ie.assign(mu(m),f,g),t=Ea.nm;return e[t]=(Dn()||Rn()?g:f)[t],e=fe(de(e)),null==n?e:e[n]}}),Ou.forEach(function(n){try{n(t,m,Y,K,X,J,$,Q)}catch(n){se(n,"extInit")}});try{i=s?W?W(n,m,u):null:"Missing adapter"}catch(n){i=se(n,s[0]+" initContext")}return i?(Oe(i),t.destroy()):(null!=(e=r[ou])&&t.setMetadata(e),e=ue(),w(lt,e),w(Ot,e),m.setTimer(function(){for(var n=0;n<Y.length;n++)try{Y[n]()}catch(n){se(n,"extOnTimer")}if(Xn)try{Xn()}catch(n){se(n,"onTimer")}var e=ue();kn(e),A&&A<=e&&(fn?(w(vt,e,[[Dr,++pn]]),A=e+te.hi,fn=!1):Pn())})),t}return 1&(G[Jn.nm]||0)&&(Jn=Si),2&(G[$n.nm]||0)&&($n=Si),n(_a,Kn),an(eo,Kn),n(na,function(n){var e=n[1];n[1]=e&&jo[e]||e}),n(ea,function(n){dn=Vo.test(n[1])}),n(me,function(n){for(var e=0;e<J.length;e++)try{J[e](n)}catch(n){se(n,"extPlayheadHandler")}5==h||2==h?xn(n[1]):3==h&&Un(n[1],3)}),an(me,function(n){12==h?Vn(n[1]):10==h&&Un(n[1],10)}),n(Jn,L(Dt,null,!1)),an($n,L(Dt,null,!0)),n(Xr,L(yt,Vt)),n(Yr,L(mt,pt)),n(Hr,L(st,ut)),n(Sa,L(Rt)),n(ya,L(Rt)),n(Xi,L(Ft)),n(Kt,L(rt,null,!1)),an(Kt,L(rt,null,!0)),n(Xt,L(xt)),n(ta,L(xt)),n(Vr,Ln),n(Fr,Ln),n(gi,function(n){var e,t,i,r,a=n[1];a=a&&ae(a.getBoundingClientRect)?"visible"==ye.visibilityState?(e=(r=a.getBoundingClientRect()).left,t=r.right,i=r.top,r=r.bottom,re.min(100,re.max(0,re.round(100*(re.min(t,ee.innerWidth)-re.max(e,0))*(re.min(r,ee.innerHeight)-re.max(i,0))/((t-e)*(r-i)))))):0:Be(a,gi.dv),null!=(n[1]=a)&&v([[hi,50<=a]])}),n(qt,function(n){var e=n[1];if(e&&ae(e.end)){var t,i,r=S(me);if(null!=r)for(t=0;t<e.length;t++)if(i=e.end(t),r>=e.start(t)&&r<=i)return void(n[1]=1e3*(i-r));n[1]=0}}),on(_t,function(n,e,t,i){2==i&&(a=le(),e.push([ao,a,!0]))}),on(et,function(n,e){a&&e.push([ao,a,!0])}),on(ft,function(n,e,t,i){Qs(1==i?ai:ri,1,ii)}),tn(),rn(),ie.assign(m,{type:1,fireEvent:w,fire:function(n,e,t){w(n,ue(),e,null,null,t)},setState:function(n,e,t){Gn(n,ue(),e,t)},canSetState:qn,reset:function(){qn(7)&&Gn(7,ue()),tn(),rn(),p=[],h=0,On=Iu},setData:function(n){v(n),en()},setAdData:function(n){y(n),en()},getData:S,getAdData:I,getState:function(){return h},isIdle:Yn,isAdIdle:function(){return 13==h||14==h||15==h},isInAds:Dn,isInSsaiAds:Rn,onTimer:function(n){Xn=n},onCtSessionStart:function(n){B=n},matchCtSource:function(n){return S(Ia)==n},reqCtSID:function(){return Yn()?nn:S(jr)},reqTracer:function(n,a){n=Re(n,function(n){n["delete"]("CMCD")});var e,t=m.reqCtSID(),i=le(),r=((a=ie.assign({},a||{},{sid:t}))[es+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(e=S(ma))&&(a.cid=e),{url:n,sid:t,rid:i,cmcd:a,start:ue()});return{reqID:i,urlBase:n,url:function(){var e=ts(a);return Re(n,function(n){n.append("CMCD",e[0].concat(e[1],e[2],e[3]).sort().join())})},headers:function(){for(var n={},e=ts(a),t=0;t<4;t++)e[t].length&&(n[Bo[t]]=e[t].sort().join());return n},enabledData:function(){for(var n,e,t=ie.keys(a),i={},r=0;r<t.length;r++)n=t[r],(e=Zo[n])&&e[3]&&(i[n]=a[n]);return i},status:function(n){r.status=n},start:function(){r.start=ue()},resp:function(n){r.resp=null!=n?r.start+n:ue(),Ae&&De("reqInfo",r)},end:function(n){var e=ue(),t=(r.end=null!=n?r.start+n:e,ie.assign({},ns,a)),i=[];ie.keys(t).forEach(function(n){var e=Zo[n];e&&e[2]&&i.push([e[2],t[n]])}),w(ht,e,i,null,null,1),Ae&&De("reqInfo",r)}}},updateTimedMetadata:function(n,e,t,i,r){for(var a=0;a<$.length;a++)try{$[a](n,e,t,i,r)}catch(n){se(n,"extTimedMetadataHandler")}},addCtTimeSpans:function(n){var u=T?T.filter(function(n){return n.type}):[];n.forEach(function(n){for(var e,t,i,r,a=n.start,o=n.end,s=0;s<u.length&&(i=(t=u[s]).start,r=t.end,!(o<=i));s++)a<r&&(i<a?(u.splice(s+1,0,ie.assign({},t,{start:a})),t.end=a):(e||(u.splice(s++,0,n),e=!0),o<r?t.start=o:u.splice(s--,1)));e||u.splice(s,0,n)}),T=Qn(u),O=b=vn=null},initCastTransfer:function(n){Yn()||Zn(n,!1)},handleCastMessage:function(n,e){!n||n.type!==Te||Yn()||(m.setData([[Vr,n.appSID],[Fr,n.ctSID]]),n.ack)||Zn(e,!0)},sa:{}}),s&&v([[Jr,s[1]]]),Ls&Ns&&is((Jn=Ie.options).cmcdEnable?Jn.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new Ee(function(e,t){try{j(x,m,u).then(function(n){i=ne(n),e(i)},function(n){Oe(n),t(n)})}catch(n){t(se(n,s[0]+" createTargetObject"))}}):Ee.reject("Not implemented"):i=ne(U)}),Tu=function(n,a){var o=new(n||Ac),s=(a=a||Tc,{});function u(){return{currentTime:o.currentTime}}function c(){return{getAdId:function(){return s.adId},getAdSystem:function(){return s.adSystem},getAdvertiserName:function(){return s.advertiserName},getCreativeId:function(){return s.creativeId},getDealId:function(){return s.dealId},getDuration:function(){return s.duration},getSkipTimeOffset:function(){return s.skipTimeOffset},getVastMediaBitrate:function(){return s.vastMediaBitrate},getVastMediaWidth:function(){return s.vastMediaWidth},getVastMediaHeight:function(){return s.vastMediaHeight},getWrapperAdIds:function(){return s.wrapperAdIds},getWrapperAdSystems:function(){return s.wrapperAdSystems},getWrapperCreativeIds:function(){return s.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return s.adPodIndex},getTimeOffset:function(){return s.adTimeOffset}}},h:{clickThroughUrl:s.clickThroughUrl}}}return o.dispatch=function(n,e,t){var i,r;t=t||{},e&&((i=e.media)&&ie.assign(o,i),i=e.ima)&&((e=i.adsManager)&&ie.assign(o,e),(e=i.ad)&&ie.assign(s,e),t.getAd=c,t.getAdData=u,r=i.error)&&(t.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),n&&(e=new a(n),ie.assign(e,t),o.dispatchEvent(e))},o.getBoundingClientRect=function(){return o.boundingClientRect||{left:0,right:0,top:0,bottom:0}},o.getVolume=function(){return o.volume},o},Ou=[],bu="REQUEST_COMPLETE",Cu="SLOT_STARTED",Mu="SLOT_ENDED",Du="AD_INITIATED",Ru="AD_BUFFERING_START",Nu="AD_BUFFERING_END",Pu="AD_PAUSE",ku="AD_RESUME",wu="AD_IMPRESSION",Lu="AD_IMPRESSION_END",Uu="AD_COMPLETE",xu="AD_SKIPPED",Vu="AD_CLICK",Fu=(Ou.push(function(n,i,e,t){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(n,e){var t;i.isInAds()&&(e&&s([[so,m(e,"getTimePosition")]]),a&&(s([[me,m(a,"getPlayheadTime")],[eo,m(a,"getDuration")],[to,m(a,"getAdId")],[no,a._creativeId],[co,m(a,"getDealId")],[lo,m(a,"getSkipOffset")]]),e=m(a,"getActiveCreativeRendition"))&&(t=m(e,"getHeight"),s([[Ti,m(e,"getWidth")],[Si,t],[Ii,t?t+"p":null]])),n)&&(e=m(n,"getAdVolume"),i.setData([[Xi,100*e],[Xr,0==e]]))},l.on[bu]=function(n,e){e.success?u(gt,null,2):u(ft,null,2)},l.on[Cu]=function(n,e){a=null,o(16),l.update(n,e.slot)},l.on[Mu]=function(){o(17),a=null},l.on[Du]=function(){s([[vi,1]]),u(_t,null,2)},l.on[Ru]=function(){o(9)},l.on[Nu]=l.on[ku]=function(){o(10,null,a)},l.on[wu]=function(){o(10,null,a),u(et,null,2)},l.on[Pu]=function(){o(11)},l.on[Uu]=function(){o(13),a=null},l.on[xu]=function(){o(14),a=null},l.on[Lu]=function(){a=null},l.on[Vu]=function(){u(nt)},l.on["ERROR"]=function(n,e){o(15,[[br,e.errorCode],[Cr,e.errorInfo]]),a=null},l.on["AD"]=function(n,e){a=e.adInstance,l.update(n);var t=c[e.subType];t&&t(n,e)},l.$on=ce(l.on),i.sa.fwContext=l,e.push(function(){r&&l.update(r)}),t.push(d),Yn({attachFwContext:function(n){var e;!i.shallBlock("attachFwContext",null,n)&&n!=r&&(d(),r=n)&&(e=g(ee.tv,["freewheel","SDK"]),[bu,Cu,Mu,"AD"].forEach(function(t){var n=e&&e["EVENT_"+t];n&&i.addListener(r,n,function(n){var e=l.on[t];e&&e(r,n)})}),[Du,Ru,Nu,Pu,ku,wu,Lu,Uu,xu,Vu,"ERROR"].forEach(function(i){var n=e&&e["EVENT_"+i];n&&(c[n]=function(n,e){var t=l.on[i];t&&t(n,e)})}))},detachFwContext:d},[n,i])}),"play"),Wu="waiting",ju="playing",Bu="pause",Hu="seeking",zu="seeked",Gu="ended",qu="durationchange",Yu="ratechange",Ku="timeupdate",Xu=(Ou.push(function(n,a,e,t){var r,o,s,u,i=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function f(){o&&d(o),r&&d(r),r=o=null}function p(){if(r){for(var n,e,t,i=0;i<r.length;i++)"metadata"===(t=r[i]).kind?e=e||t:"showing"===t.mode&&(n=n||t);s||c([[ta,!!n],[Xt,n?n.label||n.language:null]]),o!=e&&(o&&d(o),o=e)&&l(o,"cuechange",function(){var n=o.activeCues;if(n)for(var e,t,i=0;i<n.length;i++)(t=(e=n[i]).value)&&a.updateTimedMetadata("ID3",e.startTime,e.endTime,t.key,t.data)})}}t.push(f);var m={on:{}};function v(){u&&d(u),u=null}m.$update=m.update=function(n,e){e&&(c([[_a,n.duration],[Gr,n.muted],[qr,n.playbackRate]]),p()),a.isInAds()||c([[me,n.currentTime],[vi,n.playbackRate],[Sa,n.offsetWidth],[ya,n.offsetHeight],[gi,n],[qt,n.buffered],[Kr,n.loop],[Xr,n.muted],[Xi,100*n.volume],[Zr,n.readyState]])},m.on[Fu]=function(n){a.isIdle()&&(a.reset(),m.update(n,!0),i(1),i(2))},m.on[Wu]=function(n){m.update(n),i(2)},m.on[ju]=function(n){m.update(n),a.isAdIdle()&&i(17),i(3)},m.on[Bu]=function(n){m.update(n),i(4)},m.on[Hu]=function(n){m.update(n),i(5)},m.on[zu]=function(n){m.update(n),i(n.paused?4:3)},m.on[Gu]=function(n){m.update(n),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(n){var e,t=n.error;t&&(e=[[br,t.code],[Cr,t.message]]),m.update(n),i(8,e)},m.on[qu]=function(n){c([[_a,n.duration]])},m.on[Yu]=function(n){c([[vi,n.playbackRate]])},m.on[Ku]=function(n){m.update(n)},m.$on=ce(m.on),a.sa.mediaElement=m,e.push(function(){u&&m.update(u)}),t.push(v),Yn({attachMediaElement:function(n){v(),(u=n)&&[[Fu,(n=[[Gu,Bu,Hu,Fu,Wu,zu,ju]])[0]],[Wu,n[0]],[ju,n[0]],[Bu,n[0]],[Hu,n[0]],[zu,n[0]],[Gu,n[0]],["error"],[qu],[Yu],[Ku]].forEach(function(i){var r=i[0];l(u,r,function(n){var e,t=m.on[r];t&&((e=i[1])?(a.stash(r,t,[u,n]),L(function(){a.unstash(e)},0)):t(u,n))})})},detachMediaElement:v,attachTextTracks:function(n,e){f(),s=e,(r=n)&&["change","addtrack","removetrack"].forEach(function(n){l(r,n,p)})},detachTextTracks:f},[a])}),"CLICK"),Ju="STARTED",$u="AD_PROGRESS",Qu="AD_BUFFERING",Zu="IMPRESSION",nc="PAUSED",ec="RESUMED",tc="COMPLETE",ic="LOADED",rc="ALL_ADS_COMPLETED",ac="SKIPPED",oc="VOLUME_CHANGED",sc="AD_ERROR",uc={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"},cc=(Ou.push(function(n,a,e,t){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(n){var e,n=n.getError();return n&&(e=[[br,n.getErrorCode()],[Cr,n.getMessage()]],n=n.getInnerError())&&e.push([Mr,""+n]),e}var d,f,p={on:{}};function m(){o&&c(o),o=null}function v(n){var e=n.getAdPodInfo(),t=n.getVastMediaHeight(),t=[[to,n.getAdId(),!0],[oo,n.getAdSystem(),!0],[uo,n.getAdvertiserName(),!0],[no,n.getCreativeId(),!0],[co,n.getDealId(),!0],[eo,n.getDuration(),!0],[lo,n.getSkipTimeOffset(),!0],[Ai,n.getVastMediaBitrate(),!0],[Ti,n.getVastMediaWidth(),!0],[Si,t,!0],[Ii,t?t+"p":null,!0],[po,n.getWrapperAdIds(),!0],[mo,n.getWrapperAdSystems(),!0],[fo,n.getWrapperCreativeIds(),!0],[Za,g(n,[/[a-z]/,"clickThroughUrl"]),!0]];return e&&t.push([so,e.getTimeOffset(),!0]),t}p.$update=p.update=function(n,e){a.isInAds()&&(e&&r(v(e)),n)&&(e=n.getVolume(),a.setData([[Xi,100*e],[Xr,0==e]]))},p.on[Xu]=function(n){p.update(n),s(nt)},p.on[Ju]=function(n,e){e=e.getAd();a.isInAds()||i(16),r([[vi,1]]),p.update(n,e),i(10,null,e)},p.on[$u]=function(n,e){e=g(e.getAdData(),["currentTime"]);null!=e&&(p.update(n),9==a.getState()&&(null==d?d=e:d!=e&&i(10)),r([[me,e]]))},p.on[Qu]=function(n){p.update(n),i(9),d=null},p.on[Zu]=function(n){p.update(n),s(et,null,2)},p.on[nc]=function(n){p.update(n),i(11)},p.on[ec]=function(n){p.update(n),i(10)},p.on[tc]=function(n){p.update(n),i(13)},p.on[ic]=function(n,e){e=e.getAd();s(_t,e&&v(e),2)},p.on[rc]=function(){i(17),m()},p.on[ac]=function(n){p.update(n),i(14)},p.on[oc]=function(n){p.update(n)},p.on[sc]=function(n,e){p.update(n),a.canSetState(15)?i(15,l(e)):s(ft,l(e),2)},p.$on=ce(p.on),a.sa.imaAdsManager=p,e.push(function(){o&&p.update(o)}),t.push(m);var _={on:{}};function h(){f&&c(f),f=null}_.on[sc]=function(n,e){s(ft,l(e),2)},_.$on=ce(_.on),a.sa.imaAdsLoader=_,t.push(h),Yn({attachImaAdsManager:function(n){var e,t;!a.shallBlock("attachImaAdsManager",null,n)&&n!=o&&(m(),o=n)&&(n=g(ee.google,["ima"]),e=g(n,["AdEvent","Type"],uc),[[Xu],[Ju,null,(t=[[Ju,Zu]])[0]],[$u],[Qu],[Zu,null,t[0]],[nc],[ec],[tc],[ic],[rc],[ac],[oc],[sc,g(n,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],n=(i[1]||e)[r];n&&u(o,n,function(n){var e,t=p.on[r];t&&((e=i[2])?(a.stash(r,t,[o,n]),L(function(){a.unstash(e)},0)):t(o,n))})}),s(gt,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(n){a.shallBlock("attachImaAdsLoader",null,n)||n==f||(h(),(f=n)&&(n=g(ee.google,["ima","AdErrorEvent","Type"],uc)[sc])&&u(f,n,function(n){var e=_.on[sc];e&&e(f,n)}))},detachImaAdsLoader:h},[n,a])}),Ou.push(function(e,r,n,t,i,a,o){var s,u,c,l=r.addListener;function d(){s&&r.removeListeners(s),s=u=c=null}function f(n){for(var e;(e=u[0])&&e.t<=n;)u.shift(),delete e.t,s.onTimedMetadata(e)}t.push(d),a.push(function(n){s&&f(c=n[1])}),o.push(function(n,e,t,i,r){var a;s&&i&&r&&we(a="ID3"===n?r:a)&&((n={t:e})[i]=a,u.push(n),null!=c)&&f(c)}),Yn({attachImaDaiStreamManager:function(n){r.shallBlock("attachImaDaiStreamManager",null,n)||n==s||(d(),(s=n)&&(n=g(ee.google,["ima","dai","api","StreamEvent","Type"]),u=[],n)&&(l(s,n.CUEPOINTS_CHANGED,function(n){r.isIdle()&&(n=g(n.getStreamData(),["cuepoints"]))&&n.length&&e.annotateContentSession(n.map(function(n){return{type:xo,start:n.start,end:n.end}}))}),l(s,n.STARTED,function(n){var e,t,i,n=n.getAd();n&&(e=c||0,t=n.getAdPodInfo(),i=n.getVastMediaHeight(),r.addCtTimeSpans([{type:xo,start:e,end:e+(n.getDuration()||0),_d:[[to,n.getAdId()],[oo,n.getAdSystem()],[uo,n.getAdvertiserName()],[no,n.getCreativeId()],[co,n.getDealId()],[lo,n.getSkipTimeOffset()],[Ti,n.getVastMediaWidth()],[Si,i],[Ii,i?i+"p":null],[po,n.getWrapperAdIds()],[mo,n.getWrapperAdSystems()],[fo,n.getWrapperCreativeIds()],[so,t?t.getTimeOffset():null]],_a:n}]))})))},detachImaDaiStreamManager:d},[e,r])}),Ie.mediatailor=((it=h.mediatailor)&&(it.clientInfo+=" DZSDK "+te.cn+" v"+te.sv),it),Ou.push(function(n,s,e,t,i,r,a,o){var u,c,l,d,f;function p(n,e,t){if(n&&1===n.playCount)for(var i=o.length,r=0;r<i;r++)o[r](e,t)}function m(){u&&c&&u.removeAdObserver(c),u=c=null,l=d=f=null}t.push(m),i.push(function(n,e,t,i){var r=l&&l[t.nm];return r&&r(n,e,t,i)}),r.push(function(n){u&&!s.isIdle()&&(d=n[1],f=s.getData(Ei),sn<an||Nn("MT onPlayheadUpdate: "+d+", "+f),u.onPlayheadUpdate(d,f||null))}),Yn({attachMediaTailorSession:function(n,e){var o,t,i,r,a;e=e||Ie.mediatailor,!s.shallBlock("attachMediaTailorSession",null,n)&&e&&n!=u&&(m(),t=function(){var n=s.getData(Xi);Le(n)&&p(o,14,n)},i=e.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(n){return function(){p(o,n)}})(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(){p(o,14,0)},r[i.UNMUTE]=t,r[i.CLICK_THROUGH]=function(){s.fire(nt),p(o,13)},r[i.SKIP]=function(){s.fire(tt),p(o,12)},u=n)&&(a=e.PlaybackEvent,l={},[[a.START,At,1],[a.END,Ut,I],[a.PAUSE,St,I],[a.RESUME,Nt,I],[a.MUTE,yt,I],[a.UNMUTE,Vt,I],[a.FULLSCREEN,mt,I],[a.EXIT_FULLSCREEN,pt,I]].forEach(function(r){l[r[1].nm]=function(n,e,t,i){r[2]&i&&u.onPlaybackEvent(r[0])}}),l[Ft.nm]=t,l[at.nm]=function(){p(o,10)},l[ot.nm]=function(){p(o,11)},c={onNewAd:function(n){var e;s.addCtTimeSpans([(e=(e=(n=n).startDate)&&f?e-f+d:n.start,{type:xo,start:e,end:e+n.duration,_a:n,_d:[[to,n.vastAdId],[oo,n.adSystem],[no,n.creativeId],[lo,n.skipOffset],[so,n.availStart],[Za,n.videoClickThrough]]})])},onAdLoad:function(n){var e,t,i,r,a;1===(o=n).playCount&&(e=n.adVerifications)&&(t={},i=[],r=s.getData(Xi),a=n.skipOffset,Le(r)&&(t["v"]=r),t["d"]=n.duration,t["ap"]=!!s.getData(Br),t["po"]=0===n.availStart?0:1,t["sk"]=0<=a,t["so"]=t["sk"]?a:null,t["vf"]=i,e.forEach(function(n){var e=g(n.javaScriptResource,[0,"uri"]),t=n.vendor;e&&t&&i.push({url:e,vd:t,p:n.verificationParameters||""})}),p(n,0,t))},onAdEnd:function(n){p(n,17),o=null},onAdTrackingEvent:function(n,e){e=r[e];e&&e()}},u.addAdObserver(c))},detachMediaTailorSession:m},[n])}),Ou.push(function(s,u,n,e,t,i,r){var f,c,l,a,d,p,m,v,_,h=["YMID","YSEQ","YTYP","YDUR"];function g(){f&&c&&f.removeAnalyticObserver(c),f=c=null,l=a=d=m=null}function o(n){for(var e;(e=l[0])&&e.t<=n;)l.shift(),f.onTimedMetadata(_.createFromMetadata(e.YMID,e.YSEQ,e.YTYP,e.YDUR,1e3*e.t))}function E(n,e,t){(a=a&&a.t===n?a:{t:n})[e]=t||"",ie.keys(a).length===h.length+1&&(l.push(a),(a=null)!=m)&&o(m)}e.push(g),t.push(function(n,e,t,i){var r=d&&d[t.nm];return r&&r(n,e,t,i)}),i.push(function(n){f&&!u.isIdle()&&(m=n[1],p===v.VOD||p===v.DVRLIVE?f.onPlayheadUpdate(re.round(1e3*m)):o(m))});var y=A.fromCharCode;function S(n,e,t){for(var i,r=[];e<t;)31<(i=n[e++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(n,e,t,i,r){var a;if(f&&r&&p===v.LIVE)if("ID3"===n||"org.id3"===n)h.includes(i)&&(r instanceof C&&(r=new b(r))||r instanceof b?3===r[0]&&(a=S(r,1,r.length)):a=r,we(a))&&E(e,i,a);else if("urn:yospace:a:id3:2016"===n){if(r instanceof b)for(var o,s=S(r,0,r.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),h.includes(o[0])&&E(e,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===n&&r instanceof b){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=re.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,h.includes(i)&&d<=c&&E(e,i,S(r,u,d)),u=d}}}}),Yn({attachYospaceSession:function(n){var e,a,o,t,i,r=ee.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,n)&&r&&n!=f&&(g(),f=n)&&(e=r.PlayerEvent,n=r.BreakType,v=r.PlaybackMode,_=r.TimedMetadata,p=f.getPlaybackMode(),l=[],d={},[[e.START,At,1],[e.STOP,Ut,I],[e.PAUSE,St,I],[e.RESUME,Nt,I],[e.STALL,wt,I],[e.CONTINUE,Lt,I]].forEach(function(r){d[r[1].nm]=function(n,e,t,i){r[2]&i&&f.onPlayerEvent(r[0],0)}}),d[kt.nm]=function(){f.onPlayerEvent(e.SEEK,1e3*(m||0))},d[yt.nm]=function(){f.onVolumeChange(!0)},d[Vt.nm]=function(){f.onVolumeChange(!1)},a=function(n,e){n=n.getProperty(e);return n&&n.getValue()},o=function(n,e,t,i){n&&(e.push(n.getIdentifier()),t.push(n.getAdSystem()),i.push(n.getCreativeIdentifier()),o(n.getLineage(),e,t,i))},t=function(n){var e=n.getSkipOffset(),t=[],i=[],r=[],e=(o(n.getLineage(),t,i,r),[[to,n.getIdentifier()],[oo,a(n,"AdSystem")],[uo,a(n,"Advertiser")],[lo,0<e?e/1e3:e],[po,t],[mo,i],[fo,r]]),t=n.getLinearCreative(),i=(t&&e.push([no,t.getCreativeIdentifier()],[Za,t.getClickThroughUrl()]),n.getStart()/1e3);return{type:xo,start:i,end:i+n.getDuration()/1e3,_d:e,_a:n}},c={onAdvertBreakStart:function(n){},onAdvertBreakEnd:function(){},onAdvertStart:function(n){u.addCtTimeSpans([t(n)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(n){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(n){}},f.addAnalyticObserver(c),p===v.VOD)&&(i=[],(r=f.getAdBreaksByType(n.LINEAR))&&r.forEach(function(n){n=n.adverts;n&&n.forEach(function(n){i.push(t(n))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:g},[s])}),Ou.push(function(n,i,e,t,r,a,o,s){var u,m,v,c;function _(){c&&c(17),m=v=c=null,u=!1}t.push(_),s.push(function(n,e){u&&(0===n?(c&&c(17),c=!1===te.om?null:v(e)):c&&(c(n,e),17===n)&&(c=null))}),Yn({startOmidSessionClient:function(n){var c,l,d,f,p=h.OmidSessionClient,e=ke.omidPartnerName,t=ke.omidPartnerVersion;i.shallBlock("startOmidSessionClient",null,n=n||{})||(c=n.omidServiceWindow||ee.self,l=n.videoElement,d=n.contentURL||D.href,f=n.accessModeHandler,p&&e&&t&&l?(_(),m=new p.Partner(e,t),v=function(e){var t,i,r,a,o,s,n=e["vf"],n=n&&n.map(function(n){var e=n["url"],t=n["vd"],n=n["p"]||"";return new p.VerificationScriptResource(e,t,n,f&&f(e,t,n)||"full")});return n&&n.length?((n=new p.Context(m,n,d)).setServiceWindow(c),"VIDEO"===l.tagName?n.setVideoElement(l):n.setVideoElement(l.getElementsByTagName("video")[0]||l),t=new p.AdSession(n),i=!1,r=[],t.setCreativeType("video"),t.setImpressionType("beginToRender"),t.isSupported()?((s=[])[1]=function(){a.loaded(new p.VastProperties(e["sk"],e["so"],e["ap"],e["po"]))},s[2]=function(){o.start(e["d"],e["v"]/100)},s[3]=function(){a.impressionOccurred()},s[4]=function(){o.firstQuartile()},s[5]=function(){o.midpoint()},s[6]=function(){o.thirdQuartile()},s[7]=function(){o.complete()},s[8]=function(){o.pause()},s[9]=function(){o.resume()},s[10]=function(){o.bufferStart()},s[11]=function(){o.bufferFinish()},s[12]=function(){o.skipped()},s[13]=function(){o.adUserInteraction("click")},s[14]=function(n){e["v"]=n,o.volumeChange(n/100)},s[15]=function(){o.playerStateChange("fullscreen")},s[16]=function(){o.playerStateChange("normal")},s[17]=function(){t.finish()},t.registerSessionObserver(function(n){switch(n.type){case"sessionStart":var e;for(a=new p.AdEvents(t),o=new p.MediaEvents(t),i=!0;e=r.shift();)u(e[0],e[1]);break;case"sessionError":oe("OMID ad session error")}}),t.start(),u):(oe("OMID ad session unsupported"),null)):null;function u(n,e){var t;i?(t=s[n])&&t(e):r.push([n,e])}},u=!0):Oe("Missing OM SDK library or parameters"))},stopOmidSessionClient:_},[n])}),Ie.omidPartnerName=ke.omidPartnerName,Ie.omidPartnerVersion=ke.omidPartnerVersion,"unsupportedDataList"),lc="maxCtPlayheadInterval",dc="maxAdPlayheadInterval",fc={};function pc(n,e){var t=null==n?gu:we(n)&&fc[n];return t&&t[5]===e?t:(oe("Invalid adapter for id: "+n),null)}function mc(n,e,t,i,r){t=[n,Eu,t,i,r,e];gu=gu||t,fc[n]=t}function vc(){if(!yu){var n=xs[2];if(ae(n))try{n()}catch(n){se(n,"onPageUnload")}ie.keys(_e).forEach(function(n){_e[n].publicContext.destroy()}),Fs(!0),yu=!0}}Eu="JW Player",mc("jw",1,function(l,d){var f,i={"hlsjs":"HLS","html5":"MP4","shaka":Fo,"flash_video":Wo,"flash_adaptive":Wo,"flash_sound":Wo};if(!l)return"Invalid player";function n(n,e){d.addListener(l,n,e,"on","off")}function e(n,e){d.addListener(l,n,e,"on","off")}function t(){var n=g(ee.cast,["framework","CastContext"]),n=n&&n.getInstance();return n&&n.getCurrentSession()}function r(n){var e=t();return e&&e.sendMessage(Q,n)}function a(n){var e,t,i,r,a,o,s,u,c=l.getConfig();n&&(n=[],(e=l.getPlaylistItem())&&(t=e.file,i=e.title,r=e.description,a=e.tags),a=a||c.tags,t&&n.push([Ia,t]),null!=i&&n.push([Aa,i]),null!=r&&n.push([va,r]),a&&n.push([ga,a]),d.setData(n)),d.isIdle()||(e=l.getCurrentTime(),t=l.getDuration(),i=l.getVisualQuality(),r=g(c,["streamType"],"").toUpperCase(),a=l.getCurrentAudioTrack(),o=0<(n=l.getCurrentCaptions()),s=g(i,["level","height"]),u=g(i,["level","bitrate"])/1e3,null!=f&&d.setData([[Ei,e+f]]),d.setData([[me,e],[_a,t||0],[Kr,g(c,["repeat"])],[Ai,u],[Ti,g(i,["level","width"])],[Si,s],[Ii,s?s+"p":null],[vi,l.getPlaybackRate()],[Kt,0<=a?g(m(l,"getAudioTracks"),[a,"name"]):null],[Xt,o?l.getCaptionsList()[n].label:null],[ta,o]]),c.streamType&&d.setData([[ea,"VOD"==r?"VOD":"Live"]]),ae(l.getViewable)&&d.setData([[hi,1===l.getViewable()]]),ae(l.getPercentViewable)&&d.setData([[gi,100*l.getPercentViewable()]]))}function o(){d.setAdData([[Kt,null]]),ae(l.getViewable)&&d.setData([[hi,1===l.getViewable()]]),ae(l.getPercentViewable)&&d.setData([[gi,100*l.getPercentViewable()]])}d.setData([[$r,l.version]]),n("playlistItem",function(){d.isIdle()||d.reset()}),n("cast",function(n){n=n.active;d.setData([[Hr,n]]),n&&(d.removeListeners(null,Q),d.addListener(t(),Q,function(n,e){d.handleCastMessage(fe(e),r)},"addMessageListener","removeMessageListener"),d.initCastTransfer(r))}),n("meta",function(e){var n,t,i=e.metadataType,r=e.metadata;r&&("program-date-time"===i?(n=r.start,t=(t=r.programDateTime)&&new S(t).getTime(),null!=n&&t&&(f=t/1e3-n)):"id3"===i?ie.keys(r).forEach(function(n){d.updateTimedMetadata("ID3",e.metadataTime,null,n,r[n])}):"emsg"===i&&d.updateTimedMetadata(r.schemeIdUri,r.start,r.end,null,r.messageData))}),n("beforePlay",function(){var n=l.getConfig(),e=l.getProvider(),t=g(n,["autostart"]);null!=l.getPlaylist()&&!t&&1<=l.getPlaylist().length&&(t=0!=l.getPlaylistIndex()),d.isIdle()&&(d.reset(),d.setData([[Gr,l.getMute()],[na,i[g(e,["name"])]],[Qr,g(n,["setupConfig","preload"])],[ma,g(n,["playlistItem","mediaid"],"")],[qr,g(n,["defaultPlaybackRate"])],[Br,t]]),a(!(f=null)),d.setState(1))}),n("buffer",function(){a(!0),d.setState(2)}),n("time",function(){a()}),n("idle",function(n){l.getConfig().castActive&&(a(),d.setState(7))}),n("play",function(){l.getConfig().castActive&&d.isIdle()&&(d.setState(1),d.initCastTransfer(r),d.setState(2)),d.isInAds()||(a(),d.setState(3))}),n("pause",function(){a(),d.setState(4)}),n("seek",function(){a(),d.setState(5)}),n("complete",function(){a(),d.setState(6)}),n("error",function(n){var e=[];n&&(e.push([Cr,n.message]),e.push([br,n.code])),a(),d.setState(8,e)}),n("levelsChanged",function(){a(),d.fire(Mt)}),n("fullscreen",function(){L(a,200)}),n("mutechange",a),n("volumechange",a),e("adRequest",function(){d.fire(gt,null,2)}),e("adTime",function(n){var e=g(n,["ima","ad",/[a-z]/,"vastMediaHeight"],null);d.setAdData([[me,n.position],[eo,n.duration],[Ai,g(n,["ima","ad",/[a-z]/,"vastMediaBitrate"],null)],[Ti,g(n,["ima","ad",/[a-z]/,"vastMediaWidth"],null)],[Si,e],[Ii,e?e+"p":null]]),o()}),e("adBreakStart",function(){o(),d.setState(16)}),e("adBreakEnd",function(){o(),d.setState(17)}),e("adClick",function(){o(),d.fire(nt)}),e("adLoaded",function(){d.fire(_t,null,2)}),e("adPlay",function(){o(),d.setState(10)}),e("adPause",function(){o(),d.setState(11)}),e("adStarted",function(){d.setAdData([[vi,1]]),o(),d.setState(10)}),e("adSkipped",function(){o(),d.setState(14)}),e("adImpression",function(n){o(),n&&d.setAdData([[Za,n.tag],[no,g(n,["ima","ad",/[a-z]/,"creativeId"])],[to,g(n,["ima","ad",/[a-z]/,"adId"])],[io,n.client],[oo,n.adsystem],[mo,g(n,["ima","ad",/[a-z]/,"adWrapperSystems"],[])],[so,g(n,["ima","ad",/[a-z]/,"adPodInfo","timeOffset"])],[co,g(n,["ima","ad",/[a-z]/,"dealId"])],[lo,g(n,["ima","ad",/[a-z]/,"skipTimeOffset"])],[fo,g(n,["ima","ad",/[a-z]/,"adWrapperCreativeIds"],[])],[po,g(n,["ima","ad",/[a-z]/,"adWrapperIds"],[])],[uo,n.advertiser]]),d.fire(et,null,2)}),e("adError",function(n){var e;n&&(e=[[Cr,n.message],[br,n.adErrorCode],[Mr,g(n,["sourceError","stack"])]]),o(),d.setState(15,e)}),e("adComplete",function(){o(),d.setState(13)}),d.onTimer(function(){var n,e=l.getConfig();e&&(n=e.autostart,e=l.getPlaylist())&&!n&&1<=e.length&&(n=0!=l.getPlaylistIndex()),(d.isInAds()?o:a)(),d.setData([[Sa,l.getWidth()],[ya,l.getHeight()],[Yr,l.getFullscreen()],[Xr,l.getMute()],[Xi,l.getMute()?0:l.getVolume()],[Br,n],[zr,l.getControls()]])})},function(n,r,e){var t,i,a=n[1];function o(e,n){var t,i=r.reqTracer(n);e.addEventListener("readystatechange",function(){var n=this.readyState;1==n?i.start():2==n?(i.status(this.status),i.resp()):4==n&&i.end()}),Qo?(t=i.headers(),i.urlBase!=n&&e.open("GET",i.urlBase,!0),ie.keys(t).forEach(function(n){e.setRequestHeader(n,t[n])})):e.open("GET",i.url(),!0)}$o&&a&&(y.isArray(a.playlist)?(a=ce(a)).playlist=a.playlist.map(function(n){return(n=ce(n)).sources?n.sources=n.sources.map(function(n){return(n=ce(n)).onXhrOpen=o,n}):n.file&&(n.sources=[{file:n.file,onXhrOpen:o}],delete n.file),n}):a.file&&!a.playlist&&((a=ce(a)).playlist=[{sources:[{onXhrOpen:o}]}],t=a.playlist[0],["description","image","mediaid","title"].forEach(function(n){a[n]&&(t[n]=a[n],delete a[n])}),i=t.sources[0],["file","type"].forEach(function(n){a[n]&&(i[n]=a[n],delete a[n])})));e=e.jwplayerFunction||ee.jwplayer;return e?Ee.resolve(e(n[0]).setup(a)):Ee.reject("Missing jwplayer function")}),Eu="DOM",mc("dom",uu,function(l,o){var s=o.publicContext;if(!l)return"Invalid DOM element";function e(n){var a,c;n&&(o.removeListeners(),a=n.events,c=n.metadata,a)&&ie.keys(a).forEach(function(e){var n=a[e],t=n.query_selector,i=n.interaction_type;if(t&&i)try{var r=l.querySelectorAll(t);r&&r.forEach(function(n){o.addListener(n,i,function(){var u;c&&(u=s.getMetadata()||{},ie.keys(c).forEach(function(n){var e=c[n],t=e.query_selector,i=e.attribute_name;if(t&&i)try{var r=l.querySelectorAll(t);if(r){for(var a=[],o=0;o<r.length;o++){var s=r[o][i];null!=s&&a.push(s)}u[n]=a}}catch(n){se(n,"querySelectorAll for: "+t)}}),s.setMetadata(u)),s.generateEvent(e)})})}catch(n){se(n,"querySelectorAll for: "+t)}})}e(te.od),o.onConfig(function(n){e(n.od)})});var _c=!0;function hc(t){if(!Su){if(!(te.ci||Qn(X,$)||t&&t[$]))return!1;t&&(X=Re(X,function(e){ie.keys(t).forEach(function(n){e.set(n,t[n])})}),cn()),_c&&(_c=!1,Zs(dt,ue()));var n=Qn(X,"env");te.cf="staging"===n||"dev"===n||"sandbox"===n?n:"",te.ci=Qn(X,$)||te.ci,te.om=null,Xs([[ir,te.ci]]),Gs(),Su=!0}return!0}function gc(n){n()}function Ec(n,e,t){pe(t)||(null!=t&&oe("Invalid contextOptions",t),t={});var i,r,a,o,s,u,c,l,d,f,p,m,v,_,h=t[ru]||cu[1];switch(h){case cu[1]:return Au(n,e,t);case cu[uu]:return o=n,s=e,p=_u((u=t)[iu],u[au]),m=pc(u[eu],uu),v=pe(v=u[tu])?ce(v):{},m&&(l=m[2],d=m[3],ie.assign(v,m[4]||{})),ie.assign(p,{type:uu,fire:function(n,e){p.fireEvent(n,ue(),e)},onTimer:function(n){f=n}}),s?d?new Ee(function(e,t){try{d(s,p,v).then(function(n){c=g(n),e(c)},function(n){Oe(n),t(n)})}catch(n){t(se(n,m[0]+" createTargetObject"))}}):Ee.reject("Not implemented"):c=g(o);case cu[su]:if(!e)return r=(o=_u(null,t[au])).publicContext,null!=(a=t[ou])&&r.setMetadata(a),o.fireEvent(lt,ue()),r;i="Invalid context type: "+h;break;default:i="Unknown context type: "+h}function g(n){var e,t=p.publicContext,i=null;p.target=n,ie.assign(t,p.basePublicMethods,{getError:function(){return i},getTarget:function(){return n},adapterID:function(){return m?m[0]:null}});try{i=m?l?l(n,p,v):null:"Missing adapter"}catch(n){i=se(n,m[0]+" initContext")}return i?(Oe(i),t.destroy()):(null!=(e=u[ou])&&t.setMetadata(e),p.fire(lt),p.setTimer(function(){if(f)try{f()}catch(n){se(n,"onTimer")}})),t}return Oe(i),e?Ee.reject(i):(_=i,{getError:function(){return _}})}m(ee,"addEventListener",["pagehide",vc]),"Safari"==Is&&m(ee,"addEventListener",["beforeunload",function(n){L(function(){n.defaultPrevented||n.returnValue||vc()},0)}]),be("Datazoom SDK "+te.sv+" ("+te.cn+") DDv3"),w(function(){lu.length?lu.forEach(gc):ue()},te.ti),ie.assign(Ie,{init:hc,setLogLevel:un,createContext:function(n,e){return Ec(n,null,e)},createBaseContext:function(n){return(n=pe(n)?ce(n):{})[ru]=cu[su],Ec(null,null,n)},createContextAndTarget:function(n){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);return Ec(null,e,n)},createCollectorProxy:function(n,e,t){return(n=n||cu[1])===cu[1]?Tu(e,t):(Oe("Unsupported context type: "+n),null)},adapterIDs:function(){return ie.keys(fc)},contexts:function(){return ie.keys(_e).map(function(n){return _e[n].publicContext})},playerContexts:function(){return ie.keys(_e).filter(function(n){return 1==_e[n].type}).map(function(n){return _e[n].publicContext})},setMetadata:function(n){return!(null!=n&&!pe(n)||(nu(ls=fe(de(n)),Xs),v(p,mn,ls),0))},getMetadata:function(){return fe(de(ls))},generateEvent:function(n,e,t){t=!t&&ie.keys(_e)[0];t?_e[t].publicContext.generateEvent(n,e):Zs({ap:$e,nm:z+n,on:Oo},ue(),null,e)},on:function(n,e){xs[n]=e},appSessionID:function(){return fs},generateUUID:function(){return le()},sdkEvent:{APP_SESSION_START:Us,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:xo,PROMO:"promo"},overridableMetadata:Do,name:te.cn,version:te.sv,dictionaryVersion:3}),yc||L(hc,te.kd)}("object"==typeof globalThis?globalThis:window,{},(s={},function(){function n(e,i){var u=u||{},t=(u.scope={},u.createTemplateTagFirstArg=function(n){return n.raw=n},u.createTemplateTagFirstArgWithRaw=function(n,e){return n.raw=e,n},u.arrayIteratorImpl=function(n){var e=0;return function(){return e<n.length?{done:!1,value:n[e++]}:{done:!0}}},u.arrayIterator=function(n){return{next:u.arrayIteratorImpl(n)}},u.makeIterator=function(n){var e="undefined"!=typeof Symbol&&Symbol.iterator&&n[Symbol.iterator];if(e)return e.call(n);if("number"==typeof n.length)return u.arrayIterator(n);throw Error(String(n)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(n){for(var e,t=[];!(e=n.next()).done;)t.push(e.value);return t},u.arrayFromIterable=function(n){return n instanceof Array?n:u.arrayFromIterator(u.makeIterator(n))},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(n){function e(){}return e.prototype=n,new e},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(n,e,t){return n!=Array.prototype&&n!=Object.prototype&&(n[e]=t.value),n},u.getGlobal=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof on&&on];for(var e=0;e<n.length;++e){var t=n[e];if(t&&t.Math==Math)return t}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(n,e,t,i){e&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(n,e,t,i):u.polyfillUnisolated(n,e,t,i))},u.polyfillUnisolated=function(n,e,t,i){for(t=u.global,n=n.split("."),i=0;i<n.length-1;i++){var r=n[i];if(!(r in t))return;t=t[r]}(e=e(i=t[n=n[n.length-1]]))!=i&&null!=e&&u.defineProperty(t,n,{configurable:!0,writable:!0,value:e})},u.polyfillIsolated=function(n,e,t,i){var r=n.split(".");n=1===r.length,i=r[0],i=!n&&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!=(e=e(t=u.IS_SYMBOL_NATIVE&&"es6"===t?i[r]:null))&&(n?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:e}):e!==t&&(void 0===u.propertyToPolyfillSymbol[r]&&(t=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+t+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:e})))},u.getConstructImplementation=function(){var i;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(n,[],function(){}),new n instanceof n?Reflect.construct:(i=Reflect.construct,function(n,e,t){return n=i(n,e),t&&Reflect.setPrototypeOf(n,t.prototype),n})):function(n,e,t){return t=u.objectCreate((t=void 0===t?n:t).prototype||Object.prototype),Function.prototype.apply.call(n,t,e)||t};function n(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var n={};try{return n.__proto__={a:!0},n.a}catch(n){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(n,e){if(n.__proto__=e,n.__proto__!==e)throw new TypeError(n+" is not extensible");return n}:null,u.inherits=function(n,e){if(n.prototype=u.objectCreate(e.prototype),n.prototype.constructor=n,u.setPrototypeOf){var t=u.setPrototypeOf;t(n,e)}else for(t in e){var i;"prototype"!=t&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(e,t))&&Object.defineProperty(n,t,i):n[t]=e[t])}n.superClass_=e.prototype},u.getRestArguments=function(){for(var n=Number(this),e=[],t=n;t<arguments.length;t++)e[t-n]=arguments[t];return e},u.polyfill("Reflect",function(n){return n||{}},"es6","es3"),u.polyfill("Reflect.construct",function(n){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(n){var t;return n||(u.setPrototypeOf?(t=u.setPrototypeOf,function(n,e){try{return t(n,e),!0}catch(n){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(n){var e,t,i,r;return n||((e=function(n,e){this.$jscomp$symbol$id_=n,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(n){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new e(t+(n||"")+"_"+i++,n)})},"es6","es3"),u.polyfill("Symbol.iterator",function(n){if(!n){n=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<e.length;t++){var i=u.global[e[t]];"function"==typeof i&&"function"!=typeof i.prototype[n]&&u.defineProperty(i.prototype,n,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return n},"es6","es3"),u.iteratorPrototype=function(n){return(n={next:n})[Symbol.iterator]=function(){return this},n},u.iteratorFromArray=function(e,t){e instanceof String&&(e+="");var i=0,r=!1,n={next:function(){var n;return!r&&i<e.length?(n=i++,{value:t(n,e[n]),done:!1}):{done:r=!0,value:void 0}}};return n[Symbol.iterator]=function(){return n},n},u.polyfill("Array.prototype.keys",function(n){return n||function(){return u.iteratorFromArray(this,function(n){return n})}},"es6","es3"),u.owns=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},u.polyfill("Object.values",function(n){return n||function(n){var e,t=[];for(e in n)u.owns(n,e)&&t.push(n[e]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(n,e,t){return n==i&&"q"==e&&t==r}}));return!0===r.q}catch(n){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 t(){}function r(n){var e=typeof n;return"object"==e&&null!==n||"function"==e}function a(n){var e;u.owns(n,o)||(e=new t,u.defineProperty(n,o,{value:e}))}function n(n){var e;u.ISOLATE_POLYFILLS||(e=Object[n])&&(Object[n]=function(n){return n instanceof t?n:(Object.isExtensible(n)&&a(n),e(n))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if(function(){if(i&&Object.seal)try{var n=Object.seal({}),e=Object.seal({}),t=new i([[n,2],[e,3]]);return 2==t.get(n)&&3==t.get(e)?(t["delete"](n),t.set(e,4),!t.has(n)&&4==t.get(e)):void 0}catch(n){}}())return i;function e(n){if(this.id_=(s+=Math.random()+1).toString(),n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var o="$jscomp_hidden_"+Math.random(),s=(n("freeze"),n("preventExtensions"),n("seal"),0);return e.prototype.set=function(n,e){if(!r(n))throw Error("Invalid WeakMap key");if(a(n),u.owns(n,o))return n[o][this.id_]=e,this;throw Error("WeakMap key fail: "+n)},e.prototype.get=function(n){return r(n)&&u.owns(n,o)?n[o][this.id_]:void 0},e.prototype.has=function(n){return r(n)&&u.owns(n,o)&&u.owns(n[o],this.id_)},e.prototype["delete"]=function(n){return!!(r(n)&&u.owns(n,o)&&u.owns(n[o],this.id_))&&delete n[o][this.id_]},e},"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(function(){if(!u.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var n,e,t=Object.seal({x:4}),i=new r(u.makeIterator([[t,"s"]]));return"s"!=i.get(t)||1!=i.size||i.get({x:4})||i.set({x:4},"t")!=i||2!=i.size?void 0:(e=(n=i.entries()).next()).done||e.value[0]!=t||"s"!=e.value[1]?void 0:!((e=n.next()).done||4!=e.value[0].x||"t"!=e.value[1]||!n.next().done)}catch(n){}}())return r;function n(n){if(this.data_={},this.head_=t(),this.size=0,n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var a=new WeakMap,i=(n.prototype.set=function(n,e){var t=i(this,n=0===n?0:n);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=e:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:n,value:e},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},n.prototype["delete"]=function(n){return!(!(n=i(this,n)).entry||!n.list||(n.list.splice(n.index,1),n.list.length||delete this.data_[n.id],n.entry.previous.next=n.entry.next,n.entry.next.previous=n.entry.previous,n.entry.head=null,this.size--,0))},n.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},n.prototype.has=function(n){return!!i(this,n).entry},n.prototype.get=function(n){return(n=i(this,n).entry)&&n.value},n.prototype.entries=function(){return e(this,function(n){return[n.key,n.value]})},n.prototype.keys=function(){return e(this,function(n){return n.key})},n.prototype.values=function(){return e(this,function(n){return n.value})},n.prototype.forEach=function(n,e){for(var t,i=this.entries();!(t=i.next()).done;)t=t.value,n.call(e,t[1],t[0],this)},n.prototype[Symbol.iterator]=n.prototype.entries,function(n,e){var t=e&&typeof e,i=("object"==t||"function"==t?a.has(e)?t=a.get(e):(t=""+ ++o,a.set(e,t)):t="p_"+e,n.data_[t]);if(i&&u.owns(n.data_,t))for(n=0;n<i.length;n++){var r=i[n];if(e!=e&&r.key!=r.key||e===r.key)return{id:t,list:i,index:n,entry:r}}return{id:t,list:i,index:-1,entry:void 0}}),e=function(n,e){var t=n.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=n.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:e(t)};t=null}return{done:!0,value:void 0}})},t=function(){var n={};return n.previous=n.next=n.head=n},o=0;return n},"es6","es3"),"omid_message_guid"),r="omid_message_method",a="omid_message_version",o="omid_message_args",s=function(n,e,t,i){this.guid=n,this.method=e,this.version=t,this.args=i},c=(s.isValidSerializedMessage=function(n){return!!n&&void 0!==n[t]&&void 0!==n[r]&&void 0!==n[a]&&"string"==typeof n[t]&&"string"==typeof n[r]&&"string"==typeof n[a]&&(void 0===n[o]||void 0!==n[o])},s.deserialize=function(n){return new s(n[t],n[r],n[a],n[o])},s.prototype.serialize=function(){var n={};return n[t]=this.guid,n[r]=this.method,n[a]=this.version,void 0!==this.args&&(n[o]=this.args),n},{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"}}),l=function(n){this.to=n,this.communicationType_=c.CommunicationType.NONE};function d(n,e){if(!e)throw Error("Value for "+n+" is undefined, null or blank.");if("string"!=typeof e&&!(e instanceof String))throw Error("Value for "+n+" is not a string.");if(""===e.trim())throw Error("Value for "+n+" is empty string.")}function f(n,e){if(null==e)throw Error("Value for "+n+" is undefined or null")}function p(n,e){if(null==e)throw Error(n+" must not be null or undefined.");if("number"!=typeof e||isNaN(e))throw Error("Value for "+n+" is not a number")}function m(n,e,t,i){if(p(n,e),e<t||i<e)throw Error("Value for "+n+" is outside the range ["+t+","+i+"]")}function U(n,e){return n&&(n[e]||(n[e]={}))}function n(n,e,t){(t=void 0===t?void 0===i?null:i:t)&&((n=n.split(".")).slice(0,n.length-1).reduce(U,t)[n[n.length-1]]=e)}function v(n,e,t,i){i=void 0===i?c.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",n),this.resourceUrl=n,this.vendorKey=e,this.verificationParameters=t,this.accessMode=i}function _(n,e){d("UniversalAdId.value",n),d("UniversalAdId.idRegistry",e),this.value=n,this.idRegistry=e}function h(n,e,t,i,r){t=void 0===t?null:t,i=void 0===i?null:i,r=void 0===r?null:r,f("Context.partner",n),this.partner=n,this.verificationScriptResources=e,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null,this.universalAdId=r}l.prototype.sendMessage=function(n,e){},l.prototype.handleMessage=function(n,e){this.onMessage&&this.onMessage(n,e)},l.prototype.serialize=function(n){return JSON.stringify(n)},l.prototype.deserialize=function(n){return JSON.parse(n)},l.prototype.isDirectCommunication=function(){return this.communicationType_===c.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},n("OmidSessionClient.Partner",function(n,e){d("Partner.name",n),d("Partner.version",e),this.name=n,this.version=e}),v.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},n("OmidSessionClient.VerificationScriptResource",v),_.prototype.toSerialisedValue=function(){return this.value+"; "+this.idRegistry},n("OmidSessionClient.UniversalAdId",_),h.prototype.setVideoElement=function(n){f("Context.videoElement",n),this.videoElement=n},h.prototype.setSlotElement=function(n){f("Context.slotElement",n),this.slotElement=n},h.prototype.setServiceWindow=function(n){f("Context.serviceWindow",n),this.serviceWindow=n},n("OmidSessionClient.Context",h);var g={},E=(g.omidGlobal=function(){if(void 0!==e&&e)return e;if(void 0!==on&&on)return on;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var n=Function("return this")();if(n)return n;throw Error("Could not determine global object context.")}(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),y={sessionError:"reportError"},x=Object.keys(c.MediaEventType).map(function(n){return c.MediaEventType[n]}),V=["impressionOccurred"],S=function(n){n=void 0===n?g.omidGlobal:n,this.interfaceRoot_=n[E.ROOT]};function I(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random()|0;return n=("y"===n?3&e|8:e).toString(16)})}function A(){var n=u.getRestArguments.apply(0,arguments);F(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(n))))},function(){console.error.apply(console,u.arrayFromIterable(n))})}function F(n,e){"undefined"!=typeof jasmine&&jasmine?n():"undefined"!=typeof console&&console&&console.error&&e()}S.prototype.isSupported=function(){return null!=this.interfaceRoot_},S.prototype.sendMessage=function(n,e,t){if("registerSessionObserver"==n&&(t=[e]),e=this.interfaceRoot_,0<=V.indexOf(n=y[n]?y[n]:n)&&(e=e[E.AD_EVENTS]),!(e=(e=0<=x.indexOf(n)?e[E.MEDIA_EVENTS]:e)[n]))throw Error("Unrecognized method name: "+n+".");e.apply(null,u.arrayFromIterable(t))};var T="1.5.5-iab77",W=3;function O(n){return/\d+\.\d+\.\d+(-.*)?/.test(n)}function b(n,e){n=n.split("-")[0].split("."),e=e.split("-")[0].split(".");for(var t=0;t<W;t++){var i=parseInt(n[t],10),r=parseInt(e[t],10);if(r<i)break;if(i<r)return!1}return!0}var C="1.0.3";function j(n,e){return O(n)&&b(n,C)?e:JSON.stringify(e)}function B(n,e){return O(n)&&b(n,C)?e||[]:e&&"string"==typeof e?JSON.parse(e):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function z(n){return G(n,H.SESSION_SERVICE)}function G(n,e){return e+n}function M(n){return null!=n&&void 0!==n.top&&null!=n.top}function q(n){var e;if(n!==g.omidGlobal)try{if(void 0===n.location.hostname)return!0;""!==(e=n).x&&e.x}catch(n){return!0}return!1}function Y(n){return M(n=void 0===n&&"undefined"!=typeof window&&window?window:n)?n:g.omidGlobal}function K(n){return M(n)?n.top:g.omidGlobal}var D=function(n){l.call(this,n),this.communicationType_=c.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,l),D.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.handleExportedMessage(n.serialize(),this)},D.prototype.handleExportedMessage=function(n,e){s.isValidSerializedMessage(n)&&this.handleMessage(s.deserialize(n),e)},D.prototype.isCrossOrigin=function(){return!1},function(n,e){e=void 0===e?g.omidGlobal:e,l.call(this,e);var t=this;this.communicationType_=c.CommunicationType.POST_MESSAGE,n.addEventListener("message",function(n){var e;"object"==typeof n.data&&(e=n.data,s.isValidSerializedMessage(e))&&(e=s.deserialize(e),n.source)&&t.handleMessage(e,n.source)})}),N=(u.inherits(R,l),R.isCompatibleContext=function(n){return!!(n&&n.addEventListener&&n.postMessage)},R.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.postMessage(n.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||q(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(n){var e={};return e[c.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,e[c.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,e[n]}});function X(n,e){try{return n.frames&&!!n.frames[e]}catch(n){return!1}}function J(n,e){n.document.write('<iframe style="display:none" id="'+e+'" name="'+e+'" sandbox></iframe>')}N.isOmidPresent=function(e){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return X(e,n)})},N.getOmidEnvironment=function(n){for(var e=u.makeIterator(Object.values(c.Environment)),t=e.next();!t.done;t=e.next()){t=t.value;if(X(n,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(e,n){e.frames&&e.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return!!e.frames[n]})&&(null==e.document.body&&N.isMutationObserverAvailable_(e)?N.registerMutationObserver_(e,n):(n=N.getEnvironmentIframeName(n),e.document.body?(N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n)):(J(e,N.OMID_PRESENT_FRAME_NAME),J(e,n))))},N.appendPresenceIframe_=function(n,e){var t=n.document.createElement("iframe");t.id=e,t.name=e,t.style.display="none",t.sandbox="",n.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(n){return"MutationObserver"in n},N.registerMutationObserver_=function(e,t){var i=new MutationObserver(function(n){n.forEach(function(n){"BODY"===n.addedNodes[0].nodeName&&(n=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n),i.disconnect())})});i.observe(e.document.documentElement,{childList:!0})};var $=["omid","v1_SessionServiceCommunication"];function Q(n,e){return e.reduce(function(n,e){return n&&n[e]},n)}function Z(n,e,t,i){for(var r=(e=u.makeIterator(e)).next();!r.done;r=e.next())if(r=function(n,e,t,i){if(!q(e))try{var r=Q(e,t);if(r)return new D(r)}catch(n){}return i(e)?new R(n,e):null}(n,r.value,t,i))return r;return null}function nn(n,e,t){t=void 0===t?N.isOmidPresent:t;var i=[n,K(n)];return e&&i.unshift(e),Z(n,i,$,t)}function P(n,e,t){f("AdSession.context",n),this.adSessionId_=I(),this.context_=n,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=e||nn(Y(),i),this.sessionInterface_=t||new S,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_(n.verificationScriptResources),this.sendSlotElement_(n.slotElement),this.sendVideoElement_(n.videoElement),this.sendContentUrl_(n.contentUrl),this.watchSessionEvents_()}function en(n,e,t,i){this.isSkippable=n,this.skipOffset=e,this.isAutoPlay=t,this.position=i}function k(n){f("AdEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerAdEvents(),this.adSession=n}catch(n){throw Error("AdSession already has an ad events instance registered")}}function w(n){f("MediaEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerMediaEvents(),this.adSession=n}catch(n){throw Error("AdSession already has a media events instance registered")}}function tn(t){var n=Y();new R(n).onMessage=function(n,e){n.method===c.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(e)}}P.prototype.getAdSessionId=function(){return this.adSessionId_},P.prototype.setCreativeType=function(n){if(n===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+c.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_!==c.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",n,this.adSessionId_),this.creativeType_=n},P.prototype.setImpressionType=function(n){if(n===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+c.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_!==c.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",n,this.adSessionId_),this.impressionType_=n},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(n){this.sendMessage("registerSessionObserver",n,this.adSessionId_)},P.prototype.start=function(){var n={customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation};this.context_.universalAdId&&(n.universalAdId=this.context_.universalAdId.toSerialisedValue()),this.sendOneWayMessage("startSession",n,this.adSessionId_)},P.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},P.prototype.error=function(n,e){this.sendOneWayMessage("sessionError",n,e,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(n){var e=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[n,null].concat(u.arrayFromIterable(e)))},P.prototype.sendMessage=function(n,e){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(n,e,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(n,e,t)},P.prototype.sendInternalMessage_=function(n,e,t){var i=I();e&&(this.callbackMap_[i]=e),n=new s(i,z(n),T,j(T,t)),this.communication_.sendMessage(n)},P.prototype.handleInternalMessage_=function(n,e){e=n.method;var t,i=n.guid;n=n.args,"response"===e&&this.callbackMap_[i]&&(t=B(T,n),this.callbackMap_[i].apply(this,t)),"error"===e&&window.console&&A(n)},P.prototype.sendInterfaceMessage_=function(n,e,t){try{this.sessionInterface_.sendMessage(n,e,t)}catch(n){A("Failed to communicate with SessionInterface with error:"),A(n)}},P.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},P.prototype.impressionOccurred=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},P.prototype.creativeLoaded=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},P.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",T,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},P.prototype.injectVerificationScripts_=function(n){n&&(n=n.map(function(n){return n.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",n,this.adSessionId_))},P.prototype.sendSlotElement_=function(n){this.sendElement_(n,"setSlotElement")},P.prototype.sendVideoElement_=function(n){this.sendElement_(n,"setVideoElement")},P.prototype.sendElement_=function(n,e){n&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(e,n,this.adSessionId_):this.error(c.ErrorType.GENERIC,"Session Client "+e+" called when communication is cross-origin"))},P.prototype.sendContentUrl_=function(n){n&&this.sendOneWayMessage("setContentUrl",n,this.adSessionId_)},P.prototype.setElementBounds=function(n){f("AdSession.elementBounds",n),this.sendOneWayMessage("setElementBounds",n,this.adSessionId_)},P.prototype.watchSessionEvents_=function(){var e=this;this.registerSessionObserver(function(n){n.type===c.AdEventType.SESSION_START&&(e.isSessionRunning_=!0,e.creativeType_=n.data.creativeType,e.impressionType_=n.data.impressionType),n.type===c.AdEventType.SESSION_FINISH&&(e.isSessionRunning_=!1)})},n("OmidSessionClient.AdSession",P),en.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(n){n=void 0===n?null:n,this.adSession.creativeLoaded(),n=n?n.toJSON():null,this.adSession.sendOneWayMessage("loaded",n,this.adSessionId_)},n("OmidSessionClient.AdEvents",k),w.prototype.start=function(n,e){p("MediaEvents.start.duration",n),m("MediaEvents.start.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("start",n,e,this.adSessionId_)},w.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},w.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},w.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},w.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},w.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},w.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},w.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},w.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},w.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},w.prototype.volumeChange=function(n){m("MediaEvents.volumeChange.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("volumeChange",n,this.adSessionId_)},w.prototype.playerStateChange=function(n){f("MediaEvents.playerStateChange.playerState",n),this.adSession.sendOneWayMessage("playerStateChange",n,this.adSessionId_)},w.prototype.adUserInteraction=function(n){f("MediaEvents.adUserInteraction.interactionType",n),this.adSession.sendOneWayMessage("adUserInteraction",n,this.adSessionId_)},n("OmidSessionClient.MediaEvents",w),n("OmidSessionClient.OmidVersion",function(n,e){d("OmidVersion.semanticVersion",n),d("OmidVersion.apiLevel",e)}),n("OmidSessionClient.listenForServiceWindow",tn),n("OmidSessionClient.VastProperties",en);var L={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9,HUMAN:10}};function rn(n){for(var e=u.makeIterator(an.keys()),t=e.next();!t.done;t=e.next())for(var t=t.value,i=u.makeIterator(an.get(t)),r=i.next();!r.done;r=i.next())if(r.value.test(n))return t;return L.VerificationVendorId.OTHER}var an=new Map([[L.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\/.*$/]],[L.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[L.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[L.VerificationVendorId.NIELSEN,[]],[L.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[L.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[L.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]],[L.VerificationVendorId.HUMAN,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.script\.ac\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\/(2|ag|static)\/[a-zA-Z0-9.]*\/analytics.js.*$/]]]);n("OmidSessionClient.verificationVendorIdForScriptUrl",rn),n("OmidSessionClient.VerificationVendorId",L.VerificationVendorId),L.verificationVendorIdForScriptUrl=rn}var on="object"==typeof globalThis?globalThis:window,e={},t=void 0===on?this:on;if("object"==typeof(r=void 0===e?void 0:e)&&"string"!=typeof r.nodeName)n(t,r);else{var i,r={},a=["1.5.5-iab77"],o="default";for(i in a.push(o),n(t,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(t,i)&&Object.defineProperty(t,i,{value:{}}),a.forEach(function(n){var e;null==Object.getOwnPropertyDescriptor(t[i],n)&&(e=function n(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]=n(e[t]));return Object.freeze(e)}(r[i]),Object.defineProperty(t[i],n,{get:function(){return e},enumerable:!0}))}))}s.OmidSessionClient=e.OmidSessionClient}(),t={},n=self,e=function(){"use strict";var i={d:function(n,e){for(var t in e)i.o(e,t)&&!i.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}},p={},m=(i.d(p,{"default":function(){return kn}}),1),h=2,g=4,E="[MT] ",A=function(n){return n[n["NONE"]=0]="NONE",n[n["ERROR"]=1]="ERROR",n[n["WARNING"]=2]="WARNING",n[n["INFO"]=3]="INFO",n[n["DEBUG"]=4]="DEBUG",n}({}),T=h;function t(n,e,t,i){n<=T&&(t=E+t,void 0===i?e.call(console,t):e.call(console,t,i))}var O=console.error,b=console.warn,C=(console.info,console.debug);function u(n,e){t(m,O,n,e)}function H(n,e){t(h,b,n,e)}function z(n,e){t(g,C,n,e)}function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function a(n){var e;return null==(e="object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis:window)?void 0:e[n]}function v(n){if(n){if(Array.isArray(n))return n.slice();if("object"===r(n))return Object.assign({},n)}return null}function G(n){if(n)try{return JSON.parse(JSON.stringify(n))}catch(n){u("Exception during deep-copy: ".concat(n),n)}return null}function M(n,e){if(null!=n)try{return new Sc(n,e).toString()}catch(n){u("URL Exception: ".concat(n),n)}return null}function q(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i)for(var r=0,a=i-1;r<=a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o+1:a=o-1}return-1}function un(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i){for(var r=0,a=i-1;r<a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o:a=o-1}if(0<r||0<=t(n,e[r]))return r}return-1}for(var o=[],n=0;n<256;n++)o.push((n+256).toString(16).substr(1).toLowerCase());var D=!(null==(e=a("crypto"))||!e.getRandomValues);D||H("crypto.getRandomValues() unavailable");var R=/P.*T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?/;var N="MediaTailor",P="1.0.0",k=[2,9],w="ad_start",L="ad_progress",U="ad_click",x="ad_can_skip",cn="ad_incoming",V="nonlinear_ad_start",F="nonlinear_ad_end",W="ad_tracking_info_response",j=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],s=null;function B(t){var n,i,e,r="nonceReq: ";return s?(n=null==(n=a("goog"))||null==(n=n.pal)?void 0:n.NonceRequest)?((i=new n).omidPartnerName=N,i.omidPartnerVersion=P,i.supportedApiFrameworks=k,j.forEach(function(n){var e=t[n];null!=e&&(i[n]=e)}),i.sessionId||(i.sessionId=function(){var n=new Uint8Array(16);if(D)crypto.getRandomValues(n);else for(var e=0;e<16;e++)n[e]=Math.floor(256*Math.random());return n[6]=15&n[6]|64,n[8]=63&n[8]|128,o[n[0]]+o[n[1]]+o[n[2]]+o[n[3]]+"-"+o[n[4]]+o[n[5]]+"-"+o[n[6]]+o[n[7]]+"-"+o[n[8]]+o[n[9]]+"-"+o[n[10]]+o[n[11]]+o[n[12]]+o[n[13]]+o[n[14]]+o[n[15]]}()),(e=null==(e=(n=s).loadNonceManager)?void 0:e.call(n,i))?z(r+"Request sent",i):u(r+"Request failed",i),e):(u(r+"Missing PAL SDK classes"),null):(u(r+"PAL isn't initialized"),null)}function ln(n){try{return JSON.parse(n)}catch(n){return H("JSON Parse Exception: ".concat(n),n),null}}function dn(r,a,o,s,i){var u=new XMLHttpRequest,c=null==s?void 0:s.retryHeuristics,l=0,d=!1;function f(){if(!d)try{e=u,n=r,i=null==(t=s)?void 0:t.headers,e.open(n,a,!0),e.timeout=null!=(n=null==t?void 0:t.timeout)?n:0,i&&Object.keys(i).forEach(function(n){e.setRequestHeader(n,i[n])}),l++,u.send(o),z("XHR (".concat(r," ").concat(a,", #").concat(l,") request sent"),o)}catch(n){H("XHR Exception: ".concat(n),n)}var e,n,t,i}return u.onreadystatechange=function(){if(!d&&4===u.readyState){var n=u.status,e=u.responseText;if(z("XHR (".concat(a,") response received, status ").concat(n),e),n<200||299<n){var t=c?c(l,n,e):-1;if(0<=t)return setTimeout(f,t),void H("XHR (".concat(a,") failed (status ").concat(n,"), retry in ").concat(t," ms"),e)}i&&i(e,n,a)}},f(),{abort:function(){d=!0,u.abort(),z("XHR (".concat(a,") aborted"))}}}function fn(n,e,t){return dn("GET",n,null,e,t)}function pn(n,e,t,i){try{(t=v(t)||{}).headers=(o={"Content-Type":"application/json; charset=utf-8"},s=t.headers,o&&s?Object.assign(o,s):o),r=n,a=JSON.stringify(e),dn("POST",r,a,t,function(n,e,t){200===e&&null!=n&&(n=ln(n)),i&&i(n,e,t)})}catch(n){H("JSON Encode Exception: ".concat(n),n)}var r,a,o,s}function mn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function Y(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var i,r,a,o,s=[],u=!0,c=!1;try{if(a=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(i=a.call(t)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(n){c=!0,r=n}finally{try{if(!u&&null!=t["return"]&&(o=t["return"](),Object(o)!==o))return}finally{if(c)throw r}}return s}}(n,e)||function(n,e){var t;if(n)return"string"==typeof n?mn(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mn(n,e):void 0}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var e="impression",K="firstQuartile",X="midpoint",J="thirdQuartile",$="complete",c="creativeView",d=[],vn=(d[0]=[e],d[1]=["clickTracking"],d[2]=["loaded"],d[3]=["start",c],d[4]=[K],d[5]=[X],d[6]=[J],d[7]=[$],d[8]=["skip"],d[9]=["pause"],d[10]=["resume"],d[11]=["mute"],d[12]=["unmute"],d[13]=["fullscreen","playerExpand"],d[14]=["exitFullscreen","playerCollapse"],{});function _n(s,u){var c={},l=null;return{onAdLoad:function(n){l={},null!=(n=n.trackingEvents)&&n.forEach(function(n){l[n.eventType]=n})},onAdEnd:function(n){l=null},onAdTrackingEvent:function(n,e){var t=d[e];if(l&&1===n.playCount&&t)for(var i=t.length,r=0;r<i;r++){var a,o=t[r];s&&null!=(a=vn[o])&&a.noninteractive||!function(i,r){var n=null==r?void 0:r.beaconUrls;if(n)for(var e=n.length,t=0;t<e;t++){var a=null==(a=n[t])?void 0:a.trim();a&&fn(a,c,function(n,e,t){u(i,r,t,e)})}}(n,l[o])}}}}function hn(n,e){var t,i,r,a,o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(o)return i=!(t=!0),{s:function(){o=o.call(n)},n:function(){var n=o.next();return t=n.done,n},e:function(n){i=!0,r=n},f:function(){try{t||null==o["return"]||o["return"]()}finally{if(i)throw r}}};if(Array.isArray(n)||(o=function(n,e){var t;if(n)return"string"==typeof n?gn(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?gn(n,e):void 0}(n))||e&&n&&"number"==typeof n.length)return o&&(n=o),a=0,{s:e=function(){},n:function(){return a>=n.length?{done:!0}:{done:!1,value:n[a++]}},e:function(n){throw n},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}[e,"loaded","start",c,K,X,J,$].forEach(function(n){vn[n]={noninteractive:!0}});var Q="adData: ";function y(n){return n&&"object"===r(n)&&n}function Z(n,e){if(!y(n))return null;for(var t=Y(e,2)[1],i={},r=t.length,a=0;a<r;a++){var o=Y(t[a],3),s=o[0],u=o[1],o=o[2],o=o[0](n[s],o);if(null!=o)i[s]=o;else if(!u)return z(Q+"Missing object field: ".concat(s),n),null}return i}function S(n){return n&&Array.isArray(n)?n:null}function I(n,e){if(!S(n))return null;for(var e=Y(e,3),t=e[1],i=e[2],r=[],a=n.length,o=0;o<a;o++){var s=i[0](n[o],i);null!=s||t?r.push(s):z(Q+"Invalid array entry at: ".concat(o),n)}return r}function nn(n){return"number"==typeof n?n:null}function en(n){return"string"==typeof n?n:null}var e=[nn],c=[en],l=[function(n){return"boolean"==typeof n?n:null}],En=[Z,[["content",!1,c],["type",!1,c]]],yn=[Z,[["beaconUrls",!1,[I,!1,c]],["durationInSeconds",!0,e],["eventId",!0,c],["eventProgramDateTime",!0,c],["eventType",!1,c],["startTimeInSeconds",!0,e]]],Sn=[I,!1,[Z,[["beaconUrls",!1,[I,!1,c]],["eventType",!1,c]]]],In=[Z,[["adId",!0,c],["adParameters",!0,c],["adSystem",!0,c],["adTitle",!0,c],["adVerifications",!0,[I,!1,[Z,[["executableResource",!0,[I,!1,[Z,[["apiFramework",!0,c],["language",!0,c],["type",!0,c],["uri",!0,c]]]]],["javaScriptResource",!0,[I,!1,[Z,[["apiFramework",!0,c],["browserOptional",!0,c],["uri",!0,c]]]]],["trackingEvents",!0,[I,!1,[Z,[["event",!1,c],["uri",!1,c]]]]],["vendor",!0,c],["verificationParameters",!0,c]]]]],["companionAds",!0,[I,!1,[Z,[["adParameters",!0,c],["altText",!0,c],["attributes",!0,[Z,[["adSlotId",!0,c],["apiFramework",!0,c],["assetHeight",!0,c],["assetWidth",!0,c],["expandedHeight",!0,c],["expandedWidth",!0,c],["height",!0,c],["id",!0,c],["pxratio",!0,c],["renderingMode",!0,c],["width",!0,c]]]],["companionClickThrough",!0,c],["companionClickTracking",!0,c],["htmlResource",!0,c],["iFrameResource",!0,c],["sequence",!0,c],["staticResource",!0,c],["trackingEvents",!0,[I,!1,[Z,[["beaconUrls",!1,[I,!1,c]],["eventType",!1,c]]]]]]]]],["creativeId",!0,c],["creativeSequence",!0,c],["extensions",!0,[I,!1,En]],["trackingEvents",!0,[I,!1,yn]],["vastAdId",!0,c]]],An=[Z,[["nonLinearAdList",!1,[I,!1,[Z,[["durationInSeconds",!0,e],["adId",!0,c],["adParameters",!0,c],["adSystem",!0,c],["adTitle",!0,c],["creativeId",!0,c],["creativeAdId",!0,c],["creativeSequence",!0,c],["width",!0,c],["height",!0,c],["expandedWidth",!0,c],["expandedHeight",!0,c],["scalable",!0,l],["maintainAspectRatio",!0,l],["minSuggestedDuration",!0,c],["apiFramework",!0,c],["staticResource",!0,c],["staticResourceCreativeType",!0,c],["iFrameResource",!0,c],["htmlResource",!0,c],["clickThrough",!0,c],["clickTracking",!0,c],["clickTrackingId",!0,c]]]]],["extensions",!0,[I,!1,En]],["trackingEvents",!0,[I,!1,yn]]]],tn=new DOMParser,Tn=/\n|<!\[CDATA\[|\]\]>/g;function rn(n){n=null==n?void 0:n.textContent;return null==n?null:n.replace(Tn,"").trim()}function an(n,e,t){t&&(n[e]=t)}function on(n,e){var t,i=hn(n.children);try{for(i.s();!(t=i.n()).done;){var r,a=t.value;null!=(r=e[a.tagName])&&r.call(e,a)}}catch(n){i.e(n)}finally{i.f()}}function On(n){var t=[];return on(n,{IconClickFallbackImage:function(n){var e={};t.push(e),an(e,"width",n.getAttribute("width")),an(e,"height",n.getAttribute("height")),on(n,{AltText:function(n){an(e,"altText",rn(n))},StaticResource:function(n){an(e,"staticResource",rn(n))}})}}),t}function bn(n){return n&&new Date("1970-01-01T".concat(n,"Z")).getTime()/1e3}function Cn(n,a,_){var h,g,r;if(y(n))return h=en(n.dashAvailabilityStartTime),null!=(g=S(n.avails))&&g.forEach(function(n){if(y(n)){var o=en(n.availId);if(o){var s=nn(n.startTimeInSeconds),u=nn(n.durationInSeconds),c=(e=(e=en(n.adMarkerDuration))&&R.exec(e))?3600*((i=e[1])?+i:0)+60*((i=e[2])?+i:0)+((i=e[3])?+i:0):null,l=I(n.adBreakTrackingEvents,Sn),d=((d=en(n.availProgramDateTime))?new Date(d).getTime()/1e3:h?new Date(h).getTime()/1e3+s:0)||0,e=(E(!1,n,o,s,u,d,c,l),a[o]),t="",f=S(n.ads),i=(null!=f&&f.forEach(function(n){y(n)&&(t+="".concat(n.adId,",").concat(n.startTime,",").concat(n.duration,";"))}),!e||t!==e.digest);if(z(Q+"Avail ".concat(i?e?"!":"":"~").concat(o," ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),i){var p={},m=null==e?void 0:e.ads,v=null==f?void 0:f.length;if(null!=f&&f.forEach(function(n,e){var t,i,r,a;y(n)?(t=en(n.adId))?null==(i=nn(n.startTimeInSeconds))?H(Q+"Invalid or missing ad start time",n):(p[t]={start:i,duration:n.duration},r=null,m&&(r=m[t],m[t]=null),a=!r||i!==r.start||n.duration!==r.duration,z(Q+"Ad ".concat(a?r?"!":"":"~").concat(t," ")+"(#".concat(e+1," of ").concat(v,") ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.adProgramDateTime,")"),n),a&&_(i,o,e,v,s,u,d,c,l,n,!1,!1,null==(t=r)?void 0:t.start)):H(Q+"Missing ad ID",n):H(Q+"Invalid ad object",f)}),m)for(var r in m){r=m[r];r&&_(0,o,0,0,s,u,d,c,l,null,!1,!1,r.start)}a[o]={digest:t,ads:p}}}else H(Q+"Missing avail ID",n)}else H(Q+"Invalid avail object",g)}),null!=(r=S(n.nonLinearAvails))&&r.forEach(function(n){var e,t,i;y(n)?(i=en(n.availId),z(Q+"nonLinearAvail ".concat(i," (").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),e=nn(n.startTimeInSeconds),t=I(n.adBreakTrackingEvents,Sn),E(!0,n,i,e,null,i=((i=en(n.availProgramDateTime))?new Date(i).getTime()/1e3:h?new Date(h).getTime()/1e3+e:0)||0,null,t)):H(Q+"Invalid nonLinearAvail object",r)}),(n=en(n.nextToken))&&z(Q+'nextToken "'.concat(n,'"')),n;function E(n,e,t,i,r,a,o,s){e=null==(e=S(e.nonLinearAdsList))?void 0:e[0];e&&(y(e)?null==i?H(Q+"Invalid or missing nonlinear ad start time",e):(z(Q+"nonLinearAds",e),_(i,t,0,1,i,r,a,o,s,e,!0,n)):H(Q+"Invalid nonLinearAds object",e))}H(Q+"Invalid tracking-info response")}e=function(n){return n[n["AD_START"]=w]="AD_START",n[n["AD_END"]="ad_end"]="AD_END",n[n["AD_PROGRESS"]=L]="AD_PROGRESS",n[n["AD_CLICK"]=U]="AD_CLICK",n[n["AD_CAN_SKIP"]=x]="AD_CAN_SKIP",n[n["AD_INCOMING"]=cn]="AD_INCOMING",n[n["NONLINEAR_AD_START"]=V]="NONLINEAR_AD_START",n[n["NONLINEAR_AD_END"]=F]="NONLINEAR_AD_END",n[n["AD_TRACKING_INFO_RESPONSE"]=W]="AD_TRACKING_INFO_RESPONSE",n}({});function Mn(){var i=new Ac,a=null,r=null,o=-1,s=!1;function u(n,e){i.dispatchEvent(new Tc(n,{detail:e}))}function c(n,e){var t=n.availDuration,i=n.inAvailStartOffset;return{toAdEnd:n.duration-e,toAvailEnd:null!=t&&null!=i?t-i-e:null,toSkipThreshold:0<=o?Math.max(0,o-e):null}}return{addEventListener:function(n,e,t){i.addEventListener(n,e,t)},removeEventListener:function(n,e,t){i.removeEventListener(n,e,t)},onTrackingInfoResponse:function(n){u(W,{failedAdTrackingInfoRequest:n})},onAdStart:function(n,e,t){var i,r;r=e,t=t,a={adData:G(i=n),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:t+i.duration-r},o=n.skipOffset,s=!1,u(w,{adObject:a,adElapsedTime:e,adCountdown:c(n,e)})},onAdEnd:function(n){u("ad_end",{adObject:a}),a=null},onAdProgress:function(n,e,t){u(L,{adObject:a,adElapsedTime:e,adCountdown:c(n,e)}),!s&&0<=o&&o<=e&&(s=!0,u(x,{adObject:a}))},onAdClick:function(n){u(U,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart:function(n,e,t){r={adData:G(n)},u(V,{nonLinearAdsObject:r,adElapsedTime:e})},onNonLinearAdsEnd:function(n){u(F,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}}var l=function(n){return n[n["START"]=0]="START",n[n["END"]=1]="END",n[n["PAUSE"]=2]="PAUSE",n[n["RESUME"]=3]="RESUME",n[n["MUTE"]=4]="MUTE",n[n["UNMUTE"]=5]="UNMUTE",n[n["FULLSCREEN"]=6]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=7]="EXIT_FULLSCREEN",n}({}),sn=[],c=(sn[0]="IMPRESSION",sn[1]="CLICK_THROUGH",sn[2]="LOADED",sn[3]="START",sn[4]="FIRST_QUARTILE",sn[5]="MID_POINT",sn[6]="THIRD_QUARTILE",sn[7]="COMPLETE",sn[8]="SKIP",sn[9]="PAUSE",sn[10]="RESUME",sn[11]="MUTE",sn[12]="UNMUTE",sn[13]="FULLSCREEN",sn[14]="EXIT_FULLSCREEN",function(n){return n[n["IMPRESSION"]=0]="IMPRESSION",n[n["CLICK_THROUGH"]=1]="CLICK_THROUGH",n[n["LOADED"]=2]="LOADED",n[n["START"]=3]="START",n[n["FIRST_QUARTILE"]=4]="FIRST_QUARTILE",n[n["MID_POINT"]=5]="MID_POINT",n[n["THIRD_QUARTILE"]=6]="THIRD_QUARTILE",n[n["COMPLETE"]=7]="COMPLETE",n[n["SKIP"]=8]="SKIP",n[n["PAUSE"]=9]="PAUSE",n[n["RESUME"]=10]="RESUME",n[n["MUTE"]=11]="MUTE",n[n["UNMUTE"]=12]="UNMUTE",n[n["FULLSCREEN"]=13]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=14]="EXIT_FULLSCREEN",n}({}));function Dn(a,e,S){function o(n,e){return n.start-e.start}var s,u="adTracking: ",I=function(n,e){return n-e.start},c=function(n,e){return n-e.startDate},V={headers:{"Cache-Control":"no-cache, no-store"}},l=S.defaultTrackingRequestInterval||10,F=null!=(n=S.incomingAdCountdownInterval)?n:5,n=S.adTrackingUpdateMode||"pagination",W="playhead"===n,j="pagination"===n,A=[],B={},T=[],O={},d=null,f=null,p=null,m=null,v=null,_=null,h=null,g=null,b=null,E=null,C=null,M=null,y=null,D=null,R=0,N=[],P=Mn();function k(n,e){for(var t=N.length,i=0;i<t;i++){var r,a=N[i];null!=(r=a[n])&&r.apply(a,e)}}function w(n,e){e=e||d,z(u+"Ad tracking event ".concat(sn[n]),e),k("onAdTrackingEvent",[e,n])}function L(n,e){!n.startDate&&M&&(n.startDate=e+M);e=s;(s=!!n.startDate)!==e&&z(u+"Set adHasStartDate to ".concat(s))}function U(n,e){var i,t,r=[["tttt","".concat(Date.now())]];W&&r.push(["aws.playheadPositionInSeconds",""+Math.round(e&&M?e-M:n)]),j&&C&&r.push(["aws.nextToken",C]),null!=(e=b)&&e.abort(),n=r,e=new Sc(e=a),t=new Ic(e.search),n.forEach(function(n){t.append(n[0],n[1])}),e.search="?"+t.toString(),r=e.toString(),i=function(n,e){var E,y;200===e?(y=E=!1,C=Cn(n,B,function(n,e,t,i,r,a,o,s,u,c,l,d,f){var p,m,v,_,h,g;null!=r&&o&&(M=o-r),l?(l="".concat(e||n||0),!O[l]&&(p=n,o=o,m=e,v=u,d=d,m=(g=Z(_=c,An))?g.nonLinearAdList.length?(h=g.nonLinearAdList.reduce(function(n,e){var t=e.durationInSeconds||0;return t<=0&&(t=bn(e.minSuggestedDuration)||0),Math.max(n,t)},0)||5,Object.assign(g,{start:p,startDate:o,duration:h,availId:m,nonlinearAvail:d,adBreakTrackingEvents:v}),z(Q+"New NonLinearAdsData (".concat(h,"s @ ").concat(p,"s / ").concat(o,"s)"),g),g):(H(Q+"Empty nonLinearAdList",_),null):(H(Q+"Missing required fields for NonLinearAdsData",_),null))&&(L(m,n),O[l]=m,q(n,T,I)<0&&(T.push(m),y=!0),k("onNewNonLinearAds",[m]))):(d=null!=f?q(f,A,I):-1,(v=c&&function(t,n,e,i,r,a,o,s,u){var c=nn(u.durationInSeconds);if(null==c||c<=0)return H(Q+"Invalid or missing ad duration",u),null;var l=(l=en(u.adProgramDateTime))&&new Date(l).getTime()/1e3,d=bn(en(u.skipOffset)),p=(d||0===d||(d=-1),Z(u,In));if(!p)return H(Q+"Missing required fields for AdData",u),null;null!=(u=p.extensions)&&u.forEach(function(n){if("AdVerifications"===n.type){var e=n.content;try{var t=null==(u=tn.parseFromString(e,"application/xml"))?void 0:u.documentElement,i=null==t?void 0:t.getElementsByTagName("JavaScriptResource"),r=null==t?void 0:t.getElementsByTagName("VerificationParameters"),a=null==t?void 0:t.getAttribute("vendor"),o=rn(null==i?void 0:i[0]),s=rn(null==r?void 0:r[0]);a&&o?(p.adVerifications||(p.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):H(Q+"Invalid AdVerifications extension content",n)}catch(n){H(Q+"Exception parsing AdVerifications extension: ".concat(e),n)}}else if("companion_about_this_ad"===n.type){var u="<root>"+n.content+"</root>";try{var c,l=null==(c=tn.parseFromString(u,"application/xml"))?void 0:c.documentElement;l&&on(l,{Icon:function(n){var e=p.icons||(p.icons=[]),t={};e.push(t),an(t,"program",n.getAttribute("program")),an(t,"width",n.getAttribute("width")),an(t,"height",n.getAttribute("height")),an(t,"xPosition",n.getAttribute("xPosition")),an(t,"yPosition",n.getAttribute("yPosition")),on(n,{StaticResource:function(n){an(t,"staticResource",rn(n))},IconClicks:function(n){var e={};t.iconClicks=e,on(n,{IconClickThrough:function(n){an(e,"iconClickThrough",rn(n))},IconClickFallbackImages:function(n){n=On(n);n.length&&(e.iconClickFallbackImages=n)}})}})}})}catch(n){H(Q+"Exception parsing AdChoices extension: ".concat(u),n)}}else if("IconClickFallbackImages"===n.type){t="<root>"+n.content+"</root>";try{var d,f=null==(d=tn.parseFromString(t,"application/xml"))?void 0:d.documentElement;f&&on(f,{IconClickFallbackImages:function(n){var e={},n=((p.icons||(p.icons=[])).push(e),an(e,"program",n.getAttribute("program")),On(n));n.length&&(e.iconClicks={iconClickFallbackImages:n})}})}catch(n){H(Q+"Exception parsing AdChoices extension: ".concat(t),n)}}});var f=[0,0,0,0];function m(n,e){e-=t;0<e&&e<c+.01&&(f[n]=e)}return Object.assign(p,{start:t,startDate:l||0,duration:c,skipOffset:d,availId:n,availAdIndex:e,availAdCount:i,availStart:r,availDuration:a,availMarkedDuration:o,adBreakTrackingEvents:s,inAvailStartOffset:null!=r?t-r:null,playCount:0,quartileEventOffsets:f}),p.videoClickThrough=null,p.trackingEvents=null==(u=p.trackingEvents)?void 0:u.filter(function(n){switch(n.eventType){case"clickThrough":var e=n.beaconUrls[0];return e&&(p.videoClickThrough=e),!1;case K:m(0,n.startTimeInSeconds);break;case X:m(1,n.startTimeInSeconds);break;case J:m(2,n.startTimeInSeconds);break;case $:m(3,n.startTimeInSeconds)}return!0}),z(Q+"New AdData (".concat(c,"s @ ").concat(t,"s / ").concat(l,")"),p),p}(n,e,t,i,r,a,s,u,c))?(L(v,n),0<=d&&(v.playCount=A[d].playCount,A.splice(d,1)),n!==f&&0<=(h=q(n,A,I))&&A.splice(h,1),A.push(v),E=!0,k("onNewAd",[v,0<=d])):0<=d&&(c||S.detectAdRemoval)&&(A.splice(d,1),E=!0))}),E&&(A.sort(o),f=p=null,m=null),y&&(T.sort(o),_=h=null,g=null),k("onTrackingInfoResponse",[!1])):(H(u+"Request failed, status ".concat(e),n),k("onTrackingInfoResponse",[!0])),b=null},b=fn(r,V,function(n,e,t){200===e&&null!=n&&(n=ln(n)),i&&i(n,e,t)})}function x(n,e,t,i){var r,a,o=i?"startDate":"start",t=un(t,e,i?c:I),i=0<=t?(a=(r=e[t])[o],t+1<e.length?e[t+1][o]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,e.length?e[0][o]:Number.MAX_VALUE);return z(u+"Update time range (".concat(a," - ").concat(i,"), ")+"".concat(n," ad index ").concat(t),r),[r,a,i]}function t(n){n&&N.indexOf(n)<0&&N.push(n)}return 0<=l&&U(0),t(P),t(_n(S.disableNoninteractiveClientSideBeaconing,function(n,e,t,i){k("onAdBeaconResponse",[n,e,t,i])})),{updateAdTrackingInfo:function(){var n;U(null!=(n=y)?n:0,D),E=y},startUpdatingAdTrackingInfo:function(n){l=n||10,E=null},stopUpdatingAdTrackingInfo:function(){l=-1},onPlayheadUpdate:function(n,e){var t,i,r,a,o;null!=y&&y<n&&n<y+2.5&&(0<=l&&!b&&(null==E||Math.abs(n-E)>=l)&&(U(n,e),E=n),t=(e=s?e:null)||n,(null==f||t<f||p<=t)&&(a=Y(x("linear",A,t,e),3),m=a[0],f=a[1],p=a[2]),a=d,o=t-f,(null==(r=d=m&&t<f+m.duration?m:null)?void 0:r.adId)===(null==a?void 0:a.adId)?d&&(z(u+"Ad progresses, time => ".concat(o)),k("onAdProgress",[d,o,n]),R<o)&&o<R+2.5&&(r=R,R=o,(i=d.quartileEventOffsets[0])&&r<i&&i<=R&&w(4),(i=d.quartileEventOffsets[1])&&r<i&&i<=R&&w(5),i=d.quartileEventOffsets[2])&&r<i&&i<=R&&w(6):(a&&((r=a.quartileEventOffsets[3])&&r<R+2.5&&w(7,a),z(u+"Ad ends",a),k("onAdEnd",[a])),R=0,d&&(d.playCount++,e&&z(u+"PDT offset => player ".concat(e-n,", ")+"ad ".concat(d.startDate-d.start),d),z(u+"Ad loads",d),k("onAdLoad",[d]),w(2),z(u+"Ad starts, time => ".concat(o),d),k("onAdStart",[d,o,n]),w(3),w(0))),d||(i=p-t)<=F&&P.dispatchEvent(cn,{timeToNextAd:i}),(null==_||t<_||h<=t)&&(r=Y(x("nonlinear",T,t,e),3),g=r[0],_=r[1],h=r[2]),a=v,o=t-_,(v=g&&t<_+g.duration?g:null)!==a)&&(a&&(z(u+"Nonlinear ad ends",a),k("onNonLinearAdsEnd",[a])),v)&&(e&&z(u+"PDT offset => player ".concat(e-n,", ")+"nonlinear ad ".concat(v.startDate-v.start),v),z(u+"Nonlinear ad starts, time => ".concat(o),v),k("onNonLinearAdsStart",[v,o,n])),y=n,D=e},onPlaybackRateUpdate:function(n){},onPlaybackEvent:function(n){switch(n){case 0:null!=e&&e.sendPlaybackStart();break;case 1:null!=e&&e.sendPlaybackEnd()}if(d)switch(n){case 2:w(9);break;case 3:w(10);break;case 4:w(11);break;case 5:w(12);break;case 6:w(13);break;case 7:w(14)}},onVideoClick:function(n){d&&(null!=e&&e.sendAdTouch(n),k("onAdClick",[d]))},onPlayerControlClick:function(n){d&&null!=e&&e.sendAdTouch(n)},onAdClickthrough:function(){d&&(null!=e&&e.sendAdClick(),w(1))},onAdSkip:function(){d&&w(8)},addAdObserver:t,removeAdObserver:function(n){n&&0<=(n=N.indexOf(n))&&N.splice(n,1)},getAllAds:function(){return A.map(G)},getAllNonLinearAds:function(n){return n?Object.keys(O).map(function(n){return G(O[n])}):T.map(G)},addEventListener:function(n,e,t){P.addEventListener(n,e,t)},removeEventListener:function(n,e,t){P.removeEventListener(n,e,t)}}}var Rn=["overlayAvails","availSuppression","adSignaling","reportingMode"],_=function(n){return n[n["INVALID_CONFIG"]=0]="INVALID_CONFIG",n[n["INVALID_INIT_RESPONSE"]=1]="INVALID_INIT_RESPONSE",n[n["INIT_DISRUPTED"]=2]="INIT_DISRUPTED",n[n["INIT_ERROR"]=3]="INIT_ERROR",n}({});function f(t,n,i,r){var a,o,s,u=null,c=t.trackingUrl,l=t.sessionInitUrl,e=t.sessionInitHeaders,d=null!=(d=t.sessionInitTimeout)?d:3e4,f=t.palNonceManager||n,p=null!=(n=null==f||null==(n=f.getNonce)?void 0:n.call(f))?n:null,m={getPlaybackUrl:function(){return u},getTrackingUrl:function(){return c},getPalNonce:function(){return p},updateAdTrackingInfo:function(){a.updateAdTrackingInfo()},startUpdatingAdTrackingInfo:function(n){a.startUpdatingAdTrackingInfo(n)},stopUpdatingAdTrackingInfo:function(){a.stopUpdatingAdTrackingInfo()},onPlayheadUpdate:function(n,e){a.onPlayheadUpdate(n,e)},onPlaybackRateUpdate:function(n){a.onPlaybackRateUpdate(n)},onPlaybackEvent:function(n){a.onPlaybackEvent(n)},onVideoClick:function(n){a.onVideoClick(n)},onPlayerControlClick:function(n){a.onPlayerControlClick(n)},onAdClickthrough:function(){a.onAdClickthrough()},onAdSkip:function(){a.onAdSkip()},addAdObserver:function(n){a.addAdObserver(n)},removeAdObserver:function(n){a.removeAdObserver(n)},getAllAds:function(){return a.getAllAds()},getAllNonLinearAds:function(n){return a.getAllNonLinearAds(n)},destroy:function(){},addEventListener:function(n,e,t){a.addEventListener(n,e,t)},removeEventListener:function(n,e,t){a.removeEventListener(n,e,t)}};c?(a=Dn(c,f,t),i(m,"Session initialized elsewhere")):l?(o=v(t.originParams)||{},(s=t.sessionFeatures)&&Rn.forEach(function(n){var e=s[n];null!=e&&(o[n]=e)}),(n=v(t.playerParams)||{}).device_sdk_info||(n.device_sdk_info=kn.clientInfo),p&&(n.givn=p),o.playerParams=n,n={},e&&(n.headers=e),d&&(n.timeout=d),z('createSession: Request sent to URL "'.concat(l,'"'),o),pn(l,o,n,function(n,e){200===e?(u=M(null==n?void 0:n.manifestUrl,l))&&(c=M(null==n?void 0:n.trackingUrl,l))?(a=Dn(c,f,t),i(m,"Successful session response",n)):r(_.INVALID_INIT_RESPONSE,"Invalid session response"):0===e?r(_.INIT_DISRUPTED,"Disrupted session initialization"):r(_.INIT_ERROR,"Failed session initialization")})):r(_.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function Nn(e,i,r,a){var n,o="createSession: ";function t(n,e,t){z(o+e,t),i?i(n,null):r(n)}function s(n,e){var t={code:n,message:e};u(o+"(".concat(n,") ").concat(e)),i?i(null,t):a(t)}e?(n=e.palNonceRequestParams,e.trackingUrl||e.palNonceManager||!n?f(e,null,t,s):(n=B(n))?n.then(function(n){z(o+"NonceManager received",n),f(e,n,t,s)})["catch"](function(n){H(o+"Nonce request rejected",n),f(e,null,t,s)}):(H(o+"Unable to create a nonce request"),f(e,null,t,s))):s(_.INVALID_CONFIG,"Missing config")}var Pn="1.9.0";console.debug("[MT] AWS Elemental MediaTailor SDK v".concat(Pn));var kn={initPal:function(n,e){var t="initPal: ";if(!n){if(!e)return u(t+"Missing consent settings"),!1;var i=null==(i=a("goog"))?void 0:i.pal,r=null==i?void 0:i.NonceLoader,i=null==i?void 0:i.ConsentSettings;if(!r||!i)return u(t+"Missing PAL SDK classes"),!1;i=new i;i.allowStorage=null!=(e=e.allowStorage)&&e,n=new r(i)}return s&&H(t+"Resetting NonceLoader"),s=n,!0},createSession:function(t,n){if(!n)return new Promise(function(n,e){Nn(t,null,n,e)});Nn(t,n,null,null)},PlaybackEvent:l,AdTrackingEvent:c,SessionUiEvent:e,setLogLevel:function(n){0<=n&&n<=g?T=n:console.warn(E+"Invalid log level: ".concat(n))},LogLevel:A,getSdkVersion:function(){return Pn},clientInfo:"MTSDK v"+Pn};return p["default"]},"object"==typeof t?t["mediatailor"]=e():n["mediatailor"]=e(),s.mediatailor=t.mediatailor,s)),yc&&(module.exports=yc.datazoom)}();
|