PageSourceSearch

https://www.france.tv/_next/static/chunks/0e114gd3ieiih.js

js france.tv collected 2026-10-01 08:05:52 UTC 52,485 bytes, 2 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,557894,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},469754,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return h},MiddlewareNotFoundError:function(){return R},MissingStaticPage:function(){return C},NormalizeError:function(){return v},PageNotFoundError:function(){return S},SP:function(){return m},ST:function(){return _},WEB_VITALS:function(){return s},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return E},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return N}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let a=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>a.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function E(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&E(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,_=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);
1class h extends Error{}class v extends Error{}class S extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class C extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class R extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function N(e){return JSON.stringify({message:e.message,stack:e.stack})}},226554,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function s(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function a(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},457164,901215,e=>{"use strict";let t={APP_IPAD:"app_ipad",APP_IPHONE:"app_iphone",APP_MOBILE_ANDROID:"app_mobile_android",APP_TABLET_ANDROID:"app_tablette_android",WEB_DESKTOP:"web_desktop",WEB_IPAD:"web_ipad",WEB_IPHONE:"web_iphone",WEB_MOBILE_ANDROID:"web_mobile_android",WEB_TABLET_ANDROID:"web_tablette_android",UNKNOWN:"unknown"};e.s(["Device",0,t],901215);var r=e.i(253373);let n=()=>{if(r.isSSR)return null;let e=navigator.userAgent,t=e.match(/Version\/(\d+)\./),n=t?parseInt(t?.[1]||"0",10):null,i=/Mobi|Android/i.test(e),s=/iPhone/.test(e),o=/iPad/.test(e),a=/Android/i.test(e),l=/Tablet|Nexus 7|Nexus 10|SM-T|GT-P|Tab/.test(e),c=/^((?!chrome|android).)*safari/i.test(e),u=(s||o)&&!/Safari/.test(e),d=a&&/\bwv\b/.test(e),E=void 0!==window.ReactNativeWebView;return{isInApp:u||d||E,isMobile:i,isIPhone:s,isIPad:o,isAndroid:a,isTablet:l,isSafari:c,safariMajorVersion:n}};e.s(["getDeviceTypeFromUserAgent",0,()=>{let e=n();if(!e)return t.UNKNOWN;let{isInApp:r,isIPad:i,isIPhone:s,isAndroid:o,isTablet:a}=e;return i?r?t.APP_IPAD:t.WEB_IPAD:s?r?t.APP_IPHONE:t.WEB_IPHONE:o&&a?r?t.APP_TABLET_ANDROID:t.WEB_TABLET_ANDROID:o?r?t.APP_MOBILE_ANDROID:t.WEB_MOBILE_ANDROID:t.WEB_DESKTOP},"getUserAgentInfo",0,n],457164)},816355,e=>{"use strict";e.s(["EXPIRATION_1_HOUR_CACHE_TIME",0,36e5,"EXPIRATION_1_WEEK_CACHE_TIME",0,6048e5,"EXPIRATION_CACHE_TIME",0,3e5])},847401,559275,e=>{"use strict";var t=e.i(336943);let r=(0,t.createContext)(void 0),n=(0,t.createContext)(void 0);e.s(["AudioPlayerVisibilityActionsContext",0,n,"AudioPlayerVisibilityContext",0,r],559275),e.s(["useAudioPlayerVisibility",0,()=>{let e=(0,t.use)(r);if(!e)throw Error("useAudioPlayerVisibility must be used within an AudioPlayerVisibilityProvider");return e},"useAudioPlayerVisibilityActions",0,()=>{let e=(0,t.use)(n);if(!e)throw Error("useAudioPlayerVisibilityActions must be used within an AudioPlayerVisibilityProvider");return e}],847401)},598853,e=>{"use strict";var t=e.i(678146);let r={ARTE:"/arte",CHANNELS:"/chaines/",CGU:"/confidentialite/cgu",CINEMA:"/films",CONFIDENTIALITY:"/confidentialite",CONSENTS:"/votre-compte/utilisation-de-mes-donnees",COOKIES:"/confidentialite/gestion-des-cookies",DELETE_MY_ACCOUNT:"/votre-compte/supprimer-mon-compte",DOCUMENTARIES:"/documentaires",ENTERTAINMENT:"/jeux-et-divert
1issements",FTV_AND_YOU:`//${t.FRANCE_TELEVISIONS_URL}/et-vous`,FTV_AND_YOU_HELP:`//${t.FRANCE_TELEVISIONS_URL}/et-vous/a-votre-ecoute`,FTV_AND_YOU_HELP_AND_CONTACT:`//${t.FRANCE_TELEVISIONS_URL}/et-vous/aide-et-contact`,FTV_CLUB:`//${t.FRANCE_TELEVISIONS_URL}/le-club/evenements-exclusifs`,FTV_DOCUMENTARIES:"/documentaire/direct.html",FTV_LAB:`//${t.FRANCE_TELEVISIONS_URL}/lab`,FTV_MATERNELLES:"/la-chaine-des-maternelles/direct.html",FTV_SERIES:"/serie/direct.html",FTV_SPORT:"/sport/direct.html",FORGOT_PASSWORD:"/mot-de-passe-oublie",FRANCE_2:"/france-2",FRANCE_24:"/france-24",FRANCE_3:"/france-3",FRANCE_4:"/france-4",FRANCE_5:"/france-5",FRANCE_INFO:"/franceinfo",FRANCE_INFO_DIRECT:"//www.franceinfo.fr",HELP_AND_CONTACT:`//${t.FRANCE_TELEVISIONS_URL}/aide-et-contact`,HOME:"/",INA:"/ina",INFO:"/info",KIDS:"/enfants",LA_PREMIERE:"/la1ere",LCP:"/lcp",LCP_PUBLIC_SENAT:"/lcp-public-senat",LEGAL_MENTIONS:"/confidentialite/mentions-legales",LIVE:"/direct",LIVES:"/directs/",LUMNI:"//www.lumni.fr",MIEUX_DIRECT:"/mieux/direct.html",MODERATION_CHARTER:"/confidentialite/charte-de-moderation",MY_PLAYLIST:"/ma-liste-de-lecture",MY_VIDEOS:"/mes-videos/",OKOO:"/enfants",OVERSEAS_NEWS:"//la1ere.franceinfo.fr",RESET_PASSWORD:"/reinitialisation-mdp",PODCASTS:"/podcasts",PRIVACY_POLICY:"/confidentialite/politique-de-confidentialite",PROFILE:"/votre-compte/",PUBLIC_SENAT:"/public-senat",REGIONAL_NEWS:"//france3-regions.franceinfo.fr",RESUME_WATCHING:"/mes-reprises-de-lecture",RETRIEVE_DATA:"/votre-compte/recuperer-mes-donnees-personnelles",ROLAND_GARROS_DIRECT:"/roland-garros/direct.html",SEARCH:"/recherche/",SERIAL:"/series-et-fictions/feuilletons",SERIES_FICTION:"/series-et-fictions",SIGN_IN:"/connexion/",SIGN_UP:"/inscription/",SLASH:"/slash",SOCIETY:"/societe",SPORT:"/sport",TV_CODE:"/appstv/code",TV_SIGN_IN:"/appstv/connexion",TV5_MONDE:"/tv5-monde",WHY_CREATE_ACCOUNT:"/pourquoi-creer-un-compte.html"};e.s(["HASH",0,{INTERESTS:"declaration-ci"},"PATH",0,r])},407744,e=>{"use strict";var t=e.i(369542),r=e.i(97769);e.s(["sendPianoClickEvent",0,(e,n={})=>{if("u"<typeof pa)return;let i=(0,r.normalizeTracking)(n);pa.sendEvent(t.PIANO_EVENTS.click,{click:(0,r.formatTrackingValue)(e),...i})}])},601341,e=>{"use strict";var t=e.i(926563),r=e.i(253373);e.s(["getFullURL",0,(e,n)=>{let i=new URL(e,(r.isSSR?t.default.env.APP_URL:window.location.origin)||"http://localhost:3000");return n&&Object.keys(n).forEach(e=>{let t=n[e];if(null!=t){if(!Array.isArray(t))return void i.searchParams.set(e,t.toString());t.forEach(t=>{i.searchParams.append(e,t.toString())})}}),String(i)},"getIsExternalURL",0,e=>e.startsWith("http")||e.startsWith("https"),"getIsInternalURL",0,e=>{let n=r.isSSR?t.default.env.APP_URL:window.location.origin;return!!n&&e.startsWith(n)},"isSafeURL",0,e=>{try{let n=r.isSSR?t.default.env.APP_URL:window.location.origin;if(!e||"string"!=typeof e||!n)return!1;if(e.startsWith("/")&&!e.startsWith("//"))return!0;let i=new URL(e),s=new URL(n);return i.host===s.host}catch{return!1}},"normalizeTrailingSlash",0,e=>/\.(xml|html)$/.test(e)||e.endsWith("/")?e:e+"/"])},552603,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let n=e.r(770885);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},213333,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},372939,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return l}});let n=e.r(200406),i=e.r(48286),s=e.r(96959),o=e.r(213333),a=e.r(338397);function l({moduleIds:e}){if("u">typeof window)return null;let t=s.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;
1r.push(...e)}}if(0===r.length)return null;let c=(0,a.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},957355,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(200406),i=e.r(336943),s=e.r(552603),o=e.r(372939);function a(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},c=function(e){let t={...l,...e},r=(0,i.lazy)(()=>t.loader().then(a)),c=t.loading;function u(e){let a=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,u=l?i.Suspense:i.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...l?{fallback:a}:{},children:d})}return u.displayName="LoadableComponent",u}},782849,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(481258)._(e.r(957355));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},492213,e=>{"use strict";var t=e.i(336943),r=e.i(270534);e.s(["useLocalStorage",0,function(e,n,i){if(!r.isBrowser)return[n,r.noop,r.noop];if(!e)throw Error("useLocalStorage key may not be falsy");var s=i?i.raw?function(e){return e}:i.deserializer:JSON.parse,o=(0,t.useRef)(function(e){try{var t=i?i.raw?String:i.serializer:JSON.stringify,r=localStorage.getItem(e);if(null!==r)return s(r);return n&&localStorage.setItem(e,t(n)),n}catch(e){return n}}),a=(0,t.useState)(function(){return o.current(e)}),l=a[0],c=a[1];(0,t.useLayoutEffect)(function(){return c(o.current(e))},[e]);var u=(0,t.useCallback)(function(t){try{var r="function"==typeof t?t(l):t;if(void 0===r)return;var n=void 0;n=i?i.raw?"string"==typeof r?r:JSON.stringify(r):i.serializer?i.serializer(r):JSON.stringify(r):JSON.stringify(r),localStorage.setItem(e,n),c(s(n))}catch(e){}},[e,c]);return[l,u,(0,t.useCallback)(function(){try{localStorage.removeItem(e),c(void 0)}catch(e){}},[e,c])]}],492213)},511135,e=>{"use strict";e.s(["ARTE",0,"arte","CULTUREBOX",0,"culturebox","DOCUMENTAIRE",0,"documentaire","FRANCEINFO",0,"franceinfo","FRANCETV",0,"francetv","FRANCE_2",0,"france-2","FRANCE_24",0,"france-24","FRANCE_3",0,"france-3","FRANCE_3_ALPES",0,"france-3-alpes","FRANCE_3_ALSACE",0,"france-3-alsace","FRANCE_3_AQUITAINE",0,"france-3-aquitaine","FRANCE_3_AUVERGNE",0,"france-3-auvergne","FRANCE_3_BASSE_NORMANDIE",0,"france-3-basse-normandie","FRANCE_3_BOURGOGNE",0,"france-3-bourgogne","FRANCE_3_BRETAGNE",0,"france-3-bretagne","FRANCE_3_CENTRE_VAL_DE_LOIRE",0,"france-3-centre-val-de-loire","FRANCE_3_CHAMPAGNE_ARDENNE",0,"france-3-champagne-ardenne","FRANCE_3_CORSE_VIA_STELLA",0,"france-3-corse-via-stella","FRANCE_3_COTE_D_AZUR",0,"france-3-cote-d-azur","FRANCE_3_FRANCHE_COMTE",0,"france-3-franche-comte","FRANCE_3_HAUTE_NORMANDIE",0,"france-3-haute-normandie","FRANCE_3_LANGUEDOC_ROUSSILLON",0,"france-3-languedoc-roussillon","FRANCE_3_LIMOUSIN",0,"france-3-limousin","FRANCE_3_LORRAINE",0,"france-3-lorraine","FRANCE_3_MIDI_PYRENEES",0,"france-3-midi-pyrenees","FRANCE_3_NORD_PAS_DE_CALAIS",0,"france-3-nord-pas-de-calais","FRANCE_3_PARIS_ILE_DE_FRANCE",0,"france-3-paris-ile-de-france","FRANCE_3_PAYS_DE_LA_LOIRE",0,"france-3-pays-de-la-loire","FRANCE_3_PICARDIE",0,"france-3-picardie","FRANCE_3_POITOU_CHARENTES",0,"france-3-poitou-charentes","FRANCE_3_PROVENCE_ALPES",0,"france-3-provence-alpes","FRANCE_3_RHONE_ALPES",0,"france-3-rhone-alpes","FRANCE_4",0,"france-4","FRA
1NCE_5",0,"france-5","GUADELOUPE_1ERE",0,"guadeloupe-1ere","GUYANE_1ERE",0,"guyane-1ere","ICI",0,"ici","INA",0,"ina","LA1ERE",0,"la1ere","LA_CHAINE_DES_MATERNELLES",0,"la-chaine-des-maternelles","LCP",0,"lcp","LCP_PUBLIC_SENAT",0,"lcp-public-senat","MARTINIQUE_1ERE",0,"martinique-1ere","MAYOTTE_1ERE",0,"mayotte-1ere","MIEUX",0,"mieux","NOA",0,"noa","NOUVELLE_CALEDONIE_1ERE",0,"nouvelle-caledonie-1ere","OKOO",0,"okoo","OUTRE_MER",0,"outre-mer","POLYNESIE_1ERE",0,"polynesie-1ere","PORTAIL_OUTRE_MER",0,"portail-outre-mer","PUBLIC_SENAT",0,"public-senat","REUNION_1ERE",0,"reunion-1ere","ROLAND_GARROS",0,"roland-garros","SAINT_PIERRE_ET_MIQUELON_1ERE",0,"saint-pierre-et-miquelon-1ere","SERIE",0,"serie","SLASH",0,"slash","SPORT",0,"sport","TV5_MONDE",0,"tv5-monde","WALLIS_ET_FUTUNA_1ERE",0,"wallis-et-futuna-1ere"])},198614,e=>{"use strict";var t=e.i(336943),r=e.i(48286),n=e.i(977219),i=e.i(674871),s=e.i(200406),o=t.forwardRef((e,o)=>{let{container:a,...l}=e,[c,u]=t.useState(!1);(0,i.useLayoutEffect)(()=>u(!0),[]);let d=a||c&&globalThis?.document?.body;return d?r.default.createPortal((0,s.jsx)(n.Primitive.div,{...l,ref:o}),d):null});o.displayName="Portal",e.s(["Portal",0,o,"Root",0,o])},216452,e=>{"use strict";var t=e.i(336943);e.s(["useCallbackRef",0,function(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}])},79184,e=>{"use strict";e.s(["DIALOG_TYPES",0,{AGE:"AgeDialog",AUDIO:"AudioDialog",AUTH:"AuthDialog",AUTH_REQUIRED:"AuthRequiredDialog",BOOKMARK:"BookmarkDialog",DELETE_ACCOUNT:"DeleteAccountDialog",INTERESTS:"InterestsDialog",INTERESTS_GLOBAL:"InterestsGlobalDialog",NEWSLETTER_GLOBAL:"NewsLetterGlobalDialog",NEWSLETTER_PROGRAM:"NewsLetterProgramDialog",REACTION:"ReactionDialog",REMEMBER_ME:"RememberMeDialog"},"INTERESTS_GLOBAL_DIALOG_DEFAULT_EXPIRATION_DATE_MONTHS",0,3,"INTERESTS_GLOBAL_PAGE_VIEW_COUNT_DIALOG_THRESHOLD",0,7])},473945,769723,e=>{"use strict";var t=e.i(336943);let r=(0,t.createContext)({dialogActive:null,closeDialog:()=>null,openDialog:()=>null});e.s(["DialogContext",0,r],769723),e.s(["useDialog",0,()=>{let e=(0,t.use)(r);if(!e)throw Error("useDialog must be used within a DialogProvider");let{closeDialog:n,dialogActive:i}=e;return{...e,getDialogProps:(e,t)=>({onOpenChange:e=>{e||n(),t?.(e)},open:i?.type===e})}}],473945)},898127,e=>{"use strict";var t,r=e.i(336943),n=e.i(291967),i=e.i(977219),s=e.i(355597),o=e.i(216452),a=e.i(200406),l="dismissableLayer.update",c=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),u=r.forwardRef((e,u)=>{let{disableOutsidePointerEvents:d=!1,onEscapeKeyDown:p,onPointerDownOutside:m,onFocusOutside:_,onInteractOutside:h,onDismiss:v,...S}=e,C=r.useContext(c),[R,N]=r.useState(null),T=R?.ownerDocument??globalThis?.document,[,A]=r.useState({}),g=(0,s.useComposedRefs)(u,e=>N(e)),O=Array.from(C.layers),[I]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),P=O.indexOf(I),y=R?O.indexOf(R):-1,w=C.layersWithOutsidePointerEventsDisabled.size>0,D=y>=P,b=function(e,t=globalThis?.document){let n=(0,o.useCallbackRef)(e),i=r.useRef(!1),s=r.useRef(()=>{});return r.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let r=function(){f("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",s.current),s.current=r,t.addEventListener("click",s.current,{once:!0})):r()}else t.removeEventListener("click",s.current);i.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...C.branches].some(e=>e.contains(t));D&&!r&&(m?.(e),h?.(e),e.defaultPrevented||v?.())},T),L=function(e,t=globalThis?.document){let n=(0,o.useCallbackRef)(e),i=r.useRef(!1);return r.useEffect(()=>{let e=e=>{e.target&&!i.current&&f("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...C.branches].some(e=>e.contains(t))&&(_?.(e),h?.(e),e.defaultPrevented||v?.())},T);return!function(e,t=globalThis?.document){let n=(0,o.useCallbackRef)(e);r.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y===C.layers.size-1&&(p?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},T),r.useEffect(()=>{if(R)return d&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(t=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(R)),C.layers.add(R),E(),()=>{d&&1===C.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=t)}},[R,T,d,C]),r.useEffect(()=>()=>{R&&(C.layers.delete(R),C.layersWithOutsidePointerEventsDisabled.delete(R),E())},[R,C]),r.useEffect(()=>{let e=()=>A({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)},[]),(0,a.jsx)(i.Primitive.div,{...S,ref:g,style:{pointerEvents:w?D?"auto":"none":void 0,...e.style},onFocusCapture:(0,n.composeEventHandlers)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,n.composeEventHandlers)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,n.composeEventHandlers)(e.onPointerDownCapture,b.onPointerDownCapture)})});u.displayName="DismissableLayer";var d=r.forwardRef((e,t)=>
1{let n=r.useContext(c),o=r.useRef(null),l=(0,s.useComposedRefs)(t,o);return r.useEffect(()=>{let e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(i.Primitive.div,{...e,ref:l})});function E(){let e=new CustomEvent(l);document.dispatchEvent(e)}function f(e,t,r,{discrete:n}){let s=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),n?(0,i.dispatchDiscreteCustomEvent)(s,o):s.dispatchEvent(o)}d.displayName="DismissableLayerBranch",e.s(["Branch",0,d,"DismissableLayer",0,u,"Root",0,u],898127)},868433,141065,e=>{"use strict";var t=e.i(200406);e.i(974900);var r=e.i(197096);e.i(104940);var n=e.i(145976);e.i(6595);var i=e.i(126628);e.i(153212);var s=e.i(986824);let o=({intent:e="information"})=>{let r=(0,n.calloutRecipe)({intent:e});return(0,t.jsxs)(t.Fragment,{children:["information"===e&&(0,t.jsx)(s.GlxIcon,{"aria-hidden":!0,className:r.icon,icon:"info-outlined"}),"success"===e&&(0,t.jsx)(s.GlxIcon,{"aria-hidden":!0,className:r.icon,icon:"validation-outlined"}),"warning"===e&&(0,t.jsx)(s.GlxIcon,{"aria-hidden":!0,className:r.icon,icon:"warning-outlined"}),"error"===e&&(0,t.jsx)(s.GlxIcon,{"aria-hidden":!0,className:r.icon,icon:"error-outlined"})]})};e.s(["Callout",0,({as:e,buttonLabel:s,className:a,intent:l,layout:c,onClick:u,text:d,...E})=>{let f=(0,n.calloutRecipe)({intent:l,layout:c});return(0,t.jsxs)(e||"div",{className:(0,r.cx)(f.root,a),...E,children:[(0,t.jsxs)("div",{className:f.content,children:[(0,t.jsx)(o,{intent:l}),(0,t.jsx)("p",{children:d})]}),s&&(0,t.jsx)(i.Button,{className:f.button,size:"sm",variant:"tertiary",onClick:u,children:s})]})}],141065),e.s([],868433)},532245,e=>{"use strict";var t=e.i(336943),r=e.i(977219),n=e.i(200406),i=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=t.forwardRef((e,t)=>(0,n.jsx)(r.Primitive.span,{...e,ref:t,style:{...i,...e.style}}));s.displayName="VisuallyHidden",e.s(["Root",0,s,"VisuallyHidden",0,s])},955020,269312,793436,e=>{"use strict";var t=e.i(200406);e.i(104940);var r=e.i(794342),n=e.i(336943),i=e.i(48286),s=e.i(291967),o=e.i(355597),a=e.i(863546),l=e.i(740060),c=e.i(898127),u=e.i(198614),d=e.i(730296),E=e.i(977219),f=e.i(216452),p=e.i(589016),m=e.i(674871),_=e.i(532245),h="ToastProvider",[v,S,C]=(0,a.createCollection)("Toast"),[R,N]=(0,l.createContextScope)("Toast",[C]),[T,A]=R(h),g=e=>{let{__scopeToast:r,label:i="Notification",duration:s=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:l}=e,[c,u]=n.useState(null),[d,E]=n.useState(0),f=n.useRef(!1),p=n.useRef(!1);return i.trim()||console.error(`Invalid prop \`label\` supplied to \`${h}\`. Expected non-empty \`string\`.`),(0,t.jsx)(v.Provider,{scope:r,children:(0,t.jsx)(T,{scope:r,label:i,duration:s,swipeDirection:o,swipeThreshold:a,toastCount:d,viewport:c,onViewportChange:u,onToastAdd:n.useCallback(()=>E(e=>e+1),[]),onToastRemove:n.useCallback(()=>E(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:l})})};g.displayName=h;var O="ToastViewport",I=["F8"],P="toast.viewportPause",y="toast.viewportResume",w=n.forwardRef((e,r)=>{let{__scopeToast:i,hotkey:s=I,label:a="Notifications ({hotkey})",...l}=e,u=A(O,i),d=S(i),f=n.useRef(null),p=n.useRef(null),m=n.useRef(null),_=n.useRef(null),h=(0,o.useComposedRefs)(r,_,u.onViewportChange),C=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=u.toastCount>0;n.useEffect(()=>{let e=e=>{0!==s.length&&s.every(t=>e[t]||e.code===t)&&_.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),n.useEffect(()=>{let e=f.current,t=_.current;if(R&&e&&t){let r=()=>{if(!u.isClosePausedRef.current){let e=new CustomEvent(P);t.dispatchEvent(e),u.isClosePausedRef.current=!0}},n=()=>
1{if(u.isClosePausedRef.current){let e=new CustomEvent(y);t.dispatchEvent(e),u.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||n()},s=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",i),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[R,u.isClosePausedRef]);let N=n.useCallback(({tabbingDirection:e})=>{let t=d().map(t=>{let r=t.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===e?n:n.reverse()});return("forwards"===e?t.reverse():t).flat()},[d]);return n.useEffect(()=>{let e=_.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){let r=document.activeElement,n=t.shiftKey;if(t.target===e&&n)return void p.current?.focus();let i=N({tabbingDirection:n?"backwards":"forwards"}),s=i.findIndex(e=>e===r);$(i.slice(s+1))?t.preventDefault():n?p.current?.focus():m.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[d,N]),(0,t.jsxs)(c.Branch,{ref:f,role:"region","aria-label":a.replace("{hotkey}",C),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&(0,t.jsx)(b,{ref:p,onFocusFromOutsideViewport:()=>{$(N({tabbingDirection:"forwards"}))}}),(0,t.jsx)(v.Slot,{scope:i,children:(0,t.jsx)(E.Primitive.ol,{tabIndex:-1,...l,ref:h})}),R&&(0,t.jsx)(b,{ref:m,onFocusFromOutsideViewport:()=>{$(N({tabbingDirection:"backwards"}))}})]})});w.displayName=O;var D="ToastFocusProxy",b=n.forwardRef((e,r)=>{let{__scopeToast:n,onFocusFromOutsideViewport:i,...s}=e,o=A(D,n);return(0,t.jsx)(_.VisuallyHidden,{tabIndex:0,...s,ref:r,style:{position:"fixed"},onFocus:e=>{let t=e.relatedTarget;o.viewport?.contains(t)||i()}})});b.displayName=D;var L="Toast",k=n.forwardRef((e,r)=>{let{forceMount:n,open:i,defaultOpen:o,onOpenChange:a,...l}=e,[c,u]=(0,p.useControllableState)({prop:i,defaultProp:o??!0,onChange:a,caller:L});return(0,t.jsx)(d.Presence,{present:n||c,children:(0,t.jsx)(F,{open:c,...l,ref:r,onClose:()=>u(!1),onPause:(0,f.useCallbackRef)(e.onPause),onResume:(0,f.useCallbackRef)(e.onResume),onSwipeStart:(0,s.composeEventHandlers)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}
1),onSwipeMove:(0,s.composeEventHandlers)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${r}px`)}),onSwipeCancel:(0,s.composeEventHandlers)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,s.composeEventHandlers)(e.onSwipeEnd,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),u(!1)})})})});k.displayName=L;var[x,j]=R(L,{onClose(){}}),F=n.forwardRef((e,r)=>{let{__scopeToast:a,type:l="foreground",duration:u,open:d,onClose:p,onEscapeKeyDown:m,onPause:_,onResume:h,onSwipeStart:S,onSwipeMove:C,onSwipeCancel:R,onSwipeEnd:N,...T}=e,g=A(L,a),[O,I]=n.useState(null),w=(0,o.useComposedRefs)(r,e=>I(e)),D=n.useRef(null),b=n.useRef(null),k=u||g.duration,j=n.useRef(0),F=n.useRef(k),U=n.useRef(0),{onToastAdd:B,onToastRemove:H}=g,K=(0,f.useCallbackRef)(()=>{O?.contains(document.activeElement)&&g.viewport?.focus(),p()}),V=n.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(U.current),j.current=new Date().getTime(),U.current=window.setTimeout(K,e))},[K]);n.useEffect(()=>{let e=g.viewport;if(e){let t=()=>{V(F.current),h?.()},r=()=>{let e=new Date().getTime()-j.current;F.current=F.current-e,window.clearTimeout(U.current),_?.()};return e.addEventListener(P,r),e.addEventListener(y,t),()=>{e.removeEventListener(P,r),e.removeEventListener(y,t)}}},[g.viewport,k,_,h,V]),n.useEffect(()=>{d&&!g.isClosePausedRef.current&&V(k)},[d,k,g.isClosePausedRef,V]),n.useEffect(()=>(B(),()=>H()),[B,H]);let W=n.useMemo(()=>O?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var n;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(n=t).nodeType===n.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,i=""===t.dataset.radixToastAnnounceExclude;if(!n)if(i){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(O):null,[O]);return g.viewport?(0,t.jsxs)(t.Fragment,{children:[W&&(0,t.jsx)(M,{__scopeToast:a,role:"status","aria-live":"foreground"===l?"assertive":"polite",children:W}),(0,t.jsx)(x,{scope:a,onClose:K,children:i.createPortal((0,t.jsx)(v.ItemSlot,{scope:a,children:(0,t.jsx)(c.Root,{asChild:!0,onEscapeKeyDown:(0,s.composeEventHandlers)(m,()=>{g.isFocusedToastEscapeKeyDownRef.current||K(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,t.jsx)(E.Primitive.li,{tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":g.swipeDirection,...T,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{"Escape"===e.key&&(m?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,K()))}),onPointerDown:(0,s.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(D.current={x:e.clientX,y:e.clientY})}
1),onPointerMove:(0,s.composeEventHandlers)(e.onPointerMove,e=>{if(!D.current)return;let t=e.clientX-D.current.x,r=e.clientY-D.current.y,n=!!b.current,i=["left","right"].includes(g.swipeDirection),s=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,o=i?s(0,t):0,a=i?0:s(0,r),l="touch"===e.pointerType?10:2,c={x:o,y:a},u={originalEvent:e,delta:c};n?(b.current=c,Y("toast.swipeMove",C,u,{discrete:!1})):q(c,g.swipeDirection,l)?(b.current=c,Y("toast.swipeStart",S,u,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(D.current=null)}),onPointerUp:(0,s.composeEventHandlers)(e.onPointerUp,e=>{let t=b.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),b.current=null,D.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};q(t,g.swipeDirection,g.swipeThreshold)?Y("toast.swipeEnd",N,n,{discrete:!0}):Y("toast.swipeCancel",R,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),M=e=>{let{__scopeToast:r,children:i,...s}=e,o=A(L,r),[a,l]=n.useState(!1),[c,d]=n.useState(!1);return function(e=()=>{}){let t=(0,f.useCallbackRef)(e);(0,m.useLayoutEffect)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>l(!0)),n.useEffect(()=>{let e=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(e)},[]),c?null:(0,t.jsx)(u.Portal,{asChild:!0,children:(0,t.jsx)(_.VisuallyHidden,{...s,children:a&&(0,t.jsxs)(t.Fragment,{children:[o.label," ",i]})})})},U=n.forwardRef((e,r)=>{let{__scopeToast:n,...i}=e;return(0,t.jsx)(E.Primitive.div,{...i,ref:r})});U.displayName="ToastTitle";var B=n.forwardRef((e,r)=>{let{__scopeToast:n,...i}=e;return(0,t.jsx)(E.Primitive.div,{...i,ref:r})});B.displayName="ToastDescription";var H="ToastAction",K=n.forwardRef((e,r)=>{let{altText:n,...i}=e;return n.trim()?(0,t.jsx)(G,{altText:n,asChild:!0,children:(0,t.jsx)(W,{...i,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${H}\`. Expected non-empty \`string\`.`),null)});K.displayName=H;var V="ToastClose",W=n.forwardRef((e,r)=>{let{__scopeToast:n,...i}=e,o=j(V,n);return(0,t.jsx)(G,{asChild:!0,children:(0,t.jsx)(E.Primitive.button,{type:"button",...i,ref:r,onClick:(0,s.composeEventHandlers)(e.onClick,o.onClose)})})});W.displayName=V;var G=n.forwardRef((e,r)=>{let{__scopeToast:n,altText:i,...s}=e;return(0,t.jsx)(E.Primitive.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...s,ref:r})});function Y(e,t,r,{discrete:n}){let i=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,E.dispatchDiscreteCustomEvent)(i,s):i.dispatchEvent(s)}var q=(e,t,r=0)=>{let n=Math.abs(e.x),i=Math.abs(e.y),s=n>i;return"left"===t||"right"===t?s&&n>r:!s&&i>r};function $(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}e.s(["Action",0,K,"Close",0,W,"Description",0,B,"Provider",0,g,"Root",0,k,"Title",0,U,"Toast",0,k,"ToastAction",0,K,"ToastClose",0,W,"ToastDescription",0,B,"ToastProvider",0,g,"ToastTitle",0,U,"ToastViewport",0,w,"Viewport",0,w,"createToastScope",0,N],38459);var z=e.i(38459),z=z,z=z;e.i(868433);var J=e.i(141065);let X=(0,r.snackbarRecipe)(),Q=({onClick:e,...r})=>(0,t.jsx)(J.Callout,{as:z.Root,className:X.root,role:"alert",onClick:()=>e(),...r}),Z=(0,n.createContext)(void 0),ee=(0,r.snackbarRecipe)();e.s(["SnackbarProvider",0,({children:e})=>{let[r,{hideSnackbar:i,showSnackbar:s}]=(()=>{let e=(0,n.use)(Z),[t,r]=(0,n.useState)();if(e)throw Error(`[useSnackbarProvider] is NOT intended to be used within a [SnackbarProvider].
2       To push snackbars, please use [useSnackbar] instead.`);return[t,{showSnackbar:e=>{r(null),setTimeout(()=>{r(e)},100)},hideSnackbar:()=>{r(null)}}]})();return(0,t.jsxs)(Z,{value:{hideSnackbar:i,showSnackbar:s},children:[e,(0,t.jsx)(z.Provider,{duration:7e3,children:!!r&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Q,{...r}),(0,t.jsx)(z.Viewport,{className:ee.viewport})]})})]})}],269312),e.s(["useSnackbar",0,()=>{let e=(0,n.use)(Z);if(!e)throw Error("[useSnackbar] must be used within a [SnackbarProvider]");return e}],793436),e.s([],955020)},727848,504244,e=>{"use strict";var t=e.i(539392),r=e.i(516467);function n(e,t){let n=(0,r.toDate)(e)-(0,r.toDate)(t);return n<0?-1:n>0?1:n}e.s(["compareAsc",0,n],504244),e.s(["differenceInYears",0,function(e,r,i){let[s,o]=(0,t.normalizeDates)(i?.in,e,r),a=n(s,o),l=Math.abs(function(e,r){let[n,i]=(0,t.normalizeDates)(void 0,e,r);return n.getFullYear()-i.getFullYear()}(s,o));s.setFullYear(1584),o.setFullYear(1584);let c=n(s,o)===-a,u=a*(l-c);return 0===u?0:u}],727848)},115755,(e,t,r)=>{var n=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
2)+/g,decodeURIComponent)}return function r(n){function i(){}function s(t,r,s){if("u">typeof document){"number"==typeof(s=e({path:"/"},i.defaults,s)).expires&&(s.expires=new Date(new Date*1+864e5*s.expires)),s.expires=s.expires?s.expires.toUTCString():"";try{var o=JSON.stringify(r);/^[\{\[]/.test(o)&&(r=o)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,!0!==s[l]&&(a+="="+s[l].split(";")[0]));return document.cookie=t+"="+r+a}}function o(e,r){if("u">typeof document){for(var i={},s=document.cookie?document.cookie.split("; "):[],o=0;o<s.length;o++){var a=s[o].split("="),l=a.slice(1).join("=");r||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(a[0]);if(l=(n.read||n)(l,c)||t(l),r)try{l=JSON.parse(l)}catch(e){}if(i[c]=l,e===c)break}catch(e){}}return e?i[e]:i}}return i.set=s,i.get=function(e){return o(e,!1)},i.getJSON=function(e){return o(e,!0)},i.remove=function(t,r){s(t,"",e(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}(function(){})};if("function"==typeof define&&define.amd){let i;void 0!==(i=n(e.r,r,t))&&e.v(i)}t.exports=n()},440070,304933,e=>{"use strict";var t=e.i(336943),r=e.i(115755);e.s(["useCookie",0,function(e){var n=(0,t.useState)(function(){return r.default.get(e)||null}),i=n[0],s=n[1];return[i,(0,t.useCallback)(function(t,n){r.default.set(e,t,n),s(t)},[e]),(0,t.useCallback)(function(){r.default.remove(e),s(null)},[e])]}],440070),e.s(["COOKIE_CALLBACK_URL",0,"ftv-callback","PARAMS_CALLBACK_URL",0,"callbackUrl"],304933)},253785,e=>{"use strict";let t=e=>e.map(e=>e.trim().replace(/^\/+|\/+$/g,"")).filter(Boolean).join("/")||"/";e.s(["buildPathname",0,t,"joinPathname",0,(e,...r)=>{let n=t([e,...r]);return"/"===n?"/":`/${n}`}])},272415,e=>{"use strict";var t,r,n=((t={}).SERIES_FICTION="series-et-fictions",t),i=((r={}).SERIES_FICTION_SERIAL="series-et-fictions_feuilletons",r),s=e.i(598853),o=e.i(524133);e.i(253785),e.s(["isAuthPath",0,e=>e.startsWith(s.PATH.SIGN_IN)||e.startsWith(s.PATH.SIGN_UP)||e.startsWith(s.PATH.FORGOT_PASSWORD)||e.startsWith(s.PATH.RESET_PASSWORD)||e.startsWith(s.PATH.TV_CODE),"isChannelsPath",0,e=>e===o.ROUTE.CHANNELS.PATH||e===o.ROUTE.CHANNELS.PATH.replace(/\/$/,""),"isHomePath",0,e=>e===o.ROUTE.HOME.PATH,"isListPageProgram",0,e=>new RegExp(/(^tous-les-programmes|\/tous-les-programmes\/?)$/).test(e),"isListPageVideo",0,e=>new RegExp(/(^toutes-les-videos|\/toutes-les-videos\/?)$/).test(e),"isSerial",0,(e="")=>e===i.SERIES_FICTION_SERIAL,"isSeriesFiction",0,(e="")=>e===n.SERIES_FICTION],272415)},410151,174741,e=>{"use strict";var t=e.i(598279),r=e.i(487122),n=e.i(516467);e.s(["add",0,function(e,i,s){let{years:o=0,months:a=0,weeks:l=0,days:c=0,hours:u=0,minutes:d=0,seconds:E=0}=i,f=(0,n.toDate)(e,s?.in),p=a||o?function(e,t){let i=(0,n.toDate)(e,void 0);if(isNaN(t))return(0,r.constructFrom)(e,NaN);if(!t)return i;let s=i.getDate(),o=(0,r.constructFrom)(e,i.getTime());return(o.setMonth(i.getMonth()+t+1,0),s>=o.getDate())?o:(i.setFullYear(o.getFullYear(),o.getMonth(),s),i)}(f,a+12*o):f,m=c||l?(0,t.addDays)(p,c+7*l):p;return(0,r.constructFrom)(s?.in||e,+m+1e3*(E+60*(d+60*u)))}],410151),e.s(["endOfDay",0,function(e,t){let r=(0,n.toDate)(e,t?.in);return r.setHours(23,59,59,999),r}],174741)},642120,e=>{"use strict";e.s(["clearUserCache",0,()=>{let e=/^ftv_user_[a-zA-Z0-9_]+$/;Object.keys(localStorage).forEach(t=>{e.test(t)&&localStorage.removeItem(t)})},"customDeserializer",0,e=>/^\d+$/.test(e)?parseInt(e,10):e,"customSerializer",0,e=>"string"==typeof e?e:e.toString()])},59590,e=>{"use strict";e.s(["API_ROUTES",0,{AUTH_REMEMBER_ME:"/api/auth/remember-me/",BOOKMARK:"/api/bookmark/",BOOKMARKS:"/api/bookmarks/",BOOKMARKS_CONTENTS:"/api/bookmarks/mix/",DEEP_PAGE:"/api/deep-page/",EPG_EVENT:"/api/epg/event/",EPG_FLUX:"/api/epg/flux/",
2EPG_VIDEOS:"/api/epg/videos/",FETCH_INTERESTS:"/api/fetch-interests/",INTERESTS:"/api/interests/",LAST_WATCHED:"/api/recommendations/last-watched/",LIVES:"/api/lives/",NEWSLETTERS:"/api/newsletters/",PLAYLISTS_VIDEO:"/api/playlists/video/",RATINGS:"/api/ratings/",RECOMMENDATIONS:"/api/recommendations/",RECOMMENDATIONS_AUTH:"/api/recommendations/auth/",RECOMMENDATIONS_BANS:"/api/recommendations/bans/",RECOMMENDATIONS_EVENT:"/api/recommendations/event/",RECOMMENDATIONS_RECONCILIATION:"/api/recommendations/reconciliation/",RECOMMENDATIONS_VIDEO:"/api/recommendations/video/",RESUME_VIDEO:"/api/resume-video/",SEEKS:"/api/seeks/",SEEKS_IDS:"/api/seeks/ids/",VIDEOS:"/api/videos/"}])},261162,e=>{"use strict";var t=e.i(336943),r=e.i(885481),n=e.i(939352),i=e.i(85648),s=e.i(920530),o=e.i(318320),a=e.i(135486),l=e.i(676074),c=e.i(401402);let u=i.IS_REACT_LEGACY?e=>{e()}:t.default.startTransition,d=(0,n.withMiddleware)(r.default,()=>(e,r,i={})=>{let{mutate:d}=(0,n.useSWRConfig)(),E=(0,t.useRef)(e),f=(0,t.useRef)(r),p=(0,t.useRef)(i),m=(0,t.useRef)(0),[_,h,v]=(e=>{let[,r]=(0,t.useState)({}),n=(0,t.useRef)(!1),i=(0,t.useRef)(e),o=(0,t.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,t.useCallback)(e=>{let t=!1,s=i.current;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&s[r]!==e[r]&&(s[r]=e[r],o.current[r]&&(t=!0));t&&!n.current&&r({})},[]);return(0,s.useIsomorphicLayoutEffect)(()=>(n.current=!1,()=>{n.current=!0})),[i,o.current,a]})({data:c.UNDEFINED,error:c.UNDEFINED,isMutating:!1}),S=_.current,C=(0,t.useCallback)(async(e,t)=>{let[r,n]=(0,o.serialize)(E.current);if(!f.current)throw Error("Can’t trigger the mutation: missing fetcher.");if(!r)throw Error("Can’t trigger the mutation: missing key.");let i=(0,a.mergeObjects)((0,a.mergeObjects)({populateCache:!1,throwOnError:!0},p.current),t),s=(0,l.getTimestamp)();m.current=s,v({isMutating:!0});try{let t=await d(r,f.current(n,{arg:e}),(0,a.mergeObjects)(i,{throwOnError:!0}));return m.current<=s&&(u(()=>v({data:t,isMutating:!1,error:void 0})),null==i.onSuccess||i.onSuccess.call(i,t,r,i)),t}catch(e){if(m.current<=s&&(u(()=>v({error:e,isMutating:!1})),null==i.onError||i.onError.call(i,e,r,i),i.throwOnError))throw e}},[]),R=(0,t.useCallback)(()=>{m.current=(0,l.getTimestamp)(),v({data:c.UNDEFINED,error:c.UNDEFINED,isMutating:!1})},[]);return(0,s.useIsomorphicLayoutEffect)(()=>{E.current=e,f.current=r,p.current=i}),{trigger:C,reset:R,get data(){return h.data=!0,S.data},get error(){return h.error=!0,S.error},get isMutating(){return h.isMutating=!0,S.isMutating}}});var E=e.i(805322),f=e.i(637672),p=e.i(57684),m=e.i(601341);e.s(["useFetchMutation",0,(e,t={method:"GET"})=>d(e?(0,m.getFullURL)(e):null,(e,r)=>{let n=t.method??"GET",i={"Content-Type":E.MimeType.JSON,...t.headers??{},...r?.arg?.headers??{}},s={...t,method:n,headers:i},o=["GET","DELETE"].includes(n),a=r?.arg?.path?`${e}${r.arg.path}`:e,l=o?{...s,searchParams:r?.arg?.query}:{...s,body:JSON.stringify(r?.arg?.body)};return(0,p.fetcher)(a,l)},f.STATIC_SWR_MUTATION_OPTIONS)],261162)},840970,e=>{"use strict";var t=e.i(369542),r=e.i(97769);e.s(["sendPianoImpressionEvent",0,(e={})=>{if("u"<typeof pa){window._paqTmp=window._paqTmp||[],window._paqTmp.push(["sendEvent",t.PIANO_EVENTS.impression,e]);return}let n=(0,r.normalizeTracking)(e);pa.sendEvent(t.PIANO_EVENTS.impression,n)}])},571860,e=>{"use strict";var t=e.i(336943),r=e.i(253373);e.s(["getLocalStorageWithoutState",0,function(e,t=null){return[()=>{if(r.isSSR)return t;try{let r=localStorage.getItem(e);if(!r)return t;return JSON.parse(r)}catch(e){return t}},t=>{r.isSSR||localStorage.setItem(e,JSON.stringify(t))},()=>{r.isSSR||localStorage.removeItem(e)}]},"useLocalStorage",0,function(e,n){let[i,s]=(0,t.useState)(()=>{try{if(r.isSSR)return n;let t=window.localStorage.getItem(e);return t?JSON.parse(t):n}catch(e){return console.log(e),n}});return[i,t=>{try{let r=t instanceof Function?t(i):t;s(r),window.localStorage.setItem(e,JSON.stringify(r))}catch(e){console.log(e)}}]}])},191677,e=>{"use strict";var t=e.i(885481),r=e.i(637672),n=e.i(57684),i=e.i(601341);e.s(["useFetch",0,(e,s,o={})=>{let a=e?(0,i.getFullURL)(e,s):null;return(0,t.default)(a,n.fetcher,{...r.STATIC_SWR_OPTIONS,...o})}])},326249,e=>{"use strict";var t=e.i(300388),r=e.i(191677);e.s(["useFetchWithAuth",0,({endpoint:e,options:n,paginationParams:i}
2)=>{let{data:s}=(0,t.useSession)(),o=!!s?.user.id;return(0,r.useFetch)(o?e:null,i,n)}])},70535,e=>{"use strict";var t=e.i(200406);let r=(0,e.i(336943).createContext)(void 0);e.s(["TransactionContext",0,r,"TransactionProvider",0,({children:e,config:n})=>(0,t.jsx)(r,{value:n,children:e})])},771889,e=>{"use strict";e.s(["BOOKMARKS_MY_PLAYLIST_PAGE_SIZE",0,100,"BOOKMARKS_PAGE_SIZE",0,20,"PAGINATION_MAX_ELEMENTS",0,1e4,"PAGINATION_SIZE",0,30])},264186,e=>{"use strict";var t=e.i(336943),r=e.i(816355),n=e.i(326249),i=e.i(571860);e.s(["useCacheProvider",0,({cacheKey:e,defaultCache:s,fetchProps:{endpoint:o,pageSize:a}})=>{let[l,c]=(0,i.useLocalStorage)(e,s),u=`${e}_expiration`,[d,E]=(0,i.useLocalStorage)(u,null),f=!d||d<Date.now(),p=(0,n.useFetchWithAuth)({endpoint:o,paginationParams:{...a&&{size:a}},options:{...!f&&l&&{fallbackData:l}}});return(0,t.useEffect)(()=>{p.data&&(c(p.data),E(Date.now()+r.EXPIRATION_CACHE_TIME))},[p.data]),{cache:l,setCache:c}}])},620395,e=>{"use strict";var t=e.i(200406),r=e.i(336943),n=e.i(59590),i=e.i(805322),s=e.i(771889),o=e.i(264186);let a=(0,r.createContext)({addBookmarkToLS:()=>null,cachedBookmarks:{},removeBookmarkFromLS:()=>null});e.s(["BookmarkContext",0,a,"BookmarkProvider",0,({children:e})=>{let{cache:r,setCache:l}=(0,o.useCacheProvider)({cacheKey:i.BOOKMARKS_CACHE_KEY,defaultCache:{},fetchProps:{endpoint:n.API_ROUTES.BOOKMARKS,pageSize:s.BOOKMARKS_PAGE_SIZE}});return(0,t.jsx)(a,{value:{addBookmarkToLS:(e,t)=>{l(r=>({...r,[e]:[...r[e]||[],t]}))},cachedBookmarks:r,removeBookmarkFromLS:(e,t)=>{l(r=>({...r,[e]:(r[e]||[]).filter(e=>e!==t)}))}},children:e})}])},552014,e=>{"use strict";var t=e.i(200406),r=e.i(336943),n=e.i(59590),i=e.i(805322),s=e.i(264186);let o=(0,r.createContext)({cachedInterests:[],addCachedInterests:()=>null,removeCachedInterests:()=>null});e.s(["InterestContext",0,o,"InterestProvider",0,({children:e})=>{let{cache:r,setCache:a}=(0,s.useCacheProvider)({cacheKey:i.INTERESTS_CACHE_KEY,defaultCache:[],fetchProps:{endpoint:n.API_ROUTES.INTERESTS}});return(0,t.jsx)(o,{value:{addCachedInterests:e=>{a(e)},cachedInterests:r,removeCachedInterests:()=>{a([])}},children:e})}])},572595,e=>{"use strict";var t=e.i(336943);let r=(0,t.createContext)(null),n={didCatch:!1,error:null};class i extends t.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=n}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){let{error:t}=this.state;null!==t&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(n))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){let{didCatch:r}=this.state,{resetKeys:i}=this.props;r&&null!==t.error&&function(e=[],t=[]){return e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r]))}(e.resetKeys,i)&&(this.props.onReset?.({next:i,prev:e.resetKeys,reason:"keys"}),this.setState(n))}render(){let{children:e,fallbackRender:n,FallbackComponent:i,fallback:s}=this.props,{didCatch:o,error:a}=this.state,l=e;if(o){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof n)l=n(e);else if(i)l=(0,t.createElement)(i,e);else if(void 0!==s)l=s;else throw a}return(0,t.createElement)(r.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},l)}}e.s(["ErrorBoundary",0,i,"ErrorBoundaryContext",0,r,"getErrorMessage",0,function(e){switch(typeof e){case"object":if(null!==e&&"message"in e&&"string"==typeof e.message)return e.message;break;case"string":return e}},"useErrorBoundary",0,function(){let e=(0,t.useContext)(r);if(!(null!==e&&"object"==typeof e&&"didCatch"in e&&"boolean"==typeof e.didCatch&&"error"in e&&"resetErrorBoundary"in e&&"function"==typeof e.resetErrorBoundary))throw Error("ErrorBoundaryContext not found");let{error:n,resetErrorBoundary:i}=e,[s,o]=(0,t.useState)({error:null,hasError:!1}),a=(0,t.useMemo)(()=>({error:n,resetBoundary:()=>{i(),o({error:null,hasError:!1})},showBoundary:e=>o({error:e,hasError:!0})}),[n,i]);if(s.hasError)throw s.error;return a},"withErrorBoundary",0,function(e,r){let n=(0,t.forwardRef)((n,s)=>(0,t.createElement)(i,r,(0,t.createElement)(e,{...n,ref:s}))),s=e.displayName||e.name||"Unknown";return n.displayName=`withErrorBoundary(${s})`,n}])},999763,670018,e=>{"use strict";let t="consent_opt-out";e.s(["CONSENT_CONTENTSQUARE_KEY",0,"consent_contentsquare","CONSENT_COOKIES_KEY",0,"consent_cookies","CONSENT_EUID_KEY",0,"consent_euid","CONSENT_LIVERAMP_KEY",0,"consent_live_ramp","CONSENT_MEDIARITHMICS_KEY",0,"consent_mics_ramp","CONSENT_OPT_IN_KEY",0,"consent_opt-in","CONSENT_OPT_OUT_KEY",0,t,"CONSENT_RECOMMENDATION_KEY",0,"consent_spideo","CONSENT_SYNCHRO_PID_KEY",0,"consent_synchro_pid","DIDOMI_API_KEY",0,"fedf8125-d890-4ef1-a017-6700106a71f1","DIDOMI_CONTAINER_CLASS",0,"didomi-consent-popup-preferences"],999763);var r=e.i(253373);let n=e=>!!window.Didomi?.getUserConsentStatusForVendor(e);e.s(["getDidomiAtInternetConsent",0,()=>n("c:atinterne-D22mcTNf"),"getDidomiConsentMode",0,(e,t)=>t?"opt-out":e?"opt-in":"essential","getDidomiConsentToken",0,()=>r.isSSR?"":localStorage.getItem("euconsent-v2"),"getDidomiContentsquareConsent",0,()=>n("c:contentsq-QFn3GHVp"),"getDidomiCookiesConsent",0,()=>!!window.Didomi?.getUserConsentStatusForPurpose("cookies"),"getDidomiEuidConsent",0,()=>n("21"),"getDidomiLiveRampConsent",0,()=>
2n("c:liveramp-mHJjqHMU"),"getDidomiMediarithmicsConsent",0,()=>n("c:mediarithm-Ktpf47RZ"),"getDidomiOptOutConsent",0,()=>!r.isSSR&&"true"===localStorage.getItem(t),"getDidomiPurposeConsent",0,e=>{let{purposes:t}=window.Didomi?.getCurrentUserStatus()??{};return!!t?.[e]?.enabled},"getDidomiRecommendationConsent",0,()=>n("c:spideo-TcYnKH8L"),"sendPublicId",0,e=>{let t=window.Didomi?.getCurrentUserStatus();window.Didomi?.setUser({organizationUserId:e}),window.Didomi?.setCurrentUserStatus({action:"synchro_pid",purposes:t?.purposes,updated:new Date().toISOString(),vendors:t?.vendors})}],670018)},433780,e=>{"use strict";e.i(357005);var t=e.i(492213),r=e.i(999763),n=e.i(670018);e.s(["useDidomiConsents",0,()=>{let[e,i]=(0,t.useLocalStorage)(r.CONSENT_CONTENTSQUARE_KEY),[s,o]=(0,t.useLocalStorage)(r.CONSENT_EUID_KEY),[a,l]=(0,t.useLocalStorage)(r.CONSENT_LIVERAMP_KEY),[c,u]=(0,t.useLocalStorage)(r.CONSENT_MEDIARITHMICS_KEY),[d,E]=(0,t.useLocalStorage)(r.CONSENT_OPT_OUT_KEY),[f,p]=(0,t.useLocalStorage)(r.CONSENT_COOKIES_KEY),[m,_]=(0,t.useLocalStorage)(r.CONSENT_OPT_IN_KEY),[h,v]=(0,t.useLocalStorage)(r.CONSENT_RECOMMENDATION_KEY),S=()=>{i((0,n.getDidomiContentsquareConsent)()),o((0,n.getDidomiEuidConsent)()),l((0,n.getDidomiLiveRampConsent)()),u((0,n.getDidomiMediarithmicsConsent)()),_((0,n.getDidomiAtInternetConsent)()),v((0,n.getDidomiRecommendationConsent)()),p((0,n.getDidomiCookiesConsent)())};return{consents:{cachedContentsquareConsent:e,cachedCookiesConsent:f,cachedEuidConsent:s,cachedLiveRampConsent:a,cachedMicsConsent:c,cachedOptInConsent:m,cachedOptOutConsent:d,cachedRecommendationConsent:h},setConsentsOnSave:()=>{S()},setConsentsOnReady:()=>{S(),E((0,n.getDidomiOptOutConsent)())},setCachedOptInConsent:_,setCachedOptOutConsent:E}}])},698417,e=>{e.v(t=>Promise.all(["static/chunks/41u817c7plkcm.js","static/chunks/2s1j7-awtlk95.js","static/chunks/2iw8-otqs5axd.js"].map(t=>e.l(t))).then(()=>t(900042)))},594493,e=>{e.v(t=>Promise.all(["static/chunks/1xokv2v04hh6i.js","static/chunks/2s1j7-awtlk95.js"].map(t=>e.l(t))).then(()=>t(574497)))},234542,e=>{e.v(t=>Promise.all(["static/chunks/2rekqt-3_rjhg.js","static/chunks/2s1j7-awtlk95.js","static/chunks/2iw8-otqs5axd.js"].map(t=>e.l(t))).then(()=>t(793994)))},760295,e=>{e.v(t=>Promise.all(["static/chunks/1z_ztc97n8ng9.js","static/chunks/2s1j7-awtlk95.js"].map(t=>e.l(t))).then(()=>t(744398)))},412001,e=>{e.v(t=>Promise.all(["static/chunks/0zutpz_18t2sh.js","static/chunks/2d48laxbhk0gm.js","static/chunks/2iw8-otqs5axd.js"].map(t=>e.l(t))).then(()=>t(663161)))},66168,e=>{e.v(t=>Promise.all(["static/chunks/1qcjyx-b-ew1k.js","static/chunks/0efw7_hm-6r0c.js","static/chunks/2d48laxbhk0gm.js","static/chunks/3kd71ouvk6qch.js"].map(t=>e.l(t))).then(()=>t(499801)))},324836,e=>{e.v(t=>Promise.all(["static/chunks/1rqjwayougu63.js","static/chunks/2s1j7-awtlk95.js","static/chunks/2iw8-otqs5axd.js"].map(t=>e.l(t))).then(()=>t(46804)))},268197,e=>{e.v(t=>Promise.all(["static/chunks/1kxws2nzh2ymv.js","static/chunks/2iw8-otqs5axd.js","static/chunks/0efw7_hm-6r0c.js","static/chunks/3kd71ouvk6qch.js","static/chunks/2s1j7-awtlk95.js"].map(t=>e.l(t))).then(()=>t(408815)))},906521,e=>{e.v(t=>Promise.all(["static/chunks/2t5ry3lax46qw.js","static/chunks/2iw8-otqs5axd.js","static/chunks/0efw7_hm-6r0c.js","static/chunks/3kd71ouvk6qch.js","static/chunks/2s1j7-awtlk95.js"].map(t=>e.l(t))).then(()=>t(77018)))},250194,e=>{e.v(t=>Promise.all(["static/chunks/2hbkoi64gz_1t.js","static/chunks/2d48laxbhk0gm.js","static/chunks/2iw8-otqs5axd.js"].map(t=>e.l(t))).then(()=>t(33698)))},792303,e=>{e.v(t=>Promise.all(["static/chunks/3-lls20umwa4q.js","static/chunks/2iw8-otqs5axd.js","static/chunks/0efw7_hm-6r0c.js","static/chunks/3kd71ouvk6qch.js","static/chunks/2d48laxbhk0gm.js"].map(t=>e.l(t))).then(()=>t(489318)))},101398,e=>{e.v(t=>Promise.all(["static/chunks/2devlqv8u761v.js","static/chunks/2s1j7-awtlk95.js"].map(t=>e.l(t))).then(()=>t(437286)))},576387,e=>{e.v(t=>Promise.all(["static/chunks/0m-50-p8ko2j-.css","static/chunks/1z_mbvpkjhpd5.css","static/chunks/3fh-elnfq6k-0.js"].map(t=>e.l(t))).then(()=>t(322163)))}]);

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.