@20minutes/tyr 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";const e=(e,t)=>{let n=e.toLowerCase().replace(/[\s-]+/g,t??"-");return n=(e=>{let t=e;const n="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)t=t.replace(new RegExp(n.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return t})(n),n.replace(/[^\w-]+/g,"")},t=()=>document.querySelectorAll('iframe[src*="www.ultimedia.com"], iframe[data-src*="www.ultimedia.com"]').length,n=()=>t()+document.querySelectorAll('[src*="www.youtube.com"], [data-src*="www.youtube.com"]').length+document.querySelectorAll('[src*="www.dailymotion.com"], [data-src*="www.dailymotion.com"]').length+document.querySelectorAll('[src*="www.brut.media"], [data-src*="www.brut.media"]').length,o=()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())},a=()=>{window.ATTag&&(window.ATTag.page.set({name:window.ATPageInfo?.name,chapter1:window.ATPageInfo?.chapter1,chapter2:window.ATPageInfo?.chapter2,customObject:{device:"desktop"===(window.layout||"")?"desktop":"smartphone"}}),window.ATTag.dispatch())},r=()=>{const e={};if(e["b:user_darkmode"]="dark"===document.documentElement.getAttribute("data-theme"),e["b:user_status"]=!!document.cookie.match("(^|;)\\s*20mnUserInfo\\s*=\\s*([^;]+)"),e["b:user_status"]){const t=(e=>{const t=document.cookie.split(";").filter((t=>-1!==t.indexOf(e)))[0];return t?t.split("=")[1]:"{}"})("20mnUserDataLayer"),n=t?JSON.parse(decodeURIComponent(t)):null;n&&(e["s:user_id"]=String(n.i),Number.isNaN(n.d)||(e["n:user_a"]=Number(n.d)),Number.isNaN(n.l)||(e["n:user_zip"]=Number(n.l)),Number.isNaN(n.g)||(e["n:user_g"]=Number(n.g)))}return e},c=()=>{const e={},t=o();return("utm_source"in t||"utm_campaign"in t||"utm_medium"in t)&&("utm_source"in t||(e.utm_source=t.utm_medium??t.utm_campaign),"utm_campaign"in t||(e.utm_campaign=t.utm_source??t.utm_medium),"utm_medium"in t||(e.utm_medium=t.utm_source??t.utm_campaign)),e},i=()=>{const o=window.datalayerInfo,a={};return window.ATPageInfo.name=`${e(o.contentId??"")}-${e(o.contentTitle??"")}`,o.breadcrumb?.forEach(((t,n)=>{window.ATPageInfo[`chapter${n+1}`]=e(t)})),Number.isNaN(Number(o.contentId))||(a["n:content_id"]=Number(o.contentId)),a["s:content_type"]=o.pageName??"other",a["s:page_type"]="content",a["d:content_published_date"]=o.modificationDate?new Date(o.modificationDate).toISOString():"",a["d:content_modified_date"]=o.publicationDate?new Date(o.publicationDate).toISOString():"",Number.isNaN(Number(o.journalistId))||(a["n:content_id_journaliste"]=Number(o.journalistId)),a["s:content_tags"]=o.tagsSlug??"",a["s:content_signature"]=e(o.signature??""),a["s:content_title"]=e(o.contentTitle??""),a["n:content_title_characters_number"]=Number(o.contentTitle?.length),a["n:content_video_number"]=n(),a["s:content_subtype"]="texte",a["n:content_20min_video_number"]=t(),a["n:content_embed_number"]=document.querySelectorAll('.embed-placeholder, .c-content iframe:not([id*="google_ads_iframe_"])').length,document.querySelectorAll('.pi-player, a[href*="https://play.acast.com/"], iframe[src*="https://embed.acast.com/"], iframe[data-src*="https://embed.acast.com/"], iframe[src*="https://podcasts.20minutes.fr/"], iframe[data-src*="https://podcasts.20minutes.fr/"]').length>0?a["s:content_subtype"]="podcast":a["n:content_video_number"]>0&&(a["s:content_subtype"]="video"),a},s=()=>document.querySelectorAll(".c-content > p").length,d=()=>[...document.querySelectorAll(".c-content > p")].reduce(((e,t)=>e+t.innerHTML.length),0),m=()=>{const e=window.datalayerInfo,t={};t["b:user_adblock"]=!window.adsapp,t["s:page_url_raw"]=e.pageUri??"",t.page_url=e.pageUri??"",e.contentSource&&(t["s:content_source"]=e.contentSource),document.referrer&&(t["s:misc_referrer"]=document.referrer),t["s:page_type"]=e.pageName||"other";const n=document.querySelector("link[rel='canonical']");if(n&&(t["s:page_canonical"]=n.getAttribute("href")??""),"/search"===e.pageUri){const e=o();t["s:misc_search"]=e.q||""}return{...t,...r(),...c()}},u=()=>{window.ATInternet={onTrackerLoad:()=>{if(window.ATInternet.Tracker){window.ATTag=new window.ATInternet.Tracker.Tag({ignoreEmptyChapterValue:!0}),null===window.ATTag.privacy.getVisitorMode()&&window.ATTag.privacy.setVisitorMode("cnil","exempt"),window.ATTag.customVars.set({site:{2:window.datalayerInfo?.contentId??window.datalayerInfo?.tagId??window.datalayerInfo?.jobId??""}}),window.ATPageInfo.name="",window.ATPageInfo.chapter1="",window.ATPageInfo.chapter2="";let e={};switch(window.datalayerInfo.pageName||"other"){case"article":e=(()=>{const e=i();return e["n:content_characters_number"]=Number(d()),e["n:content_paragraphs_number"]=s(),e})();break;case"live":e={"n:content_paragraphs_number":window.datalayerInfo?.livePosts??0,...i()};break;case"horoscope":window.ATPageInfo.name=window.datalayerInfo?.pageKey,window.ATPageInfo.chapter1="services",window.ATPageInfo.chapter2="horoscope",e={"s:page_type":"horoscope"};break;case"horoscopehome":window.ATPageInfo.name=window.datalayerInfo?.pageKey,window.ATPageInfo.chapter1="services",window.ATPageInfo.chapter2="horoscope",e={"s:page_type":"horoscopehome"};break;case"jobdetails":e=(()=>{const{pageKey:e,tagsSlug:o="",contentTitle:a=""}=window.datalayerInfo;return{"s:content_source":"labsense","s:page_type":"content","s:content_type":"card","s:content_tags":o,"s:content_signature":"","s:content_title":a,"s:content_subtype":"job","n:content_id":Number(e),"n:content_id_journaliste":0,"n:content_title_characters_number":Number(a.length),"n:content_video_number":n(),"n:content_20min_video_number":t(),"n:content_embed_number":document.querySelectorAll('.embed-placeholder, .c-content iframe:not([id*="google_ads_iframe_"])').length,"n:content_characters_number":Number(d()),"n:content_paragraphs_number":s(),"d:content_published_date":"","d:content_modified_date":""}})();break;case"jobs":e={"s:content_source":"labsense","s:page_type":"content","s:content_type":"card","s:content_tags":"","s:content_signature":"","s:content_title":"","s:content_subtype":"job","n:content_id":0,"n:content_id_journaliste":0,"n:content_title_characters_number":0,"n:content_video_number":n(),"n:content_20min_video_number":t(),"n:content_embed_number":document.querySelectorAll('.embed-placeholder, .c-content iframe:not([id*="google_ads_iframe_"])').length,"n:content_characters_number":Number(d()),"n:content_paragraphs_number":s(),"d:content_published_date":"","d:content_modified_date":""};break;case"tag":window.ATPageInfo.name=window.datalayerInfo?.pageKey,window.ATPageInfo.chapter1=window.datalayerInfo?.pageKey,window.ATPageInfo.chapter2="",e={"s:page_type":"home_tag"};break;case"traffic":e={"s:page_type":"infos-trafic"};break;case"weather":e={"s:page_type":"previsions-meteo-france"}}window.ATTag.setProps({...m(),...e,"b:pageview_with_consent":"optin"===window.ATTag.privacy.getVisitorMode().name,"s:site_level2":window.location.hostname},!0),window.ATTag.identifiedVisitor.set({id:"",category:""}),a()}}}};window.ATPageInfo={},u(),window.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("article-list-bottom-container");e&&new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&a()}))})).observe(e)}))}();
|
|
1
|
+
!function(){"use strict";const e=(e,t)=>{let n=e.toLowerCase().replace(/[\s-]+/g,t??"-");return n=(e=>{let t=e;const n="ãàáäâẽèéëêìíïîõòóöôùúüûñç·/,:;";for(let e=0;e<30;e+=1)t=t.replace(new RegExp(n.charAt(e),"g"),"aaaaaeeeeeiiiiooooouuuunc-----".charAt(e));return t})(n),n.replace(/[^\w-]+/g,"")},t=()=>document.querySelectorAll('iframe[src*="www.ultimedia.com"], iframe[data-src*="www.ultimedia.com"]').length,n=()=>t()+document.querySelectorAll('[src*="www.youtube.com"], [data-src*="www.youtube.com"]').length+document.querySelectorAll('[src*="www.dailymotion.com"], [data-src*="www.dailymotion.com"]').length+document.querySelectorAll('[src*="www.brut.media"], [data-src*="www.brut.media"]').length,o=()=>{const e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())},a=()=>{window.ATTag&&(window.ATTag.page.set({name:window.ATPageInfo?.name,chapter1:window.ATPageInfo?.chapter1,chapter2:window.ATPageInfo?.chapter2,customObject:{device:"desktop"===(window.layout||"")?"desktop":"smartphone"}}),window.ATTag.dispatch())},r=()=>{const e={};if(e["b:user_darkmode"]="dark"===document.documentElement.getAttribute("data-theme"),e["b:user_status"]=!!document.cookie.match("(^|;)\\s*20mnUserInfo\\s*=\\s*([^;]+)"),e["b:user_status"]){const t=(e=>{const t=document.cookie.split(";").filter((t=>-1!==t.indexOf(e)))[0];return t?t.split("=")[1]:"{}"})("20mnUserDataLayer"),n=t?JSON.parse(decodeURIComponent(t)):null;n&&(e["s:user_id"]=String(n.i),Number.isNaN(n.d)||(e["n:user_a"]=Number(n.d)),Number.isNaN(n.l)||(e["n:user_zip"]=Number(n.l)),Number.isNaN(n.g)||(e["n:user_g"]=Number(n.g)))}return e},c=()=>{const e={},t=o();return("utm_source"in t||"utm_campaign"in t||"utm_medium"in t)&&("utm_source"in t||(e.utm_source=t.utm_medium??t.utm_campaign),"utm_campaign"in t||(e.utm_campaign=t.utm_source??t.utm_medium),"utm_medium"in t||(e.utm_medium=t.utm_source??t.utm_campaign)),e},i=()=>{const o=window.datalayerInfo,a={};return window.ATPageInfo.name=`${e(o.contentId??"")}-${e(o.contentTitle??"")}`,o.breadcrumb?.forEach(((t,n)=>{window.ATPageInfo[`chapter${n+1}`]=e(t)})),Number.isNaN(Number(o.contentId))||(a["n:content_id"]=Number(o.contentId)),a["s:content_type"]=o.pageName??"other",a["s:page_type"]="content",a["d:content_published_date"]=o.modificationDate?new Date(o.modificationDate).toISOString():"",a["d:content_modified_date"]=o.publicationDate?new Date(o.publicationDate).toISOString():"",Number.isNaN(Number(o.journalistId))||(a["n:content_id_journaliste"]=Number(o.journalistId)),a["s:content_tags"]=o.tagsSlug??"",a["s:content_signature"]=e(o.signature??""),a["s:content_title"]=e(o.contentTitle??""),a["n:content_title_characters_number"]=Number(o.contentTitle?.length),a["n:content_video_number"]=n(),a["s:content_subtype"]="texte",a["n:content_20min_video_number"]=t(),a["n:content_embed_number"]=document.querySelectorAll('.embed-placeholder, .c-content iframe:not([id*="google_ads_iframe_"])').length,document.querySelectorAll('.pi-player, a[href*="https://play.acast.com/"], iframe[src*="https://embed.acast.com/"], iframe[data-src*="https://embed.acast.com/"], iframe[src*="https://podcasts.20minutes.fr/"], iframe[data-src*="https://podcasts.20minutes.fr/"]').length>0?a["s:content_subtype"]="podcast":a["n:content_video_number"]>0&&(a["s:content_subtype"]="video"),a},s=()=>document.querySelectorAll(".c-content > p").length,d=()=>[...document.querySelectorAll(".c-content > p")].reduce(((e,t)=>e+t.innerHTML.length),0),m=()=>{const e=window.datalayerInfo,t={};t["b:user_adblock"]=!window.adsapp,t["s:page_url_raw"]=e.pageUri??"",t.page_url=e.pageUri??"",e.contentSource&&(t["s:content_source"]=e.contentSource),document.referrer&&(t["s:misc_referrer"]=document.referrer),t["s:page_type"]=e.pageName||"other";const n=document.querySelector("link[rel='canonical']");if(n&&(t["s:page_canonical"]=n.getAttribute("href")??""),"/search"===e.pageUri){const e=o();t["s:misc_search"]=e.q||""}return{...t,...r(),...c()}},u=()=>{window.ATInternet={onTrackerLoad:()=>{if(window.ATInternet.Tracker){window.ATTag=new window.ATInternet.Tracker.Tag({ignoreEmptyChapterValue:!0}),null===window.ATTag.privacy.getVisitorMode()&&window.ATTag.privacy.setVisitorMode("cnil","exempt"),window.ATTag.customVars.set({site:{2:window.datalayerInfo?.contentId??window.datalayerInfo?.tagId??window.datalayerInfo?.jobId??""}}),window.ATPageInfo.name="",window.ATPageInfo.chapter1="",window.ATPageInfo.chapter2="";let e={};switch(window.datalayerInfo.pageName||"other"){case"home":window.ATPageInfo.name="accueil",e={"s:page_type":"home","s:content_source":"20mn"};break;case"article":e=(()=>{const e=i();return e["n:content_characters_number"]=Number(d()),e["n:content_paragraphs_number"]=s(),e})();break;case"live":e={"n:content_paragraphs_number":window.datalayerInfo?.livePosts??0,...i()};break;case"horoscope":window.ATPageInfo.name=window.datalayerInfo?.pageKey,window.ATPageInfo.chapter1="services",window.ATPageInfo.chapter2="horoscope",e={"s:page_type":"horoscope"};break;case"horoscopehome":window.ATPageInfo.name=window.datalayerInfo?.pageKey,window.ATPageInfo.chapter1="services",window.ATPageInfo.chapter2="horoscope",e={"s:page_type":"horoscopehome"};break;case"jobdetails":e=(()=>{const{pageKey:e,tagsSlug:o="",contentTitle:a=""}=window.datalayerInfo;return{"s:content_source":"labsense","s:page_type":"content","s:content_type":"card","s:content_tags":o,"s:content_signature":"","s:content_title":a,"s:content_subtype":"job","n:content_id":Number(e),"n:content_id_journaliste":0,"n:content_title_characters_number":Number(a.length),"n:content_video_number":n(),"n:content_20min_video_number":t(),"n:content_embed_number":document.querySelectorAll('.embed-placeholder, .c-content iframe:not([id*="google_ads_iframe_"])').length,"n:content_characters_number":Number(d()),"n:content_paragraphs_number":s(),"d:content_published_date":"","d:content_modified_date":""}})();break;case"jobs":e={"s:content_source":"labsense","s:page_type":"content","s:content_type":"card","s:content_tags":"","s:content_signature":"","s:content_title":"","s:content_subtype":"job","n:content_id":0,"n:content_id_journaliste":0,"n:content_title_characters_number":0,"n:content_video_number":n(),"n:content_20min_video_number":t(),"n:content_embed_number":document.querySelectorAll('.embed-placeholder, .c-content iframe:not([id*="google_ads_iframe_"])').length,"n:content_characters_number":Number(d()),"n:content_paragraphs_number":s(),"d:content_published_date":"","d:content_modified_date":""};break;case"tag":window.ATPageInfo.name=window.datalayerInfo?.pageKey,window.ATPageInfo.chapter1=window.datalayerInfo?.pageKey,window.ATPageInfo.chapter2="",e={"s:page_type":"home_tag"};break;case"traffic":e={"s:page_type":"infos-trafic"};break;case"weather":e={"s:page_type":"previsions-meteo-france"}}window.ATTag.setProps({...m(),...e,"b:pageview_with_consent":"optin"===window.ATTag.privacy.getVisitorMode().name,"s:site_level2":window.location.hostname},!0),window.ATTag.identifiedVisitor.set({id:"",category:""}),a()}}}};window.ATPageInfo={},u(),window.addEventListener("DOMContentLoaded",(()=>{const e=document.getElementById("article-list-bottom-container");e&&new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&a()}))})).observe(e)}))}();
|
package/dist/js/main.min.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Copyright (c) 2018 Jed Watson.
|
|
9
9
|
Licensed under the MIT License (MIT), see
|
|
10
10
|
http://jedwatson.github.io/classnames
|
|
11
|
-
*/wr=_r,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,r(o)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)e.call(r,a)&&r[a]&&(o=n(o,a));return o}function n(e,t){return t?e?e+" "+t:e+t:e}wr.exports?(t.default=t,wr.exports=t):window.classNames=t}();var Sr=br(_r.exports);const xr=new Intl.RelativeTimeFormat("fr",{numeric:"auto"}),Er=new Intl.DateTimeFormat("fr",{year:"numeric",month:"short",day:"numeric",timeZone:"Europe/Paris"}),kr=e=>{const t=(new Date).getTime(),r=new Date(e).getTime(),n=(r-t)/6e4;let o=xr.format(Math.round(n),"minutes");return n<=-60&&(o=xr.format(Math.ceil(n/60),"hours"),n<=-1440&&(o=Er.format(r))),"cette minute-ci"===o?"à l'instant":o},Nr=e=>e?e.rightSubheader&&Boolean(new Date(e.rightSubheader?.text).getTime())?{...e,rightSubheader:{...e.rightSubheader,text:kr(e.rightSubheader.text)}}:{...e}:e,Cr=({articles:t,layout:r,columnsNumber:n=2,hideFirstDivider:o=!1,dividerProps:a,seeMoreLink:i,tagTotalArticles:l,currentPagePath:s,currentPage:u="1",articlesLimit:c,hasCardLarge:d=!1,...f})=>{const p=t=>e.createElement(bt,{...t,cardTitleProps:{as:"h2",...t.cardTitleProps},cardHeaderProps:Nr(t.cardHeaderProps),mx:"m"});let h=e.createElement(e.Fragment,null,t.slice(0,c).map(((t,n)=>e.createElement(Le,{key:t.title,className:`card-item-${n+1}`},d?e.createElement(e.Fragment,null,0===n&&e.createElement(wt,{...t,layout:r}),n>0&&e.createElement(e.Fragment,null,e.createElement(fe,{color:"grey-200",my:"s",...a}),p({...t,layout:r}))):e.createElement(e.Fragment,null,e.createElement(fe,{color:"grey-200",my:"s",...a,className:Sr({"u-hidden":0===n&&o},a?.className)}),p({...t,layout:r}))))));return r===H.DESKTOP&&(h=e.createElement(Oe,{colsNumber:n,gap:"xl"},t.slice(0,c).map(((t,r)=>e.createElement(St,{key:t.title,...t,className:`card-item-${r+1}`,cardTitleProps:{as:"h2",...t.cardTitleProps},cardHeaderProps:Nr(t.cardHeaderProps)}))))),e.createElement(Le,{...f},h,i&&e.createElement(qe,{justifyContent:"center",mt:"l"},e.createElement(ue,{variant:"secondary",...i}),l&&s&&e.createElement("noscript",null,e.createElement(Rt,{totalArticles:l,currentPage:u,pagePath:s,archivesUrl:"https://www.20minutes.fr/archives"}))))},Tr=async({url:e,options:t})=>{const r=t||{};r.headers=r.headers||new Headers,r.headers.append("Content-Type","application/json");return(await fetch(e,r).then((e=>{if(e.ok)return e;throw new Error(`Fetch error: ${e.statusText}`)})).then((e=>e.json()))).data},Ar=e=>e&&te.includes(e)?e:void 0;var Dr=(e=>(e.Article="Article",e.ExternalContent="ExternalContent",e.Live="Live",e.Page="Page",e.Story="Story",e))(Dr||{}),Lr=(e=>(e.bold="bold",e.community="community",e.default="default",e.faq="faq",e.important="important",e.very_important="very_important",e))(Lr||{}),Or=(e=>(e.closed="closed",e.open="open",e))(Or||{}),qr=(e=>(e.photo="photo",e.podcast="podcast",e.video="video",e))(qr||{});const Pr=e=>{const t=e=>`${e}`.padStart(2,"0");return`${t(Math.floor(e/60))}:${t(e-60*Math.floor(e/60))}`},Ir=e=>{const t=(e=>{if("undefined"==typeof window&&"undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf-8");return decodeURIComponent(escape(window?.atob(e)))})(e).split(":");return 2===t.length?t[1]:""},Mr=({medias:e,imgEndpoint:t})=>{let r="";return e?.forEach((e=>{if(!0===e?.illustration&&"photo"===e?.type&&e?.photo?.node?.id){const n=e.photo?.node?.slug?`%format_${e.photo?.node?.slug}`:"%format";r=`${t}/${Ir(e.photo.node.id)}/${n}`}})),r},Rr=({medias:e,picto:t})=>{let r;if(t)switch(t){case"video":{const t=e?.find((e=>e&&!0===e?.illustration&&e?.type===qr.video&&e[qr.video]?.duration))?.video?.duration;return{caption:{iconName:"video",text:t?Pr(Number(t)):""}}}case"podcast":return{caption:{iconName:"podcast"}};default:return r}else e?.forEach((e=>{if("podcast"===e?.type&&(r={caption:{iconName:"podcast"}}),"video"===e?.type){const t=e?.video?.duration?Number(e?.video?.duration):null;r={caption:{iconName:"video",text:t?Pr(t):""}}}}));return r},Fr=e=>null!=e,Br=t=>{const[r,n]=e.useState(t.defaultVariablesForQuery),[o,a]=e.useState(t.defaultArticles),[i,l]=e.useState(!1),s=e.useCallback((()=>{n((e=>({...e,offset:e.offset+e.limit}))),l(!0)}),[n,l]),u=async()=>{const{apiHost:e}=document.body.dataset,t=new Headers;window.envVariables?.apiAuthKey&&t.append("auth-key",window.envVariables.apiAuthKey);const o=[{url:`${e}/?id=getTagArticles&variables=${encodeURIComponent(JSON.stringify(r))}`,options:{headers:t}}];try{const e=await Tr(...o),t=(({pageEndpoint:e,imgEndpoint:t,data:r})=>Array.isArray(r)?[]:(r?.brand?.node?.tag?.node?.publishableContents?.edges||[])?.reduce(((r,n)=>{if(!n?.node?.title||!n?.node?.label||!n?.node?.url||!n?.node?.medias&&!n?.node?.photo?.node)return r;let o=n.node.medias?n.node.medias.filter(Fr):[];return"Story"===n?.node?.editorial_model&&n?.node?.photo?.node&&(o=[{type:qr.photo,illustration:!0,photo:n.node.photo,legend:n.node.photo.node?.caption}]),r.push({link:new URL(n.node.url,e).href,title:n.node.short_title||n.node.title,cardImageProps:{cover:Mr({medias:o,imgEndpoint:t}),...Rr({medias:o,picto:n?.node?.picto})},cardHeaderProps:{headline:{text:n.node.label,color:Ar(n?.node?.rubric?.node?.theme)},rightSubheader:{text:n.node.published_at||""}},cardTitleProps:{cartridge:"Live"===n?.node?.editorial_model?"live":void 0},socialBarProps:{disableComment:!n.node.enable_comments,commentCount:n.node.comments_count??0,shareCount:n.node.facebook_count??0,saveContentId:n.node?.legacy_id?.toString()}}),r}),[]))({pageEndpoint:window.envVariables.pageEndpoint,imgEndpoint:window.envVariables.imgEndpoint,data:e});a((e=>[...e,...t])),I(),t.length<r.limit&&n((e=>({...e,hasNextPage:!1})))}catch(e){console.error("20mn> Error while loading articles:",e)}};return e.useEffect((()=>{i&&u()}),[i]),e.useEffect((()=>{i&&l(!1)}),[o]),e.useMemo((()=>({isLoading:i,articles:o,hasNextPage:r.hasNextPage,onLoadMore:s})),[o,i,r.hasNextPage,s])},zr=({isSSR:t=!0,layout:r,articles:n,variablesForQuery:o,seeMoreLink:a,currentPagePath:i,tagTotalArticles:l})=>{const{isLoading:s,articles:u,hasNextPage:c,onLoadMore:d}=Br({layout:r,defaultArticles:n,defaultVariablesForQuery:o});return e.useEffect((()=>{s||V()}),[s]),e.createElement(e.Fragment,null,e.createElement(Cr,{layout:r,articles:u,seeMoreLink:c?{...a,disabled:s,onClick:d}:void 0,currentPagePath:i,tagTotalArticles:l}),t&&e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.__staticHydrationData = { ...(window.__staticHydrationData || {}), ...${JSON.stringify({articleListBottomContainer:{layout:r,articles:u,variablesForQuery:o,seeMoreLink:a}})} };`}}))},jr={storageName:"20mnBreakingNews"},Ur=18e4,Vr=()=>{const[t,r]=e.useState(L(jr.storageName));e.useEffect((()=>{t&&localStorage.setItem(jr.storageName,JSON.stringify(t))}),[t]),e.useEffect((()=>{if(t&&!t.opened||t?.opened&&t?.time&&t.time+Ur>(new Date).getTime())return;const{apiHost:e,imgHost:n}=document.body.dataset,o=new Headers;window.envVariables?.apiAuthKey&&o.append("auth-key",window.envVariables.apiAuthKey);Tr(...[{url:`${e}/?id=getBreakingNews&variables=%7B%22brandId%22%3A%22QnJhbmQ6MjBtaW51dGVz%22%7D`,options:{headers:o}}]).then((e=>{const t=e?.brand?.node?.home?.node?.homeBreakingNews?.node,o=t?.content?.editorial_model?.toLowerCase(),a=t?.content?.[o]?.node;if(!a?.title||!a?.url_current)throw new Error("No data found...");let i;if(t?.with_photo&&a?.medias?.[0]?.photo?.node?.id){const e=atob(a.medias[0].photo.node.id).replace("Photo:","");i=`${n}/${e}/147x96_${a?.medias?.photo?.node?.slug??"media"}`}r({opened:!0,time:(new Date).getTime(),data:{description:t.custom_title??a.title,url:a.url_current,imageUrl:i}})})).catch((e=>{console.error("20mn> Error while loading the breaking news:",e)}))}),[]);return t?.opened&&t?.data?e.createElement(Ye,{title:"ALERTE INFO",description:t.data.description,cover:t.data.imageUrl,link:t?.data?.url?{href:t.data.url}:void 0,closeButton:{onClick:()=>{r((e=>({...e||{},opened:!1})))}}}):null},Hr=({articles:t,seeMoreLink:r,layout:n,...o})=>{const{variablesForQuery:a,...i}=o;return e.createElement(Le,{...i},e.createElement(Bt,{label:"Derniers articles",isUnderlined:!0,weight:"semi-bold",rubricColor:"direct",mb:"l"}),t.map(((r,o)=>{const a=`lastArticleKey${o}`,i=o===t.length-1;return e.createElement(e.Fragment,{key:a},e.createElement(Nt,{...r,cardTitleProps:{maxRows:n===H.MOBILE?void 0:3,...r.cardTitleProps}}),!i&&e.createElement(fe,{color:"grey-200",ml:"xxl",my:"s"}))})),r&&e.createElement(ue,{...r,mx:"auto",mt:"s"}))},Kr=new Intl.DateTimeFormat("fr",{timeStyle:"short",timeZone:"Europe/Paris"}),$r=t=>{const[r,n]=e.useState(t.defaultVariablesForQuery.endCursor),[o,a]=e.useState(t.defaultVariablesForQuery.hasNextPage),[i,l]=e.useState(t.defaultArticles),[s,u]=e.useState(!1),c=e.useCallback((()=>{u(!0)}),[u]),d=async()=>{const{apiHost:e}=document.body.dataset,o=new Headers;window.envVariables?.apiAuthKey&&o.append("auth-key",window.envVariables.apiAuthKey);const i=[{url:`${e}/?id=getLatestContentsCursor&variables=${encodeURIComponent(JSON.stringify({brandId:t.defaultVariablesForQuery.brandId,sourceExcluded:t.defaultVariablesForQuery.sourceExcluded,first:t.defaultVariablesForQuery.first,after:r}))}`,options:{headers:o}}];try{const e=await Tr(...i),t=(({layout:e,pageEndpoint:t,imgEndpoint:r,data:n})=>Array.isArray(n)?[]:(n?.brand?.node?.publishableContents?.edges||[])?.reduce(((n,o)=>{if(!(o?.node?.title&&o?.node?.label&&o?.node?.url&&o?.node?.published_at&&(o?.node?.medias||o?.node?.photo?.node)))return n;let a=o.node.medias??[];return"Story"===o?.node?.editorial_model&&o?.node?.photo?.node&&(a=[{type:qr.photo,illustration:!0,photo:o.node.photo,legend:o.node.photo.node?.caption}]),n.push({link:new URL(o.node.url,t).href,title:o.node.short_title||o.node.title,cardImageProps:{cover:Mr({medias:a,imgEndpoint:r}),...Rr({medias:a,picto:o?.node?.picto})},socialBarProps:{commentCount:o.node.comments_count??0,shareCount:(o.node.facebook_count??0)+(o.node.pinterest_count??0),saveContentId:o.node?.legacy_id?.toString(),variant:"horizontal"},cardHeaderProps:{headline:{text:o.node.label,color:Ar(o?.node?.rubric?.node?.theme)},liveTime:Kr.format(new Date(o.node.published_at).getTime()).replace(":","H")},cardTitleProps:{cartridge:"Live"===o?.node?.editorial_model?"live":void 0},summaryProps:{children:o?.node?.lead??""},layout:e}),n}),[]))({layout:window.layout,pageEndpoint:window.envVariables.pageEndpoint,imgEndpoint:window.envVariables.imgEndpoint,data:e});l((e=>[...e,...t])),n(e?.brand?.node?.publishableContents?.pageInfo?.endCursor??null),a(e?.brand?.node?.publishableContents?.pageInfo?.hasNextPage??!1)}catch(e){console.error("20mn> Error while loading articles:",e)}};return e.useEffect((()=>{s&&d()}),[s]),e.useEffect((()=>{s&&u(!1)}),[i]),e.useMemo((()=>({isLoading:s,articles:i,hasNextPage:o,onLoadMore:c})),[i,s,o,c])},Gr=({isSSR:t=!0,layout:r,articles:n,variablesForQuery:o,seeMoreLink:a})=>{const{isLoading:i,articles:l,hasNextPage:s,onLoadMore:u}=$r({defaultArticles:n,defaultVariablesForQuery:o});return e.createElement(e.Fragment,null,e.createElement(Hr,{layout:r,articles:l,seeMoreLink:s?{...a,disabled:i,onClick:u}:void 0}),t&&e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.__staticHydrationData = { ...(window.__staticHydrationData || {}), ...${JSON.stringify({latestArticlesContainer:{layout:r,articles:l,variablesForQuery:o,seeMoreLink:a}})} };`}}))};var Wr=function(e,t,r,n,o,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,a,i,l],c=0;(s=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}},Qr=br(Wr),Jr={},Yr={},Zr=e;function Xr(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var en=Object.prototype.hasOwnProperty,tn=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rn={},nn={};function on(e){return!!en.call(nn,e)||!en.call(rn,e)&&(tn.test(e)?nn[e]=!0:(rn[e]=!0,!1))}function an(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ln[e]=new an(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ln[t]=new an(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ln[e]=new an(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ln[e]=new an(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ln[e]=new an(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ln[e]=new an(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ln[e]=new an(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ln[e]=new an(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ln[e]=new an(e,5,!1,e.toLowerCase(),null,!1,!1)}));var sn=/[\-:]([a-z])/g;function un(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(sn,un);ln[t]=new an(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(sn,un);ln[t]=new an(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(sn,un);ln[t]=new an(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ln[e]=new an(e,1,!1,e.toLowerCase(),null,!1,!1)})),ln.xlinkHref=new an("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ln[e]=new an(e,1,!1,e.toLowerCase(),null,!0,!0)}));var cn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dn=["Webkit","ms","Moz","O"];Object.keys(cn).forEach((function(e){dn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cn[t]=cn[e]}))}));var fn=/["'&<>]/;function pn(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=fn.exec(e);if(t){var r,n="",o=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==r&&(n+=e.substring(o,r)),o=r+1,n+=t}e=o!==r?n+e.substring(o,r):n}return e}var hn=/([A-Z])/g,mn=/^ms-/,gn=Array.isArray;function vn(e,t){return{insertionMode:e,selectedValue:t}}var bn=new Map;function yn(e,t,r){if("object"!=typeof r)throw Error(Xr(62));for(var n in t=!0,r)if(en.call(r,n)){var o=r[n];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===n.indexOf("--")){var a=pn(n);o=pn((""+o).trim())}else{a=n;var i=bn.get(a);void 0!==i||(i=pn(a.replace(hn,"-$1").toLowerCase().replace(mn,"-ms-")),bn.set(a,i)),a=i,o="number"==typeof o?0===o||en.call(cn,n)?""+o:o+"px":pn((""+o).trim())}t?(t=!1,e.push(' style="',a,":",o)):e.push(";",a,":",o)}}t||e.push('"')}function wn(e,t,r,n){switch(r){case"style":return void yn(e,t,n);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||"o"!==r[0]&&"O"!==r[0]||"n"!==r[1]&&"N"!==r[1])if(null!==(t=ln.hasOwnProperty(r)?ln[r]:null)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=t.attributeName,t.type){case 3:n&&e.push(" ",r,'=""');break;case 4:!0===n?e.push(" ",r,'=""'):!1!==n&&e.push(" ",r,'="',pn(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',pn(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',pn(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',pn(n),'"')}}else if(on(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if("data-"!==(t=r.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",r,'="',pn(n),'"')}}function _n(e,t,r){if(null!=t){if(null!=r)throw Error(Xr(60));if("object"!=typeof t||!("__html"in t))throw Error(Xr(61));null!=(t=t.__html)&&e.push(""+t)}}function Sn(e,t,r,n){e.push(kn(r));var o,a=r=null;for(o in t)if(en.call(t,o)){var i=t[o];if(null!=i)switch(o){case"children":r=i;break;case"dangerouslySetInnerHTML":a=i;break;default:wn(e,n,o,i)}}return e.push(">"),_n(e,a,r),"string"==typeof r?(e.push(pn(r)),null):r}var xn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,En=new Map;function kn(e){var t=En.get(e);if(void 0===t){if(!xn.test(e))throw Error(Xr(65,e));t="<"+e,En.set(e,t)}return t}function Nn(e,t,r,n,o){switch(t){case"select":e.push(kn("select"));var a=null,i=null;for(c in r)if(en.call(r,c)){var l=r[c];if(null!=l)switch(c){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;case"defaultValue":case"value":break;default:wn(e,n,c,l)}}return e.push(">"),_n(e,i,a),a;case"option":i=o.selectedValue,e.push(kn("option"));var s=l=null,u=null,c=null;for(a in r)if(en.call(r,a)){var d=r[a];if(null!=d)switch(a){case"children":l=d;break;case"selected":u=d;break;case"dangerouslySetInnerHTML":c=d;break;case"value":s=d;default:wn(e,n,a,d)}}if(null!=i)if(r=null!==s?""+s:function(e){var t="";return Zr.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(l),gn(i)){for(n=0;n<i.length;n++)if(""+i[n]===r){e.push(' selected=""');break}}else""+i===r&&e.push(' selected=""');else u&&e.push(' selected=""');return e.push(">"),_n(e,c,l),l;case"textarea":for(l in e.push(kn("textarea")),c=i=a=null,r)if(en.call(r,l)&&null!=(s=r[l]))switch(l){case"children":c=s;break;case"value":a=s;break;case"defaultValue":i=s;break;case"dangerouslySetInnerHTML":throw Error(Xr(91));default:wn(e,n,l,s)}if(null===a&&null!==i&&(a=i),e.push(">"),null!=c){if(null!=a)throw Error(Xr(92));if(gn(c)&&1<c.length)throw Error(Xr(93));a=""+c}return"string"==typeof a&&"\n"===a[0]&&e.push("\n"),null!==a&&e.push(pn(""+a)),null;case"input":for(i in e.push(kn("input")),s=c=l=a=null,r)if(en.call(r,i)&&null!=(u=r[i]))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(Xr(399,"input"));case"defaultChecked":s=u;break;case"defaultValue":l=u;break;case"checked":c=u;break;case"value":a=u;break;default:wn(e,n,i,u)}return null!==c?wn(e,n,"checked",c):null!==s&&wn(e,n,"checked",s),null!==a?wn(e,n,"value",a):null!==l&&wn(e,n,"value",l),e.push("/>"),null;case"menuitem":for(var f in e.push(kn("menuitem")),r)if(en.call(r,f)&&null!=(a=r[f]))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(Xr(400));default:wn(e,n,f,a)}return e.push(">"),null;case"title":for(d in e.push(kn("title")),a=null,r)if(en.call(r,d)&&null!=(i=r[d]))switch(d){case"children":a=i;break;case"dangerouslySetInnerHTML":throw Error(Xr(434));default:wn(e,n,d,i)}return e.push(">"),a;case"listing":case"pre":for(s in e.push(kn(t)),i=a=null,r)if(en.call(r,s)&&null!=(l=r[s]))switch(s){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;default:wn(e,n,s,l)}if(e.push(">"),null!=i){if(null!=a)throw Error(Xr(60));if("object"!=typeof i||!("__html"in i))throw Error(Xr(61));null!=(r=i.__html)&&("string"==typeof r&&0<r.length&&"\n"===r[0]?e.push("\n",r):e.push(""+r))}return"string"==typeof a&&"\n"===a[0]&&e.push("\n"),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var p in e.push(kn(t)),r)if(en.call(r,p)&&null!=(a=r[p]))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(Xr(399,t));default:wn(e,n,p,a)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Sn(e,r,t,n);case"html":return 0===o.insertionMode&&e.push("<!DOCTYPE html>"),Sn(e,r,t,n);default:if(-1===t.indexOf("-")&&"string"!=typeof r.is)return Sn(e,r,t,n);for(u in e.push(kn(t)),i=a=null,r)if(en.call(r,u)&&null!=(l=r[u]))switch(u){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;case"style":yn(e,n,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:on(u)&&"function"!=typeof l&&"symbol"!=typeof l&&e.push(" ",u,'="',pn(l),'"')}return e.push(">"),_n(e,i,a),a}}function Cn(e,t,r){if(e.push('\x3c!--$?--\x3e<template id="'),null===r)throw Error(Xr(395));return e.push(r),e.push('"></template>')}var Tn=/[<\u2028\u2029]/g;function An(e){return JSON.stringify(e).replace(Tn,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function Dn(e,t,r,n){return r.generateStaticMarkup?(e.push(pn(t)),!1):(""===t?e=n:(n&&e.push("\x3c!-- --\x3e"),e.push(pn(t)),e=!0),e)}var Ln=Object.assign,On=Symbol.for("react.element"),qn=Symbol.for("react.portal"),Pn=Symbol.for("react.fragment"),In=Symbol.for("react.strict_mode"),Mn=Symbol.for("react.profiler"),Rn=Symbol.for("react.provider"),Fn=Symbol.for("react.context"),Bn=Symbol.for("react.forward_ref"),zn=Symbol.for("react.suspense"),jn=Symbol.for("react.suspense_list"),Un=Symbol.for("react.memo"),Vn=Symbol.for("react.lazy"),Hn=Symbol.for("react.scope"),Kn=Symbol.for("react.debug_trace_mode"),$n=Symbol.for("react.legacy_hidden"),Gn=Symbol.for("react.default_value"),Wn=Symbol.iterator;function Qn(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Pn:return"Fragment";case qn:return"Portal";case Mn:return"Profiler";case In:return"StrictMode";case zn:return"Suspense";case jn:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Fn:return(e.displayName||"Context")+".Consumer";case Rn:return(e._context.displayName||"Context")+".Provider";case Bn:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Un:return null!==(t=e.displayName||null)?t:Qn(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Qn(e(t))}catch(e){}}return null}var Jn={};function Yn(e,t){if(!(e=e.contextTypes))return Jn;var r,n={};for(r in e)n[r]=t[r];return n}var Zn=null;function Xn(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(null===e){if(null!==r)throw Error(Xr(401))}else{if(null===r)throw Error(Xr(401));Xn(e,r)}t.context._currentValue2=t.value}}function eo(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&eo(e)}function to(e){var t=e.parent;null!==t&&to(t),e.context._currentValue2=e.value}function ro(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(Xr(402));e.depth===t.depth?Xn(e,t):ro(e,t)}function no(e,t){var r=t.parent;if(null===r)throw Error(Xr(402));e.depth===r.depth?Xn(e,r):no(e,r),t.context._currentValue2=t.value}function oo(e){var t=Zn;t!==e&&(null===t?to(e):null===e?eo(t):t.depth===e.depth?Xn(t,e):t.depth>e.depth?ro(t,e):no(t,e),Zn=e)}var ao={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function io(e,t,r,n){var o=void 0!==e.state?e.state:null;e.updater=ao,e.props=r,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue2:n,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(r,o))?o:Ln({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ao.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var l=t[i];null!=(l="function"==typeof l?l.call(e,a,r,n):l)&&(o?(o=!1,a=Ln({},a,l)):Ln(a,l))}e.state=a}else a.queue=null}var lo={id:1,overflow:""};function so(e,t,r){var n=e.id;e=e.overflow;var o=32-uo(n)-1;n&=~(1<<o),r+=1;var a=32-uo(t)+o;if(30<a){var i=o-o%5;return a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,{id:1<<32-uo(t)+o|r<<o|n,overflow:a+e}}return{id:1<<a|r<<o|n,overflow:e}}var uo=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(co(e)/fo|0)|0},co=Math.log,fo=Math.LN2;var po="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ho=null,mo=null,go=null,vo=null,bo=!1,yo=!1,wo=0,_o=null,So=0;function xo(){if(null===ho)throw Error(Xr(321));return ho}function Eo(){if(0<So)throw Error(Xr(312));return{memoizedState:null,queue:null,next:null}}function ko(){return null===vo?null===go?(bo=!1,go=vo=Eo()):(bo=!0,vo=go):null===vo.next?(bo=!1,vo=vo.next=Eo()):(bo=!0,vo=vo.next),vo}function No(){mo=ho=null,yo=!1,go=null,So=0,vo=_o=null}function Co(e,t){return"function"==typeof t?t(e):t}function To(e,t,r){if(ho=xo(),vo=ko(),bo){var n=vo.queue;if(t=n.dispatch,null!==_o&&void 0!==(r=_o.get(n))){_o.delete(n),n=vo.memoizedState;do{n=e(n,r.action),r=r.next}while(null!==r);return vo.memoizedState=n,[n,t]}return[vo.memoizedState,t]}return e=e===Co?"function"==typeof t?t():t:void 0!==r?r(t):t,vo.memoizedState=e,e=(e=vo.queue={last:null,dispatch:null}).dispatch=Do.bind(null,ho,e),[vo.memoizedState,e]}function Ao(e,t){if(ho=xo(),t=void 0===t?null:t,null!==(vo=ko())){var r=vo.memoizedState;if(null!==r&&null!==t){var n=r[1];e:if(null===n)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!po(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),vo.memoizedState=[e,t],e}function Do(e,t,r){if(25<=So)throw Error(Xr(301));if(e===ho)if(yo=!0,e={action:r,next:null},null===_o&&(_o=new Map),void 0===(r=_o.get(t)))_o.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function Lo(){throw Error(Xr(394))}function Oo(){}var qo={readContext:function(e){return e._currentValue2},useContext:function(e){return xo(),e._currentValue2},useMemo:Ao,useReducer:To,useRef:function(e){ho=xo();var t=(vo=ko()).memoizedState;return null===t?(e={current:e},vo.memoizedState=e):t},useState:function(e){return To(Co,e)},useInsertionEffect:Oo,useLayoutEffect:function(){},useCallback:function(e,t){return Ao((function(){return e}),t)},useImperativeHandle:Oo,useEffect:Oo,useDebugValue:Oo,useDeferredValue:function(e){return xo(),e},useTransition:function(){return xo(),[!1,Lo]},useId:function(){var e=mo.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-uo(e)-1)).toString(32)+t;var r=Po;if(null===r)throw Error(Xr(404));return t=wo++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return xo(),t(e._source)},useSyncExternalStore:function(e,t,r){if(void 0===r)throw Error(Xr(407));return r()}},Po=null,Io=Zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Mo(e){return console.error(e),null}function Ro(){}function Fo(e,t,r,n,o,a,i,l){e.allPendingTasks++,null===r?e.pendingRootTasks++:r.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&Xo(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:a,context:i,treeContext:l};return o.add(s),s}function Bo(e,t,r,n,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:a}}function zo(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function jo(e,t){var r=e.onShellError;r(t),(r=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Uo(e,t,r,n,o){for(ho={},mo=t,wo=0,e=r(n,o);yo;)yo=!1,wo=0,So+=1,vo=null,e=r(n,o);return No(),e}function Vo(e,t,r,n){var o=r.render(),a=n.childContextTypes;if(null!=a){var i=t.legacyContext;if("function"!=typeof r.getChildContext)n=i;else{for(var l in r=r.getChildContext())if(!(l in a))throw Error(Xr(108,Qn(n)||"Unknown",l));n=Ln({},i,r)}t.legacyContext=n,$o(e,t,o),t.legacyContext=i}else $o(e,t,o)}function Ho(e,t){if(e&&e.defaultProps){for(var r in t=Ln({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function Ko(e,t,r,n,o){if("function"==typeof r)if(r.prototype&&r.prototype.isReactComponent){o=Yn(r,t.legacyContext);var a=r.contextType;io(a=new r(n,"object"==typeof a&&null!==a?a._currentValue2:o),r,n,o),Vo(e,t,a,r)}else{o=Uo(e,t,r,n,a=Yn(r,t.legacyContext));var i=0!==wo;if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof)io(o,r,n,a),Vo(e,t,o,r);else if(i){n=t.treeContext,t.treeContext=so(n,1,0);try{$o(e,t,o)}finally{t.treeContext=n}}else $o(e,t,o)}else{if("string"!=typeof r){switch(r){case $n:case Kn:case In:case Mn:case Pn:case jn:return void $o(e,t,n.children);case Hn:throw Error(Xr(343));case zn:e:{r=t.blockedBoundary,o=t.blockedSegment,a=n.fallback,n=n.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:i=new Set,errorDigest:null},s=Bo(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(s),o.lastPushedText=!1;var u=Bo(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(Wo(e,t,n),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,Yo(l,u),0===l.pendingTasks)break e}catch(t){u.status=4,l.forceClientRender=!0,l.errorDigest=zo(e,t)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=Fo(e,a,r,s,i,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof r&&null!==r)switch(r.$$typeof){case Bn:if(n=Uo(e,t,r.render,n,o),0!==wo){r=t.treeContext,t.treeContext=so(r,1,0);try{$o(e,t,n)}finally{t.treeContext=r}}else $o(e,t,n);return;case Un:return void Ko(e,t,r=r.type,n=Ho(r,n),o);case Rn:if(o=n.children,r=r._context,n=n.value,a=r._currentValue2,r._currentValue2=n,Zn=n={parent:i=Zn,depth:null===i?0:i.depth+1,context:r,parentValue:a,value:n},t.context=n,$o(e,t,o),null===(e=Zn))throw Error(Xr(403));return n=e.parentValue,e.context._currentValue2=n===Gn?e.context._defaultValue:n,e=Zn=e.parent,void(t.context=e);case Fn:return void $o(e,t,n=(n=n.children)(r._currentValue2));case Vn:return void Ko(e,t,r=(o=r._init)(r._payload),n=Ho(r,n),void 0)}throw Error(Xr(130,null==r?r:typeof r,""))}switch(a=Nn((o=t.blockedSegment).chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,i=o.formatContext,o.formatContext=function(e,t,r){switch(t){case"select":return vn(1,null!=r.value?r.value:r.defaultValue);case"svg":return vn(2,null);case"math":return vn(3,null);case"foreignObject":return vn(1,null);case"table":return vn(4,null);case"thead":case"tbody":case"tfoot":return vn(5,null);case"colgroup":return vn(7,null);case"tr":return vn(6,null)}return 4<=e.insertionMode||0===e.insertionMode?vn(1,null):e}(i,r,n),Wo(e,t,a),o.formatContext=i,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",r,">")}o.lastPushedText=!1}}function $o(e,t,r){if(t.node=r,"object"==typeof r&&null!==r){switch(r.$$typeof){case On:return void Ko(e,t,r.type,r.props,r.ref);case qn:throw Error(Xr(257));case Vn:var n=r._init;return void $o(e,t,r=n(r._payload))}if(gn(r))return void Go(e,t,r);if(null===r||"object"!=typeof r?n=null:n="function"==typeof(n=Wn&&r[Wn]||r["@@iterator"])?n:null,n&&(n=n.call(r))){if(!(r=n.next()).done){var o=[];do{o.push(r.value),r=n.next()}while(!r.done);Go(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(Xr(31,"[object Object]"===e?"object with keys {"+Object.keys(r).join(", ")+"}":e))}"string"==typeof r?(n=t.blockedSegment).lastPushedText=Dn(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText):"number"==typeof r&&((n=t.blockedSegment).lastPushedText=Dn(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function Go(e,t,r){for(var n=r.length,o=0;o<n;o++){var a=t.treeContext;t.treeContext=so(a,n,o);try{Wo(e,t,r[o])}finally{t.treeContext=a}}}function Wo(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return $o(e,t,r)}catch(s){if(No(),"object"!=typeof s||null===s||"function"!=typeof s.then)throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=a,oo(a),s;r=s;var i=t.blockedSegment,l=Bo(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(l),i.lastPushedText=!1,e=Fo(e,t.node,t.blockedBoundary,l,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=a,oo(a)}}function Qo(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Zo(this,t,e)}function Jo(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,null===n?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=void 0===r?Error(Xr(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach((function(e){return Jo(e,t,r)})),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(n=t.onAllReady)())}function Yo(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,1===r.status&&Yo(e,r)}else e.completedSegments.push(t)}function Zo(e,t,r){if(null===t){if(r.parentFlushed){if(null!==e.completedRootSegment)throw Error(Xr(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Ro,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(r.parentFlushed&&1===r.status&&Yo(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Qo,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&1===r.status&&(Yo(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Xo(e){if(2!==e.status){var t=Zn,r=Io.current;Io.current=qo;var n=Po;Po=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],l=e,s=i.blockedSegment;if(0===s.status){oo(i.context);try{$o(l,i,i.node),l.responseState.generateStaticMarkup||s.lastPushedText&&s.textEmbedded&&s.chunks.push("\x3c!-- --\x3e"),i.abortSet.delete(i),s.status=1,Zo(l,i.blockedBoundary,s)}catch(e){if(No(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var u=i.ping;e.then(u,u)}else{i.abortSet.delete(i),s.status=4;var c=i.blockedBoundary,d=e,f=zo(l,d);if(null===c?jo(l,d):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=f,c.parentFlushed&&l.clientRenderedBoundaries.push(c))),l.allPendingTasks--,0===l.allPendingTasks)(0,l.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&aa(e,e.destination)}catch(t){zo(e,t),jo(e,t)}finally{Po=n,Io.current=r,r===qo&&oo(t)}}}function ea(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=n.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var o=!0;n=r.chunks;var a=0;r=r.children;for(var i=0;i<r.length;i++){for(o=r[i];a<o.index;a++)t.push(n[a]);o=ta(e,t,o)}for(;a<n.length-1;a++)t.push(n[a]);return a<n.length&&(o=t.push(n[a])),o;default:throw Error(Xr(390))}}function ta(e,t,r){var n=r.boundary;if(null===n)return ea(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)return e.responseState.generateStaticMarkup||(n=n.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),n&&(t.push(' data-dgst="'),n=pn(n),t.push(n),t.push('"')),t.push("></template>")),ea(e,t,r),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,a=o.nextSuspenseID++;return o=o.boundaryPrefix+a.toString(16),n=n.id=o,Cn(t,e.responseState,n),ea(e,t,r),t.push("\x3c!--/$--\x3e")}if(n.byteSize>e.progressiveChunkSize)return n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),Cn(t,e.responseState,n.id),ea(e,t,r),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(r=n.completedSegments).length)throw Error(Xr(391));return ta(e,t,r[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ra(e,t,r){return function(e,t,r,n){switch(r.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');default:throw Error(Xr(397))}}(t,e.responseState,r.formatContext,r.id),ta(e,t,r),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(Xr(397))}}(t,r.formatContext)}function na(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)oa(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===n)throw Error(Xr(395));return r=r.toString(16),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(r),t.push('")<\/script>')}function oa(e,t,r,n){if(2===n.status)return!0;var o=n.id;if(-1===o){if(-1===(n.id=r.rootSegmentID))throw Error(Xr(392));return ra(e,t,n)}return ra(e,t,n),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function aa(e,t){try{var r=e.completedRootSegment;if(null!==r&&0===e.pendingRootTasks){ta(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)t.push(n[r]);r<n.length&&t.push(n[r])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var i=a[o];n=t;var l=e.responseState,s=i.id,u=i.errorDigest,c=i.errorMessage,d=i.errorComponentStack;if(n.push(l.startInlineScript),l.sentClientRenderFunction?n.push('$RX("'):(l.sentClientRenderFunction=!0,n.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===s)throw Error(Xr(395));if(n.push(s),n.push('"'),u||c||d){n.push(",");var f=An(u||"");n.push(f)}if(c||d){n.push(",");var p=An(c||"");n.push(p)}if(d){n.push(",");var h=An(d);n.push(h)}if(!n.push(")<\/script>"))return e.destination=null,o++,void a.splice(0,o)}a.splice(0,o);var m=e.completedBoundaries;for(o=0;o<m.length;o++)if(!na(e,t,m[o]))return e.destination=null,o++,void m.splice(0,o);m.splice(0,o);var g=e.partialBoundaries;for(o=0;o<g.length;o++){var v=g[o];e:{a=e,i=t;var b=v.completedSegments;for(l=0;l<b.length;l++)if(!oa(a,i,v,b[l])){l++,b.splice(0,l);var y=!1;break e}b.splice(0,l),y=!0}if(!y)return e.destination=null,o++,void g.splice(0,o)}g.splice(0,o);var w=e.completedBoundaries;for(o=0;o<w.length;o++)if(!na(e,t,w[o]))return e.destination=null,o++,void w.splice(0,o);w.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ia(e,t){try{var r=e.abortableTasks;r.forEach((function(r){return Jo(r,e,t)})),r.clear(),null!==e.destination&&aa(e,e.destination)}catch(t){zo(e,t),jo(e,t)}}function la(){}function sa(e,t,r,n){var o=!1,a=null,i="",l={push:function(e){return null!==e&&(i+=e),!0},destroy:function(e){o=!0,a=e}},s=!1;if(e=function(e,t,r,n,o,a,i,l,s){var u=[],c=new Set;return(r=Bo(t={destination:null,responseState:t,progressiveChunkSize:void 0===n?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?Mo:o,onAllReady:void 0===a?Ro:a,onShellReady:void 0===i?Ro:i,onShellError:void 0===l?Ro:l,onFatalError:void 0===s?Ro:s},0,null,r,!1,!1)).parentFlushed=!0,e=Fo(t,e,null,r,c,Jn,null,lo),u.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,la,void 0,(function(){s=!0}),void 0,void 0),Xo(e),ia(e,n),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{aa(e,l)}catch(t){zo(e,t),jo(e,t)}}if(o)throw a;if(!s)throw Error(Xr(426));return i}Yr.renderToNodeStream=function(){throw Error(Xr(207))},Yr.renderToStaticMarkup=function(e,t){return sa(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Yr.renderToStaticNodeStream=function(){throw Error(Xr(208))},Yr.renderToString=function(e,t){return sa(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Yr.version="18.2.0";var ua={},ca=e;
|
|
11
|
+
*/wr=_r,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=n(e,r(o)))}return e}function r(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var o="";for(var a in r)e.call(r,a)&&r[a]&&(o=n(o,a));return o}function n(e,t){return t?e?e+" "+t:e+t:e}wr.exports?(t.default=t,wr.exports=t):window.classNames=t}();var Sr=br(_r.exports);const xr=new Intl.RelativeTimeFormat("fr",{numeric:"auto"}),Er=new Intl.DateTimeFormat("fr",{year:"numeric",month:"short",day:"numeric",timeZone:"Europe/Paris"}),kr=e=>{const t=(new Date).getTime(),r=new Date(e).getTime(),n=(r-t)/6e4;let o=xr.format(Math.round(n),"minutes");return n<=-60&&(o=xr.format(Math.ceil(n/60),"hours"),n<=-1440&&(o=Er.format(r))),"cette minute-ci"===o?"à l'instant":o},Nr=e=>e?e.rightSubheader&&Boolean(new Date(e.rightSubheader?.text).getTime())?{...e,rightSubheader:{...e.rightSubheader,text:kr(e.rightSubheader.text)}}:{...e}:e,Cr=({articles:t,layout:r,columnsNumber:n=2,hideFirstDivider:o=!1,dividerProps:a,seeMoreLink:i,tagTotalArticles:l,currentPagePath:s,currentPage:u="1",articlesLimit:c,hasCardLarge:d=!1,...f})=>{const p=t=>e.createElement(bt,{...t,cardTitleProps:{as:"h2",...t.cardTitleProps},cardHeaderProps:Nr(t.cardHeaderProps),mx:"m"});let h=e.createElement(e.Fragment,null,t.slice(0,c).map(((t,n)=>e.createElement(Le,{key:t.title,className:`card-item-${n+1}`},d?e.createElement(e.Fragment,null,0===n&&e.createElement(wt,{...t,layout:r}),n>0&&e.createElement(e.Fragment,null,e.createElement(fe,{color:"grey-200",my:"s",...a}),p({...t,layout:r}))):e.createElement(e.Fragment,null,e.createElement(fe,{color:"grey-200",my:"s",...a,className:Sr({"u-hidden":0===n&&o},a?.className)}),p({...t,layout:r}))))));return r===H.DESKTOP&&(h=e.createElement(Oe,{colsNumber:n,gap:"xl"},t.slice(0,c).map(((t,r)=>e.createElement(St,{key:t.title,...t,className:`card-item-${r+1}`,cardTitleProps:{as:"h2",...t.cardTitleProps},cardHeaderProps:Nr(t.cardHeaderProps)}))))),e.createElement(Le,{...f},h,i&&e.createElement(qe,{justifyContent:"center",mt:"l"},e.createElement(ue,{variant:"secondary",...i}),l&&s&&e.createElement("noscript",null,e.createElement(Rt,{totalArticles:l,currentPage:u,pagePath:s,archivesUrl:"https://www.20minutes.fr/archives"}))))},Tr=async({url:e,options:t})=>{const r=t||{};r.headers=r.headers||new Headers,r.headers.append("Content-Type","application/json");return(await fetch(e,r).then((e=>{if(e.ok)return e;throw new Error(`Fetch error: ${e.statusText}`)})).then((e=>e.json()))).data},Ar=e=>e&&te.includes(e)?e:void 0;var Dr=(e=>(e.Article="Article",e.ExternalContent="ExternalContent",e.Live="Live",e.Page="Page",e.Story="Story",e))(Dr||{}),Lr=(e=>(e.bold="bold",e.community="community",e.default="default",e.faq="faq",e.important="important",e.very_important="very_important",e))(Lr||{}),Or=(e=>(e.closed="closed",e.open="open",e))(Or||{}),qr=(e=>(e.photo="photo",e.podcast="podcast",e.video="video",e))(qr||{});const Pr=e=>{const t=e=>`${e}`.padStart(2,"0");return`${t(Math.floor(e/60))}:${t(e-60*Math.floor(e/60))}`},Ir=e=>{const t=(e=>{if("undefined"==typeof window&&"undefined"!=typeof Buffer)return Buffer.from(e,"base64").toString("utf-8");return decodeURIComponent(escape(window?.atob(e)))})(e).split(":");return 2===t.length?t[1]:""},Mr=({medias:e,imgEndpoint:t})=>{let r="";return e?.forEach((e=>{if(!0===e?.illustration&&"photo"===e?.type&&e?.photo?.node?.id){const n=e.photo?.node?.slug?`%format_${e.photo?.node?.slug}`:"%format";r=`${t}/${Ir(e.photo.node.id)}/${n}`}})),r},Rr=({medias:e,picto:t})=>{let r;if(t)switch(t){case"video":{const t=e?.find((e=>e&&!0===e?.illustration&&e?.type===qr.video&&e[qr.video]?.duration))?.video?.duration;return{caption:{iconName:"video",text:t?Pr(Number(t)):""}}}case"podcast":return{caption:{iconName:"podcast"}};default:return r}else e?.forEach((e=>{if("podcast"===e?.type&&(r={caption:{iconName:"podcast"}}),"video"===e?.type){const t=e?.video?.duration?Number(e?.video?.duration):null;r={caption:{iconName:"video",text:t?Pr(t):""}}}}));return r},Fr=e=>null!=e,Br=t=>{const[r,n]=e.useState(t.defaultVariablesForQuery),[o,a]=e.useState(t.defaultArticles),[i,l]=e.useState(!1),s=e.useCallback((()=>{n((e=>({...e,offset:e.offset+e.limit}))),l(!0)}),[n,l]),u=async()=>{const{apiHost:e}=document.body.dataset,t=new Headers;window.envVariables?.apiAuthKey&&t.append("auth-key",window.envVariables.apiAuthKey);const o=[{url:`${e}/?id=getTagArticles&variables=${encodeURIComponent(JSON.stringify(r))}`,options:{headers:t}}];try{const e=await Tr(...o),t=(({pageEndpoint:e,imgEndpoint:t,data:r})=>Array.isArray(r)?[]:(r?.brand?.node?.tag?.node?.publishableContents?.edges||[])?.reduce(((r,n)=>{if(!n?.node?.title||!n?.node?.label||!n?.node?.url||!n?.node?.medias&&!n?.node?.photo?.node)return r;let o=n.node.medias?n.node.medias.filter(Fr):[];return"Story"===n?.node?.editorial_model&&n?.node?.photo?.node&&(o=[{type:qr.photo,illustration:!0,photo:n.node.photo,legend:n.node.photo.node?.caption}]),r.push({link:new URL(n.node.url,e).href,title:n.node.short_title||n.node.title,cardImageProps:{cover:Mr({medias:o,imgEndpoint:t}),...Rr({medias:o,picto:n?.node?.picto})},cardHeaderProps:{headline:{text:n.node.label,color:Ar(n?.node?.rubric?.node?.theme)},rightSubheader:{text:n.node.published_at||""}},cardTitleProps:{cartridge:"Live"===n?.node?.editorial_model?"live":void 0},socialBarProps:{disableComment:!n.node.enable_comments,commentCount:n.node.comments_count??0,shareCount:n.node.facebook_count??0,saveContentId:n.node?.legacy_id?.toString()}}),r}),[]))({pageEndpoint:window.envVariables.pageEndpoint,imgEndpoint:window.envVariables.imgEndpoint,data:e});a((e=>[...e,...t])),I(),t.length<r.limit&&n((e=>({...e,hasNextPage:!1})))}catch(e){console.error("20mn> Error while loading articles:",e)}};return e.useEffect((()=>{i&&u()}),[i]),e.useEffect((()=>{i&&l(!1)}),[o]),e.useMemo((()=>({isLoading:i,articles:o,hasNextPage:r.hasNextPage,onLoadMore:s})),[o,i,r.hasNextPage,s])},zr=({isSSR:t=!0,layout:r,articles:n,variablesForQuery:o,seeMoreLink:a,currentPagePath:i,tagTotalArticles:l})=>{const{isLoading:s,articles:u,hasNextPage:c,onLoadMore:d}=Br({layout:r,defaultArticles:n,defaultVariablesForQuery:o});return e.useEffect((()=>{s||V()}),[s]),e.createElement(e.Fragment,null,e.createElement(Cr,{layout:r,articles:u,seeMoreLink:c?{...a,disabled:s,onClick:d}:void 0,currentPagePath:i,tagTotalArticles:l}),t&&e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.__staticHydrationData = { ...(window.__staticHydrationData || {}), ...${JSON.stringify({articleListBottomContainer:{layout:r,articles:u,variablesForQuery:o,seeMoreLink:a}})} };`}}))},jr={storageName:"20mnBreakingNews"},Ur=18e4,Vr=()=>{const[t,r]=e.useState(L(jr.storageName));e.useEffect((()=>{t&&localStorage.setItem(jr.storageName,JSON.stringify(t))}),[t]),e.useEffect((()=>{if(t&&!t.opened||t?.opened&&t?.time&&t.time+Ur>(new Date).getTime())return;const{apiHost:e,imgHost:n}=document.body.dataset,o=new Headers;window.envVariables?.apiAuthKey&&o.append("auth-key",window.envVariables.apiAuthKey);Tr(...[{url:`${e}/?id=getBreakingNews&variables=%7B%22brandId%22%3A%22QnJhbmQ6MjBtaW51dGVz%22%7D`,options:{headers:o}}]).then((e=>{const t=e?.brand?.node?.home?.node?.homeBreakingNews?.node,o=t?.content?.editorial_model?.toLowerCase(),a=t?.content?.[o]?.node;if(!a?.title||!a?.url_current)return;let i;if(t?.with_photo&&a?.medias?.[0]?.photo?.node?.id){const e=atob(a.medias[0].photo.node.id).replace("Photo:","");i=`${n}/${e}/147x96_${a?.medias?.photo?.node?.slug??"media"}`}r({opened:!0,time:(new Date).getTime(),data:{description:t.custom_title??a.title,url:a.url_current,imageUrl:i}})})).catch((e=>{console.error("20mn> Error while loading the breaking news:",e)}))}),[]);return t?.opened&&t?.data?e.createElement(Ye,{title:"ALERTE INFO",description:t.data.description,cover:t.data.imageUrl,link:t?.data?.url?{href:t.data.url}:void 0,closeButton:{onClick:()=>{r((e=>({...e||{},opened:!1})))}}}):null},Hr=({articles:t,seeMoreLink:r,layout:n,...o})=>{const{variablesForQuery:a,...i}=o;return e.createElement(Le,{...i},e.createElement(Bt,{label:"Derniers articles",isUnderlined:!0,weight:"semi-bold",rubricColor:"direct",mb:"l"}),t.map(((r,o)=>{const a=`lastArticleKey${o}`,i=o===t.length-1;return e.createElement(e.Fragment,{key:a},e.createElement(Nt,{...r,cardTitleProps:{maxRows:n===H.MOBILE?void 0:3,...r.cardTitleProps}}),!i&&e.createElement(fe,{color:"grey-200",ml:"xxl",my:"s"}))})),r&&e.createElement(ue,{...r,mx:"auto",mt:"s"}))},Kr=new Intl.DateTimeFormat("fr",{timeStyle:"short",timeZone:"Europe/Paris"}),$r=t=>{const[r,n]=e.useState(t.defaultVariablesForQuery.endCursor),[o,a]=e.useState(t.defaultVariablesForQuery.hasNextPage),[i,l]=e.useState(t.defaultArticles),[s,u]=e.useState(!1),c=e.useCallback((()=>{u(!0)}),[u]),d=async()=>{const{apiHost:e}=document.body.dataset,o=new Headers;window.envVariables?.apiAuthKey&&o.append("auth-key",window.envVariables.apiAuthKey);const i=[{url:`${e}/?id=getLatestContentsCursor&variables=${encodeURIComponent(JSON.stringify({brandId:t.defaultVariablesForQuery.brandId,sourceExcluded:t.defaultVariablesForQuery.sourceExcluded,first:t.defaultVariablesForQuery.first,after:r}))}`,options:{headers:o}}];try{const e=await Tr(...i),t=(({layout:e,pageEndpoint:t,imgEndpoint:r,data:n})=>Array.isArray(n)?[]:(n?.brand?.node?.publishableContents?.edges||[])?.reduce(((n,o)=>{if(!(o?.node?.title&&o?.node?.label&&o?.node?.url&&o?.node?.published_at&&(o?.node?.medias||o?.node?.photo?.node)))return n;let a=o.node.medias??[];return"Story"===o?.node?.editorial_model&&o?.node?.photo?.node&&(a=[{type:qr.photo,illustration:!0,photo:o.node.photo,legend:o.node.photo.node?.caption}]),n.push({link:new URL(o.node.url,t).href,title:o.node.short_title||o.node.title,cardImageProps:{cover:Mr({medias:a,imgEndpoint:r}),...Rr({medias:a,picto:o?.node?.picto})},socialBarProps:{commentCount:o.node.comments_count??0,shareCount:(o.node.facebook_count??0)+(o.node.pinterest_count??0),saveContentId:o.node?.legacy_id?.toString(),variant:"horizontal"},cardHeaderProps:{headline:{text:o.node.label,color:Ar(o?.node?.rubric?.node?.theme)},liveTime:Kr.format(new Date(o.node.published_at).getTime()).replace(":","H")},cardTitleProps:{cartridge:"Live"===o?.node?.editorial_model?"live":void 0},summaryProps:{children:o?.node?.lead??""},layout:e}),n}),[]))({layout:window.layout,pageEndpoint:window.envVariables.pageEndpoint,imgEndpoint:window.envVariables.imgEndpoint,data:e});l((e=>[...e,...t])),n(e?.brand?.node?.publishableContents?.pageInfo?.endCursor??null),a(e?.brand?.node?.publishableContents?.pageInfo?.hasNextPage??!1)}catch(e){console.error("20mn> Error while loading articles:",e)}};return e.useEffect((()=>{s&&d()}),[s]),e.useEffect((()=>{s&&u(!1)}),[i]),e.useMemo((()=>({isLoading:s,articles:i,hasNextPage:o,onLoadMore:c})),[i,s,o,c])},Gr=({isSSR:t=!0,layout:r,articles:n,variablesForQuery:o,seeMoreLink:a})=>{const{isLoading:i,articles:l,hasNextPage:s,onLoadMore:u}=$r({defaultArticles:n,defaultVariablesForQuery:o});return e.createElement(e.Fragment,null,e.createElement(Hr,{layout:r,articles:l,seeMoreLink:s?{...a,disabled:i,onClick:u}:void 0}),t&&e.createElement("script",{dangerouslySetInnerHTML:{__html:`window.__staticHydrationData = { ...(window.__staticHydrationData || {}), ...${JSON.stringify({latestArticlesContainer:{layout:r,articles:l,variablesForQuery:o,seeMoreLink:a}})} };`}}))};var Wr=function(e,t,r,n,o,a,i,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,a,i,l],c=0;(s=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}},Qr=br(Wr),Jr={},Yr={},Zr=e;function Xr(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var en=Object.prototype.hasOwnProperty,tn=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rn={},nn={};function on(e){return!!en.call(nn,e)||!en.call(rn,e)&&(tn.test(e)?nn[e]=!0:(rn[e]=!0,!1))}function an(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var ln={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ln[e]=new an(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ln[t]=new an(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ln[e]=new an(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ln[e]=new an(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ln[e]=new an(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ln[e]=new an(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){ln[e]=new an(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){ln[e]=new an(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){ln[e]=new an(e,5,!1,e.toLowerCase(),null,!1,!1)}));var sn=/[\-:]([a-z])/g;function un(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(sn,un);ln[t]=new an(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(sn,un);ln[t]=new an(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(sn,un);ln[t]=new an(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){ln[e]=new an(e,1,!1,e.toLowerCase(),null,!1,!1)})),ln.xlinkHref=new an("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){ln[e]=new an(e,1,!1,e.toLowerCase(),null,!0,!0)}));var cn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dn=["Webkit","ms","Moz","O"];Object.keys(cn).forEach((function(e){dn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cn[t]=cn[e]}))}));var fn=/["'&<>]/;function pn(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=fn.exec(e);if(t){var r,n="",o=0;for(r=t.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==r&&(n+=e.substring(o,r)),o=r+1,n+=t}e=o!==r?n+e.substring(o,r):n}return e}var hn=/([A-Z])/g,mn=/^ms-/,gn=Array.isArray;function vn(e,t){return{insertionMode:e,selectedValue:t}}var bn=new Map;function yn(e,t,r){if("object"!=typeof r)throw Error(Xr(62));for(var n in t=!0,r)if(en.call(r,n)){var o=r[n];if(null!=o&&"boolean"!=typeof o&&""!==o){if(0===n.indexOf("--")){var a=pn(n);o=pn((""+o).trim())}else{a=n;var i=bn.get(a);void 0!==i||(i=pn(a.replace(hn,"-$1").toLowerCase().replace(mn,"-ms-")),bn.set(a,i)),a=i,o="number"==typeof o?0===o||en.call(cn,n)?""+o:o+"px":pn((""+o).trim())}t?(t=!1,e.push(' style="',a,":",o)):e.push(";",a,":",o)}}t||e.push('"')}function wn(e,t,r,n){switch(r){case"style":return void yn(e,t,n);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||"o"!==r[0]&&"O"!==r[0]||"n"!==r[1]&&"N"!==r[1])if(null!==(t=ln.hasOwnProperty(r)?ln[r]:null)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=t.attributeName,t.type){case 3:n&&e.push(" ",r,'=""');break;case 4:!0===n?e.push(" ",r,'=""'):!1!==n&&e.push(" ",r,'="',pn(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',pn(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',pn(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',pn(n),'"')}}else if(on(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if("data-"!==(t=r.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",r,'="',pn(n),'"')}}function _n(e,t,r){if(null!=t){if(null!=r)throw Error(Xr(60));if("object"!=typeof t||!("__html"in t))throw Error(Xr(61));null!=(t=t.__html)&&e.push(""+t)}}function Sn(e,t,r,n){e.push(kn(r));var o,a=r=null;for(o in t)if(en.call(t,o)){var i=t[o];if(null!=i)switch(o){case"children":r=i;break;case"dangerouslySetInnerHTML":a=i;break;default:wn(e,n,o,i)}}return e.push(">"),_n(e,a,r),"string"==typeof r?(e.push(pn(r)),null):r}var xn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,En=new Map;function kn(e){var t=En.get(e);if(void 0===t){if(!xn.test(e))throw Error(Xr(65,e));t="<"+e,En.set(e,t)}return t}function Nn(e,t,r,n,o){switch(t){case"select":e.push(kn("select"));var a=null,i=null;for(c in r)if(en.call(r,c)){var l=r[c];if(null!=l)switch(c){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;case"defaultValue":case"value":break;default:wn(e,n,c,l)}}return e.push(">"),_n(e,i,a),a;case"option":i=o.selectedValue,e.push(kn("option"));var s=l=null,u=null,c=null;for(a in r)if(en.call(r,a)){var d=r[a];if(null!=d)switch(a){case"children":l=d;break;case"selected":u=d;break;case"dangerouslySetInnerHTML":c=d;break;case"value":s=d;default:wn(e,n,a,d)}}if(null!=i)if(r=null!==s?""+s:function(e){var t="";return Zr.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(l),gn(i)){for(n=0;n<i.length;n++)if(""+i[n]===r){e.push(' selected=""');break}}else""+i===r&&e.push(' selected=""');else u&&e.push(' selected=""');return e.push(">"),_n(e,c,l),l;case"textarea":for(l in e.push(kn("textarea")),c=i=a=null,r)if(en.call(r,l)&&null!=(s=r[l]))switch(l){case"children":c=s;break;case"value":a=s;break;case"defaultValue":i=s;break;case"dangerouslySetInnerHTML":throw Error(Xr(91));default:wn(e,n,l,s)}if(null===a&&null!==i&&(a=i),e.push(">"),null!=c){if(null!=a)throw Error(Xr(92));if(gn(c)&&1<c.length)throw Error(Xr(93));a=""+c}return"string"==typeof a&&"\n"===a[0]&&e.push("\n"),null!==a&&e.push(pn(""+a)),null;case"input":for(i in e.push(kn("input")),s=c=l=a=null,r)if(en.call(r,i)&&null!=(u=r[i]))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(Xr(399,"input"));case"defaultChecked":s=u;break;case"defaultValue":l=u;break;case"checked":c=u;break;case"value":a=u;break;default:wn(e,n,i,u)}return null!==c?wn(e,n,"checked",c):null!==s&&wn(e,n,"checked",s),null!==a?wn(e,n,"value",a):null!==l&&wn(e,n,"value",l),e.push("/>"),null;case"menuitem":for(var f in e.push(kn("menuitem")),r)if(en.call(r,f)&&null!=(a=r[f]))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(Xr(400));default:wn(e,n,f,a)}return e.push(">"),null;case"title":for(d in e.push(kn("title")),a=null,r)if(en.call(r,d)&&null!=(i=r[d]))switch(d){case"children":a=i;break;case"dangerouslySetInnerHTML":throw Error(Xr(434));default:wn(e,n,d,i)}return e.push(">"),a;case"listing":case"pre":for(s in e.push(kn(t)),i=a=null,r)if(en.call(r,s)&&null!=(l=r[s]))switch(s){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;default:wn(e,n,s,l)}if(e.push(">"),null!=i){if(null!=a)throw Error(Xr(60));if("object"!=typeof i||!("__html"in i))throw Error(Xr(61));null!=(r=i.__html)&&("string"==typeof r&&0<r.length&&"\n"===r[0]?e.push("\n",r):e.push(""+r))}return"string"==typeof a&&"\n"===a[0]&&e.push("\n"),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var p in e.push(kn(t)),r)if(en.call(r,p)&&null!=(a=r[p]))switch(p){case"children":case"dangerouslySetInnerHTML":throw Error(Xr(399,t));default:wn(e,n,p,a)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Sn(e,r,t,n);case"html":return 0===o.insertionMode&&e.push("<!DOCTYPE html>"),Sn(e,r,t,n);default:if(-1===t.indexOf("-")&&"string"!=typeof r.is)return Sn(e,r,t,n);for(u in e.push(kn(t)),i=a=null,r)if(en.call(r,u)&&null!=(l=r[u]))switch(u){case"children":a=l;break;case"dangerouslySetInnerHTML":i=l;break;case"style":yn(e,n,l);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:on(u)&&"function"!=typeof l&&"symbol"!=typeof l&&e.push(" ",u,'="',pn(l),'"')}return e.push(">"),_n(e,i,a),a}}function Cn(e,t,r){if(e.push('\x3c!--$?--\x3e<template id="'),null===r)throw Error(Xr(395));return e.push(r),e.push('"></template>')}var Tn=/[<\u2028\u2029]/g;function An(e){return JSON.stringify(e).replace(Tn,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function Dn(e,t,r,n){return r.generateStaticMarkup?(e.push(pn(t)),!1):(""===t?e=n:(n&&e.push("\x3c!-- --\x3e"),e.push(pn(t)),e=!0),e)}var Ln=Object.assign,On=Symbol.for("react.element"),qn=Symbol.for("react.portal"),Pn=Symbol.for("react.fragment"),In=Symbol.for("react.strict_mode"),Mn=Symbol.for("react.profiler"),Rn=Symbol.for("react.provider"),Fn=Symbol.for("react.context"),Bn=Symbol.for("react.forward_ref"),zn=Symbol.for("react.suspense"),jn=Symbol.for("react.suspense_list"),Un=Symbol.for("react.memo"),Vn=Symbol.for("react.lazy"),Hn=Symbol.for("react.scope"),Kn=Symbol.for("react.debug_trace_mode"),$n=Symbol.for("react.legacy_hidden"),Gn=Symbol.for("react.default_value"),Wn=Symbol.iterator;function Qn(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Pn:return"Fragment";case qn:return"Portal";case Mn:return"Profiler";case In:return"StrictMode";case zn:return"Suspense";case jn:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Fn:return(e.displayName||"Context")+".Consumer";case Rn:return(e._context.displayName||"Context")+".Provider";case Bn:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Un:return null!==(t=e.displayName||null)?t:Qn(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Qn(e(t))}catch(e){}}return null}var Jn={};function Yn(e,t){if(!(e=e.contextTypes))return Jn;var r,n={};for(r in e)n[r]=t[r];return n}var Zn=null;function Xn(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(null===e){if(null!==r)throw Error(Xr(401))}else{if(null===r)throw Error(Xr(401));Xn(e,r)}t.context._currentValue2=t.value}}function eo(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&eo(e)}function to(e){var t=e.parent;null!==t&&to(t),e.context._currentValue2=e.value}function ro(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(Xr(402));e.depth===t.depth?Xn(e,t):ro(e,t)}function no(e,t){var r=t.parent;if(null===r)throw Error(Xr(402));e.depth===r.depth?Xn(e,r):no(e,r),t.context._currentValue2=t.value}function oo(e){var t=Zn;t!==e&&(null===t?to(e):null===e?eo(t):t.depth===e.depth?Xn(t,e):t.depth>e.depth?ro(t,e):no(t,e),Zn=e)}var ao={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function io(e,t,r,n){var o=void 0!==e.state?e.state:null;e.updater=ao,e.props=r,e.state=o;var a={queue:[],replace:!1};e._reactInternals=a;var i=t.contextType;if(e.context="object"==typeof i&&null!==i?i._currentValue2:n,"function"==typeof(i=t.getDerivedStateFromProps)&&(o=null==(i=i(r,o))?o:Ln({},o,i),e.state=o),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ao.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,i=a.replace,a.queue=null,a.replace=!1,i&&1===t.length)e.state=t[0];else{for(a=i?t[0]:e.state,o=!0,i=i?1:0;i<t.length;i++){var l=t[i];null!=(l="function"==typeof l?l.call(e,a,r,n):l)&&(o?(o=!1,a=Ln({},a,l)):Ln(a,l))}e.state=a}else a.queue=null}var lo={id:1,overflow:""};function so(e,t,r){var n=e.id;e=e.overflow;var o=32-uo(n)-1;n&=~(1<<o),r+=1;var a=32-uo(t)+o;if(30<a){var i=o-o%5;return a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,{id:1<<32-uo(t)+o|r<<o|n,overflow:a+e}}return{id:1<<a|r<<o|n,overflow:e}}var uo=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(co(e)/fo|0)|0},co=Math.log,fo=Math.LN2;var po="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ho=null,mo=null,go=null,vo=null,bo=!1,yo=!1,wo=0,_o=null,So=0;function xo(){if(null===ho)throw Error(Xr(321));return ho}function Eo(){if(0<So)throw Error(Xr(312));return{memoizedState:null,queue:null,next:null}}function ko(){return null===vo?null===go?(bo=!1,go=vo=Eo()):(bo=!0,vo=go):null===vo.next?(bo=!1,vo=vo.next=Eo()):(bo=!0,vo=vo.next),vo}function No(){mo=ho=null,yo=!1,go=null,So=0,vo=_o=null}function Co(e,t){return"function"==typeof t?t(e):t}function To(e,t,r){if(ho=xo(),vo=ko(),bo){var n=vo.queue;if(t=n.dispatch,null!==_o&&void 0!==(r=_o.get(n))){_o.delete(n),n=vo.memoizedState;do{n=e(n,r.action),r=r.next}while(null!==r);return vo.memoizedState=n,[n,t]}return[vo.memoizedState,t]}return e=e===Co?"function"==typeof t?t():t:void 0!==r?r(t):t,vo.memoizedState=e,e=(e=vo.queue={last:null,dispatch:null}).dispatch=Do.bind(null,ho,e),[vo.memoizedState,e]}function Ao(e,t){if(ho=xo(),t=void 0===t?null:t,null!==(vo=ko())){var r=vo.memoizedState;if(null!==r&&null!==t){var n=r[1];e:if(null===n)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!po(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),vo.memoizedState=[e,t],e}function Do(e,t,r){if(25<=So)throw Error(Xr(301));if(e===ho)if(yo=!0,e={action:r,next:null},null===_o&&(_o=new Map),void 0===(r=_o.get(t)))_o.set(t,e);else{for(t=r;null!==t.next;)t=t.next;t.next=e}}function Lo(){throw Error(Xr(394))}function Oo(){}var qo={readContext:function(e){return e._currentValue2},useContext:function(e){return xo(),e._currentValue2},useMemo:Ao,useReducer:To,useRef:function(e){ho=xo();var t=(vo=ko()).memoizedState;return null===t?(e={current:e},vo.memoizedState=e):t},useState:function(e){return To(Co,e)},useInsertionEffect:Oo,useLayoutEffect:function(){},useCallback:function(e,t){return Ao((function(){return e}),t)},useImperativeHandle:Oo,useEffect:Oo,useDebugValue:Oo,useDeferredValue:function(e){return xo(),e},useTransition:function(){return xo(),[!1,Lo]},useId:function(){var e=mo.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-uo(e)-1)).toString(32)+t;var r=Po;if(null===r)throw Error(Xr(404));return t=wo++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return xo(),t(e._source)},useSyncExternalStore:function(e,t,r){if(void 0===r)throw Error(Xr(407));return r()}},Po=null,Io=Zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Mo(e){return console.error(e),null}function Ro(){}function Fo(e,t,r,n,o,a,i,l){e.allPendingTasks++,null===r?e.pendingRootTasks++:r.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&Xo(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:a,context:i,treeContext:l};return o.add(s),s}function Bo(e,t,r,n,o,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:a}}function zo(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function jo(e,t){var r=e.onShellError;r(t),(r=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function Uo(e,t,r,n,o){for(ho={},mo=t,wo=0,e=r(n,o);yo;)yo=!1,wo=0,So+=1,vo=null,e=r(n,o);return No(),e}function Vo(e,t,r,n){var o=r.render(),a=n.childContextTypes;if(null!=a){var i=t.legacyContext;if("function"!=typeof r.getChildContext)n=i;else{for(var l in r=r.getChildContext())if(!(l in a))throw Error(Xr(108,Qn(n)||"Unknown",l));n=Ln({},i,r)}t.legacyContext=n,$o(e,t,o),t.legacyContext=i}else $o(e,t,o)}function Ho(e,t){if(e&&e.defaultProps){for(var r in t=Ln({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function Ko(e,t,r,n,o){if("function"==typeof r)if(r.prototype&&r.prototype.isReactComponent){o=Yn(r,t.legacyContext);var a=r.contextType;io(a=new r(n,"object"==typeof a&&null!==a?a._currentValue2:o),r,n,o),Vo(e,t,a,r)}else{o=Uo(e,t,r,n,a=Yn(r,t.legacyContext));var i=0!==wo;if("object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof)io(o,r,n,a),Vo(e,t,o,r);else if(i){n=t.treeContext,t.treeContext=so(n,1,0);try{$o(e,t,o)}finally{t.treeContext=n}}else $o(e,t,o)}else{if("string"!=typeof r){switch(r){case $n:case Kn:case In:case Mn:case Pn:case jn:return void $o(e,t,n.children);case Hn:throw Error(Xr(343));case zn:e:{r=t.blockedBoundary,o=t.blockedSegment,a=n.fallback,n=n.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:i=new Set,errorDigest:null},s=Bo(0,o.chunks.length,l,o.formatContext,!1,!1);o.children.push(s),o.lastPushedText=!1;var u=Bo(0,0,null,o.formatContext,!1,!1);u.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=u;try{if(Wo(e,t,n),e.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("\x3c!-- --\x3e"),u.status=1,Yo(l,u),0===l.pendingTasks)break e}catch(t){u.status=4,l.forceClientRender=!0,l.errorDigest=zo(e,t)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=Fo(e,a,r,s,i,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof r&&null!==r)switch(r.$$typeof){case Bn:if(n=Uo(e,t,r.render,n,o),0!==wo){r=t.treeContext,t.treeContext=so(r,1,0);try{$o(e,t,n)}finally{t.treeContext=r}}else $o(e,t,n);return;case Un:return void Ko(e,t,r=r.type,n=Ho(r,n),o);case Rn:if(o=n.children,r=r._context,n=n.value,a=r._currentValue2,r._currentValue2=n,Zn=n={parent:i=Zn,depth:null===i?0:i.depth+1,context:r,parentValue:a,value:n},t.context=n,$o(e,t,o),null===(e=Zn))throw Error(Xr(403));return n=e.parentValue,e.context._currentValue2=n===Gn?e.context._defaultValue:n,e=Zn=e.parent,void(t.context=e);case Fn:return void $o(e,t,n=(n=n.children)(r._currentValue2));case Vn:return void Ko(e,t,r=(o=r._init)(r._payload),n=Ho(r,n),void 0)}throw Error(Xr(130,null==r?r:typeof r,""))}switch(a=Nn((o=t.blockedSegment).chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,i=o.formatContext,o.formatContext=function(e,t,r){switch(t){case"select":return vn(1,null!=r.value?r.value:r.defaultValue);case"svg":return vn(2,null);case"math":return vn(3,null);case"foreignObject":return vn(1,null);case"table":return vn(4,null);case"thead":case"tbody":case"tfoot":return vn(5,null);case"colgroup":return vn(7,null);case"tr":return vn(6,null)}return 4<=e.insertionMode||0===e.insertionMode?vn(1,null):e}(i,r,n),Wo(e,t,a),o.formatContext=i,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",r,">")}o.lastPushedText=!1}}function $o(e,t,r){if(t.node=r,"object"==typeof r&&null!==r){switch(r.$$typeof){case On:return void Ko(e,t,r.type,r.props,r.ref);case qn:throw Error(Xr(257));case Vn:var n=r._init;return void $o(e,t,r=n(r._payload))}if(gn(r))return void Go(e,t,r);if(null===r||"object"!=typeof r?n=null:n="function"==typeof(n=Wn&&r[Wn]||r["@@iterator"])?n:null,n&&(n=n.call(r))){if(!(r=n.next()).done){var o=[];do{o.push(r.value),r=n.next()}while(!r.done);Go(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(Xr(31,"[object Object]"===e?"object with keys {"+Object.keys(r).join(", ")+"}":e))}"string"==typeof r?(n=t.blockedSegment).lastPushedText=Dn(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText):"number"==typeof r&&((n=t.blockedSegment).lastPushedText=Dn(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function Go(e,t,r){for(var n=r.length,o=0;o<n;o++){var a=t.treeContext;t.treeContext=so(a,n,o);try{Wo(e,t,r[o])}finally{t.treeContext=a}}}function Wo(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,a=t.context;try{return $o(e,t,r)}catch(s){if(No(),"object"!=typeof s||null===s||"function"!=typeof s.then)throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=a,oo(a),s;r=s;var i=t.blockedSegment,l=Bo(0,i.chunks.length,null,i.formatContext,i.lastPushedText,!0);i.children.push(l),i.lastPushedText=!1,e=Fo(e,t.node,t.blockedBoundary,l,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=a,oo(a)}}function Qo(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Zo(this,t,e)}function Jo(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,null===n?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=void 0===r?Error(Xr(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach((function(e){return Jo(e,t,r)})),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(n=t.onAllReady)())}function Yo(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,1===r.status&&Yo(e,r)}else e.completedSegments.push(t)}function Zo(e,t,r){if(null===t){if(r.parentFlushed){if(null!==e.completedRootSegment)throw Error(Xr(389));e.completedRootSegment=r}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Ro,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(r.parentFlushed&&1===r.status&&Yo(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Qo,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&1===r.status&&(Yo(t,r),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Xo(e){if(2!==e.status){var t=Zn,r=Io.current;Io.current=qo;var n=Po;Po=e.responseState;try{var o,a=e.pingedTasks;for(o=0;o<a.length;o++){var i=a[o],l=e,s=i.blockedSegment;if(0===s.status){oo(i.context);try{$o(l,i,i.node),l.responseState.generateStaticMarkup||s.lastPushedText&&s.textEmbedded&&s.chunks.push("\x3c!-- --\x3e"),i.abortSet.delete(i),s.status=1,Zo(l,i.blockedBoundary,s)}catch(e){if(No(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var u=i.ping;e.then(u,u)}else{i.abortSet.delete(i),s.status=4;var c=i.blockedBoundary,d=e,f=zo(l,d);if(null===c?jo(l,d):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=f,c.parentFlushed&&l.clientRenderedBoundaries.push(c))),l.allPendingTasks--,0===l.allPendingTasks)(0,l.onAllReady)()}}}}a.splice(0,o),null!==e.destination&&aa(e,e.destination)}catch(t){zo(e,t),jo(e,t)}finally{Po=n,Io.current=r,r===qo&&oo(t)}}}function ea(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=n.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var o=!0;n=r.chunks;var a=0;r=r.children;for(var i=0;i<r.length;i++){for(o=r[i];a<o.index;a++)t.push(n[a]);o=ta(e,t,o)}for(;a<n.length-1;a++)t.push(n[a]);return a<n.length&&(o=t.push(n[a])),o;default:throw Error(Xr(390))}}function ta(e,t,r){var n=r.boundary;if(null===n)return ea(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)return e.responseState.generateStaticMarkup||(n=n.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),n&&(t.push(' data-dgst="'),n=pn(n),t.push(n),t.push('"')),t.push("></template>")),ea(e,t,r),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,a=o.nextSuspenseID++;return o=o.boundaryPrefix+a.toString(16),n=n.id=o,Cn(t,e.responseState,n),ea(e,t,r),t.push("\x3c!--/$--\x3e")}if(n.byteSize>e.progressiveChunkSize)return n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),Cn(t,e.responseState,n.id),ea(e,t,r),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(r=n.completedSegments).length)throw Error(Xr(391));return ta(e,t,r[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function ra(e,t,r){return function(e,t,r,n){switch(r.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');default:throw Error(Xr(397))}}(t,e.responseState,r.formatContext,r.id),ta(e,t,r),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(Xr(397))}}(t,r.formatContext)}function na(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)oa(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===n)throw Error(Xr(395));return r=r.toString(16),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(r),t.push('")<\/script>')}function oa(e,t,r,n){if(2===n.status)return!0;var o=n.id;if(-1===o){if(-1===(n.id=r.rootSegmentID))throw Error(Xr(392));return ra(e,t,n)}return ra(e,t,n),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function aa(e,t){try{var r=e.completedRootSegment;if(null!==r&&0===e.pendingRootTasks){ta(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)t.push(n[r]);r<n.length&&t.push(n[r])}var o,a=e.clientRenderedBoundaries;for(o=0;o<a.length;o++){var i=a[o];n=t;var l=e.responseState,s=i.id,u=i.errorDigest,c=i.errorMessage,d=i.errorComponentStack;if(n.push(l.startInlineScript),l.sentClientRenderFunction?n.push('$RX("'):(l.sentClientRenderFunction=!0,n.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===s)throw Error(Xr(395));if(n.push(s),n.push('"'),u||c||d){n.push(",");var f=An(u||"");n.push(f)}if(c||d){n.push(",");var p=An(c||"");n.push(p)}if(d){n.push(",");var h=An(d);n.push(h)}if(!n.push(")<\/script>"))return e.destination=null,o++,void a.splice(0,o)}a.splice(0,o);var m=e.completedBoundaries;for(o=0;o<m.length;o++)if(!na(e,t,m[o]))return e.destination=null,o++,void m.splice(0,o);m.splice(0,o);var g=e.partialBoundaries;for(o=0;o<g.length;o++){var v=g[o];e:{a=e,i=t;var b=v.completedSegments;for(l=0;l<b.length;l++)if(!oa(a,i,v,b[l])){l++,b.splice(0,l);var y=!1;break e}b.splice(0,l),y=!0}if(!y)return e.destination=null,o++,void g.splice(0,o)}g.splice(0,o);var w=e.completedBoundaries;for(o=0;o<w.length;o++)if(!na(e,t,w[o]))return e.destination=null,o++,void w.splice(0,o);w.splice(0,o)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ia(e,t){try{var r=e.abortableTasks;r.forEach((function(r){return Jo(r,e,t)})),r.clear(),null!==e.destination&&aa(e,e.destination)}catch(t){zo(e,t),jo(e,t)}}function la(){}function sa(e,t,r,n){var o=!1,a=null,i="",l={push:function(e){return null!==e&&(i+=e),!0},destroy:function(e){o=!0,a=e}},s=!1;if(e=function(e,t,r,n,o,a,i,l,s){var u=[],c=new Set;return(r=Bo(t={destination:null,responseState:t,progressiveChunkSize:void 0===n?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===o?Mo:o,onAllReady:void 0===a?Ro:a,onShellReady:void 0===i?Ro:i,onShellError:void 0===l?Ro:l,onFatalError:void 0===s?Ro:s},0,null,r,!1,!1)).parentFlushed=!0,e=Fo(t,e,null,r,c,Jn,null,lo),u.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,la,void 0,(function(){s=!0}),void 0,void 0),Xo(e),ia(e,n),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{aa(e,l)}catch(t){zo(e,t),jo(e,t)}}if(o)throw a;if(!s)throw Error(Xr(426));return i}Yr.renderToNodeStream=function(){throw Error(Xr(207))},Yr.renderToStaticMarkup=function(e,t){return sa(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Yr.renderToStaticNodeStream=function(){throw Error(Xr(208))},Yr.renderToString=function(e,t){return sa(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Yr.version="18.2.0";var ua={},ca=e;
|
|
12
12
|
/**
|
|
13
13
|
* @license React
|
|
14
14
|
* react-dom-server.browser.production.min.js
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
type DefaultProps = Record<string, string | boolean | number>;
|
|
2
2
|
export declare const generateArticleCustomProps: () => DefaultProps;
|
|
3
3
|
export declare const generateLiveCustomProps: () => DefaultProps;
|
|
4
|
-
export declare const generateHomeCustomProps: () =>
|
|
4
|
+
export declare const generateHomeCustomProps: () => {
|
|
5
|
+
's:page_type': string;
|
|
6
|
+
's:content_source': string;
|
|
7
|
+
};
|
|
5
8
|
export declare const generateHoroscopeCustomProps: () => {
|
|
6
9
|
's:page_type': string;
|
|
7
10
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20minutes/tyr",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"repository": "git@github.com:20minutes/tyr.git",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "20 Minutes",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"tsconfig-paths": "^4.2.0",
|
|
137
137
|
"typescript": "^4.9.5",
|
|
138
138
|
"vite": "^4.5.2",
|
|
139
|
-
"vite-plugin-dts": "^3.7.
|
|
139
|
+
"vite-plugin-dts": "^3.7.3",
|
|
140
140
|
"vite-tsconfig-paths": "^4.3.1",
|
|
141
141
|
"vitest": "1.3.1"
|
|
142
142
|
}
|