PageSourceSearch

https://static.neon-ssr.dailymotion.com/neon-user-ssr/static/app.59b05092e69efdc92e13.js

js dailymotion.com collected 2026-09-24 06:15:33 UTC 288,511 bytes, 2 lines download raw bytes

1/*! For license information please see app.59b05092e69efdc92e13.js.LICENSE.txt */
2(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[524],{127:(t,e,n)=>{"use strict";var r=n(31863);function i(t){this.message=t}i.prototype=new Error,i.prototype.name="InvalidTokenError",t.exports=function(t,e){if("string"!=typeof t)throw new i("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(r(t.split(".")[n]))}catch(t){throw new i("Invalid token specified: "+t.message)}},t.exports.InvalidTokenError=i},528:t=>{"use strict";t.exports=(t,e)=>{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const n=t.indexOf(e);return-1===n?[t]:[t.slice(0,n),t.slice(n+e.length)]}},659:(t,e,n)=>{var r=n(51873),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},1733:t=>{var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},1882:(t,e,n)=>{var r=n(72552),i=n(23805);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},2327:(t,e,n)=>{"use strict";n.d(e,{Af:()=>d,J_:()=>s,SB:()=>l,dc:()=>u,pS:()=>c});var r=n(4305),i=n(93377),o=n(34834);function a(t){return function(t){var e;const[n,i,o]=t.split("?")[0].split("/").filter(Boolean);return"corner"===i&&!(null===(e=r.M[o])||void 0===e||!e.includes(n))}(t)?null:(0,o.getCountryCodeFromUrlPathname)(t)}function s(t){if("string"==typeof t){const e=t.toLowerCase();return i.countries.some(t=>t.code===e)}return!1}const c=t=>{const e=a(t);return"string"==typeof e&&!(0,o.isCountryValid)(e)},u=t=>{const e=a(t);return"string"==typeof e&&!s(e)};function l(t){return s(t)&&t||function(t){return t?Object.keys(i.contentCountriesMapping).find(e=>i.contentCountriesMapping[e].has(t.toLowerCase())):null}(t)||i.defaultCountry}const d=t=>{let{url:e,geoipCountry:n}=t;const r=a(e);if(null===r)return l(n);if(!s(r)){if((0,o.isCountryValid)(r))throw Error("Unsupported country code in url");throw Error("Invalid country code in url")}return r}},3739:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(18198);const i=new class{constructor(){this.onHubvisorInventoryEvent=this.onHubvisorInventoryEvent.bind(this),this.onHubvisorResponseEvent=this.onHubvisorResponseEvent.bind(this),this.onHubvisorViewabilityEvent=this.onHubvisorViewabilityEvent.bind(this)}setTrackingDataScreen(t){this.trackingDataScreen=t}getTrackingDataScreen(){return this.trackingDataScreen}async onHubvisorInventoryEvent(t){const e=this.getTrackingDataScreen();(0,r.Kb)("hubvisor_inventory",{...t,...await(0,r.B0)()},e)}async onHubvisorResponseEvent(t){const e=this.getTrackingDataScreen();(0,r.Kb)("hubvisor_response",{...t,...await(0,r.B0)()},e)}async onHubvisorViewabilityEvent(t){const e=this.getTrackingDataScreen();(0,r.Kb)("hubvisor_viewability",{...t,...await(0,r.B0)()},e)}}},4305:(t,e,n)=>{"use strict";n.d(e,{M:()=>r});const r={football:["fr","en"],gaming:["fr"]}},4509:(t,e,n)=>{var r=n(12651);t.exports=function(t){return r(this,t).has(t)}},5081:t=>{"use strict";t.exports=JSON.parse('{"es":["ad"],"ae":["af","bh","bn","eg","iq","ir","jo","kw","lb","ly","om","ps","qa","sa","sd","sy","ye"],"us":["ag","ai","al","am","aq","as","aw","ax","az","ba","bb","bg","bl","bq","bs","bt","bv","by","cc","ck","cw","cx","cy","cz","dk","dm","ee","fi","fj","fm","fo","gd","ge","gl","gr","gs","gu","gy","hm","hr","ht","hu","il","io","is","jm","kg","ki","kn","ky","kz","lc","lt","lv","md","me","mh","mk","mm","mn","mp","mt","mu","mv","nf","nl","no","np","nr","nu","pg","pl","pn","pw","ro","rs","ru","sb","se","si","sj","sk","sr","sx","tc","tj","tk","tl","tm","to","tt","tv","ua","um","uz","vc","vi","vu","ws"],"gb":["ao","bm","bw","er","et","fk","gg","gh","gi","gm","ie","im","je","ke","lr","ls","ms","mw","mz","na","ng","sh","sl","so","ss","st","sz","tz","ug","vg","za","zm","zw"],"in":["bd","lk"],"ci":["bf","bi","bj","cd","cf","cg","cm","cv","dj","ga","gn","gq","gw","km","mg","ml","mr","ne","rw","sc","sn","td","tg","yt"],"ar":["bo","cl","uy"],"mx":["bz","pr"],"hk":["cn","mo"],"py":["cr","cu","do","gt","hn","ni","pa","sv"],"ma":["dz","eh","tn"],"pe":["ec"],"fr":["gf","gp","mc","mf","mq","nc","pf","pm","re","tf","wf"],"kr":["kp"],"th":["la"],"ch":["li","lu"],"it":["sm","va"],"co":["ve"]}')},9325:(t,e,n)=>{var r=n(34840),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},10124:(t,e,n)=>{var r=n(9325);t.exports=function(){return r.Date.now()}},10392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},11136:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,mY:()=>s});var r=n(39589),i=n(55319);const o=1e6,a=()=>{const t=Math.floor(1e6*Math.random())+1;return i.A.save(r.nF,String(t),{maxAge:r.Z8,domain:".dailymotion.com",path:"/",httpOnly:!1}),t},s=t=>(i.A.save(r.nF,String(t),{maxAge:r.Z8,domain:".dailymotion.com",path:"/",httpOnly:!1}),t),c=()=>{try{const t=i.A.load(r.nF);if(t){const e=parseInt(t,10);return e<0||e>o?a():e}return a()}catch{return console.error("error loading the TS cookie"),null}}},11561:(t,e,n)=>{"use strict";n.d(e,{A:()=>
2o});var r=!0,i="Invariant failed";function o(t,e){if(!t){if(r)throw new Error(i);var n="function"==typeof e?e():e,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},11931:(t,e,n)=>{"use strict";n.d(e,{Z4:()=>b,Pm:()=>E,F:()=>o,C4:()=>a,xE:()=>v,Gu:()=>p,IJ:()=>f,WR:()=>d,E5:()=>s,KO:()=>c,KJ:()=>u,X3:()=>l,sH:()=>w,yl:()=>y,aZ:()=>g,Zl:()=>_});var r=n(30105);const i={get isBrowser(){return"undefined"!=typeof window},get isServer(){return!this.isBrowser},get apiClientId(){return"f1a362d288c1b98099c7"},get apiClientSecret(){return"eea605b96e01c796ff369935357eca920c5da4c5"},get googleClientId(){return"1095600231293-ih62cdtmregosipj9cbasor4tpb632mr.apps.googleusercontent.com"},get facebookAppId(){return"96937694899"},get googleRecaptchaKey(){return"6LfetSQUAAAAAD-VJkr8eOrQAiuePX81T9f-dF5k"},get firebaseWebApiKey(){return"AIzaSyCNDjPnF1V3Wcdw7-NB9u9pT4yvOTqBnuA"},get amplitudeProdApiKey(){return"4326371e940c7102eea96ae13240cd86"},get amplitudeStagingApiKey(){return"192d0de454fa4cb89b746cdbae9875ce"},get dev(){return!1},get apiEndpoint(){var t;return this.isBrowser?(null===(t=window.__RUNTIME_CONFIG__)||void 0===t?void 0:t.API_ENDPOINT)||__API_ENDPOINT__:process.env.INTERNAL_API_ENDPOINT||__INTERNAL_API_ENDPOINT__||process.env.API_ENDPOINT||__API_ENDPOINT__},get authEndpoint(){var t;return this.isBrowser?(null===(t=window.__RUNTIME_CONFIG__)||void 0===t?void 0:t.AUTH_ENDPOINT)||__AUTH_ENDPOINT__:process.env.INTERNAL_AUTH_ENDPOINT||__INTERNAL_AUTH_ENDPOINT__||process.env.AUTH_ENDPOINT||__AUTH_ENDPOINT__},get coreAuthEndpoint(){var t;return this.isBrowser?(null===(t=window.__RUNTIME_CONFIG__)||void 0===t?void 0:t.CORE_AUTH_ENDPOINT)||__CORE_AUTH_ENDPOINT__:process.env.INTERNAL_CORE_AUTH_ENDPOINT||__INTERNAL_CORE_AUTH_ENDPOINT__||process.env.CORE_AUTH_ENDPOINT||__CORE_AUTH_ENDPOINT__},get cdnEndpointSsr(){var t;return(this.isBrowser?null===(t=window.__RUNTIME_CONFIG__)||void 0===t?void 0:t.CDN_ENDPOINT_SSR:process.env.CDN_ENDPOINT_SSR)||__CDN_ENDPOINT_SSR__},get appEnv(){var t;return(this.isBrowser?null===(t=window.__RUNTIME_CONFIG__)||void 0===t?void 0:t.APP_ENV:process.env.APP_ENV)||"dev"},get searchApiEndpoint(){var t;return this.isBrowser?(null===(t=window.__RUNTIME_CONFIG__)||void 0===t?void 0:t.SEARCH_API_ENDPOINT)||__SEARCH_API_ENDPOINT__:process.env.SEARCH_API_ENDPOINT||__SEARCH_API_ENDPOINT__},get reportApiEndpoint(){var t;return this.isBrowser?(null===(t=window.__RUNTIME_CONFIG__)||void 0===t?void 0:t.REPORT_API_ENDPOINT)||__REPORT_API_ENDPOINT__:process.env.REPORT_API_ENDPOINT||__REPORT_API_ENDPOINT__}},o=i.apiClientId,a=i.apiClientSecret,s=i.googleClientId,c=(i.facebookAppId,i.googleRecaptchaKey),u=i.isBrowser,l=i.isServer,d=i.firebaseWebApiKey,f=i.dev,p=i.appEnv,v=i.apiEndpoint,h=i.authEndpoint,m=i.coreAuthEndpoint,_=()=>{return(0,r.G7)("neon_new_auth_endpoint")&&(!!(t=m)&&"undefined"!==t);var t},g=()=>_()&&m||h,y=(i.cdnEndpointSsr,i.searchApiEndpoint),w=i.reportApiEndpoint,b=i.amplitudeProdApiKey,E=i.amplitudeStagingApiKey},12302:(t,e,n)=>{"use strict";n.r(e),n.d(e,{AUTHORIZE_URL:()=>Q,BASE_URL:()=>a,BLACKLIST_METADATA_ROUTES:()=>ht,BLOCKED_ROUTES:()=>St,CATEGORY_URL:()=>Et,CHANNEL_BOOKMARKS_URL:()=>A,CHANNEL_BOOKMARKS_URL_NEW:()=>L,CHANNEL_FOLLOWINGS_URL:()=>E,CHANNEL_FOLLOWINGS_URL_NEW:()=>N,CHANNEL_LIKES_URL:()=>S,CHANNEL_LIKES_URL_NEW:()=>P,CHANNEL_PAGE_URL:()=>T,CHANNEL_PAGE_URL_NEW:()=>x,CHANNEL_PLAYLIST_PAGE_URL:()=>C,CHANNEL_PLAYLIST_PAGE_URL_NEW:()=>U,CHANNEL_PLAYLIST_URL:()=>w,CHANNEL_PLAYLIST_URL_NEW:()=>R,CHANNEL_RECENTLY_WATCHED_URL:()=>b,CHANNEL_RECENTLY_WATCHED_URL_NEW:()=>O,CHANNEL_URL:()=>h,CHANNEL_URL_NEW:()=>m,CHANNEL_VIDEOS_BASE_URL:()=>g,CHANNEL_VIDEOS_BASE_URL_NEW:()=>I,CHANNEL_VIDEOS_URL:()=>y,CHANNEL_VIDEOS_URL_NEW:()=>k,COLLECTION_BASE_URL:()=>et,COLLECTION_URL:()=>nt,COOKIE:()=>mt,COPYRIGHT_INFRINGEMENT_URL:()=>X,CORNER_SUBROUTE_URL:()=>gt,CORNER_URL:()=>_t,CTV_PAIRING_URL:()=>J,DAILYMOTION_PREPROD_URL:()=>o,DAILYMOTION_PROD_URL:()=>r,DAILYMOTION_STAGING_URL:()=>i,EMAIL_LOGIN_URL:()=>l,EMAIL_REPORT_VERIFICATION_URL:()=>d,EN_CORNER_SUBROUTE_URL:()=>wt,EN_CORNER_URL:()=>yt,EXPLORE_URL:()=>F,FEED_URL:()=>tt,FOLLOWING_FEED_HASH:()=>c,FOR_YOU_FEED_HASH:()=>s,HASHTAG_URL:()=>bt,LEGAL_URL:()=>rt,LEGAL_USPRIVACY:()=>it,LEGAL_USPRIVACY_FAQ:()=>at,LEGAL_USPRIVACY_NOTICE:()=>ot,LOGIN_URL:()=>H,NICKNAME_CREATION_URL:()=>z,NOT_FOUND:()=>u,OAUTH_CALLBACK_URL:()=>At,PARTNERS_URL:()=>vt,PASSWORD_RECOVER:()=>p,PASSWORD_SET_URL:()=>
2f,REGISTER_URL:()=>B,SEARCH_CHANNELS_URL:()=>$,SEARCH_COLLECTIONS_URL:()=>W,SEARCH_HASHTAGS_URL:()=>Z,SEARCH_LIVES_URL:()=>q,SEARCH_QUERY_PAGE_URL:()=>G,SEARCH_QUERY_URL:()=>j,SEARCH_TOP_RESULTS_URL:()=>Y,SEARCH_URL:()=>V,SEARCH_VIDEOS_URL:()=>K,SETTINGS_URL:()=>st,SETTINGS_URL_CHANGE_PASSWORD:()=>ut,SETTINGS_URL_DELETE_ACCOUNT:()=>ft,SETTINGS_URL_EDIT_ACCOUNT:()=>ct,SETTINGS_URL_FEEDBACKS:()=>dt,SETTINGS_URL_NOTIFICATIONS:()=>lt,SETTINGS_URL_UPLOAD:()=>pt,VALIDATE_CODE:()=>v,WATCHED_CHANNEL_URL_TO_REDIRECT_NEW:()=>_,WATCHING_PLAYLIST_URL:()=>M,WATCHING_URL:()=>D});const r="https://www.dailymotion.com",i="https://staging.dailymotion.com",o="https://preprod.dailymotion.com",a="/",s="#for-you",c="#following",u="/notfound",l="/signin/email",d="/register/email_verification",f="/password/reset",p="/password/recover",v="/register/validation_code",h="/:channelName([a-z0-9_\\.-]{3,})",m="/user/:channelName([a-z0-9_\\.-]{3,})",_="/user/:channelName([a-z0-9_\\.-]{3,})/watched",g=`${h}/videos`,y=`${h}/videos/:page([1-9]|10)?`,w=`${h}/playlists`,b=`${h}/watched`,E=`${h}/followings`,A=`${h}/favorites`,S=`${h}/likes`,C=`${h}/playlists/:page([1-9]|10)?`,T=`${h}/:channelPage/:page([1-9]|10)?`,x=`${m}/:channelPage/:page([1-9]|10)?`,I=`${m}/videos`,k=`${m}/videos/:page([1-9]|10)?`,R=`${m}/playlists`,O=`${m}/watched`,N=`${m}/followings`,L=`${m}/favorites`,P=`${m}/likes`,U=`${m}/playlists/:page([1-9]|10)?`,D="/video/:xid",M="/video/:xid?playlist=:playlist_xid",H="/signin",B="/signup",F="/:country([a-z]{2})",z="/signin/username",V="/search",j=`${V}/:query`,G=`${j}/:searchPage`,K=`${j}/videos`,q=`${j}/lives`,$=`${j}/channels`,W=`${j}/playlists`,Z=`${j}/hashtags`,Y=`${j}/top-results`,X="/copyright-infringement",J="/pair",Q="/authorize",tt="/:country([a-z]{2})/feed",et="/playlist/:collectionXid",nt="/playlist/:collectionXid/:page([1-9]|10)?",rt="https://legal.dailymotion.com",it="/legal/usprivacy",ot="https://legal.dailymotion.com/en/usprivacynotice/",at="https://legal.dailymotion.com/en/pifaqs/",st="/settings",ct=`${st}/account`,ut=`${st}/change-password`,lt=`${st}/notifications`,dt=`${st}/feedbacks`,ft=`${st}/delete-account`,pt=`${st}/upload`,vt="/dm/partner/offers",ht=[u,d,X],mt="/cookie",_t="/corner/:slug",gt="/corner/:slug/:subTopic",yt="/:language(en)/corner/:slug",wt="/:language(en)/corner/:slug/:subTopic",bt="/hashtag/:hashtagName/:page([1-9]|10)?",Et="/category/:categorySlug/:page([1-9]|10)?",At="/oauth2callback",St=["/password","/register","/api","/password/reinforce"]},12507:(t,e,n)=>{var r=n(28754),i=n(49698),o=n(63912),a=n(13222);t.exports=function(t){return function(e){e=a(e);var n=i(e)?o(e):void 0,s=n?n[0]:e.charAt(0),c=n?r(n,1).join(""):e.slice(1);return s[t]()+c}}},12550:(t,e,n)=>{var r=n(25814),i=n(60471);t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"==t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}},12651:(t,e,n)=>{var r=n(74218);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},12749:(t,e,n)=>{var r=n(81042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},13222:(t,e,n)=>{var r=n(77556);t.exports=function(t){return null==t?"":r(t)}},14792:(t,e,n)=>{var r=n(13222),i=n(55808);t.exports=function(t){return i(r(t).toLowerCase())}},16572:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});let r=0;const i=()=>(r+=1,r)},16728:(t,e,n)=>{"use strict";n.d(e,{gf:()=>N,c$:()=>v,rO:()=>M,nf:()=>z,xw:()=>O,FO:()=>R,$K:()=>q,YF:()=>D,AX:()=>K,a3:()=>P,dH:()=>h,Dl:()=>V,HC:()=>j,VQ:()=>m,gs:()=>G,U7:()=>I,gH:()=>F,hs:()=>C,Kt:()=>T,N_:()=>S,JY:()=>E,EW:()=>H,n5:()=>b,d8:()=>y,LC:()=>w,lG:()=>g,qn:()=>x,TX:()=>A,k0:()=>U,ES:()=>L,p9:()=>B,vb:()=>k,DT:()=>_});var r=n(52037),i=n.n(r),o=n(35302),a=n.n(o),s=n(86663),c=n(11931);const u=/<br\s*\/?>/gi,l=/\|\|br\s*\|\|/gi;var d=n(12302),f=n(87921),p=n(2327);n(98047);const v=t=>{let{scheme:e="https://",domain:n="www.dailymotion.com",pathname:r,query:i}=t;const o=Object.keys(i).map(t=>`${t}=${i[t]}`).join("&");return`${e}${n}${r}${o?"?":""}${o}`},h=(t,e,n)=>{const r=a().compile(t);try{return n&&Object.keys(n).length>0?`${r(e)}?${s.stringify(n,{sort:!1})}`:r(e)}catch(t){console.error("Error while formatting route, one or more required params is missing.")}return t},m=t=>`${d.LOGIN_URL}?urlback=${encodeURIComponent(t||"/")}`,_=t=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t),g=t=>t.includes(d.PASSWORD_SET_URL),y=t=>new RegExp(d.LOGIN_URL).test(t),w=t=>new RegExp(d.REGISTER_URL).test(t),b=(t,e)=>new RegExp(e).test(t),E=t=>/^\/[a-z]{2}[/]{0,1}$/.test(t)&&!(0,p.pS)(t),A=t=>/^\/video\/[a-zA-Z0-9]+$/.test(t),S=t=>t.startsWith(d.CTV_PAIRING_URL),C=t=>t.startsWith("/authorize"),T=t=>/^\/playlist\/[a-z0-9]+(?:\/[0-9]+)?$/.test(t),x=t=>/^\/search\//.test(t),I=t=>/^\/search\/(.*)\/channels$/.test(t)?d.SEARCH_CHANNELS_URL:/^\/search\/(.*)\/playlists$/.test(t)?d.SEARCH_COLLECTIONS_URL:/^\/search\/(.*)\/hashtags$/.test(t)||/^\/search\/(.*)\/hashtags$/.test(t)?d.SEARCH_HASHTAGS_URL:/^\/search\/(.*)\/lives$/.test(t)?d.SEARCH_LIVES_URL:/^\/search\/(.*)\/videos$/.test(t)?d.SEARCH_VIDEOS_URL:d.SEARCH_TOP_RESULTS_URL;function k(t,e){const n={};return e&&"Collection"===e.__typename&&Object.assign(n,{playlist:e.xid}),h(d.WATCHING_URL,{xid:t},n)}const R=t=>t>1e6?~~(t/1e5)/10+"M":t>1e3?~~(t/100)/10+"K":String(t),O=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.map(R)},N=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"black",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{nofollow:!0,noopener:!0},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t)return null;const i=Object.entries(n).filter(t=>{let[,e]=t;return e}).map(t=>{let[e]=t;return e}).join(" ");return t.replace(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}[^.]\.[a-z]{2,6}\b([ÈÉèé\-a-zA-Z0-9@:%_,\+.~#?&\/=]*)/g,t=>{const n=t.match(/(http(s)?:\/\/.)/gi)?t:`http://${t}`,o=r&&n.match(f.pX)?i.replace(/nofollow ?/,""):i;return`<a href="${n}"${e?` style="color:${e};"`:""} target="_blank" rel="${o}" >${t}</a>`})};const L=()=>{window.history.pushState("",document.title,`${window.location.pathname}${window.location.search}`)},P=t=>{const e=""+t%60,n=`${Math.floor(t/60%60)}`,r=Math.floor(t/3600);return r?`${r}:${i()(n,2,"0")}:${i()(e,2,"0")}
2`:`${n}:${i()(e,2,"0")}`},U=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;document.getElementById(e)?n&&n():function(e,r,i){const o=e.getElementsByTagName(r)[0];if(e.getElementById(i))return;const a=e.createElement(r);a.id=i,a.src=t,a.onload=()=>{n&&n()};const{parentNode:s}=o;if(!s)throw new Error(`Couldn't load script ${t}, couldn't find the parent node`);s.insertBefore(a,o)}(document,"script",e)},D=t=>t?parseInt(t.substring(1),36):null;function M(){var t;return!!c.KJ&&(null!==(t=window.screen.orientation)&&void 0!==t&&t.type?window.screen.orientation.type.includes("landscape"):90===window.orientation||-90===window.orientation)}function H(t){return["application/javascript","application/x-javascript","text/javascript"].includes(t)}const B=t=>{return t?(t=>t?t.replace(u,"||br||").replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(l,"<br/>"):null)((e=t)?e.replace(/(<(?!br\s*\/?>)[^<>]*>)/gi,""):null):null;var e},F=t=>{const e=t.match(/https?:\/\/(?:www\.)?[^/]+\/([^/?]+)/);return e?e[1]:""},z=t=>t.replace(/^https?:\/\//,"").replace(/\/$/,""),V=(t,e)=>{const n=Math.abs(e.getTime()-t.getTime()),r=Math.round(n/864e5);return 0===r?new Date(t).setHours(0,0,0,0)===new Date(e).setHours(0,0,0,0)?0:1:r},j=t=>{const e=new Date,n=new Date(t),r=e.getTime()-n.getTime(),i=Math.round(r/1e3),o=Math.round(i/60),a=Math.round(o/60),s=Math.round(a/24),c=Math.round(s/7),u=Math.round(s/30),l=Math.round(s/365);return Math.abs(o)<60?{value:-(o||1),unit:"minute"}:Math.abs(a)<24?{value:-a,unit:"hour"}:Math.abs(s)<7?{value:-s,unit:"day"}:Math.abs(c)<8?{value:-c,unit:"week"}:Math.abs(u)<12?{value:-u,unit:"month"}:{value:-l,unit:"year"}},G=t=>0===t?{value:0,unit:"day"}:{value:-t,unit:"day"},K=t=>s.parseUrl(t).query,q=t=>t.toUpperCase().replace(/./g,t=>String.fromCodePoint(t.charCodeAt(0)+127397))},17400:(t,e,n)=>{var r=n(99374),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},17670:(t,e,n)=>{var r=n(12651);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},17929:(t,e,n)=>{"use strict";n.d(e,{zR:()=>A,TM:()=>k,yJ:()=>h,sC:()=>O,AO:()=>v,Fu:()=>m});var r=n(58168);function i(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}const a=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],a=e&&e.split("/")||[],s=t&&i(t),c=e&&i(e),u=s||c;if(t&&i(t)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var d=0,f=a.length;f>=0;f--){var p=a[f];"."===p?o(a,f):".."===p?(o(a,f),d++):d&&(o(a,f),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&i(a[0])||a.unshift("");var v=a.join("/");return n&&"/"!==v.substr(-1)&&(v+="/"),v};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}const c=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every(function(e,r){return t(e,n[r])});if("object"==typeof e||"object"==typeof n){var r=s(e),i=s(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every(function(r){return t(e[r],n[r])})}return!1};var u=n(11561);function l(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function f(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function p(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function v(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function h(t,e,n,i){var o;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t),o.state=e):(void 0===(o=(0,r.A)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invali
2d percent-encoding.'):t}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function m(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&c(t.state,e.state)}function _(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter(function(t){return t!==r})}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach(function(t){return t.apply(void 0,n)})}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function y(t,e){e(window.confirm(t))}var w="popstate",b="hashchange";function E(){try{return window.history.state||{}}catch(t){return{}}}function A(t){void 0===t&&(t={}),g||(0,u.A)(!1);var e,n=window.history,i=(-1===(e=window.navigator.userAgent).indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=t,s=a.forceRefresh,c=void 0!==s&&s,d=a.getUserConfirmation,m=void 0===d?y:d,A=a.keyLength,S=void 0===A?6:A,C=t.basename?p(l(t.basename)):"";function T(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return C&&(o=f(o,C)),h(o,r,n)}function x(){return Math.random().toString(36).substr(2,S)}var I=_();function k(t){(0,r.A)(z,t),z.length=n.length,I.notifyListeners(z.location,z.action)}function R(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||L(T(t.state))}function O(){L(T(E()))}var N=!1;function L(t){if(N)N=!1,k();else{I.confirmTransitionTo(t,"POP",m,function(e){e?k({action:"POP",location:t}):function(t){var e=z.location,n=U.indexOf(e.key);-1===n&&(n=0);var r=U.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(N=!0,M(i))}(t)})}}var P=T(E()),U=[P.key];function D(t){return C+v(t)}function M(t){n.go(t)}var H=0;function B(t){1===(H+=t)&&1===t?(window.addEventListener(w,R),o&&window.addEventListener(b,O)):0===H&&(window.removeEventListener(w,R),o&&window.removeEventListener(b,O))}var F=!1;var z={length:n.length,action:"POP",location:P,createHref:D,push:function(t,e){var r="PUSH",o=h(t,e,x(),z.location);I.confirmTransitionTo(o,r,m,function(t){if(t){var e=D(o),a=o.key,s=o.state;if(i)if(n.pushState({key:a,state:s},null,e),c)window.location.href=e;else{var u=U.indexOf(z.location.key),l=U.slice(0,u+1);l.push(o.key),U=l,k({action:r,location:o})}else window.location.href=e}})},replace:function(t,e){var r="REPLACE",o=h(t,e,x(),z.location);I.confirmTransitionTo(o,r,m,function(t){if(t){var e=D(o),a=o.key,s=o.state;if(i)if(n.replaceState({key:a,state:s},null,e),c)window.location.replace(e);else{var u=U.indexOf(z.location.key);-1!==u&&(U[u]=o.key),k({action:r,location:o})}else window.location.replace(e)}})},go:M,goBack:function(){M(-1)},goForward:function(){M(1)},block:function(t){void 0===t&&(t=!1);var e=I.setPrompt(t);return F||(B(1),F=!0),function(){return F&&(F=!1,B(-1)),e()}},listen:function(t){var e=I.appendListener(t);return B(1),function(){B(-1),e()}}};return z}var S="hashchange",C={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:l},slash:{encodePath:l,decodePath:l}};function T(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function x(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function I(t){window.location.replace(T(window.location.href)+"#"+t)}function k(t){void 0===t&&(t={}),g||(0,u.A)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),i=n.getUserConfirmation,o=void 0===i?y:i,a=n.hashType,s=void 0===a?"slash":a,c=t.basename?p(l(t.basename)):"",d=C[s],m=d.encodePath,w=d.decodePath;function b(){var t=w(x());return c&&(t=f(t,c)),h(t)}var E=_();function A(t){(0,r.A)(F,t),F.length=e.length,E.notifyListeners(F.location,F.action)}var k=!1,R=null;function O(){var t,e,n=x(),r=m(n);if(n!==r)I(r);else{var i=b(),a=F.location;if(!k&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(R===v(i))return;R=null,function(t){if(k)k=!1,A();else{var e="POP";E.confirmTransitionTo(t,e,o,function(n){n?A({action:e,location:t}):function(t){var e=F.location,n=U.lastIndexOf(v(e));-1===n&&(n=0);var r=U.lastIndexOf(v(t));-1===r&&(r=0);var i=n-r;i&&(k=!0,D(i))}(t)})}}(i)}}var N=x(),L=m(N);N!==L&&I(L);var P=b(),U=[v(P)];function D(t){e.go(t)}var M=0;function H(t){1===(M+=t)&&1===t?window.addEventListener(S,O):0===M&&window.removeEventListener(S,O)}var B=!1;var F={length:e.length,action:"POP",location:P,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=T(window.location.href)),n+"#"+m(c+v(t))},push:function(t,e){var n="PUSH",r=h(t,void 0,void 0,F.location);E.confirmTransitionTo(r,n,o,function(t){if(t){var e=v(r),i=m(c+e);if(x()!==i){R=e,function(t){window.location.hash=t}(i);var o=U.lastIndexOf(v(F.location)),a=U.slice(0,o+1);a.push(e),U=a,A({action:n,location:r})}else A()}})},replace:function(t,e){var n="REPLACE",r=h(t,void 0,void 0,F.location);E.confirmTransitionTo(r,n,o,function(t){if(t){var e=v(r),i=m(c+e);x()!==i&&(R=e,I(i));var o=U.indexOf(v(F.location));-1!==o&&(U[o]=e),A({action:n,location:r})}})},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(t){void 0===t&&(t=!1);var e=E.setPrompt(t);return B||(H(1),B=!0),function(){return B&&(B=!1,H(-1)),e()}},listen:function(t){var e=E.appendListener(t);return H(1),function(){H(-1),e()}}};return F}function R(t,e,n){return Math.min(Math.max(t,e),n)}function O(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,i=e.initialEntries,o=void 0===i?["/"]:i,a=e.initialIndex,s=void 0===a?0:a,c=e.keyLength,u=void 0===c?6:c,l=_();function d(t){(0,r.A)(w,t),w.length=w.entries.length,l.notifyListeners(w.location,w.action)}function f(){return Math.random().toString(36).substr(2,u)}var p=R(s,0,o.length-1),m=o.map(function(t){return h(t,void 0,"string"==typeof t?f():t.key||f())}),g=v;function y(t){var e=R(w.index+t,0,w.entries.length-1),r=w.entries[e];l.confirmTransitionTo(r,"POP",n,function(t){t?d({action:"POP",location:r,index:e}):d()})}var w={length:m.length,action:"POP",location:m[p],index:p,entries:m,createHref:g,push:function(t,e){var r="PUSH",i=h(t,e,f(),w.location);l.confirmTransitionTo(i,r,n,function(t){if(t){var e=w.index+1,n=w.entries.slice(0);n.length>e?n.splice(e,n.length-e,i):n.push(i),d({action:r,location:i,index:e,entries:n})}})},replace:function(t,e){var r="REPLACE",i=h(t,e,f(),w.location);l.confirmTransitionTo(i,r,n,function(t){t&&(w.entries[w.index]=i,d({action:r,location:i}))})},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(t){var e=w.index+t;return e>=0&&e<w.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return w}},18198:(t,e,n)=>{"use strict";n.d(e,{B0:()=>h,Cw:()=>w,FQ:()=>A,Kb:()=>m,Vj:()=>y,Wh:()=>_,lj:()=>g,s8:()=>E,xC:()=>b,y2:()=>v});var r=n(40073),i=n(11931),o=n(41918),a=n(18847),s=n(45940),c=n(16728),u=n(55319),l=n(99204),d=n(76534),f=n(81766),p=n(3739);async function v(t){let{canDisplayAds:e,device:n,coppa:i,additionalGlobalTargetings:c=[],iabCategories:l}=t;window.Hubvisor=window.Hubvisor||{},window.Hubvisor.cmd=window.Hubvisor.cmd||[];const d=await(0,s.d7)(),f=(0,o.K)()||i||!d?void 0:await async function(){const t=(0,a.g)(),e=(new TextEncoder).encode(t),n=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(n)).map(t=>t.toString(16).padStart(2,"0")).join("")}();window.Hubvisor.cmd.push(()=>{window.Hubvisor("dailymotion:new-page",{noad:!e,device:n,additionalGlobalTargetings:c,coppa:i,ccpa:u.A.load(r.Bw),...f?{ppid:f}:{},...l?{iab_cat:l}:{}})})}async function h(){return{fullscreen:await f.A.isFullscreen(),"gdpr-applies":(0,l.HH)("NEON_GDPR")}}function m(t,e,n){n?d.A.genericLoggingEvent({type:t,json_payload:e,screen:n}):console.error("Screen tracking object not set")}function _(){i.KJ&&(window.Hubvisor=window.Hubvisor||{},window.Hubvisor.cmd=window.Hubvisor.cmd||[],window.Hubvisor.cmd.push(()=>{window.Hubvisor("dailymotion:hubvisor-inventory:listen",p.A.onHubvisorInventoryEvent),window.Hubvisor("dailymotion:hubvisor-response:listen",p.A.onHubvisorResponseEvent),window.Hubvisor("dailymotion:hubvisor-viewability:listen",p.A.onHubvisorViewabilityEvent)}))}function g(){i.KJ&&(window.Hubvisor=window.Hubvisor||{},window.Hubvisor.cmd=window.Hubvisor.cmd||[],window.Hubvisor.cmd.push(()=>{window.Hubvisor("dailymotion:hubvisor-inventory:discard",p.A.onHubvisorInventoryEvent),window.Hubvisor("dailymotion:hubvisor-response:discard",p.A.onHubvisorResponseEvent),window.Hubvisor("dailymotion:hubvisor-viewability:discard",p.A.onHubvisorViewabilityEvent)}))}function y(t){window.Hubvisor=window.Hubvisor||{},window.Hubvisor.cmd=window.Hubvisor.cmd||[],window.Hubvisor.cmd.push(()=>{window.Hubvisor("dailymotion:hubvisor-viewability:listen",t)})}function w(t){window.Hubvisor=window.Hubvisor||{},window.Hubvisor.cmd=window.Hubvisor.cmd||[],window.Hubvisor.cmd.push(()=>{window.Hubvisor("dailymotion:hubvisor-viewability:discard",t)})}async function b(t){var e;let{currentVideo:n,geoipCountry:r,localeCountry:i}=t;const o=n.tags.edges.length?n.tags.edges.map(t=>t.node.label):[],a=[["Owner_Id",String((0,c.YF)(n.channel.xid))],["Video_xID",n.xid],["Owner_Type",n.channel.accountType],["GDPR_Flag",String((0,l.HH)("NEON_GDPR"))],["Country",r],["Display_Ads",String(n.canDisplayAds)],["Category",n.c
2ategory],["tags",o],["browser_language",(null==i?void 0:i.substring(0,2))||""],["content_language",(null===(e=n.language)||void 0===e?void 0:e.codeAlpha2)||""],["Content_Reviewed",n.moderation.reviewedAt||"-1"],["Content_Type","Live"===n.__typename?"LIVE":"VOD"]];let s;return s=n.duration?n.duration<=21?"XXS":n.duration<=90?"XS":n.duration<=300?"S":n.duration<=600?"M":n.duration<=1200?"L":n.duration<=2400?"XL":"XXL":"XXL",a.push(["Content_Dbucket2",s]),a}function E(t,e){var n;const{totalJSHeapSize:r,usedJSHeapSize:i}=(null===(n=window.performance)||void 0===n?void 0:n.memory)||{};r&&i&&d.A.trackMemoryUsage({totalJSHeapSize:r,usedJSHeapSize:i,refresh_count:t,screen:e})}function A(t){if(null!=t&&t.edges.length)return[{segtax:"6",ids:t.edges.map(t=>{var e;return null===(e=t.node.slug)||void 0===e?void 0:e.replace("iab-","")})}]}},18847:(t,e,n)=>{"use strict";n.d(e,{c:()=>c,g:()=>s});var r=n(68414),i=n(39589),o=n(55319),a=n(76534);function s(){return o.A.load(i.vs)}function c(){const t=(0,r.v4)();return o.A.saveAndRequest({name:i.vs,value:t,options:{maxAge:i.Z8,httpOnly:!1,path:"/"}}),a.A.dmaidCreated(t),t}},19179:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(50104);const i=n.n(r)()(function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").replace(/^.*\?/,"").split("&").reduce((t,e)=>{const[n,r]=e.split("="),i=decodeURIComponent(r);return{...t,[n]:""===i||i}},{})[t]},function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.join("~")})},19909:(t,e)=>{"use strict";e.q=function(t,e){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var r={},i=e||{},a=t.split(";"),s=i.decode||n,c=0;c<a.length;c++){var u=a[c],l=u.indexOf("=");if(!(l<0)){var d=u.substring(0,l).trim();if(null==r[d]){var f=u.substring(l+1,u.length).trim();'"'===f[0]&&(f=f.slice(1,-1)),r[d]=o(f,s)}}}return r},e.l=function(t,e,n){var o=n||{},a=o.encode||r;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!i.test(t))throw new TypeError("argument name is invalid");var s=a(e);if(s&&!i.test(s))throw new TypeError("argument val is invalid");var c=t+"="+s;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(u)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");c+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");c+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invali
2d");c+="; Expires="+o.expires.toUTCString()}o.httpOnly&&(c+="; HttpOnly");o.secure&&(c+="; Secure");if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var n=decodeURIComponent,r=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function o(t,e){try{return e(t)}catch(e){return t}}},21549:(t,e,n)=>{var r=n(22032),i=n(63862),o=n(66721),a=n(12749),s=n(35749);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},22032:(t,e,n)=>{var r=n(81042);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},22225:t=>{var e="\\ud800-\\udfff",n="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="["+o+"]",s="\\d+",c="["+n+"]",u="["+r+"]",l="[^"+e+o+s+n+r+i+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+i+"]",v="(?:"+u+"|"+l+")",h="(?:"+p+"|"+l+")",m="(?:['’](?:d|ll|m|re|s|t|ve))?",_="(?:['’](?:D|LL|M|RE|S|T|VE))?",g="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",y="[\\ufe0e\\ufe0f]?",w=y+g+("(?:\\u200d(?:"+["[^"+e+"]",d,f].join("|")+")"+y+g+")*"),b="(?:"+[c,d,f].join("|")+")"+w,E=RegExp([p+"?"+u+"+"+m+"(?="+[a,p,"$"].join("|")+")",h+"+"+_+"(?="+[a,p+v,"$"].join("|")+")",p+"?"+v+"+"+m,p+"+"+_,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",s,b].join("|"),"g");t.exports=function(t){return t.match(E)||[]}},22464:(t,e,n)=>{"use strict";n.d(e,{un:()=>i,wN:()=>r});const r=16,i=16},23190:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(84451),i=n(16572),o=n(43980);function a(t){let{name:e,json_payload:n,type:a,screen:s,...c}=t;const u={name:e||"app_log",version:"1.0",data:{created_ts:(new Date).getTime(),sequence_source:"tab",sequence_number:(0,i.A)(),type:a,screen:s,info:{app:r.A.getAppInfo(),landing:r.A.getLanding(),device:r.A.getDeviceInfo(),visitor:r.A.getVisitorInfo(),browser:r.A.getBrowserInfo(),player:r.A.getPlayerInfo()},...n?{json_payload:JSON.stringify(n)}:{},...c}},l=new XMLHttpRequest;l.open("POST",(0,o.A)(),!0),l.send(JSON.stringify({edward:"1.1",events:[u],sent_ts:(new Date).getTime()}))}},23805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},24280:t=>{"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)},24647:(t,e,n)=>{var r=n(54552)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});t.exports=r},24739:(t,e,n)=>{var r=n(26025);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},25080:t=>{t.exports={GPT_SCRIPT_URL:"https://securepubads.g.doubleclick.net/tag/js/gpt.js",HUBVISOR_LEO_API_KEY:"!2#Aou%QzrV23Rw3r8z@*2Xs9gQQd^j&",HUBVISOR_SCRIPT_URL:"https://cdn.hubvisor.io/wrapper/01EZWD1S0HKM48S35DDHP8C9C1/hubvisor.js",PLAYER_EMBED_XID:"xtv3w"}},25160:t=>{t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},25814:(t,e,n)=>{var r,i=n.g.crypto||n.g.msCrypto;if(i&&i.getRandomValues){var o=new Uint8Array(16);r=function(){return i.getRandomValues(o),o}}if(!r){var a=new Array(16);r=function(){for(var t,e=0;e<16;e++)3&e||(t=4294967296*Math.random()),a[e]=t>>>((3&e)<<3)&255;return a}}t.exports=r},26025:(t,e,n)=>{var r=n(75288);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},27179:function(t,e,n){"use strict";var r,i,o;i=[],r=function(){var t,e={},r="undefined"!=typeof window?window:n.g,i=r.document,o="localStorage",a="script";function s(){try{return o in r&&r[o]}catch(t){return!1}}if(e.disabled=!1,e.version="1.3.20",e.set=function(t,e){},e.get=function(t,e){},e.has=function(t){return void 0!==e.get(t)},e.remove=function(t){},e.clear=function(){},e.transact=function(t,n,r){null==r&&(r=n,n=null),null==n&&(n={});var i=e.get(t,n);r(i),e.set(t,i)},e.getAll=function(){},e.forEach=function(){},e.serialize=function(t){return JSON.stringify(t)},e.deserialize=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}},s())t=r[o],e.set=function(n,r){return void 0===r?e.remove(n):(t.setItem(n,e.serialize(r)),r)},e.get=function(n,r){var i=e.deserialize(t.getItem(n));return void 0===i?r:i},e.remove=function(e){t.removeItem(e)},e.clear=function(){t.clear()},e.getAll=function(){var t={};return e.forEach(function(e,n){t[e]=n}),t},e.forEach=function(n){for(var r=0;r<t.length;r++){var i=t.key(r);n(i,e.get(i))}};else if(i&&i.documentElement.addBehavior){var c,u;try{(u=new ActiveXObject("htmlfile")).open(),u.write("<"+a+">document.w=window</"+a+'><iframe src="/favicon.ico"></iframe>'),u.close(),c=u.w.frames[0].document,t=c.createElement("div")}catch(e){t=i.createElement("div"),c=i.body}var l=function(n){return function(){var r=Array.prototype.slice.call(arguments,0);r.unshift(t),c.appendChild(t),t.addBehavior("#default#userData"),t.load(o);var i=n.apply(e,r);return c.removeChild(t),i}},d=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),f=function(t){return t.replace(/^d/,"___$&").replace(d,"___")};e.set=l(function(t,n,r){return n=f(n),void 0===r?e.remove(n):(t.setAttribute(n,e.serialize(r)),t.save(o),r)}),e.get=l(function(t,n,r){n=f(n);var i=e.deserialize(t.getAttribute(n));return void 0===i?r:i}),e.remove=l(function(t,e){e=f(e),t.removeAttribute(e),t.save(o)}),e.clear=l(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(o);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(o)}),e.getAll=function(t){var n={};return e.forEach(function(t,e){n[t]=e}),n},e.forEach=l(function(t,n){for(var r,i=t.XMLDocument.documentElement.attributes,o=0;r=i[o];++o)n(r.name,e.deserialize(t.getAttribute(r.name)))})}try{var p="__storejs__";e.set(p,p),e.get(p)!=p&&(e.disabled=!0),e.remove(p)}catch(t){e.disabled=!0}return e.enabled=!e.disabled,e},void 0===(o="function"==typeof r?r.apply(e,i):r)||(t.exports=o)},28617:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>w,fx:()=>y,Pq:()=>g});var r=n(41918),i=n(76011),o=n(45940),a=n(99349),s=n(30105),c=n(99204),u=n(40073),l=n(39589),d=n(18847),f=n(16728),p=n(55319),v=n(84451),h=n(48780);async function m(t){let{canDisplayAds:e,device:n,coppa:i,additionalGlobalTargetings:a,iabCategories:s,currentVideo:l,trackingDataScreen:f}=t;window.dmAds=window.dmAds||{cmd:[],pid:h.nl};const m=await(0,o.d7)(),_=(0,r.K)()||i||!m?void 0:await async function(){const t=(0,d.g)(),e=(new TextEncoder).encode(t),n=await crypto.subtle.digest("SHA-256",e);return Array.from(new Uint8Array(n)).map(t=>t.toString(16).padStart(2,"0")).join("")}();window.dmAds.cmd.push(()=>{var t,o;const d=function(t,e){var n,r;const i=v.A.get();
2return{data:{browser:{ua_family:i.browser.ua_family},...null!=e&&e.xid?{view:{video_xid:null==e?void 0:e.xid}}:{},landing:{...i.landing},visitor:{...i.visitor},device:{...i.device},screen:{id:null==t?void 0:t.id,space:null==t?void 0:t.space,name:null==t?void 0:t.name,type:null==t?void 0:t.type,refresh_id:null==t?void 0:t.refresh_id},content:{id:null==e?void 0:e.xid,title:null==e?void 0:e.title,context:"video",len:null==e?void 0:e.duration,livestream:"Live"===(null==e?void 0:e.__typename),keywords:null==e||null===(n=e.tags)||void 0===n||null===(n=n.edges)||void 0===n?void 0:n.map(t=>t.node.label),language:null==e||null===(r=e.language)||void 0===r?void 0:r.codeAlpha2}}}}(f,l);window.dmAds.launch({targeting:a,...s?{iab_cat:s}:{},noad:!e,device:n,coppa:i,ccpa:p.A.load(u.Bw),..._?{ppid:_}:{},region:window.__COUNTRY__,hasGDPR:(0,c.HH)("NEON_GDPR"),hasMSPA:(0,r.K)(),hasInstream:!0,...d,rules:{allow_demand:{groupA:!(null==l||!l.isSuggestive),groupB:(null!==(t=null==l||null===(o=l.stats)||void 0===o||null===(o=o.views)||void 0===o?void 0:o.total)&&void 0!==t?t:0)>=10}}})})}var _=n(18198);function g(){return(0,s.G7)("neon_dmads_abtest_without_hubvisor")||(0,s.bc)("neon_dmads_abtest_without_hubvisor_ab","treatment")}function y(){return(0,c.HH)("NEON_DM_ADS")||(0,i.E8)()||g()}const w={displayOrRefreshAds:async function(t){let{canDisplayAds:e,trackingDataScreen:n,currentVideo:i,geoipCountry:u,localeCountry:d,device:v,birthday:h}=t,g={};i&&(g=await async function(t){var e;let{currentVideo:n,geoipCountry:r,localeCountry:i}=t;const a=n.tags.edges.length?n.tags.edges.map(t=>t.node.label):[],s=await(0,o.d7)(),u=(0,c.HH)("NEON_GDPR")&&s,d={Owner_Id:String((0,f.YF)(n.channel.xid)),Video_xID:n.xid,Owner_Type:n.channel.accountType,GDPR_Flag:String((0,c.HH)("NEON_GDPR")),NPA:String(u),GDPR_Consent:p.A.load(l.PJ)?String(p.A.load(l.PJ)):"",Country:r,Display_Ads:String(n.canDisplayAds),Category:n.category,tags:a,browser_language:(null==i?void 0:i.substring(0,2))||"",content_language:(null===(e=n.language)||void 0===e?void 0:e.codeAlpha2)||"",Content_Reviewed:n.moderation.reviewedAt||"-1",Content_Type:"Live"===n.__typename?"LIVE":"VOD"};let v;return v=n.duration?n.duration<=21?"XXS":n.duration<=90?"XS":n.duration<=300?"S":n.duration<=600?"M":n.duration<=1200?"L":n.duration<=2400?"XL":"XXL":"XXL",d.Content_Dbucket2=v,d}({geoipCountry:u,localeCountry:d,currentVideo:i}));const y=h?(0,a.QO)(h):void 0,w=i?i.isCreatedForKids:null,b=(0,r.R)({isCreatedForKids:w,userAge:y});if((0,s.G7)("neon_check_consent_before_calling_dmads")&&!await(0,o._z)())return;m({canDisplayAds:e,device:v,coppa:b,additionalGlobalTargetings:g,iabCategories:i?(0,_.FQ)(i.iab_categories):void 0,currentVideo:i,trackingDataScreen:n})},onAdViewable:function(t){function e(e){let{detail:n}=e;const{device:r,format:i,position:o}=n;t(`display_ads_${r}_${i}_${o}`)}return function(t){window.dmAds=window.dmAds||{cmd:[],pid:h.nl},document.addEventListener("dmAds:visible",t)}(e),()=>{!function(t){window.dmAds=window.dmAds||{cmd:[],pid:h.nl},document.removeEventListener("dmAds:visible",t)}(e)}}}},28754:(t,e,n)=>{var r=n(25160);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},30105:(t,e,n)=>{"use strict";n.d(e,{W:()=>w,OD:()=>v,kc:()=>p,NH:()=>_,fD:()=>m,ev:()=>h,bc:()=>y,G7:()=>g,fb:()=>A,ty:()=>E,i6:()=>b});const r=["neon_webapp_webtonative_custom_params"];var i=n(33647);let o=null,a=null,s={};const c=["true",!0,"1",1],u=t=>{if("function"==typeof t){const e=t("features");if("object"==typeof e)return Object.keys(e).reduce((t,n)=>{const r=e[n];return t[n]=c.includes(r),t},{})}return{}},l={neon_webapp_webtonative_custom_params:t=>["dev","alpha","beta","default"].includes(t)},d=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t instanceof Set?Array.from(t).reduce((t,e)=>(t[e]=!0,t),{}):{}},f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((t,e)=>(t[e]=!1,t),{})},p=()=>o||{},v=()=>{var t;return a?Object.fromEntries(null===(t=a)||void 0===t?void 0:t.entries()):{}},h=(t,e,n,r)=>{o={...d(n),...u(t),...(0,i.E)(e,"FF_"),...f(r)}},m=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];a=new Map([...t,...Object.keys(e).filter(t=>t.includes("EX_")).map(t=>[t.replace("EX_",""),e[t]])].filter(t=>{let[e]=t;return e&&!n.includes(e)}))},_=t=>{s=t&&s?function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce((e,n)=>{if(0===n.indexOf("CF_")){const o=n.substr(3);if(o&&null!=r&&r.includes(o)){var i;const r=t[n];null!==(i=l[o])&&void 0!==i&&i.call(l,r)&&(e[o]=r)}}return e},{})}(t):s};const g=t=>{if(!o)throw Error("Feature Flags not initialized");const e=o[t];return!0===e||1===e},y=(t,e)=>{if(!a)throw new Error("Experiments not initialized");return a.get(t)===e},w=t=>{var e;return null!==(e=s)&&void 0!==e&&e[t]?s[t]:null},b=t=>{const e=Object.keys(t).filter(e=>!0===t[e]);return new Set(e)},E=t=>new Map(Object.entries(t)),A=()=>g("neon_force_authentication")||g("neon_force_authentication_progressive_release")},30454:t=>{"use strict";var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function i(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],i(n),i(r))}function o(t){try{return decodeURIComponent(t)}catch(o){for(var e=t.match(n)||[],r=1;r<e.length;r++)e=(t=i(e,r).join("")).match(n)||[];return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(t);n;){try{e[n[0]]=decodeURIComponent(n[0])}catch(t){var i=o(n[0]);i!==n[0]&&(e[n[0]]=i)}n=r.exec(t)}e["%C2"]="�";for(var a=Object.keys(e),s=0;s<a.length;s++){var c=a[s];t=t.replace(new RegExp(c,"g"),e[c])}return t}(t)}}}
2,31175:(t,e,n)=>{var r=n(26025);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},31800:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},31863:(t,e,n)=>{var r=n(33943);t.exports=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(r(t).replace(/(.)/g,function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(e)}catch(t){return r(e)}}},33621:(t,e,n)=>{"use strict";var r=n(37787),i=n(55319),o=n(30105),a=n(11931);const s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.KJ?window.location.search.substring(1):"").split("&").reduce((t,e)=>{const[n,r]=e.split("=");return t[n]=r,t},{})};let c=!1;let u=!1;var l=n(92863),d=n(43777),f=n(39589),p=n(95943),v=n(85976),h=n(99204),m=n(55049),_=n(81766);var g,y=n(23190);if(n.p=window.__RUNTIME_CONFIG__.CDN_ENDPOINT_SSR,window.performance&&"function"==typeof window.performance.mark){window.performance.mark("client_script_start"),window.performance.measure("time_to_client_script_start","first_script_execution","client_script_start");const t=performance.getEntriesByName("time_to_client_script_start")[0];(0,y.A)({type:"neon_load",json_payload:{neon_time_to_client_script_start:null==t?void 0:t.duration},screen:window.__INITIAL_SCREEN_TRACKING_DATA__})}null!==(g=window.__GKS__)&&void 0!==g&&g.NEON_RUM_DATA_DOG&&r.L.init({applicationId:"cf7beb36-14d6-425f-afd8-cb4e762c2286",clientToken:"pub92488fe191bd12bf1d5e4f192fe60cb0",site:"datadoghq.eu",service:"neon-client-side-metrics",env:"prod",version:window.__BUILD_VERSION__,sessionSampleRate:1,sessionReplaySampleRate:0,trackUserInteractions:!0,actionNameAttribute:"time-to-player-load",trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask-user-input",allowedTracingUrls:[/https:\/\/.*\.dailymotion\.com/]}),Promise.resolve().then(async()=>{if(c)return;const t=(0,o.i6)(window.__FFS__||{}),e=(0,o.ty)(window.__EXS__||{});(0,o.ev)(i.A.load,s(),t),(0,o.fD)(e,s()),(0,o.NH)(s()),c=!0}).then(()=>new Promise(async t=>{const[,e=null]=window.location.pathname.match(/video\/([a-zA-Z0-9]+)/)||[];_.A.registerCallbacks({onPlaybackReady:()=>{if(e&&window.__APP_STYLES__){const t=document.createElement("link");t.rel="stylesheet",t.href=window.__APP_STYLES__,document.head.appendChild(t)}t()}},{recordEvents:!0});const n=document.getElementById("player_embed_script_placeholder"),r=document.getElementById("player-wrapper"),i=document.getElementById("watching-player-placeholder");if(e&&i&&r&&n){const n=(0,v.YQ)()&&"mobile"!==window.__DEVICE_TYPE__;(0,l.A)(r,i,n);const s=await _.A.init();if(a.KJ&&(0,h.HH)("NEON_GDPR")&&void 0===(0,p.Q2)())return t();if(a.KJ&&(0,o.fb)()){if(!await async function(){return await(0,m.gf)(f.kV,!1)}())return t()}const c=s||e;return _.A.load({videoXid:c,playerTrackingData:(0,d.xB)(c),customConfig:(0,d.pW)(),isPreloadedFromPES:(0,o.G7)("neon_player_video_xid")}),void(window.initialPlayerReadyXid=c)}if(!n)throw new Error("No player element found");return await _.A.init(),t()})).then(()=>u?Promise.resolve():(u=!0,Promise.all([n.e(223),n.e(831),n.e(3)]).then(n.bind(n,10239)))).then(()=>{window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("app_script_load_start")})},33647:(t,e,n)=>{"use strict";n.d(e,{E:()=>i});const r=["true",!0,"1",1];function i(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return Object.keys(t).reduce((n,i)=>{if(i.startsWith(e)){const o=i.substring(e.length),a=t[i];n[o]=r.includes(a)}return n},{})}},33943:t=>{function e(t){this.message=t}e.prototype=new Error,e.prototype.name="InvalidCharacterError",t.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=n.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=".indexOf(i);return s}},34834:(t,e,n)=>{const{listCountries:r}=n(93377);function i(t){const e=t.split("/")[1];return 2===e.length?e:null}function o(t){return r.some(e=>e===t.toUpperCase())}function a(t){const e=i(t);return"string"==typeof e&&!o(e)}t.exports={extractXidFromUrl:function(t){const e=t.match(/^\/video\/(x[a-z0-9]{6})/);return e?e[1]:null},isWatchingPage:function(t){return/^\/video\/.*/.test(t)},isWatchingPageWithSlug:function(t){return/^\/video\/x[a-z0-9]+_/.test(t)},isResetPasswordPage:function(t){return t.includes("/password/reset")},isLegalConsentPage:function(t){return t.includes("/legal/consent")},removeSlugFromWatchingPageUrl:function(t){const e=t.match(/^\/video\/(x[a-z0-9]+)_/);if(e){const n=e[1],r=t.indexOf("?");return`/video/${n}${-1!==r?t.substring(r):""}`}return t},isSearchPage:function(t){return/^\/search\//.test(t)},isExploreUrl:function(t){return/^\/[a-z]{2}[/]{0,1}$/.test(t)&&!a(t)},getCountryCodeFromUrlPathname:i,isCountryValid:o,urlPathnameContainsInvalidCountryCode:a}},34840:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},34932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},35183:(t,e,n)=>{"use strict";n.d(e,{Gr:()=>s,Kf:()=>d,Nm:()=>f,fQ:()=>u,gM:()=>c,i7:()=>a,oK:()=>l,wB:()=>h});var r=n(27179),i=n.n(r),o=n(23190);const a="STORE_VISIT",s="had_ad_blocked",c="dailymotion_recent_search",u="followedXid";function l(t){return i().get(t)}function d(t,e){return i().set(t,e)}function f(t){i().remove(t)}const p=[s,c,a,"__storejs__",u,"stlast","inlined_view_id","dmp_currenttime","dmp_subtitles","dmp_quality","dmp_volume","dmp_volume_all","_sp_local_state","_sp_non_keyed_local_state","_sp_user_consent_34227","dmp_max_quality","dmp_keyboard_shortcuts","dmp_volume_all"],v=new RegExp("^rc::");function h(t){function e(e){!e||p.includes(e)||v.test(e)||(0,o.A)({type:"neon_log",json_payload:{uncompliant_localstorage:e},screen:t})}Object.keys(localStorage).forEach(t=>{e(t)}),window.addEventListener("storage",t=>{e(t.key||"")})}},35302:(t,e,n)=>{var r=n(64634);t.exports=h,t.exports.parse=o,t.exports.compile=function(t,e){return u(o(t,e),e)},t.exports.tokensToFunction=u,t.exports.tokensToRegExp=v;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,s=0,c="",u=e&&e.delimiter||"/";null!=(n=i.exec(t));){var l=n[0],f=n[1],p=n.index;if(c+=t.slice(s,p),s=p+l.length,f)c+=f[1];else{var v=t[s],h=n[2],m=n[3],_=n[4],g=n[5],y=n[6],w=n[7];c&&(r.push(c),c="");var b=null!=h&&null!=v&&v!==h,E="+"===y||"*"===y,A="?"===y||"*"===y,S=h||u,C=_||g,T=h||("string"==typeof r[r.length-1]?r[r.length-1]:"");r.push({name:m||o++,prefix:h||"",delimiter:S,optional:A,repeat:E,partial:b,asterisk:!!w,pattern:C?d(C):w?".*":a(S,T)})}}return s<t.length&&(c+=t.substr(s)),c&&r.push(c),r}function a(t,e){return!e||e.indexOf(t)>-1?"[^"+l(t)+"]+?":l(e)+"|(?:(?!"+l(e)+")[^"+l(t)+"])+?"}function s(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function c(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function u(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"==typeof t[i]&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",p(e)));return function(e,i){for(var o="",a=e||{},u=(i||{}).pretty?s:encodeURIComponent,l=0;l<t.length;l++){var d=t[l];if("string"!=typeof d){var f,p=a[d.name];if(null==p){if(d.optional){d.partial&&(o+=d.prefix);continue}throw new TypeError('Expected "'+d.name+'" to be defined')}if(r(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var v=0;v<p.length;v++){if(f=u(p[v]),!n[l].test(f))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===v?d.prefix:d.delimiter)+f}}else{if(f=d.asterisk?c(p):u(p),!n[l].test(f))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+f+'"');o+=d.prefix+f}}else o+=d}return o}}function l(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function d(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function f(t,e){return t.keys=e,t}function p(t){return t&&t.sensitive?"":"i"}function v(t,e,n){r(e)||(n=e||n,e=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<t.length;s++){var c=t[s];if("string"==typeof c)a+=l(c);else{var u=l(c.prefix),d="(?:"+c.pattern+")";e.push(c),c.repeat&&(d+="(?:"+u+d+")*"),a+=d=c.optional?c.partial?u+"("+d+")?":"(?:"+u+"("+d+"))?":u+"("+d+")"}}var v=l(n.delimiter||"/"),h=a.slice(-v.length)===v;
2return i||(a=(h?a.slice(0,-v.length):a)+"(?:"+v+"(?=$))?"),a+=o?"$":i&&h?"":"(?="+v+"|$)",f(new RegExp("^"+a,p(n)),e)}function h(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(h(t[i],e,n).source);return f(new RegExp("(?:"+r.join("|")+")",p(n)),e)}(t,e,n):function(t,e,n){return v(o(t,n),e,n)}(t,e,n)}},35749:(t,e,n)=>{var r=n(81042);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},36905:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(11931);const i=()=>r.KJ?window.__DEVICE_TYPE__:null},37787:(t,e,n)=>{"use strict";n.d(e,{L:()=>Os});var r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},i=console,o={};Object.keys(r).forEach(function(t){o[t]=i[t]});var a="Datadog Browser SDK:",s={debug:o.debug.bind(i,a),log:o.log.bind(i,a),info:o.info.bind(i,a),warn:o.warn.bind(i,a),error:o.error.bind(i,a)};function c(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return t.apply(void 0,n)}catch(t){s.error(e,t)}}}var u,l=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},d=!1;function f(t){d=t}function p(t){return function(){return v(t,this,arguments)}}function v(t,e,n){try{return t.apply(e,n)}catch(t){if(h(t),u)try{u(t)}catch(t){h(t)}}}function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];d&&s.error.apply(s,l(["[MONITOR]"],t,!1))}function m(t,e){return-1!==t.indexOf(e)}function _(t){if(Array.from)return Array.from(t);var e=[];if(t instanceof Set)t.forEach(function(t){return e.push(t)});else for(var n=0;n<t.length;n++)e.push(t[n]);return e}function g(t,e){for(var n=0;n<t.length;n+=1){var r=t[n];if(e(r,n))return r}}function y(t){return Object.keys(t).map(function(e){return t[e]})}function w(t){return Object.keys(t).map(function(e){return[e,t[e]]})}function b(t,e){return t.slice(0,e.length)===e}function E(t){return window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":"".concat(t.slice(0,-1),"\\").concat(t.charCodeAt(t.length-1).toString(16)," "):"\\".concat(t)})}function A(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.forEach(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function S(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var t=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof t&&(t="object"==typeof self?self:"object"==typeof window?window:{}),t}var C=1024,T=/[^\u0000-\u007F]/;function x(t){return T.test(t)?void 0!==window.TextEncoder?(new TextEncoder).encode(t).length:new Blob([t]).size:t.length}function I(t,e){var n,r=S();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=t[r.Zone.__symbol__(e)]),n||(n=t[e]),n}function k(t,e){return I(S(),"setTimeout")(p(t),e)}function R(t){I(S(),"clearTimeout")(t)}function O(t,e){return I(S(),"setInterval")(p(t),e)}function N(t){I(S(),"clearInterval")(t)}function L(t,e,n){var r,i,o=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];s?r=n:(o?t.apply(void 0,n):r=n,s=!0,i=k(function(){a&&r&&t.apply(void 0,r),s=!1,r=void 0},e))},cancel:function(){R(i),s=!1,r=void 0}}}function P(){}function U(t,e,n){if("object"!=typeof t||null===t)return JSON.stringify(t);var r=D(Object.prototype),i=D(Array.prototype),o=D(Object.getPrototypeOf(t)),a=D(t);try{return JSON.stringify(t,e,n)}catch(t){return"<error: unable to serialize object>"}finally{r(),i(),o(),a()}}function D(t){var e=t,n=e.toJSON;return n?(delete e.toJSON,function(){e.toJSON=n}):P}function M(t){return A({},t)}function H(t,e){return Object.keys(t).some(function(n){return t[n]===e})}function B(t){return 0===Object.keys(t).length}function F(t){void 0===t&&(t=2);var e=new Map,n=!1;function r(r){if(void 0===r&&(r=0),!n&&0!==t){var i=2===t?3072:16384,o=r;e.forEach(function(t){o+=t.getBytesCount()}),o>i&&(!function(t){s.warn("Customer data exceeds the recommended ".concat(t/C,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning"))}(i),n=!0)}}return{createDetachedTracker:function(){var t=z(function(){return r(t.getBytesCount())});return t},getOrCreateTracker:function(t){return e.has(t)||e.set(t,z(r)),e.get(t)},setCompressionStatus:function(e){0===t&&(t=e,r())},getCompressionStatus:function(){return t},stop:function(){e.forEach(function(t){return t.stop()}),e.clear()}}}function z(t){var e=0,n=L(function(n){e=x(U(n)),t()},200),r=n.throttled,i=n.cancel,o=function(){i(),e=0};return{updateCustomerData:function(t){B(t)?o():r(t)},resetCustomerData:o,getBytesCount:function(){return e},stop:function(){i()}}}function V(t){return null===t?"null":Array.isArray(t)?"array":typeof t}function j(t,e,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var t=new WeakSet;return{hasAlreadyBeenSeen:function(e){var n=t.has(e);return n||t.add(e),n}}}var e=[];return{hasAlreadyBeenSeen:function(t){var n=e.indexOf(t)>=0;return n||e.push(t),n}}}()),void 0===e)return t;if("object"!=typeof e||null===e)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){var r=e.flags||[e.global?"g":"",e.ignoreCase?"i":"",e.multiline?"m":"",e.sticky?"y":"",e.unicode?"u":""].join("");return new RegExp(e.source,r)}if(!n.hasAlreadyBeenSeen(e)){if(Array.isArray(e)){for(var i=Array.isArray(t)?t:[],o=0;o<e.length;++o)i[o]=j(i[o],e[o],n);return i}var a="object"===V(t)?t:{};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(a[s]=j(a[s],e[s],n));return a}}function G(t){return j(void 0,t)}function K(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];null!=o&&(t=j(t,o))}return t}function q(t,e){var n;void 0===e&&(e=225280);var r=D(Object.prototype),i=D(Array.prototype),o=[],a=new WeakMap,s=$(t,"$",void 0,o,a),c=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(!(c>e)){for(;o.length>0&&c<e;){var u=o.shift(),l=0;
2if(Array.isArray(u.source))for(var d=0;d<u.source.length;d++){if(c+=void 0!==(f=$(u.source[d],u.path,d,o,a))?JSON.stringify(f).length:4,c+=l,l=1,c>e){W(e,"truncated",t);break}u.target[d]=f}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var f;if(void 0!==(f=$(u.source[d],u.path,d,o,a))&&(c+=JSON.stringify(f).length+l+d.length+3,l=1),c>e){W(e,"truncated",t);break}u.target[d]=f}}return r(),i(),s}W(e,"discarded",t)}function $(t,e,n,r,i){var o=function(t){var e=t;if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(t){}return t}(t);if(!o||"object"!=typeof o)return function(t){if("bigint"==typeof t)return"[BigInt] ".concat(t.toString());if("function"==typeof t)return"[Function] ".concat(t.name||"unknown");if("symbol"==typeof t)return"[Symbol] ".concat(t.description||t.toString());return t}(o);var a=function(t){try{if(t instanceof Event)return{isTrusted:t.isTrusted};var e=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(e&&e[1])return"[".concat(e[1],"]")}catch(t){}return"[Unserializable]"}(o);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;var s=t;if(i.has(s))return"[Reference seen at ".concat(i.get(s),"]");var c=void 0!==n?"".concat(e,".").concat(n):e,u=Array.isArray(o)?[]:{};return i.set(s,c),r.push({source:o,target:u,path:c}),u}function W(t,e,n){s.warn("The data provided has been ".concat(e," as it is over the limit of ").concat(t," characters:"),n)}var Z,Y=function(){function t(t){this.onFirstSubscribe=t,this.observers=[]}return t.prototype.subscribe=function(t){var e=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0),this.observers.push(t),{unsubscribe:function(){e.observers=e.observers.filter(function(e){return t!==e}),!e.observers.length&&e.onLastUnsubscribe&&e.onLastUnsubscribe()}}},t.prototype.notify=function(t){this.observers.forEach(function(e){return e(t)})},t}();function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new Y(function(e){var n=t.map(function(t){return t.subscribe(function(t){return e.notify(t)})});return function(){return n.forEach(function(t){return t.unsubscribe()})}})}function J(t){var e={},n=new Y,r={getContext:function(){return G(e)},setContext:function(i){"object"===V(i)?(e=q(i),t.updateCustomerData(e)):r.clearContext(),n.notify()},setContextProperty:function(r,i){e[r]=q(i),t.updateCustomerData(e),n.notify()},removeContextProperty:function(r){delete e[r],t.updateCustomerData(e),n.notify()},clearContext:function(){e={},t.resetCustomerData(),n.notify()},changeObservable:n};return r}!function(t){t.PAGEHIDE="pagehide",t.FEATURE_FLAGS="feature_flags",t.RESOURCE_PAGE_STATES="resource_page_states",t.COLLECT_FLUSH_REASON="collect_flush_reason",t.ZERO_LCP_TELEMETRY="zero_lcp_telemetry",t.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css",t.WRITABLE_RESOURCE_GRAPHQL="writable_resource_graphql",t.TRACKING_CONSENT="tracking_consent",t.CUSTOM_VITALS="custom_vitals"}(Z||(Z={}));var Q=new Set;function tt(t){return Q.has(t)}function et(){return Q}var nt={GRANTED:"granted",NOT_GRANTED:"not-granted"};function rt(t){return 0!==t&&100*Math.random()<=t}function it(t,e){return+t.toFixed(e)}function ot(t){return at(t)&&t>=0&&t<=100}function at(t){return"number"==typeof t}var st,ct,ut=1e3,lt=6e4;function dt(t){return{relative:t,timeStamp:pt(t)}}function ft(t){return{relative:Et(t),timeStamp:t}}function pt(t){var e=ht()-performance.now();return e>At()?Math.round(bt(e,t)):function(t){return Math.round(bt(At(),t))}(t)}function vt(t){return at(t)?it(1e6*t,0):t}function ht(){return(new Date).getTime()}function mt(){return ht()}function _t(){return performance.now()}function gt(){return{relative:_t(),timeStamp:mt()}}function yt(){return{relative:0,timeStamp:At()}}function wt(t,e){return e-t}function bt(t,e){return t+e}function Et(t){return t-At()}function At(){return void 0===st&&(st=performance.timing.navigationStart),st}function St(t,e,n,r,i){return Ct(t,e,[n],r,i)}function Ct(t,e,n,r,i){var o=void 0===i?{}:i,a=o.once,s=o.capture,c=o.passive,u=p(function(e){(e.isTrusted||e.__ddIsTrusted||t.allowUntrustedEvents)&&(a&&f(),r(e))}),l=c?{capture:s,passive:c}:s,d=I(e,"addEventListener");function f(){var t=I(e,"removeEventListener");
2n.forEach(function(n){return t.call(e,n,u,l)})}return n.forEach(function(t){return d.call(e,t,u,l)}),{stop:f}}!function(t){t.BEFORE_UNLOAD="beforeunload",t.CLICK="click",t.DBL_CLICK="dblclick",t.KEY_DOWN="keydown",t.LOAD="load",t.POP_STATE="popstate",t.SCROLL="scroll",t.TOUCH_START="touchstart",t.TOUCH_END="touchend",t.TOUCH_MOVE="touchmove",t.VISIBILITY_CHANGE="visibilitychange",t.PAGE_SHOW="pageshow",t.FREEZE="freeze",t.RESUME="resume",t.DOM_CONTENT_LOADED="DOMContentLoaded",t.POINTER_DOWN="pointerdown",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.HASH_CHANGE="hashchange",t.PAGE_HIDE="pagehide",t.MOUSE_DOWN="mousedown",t.MOUSE_UP="mouseup",t.MOUSE_MOVE="mousemove",t.FOCUS="focus",t.BLUR="blur",t.CONTEXT_MENU="contextmenu",t.RESIZE="resize",t.CHANGE="change",t.INPUT="input",t.PLAY="play",t.PAUSE="pause",t.SECURITY_POLICY_VIOLATION="securitypolicyviolation",t.SELECTION_CHANGE="selectionchange",t.STORAGE="storage"}(ct||(ct={}));var Tt="_dd_c",xt=[];function It(t,e,n,r){var i=function(t,e){return"".concat(Tt,"_").concat(t,"_").concat(e)}(n,r);function o(){var t=localStorage.getItem(i);return null!==t?JSON.parse(t):{}}xt.push(St(t,window,ct.STORAGE,function(t){var n=t.key;i===n&&e.setContext(o())})),e.changeObservable.subscribe(function(){localStorage.setItem(i,JSON.stringify(e.getContext()))}),e.setContext(K(o(),e.getContext()))}function kt(){var t="",e=0;return{isAsync:!1,get isEmpty(){return!t},write:function(n,r){var i=x(n);e+=i,t+=n,r&&r(i)},finish:function(t){t(this.finishSync())},finishSync:function(){var n={output:t,outputBytesCount:e,rawBytesCount:e,pendingData:""};return t="",e=0,n},estimateEncodedBytesCount:function(t){return t.length}}}var Rt="?";function Ot(t){var e=[],n=Ft(t,"stack"),r=String(t);return n&&b(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach(function(t){var n=function(t){var e=Pt.exec(t);if(!e)return;var n=e[2]&&0===e[2].indexOf("native"),r=e[2]&&0===e[2].indexOf("eval"),i=Ut.exec(e[2]);r&&i&&(e[2]=i[1],e[3]=i[2],e[4]=i[3]);return{args:n?[e[2]]:[],column:e[4]?+e[4]:void 0,func:e[1]||Rt,line:e[3]?+e[3]:void 0,url:n?void 0:e[2]}}(t)||function(t){var e=Dt.exec(t);if(!e)return;return{args:[],column:e[3]?+e[3]:void 0,func:Rt,line:e[2]?+e[2]:void 0,url:e[1]}}(t)||function(t){var e=Mt.exec(t);if(!e)return;return{args:[],column:e[4]?+e[4]:void 0,func:e[1]||Rt,line:+e[3],url:e[2]}}(t)||function(t){var e=Ht.exec(t);if(!e)return;var n=e[3]&&e[3].indexOf(" > eval")>-1,r=Bt.exec(e[3]);n&&r&&(e[3]=r[1],e[4]=r[2],e[5]=void 0);return{args:e[2]?e[2].split(","):[],column:e[5]?+e[5]:void 0,func:e[1]||Rt,line:e[4]?+e[4]:void 0,url:e[3]}}(t);n&&(!n.func&&n.line&&(n.func=Rt),e.push(n))}),{message:Ft(t,"message"),name:Ft(t,"name"),stack:e}}var Nt="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",Lt="(?::(\\d+))",Pt=new RegExp("^\\s*at (.*?) ?\\(".concat(Nt).concat(Lt,"?").concat(Lt,"?\\)?\\s*$"),"i"),Ut=new RegExp("\\((\\S*)".concat(Lt).concat(Lt,"\\)"));var Dt=new RegExp("^\\s*at ?".concat(Nt).concat(Lt,"?").concat(Lt,"??\\s*$"),"i");var Mt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;var Ht=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,Bt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Ft(t,e){if("object"==typeof t&&t&&e in t){var n=t[e];return"string"==typeof n?n:void 0}}function zt(t,e,n,r){var i=[{url:e,column:r,line:n}],o=function(t){var e,n,r;"[object String]"==={}.toString.call(t)&&(n=(e=Vt.exec(t))[1],r=e[2]);return{name:n,message:r}}(t);return{name:o.name,message:o.message,stack:i}}var Vt=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;var jt="No stack, consider using an instance of Error";function Gt(t){var e=t.stackTrace,n=t.originalError,r=t.handlingStack,i=t.startClocks,o=t.nonErrorPrefix,a=t.source,s=t.handling,c=n instanceof Error,u=function(t,e,n,r){return(null==t?void 0:t.message)&&(null==t?void 0:t.name)?t.message:e?"Empty message":"".concat(n," ").concat(U(q(r)))}(e,c,o,n),l=function(t,e){if(void 0===e)return!1;if(t)return!0;return e.stack.length>0&&(e.stack.length>1||void 0!==e.stack[0].url)}(c,e)?qt(e):jt,d=c?Zt(n,a):void 0;return{startClocks:i,source:a,handling:s,handlingStack:r,originalError:n,type:null==e?void 0:e.name,message:u,stack:l,causes:d,fingerprint:Kt(n)}}function Kt(t){return t instanceof Error&&"dd_fingerprint"in t?String(t.dd_fingerprint):void 0}function qt(t){var e=$t(t);return t.stack.forEach(function(t){var n="?"===t.func?"<anonymous>":t.func,r=t.args&&t.args.length>0?"(".concat(t.args.join(", "),")"):"",i=t.line?":".concat(t.line):"",o=t.line&&t.column?":".concat(t.column):"";e+="\n  at ".concat(n).concat(r," @ ").concat(t.url).concat(i).c
2oncat(o)}),e}function $t(t){return"".concat(t.name||"Error",": ").concat(t.message)}function Wt(){var t,e=new Error;if(!e.stack)try{throw e}catch(t){}return v(function(){var n=Ot(e);n.stack=n.stack.slice(2),t=qt(n)}),t}function Zt(t,e){for(var n=t,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var i=Ot(n.cause);r.push({message:n.cause.message,source:e,type:null==i?void 0:i.name,stack:i&&qt(i)}),n=n.cause}return r.length?r:void 0}function Yt(t){var e=A({},t);return["id","name","email"].forEach(function(t){t in e&&(e[t]=String(e[t]))}),e}function Xt(t,e){e.silentMultipleInit||s.error("".concat(t," is already initialized."))}function Jt(t,e){var n=t.indexOf(e);n>=0&&t.splice(n,1)}var Qt=function(){function t(){this.buffer=[]}return t.prototype.add=function(t){this.buffer.push(t)>500&&this.buffer.splice(0,1)},t.prototype.remove=function(t){Jt(this.buffer,t)},t.prototype.drain=function(t){this.buffer.forEach(function(e){return e(t)}),this.buffer.length=0},t}();function te(){var t=S().DatadogEventBridge;if(t)return{getAllowedWebViewHosts:function(){return JSON.parse(t.getAllowedWebViewHosts())},send:function(e,n){t.send(JSON.stringify({eventType:e,event:n}))}}}function ee(t){var e;void 0===t&&(t=null===(e=S().location)||void 0===e?void 0:e.hostname);var n=te();return!!n&&n.getAllowedWebViewHosts().some(function(e){return t===e||(n=t,r=".".concat(e),n.slice(-r.length)===r);var n,r})}function ne(t){return t?(parseInt(t,10)^16*Math.random()>>parseInt(t,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,ne)}var re,ie,oe=/([\w-]+)\s*=\s*([^;]+)/g;function ae(t,e){for(oe.lastIndex=0;;){var n=oe.exec(t);if(!n)break;if(n[1]===e)return n[2]}}function se(t,e,n){void 0===n&&(n="");var r=t.charCodeAt(e-1),i=r>=55296&&r<=56319?e+1:e;return t.length<=i?t:"".concat(t.slice(0,i)).concat(n)}function ce(t,e,n,r){var i=new Date;i.setTime(i.getTime()+n);var o="expires=".concat(i.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"",u=r&&r.partitioned?";partitioned":"";document.cookie="".concat(t,"=").concat(e,";").concat(o,";path=/;samesite=").concat(a).concat(s).concat(c).concat(u)}function ue(t){return ae(document.cookie,t)}function le(t){return re||(re=function(t){var e=new Map;for(oe.lastIndex=0;;){var n=oe.exec(t);if(!n)break;e.set(n[1],n[2])}return e}(document.cookie)),re.get(t)}function de(t,e){ce(t,"",0,e)}function fe(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||le("datadog-synthetics-injects-rum"))}var pe,ve=144e5,he=9e5;function me(){return null!=pe?pe:pe=function(t){var e;void 0===t&&(t=window);var n=t.navigator.userAgent;if(t.chrome||/HeadlessChrome/.test(n))return 1;if(0===(null===(e=t.navigator.vendor)||void 0===e?void 0:e.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n))return 2;if(t.document.documentMode)return 0;return 3}()}var _e="_dd_s",ge=/^([a-z]+)=([a-z0-9-]+)$/,ye="&";function we(t){return B(t)}function be(t){t.expire=String(ht()+he)}function Ee(t){return w(t).map(function(t){var e=t[0],n=t[1];return"".concat(e,"=").concat(n)}).join("&")}function Ae(t){var e={};return function(t){return!!t&&(-1!==t.indexOf(ye)||ge.test(t))}(t)&&t.split(ye).forEach(function(t){var n=ge.exec(t);if(null!==n){var r=n[1],i=n[2];e[r]=i}}),e}function Se(t){var e=function(t){var e={};e.secure=!!t.useSecureSessionCookie||!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.crossSite=!!t.usePartitionedCrossSiteSessionCookie||!!t.useCrossSiteSessionCookie,e.partitioned=!!t.usePartitionedCrossSiteSessionCookie,t.trackSessionAcrossSubdomains&&(e.domain=function(){if(void 0===ie){for(var t="dd_site_test_".concat(ne()),e=window.location.hostname.split("."),n=e.pop();e.length&&!ue(t);)n="".concat(e.pop(),".").concat(n),ce(t,"test",ut,{domain:n});de(t,{domain:n}),ie=n}return ie}());return e}(t);return function(t){if(void 0===document.cookie||null===document.cookie)return!1;try{var e="dd_cookie_test_".concat(ne()),n="test";ce(e,n,lt,t);var r=ue(e)===n;return de(e,t),r}catch(t){return s.error(t),!1}}
2(e)?{type:"Cookie",cookieOptions:e}:void 0}function Ce(t){var e,n={isLockEnabled:1===me(),persistSession:(e=t,function(t){ce(_e,Ee(t),he,e)}),retrieveSession:Te,clearSession:xe(t)};return function(t){if(!le(_e)){var e=le("_dd"),n=le("_dd_r"),r=le("_dd_l"),i={};e&&(i.id=e),r&&/^[01]$/.test(r)&&(i.logs=r),n&&/^[012]$/.test(n)&&(i.rum=n),we(i)||(be(i),t.persistSession(i))}}(n),n}function Te(){return Ae(ue(_e))}function xe(t){return function(){de(_e,t)}}function Ie(t){localStorage.setItem(_e,Ee(t))}function ke(){return Ae(localStorage.getItem(_e))}function Re(){localStorage.removeItem(_e)}var Oe,Ne=[];function Le(t,e,n){var r;void 0===n&&(n=0);var i=e.isLockEnabled,o=e.retrieveSession,a=e.persistSession,s=e.clearSession;if(Oe||(Oe=t),t===Oe)if(i&&n>=100)Ue(e);else{var c,u=o();if(i){if(u.lock)return void Pe(t,e,n);if(c=ne(),u.lock=c,a(u),(u=o()).lock!==c)return void Pe(t,e,n)}var l=t.process(u);if(i&&(u=o()).lock!==c)Pe(t,e,n);else{if(l&&(we(l)?s():(be(l),a(l))),i&&(!l||!we(l))){if((u=o()).lock!==c)return void Pe(t,e,n);delete u.lock,a(u),l=u}null===(r=t.after)||void 0===r||r.call(t,l||u),Ue(e)}}else Ne.push(t)}function Pe(t,e,n){k(function(){Le(t,e,n+1)},10)}function Ue(t){Oe=void 0;var e=Ne.shift();e&&Le(e,t)}var De=ut;function Me(t){var e=Se(t);return!e&&t.allowFallbackToLocalStorage&&(e=function(){try{var t=ne(),e="".concat("_dd_test_").concat(t);localStorage.setItem(e,t);var n=localStorage.getItem(e);return localStorage.removeItem(e),t===n?{type:"LocalStorage"}:void 0}catch(t){return}}()),e}function He(t,e,n){var r=new Y,i=new Y,o="Cookie"===t.type?Ce(t.cookieOptions):{isLockEnabled:!1,persistSession:Ie,retrieveSession:ke,clearSession:Re},a=o.clearSession,s=o.retrieveSession,c=O(function(){Le({process:function(t){return f(t)?void 0:{}},after:l},o)},De),u=function(){var t=s();if(f(t))return t;return{}}();function l(t){return f(t)||(t={}),d()&&(!function(t){return u.id!==t.id||u[e]!==t[e]}(t)?u=t:(u={},i.notify())),t}function d(){return void 0!==u[e]}function f(t){return(void 0===t.created||ht()-Number(t.created)<ve)&&(void 0===t.expire||ht()<Number(t.expire))}return{expandOrRenewSession:L(function(){var t;Le({process:function(r){var i=l(r);return t=function(t){var r=n(t[e]),i=r.trackingType,o=r.isTracked;t[e]=i,o&&!t.id&&(t.id=ne(),t.created=String(ht()));return o}(i),i},after:function(e){t&&!d()&&function(t){u=t,r.notify()}(e),u=e}},o)},De).throttled,expandSession:function(){Le({process:function(t){return d()?l(t):void 0}},o)},getSession:function(){return u},renewObservable:r,expireObservable:i,expire:function(){a(),l({})},stop:function(){N(c)}}}function Be(t){return Fe(t,location.href).href}function Fe(t,e){var n=function(){if(void 0===ze)try{var t=new Ve("http://test/path");ze="http://test/path"===t.href}catch(t){ze=!1}return ze?Ve:void 0}();if(n)try{return void 0!==e?new n(t,e):new n(t)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(U({url:t,base:e})))}if(void 0===e&&!/:/.test(t))throw new Error("Invalid URL: '".concat(t,"'"));var r=document,i=r.createElement("a");if(void 0!==e){var o=(r=document.implementation.createHTMLDocument("")).createElement("base");o.href=e,r.head.appendChild(o),r.body.appendChild(i)}return i.href=t,i}var ze,Ve=URL;var je="datad0g.com",Ge="dd0g-gov.com",Ke="datadoghq.com",qe="datadoghq.eu";function $e(t,e,n){var r=function(t,e){var n="/api/v2/".concat(e),r=t.proxy;if("string"==typeof r){var i=Be(r);return function(t){return"".concat(i,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(t)))}}if("function"==typeof r)return function(t){return r({path:n,parameters:t})};var o=function(t){var e=t.site,n=void 0===e?Ke:e,r=t.internalAnalyticsSubdomain;if(r&&n===Ke)return"".concat(r,".").concat(Ke);if(n===Ge)return"http-intake.logs.".concat(n);var i=n.split("."),o=i.pop();return"browser-intake-".concat(i.join("-"),".").concat(o)}(t);return function(t){return"https://".concat(o).concat(n,"?").concat(t)}}(t,e);return{build:function(i,o){var a=function(t,e,n,r,i){var o=t.clientToken,a=t.internalAnalyticsSubdomain,s=i.retry,c=i.flushReason,u=i.encoding,l=["sdk_version:".concat("5.10.0"),"api:".concat(r)].concat(n);c&&tt(Z.COLLECT_FLUSH_REASON)&&l.push("flush_reason:".concat(c));s&&l.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var d=["ddsource=browser","ddtags=".concat(encodeURIComponent(l.join(","))),"dd-api-key=".concat(o),"dd-evp-origin-version=".concat(encodeURIComponent("5.10.0")),"dd-evp-origin=browser","dd-request-id=".concat(ne())];u&&d.push("dd-evp-encoding=".concat(u));"rum"===e&&d.push("batch_time=".concat(mt()));a&&d.reverse();return d.join("&")}(t,e,n,i,o);return r(a)},urlPrefix:r(""),trackType:e}}var We=/[^a-z0-9_:./-]/;function Ze(t,e){var n=200-t.length-1;(e.length>n||We.test(e))&&s.warn("".concat(t," value doesn't meet tag requirements and will be sanitized"));var r=e.replace(/,/g,"_");return"".concat(t,":").concat(r)}function Ye(t){var e=function(t){var e=t.env,n=t.service,r=t.version,i=t.datacenter,o=[];return e&&o.push(Ze("env",e)),n&&o.push(Ze("service",n)),r&&o.push(Ze("version",r)),i&&o.push(Ze("datacenter",i)),o}(t),n=function(t,e){return{logsEndpointBuilder:$e(t,"logs",e),rumEndpointBuilder:$e(t,"rum",e),sessionReplayEndpointBuilder:$e(t,"replay",e)}}(t,e),r=y(n).map(function(t){return t.urlPrefix}),i=function(t,e,n){if(!t.replica)return;var r=A({},t,{site:Ke,clientToken:t.replica.clientToken}),i={logsEndpointBuilder:$e(r,"logs",n),rumEndpointBuilder:$e(r,"rum",n)};return e.push.apply(e,y(i).map(function(t){return t.urlPrefix})),A({applicationId:t.replica.applicationId},i)}(t,r,e);return A({isIntakeUrl:function(t){return r.some(function(e){return 0===t.indexOf(e)})},replica:i,site:t.site||Ke},n)}var Xe={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Je(t){var e,n,r,i;if(t&&t.clientToken)if(void 0===t.sessionSampleRate||ot(t.sessionSampleRate))if(void 0===t.telemetrySampleRate||ot(t.telemetrySampleRate))if(void 0===t.telemetryConfigurationSampleRate||ot(t.telemetryConfigurationSampleRate)){if(void 0===t.trackingConsent||H(nt,t.trackingConsent))return Array.isArray(t.enableExperimentalFeatures)&&t.enableExperimentalFeatures.filter(function(t){return H(Z,t)}
2).forEach(function(t){Q.add(t)}),A({beforeSend:t.beforeSend&&c(t.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:Me(t),sessionSampleRate:null!==(e=t.sessionSampleRate)&&void 0!==e?e:100,telemetrySampleRate:null!==(n=t.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=t.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:t.service,silentMultipleInit:!!t.silentMultipleInit,allowUntrustedEvents:!!t.allowUntrustedEvents,trackingConsent:null!==(i=t.trackingConsent)&&void 0!==i?i:nt.GRANTED,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},Ye(t));s.error('Tracking Consent should be either "granted" or "not-granted"')}else s.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");else s.error("Telemetry Sample Rate should be a number between 0 and 100");else s.error("Session Sample Rate should be a number between 0 and 100");else s.error("Client Token is not configured, we will not send any data.")}function Qe(t){var e=V(t);return"string"===e||"function"===e||t instanceof RegExp}function tn(t,e,n){return void 0===n&&(n=!1),t.some(function(t){try{if("function"==typeof t)return t(e);if(t instanceof RegExp)return t.test(e);if("string"==typeof t)return n?b(e,t):t===e}catch(t){s.error(t)}return!1})}function en(t){0!==t.status||t.isAborted||(t.traceId=void 0,t.spanId=void 0,t.traceSampled=void 0)}function nn(t,e,n,r){if(void 0!==rn()&&n.findTrackedSession()){var i,o,a,s,c,u=g(t.allowedTracingUrls,function(t){return tn([t.match],e.url,!0)});if(u)e.traceId=new on,e.spanId=new on,e.traceSampled=!at(t.traceSampleRate)||rt(t.traceSampleRate),r((i=e.traceId,o=e.spanId,a=e.traceSampled,s=u.propagatorTypes,c={},s.forEach(function(t){switch(t){case"datadog":A(c,{"x-datadog-origin":"rum","x-datadog-parent-id":o.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":i.toDecimalString()});break;case"tracecontext":A(c,{traceparent:"00-0000000000000000".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":A(c,{b3:"".concat(i.toPaddedHexadecimalString(),"-").concat(o.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":A(c,{"X-B3-TraceId":i.toPaddedHexadecimalString(),"X-B3-SpanId":o.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}}),c))}}function rn(){return window.crypto||window.msCrypto}var on=function(){function t(){this.buffer=new Uint8Array(8),rn().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return t.prototype.toString=function(t){var e=this.readInt32(0),n=this.readInt32(4),r="";do{var i=e%t*4294967296+n;e=Math.floor(e/t),n=Math.floor(i/t),r=(i%t).toString(t)+r}while(e||n);return r},t.prototype.toDecimalString=function(){return this.toString(10)},t.prototype.toPaddedHexadecimalString=function(){var t=this.toString(16);return Array(17-t.length).join("0")+t},t.prototype.readInt32=function(t){return 16777216*this.buffer[t]+(this.buffer[t+1]<<16)+(this.buffer[t+2]<<8)+this.buffer[t+3]},t}(),an=["tracecontext","datadog"];function sn(t){var e,n;if(t.applicationId)if(void 0===t.sessionReplaySampleRate||ot(t.sessionReplaySampleRate))if(void 0===t.traceSampleRate||ot(t.traceSampleRate))if(void 0===t.excludedActivityUrls||Array.isArray(t.excludedActivityUrls)){var r=function(t){if(void 0!==t.allowedTracingUrls){if(!Array.isArray(t.allowedTracingUrls))return void s.error("Allowed Tracing URLs should be an array");if(0!==t.allowedTracingUrls.length&&void 0===t.service)return void s.error("Service needs to be configured when tracing is enabled");var e=[];return t.allowedTracingUrls.forEach(function(t){var n;Qe(t)?e.push({match:t,propagatorTypes:an}):"object"===V(n=t)&&Qe(n.match)&&Array.isArray(n.propagatorTypes)?e.push(t):s.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",t)}),e}return[]}(t);if(r){var i=Je(t);if(i)return A({applicationId:t.applicationId,version:t.version,actionNameAttribute:t.actionNameAttribute,sessionReplaySampleRate:null!==(e=t.sessionReplaySampleRate)&&void 0!==e?e:0,startSessionReplayRecordingManually:!!t.startSessionReplayRecordingManually,traceSampleRate:t.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:null!==(n=t.excludedActivityUrls)&&void 0!==n?n:[],workerUrl:t.workerUrl,compressIntakeRequests:!!t.compressIntakeRequests,trackUserInteractions:!!t.trackUserInteractions,trackViewsManually:!!t.trackViewsManually,trackResources:!!t.trackResources,trackLongTasks:!!t.trackLongTasks,subdomain:t.subdomain,defaultPrivacyLevel:H(Xe,t.defaultPrivacyLevel)?t.defaultPrivacyLevel:Xe.MASK,customerDataTelemetrySampleRate:1},i)}}
2else s.error("Excluded Activity Urls should be an array");else s.error("Trace Sample Rate should be a number between 0 and 100");else s.error("Session Replay Sample Rate should be a number between 0 and 100");else s.error("Application ID is not configured, no RUM data will be collected.")}function cn(t){var e=new Set;return Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0&&t.allowedTracingUrls.forEach(function(t){Qe(t)?an.forEach(function(t){return e.add(t)}):"object"===V(t)&&Array.isArray(t.propagatorTypes)&&t.propagatorTypes.forEach(function(t){return e.add(t)})}),_(e)}function un(t,e,n,r){var i,o,a,c,u=t.ignoreInitIfSyntheticsWillInjectRum,l=t.startDeflateWorker,d=new Qt,f=n.observable.subscribe(p);function p(){if(a&&c&&n.isGranted()){var t;if(f.unsubscribe(),c.trackViewsManually){if(!i)return;d.remove(i.callback),t=i.options}var e=r(a,c,o,t);d.drain(e)}}return{init:function(t){if(t){var e=ee();if(e&&(t=function(t){return A({},t,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})}(t)),a=t,c)Xt("DD_RUM",t);else if(!u||!fe()){var r=sn(t);r&&(e||r.sessionStoreStrategyType?r.compressIntakeRequests&&!e&&l&&!(o=l(r,"Datadog RUM",P))||(c=r,n.tryToInit(r.trackingConsent),p()):s.warn("No storage available for session. We will not send any data."))}}else s.error("Missing configuration")},get initConfiguration(){return a},getInternalContext:P,stopSession:P,addTiming:function(t,e){void 0===e&&(e=mt()),d.add(function(n){return n.addTiming(t,e)})},startView:function(t,e){void 0===e&&(e=gt());var n=function(n){n.startView(t,e)};d.add(n),i||(i={options:t,callback:n},p())},addAction:function(t,n){void 0===n&&(n=e()),d.add(function(e){return e.addAction(t,n)})},addError:function(t,n){void 0===n&&(n=e()),d.add(function(e){return e.addError(t,n)})},addFeatureFlagEvaluation:function(t,e){d.add(function(n){return n.addFeatureFlagEvaluation(t,e)})},startDurationVital:function(t){d.add(function(e){return e.startDurationVital(t)})},stopDurationVital:function(t){d.add(function(e){return e.stopDurationVital(t)})}}}function ln(t,e){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:t,payload:e})}function dn(){var t,e=window.navigator;return{status:e.onLine?"connected":"not_connected",interfaces:e.connection&&e.connection.type?[e.connection.type]:void 0,effective_type:null===(t=e.connection)||void 0===t?void 0:t.effectiveType}}var fn,pn="log",vn="configuration",hn=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],mn=["ddog-gov.com"],_n={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function gn(t,e){var n,r=new Y;_n.telemetryEnabled=!m(mn,e.site)&&rt(e.telemetrySampleRate),_n.telemetryConfigurationEnabled=_n.telemetryEnabled&&rt(e.telemetryConfigurationSampleRate);var i={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return fn=function(e){if(_n.telemetryEnabled){var o=function(t,e,r){return K({type:"telemetry",date:mt(),service:t,version:"5.10.0",source:"browser",_dd:{format_version:2},telemetry:K(e,{runtime_env:r,connectivity:dn()}),experimental_features:_(et())},void 0!==n?n():{})}(t,e,i);r.notify(o),ln("telemetry",o)}},u=wn,A(_n,{maxEventsPerPage:e.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(t){n=t},observable:r,enabled:_n.telemetryEnabled}}function yn(t,e){h(r.debug,t,e),bn(A({type:pn,message:t,status:"debug"},e))}function wn(t,e){bn(A({type:pn,status:"error"},function(t){if(t instanceof Error){var e=Ot(t);return{error:{kind:e.name,stack:qt(En(e))},message:e.message}}return{error:{stack:jt},message:"".concat("Uncaught"," ").concat(U(t))}}(t),e))}function bn(t){fn&&_n.sentEventCount<_n.maxEventsPerPage&&(_n.sentEventCount+=1,fn(t))}function En(t){return t.stack=t.stack.filter(function(t){return!t.url||hn.some(function(e){return b(t.url,e)})}),t}var An={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function Sn(t){return m(y(An),t)}function Cn(){var t,e=window;if(e.Zone&&(t=I(e,"MutationObserver"),e.MutationObserver&&t===e.MutationObserver)){var n=I(new e.MutationObserver(P),"originalInstance");
2t=n&&n.constructor}return t||(t=e.MutationObserver),t}function Tn(t,e,n){if(document.readyState===e||"complete"===document.readyState)n();else{var r="complete"===e?ct.LOAD:ct.DOM_CONTENT_LOADED;St(t,window,r,n,{once:!0})}}var xn="initial_document",In=[["document",function(t){return xn===t}],["xhr",function(t){return"xmlhttprequest"===t}],["fetch",function(t){return"fetch"===t}],["beacon",function(t){return"beacon"===t}],["css",function(t,e){return/\.css$/i.test(e)}],["js",function(t,e){return/\.js$/i.test(e)}],["image",function(t,e){return m(["image","img","icon"],t)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(e)}],["font",function(t,e){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(e)}],["media",function(t,e){return m(["audio","video"],t)||null!==/\.(mp3|mp4)$/i.exec(e)}]];function kn(t){var e=t.name;if(!function(t){try{return!!Fe(t)}catch(t){return!1}}(e))return yn('Failed to construct URL for "'.concat(t.name,'"')),"other";for(var n=function(t){var e=Fe(t).pathname;return"/"===e[0]?e:"/".concat(e)}(e),r=0,i=In;r<i.length;r++){var o=i[r],a=o[0];if((0,o[1])(t.initiatorType,n))return a}return"other"}function Rn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=1;n<t.length;n+=1)if(t[n-1]>t[n])return!1;return!0}function On(t){return"xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType}function Nn(t){var e=Ln(t);if(e){var n=e.startTime,r=e.fetchStart,i=e.redirectStart,o=e.redirectEnd,a=e.domainLookupStart,s=e.domainLookupEnd,c=e.connectStart,u=e.secureConnectionStart,l=e.connectEnd,d=e.requestStart,f=e.responseStart,p={download:Un(n,f,e.responseEnd),first_byte:Un(n,d,f)};return l!==r&&(p.connect=Un(n,c,l),Rn(c,u,l)&&(p.ssl=Un(n,u,l))),s!==r&&(p.dns=Un(n,a,s)),Pn(t)&&(p.redirect=Un(n,i,o)),p}}function Ln(t){if(Rn(t.startTime,t.fetchStart,t.domainLookupStart,t.domainLookupEnd,t.connectStart,t.connectEnd,t.requestStart,t.responseStart,t.responseEnd)){if(!Pn(t))return t;var e=t.redirectStart,n=t.redirectEnd;if(e<t.startTime&&(e=t.startTime),n<t.startTime&&(n=t.fetchStart),Rn(t.startTime,e,n,t.fetchStart))return A({},t,{redirectEnd:n,redirectStart:e})}}function Pn(t){return t.fetchStart!==t.startTime}function Un(t,e,n){return{duration:vt(wt(e,n)),start:vt(wt(t,e))}}function Dn(t){if(t.startTime<t.responseStart)return t.decodedBodySize}function Mn(t,e){return e&&!t.isIntakeUrl(e)}function Hn(t){return t.nodeType===Node.TEXT_NODE}function Bn(t){return t.nodeType===Node.ELEMENT_NODE}function Fn(t){return Bn(t)&&Boolean(t.shadowRoot)}function zn(t){var e=t;return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Bn(e.host)}function Vn(t,e){t.childNodes.forEach(e),Fn(t)&&e(t.shadowRoot)}function jn(t){return zn(t)?t.host:t.parentNode}var Gn;function Kn(t){var e=function(t){var e=t.querySelector("meta[name=dd-trace-id]"),n=t.querySelector("meta[name=dd-trace-time]");return qn(e&&e.content,n&&n.content)}(t)||function(t){var e=function(t){for(var e=0;e<t.childNodes.length;e+=1){if(n=$n(t.childNodes[e]))return n}if(t.body)for(e=t.body.childNodes.length-1;e>=0;e-=1){var n,r=t.body.childNodes[e];if(n=$n(r))return n;if(!Hn(r))break}}(t);if(!e)return;return qn(ae(e,"trace-id"),ae(e,"trace-time"))}(t);if(e&&!(e.traceTime<=ht()-12e4))return e.traceId}function qn(t,e){var n=e&&Number(e);if(t&&n)return{traceId:t,traceTime:n}}function $n(t){if(t&&function(t){return t.nodeType===Node.COMMENT_NODE}(t)){var e=/^\s*DATADOG;(.*?)\s*$/.exec(t.data);if(e)return e[1]}}function Wn(){return void 0!==window.performance&&"getEntries"in performance}function Zn(t){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(t)}function Yn(t,e){var n=[];if(function(t,e){Tn(t,"interactive",function(){var t,n={entryType:Gn.RESOURCE,initiatorType:xn,traceId:Kn(document),toJSON:function(){return A({},t,{toJSON:void 0})}};if(Zn(Gn.NAVIGATION)&&performance.getEntriesByType(Gn.NAVIGATION).length>0){var r=performance.getEntriesByType(Gn.NAVIGATION)[0];t=A(r.toJSON(),n)}else{var i=Xn();t=A(i,{decodedBodySize:0,duration:i.responseEnd,name:window.location.href,startTime:0},n)}e(t)})}(e,function(n){Jn(t,e,[n])}),Wn()){var r=performance.getEntries();k(function(){return Jn(t,e,r)})}if(window.PerformanceObserver){var i=p(function(n){return Jn(t,e,n.getEntries())}),o=[Gn.RESOURCE,Gn.NAVIGATION,Gn.LONG_TASK,Gn.PAINT],a=[Gn.LARGEST_CONTENTFUL_PAINT,Gn.FIRST_INPUT,Gn.LAYOUT_SHIFT,Gn.EVENT];try{a.forEach(function(t){var e=new window.PerformanceObserver(i);e.observe({type:t,buffered:!0,durationThreshold:40}),n.push(function(){return e.disconnect()})})}catch(t){o.push.apply(o,a)}var s=new PerformanceObserver(i);if(s.observe({entryTypes:o}),n.push(function(){return s.disconnect()}),Wn()&&"addEventListener"in performance){var c=St(e,performance,"resourcetimingbufferfull",function(){performance.clearResourceTimings()}).stop;n.push(c)}}if(Zn(Gn.NAVIGATION)||function(t,e){function n(){e(A(Xn(),{entryType:Gn.NAVIGATION}))}Tn(t,"complete",function(){k(n)})}(e,function(n){Jn(t,e,[n])}),!Zn(Gn.FIRST_INPUT)){var u=function(t,e){var n=ht(),r=!1,i=Ct(t,window,[ct.CLICK,ct.MOUSE_DOWN,ct.KEY_DOWN,ct.TOUCH_START,ct.POINTER_DOWN],function(e){if(e.cancelable){var n={entryType:Gn.FIRST_INPUT,processingStart:_t(),processingEnd:_t(),startTime:e.timeStamp,duration:0,name:""};e.type===ct.POINTER_DOWN?o(t,n):a(n)}},{passive:!0,capture:!0}).stop;return{stop:i};function o(t,e){Ct(t,window,[ct.POINTER_UP,ct.POINTER_CANCEL],function(t){t.type===ct.POINTER_UP&&a(e)},{once:!0})}function a(t){if(!r){r=!0,i();var o=t.processingStart-t.startTime;o>=0&&o<ht()-n&&e(t)}}}(e,function(n){Jn(t,e,[n])}).stop;n.push(u)}
2return{stop:function(){n.forEach(function(t){return t()})}}}function Xn(){var t={},e=performance.timing;for(var n in e)if(at(e[n])){var r=n,i=e[r];t[r]=0===i?0:Et(i)}return t}function Jn(t,e,n){var r=n.filter(function(t){return H(Gn,t.entryType)}).filter(function(t){return!function(t){return t.entryType===Gn.NAVIGATION&&t.loadEventEnd<=0}(t)&&!function(t,e){return e.entryType===Gn.RESOURCE&&!Mn(t,e.name)}(e,t)});r.length&&t.notify(0,r)}!function(t){t.EVENT="event",t.FIRST_INPUT="first-input",t.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",t.LAYOUT_SHIFT="layout-shift",t.LONG_TASK="longtask",t.NAVIGATION="navigation",t.PAINT="paint",t.RESOURCE="resource"}(Gn||(Gn={}));var Qn="agent",tr="console",er="custom",nr="source",rr="report";function ir(t,e,n){var r=0,i=!1;return{isLimitReached:function(){if(0===r&&k(function(){r=0},lt),(r+=1)<=e||i)return i=!1,!1;if(r===e+1){i=!0;try{n({message:"Reached max number of ".concat(t,"s by minute: ").concat(e),source:Qn,startClocks:gt()})}finally{i=!1}}return!0}}}function or(){var t,e="string"==typeof(t=window._DATADOG_SYNTHETICS_PUBLIC_ID||le("datadog-synthetics-public-id"))?t:void 0,n=function(){var t=window._DATADOG_SYNTHETICS_RESULT_ID||le("datadog-synthetics-result-id");return"string"==typeof t?t:void 0}();if(e&&n)return{test_id:e,result_id:n,injected:fe()}}function ar(t,e,n){var r=G(t),i=n(r);return w(e).forEach(function(e){var n=e[0],i=e[1],o=function(t,e){for(var n=t,r=0,i=e.split(".");r<i.length;r++){var o=i[r];if(!ur(n,o))return;n=n[o]}return n}(r,n),a=V(o);a===i?sr(t,n,q(o)):"object"!==i||"undefined"!==a&&"null"!==a||sr(t,n,{})}),i}function sr(t,e,n){for(var r=t,i=e.split("."),o=0;o<i.length;o+=1){var a=i[o];if(!cr(r))return;o!==i.length-1?r=r[a]:r[a]=n}}function cr(t){return"object"===V(t)}function ur(t,e){return cr(t)&&Object.prototype.hasOwnProperty.call(t,e)}var lr,dr={"view.name":"string","view.url":"string","view.referrer":"string"},fr={context:"object"};function pr(t,e,n,r,i,o,a,c,u){var l,d;(l={}).view=dr,l.error=A({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},fr,dr),l.resource=A({"resource.url":"string"},tt(Z.WRITABLE_RESOURCE_GRAPHQL)&&{"resource.graphql":"object"},fr,dr),l.action=A({"action.target.name":"string"},fr,dr),l.long_task=A({},fr,dr),l.vital=A({},fr,dr),lr=l;var f=((d={}).error=ir("error",t.eventRateLimiterThreshold,u),d.action=ir("action",t.eventRateLimiterThreshold,u),d.vital=ir("vital",t.eventRateLimiterThreshold,u),d),p=or(),v=function(){var t,e=null===(t=window.Cypress)||void 0===t?void 0:t.env("traceId");if("string"==typeof e)return{test_execution_id:e}}();e.subscribe(12,function(u){var l,d=u.startTime,h=u.rawRumEvent,m=u.domainContext,_=u.savedCommonContext,g=u.customerContext,y=r.findView(d),w=i.findUrl(d),b=n.findTrackedSession(d);if(b&&y&&w){var E=_||c(),A=o.findActionId(d),S=K({_dd:{format_version:2,drift:Math.round(ht()-bt(At(),performance.now())),configuration:{session_sample_rate:it(t.sessionSampleRate,3),session_replay_sample_rate:it(t.sessionReplaySampleRate,3)},browser_sdk_version:ee()?"5.10.0":void 0},application:{id:t.applicationId},date:mt(),service:y.service||t.service,version:y.version||t.version,source:"browser",session:{id:b.id,type:p?"synthetics":v?"ci_test":"user"},view:{id:y.id,name:y.name,url:w.url,referrer:w.referrer},action:(l=h,-1!==["error","resource","long_task"].indexOf(l.type)&&A?{id:A}:void 0),synthetics:p,ci_test:v,display:a.get(),connectivity:dn()},h);S.context=K(E.context,g),"has_replay"in S.session||(S.session.has_replay=E.hasReplay),"view"===S.type&&(S.session.sampled_for_replay=b.sessionReplayAllowed),B(E.user)||(S.usr=E.user),function(t,e,n,r){var i;if(e){var o=ar(t,lr[t.type],function(t){return e(t,n)});if(!1===o&&"view"!==t.type)return!1;!1===o&&s.warn("Can't dismiss view events using beforeSend!")}var a=null===(i=r[t.type])||void 0===i?void 0:i.isLimitReached();return!a}(S,t.beforeSend,m,f)&&(B(S.context)&&delete S.context,e.notify(13,S))}})}var vr,hr=function(){function t(){this.callbacks={}}return t.prototype.notify=function(t,e){var n=this.callbacks[t];
2n&&n.forEach(function(t){return t(e)})},t.prototype.subscribe=function(t,e){var n=this;return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),{unsubscribe:function(){n.callbacks[t]=n.callbacks[t].filter(function(t){return e!==t})}}},t}(),mr=1/0,_r=function(){function t(t,e){var n=this;this.expireDelay=t,this.maxEntries=e,this.entries=[],this.clearOldValuesInterval=O(function(){return n.clearOldValues()},6e4)}return t.prototype.add=function(t,e){var n=this,r={value:t,startTime:e,endTime:mr,remove:function(){Jt(n.entries,r)},close:function(t){r.endTime=t}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},t.prototype.find=function(t){void 0===t&&(t=mr);for(var e=0,n=this.entries;e<n.length;e++){var r=n[e];if(r.startTime<=t){if(t<=r.endTime)return r.value;break}}},t.prototype.closeActive=function(t){var e=this.entries[0];e&&e.endTime===mr&&e.close(t)},t.prototype.findAll=function(t,e){void 0===t&&(t=mr),void 0===e&&(e=0);var n=bt(t,e);return this.entries.filter(function(e){return e.startTime<=n&&t<=e.endTime}).map(function(t){return t.value})},t.prototype.reset=function(){this.entries=[]},t.prototype.stop=function(){N(this.clearOldValuesInterval)},t.prototype.clearOldValues=function(){for(var t=_t()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<t;)this.entries.pop()},t}(),gr=ve;function yr(t,e,n){var r=t[e],i=function(t,e){return function(){var n,r,i=arguments;return v(e,null,[{target:this,parameters:i,onPostCall:function(t){r=t}}]),"function"==typeof t&&(n=t.apply(this,i)),r&&v(r,null,[n]),n}}(r,n),o=function(){if("function"==typeof i)return i.apply(this,arguments)};return t[e]=o,{stop:function(){t[e]===o?t[e]=r:i=r}}}function wr(t,e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(!r||!r.set||!r.configurable)return{stop:P};var i=P,o=function(t,e){k(function(){o!==i&&n(t,e)},0)},a=function(t){r.set.call(this,t),o(this,t)};return Object.defineProperty(t,e,{set:a}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(t,e))||void 0===n?void 0:n.set)===a&&Object.defineProperty(t,e,r),o=i}}}var br,Er=new WeakMap;function Ar(t){return vr||(vr=function(t){return new Y(function(e){var n=yr(XMLHttpRequest.prototype,"open",Sr).stop,r=yr(XMLHttpRequest.prototype,"send",function(n){!function(t,e,n){var r=t.target,i=Er.get(r);if(!i)return;var o=i;o.state="start",o.startClocks=gt(),o.isAborted=!1,o.xhr=r;var a=!1,s=yr(r,"onreadystatechange",function(){r.readyState===XMLHttpRequest.DONE&&c()}).stop,c=function(){if(u(),s(),!a){a=!0;var t=i;t.state="complete",t.duration=wt(o.startClocks.timeStamp,mt()),t.status=r.status,n.notify(M(t))}},u=St(e,r,"loadend",c).stop;n.notify(o)}(n,t,e)}).stop,i=yr(XMLHttpRequest.prototype,"abort",Cr).stop;return function(){n(),r(),i()}})}(t)),vr}function Sr(t){var e=t.target,n=t.parameters,r=n[0],i=n[1];Er.set(e,{state:"open",method:String(r).toUpperCase(),url:Be(String(i))})}function Cr(t){var e=t.target,n=Er.get(e);n&&(n.isAborted=!0)}function Tr(){return br||(br=new Y(function(t){if(window.fetch){var e=yr(window,"fetch",function(e){return function(t,e){var n=t.parameters,r=t.onPostCall,i=n[0],o=n[1],a=o&&o.method;void 0===a&&i instanceof Request&&(a=i.method);var s=void 0!==a?String(a).toUpperCase():"GET",c=i instanceof Request?i.url:Be(String(i)),u=gt(),l={state:"start",init:o,input:i,method:s,startClocks:u,url:c};e.notify(l),n[0]=l.input,n[1]=l.init,r(function(t){return function(t,e,n){var r=function(e){var r=n;r.state="resolve","stack"in e||e instanceof Error?(r.status=0,r.isAborted=e instanceof DOMException&&e.code===DOMException.ABORT_ERR,r.error=e):"status"in e&&(r.response=e,r.responseType=e.type,r.status=e.status,r.isAborted=!1),t.notify(r)};e.then(p(r),p(r))}(e,t,l)})}(e,t)}).stop;return e}})),br}var xr=1;function Ir(t,e,n){var r=function(t,e){return{clearTracingIfNeeded:en,traceFetch:function(n){return nn(t,n,e,function(t){var e;if(n.input instanceof Request&&!(null===(e=n.init)||void 0===e?void 0:e.headers))n.input=new Request(n.input),Object.keys(t).forEach(function(e){n.input.headers.append(e,t[e])});else{n.init=M(n.init);var r=[];
2n.init.headers instanceof Headers?n.init.headers.forEach(function(t,e){r.push([e,t])}):Array.isArray(n.init.headers)?n.init.headers.forEach(function(t){r.push(t)}):n.init.headers&&Object.keys(n.init.headers).forEach(function(t){r.push([t,n.init.headers[t]])}),n.init.headers=r.concat(w(t))}})},traceXhr:function(n,r){return nn(t,n,e,function(t){Object.keys(t).forEach(function(e){r.setRequestHeader(e,t[e])})})}}}(e,n);!function(t,e,n){var r=Ar(e).subscribe(function(r){var i=r;if(Mn(e,i.url))switch(i.state){case"start":n.traceXhr(i,i.xhr),i.requestIndex=kr(),t.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"complete":n.clearTracingIfNeeded(i),t.notify(8,{duration:i.duration,method:i.method,requestIndex:i.requestIndex,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"xhr",url:i.url,xhr:i.xhr})}})}(t,e,r),function(t,e,n){var r=Tr().subscribe(function(r){var i=r;if(Mn(e,i.url))switch(i.state){case"start":n.traceFetch(i),i.requestIndex=kr(),t.notify(7,{requestIndex:i.requestIndex,url:i.url});break;case"resolve":!function(t,e){var n=t.response&&function(t){try{return t.clone()}catch(t){return}}(t.response);n&&n.body?function(t,e,n){var r=t.getReader(),i=[],o=0;function a(){var t,a;if(r.cancel().catch(P),n.collectStreamBody){var s;if(1===i.length)s=i[0];else{s=new Uint8Array(o);var c=0;i.forEach(function(t){s.set(t,c),c+=t.length})}t=s.slice(0,n.bytesLimit),a=s.length>n.bytesLimit}e(void 0,t,a)}!function t(){r.read().then(p(function(e){e.done?a():(n.collectStreamBody&&i.push(e.value),(o+=e.value.length)>n.bytesLimit?a():t())}),p(function(t){return e(t)}))}()}(n.body,function(){e(wt(t.startClocks.timeStamp,mt()))},{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):e(wt(t.startClocks.timeStamp,mt()))}(i,function(e){n.clearTracingIfNeeded(i),t.notify(8,{duration:e,method:i.method,requestIndex:i.requestIndex,responseType:i.responseType,spanId:i.spanId,startClocks:i.startClocks,status:i.status,traceId:i.traceId,traceSampled:i.traceSampled,type:"fetch",url:i.url,response:i.response,init:i.init,input:i.input})})}})}(t,e,r)}function kr(){var t=xr;return xr+=1,t}function Rr(t){var e=t.lifeCycle,n=t.isChildEvent,r=t.onChange,i=void 0===r?P:r,o={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=e.subscribe(13,function(t){var e;if("view"!==t.type&&"vital"!==t.type&&n(t))switch(t.type){case"error":o.errorCount+=1,i();break;case"action":o.actionCount+=1,t.action.frustration&&(o.frustrationCount+=t.action.frustration.type.length),i();break;case"long_task":o.longTaskCount+=1,i();break;case"resource":(null===(e=t._dd)||void 0===e?void 0:e.discarded)||(o.resourceCount+=1,i())}});return{stop:function(){a.unsubscribe()},eventCounts:o}}var Or=100;function Nr(t,e,n,r,i){var o=function(t,e,n){return new Y(function(r){var i,o=[],a=0;o.push(e.subscribe(u),t.subscribe(0,function(t){t.some(function(t){return t.entryType===Gn.RESOURCE&&!Lr(n,t.name)})&&u()}),t.subscribe(7,function(t){Lr(n,t.url)||(void 0===i&&(i=t.requestIndex),a+=1,u())}),t.subscribe(8,function(t){Lr(n,t.url)||void 0===i||t.requestIndex<i||(a-=1,u())}));var s,c=(s=u,yr(window,"open",s)).stop;return function(){c(),o.forEach(function(t){return t.unsubscribe()})};function u(){r.notify({isBusy:a>0})}})}(t,e,n);return function(t,e,n){var r,i=!1,o=k(p(function(){return u({hadActivity:!1})}),100),a=void 0!==n?k(p(function(){return u({hadActivity:!0,end:mt()})}),n):void 0,s=t.subscribe(function(t){var e=t.isBusy;R(o),R(r);var n=mt();e||(r=k(p(function(){return u({hadActivity:!0,end:n})}),100))}),c=function(){i=!0,R(o),R(r),R(a),s.unsubscribe()};function u(t){i||(c(),e(t))}return{stop:c}}(o,r,i)}function Lr(t,e){return tn(t.excludedActivityUrls,e)}var Pr="data-dd-action-name";function Ur(t,e){return Dr(t,Pr)||e&&Dr(t,e)||Vr(t,e,Br)||Vr(t,e,Fr)||""}function Dr(t,e){var n;if(function(){void 0===Hr&&(Hr="closest"in HTMLElement.prototype);return Hr}())n=t.closest("[".concat(e,"]"));else for(var r=t;r;){if(r.hasAttribute(e)){n=r;break}r=r.parentElement}if(n)return Gr(jr(n.getAttribute(e).trim()))}var Mr,Hr,Br=[function(t,e){if(function(){void 0===Mr&&(Mr="labels"in HTMLInputElement.prototype);return Mr}()){if("labels"in t&&t.labels&&t.labels.length>0)return Kr(t.labels[0],e)}else if(t.id){var n=t.ownerDocument&&g(t.ownerDocument.querySelectorAll("label"),function(e){return e.htmlFor===t.id});return n&&Kr(n,e)}},function(t){if("INPUT"===t.nodeName){var e=t,n=e.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return e.value}},function(t,e){if("BUTTON"===t.nodeName||"LABEL"===t.nodeName||"button"===t.getAttribute("role"))return Kr(t,e)},function(t){return t.getAttribute("aria-label")},function(t,e){var n=t.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map(function(e){return function(t,e){return t.ownerDocument?t.ownerDocument.getElementById(e):null}(t,e)}).filter(function(t){return Boolean(t)}).map(function(t){return Kr(t,e)}).join(" ")},function(t){return t.getAttribute("alt")},function(t){return t.getAttribute("name")},function(t){return t.getAttribute("title")},function(t){return t.getAttribute("placeholder")},function(t,e){if("options"in t&&t.options.length>0)return Kr(t.options[0],e)}],Fr=[function(t,e){return Kr(t,e)}],zr=10;function Vr(t,e,n){for(var r=t,i=0;
2i<=zr&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var o=0,a=n;o<a.length;o++){var s=(0,a[o])(r,e);if("string"==typeof s){var c=s.trim();if(c)return Gr(jr(c))}}if("FORM"===r.nodeName)break;r=r.parentElement,i+=1}}function jr(t){return t.replace(/\s+/g," ")}function Gr(t){return t.length>100?"".concat(se(t,100)," [...]"):t}function Kr(t,e){if(!t.isContentEditable){if("innerText"in t){var n=t.innerText,r=function(e){for(var r=t.querySelectorAll(e),i=0;i<r.length;i+=1){var o=r[i];if("innerText"in o){var a=o.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return 0===me()&&r("script, style"),r("[".concat(Pr,"]")),e&&r("[".concat(e,"]")),n}return t.textContent}}var qr,$r=[Pr,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],Wr=[Jr,function(t){if(t.id&&!Xr(t.id))return"#".concat(E(t.id))}],Zr=[Jr,function(t){if("BODY"===t.tagName)return;if(t.classList.length>0)for(var e=0;e<t.classList.length;e+=1){var n=t.classList[e];if(!Xr(n))return"".concat(E(t.tagName),".").concat(E(n))}},function(t){return E(t.tagName)}];function Yr(t,e){for(var n="",r=t;r&&"HTML"!==r.nodeName;){var i=ti(r,Wr,ei,e,n);if(i)return i;n=ti(r,Zr,ni,e,n)||ri(Qr(r),n),r=r.parentElement}return n}function Xr(t){return/[0-9]/.test(t)}function Jr(t,e){if(e&&(i=o(e)))return i;for(var n=0,r=$r;n<r.length;n++){var i;if(i=o(r[n]))return i}function o(e){if(t.hasAttribute(e))return"".concat(E(t.tagName),"[").concat(e,'="').concat(E(t.getAttribute(e)),'"]')}}function Qr(t){for(var e=t.parentElement.firstElementChild,n=1;e&&e!==t;)e.tagName===t.tagName&&(n+=1),e=e.nextElementSibling;return"".concat(E(t.tagName),":nth-of-type(").concat(n,")")}function ti(t,e,n,r,i){for(var o=0,a=e;o<a.length;o++){var s=(0,a[o])(t,r);if(s){var c=ri(s,i);if(n(t,c))return c}}}function ei(t,e){return 1===t.ownerDocument.querySelectorAll(e).length}function ni(t,e){return 1===t.parentElement.querySelectorAll(function(){if(void 0===qr)try{document.querySelector(":scope"),qr=!0}catch(t){qr=!1}return qr}()?ri(":scope",e):e).length}function ri(t,e){return e?"".concat(t,">").concat(e):t}var ii=ut;function oi(t,e){var n,r=[],i=0;function o(t){t.stopObservable.subscribe(a),r.push(t),R(n),n=k(s,ii)}function a(){1===i&&r.every(function(t){return t.isStopped()})&&(i=2,e(r))}function s(){R(n),0===i&&(i=1,a())}return o(t),{tryAppend:function(t){return 0===i&&(r.length>0&&(e=r[r.length-1].event,n=t.event,!(e.target===n.target&&(a=e,c=n,Math.sqrt(Math.pow(a.clientX-c.clientX,2)+Math.pow(a.clientY-c.clientY,2))<=100)&&e.timeStamp-n.timeStamp<=ii))?(s(),!1):(o(t),!0));var e,n,a,c},stop:function(){s()}}}function ai(){var t=window.getSelection();return!t||t.isCollapsed}function si(t){return t.target instanceof Element&&!1!==t.isPrimary}function ci(t,e){if(function(t){if(t.some(function(t){return t.getUserActivity().selection}))return!1;for(var e=0;e<t.length-2;e+=1)if(t[e+3-1].event.timeStamp-t[e].event.timeStamp<=ut)return!0;return!1}(t))return e.addFrustration("rage_click"),t.some(li)&&e.addFrustration("dead_click"),e.hasError&&e.addFrustration("error_click"),{isRage:!0};var n=t.some(function(t){return t.getUserActivity().selection});return t.forEach(function(t){t.hasError&&t.addFrustration("error_click"),li(t)&&!n&&t.addFrustration("dead_click")}),{isRage:!1}}var ui='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *';function li(t){return!t.hasPageActivity&&!t.getUserActivity().input&&(e=t.event.target,n=ui,!(e.matches?e.matches(n):e.msMatchesSelector&&e.msMatchesSelector(n)));var e,n}function di(t,e,n){var r,i=new _r(3e5),o=new Y;t.subscribe(10,function(){i.reset()}),t.subscribe(5,c);var a=function(t,e){var n,r,i=e.onPointerDown,o=e.onPointerUp,a={selection:!1,input:!1},s=[St(t,window,ct.POINTER_DOWN,function(t){si(t)&&(n=ai(),a={selection:!1,input:!1},r=i(t))},{capture:!0}),St(t,window,ct.SELECTION_CHANGE,function(){n&&ai()||(a.selection=!0)},{capture:!0}),St(t,window,ct.POINTER_UP,function(t){if(si(t)&&r){var e=a;o(r,t,function(){return e}),r=void 0}},{capture:!0}),St(t,window,ct.INPUT,function(){a.input=!0},{capture:!0})];
2return{stop:function(){s.forEach(function(t){return t.stop()})}}}(n,{onPointerDown:function(r){return function(t,e,n,r){var i=(a=r,s=t.actionNameAttribute,c=a.target.getBoundingClientRect(),{type:"click",target:{width:Math.round(c.width),height:Math.round(c.height),selector:Yr(a.target,s)},position:{x:Math.round(a.clientX-c.left),y:Math.round(a.clientY-c.top)},name:Ur(a.target,s)}),o=!1;var a,s,c;return Nr(e,n,t,function(t){o=t.hadActivity},Or),{clickActionBase:i,hadActivityOnPointerDown:function(){return o}}}(n,t,e,r)},onPointerUp:function(r,a,c){var u=r.clickActionBase,l=r.hadActivityOnPointerDown;return function(t,e,n,r,i,o,a,s,c,u){var l=fi(e,r,c,a,s);o(l);var d=Nr(e,n,t,function(t){t.hadActivity&&t.end<l.startClocks.timeStamp?l.discard():t.hadActivity?l.stop(t.end):u()?l.stop(l.startClocks.timeStamp):l.stop()},1e4).stop,f=e.subscribe(5,function(t){var e=t.endClocks;l.stop(e.timeStamp)}),p=i.subscribe(function(){l.stop()});l.stopObservable.subscribe(function(){f.unsubscribe(),d(),p.unsubscribe()})}(n,t,e,i,o,s,u,a,c,l)}}).stop;return{stop:function(){c(),o.notify(),a()},actionContexts:{findActionId:function(t){return i.findAll(t)}}};function s(t){if(!r||!r.tryAppend(t)){var e=t.clone();r=oi(t,function(t){!function(t,e){var n=ci(t,e).isRage;n?(t.forEach(function(t){return t.discard()}),e.stop(mt()),e.validate(t.map(function(t){return t.event}))):(e.discard(),t.forEach(function(t){return t.validate()}))}(t,e)})}}function c(){r&&r.stop()}}function fi(t,e,n,r,i){var o,a=ne(),s=gt(),c=e.add(a,s.relative),u=Rr({lifeCycle:t,isChildEvent:function(t){return void 0!==t.action&&(Array.isArray(t.action.id)?m(t.action.id,a):t.action.id===a)}}),l=0,d=[],f=new Y;function p(t){0===l&&(l=1,(o=t)?c.close(Et(o)):c.remove(),u.stop(),f.notify())}return{event:i,stop:p,stopObservable:f,get hasError(){return u.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==o},getUserActivity:n,addFrustration:function(t){d.push(t)},startClocks:s,isStopped:function(){return 1===l||2===l},clone:function(){return fi(t,e,n,r,i)},validate:function(e){if(p(),1===l){var n=u.eventCounts,c=n.resourceCount,f=n.errorCount,v=n.longTaskCount,h=A({type:"click",duration:o&&wt(s.timeStamp,o),startClocks:s,id:a,frustrationTypes:d,counts:{resourceCount:c,errorCount:f,longTaskCount:v},events:null!=e?e:[i],event:i},r);t.notify(1,h),l=2}},discard:function(){p(),l=2}}}function pi(t,e){var n=vi(t)?{action:{id:t.id,loading_time:vt(t.duration),frustration:{type:t.frustrationTypes},error:{count:t.counts.errorCount},long_task:{count:t.counts.longTaskCount},resource:{count:t.counts.resourceCount}},_dd:{action:{target:t.target,position:t.position}}}:void 0;return{customerContext:vi(t)?void 0:t.context,rawRumEvent:K({action:{id:ne(),target:{name:t.name},type:t.type},date:t.startClocks.timeStamp,type:"action",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},n),startTime:t.startClocks.relative,domainContext:vi(t)?{events:t.events}:{}}}function vi(t){return"custom"!==t.type}function hi(t){var e,n=function(e,n){var r=Gt({stackTrace:e,originalError:n,startClocks:gt(),nonErrorPrefix:"Uncaught",source:nr,handling:"unhandled"});t.notify(r)},r=(e=n,yr(window,"onerror",function(t){var n,r=t.parameters,i=r[0],o=r[1],a=r[2],s=r[3],c=r[4];n=c instanceof Error?Ot(c):zt(i,o,a,s),e(n,null!=c?c:i)})).stop,i=function(t){return yr(window,"onunhandledrejection",function(e){var n=e.parameters[0].reason||"Empty reason",r=Ot(n);t(r,n)})}(n).stop;return{stop:function(){r(),i()}}}var mi={};function _i(t){var e=t.map(function(t){return mi[t]||(mi[t]=function(t){return new Y(function(e){var n=i[t];return i[t]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.apply(console,i);var a=Wt();v(function(){e.notify(function(t,e,n){var i,o,a,s=t.map(function(t){return function(t){if("string"==typeof t)return q(t);if(t instanceof Error)return $t(Ot(t));return U(q(t),void 0,2)}(t)}).join(" ");if(e===r.error){var c=g(t,function(t){return t instanceof Error});i=c?qt(Ot(c)):void 0,o=Kt(c),a=c?Zt(c,"console"):void 0}return{api:e,message:s,stack:i,handlingStack:n,fingerprint:o,causes:a}}(i,t,a))})},function(){i[t]=n}})}(t)),mi[t]});return X.apply(void 0,e)}var gi="intervention",yi="csp_violation";function wi(t,e){var n=[];m(e,yi)&&n.push(function(t){return new Y(function(e){return St(t,document,ct.SECURITY_POLICY_VIOLATION,function(t){e.notify(function(t){var e=yi,n="'".concat(t.blockedURI,"' blocked by '").concat(t.effectiveDirective,"' directive");return{type:yi,subtype:t.effectiveDirective,message:"".concat(e,": ").concat(n),stack:bi(t.effectiveDirective,t.originalPolicy?"".concat(n,' of the policy "').concat(se(t.originalPolicy,100,"..."),'"'):"no policy",t.sourceFile,t.lineNumber,t.columnNumber),originalReport:t}}(t))}).stop})}(t));var r=e.filter(function(t){return t!==yi});return r.length&&n.push(function(t){return new Y(function(e){if(window.ReportingObserver){var n=p(function(t,n){return t.forEach(function(t){e.notify(function(t){var e=t.type,n=t.body;return{type:e,subtype:n.id,message:"".concat(e,": ").concat(n.message),originalReport:t,stack:bi(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)}}(t))})}),r=new window.ReportingObserver(n,{types:t,buffered:!0});return r.observe(),function(){r.disconnect()}}})}(r)),X.apply(void 0,n)}function bi(t,e,n,r,i){return n?qt({name:t,message:e,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=i?i:void 0}]}):void 0}function Ei(t,e,n,i){var o=new Y;return function(t){var e=_i([r.error]).subscribe(function(e){return t.notify({startClocks:gt(),message:e.message,stack:e.stack,fingerprint:e.fingerprint,source:tr,handling:"handled",handlingStack:e.handlingStack})})}(o),hi(o),function(t,e){var n=wi(t,[yi,gi]).subscribe(function(t){return e.notify({startClocks:gt(),message:t.message,stack:t.stack,type:t.subtype,source:rr,handling:"unhandled",originalError:t.originalReport})})}(e,o),o.subscribe(function(e){return t.notify(14,{error:e})}),function(t,e,n){return t.subscribe(14,function(r){var i=r.error,o=r.customerContext,a=r.savedCommonContext;t.notify(12,A({customerContext:o,savedCommonContext:a},function(t,e,n){var r={date:t.startClocks.timeStamp,error:{id:ne(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint},type:"error",view:{in_foreground:e.isInActivePageStateAt(t.startClocks.relative)}},i=n.findFeatureFlagEvaluations(t.startClocks.relative);i&&!B(i)&&(r.feature_flags=i);return{rawRumEvent:r,startTime:t.startClocks.relative,domainContext:{error:t.originalError}}}(i,e,n)))}),{addError:function(e,n){var r=e.error,i=e.handlingStack,o=e.startClocks,a=e.context,s=Gt({stackTrace:r instanceof Error?Ot(r):void 0,originalError:r,handlingStack:i,startClocks:o,nonErrorPrefix:"Provided",source:er,handling:"handled"});t.notify(14,{customerContext:a,savedCommonContext:n,error:s})}}}(t,n,i)}function Ai(t){if(performance&&"getEntriesByName"in performance){var e=performance.getEntriesByName(t.url,"resource");if(e.length&&"toJSON"in e[0]){var n=e.map(function(t){return t.toJSON()}).filter(Ln).filter(function(e){return n=e,r=t.startClocks.relative,i=Si({startTime:t.startClocks.relative,duration:t.duration}),o=1,n.startTime>=r-o&&Si(n)<=bt(i,o);var n,r,i,o});return 1===n.length?n[0]:void 0}}}function Si(t){return bt(t.startTime,t.duration)}function Ci(t,e,n,r){t.subscribe(8,function(i){var o=function(t,e,n,r){var i,o=Ai(t),a=o?dt(o.startTime):t.startClocks,s=xi(e,n,a),c=function(t,e){var n=t.traceSampled&&t.traceId&&t.spanId;if(!n)return;return{_dd:{span_id:t.spanId.toDecimalString(),trace_id:t.traceId.toDecimalString(),rule_psr:ki(e)}}}(t,e);if(!s&&!c)return;var u="xhr"===t.type?"xhr":"fetch",l=o?Ii(o):void 0,d=function(t,e,n){var r,i=null===(r=t.findAll(e.relative,n))||void 0===r?void 0:r.some(function(t){return"frozen"===t.state});return i?void 0:vt(n)}(r,a,t.duration),f=Ri(r,a,null!==(i=null==o?void 0:o.duration)&&void 0!==i?i:t.duration),p=K({date:a.timeStamp,resource:{id:ne(),type:u,duration:d,method:t.method,status_code:t.status,url:t.url},type:"resource",_dd:{discarded:!s}},c,l,f);return{startTime:a.relative,rawRumEvent:p,domainContext:{performanceEntry:o,xhr:t.xhr,response:t.response,requestInput:t.input,requestInit:t.init,error:t.error}}}(i,e,n,r);o&&t.notify(12,o)}),t.subscribe(0,function(i){for(var o=0,a=i;o<a.length;o++){var s=a[o];if(s.entryType===Gn.RESOURCE&&!On(s)){var c=Ti(s,e,n,r);c&&t.notify(12,c)}}})}function Ti(t,e,n,r){var i=dt(t.startTime),o=xi(e,n,i),a=function(t,e){var n=t.traceId;if(!n)return;return{_dd:{trace_id:t.traceId,rule_psr:ki(e)}}}(t,e);if(o||a){var s,c=kn(t),u=Ii(t),l=Ri(r,i,t.duration),d=K({date:i.timeStamp,resource:{id:ne(),type:c,url:t.name,status_code:(s=t.responseStatus,0===s?void 0:s)},type:"resource",_dd:{discarded:!o}},a,u,l);return{startTime:i.relative,rawRumEvent:d,domainContext:{performanceEntry:t}}}}function xi(t,e,n){return t.trackResources&&e.findTrackedSession(n.relative)}function Ii(t){return{resource:A({duration:(e=t,n=e.duration,r=e.startTime,i=e.responseEnd,vt(0===n&&r<i?wt(r,i):n)),size:Dn(t)},Nn(t))};var e,n,r,i}function ki(t){return at(t.traceSampleRate)?t.traceSampleRate/100:void 0}function Ri(t,e,n){if(tt(Z.RESOURCE_PAGE_STATES))return{_dd:{page_states:t.findAll(e.relative,n),page_was_discarded:String(document.wasDiscarded)}}}var Oi,Ni,Li=!1;function Pi(t,e,n,r,i){var o=1/0,a=Ct(e,r,[ct.POINTER_DOWN,ct.KEY_DOWN],function(t){o=t.timeStamp},{capture:!0,once:!0}).stop,s=0,c=t.subscribe(0,function(t){var r=function(t,e){for(var n=t.length-1;n>=0;n-=1){var r=t[n];if(e(r,n,t))return r}}(t,function(t){return t.entryType===Gn.LARGEST_CONTENTFUL_PAINT&&t.startTime<o&&t.startTime<n.timeStamp&&t.startTime<6e5&&t.size>s});if(r){var a=void 0;r.element&&(a=Yr(r.element,e.actionNameAttribute)),tt(Z.ZERO_LCP_TELEMETRY)&&function(t,e){if(Li)return;var n=0===t.startTime?"LCP with startTime = 0":void 0!==Oi&&t.startTime<Oi.startTime?"LCP with startTime < previous LCP":void 0!==Oi&&t.size<Oi.size?"LCP with size < previous LCP":void 0;n&&(Li=!0,yn(n,{debug:{entry:Ui(t),previousLcp:Oi,timeOrigin:performance.timeOrigin,now:_t(),lcpEntries:e.map(Ui)}}));Oi=Ui(t)}(r,t.filter(function(t){return t.entryType===Gn.LARGEST_CONTENTFUL_PAINT})),i({value:r.startTime,targetSelector:a}),s=r.size}}).unsubscribe;return{stop:function(){a(),c()}}}function Ui(t){var e=t.toJSON();return delete e.element,e}function Di(t,e,n,r){var i={},o=function(t,e){return{stop:t.subscribe(0,function(t){for(var n=0,r=t;n<r.length;n++){var i=r[n];i.entryType===Gn.NAVIGATION&&e({domComplete:i.domComplete,domContentLoaded:i.domContentLoadedEventEnd,domInteractive:i.domInteractive,loadEvent:i.loadEventEnd,firstByte:i.responseStart>=0&&i.responseStart<=_t()?i.responseStart:void 0})}}).unsubscribe}}(t,function(t){n(t.loadEvent),i.navigationTimings=t,r()}).stop,a=function(t,e){var n,r;return void 0===e&&(e=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=Ct(t,e,[ct.PAGE_HIDE,ct.VISIBILITY_CHANGE],function(t){t.type!==ct.PAGE_HIDE&&"hidden"
2!==document.visibilityState||(n=t.timeStamp,r())},{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}(e),s=function(t,e,n){return{stop:t.subscribe(0,function(t){var r=g(t,function(t){return t.entryType===Gn.PAINT&&"first-contentful-paint"===t.name&&t.startTime<e.timeStamp&&t.startTime<6e5});r&&n(r.startTime)}).unsubscribe}}(t,a,function(t){i.firstContentfulPaint=t,r()}).stop,c=Pi(t,e,a,window,function(t){i.largestContentfulPaint=t,r()}).stop,u=function(t,e,n,r){return{stop:t.subscribe(0,function(t){var i=g(t,function(t){return t.entryType===Gn.FIRST_INPUT&&t.startTime<n.timeStamp});if(i){var o=wt(i.startTime,i.processingStart),a=void 0;i.target&&Bn(i.target)&&(a=Yr(i.target,e.actionNameAttribute)),r({delay:o>=0?o:0,time:i.startTime,targetSelector:a})}}).unsubscribe}}(t,e,a,function(t){i.firstInput=t,r()}).stop;return{stop:function(){o(),s(),c(),u(),a.stop()},initialViewMetrics:i}}function Mi(t,e,n){if(!Zn(Gn.LAYOUT_SHIFT))return{stop:P};var r=0;n({value:0});var i=function(){var t,e,n,r,i=0,o=0;return{update:function(a){var s,c;void 0===t||a.startTime-e>=ut||a.startTime-t>=5e3?(t=e=a.startTime,i=a.value,o=0,n=void 0):(i+=a.value,e=a.startTime),a.value>o&&(o=a.value,r=a.startTime,n=(null===(s=a.sources)||void 0===s?void 0:s.length)?null===(c=g(a.sources,function(t){return!!t.node&&Bn(t.node)}))||void 0===c?void 0:c.node:void 0)},value:function(){return i},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}();return{stop:e.subscribe(0,function(e){for(var o=0,a=e;o<a.length;o++){var s=a[o];if(s.entryType===Gn.LAYOUT_SHIFT&&!s.hadRecentInput&&(i.update(s),i.value()>r)){var c=it(r=i.value(),4),u=i.largestLayoutShiftTarget(),l=void 0;u&&u.isConnected&&(l=Yr(u,t.actionNameAttribute)),n({value:c,targetSelector:l})}}}).unsubscribe}}var Hi=0,Bi=1/0,Fi=0;var zi,Vi=function(){return Ni?Hi:window.performance.interactionCount||0};function ji(t,e,n,r){if(!(Zn(Gn.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:P,stop:P};var i,o=function(t){"interactionCount"in performance||Ni||(Ni=new window.PerformanceObserver(p(function(t){t.getEntries().forEach(function(t){var e=t;e.interactionId&&(Bi=Math.min(Bi,e.interactionId),Fi=Math.max(Fi,e.interactionId),Hi=(Fi-Bi)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0});var e="initial_load"===t?0:Vi(),n={stopped:!1};function r(){return Vi()-e}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=o.getViewInteractionCount,s=o.stopViewInteractionCount,c=1/0,u=function(t){var e=[];function n(){e.sort(function(t,e){return e.duration-t.duration}).splice(10)}return{process:function(t){var r=e.findIndex(function(e){return t.interactionId===e.interactionId}),i=e[e.length-1];-1!==r?t.duration>e[r].duration&&(e[r]=t,n()):(e.length<10||t.duration>i.duration)&&(e.push(t),n())},estimateP98Interaction:function(){var n=Math.min(e.length-1,Math.floor(t()/50));return e[n]}}}(a),l=-1;return{getInteractionToNextPaint:function(){return l>=0?{value:Math.min(l,6e4),targetSelector:i}:a()?{value:0}:void 0},setViewEnd:function(t){c=t,s()},stop:r.subscribe(0,function(n){for(var r=0,o=n;r<o.length;r++){var a=o[r];(a.entryType===Gn.EVENT||a.entryType===Gn.FIRST_INPUT)&&a.interactionId&&a.startTime>=e&&a.startTime<=c&&u.process(a)}var s=u.estimateP98Interaction();s&&(l=s.duration,i=s.target&&Bn(s.target)?Yr(s.target,t.actionNameAttribute):void 0)}).unsubscribe}}function Gi(){var t,e=window.visualViewport;return t=e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(t)}function Ki(){var t,e=window.visualViewport;return t=e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(t)}function qi(t){return zi||(zi=function(t){return new Y(function(e){var n=L(function(){e.notify($i())},200).throttled;return St(t,window,ct.RESIZE,n,{capture:!0,passive:!0}).stop})}(t)),zi}
2function $i(){var t=window.visualViewport;return t?{width:Number(t.width*t.scale),height:Number(t.height*t.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}var Wi=ut;function Zi(t,e,n,r){void 0===r&&(r=function(t,e){void 0===e&&(e=Wi);return new Y(function(n){function r(){var t,e,r,i;n.notify((t=Ki(),e=$i().height,r=Math.round((document.scrollingElement||document.documentElement).scrollHeight),i=Math.round(e+t),{scrollHeight:r,scrollDepth:i,scrollTop:t}))}if(window.ResizeObserver){var i=L(r,e,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,a=new ResizeObserver(p(i.throttled));a.observe(o);var s=St(t,window,ct.SCROLL,i.throttled,{passive:!0});return function(){i.cancel(),a.unobserve(o),s.stop()}}})}(t));var i=0,o=0,a=0,s=r.subscribe(function(t){var r=t.scrollDepth,s=t.scrollTop,c=t.scrollHeight,u=!1;if(r>i&&(i=r,u=!0),c>o){o=c;var l=_t();a=wt(e.relative,l),u=!0}u&&n({maxDepth:Math.min(i,o),maxDepthScrollTop:s,maxScrollHeight:o,maxScrollHeightTime:a})});return{stop:function(){return s.unsubscribe()}}}function Yi(t,e,n,r,i,o){var a={},s=function(t,e,n,r,i,o){var a="initial_load"===r,s=!0,c=[];function u(){!s&&!a&&c.length>0&&o(Math.max.apply(Math,c))}return{stop:Nr(t,e,n,function(t){s&&(s=!1,t.hadActivity&&c.push(wt(i.timeStamp,t.end)),u())}
2).stop,setLoadEvent:function(t){a&&(a=!1,c.push(t),u())}}}(t,e,n,i,o,function(t){a.loadingTime=t,r()}),c=s.stop,u=s.setLoadEvent,l=Zi(n,o,function(t){a.scroll=t}).stop,d=Mi(n,t,function(t){a.cumulativeLayoutShift=t,r()}).stop,f=ji(n,o.relative,i,t),p=f.stop,v=f.getInteractionToNextPaint;return{stop:function(){c(),d(),l()},stopINPTracking:p,setLoadEvent:u,setViewEnd:f.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=v(),a}}}var Xi=3e5,Ji=3e5;function Qi(t,e,n,r,i,o,a){var c,u=new Set,l=d("initial_load",yt(),a);function d(i,o,a){var c=function(t,e,n,r,i,o,a){void 0===o&&(o=gt());var c,u,l,d,f=ne(),p=new Y,v={},h=0,m=M(r),_=!0;a&&(u=a.name,l=a.service,d=a.version);var g={id:f,name:u,startClocks:o,service:l,version:d};t.notify(2,g),t.notify(3,g);var y=L(z,3e3,{leading:!1}),w=y.throttled,b=y.cancel,E=Yi(t,e,n,w,i,o),A=E.setLoadEvent,S=E.setViewEnd,C=E.stop,T=E.stopINPTracking,x=E.getCommonViewMetrics,I="initial_load"===i?Di(t,n,A,w):{stop:P,initialViewMetrics:{}},R=I.stop,U=I.initialViewMetrics,D=function(t,e,n){var r=Rr({lifeCycle:t,isChildEvent:function(t){return t.view.id===e},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(t,f,w),H=D.stop,B=D.eventCounts,F=O(z,Xi);function z(){b(),h+=1;var e=void 0===c?mt():c.timeStamp;t.notify(4,{customTimings:v,documentVersion:h,id:f,name:u,service:l,version:d,loadingType:i,location:m,startClocks:o,commonViewMetrics:x(),initialViewMetrics:U,duration:wt(o.timeStamp,e),isActive:void 0===c,sessionIsActive:_,eventCounts:B})}return z(),{name:u,service:l,version:d,stopObservable:p,end:function(e){var n,r,i=this;void 0===e&&(e={}),c||(c=null!==(n=e.endClocks)&&void 0!==n?n:gt(),_=null===(r=e.sessionIsActive)||void 0===r||r,t.notify(5,{endClocks:c}),t.notify(6,{endClocks:c}),N(F),S(c.relative),C(),z(),k(function(){i.stop()},Ji))},stop:function(){R(),H(),T(),p.notify()},addTiming:function(t,e){if(!c){var n=function(t){return t<31536e6}(e)?e:wt(o.timeStamp,e);v[function(t){var e=t.replace(/[^a-zA-Z0-9-_.@$]/g,"_");e!==t&&s.warn("Invalid timing name: ".concat(t,", sanitized to: ").concat(e));return e}(t)]=n,w()}}}}(e,n,r,t,i,o,a);return u.add(c),c.stopObservable.subscribe(function(){u.delete(c)}),c}return e.subscribe(10,function(){l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version})}),e.subscribe(9,function(){l.end({sessionIsActive:!1})}),e.subscribe(11,function(t){t.reason!==An.UNLOADING&&t.reason!==An.PAGEHIDE||l.end()}),o&&(c=function(t){return t.subscribe(function(t){var e,n,r,i,o=t.oldLocation,a=t.newLocation;n=a,(e=o).pathname===n.pathname&&(r=n.hash,""!==(i=r.substring(1))&&document.getElementById(i)||to(n.hash)===to(e.hash))||(l.end(),l=d("route_change"))})}(i)),{addTiming:function(t,e){void 0===e&&(e=mt()),l.addTiming(t,e)},startView:function(t,e){l.end({endClocks:e}),l=d("route_change",e,t)},stop:function(){null==c||c.unsubscribe(),l.end(),u.forEach(function(t){return t.stop()})}}}function to(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}function eo(t,e,n,r,i,o,a,s,c){return t.subscribe(4,function(n){return t.notify(12,function(t,e,n,r,i){var o,a,s,c,u,l,d,f,p,v,h,m,_,g,y=r.getReplayStats(t.id),w=n.findFeatureFlagEvaluations(t.startClocks.relative),b=i.findAll(t.startClocks.relative,t.duration),E={_dd:{document_version:t.documentVersion,replay_stats:y,page_states:b,configuration:{start_session_replay_recording_manually:e.startSessionReplayRecordingManually}},date:t.startClocks.timeStamp,type:"view",view:{action:{count:t.eventCounts.actionCount},frustration:{count:t.eventCounts.frustrationCount},cumulative_layout_shift:null===(o=t.commonViewMetrics.cumulativeLayoutShift)||void 0===o?void 0:o.value,cumulative_layout_shift_target_selector:null===(a=t.commonViewMetrics.cumulativeLayoutShift)||void 0===a?void 0:a.targetSelector,first_byte:vt(null===(s=t.initialViewMetrics.navigationTimings)||void 0===s?void 0:s.firstByte),dom_complete:vt(null===(c=t.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domComplete),dom_content_loaded:vt(null===(u=t.initialViewMetrics.navigationTimings)||void 0===u?void 0:u.domContentLoaded),dom_interactive:vt(null===(l=t.initialViewMetrics.navigationTimings)||void 0===l?void 0:l.domInteractive),error:{count:t.eventCounts.errorCount},first_contentful_paint:vt(t.initialViewMetrics.firstContentfulPaint),first_input_delay:vt(null===(d=t.initialViewMetrics.firstInput)||void 0===d?void 0:d.delay),first_input_time:vt(null===(f=t.initialViewMetrics.firstInput)||void 0===f?void 0:f.time),first_input_target_selector:null===(p=t.initialViewMetrics.firstInput)||void 0===p?void 0:p.targetSelector,interaction_to_next_paint:vt(null===(v=t.commonViewMetrics.interactionToNextPaint)||void 0===v?void 0:v.value),interaction_to_next_paint_target_selector:null===(h=t.commonViewMetrics.interactionToNextPaint)||void 0===h?void 0:h.targetSelector,is_active:t.isActive,name:t.name,largest_contentful_paint:vt(null===(m=t.initialViewMetrics.largestContentfulPaint)||void 0===m?void 0:m.value),largest_contentful_paint_target_selector:null===(_=t.initialViewMetrics.largestContentfulPaint)||void 0===_?void 0:_.targetSelector,load_event:vt(null===(g=t.initialViewMetrics.navigationTimings)||void 0===g?void 0:g.loadEvent),loading_time:no(vt(t.commonViewMetrics.loadingTime)),loading_type:t.loadingType,long_task:{count:t.eventCounts.longTaskCount},resource:{count:t.eventCounts.resourceCount},time_spent:vt(t.duration)},feature_flags:w&&!B(w)?w:void 0,display:t.commonViewMetrics.scroll?{scroll:{max_depth:t.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:t.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:t.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:vt(t.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!y||void 0,is_active:!!t.sessionIsActive&&void 0},privacy:{replay_level:e.defaultPrivacyLevel}};B(t.customTimings)||(E.view.custom_timings=function(t,e){for(var n={},r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];n[o]=e(t[o])}return n}(t.customTimings,vt));return{rawRumEvent:E,startTime:t.startClocks.relative,domainContext:{location:t.location}}}(n,e,o,s,a))}),Qi(n,t,r,e,i,!e.trackViewsManually,c)}function no(t){return at(t)&&t<0?void 0:t}var ro=lt,io=ve,oo=[];function ao(t,e,n,r){var i=new Y,o=new Y,a=He(t.sessionStoreStrategyType,e,n);oo.push(function(){return a.stop()});var s=new _r(io);function c(){return{id:a.getSession().id,trackingType:a.getSession()[e]}}return oo.push(function(){return s.stop()}),a.renewObservable.subscribe(function(){s.add(c(),_t()),i.notify()}),a.expireObservable.subscribe(function(){o.notify(),s.closeActive(_t())}),a.expandOrRenewSession(),s.add(c(),yt().relative),r.observable.subscribe(function(){r.isGranted()?a.expandOrRenewSession():a.expire()}),function(t,e){var n=Ct(t,window,[ct.CLICK,ct.TOUCH_START,ct.KEY_DOWN,ct.SCROLL],e,{capture:!0,passive:!0}).stop;oo.push(n)}(t,function(){r.isGranted()&&a.expandOrRenewSession()}),function(t,e){var n=function(){"visible"===document.visibilityState&&e()},r=St(t,document,ct.VISIBILITY_CHANGE,n).stop;oo.push(r);var i=O(n,ro);oo.push(function(){N(i)})}(t,function(){return a.expandSession()}),{findActiveSession:function(t){return s.find(t)},renewObservable:i,expireObservable:o,expire:a.expire}}function so(t,e,n){var r=ao(t,"rum",function(e){return function(t,e){var n;n=function(t){return"0"===t||"1"===t||"2"===t}(e)?e:rt(t.sessionSampleRate)?rt(t.sessionReplaySampleRate)?"1":"2":"0";return{trackingType:n,isTracked:co(n)}}(t,e)},n);return r.expireObservable.subscribe(function(){e.notify(9)}
2),r.renewObservable.subscribe(function(){e.notify(10)}),{findTrackedSession:function(t){var e=r.findActiveSession(t);if(e&&co(e.trackingType))return{id:e.id,sessionReplayAllowed:"1"===e.trackingType}},expire:r.expire,expireObservable:r.expireObservable}}function co(t){return"2"===t||"1"===t}var uo=function(){function t(t,e,n,r){var i=this;this.encoder=t,this.request=e,this.flushController=n,this.messageBytesLimit=r,this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe(function(t){return i.flush(t)})}return t.prototype.add=function(t){this.addOrUpdate(t)},t.prototype.upsert=function(t,e){this.addOrUpdate(t,e)},t.prototype.stop=function(){this.flushSubscription.unsubscribe()},t.prototype.flush=function(t){var e=y(this.upsertBuffer).join("\n");this.upsertBuffer={};var n=Sn(t.reason),r=n?this.request.sendOnExit:this.request.send;if(n&&this.encoder.isAsync){var i=this.encoder.finishSync();i.outputBytesCount&&r(lo(i,t));var o=[i.pendingData,e].filter(Boolean).join("\n");o&&r({data:o,bytesCount:x(o),flushReason:t.reason})}else e&&this.encoder.write(this.encoder.isEmpty?e:"\n".concat(e)),this.encoder.finish(function(e){r(lo(e,t))})},t.prototype.addOrUpdate=function(t,e){var n=U(t),r=this.encoder.estimateEncodedBytesCount(n);r>=this.messageBytesLimit?s.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(e)&&this.remove(e),this.push(n,r,e))},t.prototype.push=function(t,e,n){var r=this;this.flushController.notifyBeforeAddMessage(e),void 0!==n?(this.upsertBuffer[n]=t,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?t:"\n".concat(t),function(t){r.flushController.notifyAfterAddMessage(t-e)})},t.prototype.remove=function(t){var e=this.upsertBuffer[t];delete this.upsertBuffer[t];var n=this.encoder.estimateEncodedBytesCount(e);this.flushController.notifyAfterRemoveMessage(n)},t.prototype.hasMessageFor=function(t){return void 0!==t&&void 0!==this.upsertBuffer[t]},t}();function lo(t,e){return{data:"string"==typeof t.output?t.output:new Blob([t.output],{type:"text/plain"}),bytesCount:t.outputBytesCount,encoding:t.encoding,flushReason:e.reason}}var fo=3145728,po=ut;function vo(t,e,n,r,i){0===e.transportStatus&&0===e.queuedPayloads.size()&&e.bandwidthMonitor.canHandle(t)?mo(t,e,n,{onSuccess:function(){return _o(0,e,n,r,i)},onFailure:function(){e.queuedPayloads.enqueue(t),ho(e,n,r,i)}}):e.queuedPayloads.enqueue(t)}function ho(t,e,n,r){2===t.transportStatus&&k(function(){mo(t.queuedPayloads.first(),t,e,{onSuccess:function(){t.queuedPayloads.dequeue(),t.currentBackoffTime=po,_o(1,t,e,n,r)},onFailure:function(){t.currentBackoffTime=Math.min(6e4,2*t.currentBackoffTime),ho(t,e,n,r)}})},t.currentBackoffTime)}function mo(t,e,n,r){var i=r.onSuccess,o=r.onFailure;e.bandwidthMonitor.add(t),n(t,function(n){e.bandwidthMonitor.remove(t),!function(t){return"opaque"!==t.type&&(0===t.status&&!navigator.onLine||408===t.status||429===t.status||(e=t.status,e>=500));var e}(n)?(e.transportStatus=0,i()):(e.transportStatus=e.bandwidthMonitor.ongoingRequestCount>0?1:2,t.retry={count:t.retry?t.retry.count+1:1,lastFailureStatus:n.status},o())})}function _o(t,e,n,r,i){0===t&&e.queuedPayloads.isFull()&&!e.queueFullReported&&(i({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:Qn,startClocks:gt()}),e.queueFullReported=!0);var o=e.queuedPayloads;for(e.queuedPayloads=go();o.size()>0;)vo(o.dequeue(),e,n,r,i)}function go(){var t=[];return{bytesCount:0,enqueue:function(e){this.isFull()||(t.push(e),this.bytesCount+=e.bytesCount)},first:function(){return t[0]},dequeue:function(){var e=t.shift();return e&&(this.bytesCount-=e.bytesCount),e},size:function(){return t.length},isFull:function(){return this.bytesCount>=fo}}}function yo(t,e,n,r){var i={transportStatus:0,currentBackoffTime:po,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(t){return 0===this.ongoingRequestCount||this.ongoingByteCount+t.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(t){this.ongoingRequestCount+=1,this.ongoingByteCount+=t.bytesCount},remove:function(t){this.ongoingRequestCount-=1,this.ongoingByteCount-=t.bytesCount}},queuedPayloads:go(),queueFullReported:!1},o=function(r,i){return function(t,e,n,r,i){var o=function(){try{return window.Request&&"keepalive"in new Request
2("http://a")}catch(t){return!1}}()&&r.bytesCount<n;if(o){var a=e.build("fetch",r);fetch(a,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(p(function(t){return null==i?void 0:i({status:t.status,type:t.type})}),p(function(){var n=e.build("xhr",r);bo(t,n,r.data,i)}))}else{var s=e.build("xhr",r);bo(t,s,r.data,i)}}(t,e,n,r,i)};return{send:function(t){vo(t,i,o,e.trackType,r)},sendOnExit:function(r){!function(t,e,n,r){var i=!!navigator.sendBeacon&&r.bytesCount<n;if(i)try{var o=e.build("beacon",r);if(navigator.sendBeacon(o,r.data))return}catch(t){!function(t){wo||(wo=!0,wn(t))}(t)}var a=e.build("xhr",r);bo(t,a,r.data)}(t,e,n,r)}}}var wo=!1;function bo(t,e,n,r){var i=new XMLHttpRequest;i.open("POST",e,!0),n instanceof Blob&&i.setRequestHeader("Content-Type",n.type),St(t,i,"loadend",function(){null==r||r({status:i.status})},{once:!0}),i.send(n)}function Eo(t){var e,n=t.messagesLimit,r=t.bytesLimit,i=t.durationLimit,o=t.pageExitObservable,a=t.sessionExpireObservable,s=o.subscribe(function(t){return f(t.reason)}),c=a.subscribe(function(){return f("session_expire")}),u=new Y(function(){return function(){s.unsubscribe(),c.unsubscribe()}}),l=0,d=0;function f(t){if(0!==d){var e=d,n=l;d=0,l=0,p(),u.notify({reason:t,messagesCount:e,bytesCount:n})}}function p(){R(e),e=void 0}return{flushObservable:u,get messagesCount(){return d},notifyBeforeAddMessage:function(t){l+t>=r&&f("bytes_limit"),d+=1,l+=t,void 0===e&&(e=k(function(){f("duration_limit")},i))},notifyAfterAddMessage:function(t){void 0===t&&(t=0),l+=t,d>=n?f("messages_limit"):l>=r&&f("bytes_limit")},notifyAfterRemoveMessage:function(t){l-=t,0===(d-=1)&&p()}}}function Ao(t,e,n,r,i,o,a){var s=t.replica,c=function(t,e,n,r,i,o){var a=c(t,e),s=n&&c(t,n);function c(t,e){var n=e.endpoint,a=e.encoder;return new uo(a,yo(t,n,t.batchBytesLimit,r),Eo({messagesLimit:t.batchMessagesLimit,bytesLimit:t.batchBytesLimit,durationLimit:t.flushTimeout,pageExitObservable:i,sessionExpireObservable:o}),t.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(t,e){void 0===e&&(e=!0),a.add(t),s&&e&&s.add(n.transformMessage?n.transformMessage(t):t)},upsert:function(t,e){a.upsert(t,e),s&&s.upsert(n.transformMessage?n.transformMessage(t):t,e)},stop:function(){a.stop(),null==s||s.stop()}}}(t,{endpoint:t.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(t){return K(t,{application:{id:s.applicationId}})},encoder:a(3)},r,i,o);return e.subscribe(13,function(t){"view"===t.type?c.upsert(t,t.view.id):c.add(t)}),n.subscribe(function(e){return c.add(e,function(t){return t.site===je}(t))}),c}var So=ve;function Co(t,e){var n=M(e);return new Y(function(r){var i=function(t,e){var n=yr(history,"pushState",function(t){(0,t.onPostCall)(e)}).stop,r=yr(history,"replaceState",function(t){(0,t.onPostCall)(e)}).stop,i=St(t,window,ct.POP_STATE,e).stop;return{stop:function(){n(),r(),i()}}}(t,a).stop,o=function(t,e){return St(t,window,ct.HASH_CHANGE,e)}(t,a).stop;function a(){if(n.href!==e.href){var t=M(e);r.notify({newLocation:t,oldLocation:n}),n=t}}return function(){i(),o()}})}var To=ve;var xo,Io,ko;function Ro(){0!==xo.batchCount&&(yn("Customer data measures",xo),Lo())}function Oo(t,e){t.sum+=e,t.min=Math.min(t.min,e),t.max=Math.max(t.max,e)}function No(t,e){t.sum+=e.sum,t.min=Math.min(t.min,e.min),t.max=Math.max(t.max,e.max)}function Lo(){xo={batchCount:0,batchBytesCount:{min:1/0,max:0,sum:0},batchMessagesCount:{min:1/0,max:0,sum:0},globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}function Po(){ko=!1,Io={globalContextBytes:{min:1/0,max:0,sum:0},userContextBytes:{min:1/0,max:0,sum:0},featureFlagBytes:{min:1/0,max:0,sum:0}}}var Uo=ve;function Do(t,e){void 0===e&&(e=500);var n,r=new _r(Uo,4e3);o(Mo(),_t());var i=Ct(t,window,[ct.PAGE_SHOW,ct.FOCUS,ct.BLUR,ct.VISIBILITY_CHANGE,ct.RESUME,ct.FREEZE,ct.PAGE_HIDE],function(t){o(function(t){if(t.type===ct.FREEZE)return"frozen";if(t.type===ct.PAGE_HIDE)return t.persisted?"frozen":"terminated";return Mo()}(t),t.timeStamp)},{capture:!0}).stop;
2function o(t,e){void 0===e&&(e=_t()),t!==n&&(n=t,r.closeActive(e),r.add({state:n,startTime:e},e))}return{findAll:function(t,n){var i=r.findAll(t,n);if(0!==i.length){for(var o=[],a=Math.max(0,i.length-e),s=i.length-1;s>=a;s--){var c=i[s],u=wt(t,c.startTime);o.push({state:c.state,start:vt(u)})}return o}},isInActivePageStateAt:function(t){var e=r.find(t);return void 0!==e&&"active"===e.state},addPageState:o,stop:function(){i(),r.stop()}}}function Mo(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function Ho(t){var e=new Map;return{startDurationVital:function(t){e.set(t.name,t)},stopDurationVital:function(n){var r=e.get(n.name);if(r){var i={name:r.name,type:"duration",startClocks:r.startClocks,value:wt(r.startClocks.timeStamp,n.stopClocks.timeStamp),context:K(r.context,n.context)};t.notify(12,function(t){var e;return{rawRumEvent:{date:t.startClocks.timeStamp,vital:{id:ne(),type:t.type,name:t.name,custom:(e={},e[t.name]=t.value,e)},type:"vital"},startTime:t.startClocks.relative,customerContext:t.context,domainContext:{}}}(i)),e.delete(n.name)}}}}function Bo(t,e){var n=e.session,r=e.viewContext,i=e.errorType,o=n?n.id:"no-session-id",a=[];void 0!==i&&a.push("error-type=".concat(i)),r&&(a.push("seed=".concat(r.id)),a.push("from=".concat(r.startClocks.timeStamp)));var s,c,u,l=(c=(s=t).site,u=s.subdomain||function(t){switch(t.site){case Ke:case qe:return"app";case je:return"dd";default:return}}(s),"https://".concat(u?"".concat(u,"."):"").concat(c)),d="/rum/replay/sessions/".concat(o);return"".concat(l).concat(d,"?").concat(a.join("&"))}var Fo,zo=2,Vo=3,jo=4,Go=6,Ko=7,qo=8,$o=9,Wo=0,Zo=1,Yo=2,Xo=3,Jo=4,Qo=11,ta=0,ea=1,na=2,ra=3,ia=4,oa=5,aa=6,sa=7,ca=8,ua=0,la=1,da=2,fa=3,pa=4,va=5,ha=6,ma=7,_a=9,ga=0,ya=1;function wa(t){return ba(t).segments_count}function ba(t){var e;return Fo||(Fo=new Map),Fo.has(t)?e=Fo.get(t):(e={records_count:0,segments_count:0,segments_total_raw_size:0},Fo.set(t,e),Fo.size>10&&function(){if(!Fo)return;if(Fo.keys)Fo.delete(Fo.keys().next().value);else{var t=!0;Fo.forEach(function(e,n){t&&(Fo.delete(n),t=!1)})}}()),e}function Ea(t,e){return{data:A({source:t},e),type:Vo,timestamp:mt()}}var Aa={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Xe.ALLOW,MASK:Xe.MASK,MASK_USER_INPUT:Xe.MASK_USER_INPUT},Sa="data-dd-privacy",Ca="hidden",Ta="***",xa="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",Ia={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function ka(t,e,n){if(n&&n.has(t))return n.get(t);var r=jn(t),i=r?ka(r,e,n):e,o=Ra(Oa(t),i);return n&&n.set(t,o),o}function Ra(t,e){switch(e){case Aa.HIDDEN:case Aa.IGNORE:return e}switch(t){case Aa.ALLOW:case Aa.MASK:case Aa.MASK_USER_INPUT:case Aa.HIDDEN:case Aa.IGNORE:return t;default:return e}}function Oa(t){if(Bn(t)){var e=t.getAttribute(Sa);if("BASE"===t.tagName)return Aa.ALLOW;if("INPUT"===t.tagName){var n=t;if("password"===n.type||"email"===n.type||"tel"===n.type)return Aa.MASK;if("hidden"===n.type)return Aa.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return Aa.MASK}return e===Ca||t.classList.contains("dd-privacy-hidden")?Aa.HIDDEN:"mask"===e||t.classList.contains("dd-privacy-mask")?Aa.MASK:"mask-user-input"===e||t.classList.contains("dd-privacy-mask-user-input")?Aa.MASK_USER_INPUT:"allow"===e||t.classList.contains("dd-privacy-allow")?Aa.ALLOW:function(t){if("SCRIPT"===t.nodeName)return!0;if("LINK"===t.nodeName){var e=i("rel");return/preload|prefetch/i.test(e)&&"script"===i("as")||"shortcut icon"===e||"icon"===e}if("META"===t.nodeName){var n=i("name"),r=(e=i("rel"),i("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===e||"apple-touch-icon"===e||"shortcut icon"===e||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||t.hasAttribute("http-equiv")||"author"===n||"generator"===n||"framework"===n||"publisher"===n||"progid"===n||/^article:/.test(r)||/^product:/.test(r)||"google-site-verification"===n||"yandex-verification"===n||"csrf-token"===n||"p:domain_verify"===n||"verify-v1"===n||"verification"===n||"shopify-checkout-api-token"===n}function i(e){return(t.getAttribute(e)||"").toLowerCase()}return!1}(t)?Aa.IGNORE:void 0}}function Na(t,e){switch(e){case Aa.MASK:case Aa.HIDDEN:case Aa.IGNORE:return!0;case Aa.MASK_USER_INPUT:return Hn(t)?La(t.parentNode):La(t);default:return!1}}
2function La(t){if(!t||t.nodeType!==t.ELEMENT_NODE)return!1;var e=t;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!Ia[e.tagName]}function Pa(t,e,n){var r,i=null===(r=t.parentElement)||void 0===r?void 0:r.tagName,o=t.textContent||"";if(!e||o.trim()){if("SCRIPT"===i)o=Ta;else if(n===Aa.HIDDEN)o=Ta;else if(Na(t,n))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!o.trim())return}else o="OPTION"===i?Ta:o.replace(/\S/g,"x");return o}}var Ua=new WeakMap;function Da(t){return Ua.has(t)}function Ma(t){return Ua.get(t)}function Ha(t,e){var n=t.tagName,r=t.value;if(Na(t,e)){var i=t.type;if("INPUT"===n&&("button"===i||"submit"===i||"reset"===i))return r;if(!r||"OPTION"===n)return;return Ta}return"OPTION"===n||"SELECT"===n?t.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Ba=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Fa=/^[A-Za-z]+:|^\/\//,za=/^data:.*,/i;function Va(t,e){return t.replace(Ba,function(t,n,r,i,o,a){var s=r||o||a;if(!e||!s||Fa.test(s)||za.test(s))return t;var c=n||i||"";return"url(".concat(c).concat(function(t,e){try{return Fe(t,e).href}catch(e){return t}}(s,e)).concat(c,")")})}var ja=/[^a-z1-6-_]/;function Ga(t){var e=t.toLowerCase().trim();return ja.test(e)?"div":e}function Ka(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(t,"' height='").concat(e,"' style='background-color:silver'%3E%3C/svg%3E")}function qa(t){if(void 0!==t&&0!==t.length)return t.map(function(t){var e=t.cssRules||t.rules;return{cssRules:Array.from(e,function(t){return t.cssText}),disabled:t.disabled||void 0,media:t.media.length>0?Array.from(t.media):void 0}})}function $a(t,e,n,r){if(e===Aa.HIDDEN)return null;var i=t.getAttribute(n);if(e===Aa.MASK&&n!==Sa&&!$r.includes(n)&&n!==r.actionNameAttribute){var o=t.tagName;switch(n){case"title":case"alt":case"placeholder":return Ta}if("IMG"===o&&("src"===n||"srcset"===n)){var a=t;if(a.naturalWidth>0)return Ka(a.naturalWidth,a.naturalHeight);var s=t.getBoundingClientRect(),c=s.width,u=s.height;return c>0||u>0?Ka(c,u):xa}if("SOURCE"===o&&("src"===n||"srcset"===n))return xa;if("A"===o&&"href"===n)return Ta;if(i&&b(n,"data-"))return Ta}return i&&"string"==typeof i&&i.length>1e5&&"data:"===i.slice(0,5)?"data:truncated":i}function Wa(t){if(!t)return null;var e;try{e=t.rules||t.cssRules}catch(t){}return e?Va(Array.from(e,2===me()?Za:Ya).join(""),t.href):null}function Za(t){if(function(t){return"selectorText"in t}(t)&&t.selectorText.includes(":")){return t.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2")}return Ya(t)}function Ya(t){return function(t){return"styleSheet"in t}(t)&&Wa(t.styleSheet)||t.cssText}function Xa(t,e){var n=function(t,e){switch(t.nodeType){case t.DOCUMENT_NODE:return function(t,e){return{type:Wo,childNodes:Qa(t,e),adoptedStyleSheets:qa(t.adoptedStyleSheets)}}(t,e);case t.DOCUMENT_FRAGMENT_NODE:return function(t,e){var n=zn(t);n&&e.serializationContext.shadowRootsController.addShadowRoot(t);return{type:Qo,childNodes:Qa(t,e),isShadowRoot:n,adoptedStyleSheets:n?qa(t.adoptedStyleSheets):void 0}}(t,e);case t.DOCUMENT_TYPE_NODE:return{type:Zo,name:(n=t).name,publicId:n.publicId,systemId:n.systemId};case t.ELEMENT_NODE:return function(t,e){var n,r=Ga(t.tagName),i=(a=t,"svg"===a.tagName||a instanceof SVGElement||void 0),o=Ra(Oa(t),e.parentNodePrivacyLevel);var a;if(o===Aa.HIDDEN){var s=t.getBoundingClientRect(),c=s.width,u=s.height;return{type:Yo,tagName:r,attributes:(n={rr_width:"".concat(c,"px"),rr_height:"".concat(u,"px")},n[Sa]=Ca,n),childNodes:[],isSVG:i}}if(o===Aa.IGNORE)return;var l=function(t,e,n){var r;if(e===Aa.HIDDEN)return{};for(var i={},o=Ga(t.tagName),a=t.ownerDocument,s=0;s<t.attributes.length;s+=1){var c=t.attributes.item(s).name,u=$a(t,e,c,n.configuration);null!==u&&(i[c]=u)}if(t.value&&("textarea"===o||"select"===o||"option"===o||"input"===o)){var l=Ha(t,e);void 0!==l&&(i.value=l)}if("option"===o&&e===Aa.ALLOW){var d=t;d.selected&&(i.selected=d.selected)}if("link"===o){var f,p=Array.from(a.styleSheets).find(function(e){return e.href===t.href});(f=Wa(p))&&p&&!tt(Z.DISABLE_REPLAY_INLINE_CSS)&&(i._cssText=f)}"style"===o&&t.sheet&&(f=Wa(t.sheet))&&(i._cssText=f);var v,h,m=t;if("input"!==o||"radio"!==m.type&&"checkbox"!==m.type||(e===Aa.ALLOW?i.checked=!!m.checked:Na(m,e)&&delete i.checked),"audio"===o||"video"===o){var _=t;i.rr_mediaState=_.paused?"paused":"played"}
2var g=n.serializationContext;switch(g.status){case 0:v=Math.round(t.scrollTop),h=Math.round(t.scrollLeft),(v||h)&&g.elementsScrollPositions.set(t,{scrollTop:v,scrollLeft:h});break;case 1:g.elementsScrollPositions.has(t)&&(v=(r=g.elementsScrollPositions.get(t)).scrollTop,h=r.scrollLeft)}return h&&(i.rr_scrollLeft=h),v&&(i.rr_scrollTop=v),i}(t,o,e),d=[];if(function(t){return t.childNodes.length>0||Fn(t)}(t)&&"style"!==r){d=Qa(t,e.parentNodePrivacyLevel===o&&e.ignoreWhiteSpace===("head"===r)?e:A({},e,{parentNodePrivacyLevel:o,ignoreWhiteSpace:"head"===r}))}return{type:Yo,tagName:r,attributes:l,childNodes:d,isSVG:i}}(t,e);case t.TEXT_NODE:return function(t,e){var n=Pa(t,e.ignoreWhiteSpace||!1,e.parentNodePrivacyLevel);if(void 0===n)return;return{type:Xo,textContent:n}}(t,e);case t.CDATA_SECTION_NODE:return{type:Jo,textContent:""}}var n}(t,e);if(!n)return null;var r=Ma(t)||Ja++,i=n;return i.id=r,function(t,e){Ua.set(t,e)}(t,r),e.serializedNodeIds&&e.serializedNodeIds.add(r),i}var Ja=1;function Qa(t,e){var n=[];return Vn(t,function(t){var r=Xa(t,e);r&&n.push(r)}),n}function ts(t,e,n){return Xa(t,{serializationContext:n,parentNodePrivacyLevel:e.defaultPrivacyLevel,configuration:e})}function es(t){return Boolean(t.changedTouches)}function ns(t){return!0===t.composed&&Fn(t.target)?t.composedPath()[0]:t.target}var rs=function(t,e){var n=window.visualViewport,r={layoutViewportX:t,layoutViewportY:e,visualVie
2wportX:t,visualViewportY:e};return n?(!function(t){return Math.abs(t.pageTop-t.offsetTop-window.scrollY)>25||Math.abs(t.pageLeft-t.offsetLeft-window.scrollX)>25}(n)?(r.visualViewportX=Math.round(t-n.offsetLeft),r.visualViewportY=Math.round(e-n.offsetTop)):(r.layoutViewportX=Math.round(t+n.offsetLeft),r.layoutViewportY=Math.round(e+n.offsetTop)),r):r},is=function(t){return{scale:t.scale,offsetLeft:t.offsetLeft,offsetTop:t.offsetTop,pageLeft:t.pageLeft,pageTop:t.pageTop,height:t.height,width:t.width}};function os(t){var e=es(t)?t.changedTouches[0]:t,n=e.clientX,r=e.clientY;if(window.visualViewport){var i=rs(n,r);n=i.visualViewportX,r=i.visualViewportY}if(Number.isFinite(n)&&Number.isFinite(r))return{x:n,y:r};t.isTrusted&&yn("mouse/touch event without x/y")}var as;var ss=((as={})[ct.POINTER_UP]=ua,as[ct.MOUSE_DOWN]=la,as[ct.CLICK]=da,as[ct.CONTEXT_MENU]=fa,as[ct.DBL_CLICK]=pa,as[ct.FOCUS]=va,as[ct.BLUR]=ha,as[ct.TOUCH_START]=ma,as[ct.TOUCH_END]=_a,as);function cs(t,e,n){void 0===n&&(n=document);var r,i=t.defaultPrivacyLevel,o=new WeakMap,a=n!==document,s=Ct(t,n,a?[ct.CHANGE]:[ct.INPUT,ct.CHANGE],function(t){var e=ns(t);(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)&&u(e)},{capture:!0,passive:!0}).stop;if(a)r=P;else{var c=[wr(HTMLInputElement.prototype,"value",u),wr(HTMLInputElement.prototype,"checked",u),wr(HTMLSelectElement.prototype,"value",u),wr(HTMLTextAreaElement.prototype,"value",u),wr(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){c.forEach(function(t){return t.stop()})}}return function(){r(),s()};function u(t){var e=ka(t,i);if(e!==Aa.HIDDEN){var n,r=t.type;if("radio"===r||"checkbox"===r){if(Na(t,e))return;n={isChecked:t.checked}}else{var o=Ha(t,e);if(void 0===o)return;n={text:o}}l(t,n);var a,s,c=t.name;"radio"===r&&c&&t.checked&&(a=document.querySelectorAll('input[type="radio"][name="'.concat(E(c),'"]')),s=function(e){e!==t&&l(e,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(t,n){if(Da(t)){var r=o.get(t);r&&r.text===n.text&&r.isChecked===n.isChecked||(o.set(t,n),e(A({id:Ma(t)},n)))}}}function us(t){for(var e=[],n=t;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);e.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var i=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return e.unshift(i),e}}function ls(t){var e=P,n=[];function r(){e(),t(n),n=[]}return{addMutations:function(t){0===n.length&&(e=function(t,e){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(p(t),e);return function(){return window.cancelIdleCallback(n)}}
2var r=window.requestAnimationFrame(p(t));return function(){return window.cancelAnimationFrame(r)}}(r,{timeout:100})),n.push.apply(n,t)},flush:r,stop:function(){e()}}}function ds(t,e,n,r){var i=Cn();if(!i)return{stop:P,flush:P};var o=ls(function(r){!function(t,e,n,r){var i=new Map;t.filter(function(t){return"childList"===t.type}).forEach(function(t){t.removedNodes.forEach(function(t){fs(t,r.removeShadowRoot)})});var o=t.filter(function(t){return t.target.isConnected&&function(t){for(var e=t;e;){if(!Da(e)&&!zn(e))return!1;e=jn(e)}return!0}(t.target)&&ka(t.target,n.defaultPrivacyLevel,i)!==Aa.HIDDEN}),a=function(t,e,n,r){for(var i=new Set,o=new Map,a=function(t){t.addedNodes.forEach(function(t){i.add(t)}),t.removedNodes.forEach(function(e){i.has(e)||o.set(e,t.target),i.delete(e)})},s=0,c=t;s<c.length;s++){a(c[s])}var u=Array.from(i);l=u,l.sort(function(t,e){var n=t.compareDocumentPosition(e);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0});var l;for(var d=new Set,f=[],p=0,v=u;p<v.length;p++){var h=v[p];if(!w(h)){var m=ka(h.parentNode,e.defaultPrivacyLevel,r);if(m!==Aa.HIDDEN&&m!==Aa.IGNORE){var _=Xa(h,{serializedNodeIds:d,parentNodePrivacyLevel:m,serializationContext:{status:2,shadowRootsController:n},configuration:e});if(_){var g=jn(h);f.push({nextId:b(h),parentId:Ma(g),node:_})}}}}var y=[];return o.forEach(function(t,e){Da(e)&&y.push({parentId:Ma(t),id:Ma(e)})}),{adds:f,removes:y,hasBeenSerialized:w};function w(t){return Da(t)&&d.has(Ma(t))}function b(t){for(var e=t.nextSibling;e;){if(Da(e))return Ma(e);e=e.nextSibling}return null}}(o.filter(function(t){return"childList"===t.type}),n,r,i),s=a.adds,c=a.removes,u=a.hasBeenSerialized,l=function(t,e,n){for(var r,i=[],o=new Set,a=t.filter(function(t){return!o.has(t.target)&&(o.add(t.target),!0)}),s=0,c=a;s<c.length;s++){var u=c[s];if(u.target.textContent!==u.oldValue){var l=ka(jn(u.target),e.defaultPrivacyLevel,n);l!==Aa.HIDDEN&&l!==Aa.IGNORE&&i.push({id:Ma(u.target),value:null!==(r=Pa(u.target,!1,l))&&void 0!==r?r:null})}}return i}(o.filter(function(t){return"characterData"===t.type&&!u(t.target)}),n,i),d=function(t,e,n){for(var r=[],i=new Map,o=t.filter(function(t){var e=i.get(t.target);return!(null==e?void 0:e.has(t.attributeName))&&(e?e.add(t.attributeName):i.set(t.target,new Set([t.attributeName])),!0)}),a=new Map,s=0,c=o;s<c.length;s++){var u=c[s];if(u.target.getAttribute(u.attributeName)!==u.oldValue){var l=ka(u.target,e.defaultPrivacyLevel,n),d=$a(u.target,l,u.attributeName,e),f=void 0;if("value"===u.attributeName){var p=Ha(u.target,l);if(void 0===p)continue;f=p}else f="string"==typeof d?d:null;var v=a.get(u.target);v||(v={id:Ma(u.target),attributes:{}},r.push(v),a.set(u.target,v)),v.attributes[u.attributeName]=f}}return r}(o.filter(function(t){return"attributes"===t.type&&!u(t.target)}),n,i);if(!(l.length||d.length||c.length||s.length))return;e({adds:s,removes:c,texts:l,attributes:d})}(r.concat(a.takeRecords()),t,e,n)}),a=new i(p(o.addMutations));return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),o.stop()},flush:function(){o.flush()}}}function fs(t,e){Fn(t)&&e(t.shadowRoot),Vn(t,function(t){return fs(t,e)})}function ps(t,e){var n,r,i=function(){var t=new WeakMap,e=1;return{getIdForEvent:function(n){return t.has(n)||t.set(n,e++),t.get(n)}}}(),o=ds(e.mutationCb,e.configuration,e.shadowRootsController,document),a=function(t,e){var n=L(function(t){var n=ns(t);if(Da(n)){var r=os(t);if(!r)return;var i={id:Ma(n),timeOffset:0,x:r.x,y:r.y};e([i],es(t)?aa:ea)}},50,{trailing:!1}),r=n.throttled,i=n.cancel,o=Ct(t,document,[ct.MOUSE_MOVE,ct.TOUCH_MOVE],r,{capture:!0,passive:!0}).stop;return function(){o(),i()}}(t,e.mousemoveCb),s=function(t,e,n){return Ct(t,document,Object.keys(ss),function(r){var i=ns(r);if(ka(i,t.defaultPrivacyLevel)!==Aa.HIDDEN&&Da(i)){var o,a=Ma(i),s=ss[r.type];if(s!==ha&&s!==va){var c=os(r);if(!c)return;o={id:a,type:s,x:c.x,y:c.y}}else o={id:a,type:s};var u=A({id:n.getIdForEvent(r)},Ea(na,o));e(u)}},{capture:!0,passive:!0}).stop}(t,e.mouseInteractionCb,i),c=function(t,e,n,r){var i=L(function(t){var i=ns(t);if(i&&ka(i,n)!==Aa.HIDDEN&&Da(i)){var o=Ma(i),a=i===document?{scrollTop:Ki(),scrollLeft:Gi()}:{scrollTop:Math.round(i.scrollTop),scrollLeft:Math.round(i.scrollLeft)};r.set(i,a),e({id:o,x:a.scrollLeft,y:a.scrollTop})}},100),o=i.throttled,a=i.cancel,s=St(t,document,ct.SCROLL,o,{capture:!0,passive:!0}).stop;return function(){s(),a()}}(t,e.scrollCb,e.configuration.defaultPrivacyLevel,e.elementsScrollPositions),u=function(t,e){return qi(t).subscribe(e).unsubscribe}(t,e.viewportResizeCb),l=cs(t,e.inputCb),d=function(t,e,n){return Ct(t,document,[ct.PLAY,ct.PAUSE],function(t){var r=ns(t);r&&ka(r,n)!==Aa.HIDDEN&&Da(r)&&e({id:Ma(r),type:t.type===ct.PLAY?ga:ya})},{capture:!0,passive:!0}).stop}(t,e.mediaInteractionCb,e.configuration.defaultPrivacyLevel),f=function(t){function e(t,e){t&&Da(t.ownerNode)&&e(Ma(t.ownerNode))}var n=[yr(CSSStyleSheet.prototype,"insertRule",function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r,function(e){return t({id:e,adds:[{rule:o,index:a}]})})}),yr(CSSStyleSheet.prototype,"deleteRule",function(n){var r=n.target,i=n.parameters[0];e(r,function(e){return t({id:e,removes:[{index:i}]})})})];function r(r){n.push(yr(r.prototype,"insertRule",function(n){var r=n.target,i=n.parameters,o=i[0],a=i[1];e(r.parentStyleSheet,function(e){var n=us(r);n&&(n.push(a||0),t({id:e,adds:[{rule:o,index:n}]}))})}),yr(r.prototype,"deleteRule",function(n){var r=n.target,i=n.parameters[0];e(r.parentStyleSheet,function(e){var n=us(r);n&&(n.push(i),t({id:e,removes:[{index:n}]}))})}))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),function(){return n.forEac
2h(function(t){return t.stop()})}}(e.styleSheetCb),p=function(t,e){return Ct(t,window,[ct.FOCUS,ct.BLUR],function(){e({has_focus:document.hasFocus()})}).stop}(t,e.focusCb),v=function(t,e){var n=window.visualViewport;if(!n)return P;var r=L(function(){e(is(n))},200,{trailing:!1}),i=r.throttled,o=r.cancel,a=Ct(t,n,[ct.RESIZE,ct.SCROLL],i,{capture:!0,passive:!0}).stop;return function(){a(),o()}}(t,e.visualViewportResizeCb),h=function(t,e,n){return t.subscribe(12,function(t){var r,i,o;"action"===t.rawRumEvent.type&&"click"===t.rawRumEvent.action.type&&(null===(i=null===(r=t.rawRumEvent.action.frustration)||void 0===r?void 0:r.type)||void 0===i?void 0:i.length)&&"events"in t.domainContext&&(null===(o=t.domainContext.events)||void 0===o?void 0:o.length)&&e({timestamp:t.rawRumEvent.date,type:$o,data:{frustrationTypes:t.rawRumEvent.action.frustration.type,recordIds:t.domainContext.events.map(function(t){return n.getIdForEvent(t)})}})}).unsubscribe}(e.lifeCycle,e.frustrationCb,i),m=(n=e.lifeCycle,r=e.viewEndCb,n.subscribe(5,function(){r({timestamp:mt(),type:Ko})}).unsubscribe);return{flush:function(){o.flush()},stop:function(){o.stop(),a(),s(),c(),u(),l(),d(),f(),p(),v(),h(),m()}}}function vs(t){var e=t.emit,n=t.configuration,r=t.lifeCycle;if(!e)throw new Error("emit function is required");var i,o=function(n){e(n),ln("record",{record:n});var r=t.viewContexts.findView();ba(r.id).records_count+=1},a=(i=new WeakMap,{set:function(t,e){(t!==document||document.scrollingElement)&&i.set(t===document?document.scrollingElement:t,e)},get:function(t){return i.get(t)},has:function(t){return i.has(t)}}),s=function(t){o(Ea(ta,t))},c=function(t){return o(Ea(oa,t))},u=function(t,e){var n=e.mutationCb,r=e.inputCb,i=new Map,o={addShadowRoot:function(e){if(!i.has(e)){var a=ds(n,t,o,e),s=a.stop,c=a.flush,u=cs(t,r,e);i.set(e,{flush:c,stop:function(){s(),u()}})}},removeShadowRoot:function(t){var e=i.get(t);e&&(e.stop(),i.delete(t))},stop:function(){i.forEach(function(t){return(0,t.stop)()})},flush:function(){i.forEach(function(t){return(0,t.flush)()})}};return o}(n,{mutationCb:s,inputCb:c}),l=function(t,e,n,r,i,o){var a=function(n,i){void 0===n&&(n=mt()),void 0===i&&(i={status:0,elementsScrollPositions:t,shadowRootsController:e});var o=$i(),a=o.width,s=[{data:{height:o.height,href:window.location.href,width:a},type:jo,timestamp:n},{data:{has_focus:document.hasFocus()},type:Go,timestamp:n},{data:{node:ts(document,r,i),initialOffset:{left:Gi(),top:Ki()}},type:zo,timestamp:n}];return window.visualViewport&&s.push({data:is(window.visualViewport),type:qo,timestamp:n}),s};return o(a()),{stop:n.subscribe(3,function(n){i(),o(a(n.startClocks.timeStamp,{shadowRootsController:e,status:1,elementsScrollPositions:t}))}).unsubscribe}}(a,u,r,n,d,function(t){return t.forEach(function(t){return o(t)})}).stop;function d(){u.flush(),v()}var f=ps(n,{lifeCycle:t.lifeCycle,configuration:n,elementsScrollPositions:a,inputCb:c,mediaInteractionCb:function(t){return o(Ea(sa,t))},mouseInteractionCb:function(t){return o(t)},mousemoveCb:function(t,e){return o(Ea(e,{positions:t}))},mutationCb:s,scrollCb:function(t){return o(Ea(ra,t))},styleSheetCb:function(t){return o(Ea(ca,t))},viewportResizeCb:function(t){return o(Ea(ia,t))},frustrationCb:function(t){return o(t)},focusCb:function(t){return o({data:t,type:Go,timestamp:mt()})},visualViewportResizeCb:function(t){o({data:t,type:qo,timestamp:mt()})},viewEndCb:function(t){d(),o(t)},shadowRootsController:u}),p=f.stop,v=f.flush;return{stop:function(){u.stop(),p(),l()},flushMutations:d,shadowRootsController:u}}var hs=function(){function t(t,e,n){this.encoder=t,this.encodedBytesCount=0;var r=e.view.id;this.metadata=A({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:wa(r),source:"browser"},e),function(t){ba(t).segments_count+=1}(r)}return t.prototype.addRecord=function(t,e){var n,r=this;this.metadata.start=Math.min(this.metadata.start,t.timestamp),this.metadata.end=Math.max(this.metadata.end,t.timestamp),this.metadata.records_count+=1,(n=this.metadata).has_full_snapshot||(n.has_full_snapshot=t.type===zo);var i=this.encoder.isEmpty?'{"records":[':",";this.encoder.write(i+JSON.stringify(t),function(t){r.encodedBytesCount+=t,e(r.encodedBytesCount)})},t.prototype.flush=function(t){var e=this;if(this.encoder.isEmpty)throw new Error("Empty segment flushed");this.encoder.write("],".concat(JSON.stringify(this.metadata).slice(1),"\n")),this.encoder.finish(function(n){var r,i;r=e.metadata.view.id,i=n.rawBytesCount,ba(r).segments_total_raw_size+=i,t(e.metadata,n)})},t}(),ms=6e4;function _s(t,e,n,r,i,o){return function(t,e,n,r){var i={status:0,nextSegmentCreationReason:"init"},o=t.subscribe(3,function(){s("view_change")}).unsubscribe,a=t.subscribe(11,function(t){s(t.reason)}).unsubscribe;function s(t){1===i.status&&(i.segment.flush(function(e,r){var i=function(t,e,n){var r=new FormData;r.append("segment",new Blob([t],{type:"application/octet-stream"}),"".concat(e.session.id,"-").concat(e.start));var i=A({raw_segment_size:n,compressed_segment_size:t.byteLength},e),o=JSON.stringify(i);return r.append("event",new Blob([o],{type:"application/json"})),{data:r,bytesCount:t.byteLength}}(r.output,e,r.rawBytesCount);Sn(t)?n.sendOnExit(i):n.send(i)}
2),R(i.expirationTimeoutId)),i="stop"!==t?{status:0,nextSegmentCreationReason:t}:{status:2}}return{addRecord:function(t){if(2!==i.status){if(0===i.status){var n=e();if(!n)return;i={status:1,segment:new hs(r,n,i.nextSegmentCreationReason),expirationTimeoutId:k(function(){s("segment_duration_limit")},3e4)}}i.segment.addRecord(t,function(t){t>ms&&s("segment_bytes_limit")})}},stop:function(){s("stop"),o(),a()}}}(t,function(){return function(t,e,n){var r=e.findTrackedSession(),i=n.findView();if(!r||!i)return;return{application:{id:t},session:{id:r.id},view:{id:i.id}}}(e.applicationId,n,r)},i,o)}function gs(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function ys(t,e,n,r){var i=e.findTrackedSession(),o=function(t,e){if(!gs())return"browser-not-supported";if(!t)return"rum-not-tracked";if(!t.sessionReplayAllowed)return"incorrect-session-plan";if(!e)return"replay-not-started"}(i,r);return Bo(t,{viewContext:n.findView(),errorType:o,session:i})}function ws(t,e,n){var r,i=0,o=[],a=0,s=[],c=St(t,e,"message",function(t){var e=t.data;if("wrote"===e.type&&e.streamId===n){i+=e.additionalBytesCount,o.push(e.result),r=e.trailer;var a=s.shift();a&&a.id===e.id?a.writeCallback?a.writeCallback(e.result.byteLength):a.finishCallback&&a.finishCallback():(c(),yn("Worker responses received out of order."))}}).stop;function u(){var t=0===o.length?new Uint8Array(0):function(t){for(var e=t.reduce(function(t,e){return t+e.length},0),n=new Uint8Array(e),r=0,i=0,o=t;i<o.length;i++){var a=o[i];n.set(a,r),r+=a.length}return n}(o.concat(r)),e={rawBytesCount:i,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return i=0,o=[],e}function l(){a>0&&(e.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(t,r){e.postMessage({action:"write",id:a,data:t,streamId:n}),s.push({id:a,writeCallback:r,data:t}),a+=1},finish:function(t){l(),s.length?(s.forEach(function(t){delete t.writeCallback}),s[s.length-1].finishCallback=function(){return t(u())}):t(u())},finishSync:function(){l();var t=s.map(function(t){return delete t.writeCallback,delete t.finishCallback,t.data}).join("");return A(u(),{pendingData:t})},estimateEncodedBytesCount:function(t){return t.length/8},stop:function(){c()}}}function bs(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['!function(){"use strict";function t(t){for(var e=t.reduce((function(t,e){return t+e.length}),0),a=new Uint8Array(e),n=0,r=0,i=t;r<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=256,n=286,r=30,i=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),_=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),h=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),l=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=new Array(576);e(o);var d=new Array(60);e(d);var u=new Array(512);e(u);var f=new Array(256);e(f);var c=new Array(29);e(c);var p,g,w,v=new Array(r);function b(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function m(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(v);var y=function(t){return t<256?u[t]:u[256+(t>>>7)]},k=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},z=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},E=function(t,e,a){var n,r,s=new Array(16),_=0;for(n=1;n<=i;n++)s[n]=_=_+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=A(s[h]++,h))}},Z=function(t){var e;for(e=0;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?k(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},S=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]}
vendor: 4,760 bytes, line 2
2,R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>1;a>=1;a--)R(t,s,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],R(t,s,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,s[2*r]=s[2*a]+s[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,s[2*a+1]=s[2*n+1]=r,t.heap[1]=r++,R(t,s,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,s,_,h,l=e.dyn_tree,o=e.max_code,d=e.stat_desc.static_tree,u=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,c=e.stat_desc.extra_base,p=e.stat_desc.max_length,g=0;for(s=0;s<=i;s++)t.bl_count[s]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(s=l[2*l[2*(n=t.heap[a])+1]+1]+1)>p&&(s=p,g++),l[2*n+1]=s,n>o||(t.bl_count[s]++,_=0,n>=c&&(_=f[n-c]),h=l[2*n],t.opt_len+=h*(s+_),u&&(t.static_len+=h*(d[2*n+1]+_)));if(0!==g){do{for(s=p-1;0===t.bl_count[s];)s--;t.bl_count[s]--,t.bl_count[s+1]+=2,t.bl_count[p]--,g-=2}while(g>0);for(s=p;0!==s;s--)for(n=t.bl_count[s];0!==n;)(r=t.heap[--a])>o||(l[2*r+1]!==s&&(t.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(t,e),E(s,o,t.bl_count)},T=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*l[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=i&&(i=s)):i=s=n+5,n+4<=i&&-1!==e?O(t,e,n,r):4===t.strategy||s===i?(z(t,2+(r?1:0),3),L(t,o,d)):(z(t,4+(r?1:0),3),function(t,e,a,n){var r;for(z(t,e-257,5),z(t,a-1,5),z(t,n-4,4),r=0;r<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(f[n]+a+1)]++,t.dyn_dtree[2*y(e)]++),t.last_lit===t.lit_bufsize-1},_tr_align:function(t){z(t,2,3),x(t,256,o),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>
2=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},C=function(t,e,a,n){for(var r=65535&t|0,i=t>>>16&65535|0,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16|0},H=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),M=function(t,e,a,n){var r=H,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},Y={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},K={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},P=B._tr_init,j=B._tr_stored_block,G=B._tr_flush_block,X=B._tr_tally,W=B._tr_align,q=K.Z_NO_FLUSH,J=K.Z_PARTIAL_FLUSH,Q=K.Z_FULL_FLUSH,V=K.Z_FINISH,$=K.Z_BLOCK,tt=K.Z_OK,et=K.Z_STREAM_END,at=K.Z_STREAM_ERROR,nt=K.Z_DATA_ERROR,rt=K.Z_BUF_ERROR,it=K.Z_DEFAULT_COMPRESSION,st=K.Z_FILTERED,_t=K.Z_HUFFMAN_ONLY,ht=K.Z_RLE,lt=K.Z_FIXED,ot=K.Z_DEFAULT_STRATEGY,dt=K.Z_UNKNOWN,ut=K.Z_DEFLATED,ft=258,ct=262,pt=103,gt=113,wt=666,vt=function(t,e){return t.msg=Y[e],e},bt=function(t){return(t<<1)-(t>4?9:0)},mt=function(t){for(var e=t.length;--e>=0;)t[e]=0},yt=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},zt=function(t,e){G(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,kt(t.strm)},xt=function(t,e){t.pending_buf[t.pending++]=e},At=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},Et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,_=t.nice_match,h=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,l=t.window,o=t.w_mask,d=t.prev,u=t.strstart+ft,f=l[i+s-1],c=l[i+s];t.prev_length>=t.good_match&&(r>>=2),_>t.lookahead&&(_=t.lookahead);do{if(l[(a=e)+s]===c&&l[a+s-1]===f&&l[a]===l[i]&&l[++a]===l[i+1]){i+=2,a++;do{}while(l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&l[++i]===l[++a]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){if(t.match_start=e,s=n,n>=_)break;f=l[i+s-1],c=l[i+s]}}}while((e=d[e&o])>h&&0!=--r);return s<=t.lookahead?s:t.lookahead},Zt=function(t){var e,a,n,r,i,s,_,h,l,o,d=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=d+(d-ct)){t.window.set(t.window.subarray(d,d+d),0),t.match_start-=d,t.strstart-=d,t.block_start-=d,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=d?n-d:0}while(--a);e=a=d;do{n=t.prev[--e],t.prev[e]=n>=d?n-d:0}while(--a);r+=d}if(0===t.strm.avail_in)break;if(s=t.strm,_=t.window,h=t.strstart+t.lookahead,l=r,o=void 0,(o=s.avail_in)>l&&(o=l),a=0===o?0:(s.avail_in-=o,_.set(s.input.subarray(s.next_in,s.next_in+o),h),1===s.state.wrap?s.adler=C(s.adler,_,o,h):2===s.state.wrap&&(s.adler=M(s.adler,_,o,h)),s.next_in+=o,s.total_in+=o,o),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=yt(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=yt(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a)),t.match_length>=3)if(n=X(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=yt(t,t.ins_h,t.window[t.strstart+1]);else n=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2},St=function(t,e){for(var a,n,r;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=X(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=yt(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(zt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=X(t,0,t.window[t.strstart-1]))&&zt(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=X(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2};function Rt(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var Lt=[new Rt(0,0,0,0,(function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Zt(t),0===t.lookahead&&e===q)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,zt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-ct&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(zt(t,!1),t.strm.avail_out),1)})),new Rt(4,4,8,4,Ut),new Rt(4,5,16,8,Ut),new Rt(4,6,32,32,Ut),new Rt(4,4,16,16,St),new Rt(8,16,32,32,St),new Rt(8,16,128,128,St),new Rt(8,32,128,256,St),new Rt(32,128,258,1024,St),new Rt(32,258,258,4096,St)];function Ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ut,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),mt(this.dyn_ltree),mt(this.dyn_dtree),mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Tt=function(t){if(!t||!t.state)return vt(t,at);t.total_in=t.total_out=0,t.data_type=dt;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:gt,t.adler=2===e.wrap?0:1,e.last_flush=q,P(e),tt},It=function(t){var e,a=Tt(t);return a===tt&&((e=t.state).window_size=2*e.w_size,mt(e.head),e.max_lazy_match=Lt[e.level].max_lazy,e.good_match=Lt[e.level].good_length,e.nice_match=Lt[e.level].nice_length,e.max_chain_length=Lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),a},Nt=function(t,e,a,n,r,i){if(!t)return at;var s=1;if(e===it&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||a!==ut||n<8||n>15||e<0||e>9||i<0||i>lt)return vt(t,at);8===n&&(n=9);var _=new Ft;return t.state=_,_.strm=t,_.wrap=s,_.gzhead=null,_.w_bits=n,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=r+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+3-1)/3),_.window=new Uint8Array(2*_.w_size),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)}
2,Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||e<0)return t?vt(t,at):at;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===wt&&e!==V)return vt(t,0===t.avail_out?rt:at);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,xt(r,31),xt(r,139),xt(r,8),r.gzhead?(xt(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),xt(r,255&r.gzhead.time),xt(r,r.gzhead.time>>8&255),xt(r,r.gzhead.time>>16&255),xt(r,r.gzhead.time>>24&255),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(xt(r,255&r.gzhead.extra.length),xt(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=M(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,0),xt(r,9===r.level?2:r.strategy>=_t||r.level<2?4:0),xt(r,3),r.status=gt);else{var s=ut+(r.w_bits-8<<4)<<8;s|=(r.strategy>=_t||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(s|=32),s+=31-s%31,r.status=gt,At(r,s),0!==r.strstart&&(At(r,t.adler>>>16),At(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending!==r.pending_buf_size));)xt(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),kt(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=M(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=pt)}else r.status=pt;if(r.status===pt&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&kt(t),r.pending+2<=r.pending_buf_size&&(xt(r,255&t.adler),xt(r,t.adler>>8&255),t.adler=0,r.status=gt)):r.status=gt),0!==r.pending){if(kt(t),0===t.avail_out)return r.last_flush=-1,tt}else if(0===t.avail_in&&bt(e)<=bt(i)&&e!==V)return vt(t,rt);if(r.status===wt&&0!==t.avail_in)return vt(t,rt);if(0!==t.avail_in||0!==r.lookahead||e!==q&&r.status!==wt){var _=r.strategy===_t?function(t,e){for(var a;;){if(0===t.lookahead&&(Zt(t),0===t.lookahead)){if(e===q)return 1;break}if(t.match_length=0,a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):r.strategy===ht?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=ft){if(Zt(t),t.lookahead<=ft&&e===q)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+ft;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=ft-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=X(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=X(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(zt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===V?(zt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(zt(t,!1),0===t.strm.avail_out)?1:2}(r,e):Lt[r.level].func(r,e);if(3!==_&&4!==_||(r.status=wt),1===_||3===_)return 0===t.avail_out&&(r.last_flush=-1),tt;if(2===_&&(e===J?W(r):e!==$&&(j(r,0,0,!1),e===Q&&(mt(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),kt(t),0===t.avail_out))return r.last_flush=-1,tt}return e!==V?tt:r.wrap<=0?et:(2===r.wrap?(xt(r,255&t.adler),xt(r,t.adler>>8&255),xt(r,t.adler>>16&255),xt(r,t.adler>>24&255),xt(r,255&t.total_in),xt(r,t.total_in>>8&255),xt(r,t.total_in>>16&255),xt(r,t.total_in>>24&255)):(At(r,t.adler>>>16),At(r,65535&t.adler)),kt(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?tt:et)},deflateEnd:function(t){if(!t||!t.state)return at;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==pt&&e!==gt&&e!==wt?vt(t,at):(t.state=null,e===gt?vt(t,nt):tt)},deflateSetDictionary:function(t,e){var a=e.length;if(!t||!t.state)return at;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return at;if(1===r&&(t.adler=C(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(mt(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
2i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,_=t.next_in,h=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,Zt(n);n.lookahead>=3;){var l=n.strstart,o=n.lookahead-2;do{n.ins_h=yt(n,n.ins_h,n.window[l+3-1]),n.prev[l&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=l,l++}while(--o);n.strstart=l,n.lookahead=2,Zt(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=_,t.input=h,t.avail_in=s,n.wrap=r,tt},deflateInfo:"pako deflate (from Nodeca project)"};for(var Dt=new Uint8Array(256),Bt=0;Bt<256;Bt++)Dt[Bt]=Bt>=252?6:Bt>=248?5:Bt>=240?4:Bt>=224?3:Bt>=192?2:1;Dt[254]=Dt[254]=1;var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Ht=Object.prototype.toString,Mt=K.Z_NO_FLUSH,Yt=K.Z_SYNC_FLUSH,Kt=K.Z_FULL_FLUSH,Pt=K.Z_FINISH,jt=K.Z_OK,Gt=K.Z_STREAM_END,Xt=K.Z_DEFAULT_COMPRESSION,Wt=K.Z_DEFAULT_STRATEGY,qt=K.Z_DEFLATED;function Jt(){this.options={level:Xt,method:qt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Wt};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;var e=Ot.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==jt)throw new Error(Y[e]);if(t.header&&Ot.deflateSetHeader(this.strm,t.header),t.dictionary){var a;if(a="[object ArrayBuffer]"===Ht.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(e=Ot.deflateSetDictionary(this.strm,a))!==jt)throw new Error(Y[e]);this._dict_set=!0}}function Qt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:String(e),streamId:a})}}function Vt(t){var e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}Jt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?Pt:Mt,"[object ArrayBuffer]"===Ht.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(n===Yt||n===Kt)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if((a=Ot.deflate(r,n))===Gt)return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=Ot.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===jt;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},Jt.prototype.onData=function(t){this.chunks.push(t)},Jt.prototype.onEnd=function(t){t===jt&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.10.0"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,K.Z_SYNC_FLUSH),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:Vt(n),additionalBytesCount:i.length};case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){Qt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}}))}catch(t){Qt(e,t)}}()}();'])))}var Es={status:0};function As(t,e,n,r){switch(void 0===r&&(r=bs),0===Es.status&&function(t,e,n){void 0===n&&(n=bs);try{var r=n(t),i=St(t,r,"error",function(n){Cs(t,e,n)}).stop,o=St(t,r,"message",function(n){var r,i=n.data;
2"errored"===i.type?Cs(t,e,i.error,i.streamId):"initialized"===i.type&&(r=i.version,1===Es.status&&(Es={status:3,worker:Es.worker,stop:Es.stop,version:r}))}).stop;r.postMessage({action:"init"}),k(function(){return function(t){1===Es.status&&(s.error("".concat(t," failed to start: a timeout occurred while initializing the Worker")),Es.initializationFailureCallbacks.forEach(function(t){return t()}),Es={status:2})}(e)},1e4),Es={status:1,worker:r,stop:function(){i(),o()},initializationFailureCallbacks:[]}}catch(n){Cs(t,e,n)}}(t,e,r),Es.status){case 1:return Es.initializationFailureCallbacks.push(n),Es.worker;case 3:return Es.worker}}function Ss(){return Es.status}function Cs(t,e,n,r){if(1===Es.status||0===Es.status){if(s.error("".concat(e," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&(m(o=n.message,"Content Security Policy")||m(o,"requires 'TrustedScriptURL'"))){var i=void 0;i=t.workerUrl?"Please make sure the Worker URL ".concat(t.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",s.error("".concat(i," See documentation at https://docs.datadoghq.com/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else wn(n);1===Es.status&&Es.initializationFailureCallbacks.forEach(function(t){return t()}),Es={status:2}}else wn(n,{worker_version:3===Es.status&&Es.version,stream_id:r});var o}var Ts,xs,Is,ks,Rs=function(t,e){if(ee()||!gs())return{start:P,stop:P,getReplayStats:function(){},onRumStart:P,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},i=function(){n={status:0}},o=P;return{start:function(){return r()},stop:function(){return i()},getSessionReplayLink:function(){return o()},onRumStart:function(a,s,c,u,l){var d;s.startSessionReplayRecordingManually&&(n={status:0}),a.subscribe(9,function(){2!==n.status&&3!==n.status||(i(),n={status:1})}),a.subscribe(11,function(t){t.reason!==An.UNLOADING&&t.reason!==An.PAGEHIDE||i()}),a.subscribe(10,function(){1===n.status&&r()}),r=function(){var r=c.findTrackedSession();r&&r.sessionReplayAllowed?2!==n.status&&3!==n.status&&(n={status:2},Tn(s,"interactive",function(){if(2===n.status){var r=(d||(l||(l=As(s,"Datadog Session Replay",function(){i()},e)),l&&(d=ws(s,l,1))),d);if(r){var o=t(a,s,c,u,r).stop;n={status:3,stopRecording:o}}else n={status:0}}})):n={status:1}},i=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},o=function(){return ys(s,c,u,0!==n.status)},1===n.status&&r()},isRecording:function(){return 3===Ss()&&3===n.status},getReplayStats:function(t){return 3===Ss()?function(t){return null==Fo?void 0:Fo.get(t)}(t):void 0}}}(function(t,e,n,r,i,o){var a=o||yo(e,e.sessionReplayEndpointBuilder,ms,function(e){t.notify(14,{error:e}),yn("Error reported to customer",{"error.message":e.message})}),s=_s(t,e,n,r,a,i),c=s.addRecord,u=s.stop,l=vs({emit:c,configuration:e,lifeCycle:t,viewContexts:r}).stop;return{stop:function(){l(),u()}}}),Os=function(t,e,n){void 0===n&&(n={});var r,i,o=F(0),a=J(o.getOrCreateTracker(2)),c=J(o.getOrCreateTracker(1)),u={tryToInit:function(t){r||(r=t)},update:function(t){r=t,i.notify()},isGranted:function(){return!tt(Z.TRACKING_CONSENT)||r===nt.GRANTED},observable:i=new Y};function l(){return function(t,e,n){return{context:t.getContext(),user:e.getContext(),hasReplay:!!n.isRecording()||void 0}}(a,c,e)}var d,h,m=un(n,l,u,function(r,i,s,d){tt(Z.CUSTOM_VITALS)&&(g.startDurationVital=p(function(t,e){m.startDurationVital({name:q(t),startClocks:(null==e?void 0:e.startTime)?ft(e.startTime):gt(),context:q(null==e?void 0:e.context)})}),g.stopDurationVital=p(function(t,e){m.stopDurationVital({name:q(t),stopClocks:(null==e?void 0:e.stopTime)?ft(e.stopTime):gt(),context:q(null==e?void 0:e.context)})})),r.storeContextsAcrossPages&&(It(i,a,"rum",2),It(i,c,"rum",1)),o.setCompressionStatus(s?1:2);var f=t(r,i,e,o,l,d,s&&n.createDeflateEncoder?function(t){return n.createDeflateEncoder(i,s,t)}:kt,u);return e.onRumStart(f.lifeCycle,i,f.session,f.viewContexts,s),m=function(t,e){return A({init:function(t){Xt("DD_RUM",t)},initConfiguration:t},e)}(r,f),f}),_=p(function(t){var e="object"==typeof t?t:{name:t};m.startView(e)}),g=(d={init:p(function(t){return m.init(t)}),setTrackingConsent:p(function(t){return u.update(t)}),setGlobalContextProperty:p(function(t,e){return a.setContextProperty(t,e)}),removeGlobalContextProperty:p(function(t){return a.removeContextProperty(t)}),getGlobalContext:p(function(){return a.getContext()}),setGlobalContext:p(function(t){return a.setContext(t)}
2),clearGlobalContext:p(function(){return a.clearContext()}),getInternalContext:p(function(t){return m.getInternalContext(t)}),getInitConfiguration:p(function(){return G(m.initConfiguration)}),addAction:p(function(t,e){m.addAction({name:q(t),context:q(e),startClocks:gt(),type:"custom"})}),addError:function(t,e){var n=Wt();v(function(){m.addError({error:t,handlingStack:n,context:q(e),startClocks:gt()})})},addTiming:p(function(t,e){m.addTiming(q(t),e)}),setUser:p(function(t){(function(t){var e="object"===V(t);return e||s.error("Unsupported user:",t),e})(t)&&c.setContext(Yt(t))}),getUser:p(function(){return c.getContext()}),setUserProperty:p(function(t,e){var n,r=Yt((n={},n[t]=e,n))[t];c.setContextProperty(t,r)}),removeUserProperty:p(function(t){return c.removeContextProperty(t)}),clearUser:p(function(){return c.clearContext()}),startView:_,stopSession:p(function(){m.stopSession()}),addFeatureFlagEvaluation:p(function(t,e){m.addFeatureFlagEvaluation(q(t),q(e))}),getSessionReplayLink:p(function(){return e.getSessionReplayLink()}),startSessionReplayRecording:p(function(){return e.start()}),stopSessionReplayRecording:p(function(){return e.stop()})},h=A({version:"5.10.0",onReady:function(t){t()}},d),Object.defineProperty(h,"_setDebug",{get:function(){return f},enumerable:!1}),h);return g}(function(t,e,n,r,i,o,a,s){var c=[],u=new hr;u.subscribe(13,function(t){return ln("rum",t)});var l=function(t){var e=gn("browser-rum-sdk",t);if(ee()){var n=te();e.observable.subscribe(function(t){return n.send("internal_telemetry",t)})}return e}(e);l.setContextProvider(function(){var t,n;return{application:{id:e.applicationId},session:{id:null===(t=_.findTrackedSession())||void 0===t?void 0:t.id},view:{id:null===(n=S.findView())||void 0===n?void 0:n.id},action:{id:x.findActionId()}}});var d=function(t){u.notify(14,{error:t}),yn("Error reported to customer",{"error.message":t.message})},f=function(t,e){if(!tt(Z.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},addFeatureFlagEvaluation:P,stop:P};var n=new _r(To);return t.subscribe(2,function(t){var r=t.startClocks;n.add({},r.relative),e.resetCustomerData()}),t.subscribe(6,function(t){var e=t.endClocks;n.closeActive(e.relative)}),{findFeatureFlagEvaluations:function(t){return n.find(t)},addFeatureFlagEvaluation:function(t,r){var i=n.find();i&&(i[t]=r,e.updateCustomerData(i))},stop:function(){return e.stop()}}}(u,r.getOrCreateTracker(0)),v=function(t){return new Y(function(e){var n=tt(Z.PAGEHIDE),r=Ct(t,window,[ct.VISIBILITY_CHANGE,ct.FREEZE,ct.PAGE_HIDE],function(t){t.type===ct.PAGE_HIDE&&n?e.notify({reason:An.PAGEHIDE}):t.type===ct.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?e.notify({reason:An.HIDDEN}):t.type===ct.FREEZE&&e.notify({reason:An.FROZEN})},{capture:!0}).stop,i=P;return n||(i=St(t,window,ct.BEFORE_UNLOAD,function(){e.notify({reason:An.UNLOADING})}).stop),function(){r(),i()}})}(e),h=v.subscribe(function(t){u.notify(11,t)});c.push(function(){return h.unsubscribe()});var _=ee()?function(){var t={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplayAllowed:!1};return{findTrackedSession:function(){return t},expire:P,expireObservable:new Y}}():so(e,u,s);if(ee())!function(t){var e=te();t.subscribe(13,function(t){e.send("rum",t)})}(u);else{var g=Ao(e,u,l.observable,d,v,_.expireObservable,a);c.push(function(){return g.stop()}),function(t,e,n,r,i){e.enabled&&rt(t.customerDataTelemetrySampleRate)&&(Lo(),Po(),n.subscribe(13,function(t){ko=!0,Oo(Io.globalContextBytes,r.getOrCreateTracker(2).getBytesCount()),Oo(Io.userContextBytes,r.getOrCreateTracker(1).getBytesCount()),Oo(Io.featureFlagBytes,m(["view","error"],t.type)?r.getOrCreateTracker(0).getBytesCount():0)}),i.subscribe(function(t){var e=t.bytesCount,n=t.messagesCount;ko&&(xo.batchCount+=1,Oo(xo.batchBytesCount,e),Oo(xo.batchMessagesCount,n),No(xo.globalContextBytes,Io.globalContextBytes),No(xo.userContextBytes,Io.userContextBytes),No(xo.featureFlagBytes,Io.featureFlagBytes),Po())}),O(Ro,1e4))}(e,l,u,r,g.flushObservable)}var y,w=(y=Cn(),new Y(function(t){if(y){var e=new y(p(function(){return t.notify()}));return e.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return e.disconnect()}}})),b=Co(e,location),E=function(t,e,n,r,i,o,a,s){var c=function(t){var e=new _r(gr);return t.subscribe(2,function(t){e.add(function(t){return{service:t.service,version:t.version,id:t.id,name:t.name,startClocks:t.startClocks}}(t),t.startClocks.relative)}),t.subscribe(6,function(t){var n=t.endClocks;e.closeActive(n.relative)}),t.subscribe(10,function(){e.reset()}),{findView:function(t){return e.find(t)},stop:function(){e.stop()}}}(t),u=function(t,e,n){var r,i=new _r(So);t.subscribe(2,function(t){var e=t.startClocks,o=n.href;i.add(a({url:o,referrer:r||document.referrer}),e.relative),r=o}),t.subscribe(6,function(t){var e=t.endClocks;i.closeActive(e.relative)});var o=e.subscribe(function(t){var e=t.newLocation,n=i.find();if(n){var r=_t();i.closeActive(r),i.add(a({url:e.href,referrer:n.referrer}),r)}});function a(t){return{url:t.url,referrer:t.referrer}}return{findUrl:function(t){return i.find(t)},stop:function(){o.unsubscribe(),i.stop()}}}(t,i,n),l=Do(e),d=function(t,e,n,r){t.subscribe(1,function(e){return t.notify(12,pi(e,r))});var i={findActionId:P};return n.trackUserInteractions&&(i=di(t,e,n).actionContexts),{addAction:function(e,n){t.notify(12,A({savedCommonContext:n},pi(e,r)))},actionContexts:i}}(t,o,e,l),f=d.addAction,p=d.actionContexts,v=function(t){var e=$i();return{get:function(){return{viewport:e}},stop:qi(t).subscribe(function(t){e=t}).unsubscribe}}(e);return pr(e,t,r,c,u,p,v,a,s),{viewContexts:c,pageStateHistory:l,urlContexts:u,addAction:f,actionContexts:p,stop:function(){v.stop(),l.stop(),u.stop(),c.stop(),l.stop()}}}(u,e,location,_,b,w,i,d),S=E.viewContexts,C=E.pageStateHistory,T=E.urlContexts,x=E.actionContexts,I=E.addAction,k=E.stop;c.push(k),function(t){_n.telemetryConfigurationEnabled&&bn({type:vn,c
2onfiguration:t})}(function(t){var e,n={session_sample_rate:(e=t).sessionSampleRate,telemetry_sample_rate:e.telemetrySampleRate,telemetry_configuration_sample_rate:e.telemetryConfigurationSampleRate,use_before_send:!!e.beforeSend,use_cross_site_session_cookie:e.useCrossSiteSessionCookie,use_partitioned_cross_site_session_cookie:e.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:e.useSecureSessionCookie,use_proxy:!!e.proxy,silent_multiple_init:e.silentMultipleInit,track_session_across_subdomains:e.trackSessionAcrossSubdomains,allow_fallback_to_local_storage:!!e.allowFallbackToLocalStorage,store_contexts_across_pages:!!e.storeContextsAcrossPages,allow_untrusted_events:!!e.allowUntrustedEvents};return A({session_replay_sample_rate:t.sessionReplaySampleRate,start_session_replay_recording_manually:t.startSessionReplayRecordingManually,trace_sample_rate:t.traceSampleRate,action_name_attribute:t.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(t.allowedTracingUrls)&&t.allowedTracingUrls.length>0,selected_tracing_propagators:cn(t),default_privacy_level:t.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(t.excludedActivityUrls)&&t.excludedActivityUrls.length>0,use_worker_url:!!t.workerUrl,compress_intake_requests:t.compressIntakeRequests,track_views_manually:t.trackViewsManually,track_user_interactions:t.trackUserInteractions,track_resources:t.trackResources,track_long_task:t.trackLongTasks},n)}(t)),function(t,e,n){t.subscribe(0,function(r){for(var i=0,o=r;i<o.length;i++){var a=o[i];if(a.entryType!==Gn.LONG_TASK)break;if(!n.findTrackedSession(a.startTime)||!e.trackLongTasks)break;var s=dt(a.startTime),c={date:s.timeStamp,long_task:{id:ne(),duration:vt(a.duration)},type:"long_task",_dd:{discarded:!1}};t.notify(12,{rawRumEvent:c,startTime:s.relative,domainContext:{performanceEntry:a}})}})}(u,e,_),Ci(u,e,_,C);var R=eo(u,e,location,w,b,f,C,n,o),N=R.addTiming,L=R.startView,U=R.stop;c.push(U);var D=Ei(u,e,C,f).addError;Ir(u,e,_);var M=Yn(u,e).stop;c.push(M);var H=Ho(u),B=function(t,e,n,r,i){return{get:function(o){var a=n.findView(o),s=i.findUrl(o),c=e.findTrackedSession(o);if(c&&a&&s){var u=r.findActionId(o);return{application_id:t,session_id:c.id,user_action:u?{id:u}:void 0,view:{id:a.id,name:a.name,referrer:s.referrer,url:s.url}}}}}}(e.applicationId,_,S,x,T);return{addAction:I,addError:D,addTiming:N,addFeatureFlagEvaluation:f.addFeatureFlagEvaluation,startView:L,lifeCycle:u,viewContexts:S,session:_,stopSession:function(){return _.expire()},getInternalContext:B.get,startDurationVital:H.startDurationVital,stopDurationVital:H.stopDurationVital,stop:function(){c.forEach(function(t){return t()})}}},Rs,{startDeflateWorker:As,createDeflateEncoder:ws});Ts=S(),Is=Os,ks=Ts[xs="DD_RUM"],Ts[xs]=Is,ks&&ks.q&&ks.q.forEach(function(t){return c(t,"onReady callback threw an error:")()})},38221:(t,e,n)=>{var r=n(23805),i=n(10124),o=n(99374),a=Math.max,s=Math.min;t.exports=function(t,e,n){var c,u,l,d,f,p,v=0,h=!1,m=!1,_=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=c,r=u;return c=u=void 0,v=e,d=t.apply(r,n)}function y(t){var n=t-p;return void 0===p||n>=e||n<0||m&&t-v>=l}function w(){var t=i();if(y(t))return b(t);f=setTimeout(w,function(t){var n=e-(t-p);return m?s(n,l-(t-v)):n}(t))}function b(t){return f=void 0,_&&c?g(t):(c=u=void 0,d)}function E(){var t=i(),n=y(t);if(c=arguments,u=this,p=t,n){if(void 0===f)return function(t){return v=t,f=setTimeout(w,e),h?g(t):d}(p);if(m)return clearTimeout(f),f=setTimeout(w,e),g(p)}return void 0===f&&(f=setTimeout(w,e)),d}return e=o(e)||0,r(n)&&(h=!!n.leading,l=(m="maxWait"in n)?a(o(n.maxWait)||0,e):l,_="trailing"in n?!!n.trailing:_),E.cancel=function(){void 0!==f&&clearTimeout(f),v=0,c=p=u=f=void 0},E.flush=function(){return void 0===f?d:b(i())},E}},39089:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var r=n(54705),i=n(57326),o=n(48780),a=n(55319),s=n(81766),c=n(25080);const u=new class{constructor(){(0,r.A)(this,"isEventListenerSet",!1),(0,r.A)(this,"resolveBids",void 0),(0,r.A)(this,"hasDmAdsFailedToLoad",!1)}setInstreamBidsEventListener(){this.isEventListenerSet||(window.dmAds=window.dmAds||{cmd:[],pid:o.nl},document.addEventListener("dmAds:instream-auctioned",t=>{t.detail.players.length>0&&this.resolveBids&&this.resolveBids(t.detail.players[0].queryString)}),this.isEventListenerSet=!0)}setDmAdsConfig(t){let{position:e,xid:n,startDelay:r,playerVolume:i}=t;window.dmAds.cmd.push(()=>{window.dmAds.setConfig({bidder:"dailymotion",adslotId:"player",mediaType:"instream",params:{api_key:c.HUBVISOR_LEO_API_KEY,xid:n,position:e,ts:a.A.load("ts")}})}),window.dmAds.cmd.push(()=>{window.dmAds.update({bidder:"dailymotion",adslotId:"player",mediaTypes:{video:{context:"instream",startdelay:r}},params:{apiKey:c.HUBVISOR_LEO_API_KEY,dmTs:a.A.load("ts"),video:{autoplay:!0,playerName:"dailymotion",id:n,playerVolume:i,videoViewsInSession:s.A.getVideoIndex()}}})})}startDmAdsInstreamBid(t){let{position:e,xid:n,playerVolume:r}=t,o=0;"midroll"===e&&(o=-1),"postroll"===e&&(o=-2),"preroll"!==e&&this.setDmAdsConfig({position:e,xid:n,startDelay:o,playerVolume:r}),window.dmAds.cmd.push(()=>{window.dmAds.instream({adslotId:"player",playerId:i.SC,position:e})})}getDmAdsInstreamBids(){return Promise.race([new Promise(t=>{this.resolveBids=t,this.setInstreamBidsEventListener()}),new Promise(t=>{setTimeout(()=>{t("")},7e3)}),new Promise(t=>{this.hasDmAdsFailedToLoad&&t("")})]).then(t=>(this.resolveBids=void 0,t))}notifyDmAdsLoadFailure(){this.resolveBids&&this.resolveBids(""),this.hasDmAdsFailedToLoad=!0}}},39589:(t,e,n)=>{"use strict";n.d(e,{$e:()=>h,EK:()=>T,Gh:()=>p,H1:()=>l,JS:()=>o,LF:()=>m,Ob:()=>s,PJ:()=>y,Ve:()=>a,Vq:()=>r,WM:()=>d,XW:()=>w,Z8:()=>S,_G:()=>v,_P:()=>c,bH:()=>f,ib:()=>C,kT:()=>b,kV:()=>i,nF:()=>_,nK:()=>g,oZ:()=>A,ty:()=>E,vs:()=>u});
2const r="client_token",i="access_token",o="refresh_token",a="access_token_v2",s="refresh_token_v2",c="client_token_v2",u="dmaid",l="dmt",d="sid",f="sdx",p="v1st",v="lang",h="ff",m="theme",_="ts",g="_testdm",y="dm-euconsent-v2",w="euconsent-v2",b={domain:".dailymotion.com"},E=2592e3,A=3*E,S=13*E,C={domain:".dailymotion.com",httpOnly:!1,maxAge:S,path:"/"},T=[y,p,"v1st_dm","usprivacy",r,c,"dmvk",_,g,i,o,a,s,h,f,d,v,m,"1stsearch","vc(vcount)","consentDate","consentUUID",w,"_cf_bm","_cf_clearance","_cf_seq","_cfuvid","_eoi","_GRECAPTCHA","cookie_policy_closed","dm-gpp-mspa","consentDateUsnat","usnatUUID","cookie_policy_closed","__Secure-ENID","AEC","SOCS","scid"]},40073:(t,e,n)=>{"use strict";n.d(e,{Bw:()=>s,Ip:()=>u,hD:()=>a,oN:()=>l,r1:()=>c});var r=n(39589),i=n(30105),o=n(41918);const a="Don't Sell/Share my Personal Information or Target Ads",s="usprivacy",c="1---",u={domain:".dailymotion.com",httpOnly:!1,maxAge:r.Z8,path:"/"};function l(){return!!(0,i.G7)("neon_force_ccpa_to_be_enabled")||(0,o.K)()}},40346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},40882:t=>{t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},41033:(t,e,n)=>{var r=n(25814),i=n(60471),o=r(),a=[1|o[0],o[1],o[2],o[3],o[4],o[5]],s=16383&(o[6]<<8|o[7]),c=0,u=0;t.exports=function(t,e,n){var r=e&&n||0,o=e||[],l=void 0!==(t=t||{}).clockseq?t.clockseq:s,d=void 0!==t.msecs?t.msecs:(new Date).getTime(),f=void 0!==t.nsecs?t.nsecs:u+1,p=d-c+(f-u)/1e4;if(p<0&&void 0===t.clockseq&&(l=l+1&16383),(p<0||d>c)&&void 0===t.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=d,u=f,s=l;var v=(1e4*(268435455&(d+=122192928e5))+f)%4294967296;o[r++]=v>>>24&255,o[r++]=v>>>16&255,o[r++]=v>>>8&255,o[r++]=255&v;var h=d/4294967296*1e4&268435455;o[r++]=h>>>8&255,o[r++]=255&h,o[r++]=h>>>24&15|16,o[r++]=h>>>16&255,o[r++]=l>>>8|128,o[r++]=255&l;for(var m=t.node||a,_=0;_<6;++_)o[r+_]=m[_];return e||i(o)}},41918:(t,e,n)=>{"use strict";n.d(e,{K:()=>a,R:()=>s});var r=n(11931),i=n(22464);const o=["ca","va","ct","ut","co","tx","or","mt","ia","de","nh","ne","nj","tn"];function a(){return r.KJ&&window.__COUNTRY__&&"us"===window.__COUNTRY__.toLowerCase()&&window.__REGION__&&o.includes(window.__REGION__.toLowerCase())}function s(t){let e,{isCreatedForKids:n,userAge:r}=t;return e=n?1:!1===n?r&&r<i.un?1:0:r&&r<i.un?1:void 0,e}},42054:t=>{var e="\\ud800-\\udfff",n="["+e+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?",l=u+c+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+c+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+d+l,"g");t.exports=function(t){return t.match(f)||[]}},43320:(t,e,n)=>{"use strict";n.d(e,{SE:()=>r,T8:()=>a,_0:()=>i,fe:()=>o});const r=t=>{window.location.href=t},i=t=>{window.location.replace(t)},o=()=>{window.location.search=""},a=()=>{window.location.reload()}},43777:(t,e,n)=>{"use strict";n.d(e,{ms:()=>f,pW:()=>l,sz:()=>u,vA:()=>c,xB:()=>p});var r=n(11931),i=n(28617),o=n(76011),a=n(99204),s=n(19179);const c=()=>{var t;const e=null===(t=window.location.search)||void 0===t?void 0:t.split("?")[1];return(null==e?void 0:e.split("&").reduce((t,e)=>({...t,[e.split("=")[0]]:e.split("=")[1]||!0}),{}))||void 0},u=()=>r.KJ&&(0,a.HH)("NEON_PREBID_ALL_ADS_BUT_FIRST_PREROLL")&&(!(0,a.HH)("NEON_DISABLE_HUBVISOR")||(0,i.fx)()||(0,o.E8)()||(0,i.Pq)()),l=t=>{if(!t)return{};return t.split("&").reduce((t,e)=>{const[n,r]=e.split("=");return!n.includes("_")&&n.startsWith("hb")?{...t,[n]:r}:t},{})},d=()=>{const t=(0,s.A)("playlist",window.location.search);return t?{secondary_type:"collection",secondary_xid:t}:{}},f=(t,e,n)=>{var r;if(window.performance&&"function"==typeof window.performance.mark&&0===(null===(r=window)||void 0===r||null===(r=r.performance)||void 0===r?void 0:r.getEntriesByName(t).length))return window.performance.mark(n),window.performance.measure(t,e,n),window.performance.getEntriesByName(t)[0].duration},p=t=>{const{action:e}=window.__INITIAL_APP_ENTER_EVENT__.data,n={component:{index:0,style:"_",type:"video",xid:t},screen:{xid:t,name:"watching_discovery",space:"space_watching",type:"video",url:window.location.href},section:{index:0,type:"player"}};return{...n,screen:{...n.screen,...d(),...window.__INITIAL_SCREEN_TRACKING_DATA__},action:e}}},43980:(t,e,n)=>{"use strict";n.d(e,{A:()=>
2o});var r=n(61167),i=n(99204);const o=()=>{let t="https://webed.stg.dm.gg";return(0,r.Ay)([r.M5])&&(t=(0,i.HH)("NEON_EVENTBUS_USE_DOMAIN_2")?"https://webed.dailymotionbus.com/":"https://webed.dm-event.net/"),t}},44394:(t,e,n)=>{var r=n(72552),i=n(40346);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},45083:(t,e,n)=>{var r=n(1882),i=n(87296),o=n(23805),a=n(47473),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?f:s).test(a(t))}},45228:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c<arguments.length;c++){for(var u in o=Object(arguments[c]))n.call(o,u)&&(s[u]=o[u]);if(e){a=e(o);for(var l=0;l<a.length;l++)r.call(o,a[l])&&(s[a[l]]=o[a[l]])}}return s}},45434:t=>{var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return e.test(t)}},45539:(t,e,n)=>{var r=n(40882),i=n(50828),o=n(66645),a=RegExp("['’]","g");t.exports=function(t){return function(e){return r(o(i(e).replace(a,"")),t,"")}}},45940:(t,e,n)=>{"use strict";n.d(e,{R9:()=>f,WR:()=>u,_z:()=>l,d7:()=>d,eR:()=>c,sE:()=>s});var r=n(46550);let i,o;const a=new Promise(t=>{o=t});function s(t){i=t,o()}async function c(){return await a,!!i&&!!(i.purpose.consents[1]&&i.purpose.consents[3]&&i.purpose.consents[4]&&i.purpose.legitimateInterests[2]&&i.purpose.legitimateInterests[7]&&i.purpose.legitimateInterests[9]&&i.purpose.legitimateInterests[10]&&!0==!!i.vendor.consents[r.TN]&&!0==!!i.vendor.legitimateInterests[r.TN])}async function u(){if(await a,i){const t=Object.values(i.purpose.consents).every(t=>!t),e=Object.values(i.purpose.legitimateInterests).some(t=>t),n=Object.values(i.vendor.consents).every(t=>!t),r=Object.values(i.vendor.legitimateInterests).some(t=>t);return t&&e&&n&&r}return!1}async function l(){return await a,!!i&&!!(i.purpose.consents[1]&&i.purpose.consents[3]&&i.purpose.consents[4]&&i.purpose.legitimateInterests[7]&&i.publisher.consents[1]&&i.publisher.consents[3]&&i.publisher.consents[4]&&i.publisher.legitimateInterests[7]&&!0==!!i.vendor.consents[755]&&!0==!!i.vendor.consents[793]&&!0==!!i.vendor.consents[132]&&!0==!!i.vendor.consents[965]&&!0==!!i.vendor.consents[52]&&!0==!!i.vendor.consents[61]&&!0==!!i.vendor.consents[744])}async function d(){if(await a,i){var t;const e=Object.keys(i.purpose.consents).length,n=Object.keys((null===(t=i)||void 0===t?void 0:t.specialFeatureOptins)||{}).length,r=Object.keys(i.vendor.consents).length;if(0===e&&0===n&&0===r)return!1}return!0}async function f(){return await a,!!i&&(!!i.vendor.consents[r.oQ]&&!!i.vendor.consents[r.TN])}},46550:(t,e,n)=>{"use strict";n.d(e,{TN:()=>r,Tj:()=>a,oQ:()=>i,rY:()=>o,tv:()=>s});const r=573,i=97,o=11,a="gdpr",s=1},47237:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},47473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},47890:(t,e,n)=>{"use strict";n.d(e,{NG:()=>s,S7:()=>a,UP:()=>c});var r=n(11931),i=n(99204),o=n(95943);function a(){return s()&&(0,o._r)()}function s(){return r.KJ&&(0,i.HH)("NEON_GDPR")&&void 0===(0,o.Q2)()}function c(){return(0,i.HH)("NEON_GDPR")}},48655:(t,e,n)=>{var r=n(26025);t.exports=function(t){return r(this.__data__,t)>-1}
2},48780:(t,e,n)=>{"use strict";n.d(e,{P9:()=>u,nl:()=>s});var r=n(39089),i=n(30105),o=n(99204);const a="https://dmads.dailymotion.com/js/dmads.min.js",s="dailymotion";function c(t,e){return Object.entries(e).reduce((e,n)=>{let[r,i]=n;return r.startsWith(t)&&(e[r]=i),e},{})}function u(){if(document.querySelector(`script[src='${a}']`))return;window.dmAds=window.dmAds||{cmd:[],pid:s,abtest:{...c("neon_dmads",(0,i.kc)()),...c("neon_dmads",(0,i.OD)())}};const t=document.createElement("script");t.async=!0,t.src=a,document.head.appendChild(t),t.addEventListener("error",()=>{!function(t){const{error:e}=console;e(t),(0,o.HH)("NEON_PREBID_ALL_ADS_BUT_FIRST_PREROLL")&&r.A.notifyDmAdsLoadFailure()}(new Error("DmAds loading failed !"))})}},49698:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},50104:(t,e,n)=>{var r=n(53661);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},50828:(t,e,n)=>{var r=n(24647),i=n(13222),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
27f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,r).replace(a,"")}},51873:(t,e,n)=>{var r=n(9325).Symbol;t.exports=r},52037:(t,e,n)=>{var r=n(57216),i=n(81993),o=n(61489),a=n(13222);t.exports=function(t,e,n){t=a(t);var s=(e=o(e))?i(t):0;return e&&s<e?r(e-s,n)+t:t}},53661:(t,e,n)=>{var r=n(63040),i=n(17670),o=n(90289),a=n(4509),s=n(72949);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exports=c},53889:(t,e,n)=>{"use strict";n.d(e,{j:()=>l,r:()=>u});var r=n(39589),i=n(11931),o=n(55319),a=n(58183),s=n.n(a),c=n(55049);const u=function(){let{revokeToken:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=(0,c.uA)();return(0,c.RZ)(),t?(t=>{let{accessToken:e}=t;const n=(0,i.aZ)();if((0,i.Zl)())return fetch(new URL("/v2/logout",n).href,{headers:{Authorization:`Bearer ${e}`},method:"post"});const r=btoa(`${i.F}:${i.C4}`);return fetch(new URL("/oauth/logout",n).href,{body:s()({token:e}),headers:{Authorization:`Basic ${r}`},method:"post"})})({accessToken:e}):Promise.resolve()},l=()=>!!(o.A.load(r.kV)||o.A.load(r.JS)||o.A.load(r.Ve)||o.A.load(r.Ob))},54128:(t,e,n)=>{var r=n(31800),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},54552:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},54705:(t,e,n)=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function o(t,e,n){return(e=i(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{A:()=>o})},54852:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l});var r=n(54705),i=n(40073),o=n(11931),a=n(55319),s=n(30105),c=n(81766),u=n(25080);const l=new class{constructor(){(0,r.A)(this,"isEventListenerSet",!1),(0,r.A)(this,"resolveBids",void 0),(0,r.A)(this,"hasHubvisorFailedToLoad",!1),o.KJ&&(this.hasHubvisorFailedToLoad=window.__HUBVISOR_FAIL__||!1,window.addEventListener("onHubvisorFail",()=>{this.notifyHubvisorLoadFailure()}))}setInstreamBidsEventListener(){this.isEventListenerSet||(window.Hubvisor=window.Hubvisor||{},window.Hubvisor.cmd=window.Hubvisor.cmd||[],window.Hubvisor.cmd.push(()=>{window.Hubvisor("instream:on-bids-ready",t=>{var e;(null==t||null===(e=t.players)||void 0===e?void 0:e.length)>0&&this.resolveBids&&this.resolveBids(t.players[0].queryFragment)}),this.isEventListenerSet=!0}))}setHubvisorConfig(t){let{position:e,xid:n,startDelay:r,playerVolume:i}=t;window.Hubvisor.cmd.push(()=>{window.Hubvisor("dailymotion:set-config",{api_key:u.HUBVISOR_LEO_API_KEY,ts:a.A.load("ts"),...!(0,s.G7)("neon_hubvisor_deprecate_params")&&{position:e,xid:n}})}),window.Hubvisor.cmd.push(()=>{window.Hubvisor("dailymotion:update-bid-request",{...!(0,s.G7)("neon_hubvisor_deprecate_params")&&{mediaTypes:{video:{startdelay:r}}},params:{apiKey:u.HUBVISOR_LEO_API_KEY,dmTs:a.A.load("ts"),video:{autoplay:!0,playerName:"dailymotion",...!(0,s.G7)("neon_hubvisor_deprecate_params")&&{id:c.A.getVideoXid(),playerVolume:i,videoViewsInSession:c.A.getVideoIndex()}}}})})}startHubvisorInstreamBid(t){let{position:e,coppa:n,isNextVideo:r,xid:o,playerVolume:u}=t,l={kind:"pre",startDelay:0};switch(e){case"preroll":l={kind:"pre",startDelay:0};break;case"midroll":l={kind:"mid",startDelay:-1};break;case"postroll":l={kind:"post",startDelay:-2}}(r||"preroll"!==e)&&this.setHubvisorConfig({position:e,xid:o,startDelay:l.startDelay,playerVolume:u||0}),window.Hubvisor.cmd.push(()=>{window.Hubvisor("dailymotion:instream",{ccpa:a.A.load(i.Bw),...!(0,s.G7)("neon_hubvisor_deprecate_params")&&{noad:!1,coppa:n,roll:l},customOrtb:{ext:{player:{volume:u||0}},imp:[{video:{...(0,s.G7)("neon_hubvisor_deprecate_params")&&{ext:{videoindex:c.A.getVideoIndex()}},startdelay:l.startDelay}}],regs:{coppa:n},site:{content:{id:o}}}})})}getHubvisorInstreamBids(){return Promise.race([new Promise(t=>{this.resolveBids=t,this.setInstreamBidsEventListener()}),new Promise(t=>{setTimeout(()=>{t("")},7e3)}),new Promise(t=>{this.hasHubvisorFailedToLoad&&t("")})]).then(t=>(this.resolveBids=void 0,t))}notifyHubvisorLoadFailure(){this.resolveBids&&this.resolveBids(""),this.hasHubvisorFailedToLoad=!0}}},55049:(t,e,n)=>{"use strict";n.d(e,{Q6:()=>d,RZ:()=>w,St:()=>p,eY:()=>h,gf:()=>m,h1:()=>b,uA:()=>f,yl:()=>y});var r=n(127),i=n.n(r),o=n(39589),a=n(11931),s=n(55319),c=n(58183),u=n.n(c);const l={client_id:a.F,client_secret:a.C4};function d(t){return!!t.error}const f=()=>s.A.load(o.Ve)||s.A.load(o.kV),p=async function(t,e){let{access_token:n,expires_in:r,refresh_token:i}=t,{nex:c="",nei:u=""}=e,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{waitForAPIResponse:!1};const d=r+o.oZ,f=(0,a.Zl)()?o.Ve:o.kV,p=(0,a.Zl)()?o.Ob:o.JS;s.A.remove(o.Vq),s.A.remove(o._P),s.A.save(f,n,{maxAge:r});const v={name:p,value:i,options:{maxAge:d,domain:""}};l.waitForAPIResponse?await s.A.saveAndRequest(v):s.A.saveAndRequest(v),""!==u&&s.A.save(o.WM,u,{maxAge:r}),""!==c&&s.A.save(o.bH,c,{domain:".dailymotion.com",maxAge:r})},v={headers:{"Content-Type":"application/x-www-form-urlencoded"},method:"post"},h=t=>{const e=s.A.load(o.nF),n=s.A.load(o.Gh),r={...l,...t,...e&&{traffic_segment:e},...n&&{visitor_id:n}};return fetch((0,a.aZ)(),{...v,body:u()(r)}).then(e=>{if(!e.ok&&"refresh_token"===t.grant_type)throw e;return e.json()}).then(t=>{if(t.error){return{error:"",error_description:"",reason:"",...t}}return t})},m=async function(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=t===o.kV,r=n?f():s.A.load(t);if(r)return r;if(e){const t=n&&s.A.load(o.Ob)||s.A.load(o.JS);if(t)try{const e=await(async t=>{const e=await h({grant_type:"refresh_token",refresh_token:t});if(!d(e)){const t=i()(e.access_token);return p(e,t),e.access_token}return Promise.reject(e)})(t);return e}catch(t){s.A.remove(o.JS),s.A.remove(o.Ob)}}return null};let _=null;const g=async()=>{const t=(0,a.Zl)()?o._P:o.Vq,e=t===o._P?o.Vq:o._P;s.A.remove(e);const n=await m(t,!1);if(n)return n;const r=()=>h({grant_type:"client_credentials"}).then(e=>d(e)?Promise.reject(e):(function(t,e){let{access_token:n,expires_in:r,refresh_token:i}=e;s.A.save(t,n,{maxAge:r}),i&&s.A.saveAndRequest({name:o.JS,value:i,options:{domain:""}})}(t,e),e.access_token));return a.KJ?(_||(_=r().finally(()=>{_=null})),_):r()},y=async()=>{const t=await m(o.kV);if(t)return t;if(n.g.__TOKEN__)return n.g.__TOKEN__;return await g()},w=()=>{s.A.remove(o.Vq),s.A.remove(o._P),s.A.remove(o.kV),s.A.remove(o.JS),s.A.remove(o.Ve),s.A.remove(o.Ob),s.A.remove(o.WM),s.A.remove(o.H1),s.A.remove(o.nF)},b=()=>{if(w(),s.A.save(o.$e,"on",o.kT),a.KJ&&document.location){const{search:t,href:e,pathname:n}=document.location;if(!e.includes("?retry")&&!e.includes("&retry")){const e=""===t?"?retry":`${t}&retry`;setTimeout(()=>{document.location&&(document.location.href=`${n}${e}`)},200)}}}},55319:(t,e,n)=>{"use strict";n.d(e,{A:()=>w});var r=n(86663),i=n(19909);function o(t,e){void 0===e&&(e={});var n=function(t){if(t&&"j"===t[0]&&":"===t[1])return t.substr(2);return t}(t);if(function(t,e){return void 0===e&&(e=!t||"{"!==t[0]&&"["!==t[0]&&'"'!==t[0]),!e}(n,e.doNotParse))try{return JSON.parse(n)}catch(t){}return t}var a=n(45228),s=function(){function t(t,e){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=function(t,e){return"string"==typeof t?i.q(t,e):"object"==typeof t&&null!==t?t:{}}(t,e),new Promise(function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return t.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=i.q(document.cookie,t))},t.prototype._emitChange=function(t){for(var e=0;e<this.changeListeners.length;++e)this.changeListeners[e](t)},t.prototype.get=function(t,e,n){return void 0===e&&(e={}),this._updateBrowserValues(n),o(this.cookies[t],e)},t.prototype.getAll=function(t,e){void 0===t&&(t={}),this._updateBrowserValues(e);var n={};for(var r in this.cookies)n[r]=o(this.cookies[r],t);return n},t.prototype.set=function(t,e,n){var r;"object"==typeof e&&(e=JSON.stringify(e)),this.cookies=a({},this.cookies,((r={})[t]=e,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.l(t,e,n)),this._emitChange({name:t,value:e,options:n})},t.prototype.remove=function(t,e){var n=e=a({},e,{expires:new Date(1970,1,1,0,0,1),maxAge:0}
2);this.cookies=a({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=i.l(t,"",n)),this._emitChange({name:t,value:void 0,options:e})},t.prototype.addChangeListener=function(t){this.changeListeners.push(t)},t.prototype.removeChangeListener=function(t){var e=this.changeListeners.indexOf(t);e>=0&&this.changeListeners.splice(e,1)},t}();const c=s;var u=n(39589),l=n(11931),d=n(12302),f=n(61167),p=n(23190);const v={path:"/"};let h=null;const m=t=>(h=t||new c,h),_=()=>h||m(),g=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _().set(t,e,{...v,...n,sameSite:"none",secure:"test"!==l.Gu})},y=t=>{_().addChangeListener(t)};const w={create:m,load:t=>_().get(t),remove:t=>(_().remove(t,v),_().remove(t,{...v,domain:".dailymotion.com"})),save:g,saveAndRequest:t=>{let{name:e,options:n,value:i,queryParams:o}=t;return new Promise(t=>{const a=(0,f.Ay)([f.WU]),s=l.KJ&&!a,c=n=>{if(e===n.name){const n=o&&Object.keys(o).length>0?`?${(0,r.stringify)(o)}`:"";_().removeChangeListener(c),Promise.resolve().then(()=>fetch(`${d.COOKIE}/${e}${n}`,{method:"POST",credentials:"same-origin"})).then(()=>{t()}).catch(()=>{t()})}};s?y(c):a&&console.warn("setting cookies will not work locally due to CORS restraints"),g(e,i,{...u.kT,...n}),s||t()})},listenToCookieChanges:function(t){function e(e){e&&!u.EK.includes(e)&&(0,p.A)({type:"neon_log",json_payload:{uncompliant_cookie:e},screen:t})}Object.keys(_().getAll()).forEach(t=>{e(t)}),y(t=>{e(t.name)})}}},55481:(t,e,n)=>{var r=n(9325)["__core-js_shared__"];t.exports=r},55808:(t,e,n)=>{var r=n(12507)("toUpperCase");t.exports=r},56110:(t,e,n)=>{var r=n(45083),i=n(10392);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},56284:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=()=>3600*((new Date).getTimezoneOffset()/-60)*1e3},56449:t=>{var e=Array.isArray;t.exports=e},56952:t=>{"use strict";t.exports=JSON.parse('[{"code":"ae","lang":"ar","name":"United Arab Emirates","alternate":"ar_ae"},{"code":"ar","lang":"es","name":"Argentina","alternate":"es_ar"},{"code":"at","lang":"de","name":"Austria","alternate":"de_at"},{"code":"au","lang":"en","name":"Australia","alternate":"en_au"},{"code":"be","lang":"nl","name":"Belgium","alternate":"nl_be"},{"code":"bh","lang":"ar","name":"Bahrain","alternate":"ar_bh"},{"code":"br","lang":"pt","name":"Brazil","alternate":"pt_br"},{"code":"ca","lang":"en","name":"Canada","alternate":"en_ca"},{"code":"ch","lang":"de","name":"Switzerland","alternate":"de_ch"},{"code":"ci","lang":"fr","name":"Côte d\'Ivoire","alternate":"fr_ci"},{"code":"co","lang":"es","name":"Colombia","alternate":"es_co"},{"code":"de","lang":"de","name":"Germany","alternate":"de_de"},{"code":"eg","lang":"ar","name":"Egypt","alternate":"ar_eg"},{"code":"es","lang":"es","name":"Spain","alternate":"es_es"},{"code":"fr","lang":"fr","name":"France","alternate":"fr_fr"},{"code":"gb","lang":"en","name":"United Kingdom","alternate":"en_gb"},{"code":"gr","lang":"el","name":"Greece","alternate":"el_gr"},{"code":"hk","lang":"zh","name":"Hong Kong","alternate":"zh_hk"},{"code":"id","lang":"id","name":"Indonesia","alternate":"id_id"},{"code":"in","lang":"hi","name":"India","alternate":"hi_in"},{"code":"it","lang":"it","name":"Italy","alternate":"it_it"},{"code":"jp","lang":"ja","name":"Japan","alternate":"ja_jp"},{"code":"kh","lang":"km","name":"Cambodia","alternate":"km_kh"},{"code":"kr","lang":"ko","name":"Korea, Republic of","alternate":"ko_kr"},{"code":"kw","lang":"ar","name":"Kuwait","alternate":"ar_kw"},{"code":"lb","lang":"ar","name":"Lebanon","alternate":"ar_lb"},{"code":"ma","lang":"ar","name":"Morocco","alternate":"ar_ma"},{"code":"mx","lang":"es","name":"Mexico","alternate":"es_mx"},{"code":"my","lang":"ms","name":"Malaysia","alternate":"ms_my"},{"code":"nz","lang":"en","name":"New Zealand","alternate":"en_nz"},{"code":"om","lang":"ar","name":"Oman","alternate":"ar_om"},{"code":"pe","lang":"es","name":"Peru","alternate":"es_pe"},{"code":"ph","lang":"en","name":"Philippines","alternate":"en_ph"},{"code":"pk","lang":"ur","name":"Pakistan","alternate":"ur_pk"},{"code":"pt","lang":"pt","name":"Portugal","alternate":"pt_pt"},{"code":"py","lang":"gn","name":"Paraguay","alternate":"gn_py"},{"code":"qa","lang":"ar","name":"Qatar","alternate":"ar_qa"},{"code":"sa","lang":"ar","name":"Saudi Arabia","alternate":"ar_sa"},{"code":"sg","lang":"en","name":"Singapore","alternate":"en_sg"},{"code":"sn","lang":"wo","name":"Senegal","alternate":"wo_sn"},{"code":"th","lang":"th","name":"Thailand","alternate":"th_th"},{"code":"tr","lang":"tr","name":"Türkiye","alternate":"tr_tr"},{"code":"tw","lang":"zh","name":"Taiwan","alternate":"zh_tw"},{"code":"us","lang":"en","name":"United States","alternate":"en_us"},{"code":"vn","lang":"vi","name":"Viet Nam","alternate":"vi_vn"}]')},57216:(t,e,n)=>{var r=n(84051),i=n(77556),o=n(28754),a=n(49698),s=n(81993),c=n(63912),u=Math.ceil;
2t.exports=function(t,e){var n=(e=void 0===e?" ":i(e)).length;if(n<2)return n?r(e,t):e;var l=r(e,u(t/s(e)));return a(e)?o(c(l),0,t).join(""):l.slice(0,t)}},57326:(t,e,n)=>{"use strict";n.d(e,{$0:()=>p,FL:()=>l,SC:()=>c,V:()=>f,aR:()=>d,j$:()=>h});var r=n(84058),i=n.n(r),o=(n(12302),n(61167)),a=n(30105),s=n(34834);const c="xtv3w",u="x1jrmq";function l(t,e){const n={};if(Object.keys(t).forEach(e=>{e.startsWith("utm_")&&(n.customConfig={...n.customConfig,[i()(e)]:decodeURIComponent(t[e])}),"syndication"===e&&(n.syndicationKey=t.syndication),"mute"===e&&(n.mute=t.mute)}),(0,a.G7)("neon_player_video_xid")&&e){const t=(0,s.extractXidFromUrl)(e);t&&(n.video=t)}return n}function d(t){return parseInt(t.start,10)||0}function f(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e="geo";(0,o.Ay)([o.mX,o.jd,o.gr,o.gs,o.n6,o.hc,o.cS])&&(e="geo-staging"),(0,o.Ay)([o.tf])&&(e="geo-preprod");const n=[];t.gatekeepers&&"geo"!==e&&Object.entries(t.gatekeepers).forEach(t=>{let[e,r]=t;e.startsWith("PV5_")&&r&&n.push(`GK_${e}=1`)}),(0,a.G7)("neon_inline_player")&&n.push("GK_PV5_INLINE_PLAYER=1");const r=n.length>0?`?${n.join("&")}`:"";let i=c;return(0,a.G7)("neon_watching_feed")&&(i=u),`https://${e}.dailymotion.com/player/${i}.js${r}`}function p(t){return`https://${(0,o.Ay)([o.mX])?"geo-staging":"geo"}.dailymotion.com/player.html?video=${t}`}const v=t=>encodeURIComponent(t).replace(/%20/g,"+");function h(t,e){if(!t)return"";return Object.keys(t).map(n=>{let r,i=n;if(e&&(i=`${e}[${i}]`),"object"==typeof t[n]&&null!==t[n])r=h(t[n],i);else{let e=t[n];e=!0===e?"1":e,e=!1===e?"0":e,e=0===e?"0":e,e=e||"",r=`${v(i)}=${v(e)}`}return r}).filter(t=>t).join("&").replace(/[!'()*]/g,"")}},58168:(t,e,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(null,arguments)}n.d(e,{A:()=>r})},58183:t=>{const e=(t,n)=>{const r=[];let i;for(i in t){const o=n?`${n}[${i}]`:i,a=t[i];r.push(null!==a&&"object"==typeof a?e(a,o):`${encodeURIComponent(o)}=${encodeURIComponent(a)}`)}return r.join("&")};t.exports=e},59350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},60471:t=>{for(var e=[],n=0;n<256;++n)e[n]=(n+256).toString(16).substr(1);t.exports=function(t,n){var r=n||0,i=e;return i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+"-"+i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]+i[t[r++]]}},61074:t=>{t.exports=function(t){return t.split("")}},61167:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>m,M5:()=>v,Q5:()=>h,WU:()=>i,cS:()=>d,gr:()=>s,gs:()=>c,hc:()=>l,jd:()=>a,mX:()=>o,n6:()=>u,tf:()=>p,vy:()=>f});var r=n(11931);const i="dev",o="staging",a="stage-01",s="stage-33",c="stage-44",u="stage-47",l="stage-52",d="stage-53",f="preview",p="preprod",v="prod";function h(){return r.Gu.match(/stage-[0-9]{2}/)}function m(t){return t.includes(r.Gu)}},61489:(t,e,n)=>{var r=n(17400);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},63040:(t,e,n)=>{var r=n(21549),i=n(80079),o=n(68223);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},63702:t=>{t.exports=function(){this.__data__=[],this.size=0}},63862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},63912:(t,e,n)=>{var r=n(61074),i=n(49698),o=n(42054);t.exports=function(t){return i(t)?o(t):r(t)}},64475:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(68414),i=n.n(r),o=n(39589),a=n(55319);const s=()=>{const t=i()().replaceAll("-","").toUpperCase();return a.A.save(o.Gh,t,{domain:".dailymotion.com",maxAge:o.Z8}),t},c=()=>{try{return a.A.load(o.Gh)||s()}catch{return console.error("error loading the v1st cookie"),null}}},64634:t=>{t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},66645:(t,e,n)=>{var r=n(1733),i=n(45434),o=n(13222),a=n(22225);t.exports=function(t,e,n){return t=o(t),void 0===(e=n?void 0:e)?i(t)?a(t):r(t):t.match(e)||[]}},66721:(t,e,n)=>{var r=n(81042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},68223:(t,e,n)=>{var r=n(56110)(n(9325),"Map");t.exports=r},68414:(t,e,n)=>{var r=n(41033),i=n(12550),o=i;
2o.v1=r,o.v4=i,t.exports=o},69357:(t,e,n)=>{"use strict";n.d(e,{Hs:()=>c,Re:()=>u,_6:()=>a,ah:()=>s});var r=n(40073),i=n(55319),o=n(76534);function a(t){const e=t?"N":"Y";i.A.save(r.Bw,`1Y${e}Y`,r.Ip),o.A.consent({consent_for:"ccpa"})}function s(){const t=i.A.load(r.Bw);t?(0,r.oN)()&&t===r.r1&&(a(!0),o.A.consent({consent_for:"ccpa"})):(0,r.oN)()?a(!0):(i.A.save(r.Bw,r.r1,r.Ip),o.A.consent({consent_for:"ccpa"}))}function c(){const t=i.A.load(r.Bw);return!!t&&"Y"!==t[2]}function u(){const t=i.A.load(r.Bw);if(t)return{version:"1",notice:e(t[1]),sale_optout:e(t[2]),lspact:e(t[3])};function e(t){return"Y"===t||"N"!==t&&void 0}}},70080:(t,e,n)=>{var r=n(26025),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},72552:(t,e,n)=>{var r=n(51873),i=n(659),o=n(59350),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},72949:(t,e,n)=>{var r=n(12651);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},73055:t=>{"use strict";t.exports=function(t,e){for(var n={},r=Object.keys(t),i=Array.isArray(e),o=0;o<r.length;o++){var a=r[o],s=t[a];(i?-1!==e.indexOf(a):e(a,s,t))&&(n[a]=s)}return n}},74218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},75288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},76011:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>p,E8:()=>f,as:()=>d});var r=n(41918),i=n(28617),o=n(45940),a=n(99349),s=n(30105),c=n(99204),u=n(3739),l=n(18198);function d(){return!(0,c.HH)("NEON_DISABLE_HUBVISOR")&&(!(0,i.fx)()||f()||!(0,i.Pq)())}function f(){return!(0,c.HH)("NEON_DISABLE_HUBVISOR")&&(0,s.G7)("neon_mix_dmads_display_and_hubvisor_instream")}const p={displayOrRefreshAds:async function(t){let{canDisplayAds:e,trackingDataScreen:n,currentVideo:i,geoipCountry:c,localeCountry:d,device:f,birthday:p}=t;(0,l.lj)(),u.A.setTrackingDataScreen(n),(0,l.Wh)();const v=await(0,l.xC)({geoipCountry:c,localeCountry:d,currentVideo:i}),h=p?(0,a.QO)(p):void 0,{isCreatedForKids:m}=i,_=(0,r.R)({isCreatedForKids:m,userAge:h});if((0,s.G7)("neon_check_consent_before_calling_hubvisor")&&!await(0,o._z)())return;const g=(0,l.FQ)(i.iab_categories);(0,l.y2)({canDisplayAds:e,device:f,coppa:_,additionalGlobalTargetings:v,iabCategories:g})},onAdViewable:function(t){function e(e){let{device:n,format:r,position:i}=e;t(`display_ads_${n}_${r}_${i}`)}return(0,l.Vj)(e),()=>{(0,l.Cw)(e)}}}},76511:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});var r=n(17929);const i=n(11931).KJ?(0,r.zR)():null},76534:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var r=n(54705),i=n(68414),o=n.n(i),a=n(11931),s=n(95943),c=n(90503),u=n(69357),l=n(38221),d=n.n(l),f=n(61167);const p=!(0,f.Ay)([f.M5]);class v{constructor(t){let{endpoint:e,payload:n,batchSize:i=10}=t;(0,r.A)(this,"queue",[]),(0,r.A)(this,"batchSize",null),(0,r.A)(this,"onFlush",null),(0,r.A)(this,"endpoint",null),(0,r.A)(this,"payload",null),(0,r.A)(this,"flushDelay",4),this.endpoint=e,this.payload=n,this.batchSize=i,this.debouncedFlush=d()(this.flush,1e3*this.flushDelay)}push(t){a.KJ&&p&&console.debug(`%cTracking event: %c${t.name}`,"font-weight:bold;color:#088","color:#0A0",t.data),this.queue.push(t),this.queue.length>=this.batchSize?this.flush():this.debouncedFlush()}flush(){if(!this.queue.length)return Promise.resolve(!1);const t=this.post();return this.queue=[],t}post(){if(!a.KJ)return Promise.resolve();const t=this.queue.slice(),e={...this.payload,sent_ts:Date.now(),events:t};return window.fetch(this.endpoint,{method:"POST",body:JSON.stringify(e)})}}var h=n(43980),m=n(84451),_=n(16572);const g={video:{small:"small_hrz_textin",smallHorizontal:"small_hrz",smallVertical:"small_vrt"},collection:{small:"small_hrz_textin",smallHorizontal:"small_hrz",smallVertical:"small_vrt"},channel:{rectangular:"card_hrz",small:"card_hrz",smallHorizontal:"card_hrz",smallVertical:"card_hrz"}};class y{constructor(t){const e=t.style||this.getComponentStyle(t),{xid:n,type:r,index:i,width:o,height:a,column_index:s,recommended_algo:c}=t;this.payload={style:e,...n&&{xid:n},...r&&{type:r},...void 0!==i&&{index:i},...o&&{width:o},...a&&{height:a},...void 0!==s&&{column_index:s},...void 0!==c&&{recommended_algo:c}}}getComponentStyle(t){let{type:e,size:n}=t;if(!e||!n)return null;return g["live"===e?"video":e][n]||n}}class w{constructor(t,e,n){(0,r.A)(this,"state",void 0),(0,r.A)(this,"eventName",void 0),(0,r.A)(this,"data",void 0),(0,r.A)(this,"payload",void 0),(0,r.A)(this,"currentScreen",null),this.state=n,this.eventName=t,this.data=e,this.payload=this.getPayload()}getPayload(){const{screen:t,component:e,section:n,action:r,videoLoad:i,state:a,share:s,change:c,type:u,json_payload:l,adblock_detected:d,index_name:f,query_id:p,app_id:v,object_id:h,position:g,view:y,time_to_tcloaded:w,time_to_cmpuishown:b,time_to_useractioncomplete:E,totalJSHeapSize:A,usedJSHeapSize:S,refresh_count:C}=this.data,T={name:this.eventName,version:"1.0",data:{created_ts:Date.now(),sequence_source:"tab",sequence_number:(0,_.A)(),info:m.A.get(),...u&&{type:u},...l&&{json_payload:JSON.stringify(l)},...void 0!==d&&{adblock_detected:d},...f&&{index_name:f},...p&&{query_id:p},...v&&{app_id:v},...h&&{object_id:h},...g&&{position:g},...o()&&{uuid:this.data.uuid},...y&&{view:y},...w&&{time_to_tcloaded:w},...b&&{time_to_cmpuishown:b},...E&&{time_to_useractioncomplete:E},...A&&{totalJSHeapSize:A},...S&&{usedJSHeapSize:S},...C&&{refresh_count:C}}};if("app_login_failed"===this.eventName){const{location:t,method:e,source:n,reason:r,oauth_error:i,error_description:o,client_id:a,redirect_uri:s}=this.data;Object.assign(T.data,{location:t,...e&&{method:e},...n&&{source:n},...r&&{reason:r},...i&&{oauth_error:i},...o&&{error_description:o},...a&&{client_id:a},...s&&{redirect_uri:s}})}return"app_log"!==this.eventName&&Object.assign(T.data,{settings:this.getAppSettings()}),t&&(this.currentScreen=t,T.data.screen=this.getScreen(this.currentScreen)),e&&(T.data.component=this.getComponent(e)),n&&(T.data.section=this.getSection(n)),r&&(T.data.action=this.getAction(r)),i&&(T.data.action=i),a&&(T.data.state=this.getState(a)),s&&(T.data.share=this.getShare(s)),c&&(T.data.change=this.getChange(c)),T}getAppSettings(){const{country:t,languageTag:e}=this.state.locale;return{country:t.toUpperCase(),locale:e.replace("-","_")}}getShare(t){return{...t}}getChange(t){return{...t}}getState(t){return{...t}}getAction(t){return{uuid:o()(),gesture:"click",...t}}getScreen(t){const{url:e,router:n,name:r,id:i,xid:o,space:a,search_query:s,refresh_id:c,type:u,secondary_type:l,secondary_xid:d,sort_type:f,duration_filter_type:p,uploaddate_filter_type:v}=t,h={id:i||this.state.tracking.screen.id,...c&&{refresh_id:c}
2,name:r,space:a,url:e,...s&&{search_query:s},...u&&{type:u},...l&&{secondary_type:l},...d&&{secondary_xid:d},...f&&{sort_type:f},...p&&{duration_filter_type:p},...v&&{uploaddate_filter_type:v}},m=o||this.state.tracking.screen.xid;if(m&&(h.xid=m),n){const{params:t}=n;t.xid&&(h.xid=t.xid)}return h}getSection(t){const e={type:t.type||t.name,index:t.index||0};if(t.source){const{uuid:n,name:r,version:i}=t.source;e.source={uuid:n,name:r,version:i}}return t.content_type&&(e.content_type=t.content_type),t.xid&&(e.xid=t.xid),t.tag&&(e.tag=t.tag),e}getComponent(t){return new y(t).payload}}const b=new class{constructor(){(0,r.A)(this,"queue",null),(0,r.A)(this,"store",null),(0,r.A)(this,"payload",{edward:"1.1"})}init(t){let{store:e}=t;this.store=e,this.queue=new v({endpoint:this.getEndpoint(),payload:this.payload})}getEndpoint(){return(0,h.A)()}trigger(t,e){if(!this.store||!a.KJ)return null;const n=new w(t,e,this.store.getState());return this.queue.push(n.payload),(0,c.gT)(),n.payload}display(t){this.trigger("ui_display",t)}genericLoggingEvent(t){this.trigger("app_log",{...t})}loginFailed(t){this.trigger("app_login_failed",t)}share(t){this.trigger("share",t)}action(t,e){this.trigger("ui_action",{action:t,...e})}videoLoad(t,e){this.trigger("video_load",{videoLoad:t,...e})}state(t,e){this.trigger("content_state",{state:t,...e})}change(t,e){this.trigger("app_signin_change",{change:t,...e})}rum(t){let{res:e,responseTime:n,endpoint:r,isAuthenticated:i,query:o}=t;if(!this.store)return;const s=new w("rum_api_graphql",{},this.store.getState()),{status:c}=e,{created_ts:u,info:l,sequence_source:d,sequence_number:f}=s.payload.data,p=e.headers.get("X-DM-API-CDN-Name"),v=e.headers.get("X-DM-API-Version"),h=e.headers.get("X-DM-API-Backend-Response-Time"),m=e.headers.get("X-DM-API-Name"),_=e.headers.get("X-DM-API-Edge"),g=e.headers.get("X-DM-API-Endpoint"),y={...s.payload,data:{authenticated:i,created_ts:u,http_method:"GET",http_path:r,http_status_code:c,info:l,sequence_number:f,sequence_source:d,total_load_time:n,...p&&{cdn_name:p},...h&&{api_version:v,backend_response_time:parseInt(h,10)},..._&&{api_edge:_},...g&&{api_endpoint:g},...m&&{api_name:m},http_body:o}};a.KJ&&this.queue.push(y)}reportJSErrors(t){if(!this.store)return;const e=new w("app_error",{},this.store.getState()),{created_ts:n,info:r,sequence_source:i,sequence_number:o}=e.payload.data,s={...e.payload,data:{created_ts:n,error_info:t,info:r,sequence_number:o,sequence_source:i}};a.KJ&&this.queue.push(s)}consent(t){this.store&&a.KJ&&this.consentV2(t)}async consentV2(t){if(!this.store)return;const e=this.store.getState(),n=new w("app_consent",{},e),{created_ts:r,info:i,sequence_source:a,sequence_number:c}=n.payload.data,l={...n.payload,data:{created_ts:r,id:o()(),info:i,sequence_number:c,sequence_source:a,consent_for:t.consent_for||"gdpr",consent_from:t.consent_from||["in_house_tcf2"],wording_locale:e.locale.country,wording_version:1,consent:{iab:t.iab||(0,s.Q2)(),us_privacy:(0,u.Re)()}}};this.queue.push(l)}dmaidCreated(t){if(!this.store)return;const e=this.store.getState(),n=new w("app_consent",{},e),r={...n.payload,data:{...n.payload.data,dmaid:t}};this.queue.push(r)}adBlockerDetection(t){let{adBlockerDetected:e,screen:n}=t;this.trigger("adblock_detection",{adblock_detected:e,screen:n})}searchResultClick(t){let{indexName:e,itemXid:n,itemIndex:r,queryId:i,appId:o,screen:a}=t;this.trigger("search_result_click",{object_id:n,position:(r+1).toString(),query_id:i,app_id:o,index_name:e,screen:a})}searchResultVideoStarted(t){let{indexName:e,itemXid:n,queryId:r,appId:i,screen:o}=t;this.trigger("search_result_video_started",{object_id:n,query_id:r,app_id:i,index_name:e,screen:o})}trackMemoryUsage(t){this.trigger("neon_track_memory_usage",{...t})}trackTimeToFirstDisplayAuction(t){this.trigger("time_to_first_display_auction",{...t})}}},77556:(t,e,n)=>{var r=n(51873),i=n(34932),o=n(56449),a=n(44394),s=r?r.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},77927:t=>{var e="\\ud800-\\udfff",n="["+e+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?",l=u+c+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+u+c+")*"),d="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+d+l,"g");t.exports=function(t){for(var e=f.lastIndex=0;f.test(t);)++e;return e}},80079:(t,e,n)=>{var r=n(63702),i=n(70080),o=n(24739),a=n(48655),s=n(31175);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,t.exp
2orts=c},81042:(t,e,n)=>{var r=n(56110)(Object,"create");t.exports=r},81766:(t,e,n)=>{"use strict";n.d(e,{A:()=>I});var r=n(54705),i=n(37787),o=n(68414),a=n.n(o),s=n(83854),c=n(43777),u=n(57326),l=n(39589),d=n(11931),f=n(28617),p=n(39089),v=n(76011),h=n(54852),m=n(45940),_=n(91942),g=n(87921),y=n(16728),w=n(30105),b=n(99204),E=n(36905),A=n(84451),S=n(23190);var C=n(53889),T=n(55049);const x={onAdEnded:()=>{},onAdPaused:()=>{},onAdPlay:()=>{},onAdStart:()=>{},onAdTimeUpdate:()=>{},onAdClick:()=>{},onVolumeChange:()=>{},onEnd:()=>{},onError:()=>{},onFullscreenChange:()=>{},onLoad:()=>{},onPause:()=>{},onPlaying:()=>{},onPlay:()=>{},onPlaybackReady:()=>{},onReady:()=>{},onStart:()=>{},onTimeUpdate:()=>{},onVideoChange:()=>{},onVideoEnd:()=>{},onLoadedMetadata:()=>{}},I=new class{constructor(){var t=this;(0,r.A)(this,"player",null),(0,r.A)(this,"videoXid",null),(0,r.A)(this,"videoIndex",-1),(0,r.A)(this,"wasInitInWatchingPage",!1),(0,r.A)(this,"hideThumbnailIfFirstLoad",()=>{window.hasReferer||this.hideVideoThumbnail()}),(0,r.A)(this,"playerApiReadyPromise",null),(0,r.A)(this,"resolvePlayerApiAsReady",null),(0,r.A)(this,"videoChangePromise",null),(0,r.A)(this,"resolveVideoChangePromise",null),(0,r.A)(this,"playerEventCallbackNames",["onPlaybackReady","onPlaying","onPlay","onPause","onLoad","onEnd","onError","onVideoEnd","onReady","onAdClick","onAdPlay","onAdStart","onLoadedMetadata","onAdEnded","onAdPaused","onStart","onTimeUpdate","onAdTimeUpdate","onVolumeChange","onVideoChange","onFullscreenChange"]),(0,r.A)(this,"playerEventsCallbacks",{...x}),(0,r.A)(this,"isRecordingEvents",!1),(0,r.A)(this,"recordedEvents",[]),(0,r.A)(this,"playerEventRecordingCallbacks",this.playerEventCallbackNames.reduce((e,n)=>({...e,[n]:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t.isRecordingEvents&&t.recordedEvents.push({args:r,callbackName:n});const o=t.playerEventsCallbacks[n];"function"==typeof o&&o(...r)}}),x)),(0,r.A)(this,"getVideoIndex",()=>this.videoIndex),(0,r.A)(this,"replayRecordedEvents",()=>{this.recordedEvents.forEach(t=>{let{callbackName:e,args:n}=t;(0,this.playerEventsCallbacks[e])(...n)})}),(0,r.A)(this,"registerCallbacks",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{recordEvents:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.isRecordingEvents=n,t.playerEventsCallbacks={...t.playerEventsCallbacks,...e}}),this.playerApiReadyPromise=new Promise(t=>{this.resolvePlayerApiAsReady=t}),this.videoChangePromise=d.KJ?this.createVideoChangePromise():null}async init(){var t,e;const n=(null===(t=window.location.pathname)||void 0===t?void 0:t.includes("/video/"))||(null===(e=window.location.pathname)||void 0===e?void 0:e.includes("/playlist/"));return this.wasInitInWatchingPage=n,this.initialScreenTracking=window.__INITIAL_SCREEN_TRACKING_DATA__,d.KJ&&window.__INITIAL_APP_ENTER_EVENT__&&"action"in window.__INITIAL_APP_ENTER_EVENT__.data&&(this.initialActionTracking=window.__INITIAL_APP_ENTER_EVENT__.data.action),await this.createPlayer(),this.addEventListeners(),(0,E.A)()===_.X.MOBILE&&(0,s.Ay)(),this.videoXid}async createPlayer(){const[,t=null]=window.location.pathname.match(/video\/([a-zA-Z0-9]+)/)||[];return new Promise(e=>{var n;const r=async()=>{var n;if(null!==(n=window.dailymotion)&&void 0!==n&&n.getEnvironmentInfo){const t=window.dailymotion.getEnvironmentInfo();A.A.setBrowserInfo(t)}try{var r;if(null===(r=window.dailymotion)||void 0===r||!r.getPlayer)throw new Error("PES error");{var i;window.performance.mark("pes_setup_start"),this.player=await window.dailymotion.getPlayer(),window.performance.mark("pes_setup_end"),window.performance.measure("time_to_pes_setup","pes_setup_start","pes_setup_end"),null===(i=this.getState())||void 0===i||i.then(t=>{A.A.setPlayerEnvInfos({player:{instance_uuid:t.playerInstanceId}})}),this.resolvePlayerApiAsReady&&this.resolvePlayerApiAsReady();const n=await(0,T.gf)(l.kV);var o,a;if(n)null===(o=window.dailymotion)||void 0===o||null===(a=o.forwardAuthToken)||void 0===a||a.call(o,n);e(t)}}catch(t){console.error("Create player failed: ",t)}};if(null!==(n=window.dailymotion)&&void 0!==n&&n.getPlayer)r();else{var i;const{onScriptLoaded:t}=(null===(i=window)||void 0===i?void 0:i.dailymotion)||{};window.dailymotion={onScriptLoaded:()=>{null==t||t(),r()}}}})}addEventListeners(){this.on("playback_ready",()=>{this.playerEventRecordingCallbacks.onPlaybackReady(this.videoXid);const t=(0,c.xB)(this.videoXid||""),e=(0,c.ms)("time_to_neon_playback_ready","first_script_execution","neon_playback_ready");e&&(0,S.A)({type:"neon_log",json_payload:{neon_playback_ready:e},screen:t.screen})}),this.on("videochange",async t=>{if(this.videoIndex++,!this.player)return;const e=t.videoId;if(0===this.videoIndex&&this.wasInitInWatchingPage){const n=()=>{(0,S.A)({name:"video_load",type:"neon_log",action:this.initialActionTracking,screen:{...this.initialScreenTracking,name:"watching_discovery",space:"space_watching",type:"video"},component:{index:0,type:"video",xid:e},view:{view_id:null==t?void 0:t.videoViewId,video_index:this.videoIndex},uuid:a()()})};(0,C.j)()?A.A.userLoadPromise.then(()=>{n()}):n()}this.videoXid===e&&this.resolveVideoChangePromise&&this.resolveVideoChangePromise(e),this.playerEventRecordingCallbacks.onVideoChange(t,{})}),this.on("pes_presentationmodechange",async t=>{this.playerEventRecordingCallbacks.onFullscreenChange("fullscreen"===t.playerPresentationMode,t,t.adIsPlaying||!1)}),this.on("videochange",t=>{this.playerEventRecordingCallbacks.onLoadedMetadata(t)}),this.on("ad_impression",async t=>{this.player&&this.playerEventRecordingCallbacks.onAdStart(this.videoXid,t)}),this.on("ad_readytofetch",async t=>{var e;const{adPosition:n,playerVolume:r,playerIsMuted:i}=t;var o,a;if("preroll"===n)return void(null===(o=this.player)||void 0===o||o.setCustomConfig({},{}));if(((0,w.G7)("neon_check_consent_before_calling_hubvisor")||(0,w.G7)("neon_check_consent_before_calling_dmads"))&&!await(0,m._z)())return void(null===(a=this.player)||void 0===a||a.setCustomConfig({},{}));let s;if((0,c.sz)()){window.performance&&"function"==typeof window.performance.mark&&window.performance.mark(!(0,v.as)()&&!(0,v.
2E8)()||(0,f.Pq)()?"dmAds_auction_start":"hubvisor_auction_start");const t=((0,v.as)()||(0,v.E8)())&&!(0,f.Pq)(),e=i||!r?-1:Math.round(10*r);if(s=await Promise.race([new Promise(r=>{t?(h.Ay.startHubvisorInstreamBid({position:n||"",isNextVideo:!1,xid:this.videoXid||void 0,playerVolume:e}),r(h.Ay.getHubvisorInstreamBids())):(0,f.fx)()&&n&&(p.A.startDmAdsInstreamBid({position:n,xid:this.videoXid||void 0,playerVolume:e}),r(p.A.getDmAdsInstreamBids()))}),new Promise(t=>{setTimeout(()=>{t(void 0)},4e3)})]).then(t=>t).catch(()=>{}),s){var u,l;const e={auctionStart:t?"hubvisor_auction_start":"dmAds_auction_start",timeToCompleteAuction:t?"time_to_complete_hubvisor_auction":"time_to_complete_dmAds_auction"};window.performance.measure(e.timeToCompleteAuction,e.auctionStart);const r=performance.getEntriesByName(e.timeToCompleteAuction)[0];return(0,S.A)({name:t?"neon_hubvisor_auction_time":"neon_dmads_auction_time",type:"neon_load",screen:null===(u=this.playerTrackingData)||void 0===u?void 0:u.screen,time_for_auction:r?Math.round(r.duration):void 0,position:n,is_first_preroll:!1}),window.performance.clearMeasures(e.timeToCompleteAuction),void(null===(l=this.player)||void 0===l||l.setCustomConfig({},(0,c.pW)(s)))}}null===(e=this.player)||void 0===e||e.setCustomConfig({},{})}),this.on("video_start",()=>{this.playerEventRecordingCallbacks.onStart(this.videoXid)}),this.on("pause",t=>{this.playerEventRecordingCallbacks.onPause(t)}),this.on("end",()=>{this.playerEventRecordingCallbacks.onEnd()}),this.on("video_end",t=>{this.playerEventRecordingCallbacks.onVideoEnd(t)}),this.on("playing",()=>{this.playerEventRecordingCallbacks.onPlaying(this.videoXid)}),this.on("play",t=>{this.playerEventRecordingCallbacks.onPlay(t)}),this.on("ad_play",t=>{this.playerEventRecordingCallbacks.onAdPlay(this.videoXid,t)}),this.on("ad_end",this.playerEventRecordingCallbacks.onAdEnded),this.on("ad_pause",t=>{this.playerEventRecordingCallbacks.onAdPaused(t)}),this.on("ad_timeupdate",async t=>{if(this.player){const e=t.adTime||0,n=t.adDuration||0;this.playerEventRecordingCallbacks.onAdTimeUpdate(this.videoXid,{progress:e/n,time:e},t)}}),this.on("ad_timeupdate",this.hideThumbnailIfFirstLoad,!0),this.on("volumechange",async t=>{this.playerEventRecordingCallbacks.onVolumeChange(t,(null==t?void 0:t.adIsPlaying)||!1)}),this.on("timeupdate",async t=>{if(this.player){const e=t.videoTime,n=t.videoDuration;this.playerEventRecordingCallbacks.onTimeUpdate(this.videoXid,{progress:e/n,time:e},t)}}),this.on("timeupdate",this.hideThumbnailIfFirstLoad,!0),this.on("ad_click",t=>{this.playerEventRecordingCallbacks.onAdClick(t)}),this.on("ad_companions",t=>{var e;const n=null===(e=t.adCompanion)||void 0===e||null===(e=e[0])||void 0===e||null===(e=e.variations)||void 0===e||null===(e=e[0])||void 0===e||null===(e=e.staticResources)||void 0===e?void 0:e[0],r=null==n?void 0:n.creativeType,i=null==n?void 0:n.url;(0,g.cC)(i)&&r&&(0,y.EW)(r)&&function(t){let{id:e=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};new Promise(n=>{let r=!1;const i=document.createElement("script");i.type="text/javascript",i.src=t,i.id=e,i.async=!0,i.onload=i.onreadystatechange=function(){r||this.readyState&&"complete"!==this.readyState||(r=!0,n())};const o=document.getElementsByTagName("script")[0];null!=o&&o.parentNode&&o.parentNode.insertBefore(i,o)})}(i)}),this.on("posterdisplay",this.hideThumbnailIfFirstLoad,!0),this.on("error",()=>{this.playerEventRecordingCallbacks.onError(this.videoXid)})}async on(t,e){var n;let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];null===(n=this.player)||void 0===n||n.on(t,e,{once:r})}async off(t,e){var n;null===(n=this.player)||void 0===n||n.off(t,e)}getPlaylistXid(){var t,e;const[,n=null]=(null===(t=window.location.pathname)||void 0===t?void 0:t.match(/playlist\/([a-zA-Z0-9]+)/))||[];return n||(null===(e=(0,c.vA)())||void 0===e?void 0:e.playlist)}getVideoXid(){return this.videoXid}hideVideoThumbnail(){const t=document.getElementById("watching-player-placeholder");!t||"none"===t.style.backgroundImage&&"auto"===t.style.zIndex||(t.style.backgroundImage="none",t.style.zIndex="auto")}trackFirstNeonLoad(t){try{if(window.performance&&"function"==typeof window.performance.mark&&!window.hasReferer&&(window.performance.mark("player_load_start"),window.performance.measure("time_to_player_load","first_script_execution","player_load_start"),(0,y.TX)(window.location.pathname))){const e=performance.getEntriesByName("time_to_player_load")[0];(0,S.A)({type:"neon_load",json_payload:{neon_player_load_call:null==e?void 0:e.duration},screen:null==t?void 0:t.screen}),(0,b.HH)("NEON_RUM_DATA_DOG")&&i.L.addAction("time-to-player-load",{player_load_time:null==e?void 0:e.duration}),window.performance.measure("time_to_call_pes_load","pes_lib_loaded","player_load_start")}}catch(t){console.debug("Could not register performance mark player_load_start",t)}}async load(t){var e,n;let{videoXid:r,playerTrackingData:i,customConfig:o,isPreloadedFromPES:a}=t;if(await this.playerApiReadyPromise,!this.player)throw new Error("Player is not initialized");if(this.videoXid===r)return Promise.resolve();this.videoChangePromise=null===this.videoXid?this.videoChangePromise:this.createVideoChangePromise(),this.videoXid=r;
2const s=[this.getAdsParamsForMENA()].filter(Boolean).join(",");if(this.playerTrackingData=i,null===(e=this.player)||void 0===e||null===(n=e.setCustomConfig)||void 0===n||n.call(e,{customParams:s,...o}),!a){var l,d,f,p;if(this.trackFirstNeonLoad(i),i)null===(f=window.dailymotion)||void 0===f||null===(p=f.forwardNeonTrackingData)||void 0===p||p.call(f,i);const t=(0,u.aR)((0,c.vA)()||{});null===(l=this.player)||void 0===l||null===(d=l.loadContent)||void 0===d||d.call(l,{video:this.videoXid,playlist:this.getPlaylistXid(),startTime:t})}return this.playerEventRecordingCallbacks.onLoad(r),Promise.resolve()}getState(){var t,e;return this.player?null===(t=this.player)||void 0===t||null===(e=t.getState)||void 0===e?void 0:e.call(t):new Promise(t=>{this.on("playerstate",e=>{t(e)},!0)})}async play(){if(await this.playerApiReadyPromise,!this.player)throw new Error("Player is not initialized");return this.player.play()}async pause(){if(await this.playerApiReadyPromise,!this.player)throw new Error("Player is not initialized");return this.player.pause()}async seek(t){if(await this.playerApiReadyPromise,!this.player)throw new Error("Player is not initialized");this.player.seek(t)}async stop(){if(this.videoXid=null,await this.playerApiReadyPromise,!this.player)throw new Error("Player is not initialized");return await new Promise(t=>{const e=()=>{var e,n;null===(e=this.player)||void 0===e||e.seek(0),null===(n=this.player)||void 0===n||n.pause(),t()};this.getState().then(t=>{if(t.playerIsPlaying||t.adIsPlaying)e();else{const t=()=>{this.off("ad_play",n),e()},n=()=>{this.off("playing",t),e()};this.on("playing",t,!0),this.on("ad_play",n,!0)}})}),this.playerEventRecordingCallbacks.onEnd()}
2async restart(){if(await this.playerApiReadyPromise,!this.player)throw new Error("Player is not initialized");if(this.videoXid){const t=(0,u.aR)((0,c.vA)()||{});this.player.loadContent({video:this.videoXid,playlist:this.getPlaylistXid(),startTime:t})}}async isFullscreen(){if(!this.player)return!1;return"fullscreen"===(await this.getState()).playerPresentationMode}async setFullscreen(t){if(await this.playerApiReadyPromise,!this.player)throw new Error("Player is not initialized");this.player.setFullscreen(t);return!!this.player&&!!await this.isFullscreen()}async getVideoDuration(){return this.player?(await this.getState()).videoDuration:null}async getVideoVolume(){return this.player?(await this.getState()).playerVolume:null}async getCurrentVideoTime(){return this.player?(await this.getState()).videoTime:null}setMuted(t){this.player&&this.player.setVolume(t?0:1)}setCustomRecommendations(t){var e,n;null===(e=this.player)||void 0===e||null===(n=e.setCustomRecommendations)||void 0===n||n.call(e,t)}getQueryOptions(t){if(!t)return{};const e={start:t=>parseInt(t,10)};return Object.keys(e).reduce((n,r)=>{const i=e[r],o=t[r];return void 0!==o&&(n[r]=i?i(o):o),n},{})}getAdsParamsForMENA(){try{return function(){var t;const e=null===(t=window.__COUNTRY__)||void 0===t?void 0:t.toUpperCase();return["AE","BH","DZ","EG","IQ","JO","KW","LB","MA","OM","QA","SA","TN","YE","LY","MR","PS"].includes(e)}()?JSON.parse(localStorage._pdfps||"[]").slice(0,250).join(","):""}catch(t){return console.error("Error loading the ads_params",t),""}}createVideoChangePromise(){return new Promise(t=>{this.resolveVideoChangePromise=t})}getCurrentVideoXid(){return this.videoXid}}},81993:(t,e,n)=>{var r=n(99811),i=n(49698),o=n(77927);t.exports=function(t){return i(t)?o(t):r(t)}},83854:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>d,IA:()=>u,cu:()=>c});var r=n(92863),i=n(43777),o=n(16728),a=n(23190),s=n(81766);function c(){return 1/(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*100+"%"}function u(t){return t.adHeight&&t.adWidth&&t.adHeight>t.adWidth}const l=()=>{const t=s.A.getCurrentVideoXid(),e=t?(0,i.xB)(t).screen:void 0;(0,a.A)({name:"neon_vertical_ad_detected",type:"neon_log",screen:e})};function d(){function t(t){const e=document.getElementById("player-wrapper"),n=document.getElementById("watching-player-placeholder"),i=null==n?void 0:n.parentElement;if(e&&n&&i){i.style.paddingTop=c(t);const o=document.getElementById("continuous-player");(!o||o&&"hidden"===window.getComputedStyle(o).visibility)&&(0,r.A)(e,n)}}s.A.on("ad_loaded",e=>{u(e)&&(l(),window.isVerticalAd=!0,(0,o.rO)()||t(.8))}),s.A.on("ad_end",()=>{window.isVerticalAd&&(window.isVerticalAd=!1,t(16/9))}),s.A.on("videochange",()=>{window.isVerticalAd&&(window.isVerticalAd=!1,t(16/9))})}},84051:t=>{var e=Math.floor;t.exports=function(t,n){var r="";if(!t||n<1||n>9007199254740991)return r;do{n%2&&(r+=t),(n=e(n/2))&&(t+=t)}while(n);return r}},84058:(t,e,n)=>{var r=n(14792),i=n(45539)(function(t,e,n){return e=e.toLowerCase(),t+(n?r(e):e)});t.exports=i},84451:(t,e,n)=>{"use strict";n.d(e,{A:()=>v});var r,i=n(54705),o=n(68414),a=n.n(o),s=n(11931),c=n(11136),u=n(64475),l=n(90503),d=n(36905),f=n(99363),p=n(56284);const v=new class{constructor(){(0,i.A)(this,"uuid",s.KJ&&(null!=(r=window)&&null!=(r=r.__INITIAL_APP_ENTER_EVENT__)&&null!=(r=r.data)&&null!=(r=r.info)&&null!=(r=r.landing)?r.id:r)||a()()),(0,i.A)(this,"state",null),(0,i.A)(this,"store",null),(0,i.A)(this,"referrer",null),(0,i.A)(this,"userLoadPromise",new Promise(t=>{this.userDataIsReady=t})),(0,i.A)(this,"playerEnvInfos",s.KJ&&window.__INITIAL_APP_ENTER_EVENT__?window.__INITIAL_APP_ENTER_EVENT__.data.info:{player:{},browser:{},visitor:{}}),(0,i.A)(this,"timezoneOffset",(0,p.A)())}init(t,e){this.store=t,this.state=t.getState(),this.apolloClient=e}get(){return{visitor:this.getVisitorInfo(),player:this.getPlayerInfo(),browser:this.getBrowserInfo(),app:this.getAppInfo(),device:this.getDeviceInfo(),landing:this.getLanding()}}getLanding(){return this.referrer=this.referrer||window.document.referrer.split("?")[0].slice(0,100),{id:this.uuid,...this.referrer&&{referer:this.referrer}}}setPlayerEnvInfos(t){delete t.player.embedder_hostname,this.playerEnvInfos={...this.playerEnvInfos,...t}}setBrowserInfo(t){this.playerEnvInfos.browser={os_family:t.osFamily,os_name:t.osName,ua_fam
2ily:t.uaFamily,ua_name:t.uaName,ua_version:t.uaVersion}}getVisitorInfo(){var t,e,n,r;const i=(0,l.FB)(),{country_code:o,region_code:a}=window.__TWIG_FULL_LOCALE__||{country:null,region:null},s={as_number:window.__AS_NUMBER__,country:o,region:a,id:(null===(t=this.state)||void 0===t||null===(t=t.session)||void 0===t?void 0:t.v1st)||(0,u.A)(),traffic_segment:(null===(e=this.state)||void 0===e||null===(e=e.session)||void 0===e?void 0:e.ts)||(0,c.Ay)(),visit_number:null==i?void 0:i.number,visit_id:null==i?void 0:i.id,onsite:!0,timezone_offset:this.timezoneOffset};var d;null!==(n=this.store)&&void 0!==n&&n.getState().visitor.xid&&null!==(r=this.store)&&void 0!==r&&r.getState().session.isAuthenticated&&(s.user_xid=null===(d=this.store)||void 0===d?void 0:d.getState().visitor.xid);return s}getPlayerInfo(){return{...this.playerEnvInfos.player}}getBrowserInfo(){return{...this.playerEnvInfos.browser}}getAppInfo(){return(0,f.Ay)()}getDeviceInfo(){const{locale:t}=window.__TWIG_FULL_LOCALE__||{};return{type:(0,d.A)(),width:window.innerWidth,height:window.innerHeight,locale:t}}resolveUserData(){this.userDataIsReady()}}},85976:(t,e,n)=>{"use strict";n.d(e,{YQ:()=>o,rn:()=>a,zv:()=>i});var r=n(30105);function i(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!!(0,r.G7)("neon_new_watching")&&(!t||(0,r.G7)("neon_new_watching_seo"))}function o(){return i(arguments.length>0&&void 0!==arguments[0]&&arguments[0])||(0,r.G7)("neon_watching_feed")||(0,r.bc)("neon_watching_feed_ab","treatment")}function a(){return o()&&(0,r.G7)("neon_watching_ambient_blob")}},86663:(t,e,n)=>{"use strict";const r=n(24280),i=n(30454),o=n(528),a=n(73055),s=Symbol("encodeFragmentIdentifier");function c(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(t,e){return e.encode?e.strict?r(t):encodeURIComponent(t):t}function l(t,e){return e.decode?i(t):t}function d(t){return Array.isArray(t)?t.sort():"object"==typeof t?d(Object.keys(t)).sort((t,e)=>Number(t)-Number(e)).map(e=>t[e]):t}function f(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function p(t){const e=(t=f(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function v(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function h(t,e){c((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const n=function(t){let e;switch(t.arrayFormat){case"index":return(t,n,r)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return(t,n,r)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};case"colon-list-separator":return(t,n,r)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};case"comma":case"separator":return(e,n,r)=>{const i="string"==typeof n&&n.includes(t.arrayFormatSeparator),o="string"==typeof n&&!i&&l(n,t).includes(t.arrayFormatSeparator);n=o?l(n,t):n;const a=i||o?n.split(t.arrayFormatSeparator).map(e=>l(e,t)):null===n?n:l(n,t);r[e]=a};case"bracket-separator":return(e,n,r)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(r[e]=n?l(n,t):n);const o=null===n?[]:n.split(t.arrayFormatSeparator).map(e=>l(e,t));void 0!==r[e]?r[e]=[].concat(r[e],o):r[e]=o};default:return(t,e,n)=>{void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e),r=Object.create(null);if("string"!=typeof t)return r;if(!(t=t.trim().replace(/^[?#&]/,"")))return r;for(const i of t.split("&")){if(""===i)continue;let[t,a]=o(e.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?a:l(a,e),n(l(t,e),a,r)}for(const t of Object.keys(r)){const n=r[t];if("object"==typeof n&&null!==n)for(const t of Object.keys(n))n[t]=v(n[t],e);else r[t]=v(n,e)}return!1===e.sort?r:(!0===e.sort?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce((t,e)=>{const n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=d(n):t[e]=n,t},Object.create(null))}e.extract=p,e.parse=h,e.stringify=(t,e)=>{if(!t)return"";c((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const n=n=>e.skipNull&&null==t[n]||e.skipEmptyString&&""===t[n],r=function(t){switch(t.arrayFormat){case"index":return e=>(n,r)=>{const i=n.length;return void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[u(e,t),"[",i,"]"].join("")]:[...n,[u(e,t),"[",u(i,t),"]=",u(r,t)].join("")]};case"bracket":return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[u(e,t),"[]"].join("")]:[...n,[u(e,t),"[]=",u(r,t)].join("")];case"colon-list-separator":return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[u(e,t),":list="].join("")]:[...n,[u(e,t),":list=",u(r,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[u(n,t),e,u(i,t)].join("")]:[[r,u(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,u(e,t)]:[...n,[u(e,t),"=",u(r,t)].join("")]}}(e),i={};for(const e of Object.keys(t))n(e)||(i[e]=t[e]);const o=Object.keys(i);return!1!==e.sort&&o.sort(e.sort),o.map(n=>{const i=t[n];return void 0===i?"":null===i?u(n,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?u(n,e)+"[]":i.reduce(r(n),[]).join("&"):u(n,e)+"="+u(i,e)}).filter(t=>t.length>0).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[n,r]=o(t,"#");return Object.assign({url:n.split("?")[0]||"",query:h(p(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,e)}:{})}
2,e.stringifyUrl=(t,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=f(t.url).split("?")[0]||"",i=e.extract(t.url),o=e.parse(i,{sort:!1}),a=Object.assign(o,t.query);let c=e.stringify(a,n);c&&(c=`?${c}`);let l=function(t){let e="";const n=t.indexOf("#");return-1!==n&&(e=t.slice(n)),e}(t.url);return t.fragmentIdentifier&&(l=`#${n[s]?u(t.fragmentIdentifier,n):t.fragmentIdentifier}`),`${r}${c}${l}`},e.pick=(t,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:c}=e.parseUrl(t,r);return e.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:c},r)},e.exclude=(t,n,r)=>{const i=Array.isArray(n)?t=>!n.includes(t):(t,e)=>!n(t,e);return e.pick(t,i,r)}},87296:(t,e,n)=>{var r,i=n(55481),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},87921:(t,e,n)=>{"use strict";n.d(e,{pX:()=>a,g4:()=>d,cC:()=>u,V3:()=>l});var r=n(86663);n(11931),n(76511);var i=n(76534),o=n(43320);const a=new RegExp("^(https?://)?(www\\.)?dailymotion.com(/.*)?$"),s=[/^\/$/,/^\/zendesk$/],c=/^(https:\/\/(www\.)?(contents|assets)\.adpaths\.com(\/.*)?$)|(https:\/\/statics.dmcdn.net(\/.*)?$)/,u=t=>!!t&&Boolean(t.match(c)),l=t=>{window.open(t,"_blank")},d=t=>function(t,e){const n=new Promise((e,n)=>{setTimeout(()=>{n(new Error(`withTimeout: Promise didn't complete in ${t}ms`))},t)});return Promise.race([e,n])}(1e3,i.A.queue.flush()).catch(t=>{console.error(t)}).then(()=>{(t=>{const e=decodeURIComponent(r.parseUrl(t).url);s.find(t=>!!e.match(t))&&(0,o._0)(t)})(t)})},90289:(t,e,n)=>{var r=n(12651);t.exports=function(t){return r(this,t).get(t)}},90503:(t,e,n)=>{"use strict";n.d(e,{FB:()=>a,So:()=>c,gT:()=>s});var r=n(27179),i=n.n(r),o=n(35183);const a=()=>{const t=i().get(o.i7);return t&&"number"==typeof t.id&&(t.id=Math.floor(t.id)),t},s=()=>{const t=a(),e=!t||Date.now()>=t.lastAction+18e5?(n=(null==t?void 0:t.number)||0,{firstAction:Date.now(),id:Math.floor(Date.now()),lastAction:Date.now(),number:n+1}):{...t,lastAction:Date.now()};var n,r;return r=e,i().set(o.i7,r),e},c=()=>{i().set(o.i7,!1),s()}},91942:(t,e,n)=>{"use strict";n.d(e,{X:()=>r});const r={TABLET:"tablet",DESKTOP:"desktop",MOBILE:"mobile"}},92863:(t,e,n)=>{"use strict";function r(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{left:r,top:i,width:o,height:a}=e.getBoundingClientRect();t.style.top=n?`${i}px`:`${window.pageYOffset+i}px`,t.style.left=`${r}px`,t.style.width=`${o}px`,t.style.height=`${a}px`,t.style.position=n?"fixed":"absolute";let s=t.getAttribute("style")||"";t.setAttribute("style",s.replace(/[\s]/g,"")),s=t.getAttribute("style")||"",t.setAttribute("style",s.replace(/;$/g,"")),s=t.getAttribute("style")||"",t.setAttribute("style",s.replace(/visibility[^;]+;/g,"")),s=t.getAttribute("style")||"",t.setAttribute("style",s.replace(/z-index[^;]+;/g,""))}n.d(e,{A:()=>r})},93377:(t,e,n)=>{const r=n(5081),i=n(56952),o=Object.keys(r).reduce((t,e)=>(t[e]=new Set(r[e]),t),{});t.exports={defaultLanguageTag:"en-US",supportedLanguages:{de:{code:"de",metaLang:"de-DE",legacy:"de_DE"},"en-GB":{code:"en-GB",metaLang:"en-GB",legacy:"en_GB"},"en-US":{code:"en-US",metaLang:"en-US",legacy:"en_US",format:"MDY"},en:{code:"en-US",metaLang:"en-US",legacy:"en_US",format:"MDY"},es:{code:"es",metaLang:"es-ES",legacy:"es_ES"},fr:{code:"fr",metaLang:"fr-FR",legacy:"fr_FR"},id:{code:"id",metaLang:"id-ID",legacy:"id_ID"},it:{code:"it",metaLang:"it-IT",legacy:"it_IT"},ja:{code:"ja",metaLang:"ja-JP",legacy:"ja_JP",format:"YMD"},ko:{code:"ko",metaLang:"ko-KR",legacy:"ko_KR",format:"YMD"},"pt-BR":{code:"pt-BR",metaLang:"pt-BR",legacy:"pt_BR"},pt:{code:"pt",metaLang:"pt-PT",legacy:"pt_PT"},tr:{code:"tr",metaLang:"tr-TR",legacy:"tr_TR"},vi:{code:"vi",metaLang:"vi-VN",legacy:"vi_VN"},"zh-TW":{code:"zh-TW",metaLang:"zh-TW",legacy:"zh_TW",format:"YMD"},zh:{code:"zh",metaLang:"zh-ZH",legacy:"zh_CN",format:"YMD"}},defaultDateFormat:"DMY",defaultCountry:"us",countries:i,listCountries:["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","E
2R","ES","ET","EU","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GG","GH","GI","GL","GM","GN","GQ","GR","GS","GT","GU","GW","GY","HK","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PN","PR","PS","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"],contentCountriesMapping:o}},95943:(t,e,n)=>{"use strict";n.d(e,{Q2:()=>f,_r:()=>d,ug:()=>p});var r=n(39589),i=n(11931),o=n(61167),a=n(55319),s=n(99204),c=n(23190),u=n(47890);let l=!1;function d(){return l}function f(){return(0,u.UP)()?a.A.load(r.XW):a.A.load(r.PJ)}function p(t,e){let n;n=!1!==(0,s.HH)("NEON_GDPR")?`Error from TCFv2 function (${t}): ${e}`:`Trying to call TCFv2 function (${t}) outside of GDPR enabled country`,i.Gu===o.WU?console.error(n):(console.warn(n),(0,c.A)({type:"neon_log",json_payload:{tcf2_error:n}}))}},98047:(t,e,n)=>{"use strict";n.d(e,{Is:()=>s,P6:()=>c,gu:()=>o,mS:()=>i});var r=n(93377);const i=(t,e)=>{if("string"!=typeof t)return null;const n=t.toLowerCase();return"string"==typeof e&&n!==e.toLowerCase()?`${n}-${e.toUpperCase()}`:n},o=t=>t.split("-")[0],a=t=>r.supportedLanguages[t]||r.supportedLanguages[o(t)],s=t=>{const e=(t=>{let e;if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++){const r=t[n];if(e=a(r),e)break}else e=a(t);return e})(t);return e?{languageTag:e.code,metaLangTag:e.metaLang}:{languageTag:r.defaultLanguageTag,metaLangTag:r.defaultLanguageTag}},c=t=>{const e=r.supportedLanguages[t];return null==e?void 0:e.legacy}},99204:(t,e,n)=>{"use strict";n.d(e,{HH:()=>u,I7:()=>l,LG:()=>c});var r=n(11931),i=n(33647);const o="GK_";let a=null;function s(){if(r.KJ&&window.__FFS__){const t=Object.entries(window.__FFS__);return Object.fromEntries(t.map(t=>{let[e,n]=t;return[e.toUpperCase(),n]}))}return{}}function c(t,e){const n={...(c=e||new Set,Array.from(c).reduce((t,e)=>(t[e]=!0,t),{})),...s(),...r.KJ&&window.__GKS__?window.__GKS__:{},...(0,i.E)(t,o)};var c;a={...n}}function u(t){if(!a)throw Error("Gatekeepers not initialized");return!0===a[t]}function l(){if(!a)throw Error("Gatekeepers not initialized");return{...a}}},99349:(t,e,n)=>{"use strict";n.d(e,{QO:()=>r});n(16728);function r(t){const e=new Date,n=new Date(t);let r=e.getFullYear()-n.getFullYear();const i=e.getMonth()-n.getMonth();return(i<0||0===i&&e.getDate()<n.getDate())&&r--,r}},99363:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>f});var r=n(11931),i=n(91942),o=n(36905),a=n(61167);const s="com.dailymotion.neon",c="com.dailymotion.neon-preprod",u="com.dailymotion.neon-staging",l="webapp",d="website";function f(){return{type:(0,o.A)()===i.X.MOBILE?l:d,id:p(),version:r.KJ&&window.__BUILD_VERSION__,...r.KJ&&{width:window.innerWidth,height:window.innerHeight}}}function p(){return(0,a.Q5)()||(0,a.Ay)([a.WU,a.vy])?u:(0,a.Ay)([a.tf])?c:s}},99374:(t,e,n)=>{var r=n(54128),i=n(23805),o=n(44394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||c.test(t)?u(t.slice(2),n?2:8):a.test(t)?NaN:+t}},99811:(t,e,n)=>{var r=n(47237)("length");t.exports=r}},t=>{var e;e=33621,t(t.s=e)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.