1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(71645);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",s=e.hash||"",l=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let c=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),s&&"#"!==s[0]&&(s="#"+s),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${i}${c}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return s(e)}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),i=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return _}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(90809),o=e.r(43476),s=a._(e.r(71645)),l=e.r(95057),u=e.r(8372),c=e.r(18581),d=e.r(18967),h=e.r(5550);e.r(33525);let f=e.r(88540),p=e.r(91949),m=e.r(73668),y=e.r(9396);function v(t){var r,n;let i,a,v,[_,b]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,s.useRef)(null),{href:S,as:j,children:w,prefetch:R=null,passHref:k,replace:C,shallow:N,scroll:T,onClick:O,onMouseEnter:z,onTouchStart:P,legacyBehavior:E=!1,onNavigate:F,transitionTypes:I,ref:L,unstable_dynamicOnHover:A,...M}=t;i=w,E&&("string"==typeof i||"number"==typeof i)&&(i=(0,o.jsx)("a",{children:i}));let $=s.default.useContext(u.AppRouterContext),U=!1!==R,B=!1!==R?null===(n=R)||"auto"===n?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,D="string"==typeof(r=j||S)?r:(0,l.formatUrl)(r);if(E){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=s.default.Children.only(i)}let K=E?a&&"object"==typeof a&&a.ref:L,W=s.default.useCallback(e=>(null!==$&&(x.current=(0,p.mountLinkInstance)(e,D,$,B,U,b)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(e)}),[U,D,$,B,b]),q={ref:(0,c.useMergedRef)(W,K),onClick(t){E||"function"!=typeof O||O(t),E&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,i,a,o,l){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;
1if(!(0,m.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);s.default.startTransition(()=>{d(r,i?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,l)})}}(t,D,x,C,T,F,I)},onMouseEnter(e){E||"function"!=typeof z||z(e),E&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)},onTouchStart:function(e){E||"function"!=typeof P||P(e),E&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===A)}};return(0,d.isAbsoluteUrl)(D)?q.href=D:E&&!k&&("a"!==a.type||"href"in a.props)||(q.href=(0,h.addBasePath)(D)),v=E?s.default.cloneElement(a,q):(0,o.jsx)("a",{...M,...q,children:i}),(0,o.jsx)(g.Provider,{value:_,children:v})}e.r(84508);let g=(0,s.createContext)(p.IDLE_LINK_STATUS),_=()=>(0,s.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63676,e=>{"use strict";let t=(0,e.i(56420).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],63676)},96041,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),i=e.i(63676),a=e.i(26732),o=e.i(56612);e.s(["default",0,function(){let{status:e}=(0,a.useSession)(),[s,l]=(0,r.useState)(!1),u="banner-abo-special-offer-mobile";return((0,r.useEffect)(()=>{document.cookie.split("; ").find(e=>e.startsWith(`${u}=`))||l(!0)},[]),"unauthenticated"===e&&s)?(0,t.jsxs)("aside",{className:"banner-abo banner-sticky","data-cookie-container":"","data-name":u,children:[(0,t.jsx)(n.default,{className:"banner-wrap ithalc",href:o.MEMBERSHIP_JOIN_URL,"data-ithalc":"[cta_abo]","data-ithal":"footer_bandeau",children:"Support our journalism. Become a member"}),(0,t.jsxs)("button",{type:"button",className:"banner-close ithalc",title:"Close subscription banner","data-cookie-name":u,"data-cookie-expiration":"1","data-ithalc":"[cta_bloc]","data-ithal":"footer_bandeau_close",onClick:()=>{l(!1);let e=new Date;e.setTime(e.getTime()+864e5),document.cookie=`${u}=true; expires=${e.toUTCString()}; path=/; SameSite=Lax`},children:[(0,t.jsx)(i.X,{size:18,strokeWidth:2,"aria-hidden":"true"}),(0,t.jsx)("span",{className:"sr-only",children:"Close subscription banner"})]})]}):null}])},16015,(e,t,r)=>{},98547,(e,t,r)=>{var n=e.i(47167);e.r(16015);var i=e.r(71645),a=i&&"object"==typeof i&&"default"in i?i:{default:i},o=void 0!==n.default&&n.default.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,a=void 0===i?o:i;u(s(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",u("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){u("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(o||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}
1,r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(u(s(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return o||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var r="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(n){o||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];u(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},r.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];u(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"u">
1typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&u(s(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function u(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},d={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return d[n]||(d[n]="jsx-"+c(e+"-"+r)),d[n]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return d[r]||(d[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),d[r]}var p=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),n&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=a,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=h(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);function y(){return new p}function v(){return i.useContext(m)}m.displayName="StyleSheetContext";var g=a.default.useInsertionEffect||a.default.useLayoutEffect,_="u">typeof window?y():void 0;function b(e){var t=_||v();return t&&("u"<typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}b.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},r.StyleRegistry=function(e){var t=e.registry,r=e.children,n=i.useContext(m),o=i.useState(function(){return n||t||y()})[0];return a.default.createElement(m.Provider,{value:o},r)},r.createStyleRegistry=y,r.style=b,r.useStyleRegistry=v},37902,(e,t,r)=>{t.exports=e.r(98547).style},97411,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(18566),i=e.i(26732);let a=(0,e.i(56420).default)("bookmark",[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]);async function o(e){try{let t=await fetch("/api/save-article",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok)return"ok";return 401===t.status?"unauthenticated":"error"}catch{return"error"}}async function s(e){try{let t=await fetch("/api/unsave-article",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({articleId:e})});if(t.ok)return"ok";return 401===t.status?"unauthenticated":"error"}catch{return"error"}}async function l(e){try{let t=await fetch(`/api/is-saved?articleId=${encodeURIComponent(String(e))}`);if(!t.ok)return!1;return!!(await t.json()).saved}catch{return!1}}let u="tfe_pending_bookmark";var c=e.i(37902),d=e.i(74080),h=e.i(56612);function f({open:e,onClose:n,onLoginClick:i,title:a="Save this for later?",description:o="This feature is reserved for our members."}){return((0,r.useEffect)(()=>
1{if(!e)return;let t=e=>{"Escape"===e.key&&n()};document.addEventListener("keydown",t);let r=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",t),document.body.style.overflow=r}},[e,n]),e)?(0,d.createPortal)((0,t.jsxs)("div",{role:"presentation",onClick:e=>{e.target===e.currentTarget&&n()},className:"jsx-91a1e583909ea985 tfe-auth-modal-overlay",children:[(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"tfe-auth-modal-title",className:"jsx-91a1e583909ea985 tfe-auth-modal",children:[(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Close",className:"jsx-91a1e583909ea985 tfe-auth-modal__close",children:"â"}),(0,t.jsx)("p",{id:"tfe-auth-modal-title",className:"jsx-91a1e583909ea985 tfe-auth-modal__title",children:a}),(0,t.jsx)("p",{className:"jsx-91a1e583909ea985 tfe-auth-modal__desc",children:o}),(0,t.jsxs)("div",{className:"jsx-91a1e583909ea985 tfe-auth-modal__actions",children:[(0,t.jsx)("a",{href:h.WP_REGISTER_URL,className:"jsx-91a1e583909ea985 tfe-auth-modal__btn tfe-auth-modal__btn--primary",children:"Create account"}),(0,t.jsx)("button",{type:"button",onClick:i,className:"jsx-91a1e583909ea985 tfe-auth-modal__btn tfe-auth-modal__btn--secondary",children:"Log in"})]})]}),(0,t.jsx)(c.default,{id:"91a1e583909ea985",children:".tfe-auth-modal-overlay.jsx-91a1e583909ea985{z-index:9999;background:#2828288c;justify-content:center;align-items:center;padding:16px;animation:.15s tfe-auth-fade-in;display:flex;position:fixed;inset:0}.tfe-auth-modal.jsx-91a1e583909ea985{background:#fff;border-top:4px solid #6d2929;border-radius:0;width:100%;max-width:380px;padding:32px 28px 28px;animation:.18s tfe-auth-modal-in;position:relative;box-shadow:0 20px 60px #00000040}@keyframes tfe-auth-fade-in{0%{opacity:0}to{opacity:1}}@keyframes tfe-auth-modal-in{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}@media (prefers-reduced-motion:reduce){.tfe-auth-modal-overlay.jsx-91a1e583909ea985,.tfe-auth-modal.jsx-91a1e583909ea985{animation:none}}.tfe-auth-modal__close.jsx-91a1e583909ea985{color:#9a9a97;cursor:pointer;background:0 0;border:none;border-radius:50%;width:32px;height:32px;font-size:16px;position:absolute;top:12px;right:12px}.tfe-auth-modal__close.jsx-91a1e583909ea985:hover{color:#282828;background:#f5f4f2}.tfe-auth-modal__title.jsx-91a1e583909ea985{color:#282828;margin:0 0 10px;padding-right:20px;font-size:21px;font-weight:700}.tfe-auth-modal__desc.jsx-91a1e583909ea985{color:#58514f;margin:0 0 24px;font-size:14px;line-height:1.5}.tfe-auth-modal__actions.jsx-91a1e583909ea985{flex-direction:column;gap:10px;display:flex}.tfe-auth-modal__btn.jsx-91a1e583909ea985{box-sizing:border-box;text-align:center;cursor:pointer;border:none;border-radius:8px;width:100%;padding:12px;font-size:14px;font-weight:700;text-decoration:none;transition:background-color .15s,color .15s,border-color .15s;display:block}.tfe-auth-modal__btn--primary.jsx-91a1e583909ea985{color:#fff;background:#6d2929}.tfe-auth-modal__btn--primary.jsx-91a1e583909ea985:hover{background:#571f1f}.tfe-auth-modal__btn--secondary.jsx-91a1e583909ea985{color:#6d2929;background:#fff;border:1px solid #6d2929}.tfe-auth-modal__btn--secondary.jsx-91a1e583909ea985:hover{background:#f7eaea}"})]}),document.body):null}e.s(["default",0,function({articleId:e,slug:c,title:d,link:h,imageUrl:p,category:m,initialSaved:y=!1,showLabel:v=!1,className:g}){let{status:_}=(0,i.useSession)(),b=(0,n.useRouter)(),[x,S]=(0,r.useState)(y),[j,w]=(0,r.useState)(!1),[R,k]=(0,r.useState)(!1),[C,N]=(0,r.useState)(!1),T=(0,r.useRef)(!1);function O(){return{articleId:e,slug:c,title:d,link:h,imageUrl:p,category:m}}async function z(){if(j)return;if("authenticated"!==_)return void k(!0);N(!1),w(!0);let t=x?await s(e):await o(O());w(!1),"ok"===t?S(!x):"unauthenticated"===t?((0,i.signOut)({redirect:!1}),k(!0)):(console.error(`[bookmark] ${x?"unsave":"save"} failed for article ${e} â check TFE_MEMBERSHIP_API_URL/TFE_MEMBERSHIP_API_KEY and the WP response.`),N(!0))}(0,r.useEffect)(()=>{if("loading"===_||T.current||(T.current=!0,"authenticated"!==_))return;let t=function(e){try{let t=sessionStorage.getItem(u);if(!t)return null;let r=JSON.parse(t);if(Date.now()-r.ts>6e5)return sessionStorage.removeItem(u),null;if(String(r.articleId)!==String(e))return null;sessionStorage.removeItem(u);let{ts:n,...i}=r;return i}catch{return null}}(e);if(t){w(!0),o(t).then(e=>{w(!1),"ok"===e?S(!0):"unauthenticated"===e&&(0,i.signOut)({redirect:!1})});return}l(e).then(S)},[_,e]);let P=x?"Remove from saved articles":"Save article";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:`favorites${g?` ${g}`:""}`,"data-in-favorites":x,"aria-pressed":x,disabled:j,"data-model":"button",title:C?"Something went wrong. Please try again.":P,onClick:z,children:[(0,t.jsx)(a,{size:18,strokeWidth:2,"aria-hidden":"true",fill:x?"currentColor":"none"}),(0,t.jsx)("span",{className:v?"action":"action sr-only",children:P})]}),C&&(0,t.jsx)("span",{role:"status",style:{fontSize:11,color:"#c0392b",marginLeft:4},children:"Couldn't save. Try again."}),(0,t.jsx)(f,{open:R,onClose:()=>k(!1),onLoginClick:function(){var e=O();try{let t={...e,ts:Date.now()};sessionStorage.setItem(u,JSON.stringify(t))}catch{}let t=window.location.pathname+window.location.search;k(!1),b.push(`/connexion?callbackUrl=${encodeURIComponent(t)}`)},title:"Save this for later?",description:"This feature is reserved for our members."})]})}],97411)},3528,e=>{"use strict";var t=e.i(43476),r=e.i(57688),n=e.i(97411);e.s(["default",0,function({article:e,highlight:i=!1}){let{href:a,title:o,source:s,publishedAt:l,image:u,isPremium:c,imagePriority:d="auto"}=e,h=`title-${e.id}
1`,f=a.split("/").filter(Boolean).pop()??String(e.id);return(0,t.jsx)("article",{className:i?"item highlight":"item","data-model":i?"article-vertical":"article","data-type":"article","data-premium":c?"":void 0,"data-item-id":e.id,children:(0,t.jsxs)("a",{href:a,children:[u&&(0,t.jsx)("div",{className:"item-image",children:(0,t.jsx)("picture",{children:(0,t.jsx)(r.default,{src:u.src,alt:o,width:u.width,height:u.height,fetchPriority:"high"===d?"high":void 0,loading:"high"===d?"eager":"lazy",placeholder:u.blurDataURL?"blur":void 0,blurDataURL:u.blurDataURL})})}),(0,t.jsxs)("div",{className:"item-text",children:[(0,t.jsxs)("div",{className:"heading",children:[c&&(0,t.jsx)("span",{className:"sr-only",children:"Subscriber-only article"}),(0,t.jsx)("p",{id:h,className:"title",children:o})]}),(0,t.jsxs)("div",{className:"infos",children:[(0,t.jsx)("div",{className:"wrapper"}),(0,t.jsx)("div",{className:"placeholders",children:(0,t.jsx)(n.default,{articleId:e.id,slug:f,title:o,link:a,imageUrl:u?.src,category:s})})]})]})]})})}])},20536,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(57688);e.s(["default",0,function({episode:e}){let[i,a]=(0,r.useState)(!1);return(0,t.jsxs)("section",{className:"ci-services latest-podcast-widget",children:[(0,t.jsx)("div",{className:"section-title",children:"Latest Podcast"}),(0,t.jsx)("div",{className:"wrap",children:(0,t.jsxs)("div",{className:"item",children:[i?(0,t.jsx)("div",{className:"item-image podcast",children:(0,t.jsx)("iframe",{src:`https://open.spotify.com/embed/episode/${e.id}?utm_source=generator`,width:"100%",height:"100%",frameBorder:"0",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy",title:e.title})}):(0,t.jsx)("button",{type:"button",className:"podcast-play-button",onClick:()=>a(!0),"aria-label":`Play ${e.title}`,children:(0,t.jsx)("div",{className:"item-image podcast",children:(0,t.jsx)("picture",{children:(0,t.jsx)(n.default,{src:e.cover,alt:"",width:640,height:426,loading:"lazy"})})})}),(0,t.jsxs)("div",{className:"item-text latest-podcast-text",children:[(0,t.jsx)("div",{className:"title",children:e.title}),(0,t.jsx)("div",{className:"description",children:e.description})]})]})})]})}])},56300,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.s(["default",0,function({tags:e}){let[n,i]=(0,r.useState)(!1);return e.length?(0,t.jsx)("div",{className:"section-tags",children:(0,t.jsxs)("div",{className:`tags-list expandable${n?" expanded":""}`,children:[e.map(e=>(0,t.jsx)("a",{className:"item","data-model":"button","data-icon":"tag",href:e.href,children:e.label},e.href)),(0,t.jsx)("button",{type:"button",className:"toggle-tags",onClick:()=>i(e=>!e),"aria-expanded":n,title:n?"See less":"See more"})]})}):null}])},18537,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(3528);e.s(["default",0,function({slug:e,initialArticles:i,initialHasMore:a,initialNextOffset:o,batchSize:s=5,apiBasePath:l="/api/category"}){let[u,c]=(0,r.useState)(i),[d,h]=(0,r.useState)(a),[f,p]=(0,r.useState)(!1),[m,y]=(0,r.useState)(!1),[v,g]=(0,r.useState)(!0),_=(0,r.useRef)(o),b=(0,r.useRef)(0),x=(0,r.useRef)(0),S=(0,r.useRef)(!1),j=(0,r.useRef)(null),w=(0,r.useCallback)(async()=>{if(S.current)return;S.current=!0,p(!0),y(!1);let t=Math.min(s*(b.current+1),20);try{let r=await fetch(`${l}/${e}/more?offset=${_.current}&limit=${t}`);if(!r.ok)throw Error("load_more_failed");let n=await r.json();b.current+=1,b.current>=3&&g(!1),c(e=>[...e,...n.articles]),n.nextOffset>_.current?(_.current=n.nextOffset,h(n.hasMore)):h(!1),0===n.articles.length?(x.current+=1,x.current>=2&&g(!1)):x.current=0}catch{y(!0),g(!1)}finally{S.current=!1,p(!1)}},[l,e,s]);return(0,r.useEffect)(()=>{if(!v||!d)return;let e=j.current;if(!e)return;if("u"<typeof IntersectionObserver)return void g(!1);let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&w()},{rootMargin:"0px 0px 400px 0px"});return t.observe(e),()=>t.disconnect()},[v,d,w,u.length]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("section",{className:"section-river river",children:u.map((e,r)=>(0,t.jsx)(n.default,{article:e,highlight:r<2},e.id))}),d&&v&&(0,t.jsx)("div",{ref:j,"aria-hidden":"true",style:{height:1}}),(0,t.jsx)("p",{role:"status","aria-live":"polite",style:{textAlign:"center",color:"#888",fontSize:14,marginTop:12*!!f},children:f?"Loading more storiesâ¦":""}),d&&!v&&(0,t.jsx)("div",{className:"load-more-wrap",style:{display:"flex",justifyContent:"center",marginTop:32},children:(0,t.jsx)("button",{type:"button","data-model":"button",onClick:w,disabled:f,children:f?"Loadingâ¦":m?"Try again":"Load more"})}),m&&(0,t.jsx)("p",{style:{textAlign:"center",color:"#888",fontSize:14,marginTop:12},children:"Something went wrong. Please try again."})]})}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.