PageSourceSearch

https://carnegieendowment.org/_next/static/chunks/0ae1pg3jwompg.js

js carnegieendowment.org collected 2026-09-24 06:42:11 UTC 111,217 bytes, 11 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,846284,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function({html:e,height:t=null,width:i=null,children:s,dataNtpc:a=""}){return(0,n.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${a}`}})},[a]),(0,r.jsxs)(r.Fragment,{children:[s,e?(0,r.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=i?`${i}px`:"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:e}}):null]})};let r=e.r(573378),n=e.r(216887)},636097,(e,t,i)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.sendGTMEvent=void 0,i.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:i="https://www.googletagmanager.com/gtm.js",dataLayerName:r="dataLayer",auth:l,preview:u,dataLayer:c,nonce:d}=e;o=r;let h="dataLayer"!==r?`&l=${r}`:"",f=l?`&gtm_auth=${l}`:"",m=u?`&gtm_preview=${u}&gtm_cookies_win=x`:"";return(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
2      (function(w,l){
3        w[l]=w[l]||[];
4        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
5        ${c?`w[l].push(${JSON.stringify(c)})`:""}
6      })(window,'${r}');`},nonce:d}),(0,n.jsx)(a.default,{id:"_next-gtm","data-ntpc":"GTM",src:`${i}?id=${t}${h}${f}${m}`,nonce:d})]})};let n=e.r(573378),s=e.r(216887),a=r(e.r(718565)),o="dataLayer";i.sendGTMEvent=(e,t)=>{let i=t||o;window[i]=window[i]||[],window[i].push(e)}},129413,(e,t,i)=>{"use strict";let r;var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.GoogleAnalytics=function(e){let{gaId:t,debugMode:i,dataLayerName:n="dataLayer",nonce:l}=e;return void 0===r&&(r=n),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
7          window['${n}'] = window['${n}'] || [];
8          function gtag(){window['${n}'].push(arguments);}
9          gtag('js', new Date());
10
11          gtag('config', '${t}' ${i?",{ 'debug_mode': true }":""});`},nonce:l}),(0,s.jsx)(o.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:l})]})},i.sendGAEvent=function(){void 0===r?console.warn("@next/third-parties: GA has not been initialized"):window[r]?window[r].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${r} does not exist`)};let s=e.r(573378),a=e.r(216887),o=n(e.r(718565))},418704,(e,t,i)=>{t.exports={id:"google-analytics",description:"Install a Google Analytics tag on your website",website:"https://analytics.google.com/analytics/web/",scripts:[{url:"https://www.googletagmanager.com/gtag/js",params:["id"],strategy:"worker",location:"head",action:"append"},{code:"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag('js',new Date());gtag('config','${args.id}')",strategy:"worker",location:"head",action:"append"}]}},6154,(e,t,i)=>{"use strict";function r(e,t,i=!1){return t?Object.keys(e).filter(e=>i?!t.includes(e):t.includes(e)).reduce((t,i)=>(t[i]=e[i],t),{}):{}}function n(e,t,i,r){let n=r&&Object.keys(r).length>0?new URL(Object.values(r)[0],e):new URL(e);return t&&i&&t.forEach(e=>{i[e]&&n.searchParams.set(e,i[e])}),n.toString()}function s(e,t,i,r,s){var a;if(!t)return`<${e}></${e}>`;let o=(null==(a=t.src)?void 0:a.url)?Object.assign(Object.assign({},t),{src:n(t.src.url,t.src.params,r,s)}):t,l=Object.keys(Object.assign(Object.assign({},o),i)).reduce((e,t)=>{let r=null==i?void 0:i[t],n=o[t],s=null!=r?r:n,a=!0===s?t:`${t}="${s}"`;return s?e+` ${a}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(i,"__esModule",{value:!0}),i.formatData=i.createHtml=i.formatUrl=void 0,i.formatUrl=n,i.createHtml=s,i.formatData=function(e,t){var i,a,o,l,u;let c=r(t,null==(i=e.scripts)?void 0:i.reduce((e,t)=>
11[...e,...Array.isArray(t.params)?t.params:[]],[])),d=r(t,null==(o=null==(a=e.html)?void 0:a.attributes.src)?void 0:o.params),h=r(t,[null==(u=null==(l=e.html)?void 0:l.attributes.src)?void 0:u.slugParam]),f=r(t,[...Object.keys(c),...Object.keys(d),...Object.keys(h)],!0);return Object.assign(Object.assign({},e),{html:e.html?s(e.html.element,e.html.attributes,f,d,h):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:n(e.url,e.params,c)})):null})}},880092,(e,t,i)=>{"use strict";var r=e.e&&e.e.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.GoogleAnalytics=void 0;let s=n(e.r(418704)),a=e.r(6154);i.GoogleAnalytics=e=>{var t=r(e,[]);return(0,a.formatData)(s.default,t)}},731292,(e,t,i)=>{t.exports={id:"google-maps-embed",description:"Embed a Google Maps embed on your webpage",website:"https://developers.google.com/maps/documentation/embed/get-started",html:{element:"iframe",attributes:{loading:"lazy",src:{url:"https://www.google.com/maps/embed/v1/place",slugParam:"mode",params:["key","q","center","zoom","maptype","language","region"]},referrerpolicy:"no-referrer-when-downgrade",frameborder:"0",style:"border:0",allowfullscreen:!0,width:null,height:null}}}},490057,(e,t,i)=>{"use strict";var r=e.e&&e.e.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.GoogleMapsEmbed=void 0;let s=n(e.r(731292)),a=e.r(6154);i.GoogleMapsEmbed=e=>{var t=r(e,[]);return(0,a.formatData)(s.default,t)}},447716,(e,t,i)=>{t.exports={id:"youtube-embed",description:"Embed a YouTube embed on your webpage.",website:"https://github.com/paulirish/lite-youtube-embed",html:{element:"lite-youtube",attributes:{videoid:null,playlabel:null}},stylesheets:["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],scripts:[{url:"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js",strategy:"idle",location:"head",action:"append"}]}},761564,(e,t,i)=>{"use strict";var r=e.e&&e.e.__rest||function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,r=Object.getOwnPropertySymbols(e);n<r.length;n++)0>t.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]]);return i},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.YouTubeEmbed=void 0;let s=n(e.r(447716)),a=e.r(6154);i.YouTubeEmbed=e=>{var t=r(e,[]);return(0,a.formatData)(s.default,t)}},508751,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.YouTubeEmbed=i.GoogleMapsEmbed=i.GoogleAnalytics=void 0;var r=e.r(880092);Object.defineProperty(i,"GoogleAnalytics",{enumerable:!0,get:function(){return r.GoogleAnalytics}});var n=e.r(490057);Object.defineProperty(i,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n.GoogleMapsEmbed}});var s=e.r(761564);Object.defineProperty(i,"YouTubeEmbed",{enumerable:!0,get:function(){return s.YouTubeEmbed}})},521843,(e,t,i)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){let{apiKey:t,...i}=e,r={...i,key:t},{html:o}=(0,s.GoogleMapsEmbed)(r);return(0,n.jsx)(a.default,{height:r.height||null,width:r.width||null,html:o,dataNtpc:"GoogleMapsEmbed"})};let n=e.r(573378),s=e.r(508751),a=r(e.r(846284))},721216,(e,t,i)=>{"use strict";
11var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){let{html:t,scripts:i,stylesheets:r}=(0,a.YouTubeEmbed)(e);return(0,n.jsx)(o.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==i?void 0:i.map(e=>(0,n.jsx)(s.default,{src:e.url,strategy:l[e.strategy],stylesheets:r},e.url))})};let n=e.r(573378),s=r(e.r(718565)),a=e.r(508751),o=r(e.r(846284)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},823600,(e,t,i)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.sendGAEvent=i.GoogleAnalytics=i.sendGTMEvent=i.GoogleTagManager=i.YouTubeEmbed=i.GoogleMapsEmbed=void 0;var n=e.r(521843);Object.defineProperty(i,"GoogleMapsEmbed",{enumerable:!0,get:function(){return r(n).default}});var s=e.r(721216);Object.defineProperty(i,"YouTubeEmbed",{enumerable:!0,get:function(){return r(s).default}});var a=e.r(636097);Object.defineProperty(i,"GoogleTagManager",{enumerable:!0,get:function(){return a.GoogleTagManager}}),Object.defineProperty(i,"sendGTMEvent",{enumerable:!0,get:function(){return a.sendGTMEvent}});var o=e.r(129413);Object.defineProperty(i,"GoogleAnalytics",{enumerable:!0,get:function(){return o.GoogleAnalytics}}),Object.defineProperty(i,"sendGAEvent",{enumerable:!0,get:function(){return o.sendGAEvent}})},22365,e=>{"use strict";var t=e.i(573378),i=e.i(216887),r=e.i(773688),n=e.i(823600),s=e.i(741300);let a=({children:e})=>{let a,[o,l]=(()=>{let e={};if(void 0!==globalThis.window){let t=globalThis.window.sessionStorage.getItem("utmParameters");t&&(e=JSON.parse(t)??{})}return[{gclid:e.gclid,utmCampaign:e.utmCampaign,utmContent:e.utmContent,utmId:e.utmId,utmMedium:e.utmMedium,utmSource:e.utmSource,utmTerm:e.utmTerm},e=>{void 0!==globalThis.window&&globalThis.window.sessionStorage.setItem("utmParameters",JSON.stringify(e))}]})(),[u,c]=(0,i.useState)({}),d={gclid:(a=(0,r.useSearchParams)()).get("gclid"),utmCampaign:a.get("utm_campaign"),utmContent:a.get("utm_content"),utmId:a.get("utm_id"),utmMedium:a.get("utm_medium"),utmSource:a.get("utm_source"),utmTerm:a.get("utm_term")},h={gclid:d.gclid??o.gclid,utmCampaign:d.utmCampaign??o.utmCampaign,utmContent:d.utmContent??o.utmContent,utmId:d.utmId??o.utmId,utmMedium:d.utmMedium??o.utmMedium,utmSource:d.utmSource??o.utmSource,utmTerm:d.utmTerm??o.utmTerm};l(h);let f=function(e={}){(0,n.sendGTMEvent)({event:"page_data",value:e})},m=function(e,t={}){(0,n.sendGTMEvent)({event:e,value:t})},p=function(e){(0,n.sendGTMEvent)({event:"scrollDepth",value:{depth:e}})},b=function(e,t){(0,n.sendGTMEvent)({event:t,value:{formId:e}})},g=(0,i.useMemo)(()=>({marketingControls:u,sendFormEvent:b,sendGtmEvent:m,sendPageDataEvent:f,sendScrollDepthEvent:p,setMarketingControls:c,utmParameters:h}),[h,f,m,b,p,c,u]);return(0,t.jsx)(s.AnalyticsContext.Provider,{value:g,children:e})};e.s(["AnalyticsProvider",0,({children:e})=>(0,t.jsx)(i.Suspense,{children:(0,t.jsx)(a,{children:e})})],22365)},34638,873412,565217,645357,828630,220498,469464,479540,1474,348050,198506,e=>{"use strict";let t,i,r,n,s,a;var o=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",0,o],873412),e.i(366805);var l={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},u=new class{#e=l;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function c(e){setTimeout(e,0)}e.s(["systemSetTimeoutZero",0,c,"timeoutManager",0,u],565217);var d="u"<typeof window||"Deno"in globalThis;function h(){}function f(e){return"number"==typeof e&&e>=0&&e!==1/0}function m(e,t){return Math.max(e+(t||0)-Date.now(),0)}function p(e,t){return"function"==typeof e?e(t):e}function b(e,t){return"function"==typeof e?e(t):e}function g(e,t){return(t?.queryKeyHashFn||y)(e)}function y(e){return JSON.stringify(e,(e,t)=>j(t)?Object.keys(t).sort().reduce((e,i)=>(e[i]=t[i],e),{}):t)}function v(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(i=>v(e[i],t[i]))}var w=Object.prototype.hasOwnProperty;function x(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function j(e){if(!O(e))return!1;let t=e.constructor;if(void 0===t)return!0;let i=t.prototype;return!!O(i)&&!!i.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function O(e){return"[object Object]"===Object.prototype.toString.call(e)}function k(e){return new Promise(t=>{u.setTimeout(t,e)})}function S(e,t,i){return"function"==typeof i.structuralSharing?i.structuralSharing(e,t):!1!==i.structuralSharing?function e(t,i){if(t===i)return t;let r=x(t)&&x(i);if(!r&&!(j(t)&&j(i)))return i;let n=(r?t:Object.keys(t)).length,s=r?i:Object.keys(i),a=s.length,o=r?Array(a):{},l=0;for(let u=0;u<a;u++){let a=r?u:s[u],c=t[a],d=i[a];if(c===d){o[a]=c,(r?u<n:w.call(t,a))&&l++;continue}if(null===c||null===d||"object"!=typeof c||"object"!=typeof d){o[a]=d;continue}let h=e(c,d);o[a]=h,h===c&&l++}return n===a&&l===n?t:o}(e,t):t}var C=Symbol();function E(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==C?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}e.s(["addToEnd",0,function(e,t,i=0){let r=[...e,t];return i&&r.length>i?r.slice(1):r},"addToStart",0,function(e,t,i=0){let r=[t,...e];return i&&r.length>i?r.slice(0,-1):r},"ensureQueryFn",0,E,"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,y,"hashQueryKeyByOptions",0,g,"isServer",0,d,"isValidTimeout",0,f,"matchMutation",0,function(e,t){let{exact:i,status:r,predicate:n,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(i){if(y(t.options.mutationKey)!==y(s))return!1}else if(!v(t.options.mutationKey,s))return!1}return(!r||t.state.status===r)&&(!n||!!n(t))},"matchQuery",0,function(e,t){let{type:i="all",exact:r,fetchStatus:n,predicate:s,queryKey:a,stale:o}=e;if(a){if(r){if(t.queryHash!==g(a,t.options))return!1}else if(!v(t.queryKey,a))return!1}if("all"!==i){let e=t.isActive();if("active"===i&&!e||"inactive"===i&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!n||n===t.state.fetchStatus)&&(!s||!!s(t))},"noop",0,h,"partialMatchKey",0,v,"replaceData",0,S,"resolveEnabled",0,b,"resolveStaleTime",0,p,"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(e[i]!==t[i])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e}
11,"skipToken",0,C,"sleep",0,k,"timeUntilStale",0,m],645357);var T=new class extends o{#i;#r;#n;constructor(){super(),this.#n=e=>{if(!d&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#n=e,this.#r?.(),this.#r=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#i!==e&&(this.#i=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#i?this.#i:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,T],34638);var P=(t=[],i=0,r=e=>{e()},n=e=>{e()},s=c,{batch:e=>{let a;i++;try{a=e()}finally{let e;--i||(e=t,t=[],e.length&&s(()=>{n(()=>{e.forEach(e=>{r(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{i?t.push(e):s(()=>{r(e)})},setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{s=e}});e.s(["notifyManager",0,P],828630);var M=new class extends o{#s=!0;#r;#n;constructor(){super(),this.#n=e=>{if(!d&&window.addEventListener){let t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#r||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#n=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}};function z(){let e,t,i=new Promise((i,r)=>{e=i,t=r});function r(e){Object.assign(i,e),delete i.resolve,delete i.reject}return i.status="pending",i.catch(()=>{}),i.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},i.reject=e=>{r({status:"rejected",reason:e}),t(e)},i}function A(e){return Math.min(1e3*2**e,3e4)}function N(e){return(e??"online")!=="online"||M.isOnline()}e.s(["onlineManager",0,M],220498),e.s(["pendingThenable",0,z,"tryResolveSync",0,function(e){let t;if(e.then(e=>(t=e,e),h)?.catch(h),void 0!==t)return{data:t}}],469464);var I=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function _(e){let t,i=!1,r=0,n=z(),s=()=>T.isFocused()&&("always"===e.networkMode||M.isOnline())&&e.canRun(),a=()=>N(e.networkMode)&&e.canRun(),o=e=>{"pending"===n.status&&(t?.(),n.resolve(e))},l=e=>{"pending"===n.status&&(t?.(),n.reject(e))},u=()=>new Promise(i=>{t=e=>{("pending"!==n.status||s())&&i(e)},e.onPause?.()}).then(()=>{t=void 0,"pending"===n.status&&e.onContinue?.()}),c=()=>{let t;if("pending"!==n.status)return;let a=0===r?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(o).catch(t=>{if("pending"!==n.status)return;let a=e.retry??3*!d,o=e.retryDelay??A,h="function"==typeof o?o(r,t):o,f=!0===a||"number"==typeof a&&r<a||"function"==typeof a&&a(r,t);i||!f?l(t):(r++,e.onFail?.(r,t),k(h).then(()=>s()?void 0:u()).then(()=>{i?l(t):c()}))})};return{promise:n,status:()=>n.status,cancel:t=>{if("pending"===n.status){let i=new I(t);l(i),e.onCancel?.(i)}},continue:()=>(t?.(),n),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:a,start:()=>(a()?c():u().then(c),n)}}e.s(["CancelledError",0,I,"canFetch",0,N,"createRetryer",0,_],479540);var R=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),f(this.gcTime)&&(this.#a=u.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(d?1/0:3e5))}clearGcTimeout(){this.#a&&(u.clearTimeout(this.#a),this.#a=void 0)}};e.s(["Removable",0,R],1474);var D=class extends R{#o;#l;#u;#c;#d;#h;#f;constructor(e){super(),this.#f=!1,this.#h=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#u=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=L(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#h,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=L(this.options);void 0!==e.data&&(this.setData(e.data,{updatedAt:e.dataUpdatedAt,manual:!0}),this.#o=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,t){let i=S(this.state.data,e,this.options);return this.#m({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e,t){this.#m({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(h).catch(h):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some(e=>!1!==b(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===C||this.state.dataUpdateCount+this.state.errorUpdate
11Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===p(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!m(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#f?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#m({type:"invalidate"})}async fetch(e,t){let i;if("idle"!==this.state.fetchStatus&&this.#d?.status()!=="rejected"){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#f=!0,r.signal)})},s=()=>{let e,i=E(this.options,t),r=(n(e={client:this.#c,queryKey:this.queryKey,meta:this.meta}),e);return(this.#f=!1,this.options.persister)?this.options.persister(i,r,this):i(r)},a=(n(i={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:s}),i);this.options.behavior?.onFetch(a,this),this.#l=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#m({type:"fetch",meta:a.fetchOptions?.meta}),this.#d=_({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof I&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:()=>{this.#m({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#d.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof I){if(e.silent)return this.#d.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#m({type:"error",error:e}),this.#u.config.onError?.(e,this),this.#u.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#m(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...F(t.data,this.options),fetchMeta:e.meta??null};case"success":let i={...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?i:void 0,i;case"error":let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),P.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function F(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:N(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function L(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,i=void 0!==t,r=i?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdate
11Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,D,"fetchState",0,F],348050);var q=e.i(216887),Q=e.i(573378),U=q.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:t})=>(q.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,Q.jsx)(U.Provider,{value:e,children:t})),"useQueryClient",0,e=>{let t=q.useContext(U);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t}],198506)},213973,275618,e=>{"use strict";let t;var i=e.i(34638),r=e.i(828630),n=e.i(348050),s=e.i(873412),a=e.i(469464),o=e.i(645357),l=e.i(565217),u=class extends s.Subscribable{constructor(e,t){super(),this.options=t,this.#c=e,this.#p=null,this.#b=(0,a.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#c;#g=void 0;#y=void 0;#v=void 0;#w;#x;#b;#p;#j;#O;#k;#S;#C;#E;#T=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#g.addObserver(this),c(this.#g,this.options)?this.#P():this.updateResult(),this.#M())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#g,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#g,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#z(),this.#A(),this.#g.removeObserver(this)}setOptions(e){let t=this.options,i=this.#g;if(this.options=this.#c.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#g))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#N(),this.#g.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#c.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#g,observer:this});let r=this.hasListeners();r&&h(this.#g,i,this.options,t)&&this.#P(),this.updateResult(),r&&(this.#g!==i||(0,o.resolveEnabled)(this.options.enabled,this.#g)!==(0,o.resolveEnabled)(t.enabled,this.#g)||(0,o.resolveStaleTime)(this.options.staleTime,this.#g)!==(0,o.resolveStaleTime)(t.staleTime,this.#g))&&this.#I();let n=this.#_();r&&(this.#g!==i||(0,o.resolveEnabled)(this.options.enabled,this.#g)!==(0,o.resolveEnabled)(t.enabled,this.#g)||n!==this.#E)&&this.#R(n)}getOptimisticResult(e){var t,i;let r=this.#c.getQueryCache().build(this.#c,e),n=this.createResult(r,e);return t=this,i=n,(0,o.shallowEqualObjects)(t.getCurrentResult(),i)||(this.#v=n,this.#x=this.options,this.#w=this.#g.state),n}getCurrentResult(){return this.#v}trackResult(e,t){return new Proxy(e,{get:(e,i)=>(this.trackProp(i),t?.(i),"promise"!==i||this.options.experimental_prefetchInRender||"pending"!==this.#b.status||this.#b.reject(Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(e,i))})}trackProp(e){this.#T.add(e)}getCurrentQuery(){return this.#g}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#c.defaultQueryOptions(e),i=this.#c.getQueryCache().build(this.#c,t);return i.fetch().then(()=>this.createResult(i,t))}fetch(e){return this.#P({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#v))}#P(e){this.#N();let t=this.#g.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#I(){this.#z();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#g);if(o.isServer||this.#v.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#v.dataUpdatedAt,e);this.#S=l.timeoutManager.setTimeout(()=>{this.#v.isStale||this.updateResult()},t+1)}#_(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#g):this.options.refetchInterval)??!1}#R(e){this.#A(),this.#E=e,!o.isServer&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#g)&&(0,o.isValidTimeout)(this.#E)&&0!==this.#E&&(this.#C=l.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||i.focusManager.isFocused())&&this.#P()},this.#E))}#M(){this.#I(),this.#R(this.#_())}#z(){this.#S&&(l.timeoutManager.clearTimeout(this.#S),this.#S=void 0)}#A(){this.#C&&(l.timeoutManager.clearInterval(this.#C),this.#C=void 0)}createResult(e,t){let i,r=this.#g,s=this.options,l=this.#v,u=this.#w,d=this.#x,m=e!==r?e.state:this.#y,{state:p}=e,b={...p},g=!1;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&c(e,t),o=i&&h(e,r,t,s);(a||o)&&(b={...b,...(0,n.fetchState)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(b.fetchStatus="idle")}let{error:y,errorUpdatedAt:v,status:w}=b;i=b.data;let x=!1;if(void 0!==t.placeholderData&&void 0===i&&"pending"===w){let e;l?.isPlaceholderData&&t.placeholderData===d?.placeholderData?(e=l.data,x=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#k?.state.data,this.#k):t.placeholderData,void 0!==e&&(w="success",i=(0,o.replaceData)(l?.data,e,t),g=!0)}if(t.select&&void 0!==i&&!x)if(l&&i===u?.data&&t.select===this.#j)i=this.#O;else try{this.#j=t.select,i=t.select(i),i=(0,o.replaceData)(l?.data,i,t),this.#O=i,this.#p=null}catch(e){this.#p=e}this.#p&&(y=this.#p,i=this.#O,v=Date.now(),w="error");let j="fetching"===b.fetchStatus,O="pending"===w,k="error"===w,S=O&&j,C=void 0!==i,E={status:w,fetchStatus:b.fetchStatus,isPending:O,isSuccess:"success"===w,isError:k,isInitialLoading:S,isLoading:S,data:i,dataUpdatedAt:b.dataUpdatedAt,error:y,errorUpdatedAt:v,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdate
11Count:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>m.dataUpdateCount||b.errorUpdateCount>m.errorUpdateCount,isFetching:j,isRefetching:j&&!O,isLoadingError:k&&!C,isPaused:"paused"===b.fetchStatus,isPlaceholderData:g,isRefetchError:k&&C,isStale:f(e,t),refetch:this.refetch,promise:this.#b,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===E.status?e.reject(E.error):void 0!==E.data&&e.resolve(E.data)},i=()=>{t(this.#b=E.promise=(0,a.pendingThenable)())},n=this.#b;switch(n.status){case"pending":e.queryHash===r.queryHash&&t(n);break;case"fulfilled":("error"===E.status||E.data!==n.value)&&i();break;case"rejected":("error"!==E.status||E.error!==n.reason)&&i()}}return E}updateResult(){let e=this.#v,t=this.createResult(this.#g,this.options);if(this.#w=this.#g.state,this.#x=this.options,void 0!==this.#w.data&&(this.#k=this.#g),(0,o.shallowEqualObjects)(t,e))return;this.#v=t;let i=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,i="function"==typeof t?t():t;if("all"===i||!i&&!this.#T.size)return!0;let r=new Set(i??this.#T);return this.options.throwOnError&&r.add("error"),Object.keys(this.#v).some(t=>this.#v[t]!==e[t]&&r.has(t))};this.#D({listeners:i()})}#N(){let e=this.#c.getQueryCache().build(this.#c,this.options);if(e===this.#g)return;let t=this.#g;this.#g=e,this.#y=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#M()}#D(e){r.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#v)}),this.#c.getQueryCache().notify({query:this.#g,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,i){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let r="function"==typeof i?i(e):i;return"always"===r||!1!==r&&f(e,t)}return!1}function h(e,t,i,r){return(e!==t||!1===(0,o.resolveEnabled)(r.enabled,e))&&(!i.suspense||"error"!==e.state.status)&&f(e,i)}function f(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(366805);var m=e.i(216887),p=e.i(198506);e.i(573378);var b=m.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),g=m.createContext(!1);g.Provider;var y=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});e.s(["useQuery",0,function(e,t){return function(e,t,i){let n=m.useContext(g),s=m.useContext(b),a=(0,p.useQueryClient)(i),l=a.defaultQueryOptions(e);if(a.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=n?"isRestoring":"optimistic",l.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=l.staleTime;l.staleTime="function"==typeof t?(...i)=>e(t(...i)):e(t),"number"==typeof l.gcTime&&(l.gcTime=Math.max(l.gcTime,1e3))}(l.suspense||l.throwOnError||l.experimental_prefetchInRender)&&!s.isReset()&&(l.retryOnMount=!1),m.useEffect(()=>{s.clearReset()},[s]);let u=!a.getQueryCache().get(l.queryHash),[c]=m.useState(()=>new t(a,l)),d=c.getOptimisticResult(l),h=!n&&!1!==e.subscribed;if(m.useSyncExternalStore(m.useCallback(e=>{let t=h?c.subscribe(r.notifyManager.batchCalls(e)):o.noop;return c.updateResult(),t},[c,h]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(l)},[l,c]),l?.suspense&&d.isPending)throw y(l,c,s);if((({result:e,errorResetBoundary:t,throwOnError:i,query:r,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(n&&void 0===e.data||(0,o.shouldThrowError)(i,[e.error,r])))({result:d,errorResetBoundary:s,throwOnError:l.throwOnError,query:a.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;if(a.getDefaultOptions().queries?._experimental_afterQuery?.(l,d),l.experimental_prefetchInRender&&!o.isServer&&d.isLoading&&d.isFetching&&!n){let e=u?y(l,c,s):a.getQueryCache().get(l.queryHash)?.promise;e?.catch(o.noop).finally(()=>{c.updateResult()})}return l.notifyOnChangeProps?d:c.trackResult(d)}(e,u,t)}],213973),e.s(["queryOptions",0,function(e){return e}],275618)},995860,e=>{"use strict";let t;e.i(366805);var i=e.i(645357),r=e.i(828630);function n(e){return new Promise((t,i)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>i(e.error)})}function s(){var e;let i;return t||(e="keyval",t=(t,r)=>(()=>
11{if(i)return i;let t=indexedDB.open("keyval-store");return t.onupgradeneeded=()=>t.result.createObjectStore(e),(i=n(t)).then(e=>{e.onclose=()=>i=void 0},()=>{}),i})().then(i=>r(i.transaction(e,t).objectStore(e)))),t}let a=function({storage:e,buster:t="",maxAge:n=864e5,serialize:s=JSON.stringify,deserialize:a=JSON.parse,prefix:o="tanstack-query",filters:l}){function u(e){if(e.state.dataUpdatedAt){let i=Date.now()-e.state.dataUpdatedAt,r=e.buster!==t;return!!(i>n)||!!r}return!0}async function c(t,i){if(null!=e){let n=`${o}-${t}`;try{let t=await e.getItem(n);if(t){let s=await a(t);if(!u(s))return i&&r.notifyManager.schedule(()=>i(s)),s.state.data;await e.removeItem(n)}}catch(t){await e.removeItem(n)}}}async function d(t,i){if(null!=e){let e=i.getQueryCache().find({queryKey:t});e&&await h(e)}}async function h(i){if(null!=e){let r=`${o}-${i.queryHash}`;e.setItem(r,await s({state:i.state,queryKey:i.queryKey,queryHash:i.queryHash,buster:t}))}}return{persisterFn:async function(t,n,s){let a=!l||(0,i.matchQuery)(l,s);if(a&&void 0===s.state.data&&null!=e){let e=await c(s.queryHash,e=>{s.setState({dataUpdatedAt:e.state.dataUpdatedAt,errorUpdatedAt:e.state.errorUpdatedAt}),s.isStale()&&s.fetch()});if(null!=e)return Promise.resolve(e)}let o=await t(n);return a&&null!=e&&r.notifyManager.schedule(()=>{h(s)}),Promise.resolve(o)},persistQuery:h,persistQueryByKey:d,retrieveQuery:c,persisterGc:async function(){if(e?.entries)for(let[t,i]of(await e.entries()))t.startsWith(o)&&u(await a(i))&&await e.removeItem(t)},restoreQueries:async function(t,r={}){let{exact:n,queryKey:s}=r;if(e?.entries){for(let[r,l]of(await e.entries()))if(r.startsWith(o)){let o=await a(l);if(u(o)){await e.removeItem(r);continue}if(s){if(n){if(o.queryHash!==(0,i.hashKey)(s))continue}else if(!(0,i.partialMatchKey)(o.queryKey,s))continue}t.setQueryData(o.queryKey,o.state.data,{updatedAt:o.state.dataUpdatedAt})}}}}}({storage:{getItem:e=>(function(e,t=s()){return t("readonly",t=>n(t.get(e)))})(e),removeItem:e=>(function(e,t=s()){return t("readwrite",t=>(t.delete(e),n(t.transaction)))})(e),setItem:(e,t)=>(function(e,t,i=s()){return i("readwrite",i=>(i.put(t,e),n(i.transaction)))})(e,t)}});e.s(["getIndexedDBPersister",0,function(){return i.isServer?null:a}],995860)},678840,e=>{"use strict";var t=e.i(573378),i=e.i(213973),r=e.i(73125);e.i(814647);var n=e.i(592421),s=e.i(275618),a=e.i(832356),o=e.i(896137),l=e.i(995860);let u=a.z.object({addressLines:a.z.array(a.z.string()),fax:a.z.string().optional(),phone:a.z.string().optional()}),c=a.z.object({alt:a.z.string(),height:a.z.number(),id:a.z.string(),url:a.z.string().url(),width:a.z.number()}),d=a.z.object({href:a.z.string(),id:a.z.string(),italicize:a.z.boolean(),label:a.z.string(),target:a.z.union([a.z.literal("_blank"),a.z.literal("_self")]).optional()}),h=a.z.object({destination:a.z.string().url(),icon:a.z.custom(),id:a.z.string()}),f=a.z.object({formInfo:a.z.object({enabled:a.z.boolean().optional(),form:a.z.object({confirmationMessage:a.z.string(),confirmationType:a.z.union([a.z.literal("message"),a.z.literal("redirect")]).nullish(),fields:a.z.array(a.z.object({blockType:a.z.union([a.z.literal("checkbox"),a.z.literal("country"),a.z.literal("email"),a.z.literal("hidden"),a.z.literal("message"),a.z.literal("number"),a.z.literal("select"),a.z.literal("state"),a.z.literal("text"),a.z.literal("textarea")]),defaultValue:a.z.union([a.z.string(),a.z.number()]).optional(),errorMessage:a.z.string().optional(),label:a.z.string().optional(),name:a.z.string(),options:a.z.array(a.z.object({id:a.z.string(),label:a.z.string(),value:a.z.string()})).optional(),placeholder:a.z.string().optional(),required:a.z.boolean()})),id:a.z.string(),submissionUrl:a.z.string(),submitButtonLabel:a.z.string()}),formId:a.z.string(),id:a.z.string(),siteSource:a.z.string()})}),m=a.z.object({form:f,modalDescription:a.z.string().optional(),newsletterFormName:a.z.string().optional()}).optional(),p=a.z.object({centerAffiliationAll:a.z.string().optional(),englishNewsletterAll:a.z.string().optional(),nonEnglishNewsletterAll:a.z.string().optional()}).optional(),b=a.z.object({centerId:a.z.string(),contact:u.optional(),copyright:a.z.string().optional(),logo:c.optional(),marketingControls:p,primaryLinks:a.z.array(d).optional(),secondaryLinks:a.z.array(d).optional(),socials:a.z.array(h).optional(),subscribe:m,tertiaryLinks:a.z.array(d).optional()});var g=e.i(13418),y=e.i(554295);e.i(890134);var v=e.i(438298),w=e.i(565319);e.i(170734);var x=e.i(737709);e.i(15399);var j=e.i(291982);let O=({contact:e,copyright:i,logo:r,marketingControls:n,primaryLinks:s,secondaryLinks:a,socials:o,subscribe:l,t:u,tertiaryLinks:c})=>{let d=s?.length??a?.length??c?.length;return(0,t.jsxs)("footer",{className:"dark z-10 bg-blueDark",children:[l&&(0,t.jsx)("div",{className:"hidden tablet:block desktop:hidden",children:(0,t.jsx)(v.Subscribe,{...l,marketingControls:n,width:"100"})}),(0,t.jsx)(x.Constrainer,{className:"pb-[1.6rem] pt-[4.8rem] desktop:pb-[4.8rem]",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-y-[8rem] tablet:grid-cols-2 tablet:gap-y-[11.2rem] desktop:grid-cols-3 desktop:gap-y-[12.8rem]",children:[(0,t.jsxs)("div",{className:"order-3 flex flex-1 flex-col gap-[2.4rem] text-blanc50 tablet:order-1",children:[r?.url&&(0,t.jsx)(y.Link,{className:"max-w-[80%]",href:"/",children:(0,t.jsx)(g.default,{alt:r.alt,blurDataURL:r.blurhash??void 0,className:"",height:r.height??40,loading:"lazy",placeholder:r.blurhash?"blur":"empty",src:r.url,width:r.width??40})}),(0,t.jsxs)("div",{className:"flex flex-col gap-[1.6rem]",children:[e&&(0,t.jsx)(t.Fragment,{children:e.addressLines&&e.addressLines.length>0&&(0,t.jsxs)("address",{className:"flex flex-col text-body not-italic",children:[e.addressLines.map((e,i)=>(0,t.jsx)("span",{children:e},i)),e.phone&&(0,t.jsx)("a",{className:"text-blanc50 hover:text-blanc",href:`tel:${e.phone}`,children:u?u("Common.phone",{phone:e.phone}):`Phone: ${e.phone}`}),e.fax&&(0,t.jsx)("span",{children:u?u("Common.fax",{fax:e.fax}):`Fax: ${e.fax}`})]})}),o&&o.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-[0.8rem]",children:o.map(e=>(0,t.jsx)(j.IconLink,{asButton:!1,destination:e.destination,icon:e.icon,openInNewTab:!0},e.id))})]})]}),d&&(0,t.jsxs)("nav",{className:"order-2 flex flex-1 flex-wrap gap-[2.4rem]",children:[s&&s.length>0&&(0,t.jsx)("ul",{className:"flex flex-1 flex-col gap-[1.6rem] text-blanc80",children:s.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(y.Link,{className:(0,w.cn)("font-serif text-headlineH4Display transition-colors duration-200 hover:text-blanc",e.italicize&&"italic"),href:e.href,target:e.target,children:e.label})},e.id))}
11),(a??c)&&(0,t.jsxs)("div",{className:"flex flex-1 flex-col gap-[1.6rem]",children:[a&&a.length>0&&(0,t.jsx)("ul",{className:"flex flex-col gap-[0.8rem] text-blanc70",children:a.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(y.Link,{className:(0,w.cn)("text-headlineH5 capitalize transition-colors duration-200 hover:text-blanc",e.italicize&&"italic"),href:e.href,target:e.target,children:e.label})},e.id))}),c&&c.length>0&&(0,t.jsx)("ul",{className:"flex flex-col text-blanc/60",children:c.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(y.Link,{className:(0,w.cn)("text-body capitalize transition-colors duration-200 hover:text-blanc",e.italicize&&"italic"),href:e.href,target:e.target,children:e.label})},e.id))})]})]}),l&&(0,t.jsx)("div",{className:"order-1 max-w-full tablet:hidden desktop:order-3 desktop:inline-block",children:(0,t.jsx)(v.Subscribe,{...l,marketingControls:n,width:"50"})}),i&&(0,t.jsxs)("small",{className:"order-4 text-labelSmall uppercase text-blanc50 tablet:col-span-2",children:["© ",new Date().getFullYear()," ",i]})]})})]})};e.s(["FooterClient",0,({initialCenterSlug:e,initialData:a,initialDataUpdatedAt:u,locale:c})=>{let{centerSlug:d}=(0,n.useCenterSlug)(),h=(0,r.useTranslations)(),f=d===e,{data:m}=(0,i.useQuery)({...(({centerSlug:e,locale:t})=>(0,s.queryOptions)({gcTime:2592e6,persister:(0,l.getIndexedDBPersister)()?.persisterFn,queryFn:async()=>{let i=await fetch(new URL(`/api/d/${t}/${e}/footer`,o.env.NEXT_PUBLIC_PAYLOAD_URL));if(!i.ok)throw Error("Failed to fetch footer");let r=await i.json(),n=await b.safeParseAsync(r);if(!n.success)throw Error("Failed to parse footer data");return n.data},queryKey:["footer",t,e],staleTime:6e5}))({centerSlug:d,locale:c}),initialData:f?a:void 0,initialDataUpdatedAt:f?u:void 0,placeholderData:e=>e});return m?(0,t.jsx)(O,{...m,t:h}):null}],678840)},123382,(e,t,i)=>{!function(e){"use strict";var r="function",n="undefined",s="object",a="string",o="major",l="model",u="name",c="type",d="vendor",h="version",f="architecture",m="console",p="mobile",b="tablet",g="smarttv",y="wearable",v="embedded",w="Amazon",x="Apple",j="ASUS",O="BlackBerry",k="Browser",S="Chrome",C="Firefox",E="Google",T="Honor",P="Huawei",M="Microsoft",z="Motorola",A="Nvidia",N="OnePlus",I="Opera",_="OPPO",R="Samsung",D="Sharp",F="Sony",L="Xiaomi",q="Zebra",Q="Facebook",U="Chromium OS",G="Mac OS",$=" Browser",W=function(e,t){var i={};for(var r in e)t[r]&&t[r].length%2==0?i[r]=t[r].concat(e[r]):i[r]=e[r];return i},B=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},V=function(e,t){return typeof e===a&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===n?e:e.substring(0,500)},Y=function(e,t){for(var i,n,a,o,l,u,c=0;c<t.length&&!l;){var d=t[c],h=t[c+1];for(i=n=0;i<d.length&&!l&&d[i];)if(l=d[i++].exec(e))for(a=0;a<h.length;a++)u=l[++n],typeof(o=h[a])===s&&o.length>0?2===o.length?typeof o[1]==r?this[o[0]]=o[1].call(this,u):this[o[0]]=o[1]:3===o.length?typeof o[1]!==r||o[1].exec&&o[1].test?this[o[0]]=u?u.replace(o[
111],o[2]):void 0:this[o[0]]=u?o[1].call(this,u,o[2]):void 0:4===o.length&&(this[o[0]]=u?o[3].call(this,u.replace(o[1],o[2])):void 0):this[o]=u||void 0;c+=2}},X=function(e,t){for(var i in t)if(typeof t[i]===s&&t[i].length>0){for(var r=0;r<t[i].length;r++)if(V(t[i][r],e))return"?"===i?void 0:i}else if(V(t[i],e))return"?"===i?void 0:i;return t.hasOwnProperty("*")?t["*"]:e},J={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,h],[/opios[\/ ]+([\w\.]+)/i],[h,[u,I+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[u,I+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[u,I]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[u,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[h,[u,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[u,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[u,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[u,"Smart Lenovo "+k]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+k],h],[/\bfocus\/([\w\.]+)/i],[h,[u,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[u,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[u,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[u,"MIUI"+$]],[/fxios\/([\w\.-]+)/i],[h,[u,C]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[u,"360"]],[/\b(qq)\/([\w\.]+)/i],[[u,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1"+$],h],[/samsungbrowser\/([\w\.]+)/i],[h,[u,R+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[h,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[u,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[u],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[h,u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,Q],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[u,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,S+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[u,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[h,X,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],h],[/(wolvic|librewolf)\/([\w\.]+)/i],[u,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[u,C+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[u,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[u,[h,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[f,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[f,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[f,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[f,/ower/,"",K]],[/ sun4\w[;\)]/i],[[f,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;
vendor: 8,020 bytes, line 11
11|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[f,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,R],[c,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,R],[c,p]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[d,x],[c,p]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[d,x],[c,b]],[/(macintosh);/i],[l,[d,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,D],[c,p]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,T],[c,b]],[/honor([-\w ]+)[;\)]/i],[l,[d,T],[c,p]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[l,[d,P],[c,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[d,P],[c,p]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,L],[c,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[d,L],[c,p]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,_],[c,p]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,X,{OnePlus:["304","403","203"],"*":_}],[c,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[c,p]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[c,p]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[d,z],[c,p]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,z],[c,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,"LG"],[c,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,"LG"],[c,p]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[d,"Lenovo"],[c,b]],[/(nokia) (t[12][01])/i],[d,l,[c,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[c,p],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,E],[c,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[d,E],[c,p]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[d,F],[c,p]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,F],[c,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,N],[c,p]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,w],[c,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,w],[c,p]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[c,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[d,O],[c,p]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,j],[c,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,j],[c,p]],[/(nexus 9)/i],[l,[d,"HTC"],[c,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[c,p]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[d,"TCL"],[c,b]],[/(itel) ((\w+))/i],[[d,K],l,[c,X,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[c,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[c,p]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[c,p]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[c,p]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[c,p]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[c,p]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[d,"Nothing"],[c,p]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[c,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[c,p]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,l,[c,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[d,l,[c,p]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,l,[c,b]],[/(surface duo)/i],[l,[d,M],[c,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[c,p]],[/(u304aa)/i],[l,[d,"AT&T"],[c,p]],[/\bsie-(\w*)/i],[l,[d,"Siemens"],[c,p]],[/\b(rct\w+) b/i],[l,[d,"RCA"],[c,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[d,"Dell"],[c,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[d,"Verizon"],[c,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[d,"Barnes & Noble"],[c,b]],[/\b(tm\d{3}\w+) b/i],[l,[d,"NuVision"],[c,b]],[/\b(k88) b/i],[l,[d,"ZTE"],[c,b]],[/\b(nx\d{3}j) b/i],[l,[d,"ZTE"],[c,p]],[/\b(gen\d{3}) b.+49h/i],[l,[d,"Swiss"],[c,p]],[/\b(zur\d{3}) b/i],[l,[d,"Swiss"],[c,b]],[/\b((zeki)?tb.*\b) b/i],[l,[d,"Zeki"],[c,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],l,[c,b]],[/\b(ns-?\w{0,9}) b/i],[l,[d,"Insignia"],[c,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[d,"NextBook"],[c,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],l,[c,p]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],l,[c,p]],[/\b(ph-1) /i],[l,[d,"Essential"],[c,p]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[d,"Envizen"],[c,b]],[/\b(trio[-\w\. ]+) b/i],[l,[d,"MachSpeed"],[c,b]],[/\btu_(1491) b/i],[l,[d,"Rotor"],[c,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,A],[c,b]],[/(sprint) (\w+)/i],[d,l,[c,p]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,M],[c,p]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,q],[c,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,q],[c,p]],[/smart-tv.+(samsung)/i],[d,[c,g]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,R],[c,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,"LG"],[c,g]],[/(apple) ?tv/i],[d,[l,x+" TV"],[c,g]],[/crkey/i],[[l,S+"cast"],[d,E],[c,g]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,w],[c,g]],[/(shield \w+ tv)/i],[l,[d,A],[c,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,D],[c,g]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,F],[c,g]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,L],[c,g]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[c,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,H],[l,H],[c,g]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[c,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,l,[c,m]],[/droid.+; (shield)( bui|\))/i],[l,[d,A],[c,m]],[/(playstation \w+)/i],[l,[d,F],[c,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,M],[c,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,R],[c,y]],[/((pebble))app/i,/(asu
11s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[c,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,_],[c,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,x],[c,y]],[/(opwwe\d{3})/i],[l,[d,N],[c,y]],[/(moto 360)/i],[l,[d,z],[c,y]],[/(smartwatch 3)/i],[l,[d,F],[c,y]],[/(g watch r)/i],[l,[d,"LG"],[c,y]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,q],[c,y]],[/droid.+; (glass) \d/i],[l,[d,E],[c,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,l,[c,y]],[/; (quest( \d| pro)?)/i],[l,[d,Q],[c,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,v]],[/(aeobc)\b/i],[l,[d,w],[c,v]],[/(homepod).+mac os/i],[l,[d,x],[c,v]],[/windows iot/i],[[c,v]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[c,p]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[c,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,p]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[u,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[u,h],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,h],[/ladybird\//i],[[u,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,h],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[u,[h,X,J]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,X,J],[u,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,G],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,u],[/(ubuntu) ([\w\.]+) like android/i],[[u,/(.+)/,"$1 Touch"],h],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[u,h],[/\(bb(10);/i],[h,[u,O]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[u,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[u,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,U],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[u,h],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,h]]},ee=function(t,i){if(typeof t===s&&(i=t,t=void 0),!(this instanceof ee))return new ee(t,i).getResult();var m=typeof e!==n&&e.navigator?e.navigator:void 0,g=t||(m&&m.userAgent?m.userAgent:""),y=m&&m.userAgentData?m.userAgentData:void 0,v=i?W(Z,i):Z,w=m&&m.userAgent==g;return this.getBrowser=function(){var e,t={};return t[u]=void 0,t[h]=void 0,Y.call(t,g,v.browser),t[o]=typeof(e=t[h])===a?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,w&&m&&m.brave&&typeof m.brave.isBrave==r&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[f]=void 0,Y.call(e,g,v.cpu),e},this.getDevice=function(){var e={};return e[d]=void 0,e[l]=void 0,e[c]=void 0,Y.call(e,g,v.device),w&&
11!e[c]&&y&&y.mobile&&(e[c]=p),w&&"Macintosh"==e[l]&&m&&typeof m.standalone!==n&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[l]="iPad",e[c]=b),e},this.getEngine=function(){var e={};return e[u]=void 0,e[h]=void 0,Y.call(e,g,v.engine),e},this.getOS=function(){var e={};return e[u]=void 0,e[h]=void 0,Y.call(e,g,v.os),w&&!e[u]&&y&&y.platform&&"Unknown"!=y.platform&&(e[u]=y.platform.replace(/chrome os/i,U).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===a&&e.length>500?H(e,500):e,this},this.setUA(g),this};ee.VERSION="1.0.41",ee.BROWSER=B([u,h,o]),ee.CPU=B([f]),ee.DEVICE=B([l,d,c,m,p,g,b,y,v]),ee.ENGINE=ee.OS=B([u,h]),t.exports&&(i=t.exports=ee),i.UAParser=ee;var et=typeof e!==n&&(e.jQuery||e.Zepto);if(et&&!et.ua){var ei=new ee;et.ua=ei.getResult(),et.ua.get=function(){return ei.getUA()},et.ua.set=function(e){ei.setUA(e);var t=ei.getResult();for(var i in t)et.ua[i]=t[i]}}}("object"==typeof window?window:e.e)},768820,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e.r(216887),n=r&&"object"==typeof r&&"default"in r?r.default:r,s=e.r(123382),a=new s,o=a.getBrowser(),l=a.getCPU(),u=a.getDevice(),c=a.getEngine(),d=a.getOS(),h=a.getUA(),f=function(e){return a.setUA(e)},m=function(e){if(!e)return void console.error("No userAgent string was provided");var t=new s(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}},p=Object.freeze({ClientUAInstance:a,browser:o,cpu:l,device:u,engine:c,os:d,ua:h,setUa:f,parseUserAgent:m});function b(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e,t){if(null==e)return{};var i,r,n=function(e,t){if(null==e)return{};var i,r,n={},s=Object.keys(e);for(r=0;r<s.length;r++)i=s[r],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)i=s[r],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function j(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}var k="mobile",S="tablet",C="smarttv",E="console",T="wearable",P="embedded",M=void 0,z={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},A={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},N={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},I=function(e){switch(e){case k:return{isMobile:!0};case S:return{isTablet:!0};case C:return{isSmartTV:!0};case E:return{isConsole:!0};case T:return{isWearable:!0};case M:return{isBrowser:!0};case P:return{isEmbedded:!0};default:return N}},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},R=function(){return!!("u">typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},D=function(e){var t=R();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},F=function(e){return e.type===k},L=function(e){return e.type===S},q=function(e){var t=e.type;return t===k||t===S},Q=function(e){return e.type===C},U=function(e){return e.type===M},G=function(e){return e.type===T},$=function(e){return e.type===E},W=function(e){return e.type===P},B=function(e){return _(e.vendor)},V=function(e){return _(e.model)}
11,K=function(e){return _(e.type,"browser")},H=function(e){return e.name===A.Android},Y=function(e){return e.name===A.Windows},X=function(e){return e.name===A.MAC_OS},J=function(e){return e.name===A.WindowsPhone},Z=function(e){return e.name===A.IOS},ee=function(e){return _(e.version)},et=function(e){return _(e.name)},ei=function(e){return e.name===z.Chrome},er=function(e){return e.name===z.Firefox},en=function(e){return e.name===z.Chromium},es=function(e){return e.name===z.Edge},ea=function(e){return e.name===z.Yandex},eo=function(e){var t=e.name;return t===z.Safari||t===z.MobileSafari},el=function(e){return e.name===z.MobileSafari},eu=function(e){return e.name===z.Opera},ec=function(e){var t=e.name;return t===z.InternetExplorer||t===z.Ie},ed=function(e){return e.name===z.MIUI},eh=function(e){return e.name===z.SamsungBrowser},ef=function(e){return _(e.version)},em=function(e){return _(e.major)},ep=function(e){return _(e.name)},eb=function(e){return _(e.name)},eg=function(e){return _(e.version)},ey=function(){var e=R(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},ev=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},ew=function(){var e=R();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},ex=function(){return D("iPad")},ej=function(){return D("iPhone")},eO=function(){return D("iPod")},ek=function(e){return _(e)};function eS(e){var t=e||p,i=t.device,r=t.browser,n=t.os,s=t.engine,a=t.ua;return{isSmartTV:Q(i),isConsole:$(i),isWearable:G(i),isEmbedded:W(i),isMobileSafari:el(r)||ex(),isChromium:en(r),isMobile:q(i)||ex(),isMobileOnly:F(i),isTablet:L(i)||ex(),isBrowser:U(i),isDesktop:U(i),isAndroid:H(n),isWinPhone:J(n),isIOS:Z(n)||ex(),isChrome:ei(r),isFirefox:er(r),isSafari:eo(r),isOpera:eu(r),isIE:ec(r),osVersion:ee(n),osName:et(n),fullBrowserVersion:ef(r),browserVersion:em(r),browserName:ep(r),mobileVendor:B(i),mobileModel:V(i),engineName:eb(s),engineVersion:eg(s),getUA:ek(a),isEdge:es(r)||ev(a),isYandex:ea(r),deviceType:K(i),isIOS13:ew(),isIPad13:ex(),isIPhone13:ej(),isIPod13:eO(),isElectron:ey(),isEdgeChromium:ev(a),isLegacyEdge:es(r)&&!ev(a),isWindows:Y(n),isMacOs:X(n),isMIUI:ed(r),isSamsungBrowser:eh(r)}}var eC=Q(u),eE=$(u),eT=G(u),eP=W(u),eM=el(o)||ex(),ez=en(o),eA=q(u)||ex(),eN=F(u),eI=L(u)||ex(),e_=U(u),eR=U(u),eD=H(d),eF=J(d),eL=Z(d)||ex(),eq=ei(o),eQ=er(o),eU=eo(o),eG=eu(o),e$=ec(o),eW=ee(d),eB=et(d),eV=ef(o),eK=em(o),eH=ep(o),eY=B(u),eX=V(u),eJ=eb(c),eZ=eg(c),e0=ek(h),e1=es(o)||ev(h),e2=ea(o),e6=K(u),e3=ew(),e8=ex(),e4=ej(),e5=eO(),e7=ey(),e9=ev(h),te=es(o)&&!ev(h),tt=Y(d),ti=X(d),tr=ed(o),tn=eh(o);function ts(e){return m(e||window.navigator.userAgent)}i.AndroidView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return eD?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.BrowserTypes=z,i.BrowserView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return e_?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.ConsoleView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return eE?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.CustomView=function(e){var t=e.renderWithFragment,i=e.children,s=(e.viewClassName,e.style,e.condition),a=x(e,["renderWithFragment","children","viewClassName","style","condition"]);return s?t?n.createElement(r.Fragment,null,i):n.createElement("div",a,i):null},i.IEView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return e$?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.IOSView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return eL?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.MobileOnlyView=function(e){var t=e.renderWithFragment,i=e.children,s=(e.viewClassName,e.style,x(e,["renderWithFragment","children","viewClassName","style"]));return eN?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.MobileView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return eA?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.OsTypes=A,i.SmartTVView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return eC?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.TabletView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return eI?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.WearableView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return eT?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.WinPhoneView=function(e){var t=e.renderWithFragment,i=e.children,s=x(e,["renderWithFragment","children"]);return eF?t?n.createElement(r.Fragment,null,i):n.createElement("div",s,i):null},i.browserName=eH,i.browserVersion=eK,i.deviceDetect=function(e){var t,i,r,n,s=e?m(e):p,a=s.device,o=s.browser,l=s.engine,u=s.os,c=s.ua,d=I(a.type),h=d.isBrowser,f=d.isMobile,g=d.isTablet,y=d.isSmartTV,v=d.isConsole,w=d.isWearable,x=d.isEmbedded;
11if(h)return{isBrowser:h,browserMajorVersion:_(o.major),browserFullVersion:_(o.version),browserName:_(o.name),engineName:_(l.name),engineVersion:_(l.version),osName:_(u.name),osVersion:_(u.version),userAgent:_(c)};if(y)return{isSmartTV:y,engineName:_(l.name),engineVersion:_(l.version),osName:_(u.name),osVersion:_(u.version),userAgent:_(c)};if(v)return{isConsole:v,engineName:_(l.name),engineVersion:_(l.version),osName:_(u.name),osVersion:_(u.version),userAgent:_(c)};if(f||g){return t=d,i=a,r=u,n=c,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?b(Object(i),!0).forEach(function(t){var r,n,s;r=e,n=t,s=i[t],n in r?Object.defineProperty(r,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[n]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({},t,{vendor:_(i.vendor),model:_(i.model),os:_(r.name),osVersion:_(r.version),ua:_(n)})}return w?{isWearable:w,engineName:_(l.name),engineVersion:_(l.version),osName:_(u.name),osVersion:_(u.version),userAgent:_(c)}:x?{isEmbedded:x,vendor:_(a.vendor),model:_(a.model),engineName:_(l.name),engineVersion:_(l.version),osName:_(u.name),osVersion:_(u.version),userAgent:_(c)}:void 0},i.deviceType=e6,i.engineName=eJ,i.engineVersion=eZ,i.fullBrowserVersion=eV,i.getSelectorsByUserAgent=function(e){if(!e||"string"!=typeof e)return void console.error("No valid user agent string was provided");var t=m(e);return eS({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})},i.getUA=e0,i.isAndroid=eD,i.isBrowser=e_,i.isChrome=eq,i.isChromium=ez,i.isConsole=eE,i.isDesktop=eR,i.isEdge=e1,i.isEdgeChromium=e9,i.isElectron=e7,i.isEmbedded=eP,i.isFirefox=eQ,i.isIE=e$,i.isIOS=eL,i.isIOS13=e3,i.isIPad13=e8,i.isIPhone13=e4,i.isIPod13=e5,i.isLegacyEdge=te,i.isMIUI=tr,i.isMacOs=ti,i.isMobile=eA,i.isMobileOnly=eN,i.isMobileSafari=eM,i.isOpera=eG,i.isSafari=eU,i.isSamsungBrowser=tn,i.isSmartTV=eC,i.isTablet=eI,i.isWearable=eT,i.isWinPhone=eF,i.isWindows=tt,i.isYandex=e2,i.mobileModel=eX,i.mobileVendor=eY,i.osName=eB,i.osVersion=eW,i.parseUserAgent=m,i.setUserAgent=function(e){return f(e)},i.useDeviceData=ts,i.useDeviceSelectors=function(e){var t=ts(e||window.navigator.userAgent);return[eS(t),t]},i.useMobileOrientation=function(){var e,t=function(e){if(Array.isArray(e))return e}(e=r.useState(function(){var e=90*(window.innerWidth>window.innerHeight);return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}}))||function(e){var t,i,r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(t=r.next()).done)&&(n.push(t.value),2!==n.length);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return n}}(e)||function(e){if(e){if("string"==typeof e)return O(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return O(e,2)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),i=t[0],n=t[1],s=r.useCallback(function(){var e=90*(window.innerWidth>window.innerHeight),t={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};i.orientation!==t.orientation&&n(t)},[i.orientation]);return r.useEffect(function(){return("u"<typeof window?"undefined":g(window))!==void 0&&eA&&(s(),window.addEventListener("load",s,!1),window.addEventListener("resize",s,!1)),function(){window.removeEventListener("resize",s,!1),window.removeEventListener("load",s,!1)}},[s]),i},i.withOrientationChange=function(e){return function(t){var i;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function r(e){var t;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return(t=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return j(e)}(this,v(r).call(this,e))).isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(j(t)),t.onOrientationChange=t.onOr
11ientationChange.bind(j(t)),t.onPageLoad=t.onPageLoad.bind(j(t)),t.state={isLandscape:!1,isPortrait:!1},t}return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&w(r,t),i=[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=90*(window.innerWidth>window.innerHeight);this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){("u"<typeof window?"undefined":g(window))!==void 0&&eA&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return n.createElement(e,y({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}],function(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(r.prototype,i),r}(n.Component)}},854084,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let r=e.r(428687);function n({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},987680,(e,t,i)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"encodeURIPath",{enumerable:!0,get:function(){return r}})},557212,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"PreloadChunks",{enumerable:!0,get:function(){return l}});let r=e.r(573378),n=e.r(372400),s=e.r(106839),a=e.r(987680),o=e.r(116960);function l({moduleIds:e}){if("u">typeof window)return null;let t=s.workAsyncStorage.getStore();if(void 0===t)return null;let i=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;i.push(...e)}}if(0===i.length)return null;let u=(0,o.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:i.map(e=>{let i=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:i,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(i,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},759870,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return u}});let r=e.r(573378),n=e.r(216887),s=e.r(854084),a=e.r(557212);function o(e){return{default:e&&"default"in e?e.default:e}}let l={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},u=function(e){let t={...l,...e},i=(0,n.lazy)(()=>t.loader().then(o)),u=t.loading;function c(e){let o=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,l=!t.ssr||!!t.loading,c=l?n.Suspense:n.Fragment,d=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(i,{...e})]}):(0,r.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(i,{...e})});return(0,r.jsx)(c,{...l?{fallback:o}:{},children:d})}return c.displayName="LoadableComponent",c}},60907,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return n}});let r=e.r(481258)._(e.r(759870));function n(e,t){let i={};"function"==typeof e&&(i.loader=e);let n={...i,...t};return(0,r.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
11dule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},477958,e=>{"use strict";var t=e.i(573378),i=e.i(216887),r=e.i(60907),n=e.i(213973),s=e.i(856794),a=e.i(73125),o=e.i(275618);e.i(365461);var l=e.i(333991);let u=({isOpen:i,onCloseAction:u})=>{let c,d=(0,s.useLocale)(),{id:h}=(0,l.useCenter)(),f=(0,a.useTranslations)("Common"),{data:m}=(0,n.useQuery)((c=h??"",(0,o.queryOptions)({queryFn:async({queryKey:e})=>{let[,t,i]=e,r=await fetch(`/api/d/${t}/center/${i}/regions`);if(!r.ok)throw Error("Failed to fetch center regions");return r.json()},queryKey:["centerRegions",d,c],staleTime:3e5}))),p=(0,r.default)(async()=>(await e.A(59337)).RegionModal,{loadableGenerated:{modules:[446779]},ssr:!1});return(0,t.jsx)(p,{allRegions:m?.regions??[],isOpen:i,label:f("Regions"),onClose:u})},c=({isOpen:i,onCloseAction:u})=>{let c,d=(0,s.useLocale)(),{id:h}=(0,l.useCenter)(),f=(0,a.useTranslations)("Common"),{data:m}=(0,n.useQuery)((c=h??"",(0,o.queryOptions)({queryFn:async({queryKey:e})=>{let[,t,i]=e,r=await fetch(`/api/d/${t}/center/${i}/topics`);if(!r.ok)throw Error("Failed to fetch center topics");return r.json()},queryKey:["centerTopics",d,c],staleTime:3e5}))),p=(0,r.default)(async()=>(await e.A(346216)).TopicModal,{loadableGenerated:{modules:[956257]},ssr:!1});return(0,t.jsx)(p,{allTopics:m?.topics??[],isOpen:i,label:f("Topics"),onClose:u})},d=(0,i.createContext)({regions:{closeModal:()=>{},openModal:()=>{}},topics:{closeModal:()=>{},openModal:()=>{}}});e.s(["ModalsProvider",0,({children:e})=>{let[r,n]=(0,i.useState)(!1),s=()=>{n(!1)},[a,o]=(0,i.useState)(!1),l=()=>{o(!1)};return(0,t.jsxs)(d.Provider,{value:{regions:{closeModal:l,openModal:()=>{o(!0)}},topics:{closeModal:s,openModal:()=>{n(!0)}}},children:[e,r&&(0,t.jsx)(c,{isOpen:r,onCloseAction:s}),a&&(0,t.jsx)(u,{isOpen:a,onCloseAction:l})]})},"useModals",0,()=>(0,i.useContext)(d)],477958)},641446,e=>{"use strict";var t=e.i(573378),i=e.i(216887),r=e.i(213973);e.i(814647);var n=e.i(592421),s=e.i(275618),a=e.i(832356),o=e.i(896137),l=e.i(995860);let u=a.z.object({centerId:a.z.string(),centers:a.z.array(a.z.object({href:a.z.string(),id:a.z.string(),locations:a.z.object({primaryLocation:a.z.string(),secondaryLocation:a.z.object({href:a.z.string(),id:a.z.string(),name:a.z.string()}).optional()}),name:a.z.string()})),formControls:a.z.object({centerAffiliationAll:a.z.string().nullish(),englishNewsletterAll:a.z.string().nullish(),nonEnglishNewsletterAll:a.z.string().nullish()}).nullish(),items:a.z.array(a.z.object({href:a.z.string(),id:a.z.string(),italicize:a.z.boolean().optional(),name:a.z.string()})),languages:a.z.array(a.z.object({code:a.z.string(),name:a.z.string()})).optional(),linkLocale:a.z.custom(),logos:a.z.object({desktop:a.z.object({alt:a.z.string(),height:a.z.number(),src:a.z.string(),width:a.z.number()}).optional(),mobile:a.z.object({alt:a.z.string(),height:a.z.number(),src:a.z.string(),width:a.z.number()}).optional()}).optional(),moreItems:a.z.array(a.z.object({href:a.z.string(),id:a.z.string(),isSecondary:a.z.boolean().optional(),name:a.z.string()})).optional(),regions:a.z.array(a.z.object({href:a.z.string(),id:a.z.string(),name:a.z.string()})).optional(),rootPath:a.z.string(),showDonate:a.z.boolean().optional(),tags:a.z.array(a.z.object({href:a.z.string(),id:a.z.string(),name:a.z.string()})),topics:a.z.array(a.z.object({href:a.z.string(),id:a.z.string(),name:a.z.string()})).optional()});var c=e.i(8711),d=e.i(856794),h=e.i(73125),f=e.i(263014),m=e.i(536925),p=e.i(940105),b=e.i(554295),g=e.i(637531);e.i(700602);var y=e.i(914889);e.i(161148);var v=e.i(877957),w=e.i(565319),x=e.i(768820);let j="u"<typeof document?null:document;e.i(389055);var O=e.i(765237),k=e.i(36193);e.i(365461);var S=e.i(333991);let C=({centers:e,onClose:r})=>{let n=(0,S.useCenter)(),s=e.find(e=>e.id===n.id)??e[0];if(!s)throw Error("No centers available");let[a,o]=(0,i.useState)(s);return(0,t.jsxs)(k.Root,{children:[(0,t.jsx)(k.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)("button",{className:"flex w-full items-center gap-8 bg-blanc py-[0.8rem] font-sans text-[1.6rem] font-[var(--body-base-font-we
11ight)] leading-[var(--body-base-line-height)] tracking-[var(--body-base-letter-spacing)] text-blueDark",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("span",{className:"text-start text-body",children:a.name}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-labelSmall",children:[(0,t.jsx)(g.Icon,{className:"size-[0.8rem] shrink-0",name:"Location"}),(0,t.jsx)("span",{className:"text-labelSmall uppercase",children:a.locations.primaryLocation})]})]}),(0,t.jsx)(g.Icon,{className:"shrink-0",name:"ArrowDown"})]})}),(0,t.jsx)(k.DropdownMenuContent,{className:"flex w-dvw flex-col gap-8 border border-solid bg-blanc p-[2.2rem]",children:e.map(e=>(0,t.jsx)(k.Item,{className:(0,w.cn)(a.id===e.id?"text-blueDark":"text-blueDark/[0.66]"),children:(0,t.jsxs)(b.Link,{className:"flex flex-col gap-2",href:e.href,locale:"en",onClick:r,children:[(0,t.jsx)("span",{className:"text-body",children:e.name}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-labelSmall",children:[(0,t.jsx)(g.Icon,{height:"8",name:"Location",width:"8"}),(0,t.jsx)("span",{className:"text-labelSmall uppercase",children:e.locations.primaryLocation})]})]})},e.id))})]})},E=({className:e,href:i,italicize:r,linkLocale:n,name:s})=>(0,t.jsx)(c.Item,{className:(0,w.cn)("text-blueDark/[0.66] hover:text-blueDark/50",r&&"italic",e),children:(0,t.jsx)(c.Link,{asChild:!0,children:(0,t.jsx)(b.Link,{href:i,locale:n,children:s})})},`link-${s}-${i}`);var T=e.i(13418);let P=({logos:e={},rootPath:i})=>(0,t.jsxs)(b.Link,{className:"flex items-center justify-center py-[2.2rem]",href:i,children:[e.desktop&&(0,t.jsx)(T.default,{alt:e.desktop.alt,className:"max-desktop:hidden",height:38,priority:!0,src:e.desktop.src,width:38*(e.desktop.width/e.desktop.height)}),e.mobile&&(0,t.jsx)(T.default,{alt:e.mobile.alt,className:"relative h-[38px] object-contain desktop:hidden",height:38,priority:!0,src:e.mobile.src,width:38*(e.mobile.width/e.mobile.height)})]});var M=e.i(921041),M=M;let z=({className:e})=>(0,t.jsx)(M.Root,{className:(0,w.cn)("h-[38px] w-px bg-noir/20",e),orientation:"vertical"});e.i(170734);var A=e.i(737709);let N=({items:e=[],onSeeAll:i,t:r,title:s})=>{let{centerSlug:a}=(0,n.useCenterSlug)();return(0,t.jsxs)("div",{className:"flex flex-col gap-[2.2rem]",children:[(0,t.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-x-[2.2rem] pe-[5.6rem]",children:[(0,t.jsx)("span",{className:"text-headlineH5 text-noir",children:s}),(0,t.jsx)(v.Button,{className:"max-w-fit text-nowrap p-0",onClick:i,variant:"tertiary",children:r("Common.seeAll",{title:s})})]}),(0,t.jsx)("ul",{className:"grid grid-cols-3 gap-x-[5.6rem] gap-y-[1.6rem] text-body",children:e.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(b.Link,{href:"global"===a?e.href:`/${a}${e.href}`,children:e.name})},`link-${e.name}-${e.href}`))})]})},I=({onSeeAllRegions:e,onSeeAllTopics:i,regions:r=[],t:n,topics:s=[]})=>(0,t.jsx)("div",{className:"z-50 w-full border border-solid bg-blanc",children:(0,t.jsxs)(A.Constrainer,{className:"flex flex-row",children:[(0,t.jsx)("div",{className:"flex flex-1 justify-center border-e border-solid py-[4.65rem]",children:(0,t.jsx)(N,{items:s,onSeeAll:i,t:n,title:n("Common.topics")})}),(0,t.jsx)("div",{className:"flex flex-1 justify-center py-[4.65rem]",children:(0,t.jsx)(N,{items:r,onSeeAll:e,t:n,title:n("Common.regions")})})]})}),_={onPointerEnter:e=>{e.preventDefault()},onPointerLeave:e=>{e.preventDefault()},onPointerMove:e=>{e.preventDefault()}},R={onPointerEnter:e=>{e.preventDefault()},onPointerLeave:e=>{e.preventDefault()}},D=({canonicalDomain:e,centers:r,items:s,languages:a,linkLocale:o,logos:l,moreItems:u,onSeeAllRegions:k,onSeeAllTopics:S,regions:T,rootPath:M,showDonate:A,tags:N,topics:D})=>{let[F,L]=(0,i.useState)(!1),[q,Q]=(()=>{let e=(0,i.useRef)(!1),{body:t}=j??{},r=j?.documentElement,n=(0,i.useCallback)(()=>{t?.style&&e.current&&(r&&(r.style.position="",r.style.overflow=""),t.style.position="",t.style.overflow="",t.style.paddingRight="",e.current=!1)},[t?.style,r]);return(0,i.useEffect)(()=>()=>{e.current&&n()},[n]),[()=>{if(!t?.style||e.current)return;let i=x.isMobile?0:window.innerWidth-(r?.clientWidth??0),n=Number.parseInt(globalThis.getComputedStyle(t).getPropertyValue("padding-right"),10)||0;r&&(r.style.position="relative",r.style.overflow="hidden"),t.style.position="relative",t.style.overflow="hidden",t.style.paddingRight=`${(n+i).toString()}px`,e.current=!0},n]})(),[U,G]=(0,i.useState)(""),$=(0,m.useWindowSize)(),W=(0,h.useTranslations)(),{centerSlug:B}=(0,n.useCenterSlug)(),V=(0,d.useLocale)(),K=(0,f.getLangDir)(V);(0,i.useEffect)(()=>{G("")},[$]),(0,i.useEffect)(()=>{"mobile-menu"!==U&&L(!1)},[U]),(0,i.useEffect)(()=>{F?q():Q()},[F,q,Q,U]);let H=u?.filter(e=>!e.isSecondary),Y=u?.filter(e=>e.isSecondary);return(0,t.jsx)(c.Root,{asChild:!0,delayDuration:0,dir:K,onValueChange:e=>{G(e),L(!!e)},value:U,children:(0,t.jsxs)("header",{className:(0,w.cn)("sticky top-0 z-50 bg-blanc px-[2.2rem]",F&&"fixed end-0 start-0 top-0"),children:[(0,t.jsxs)("div",{className:"flex h-[calc(38px+4.4rem)] items-center justify-center gap-[2.4rem]",children:[(0,t.jsx)("div",{className:"flex flex-1 grow items-center gap-4",children:(0,t.jsxs)(c.List,{className:"flex items-center gap-[1.2rem] font-sans text-[1.6rem] font-[var(--body-base-font-we
11ight)] leading-[var(--body-base-line-height)] tracking-[var(--body-base-letter-spacing)] text-blueDark/[0.66]",children:[(0,t.jsxs)(c.Item,{className:"desktop:hidden",value:"mobile-menu",children:[(0,t.jsx)(c.Trigger,{..._,children:"mobile-menu"===U?(0,t.jsx)(g.Icon,{name:"X"}):(0,t.jsx)(g.Icon,{name:"Hamburger"})}),(0,t.jsx)(c.Content,{className:"flex h-[calc(100vh-(38px+4.4rem))] w-full overflow-y-auto border-t border-solid bg-blanc",...R,children:(0,t.jsxs)("div",{className:"flex h-full w-full flex-col",children:[(0,t.jsx)("div",{className:"sticky top-0 border-b border-solid px-[2.2rem]",children:(0,t.jsx)(C,{centers:r,onClose:()=>{G("")}})}),(0,t.jsxs)("div",{className:"flex h-full grow flex-col justify-between",children:[(0,t.jsxs)("div",{className:"flex w-full flex-wrap justify-between gap-[2.4rem] p-[2.4rem] tablet:grid tablet:grid-cols-[1.5fr_1fr] tablet:px-[6.2rem] tablet:py-[4.6rem]",children:[(0,t.jsx)("ul",{className:"col-span-1 flex flex-col gap-[2.2rem]",children:s.map(e=>(0,i.createElement)(E,{...e,className:"text-[2.2rem] font-medium leading-[2.4rem] text-blueDark tablet:text-[4.8rem] tablet:leading-[51.4286px]",italicize:e.italicize,key:e.id,linkLocale:o}))}),(0,t.jsx)("ul",{className:"col-span-1 flex flex-col gap-[1.6rem] tablet:gap-[2.2rem]",children:u?.map(e=>(0,i.createElement)(E,{...e,className:"text-[1.4rem] font-medium leading-[1.6rem] text-blueDark tablet:text-[1.8rem] tablet:leading-[20.5714px]",italicize:e.italicize,key:e.id,linkLocale:o}))})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-[3.2rem]",children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-[0.4rem] px-[2.4rem] tablet:px-[6.2rem]",children:N.map(e=>(0,t.jsx)(y.Badge,{asChild:!0,children:(0,t.jsx)(b.Link,{href:e.href,onClick:()=>{G("")},children:e.name})},e.id))}),(0,t.jsxs)("div",{className:"flex flex-col border-t border-solid tablet:flex-row",children:[(0,t.jsx)("div",{className:"flex flex-1 grow items-center justify-center border-b border-solid py-[2.9rem] tablet:border-e",children:(0,t.jsx)(v.Button,{onClick:S,variant:"tertiary",children:W("Common.seeAll",{title:W("Common.topics")})})}),(0,t.jsx)("div",{className:"flex flex-1 grow items-center justify-center py-[2.9rem]",children:(0,t.jsx)(v.Button,{onClick:k,variant:"tertiary",children:W("Common.seeAll",{title:W("Common.regions")})})})]})]})]})]})})]}),(0,t.jsxs)(c.Item,{className:"text-blueDark/[0.66] hover:text-blueDark/50 max-desktop:hidden",value:"center-selector",children:[(0,t.jsx)(c.Trigger,{..._,className:"current-center-label",children:(0,t.jsxs)("span",{className:"flex items-center gap-2 text-nowrap",children:[W("Navigation.globalLocations"),(0,t.jsx)(g.Icon,{className:(0,w.cn)("opacity-60","center-selector"===U&&"rotate-180"),name:"ArrowDown"})]})}),(0,t.jsx)(c.Content,{className:"flex w-full",...R,children:(0,t.jsx)(c.List,{className:"flex flex-col gap-8 border border-solid bg-blanc p-[2.2rem]",children:r.map(i=>(0,t.jsx)(c.Item,{className:"text-blueDark/[0.66]",children:(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsx)(c.Link,{asChild:!0,children:(0,t.jsxs)(b.Link,{className:"flex flex-col gap-2 transition-colors duration-200 hover:text-blueDark/50",href:`${e??""}${i.href}`,locale:"en",children:[(0,t.jsx)("span",{className:"text-body",children:i.name}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-labelSmall",children:[(0,t.jsx)(g.Icon,{height:"8",name:"Location",width:"8"}),(0,t.jsx)("span",{className:"text-labelSmall uppercase",children:i.locations.primaryLocation})]})]})}),i.locations.secondaryLocation&&(0,t.jsx)(c.Link,{asChild:!0,children:(0,t.jsx)(b.Link,{className:"transition-colors duration-200 hover:text-blueDark/50",href:`${e??""}${i.locations.secondaryLocation.href}`,locale:"en",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 text-labelSmall",children:[(0,t.jsx)(g.Icon,{height:"8",name:"Location",width:"8"}),(0,t.jsx)("span",{className:"text-labelSmall uppercase",children:i.locations.secondaryLocation.name})]})})})]})},i.id))})})]}),(0,t.jsx)(z,{className:"max-desktop:hidden"}),s.map(e=>(0,i.createElement)(E,{...e,className:"nav-link-text text-nowrap max-desktop:hidden",italicize:e.italicize,key:e.id,linkLocale:o})),u&&u.length>0&&(0,t.jsxs)(c.Item,{className:"text-blueDark/[0.66] hover:text-blueDark/50 max-desktop:hidden",value:"more-selector",children:[(0,t.jsx)(c.Trigger,{..._,children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[W("Common.more"),(0,t.jsx)(g.Icon,{className:(0,w.cn)("opacity-60","more-selector"===U&&"rotate-180"),name:"ArrowDown"})]})}
11),(0,t.jsx)(c.Content,{className:"absolute top-full",...R,children:(0,t.jsxs)(c.List,{className:"text-nowrap border border-solid bg-blanc",children:[H?.map(e=>(0,i.createElement)(E,{...e,className:(0,w.cn)("border-b border-solid px-[2.4rem] py-[1.6rem]",Y&&0===Y.length&&"last:border-b-0"),italicize:e.italicize,key:e.id,linkLocale:o})),Y&&Y.length>0&&(0,t.jsx)("div",{className:"px-[2.4rem] py-[2.2rem]",children:Y.map(e=>(0,i.createElement)(E,{...e,className:"border-b-0 py-[1.2rem] text-bodyExtraSmall first:pt-0 last:pb-0",italicize:e.italicize,key:e.id,linkLocale:o}))})]})})]})]})}),(0,t.jsx)(P,{logos:l,rootPath:M}),(0,t.jsxs)("div",{className:"flex flex-1 grow items-center justify-end gap-4",children:[N.map(e=>(0,t.jsx)(y.Badge,{asChild:!0,className:"max-desktop:hidden",children:(0,t.jsx)(b.Link,{className:"nav-tag",href:e.href,children:e.name})},e.id)),(0,t.jsxs)(c.List,{className:"flex items-center gap-[1.2rem] font-sans text-[1.6rem] font-[var(--body-base-font-weight)] leading-[var(--body-base-line-height)] tracking-[var(--body-base-letter-spacing)]",children:[(0,t.jsxs)(c.Item,{className:"h-[38px] text-blueDark/[0.66] hover:text-blueDark/50 max-desktop:hidden",value:"topics-regions-selector",children:[(0,t.jsx)(c.Trigger,{..._,className:"h-full",children:(0,t.jsxs)("span",{className:"flex h-full items-center gap-2 text-nowrap",children:[W("Common.topicsAndRegions"),(0,t.jsx)(g.Icon,{className:(0,w.cn)("opacity-60","topics-regions-selector"===U&&"rotate-180"),name:"ArrowDown"})]})}),(0,t.jsx)(c.Content,{className:"flex w-full",...R,children:(0,t.jsx)(I,{onSeeAllRegions:k,onSeeAllTopics:S,regions:T,t:W,topics:D})})]}),A&&(0,t.jsx)(c.Item,{value:"donate",children:(0,t.jsx)(y.Badge,{asChild:!0,className:"max-desktop:hidden",theme:"teal",children:(0,t.jsx)(b.Link,{href:"https://donate.carnegieendowment.org/support",children:W("Navigation.donate")})})}),(0,t.jsx)(O.ContentLanguageSelector,{href:B===p.DEFAULT_CENTER_SLUG?"/":`/${B}`,languages:a}),(0,t.jsx)(z,{className:"max-desktop:hidden"}),(0,t.jsx)(c.Item,{className:"text-blueDark/[0.66] hover:text-blueDark/50",children:(0,t.jsx)(c.Link,{asChild:!0,children:(0,t.jsx)(b.Link,{className:"search-toggle",href:"global"===B?"/search":`/${B}/search`,children:(0,t.jsx)(g.Icon,{name:"Search"})})})})]})]})]}),!["language-selector","more-selector"].includes(U)&&(0,t.jsx)(c.Viewport,{className:"fixed inset-0 top-[calc(38px+4.4rem)]"})]})})};var F=e.i(477958);e.s(["NavigationClient",0,({canonicalDomain:e,initialCenterSlug:a,initialData:c,initialDataUpdatedAt:d,locale:h})=>{let{centerSlug:f}=(0,n.useCenterSlug)(),{setCenterAffiliationValue:m,setEnglishNewsletterValue:p,setId:b,setNonEnglishNewsletterValue:g}=(0,S.useCenter)(),{regions:y,topics:v}=(0,F.useModals)(),w=f===a,{data:x}=(0,r.useQuery)({...(({centerSlug:e,locale:t})=>(0,s.queryOptions)({gcTime:2592e6,persister:(0,l.getIndexedDBPersister)()?.persisterFn,queryFn:async({queryKey:e})=>{let[,t,i]=e,r=await fetch(new URL(`/api/d/${t}/${i}/navigation`,o.env.NEXT_PUBLIC_PAYLOAD_URL));if(!r.ok)throw Error("Failed to fetch navigation");let n=await u.safeParseAsync(await r.json());if(!n.success)throw Error("Failed to parse navigation");return n.data},queryKey:["navigation",t,e],staleTime:6e5}))({centerSlug:f,locale:h}),initialData:w?c:void 0,initialDataUpdatedAt:w?d:void 0,placeholderData:e=>e}),j=x?.centerId,O=x?.formControls;return((0,i.useEffect)(()=>{j&&b(j)},[j,b]),(0,i.useEffect)(()=>{O?.centerAffiliationAll&&m(O.centerAffiliationAll)},[O?.centerAffiliationAll,m]),(0,i.useEffect)(()=>{O?.englishNewsletterAll&&p(O.englishNewsletterAll)},[O?.englishNewsletterAll,p]),(0,i.useEffect)(()=>{O?.nonEnglishNewsletterAll&&g(O.nonEnglishNewsletterAll)},[O?.nonEnglishNewsletterAll,g]),x)?(0,t.jsx)(D,{canonicalDomain:e,centers:x.centers,items:x.items,languages:x.languages,linkLocale:x.linkLocale,logos:x.logos,moreItems:x.moreItems,onSeeAllRegions:y.openModal,onSeeAllTopics:v.openModal,regions:x.regions,rootPath:x.rootPath,showDonate:x.showDonate,tags:x.tags,topics:x.topics}):null}],641446)},869261,e=>{"use strict";var t=e.i(856794),i=e.i(573378);e.s(["default",0,function({locale:e,...r}){if(!e)throw Error(void 0);return(0,i.jsx)(t.IntlProvider,{locale:e,...r})}])},983910,e=>{"use strict";let t;var i=e.i(573378),r=e.i(198506);e.i(366805);var n=function(){return null},s=e.i(216887);e.i(469464);var a=e.i(645357),o=e.i(348050),l=e.i(828630),u=e.i(873412),c=class extends u.Subscribable{constructor(e={}){super(),this.config=e,this.#F=new Map}#F;build(e,t,i){let r=t.queryKey,n=t.queryHash??(0,a.hashQueryKeyByOptions)(r,t),s=this.get(n);return s||(s=new o.Query({client:e,queryKey:r,queryHash:n,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#F.has(e.queryHash)||(this.#F.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#F.get(e.queryHash);t&&(e.destroy(),t===e&&this.#F.delete(e.queryHash),this.notify({type:"removed",query:e}))}
11clear(){l.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#F.get(e)}getAll(){return[...this.#F.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,a.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,a.matchQuery)(e,t)):t}notify(e){l.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){l.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){l.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},d=e.i(1474),h=e.i(479540),f=class extends d.Removable{#c;#L;#q;#d;constructor(e){super(),this.#c=e.client,this.mutationId=e.mutationId,this.#q=e.mutationCache,this.#L=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#L.includes(e)||(this.#L.push(e),this.clearGcTimeout(),this.#q.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#L=this.#L.filter(t=>t!==e),this.scheduleGc(),this.#q.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#L.length||("pending"===this.state.status?this.scheduleGc():this.#q.remove(this))}continue(){return this.#d?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#m({type:"continue"})},i={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#d=(0,h.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,i):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#q.canRun(this)});let r="pending"===this.state.status,n=!this.#d.canStart();try{if(r)t();else{this.#m({type:"pending",variables:e,isPaused:n}),await this.#q.config.onMutate?.(e,this,i);let t=await this.options.onMutate?.(e,i);t!==this.state.context&&this.#m({type:"pending",context:t,variables:e,isPaused:n})}let s=await this.#d.start();return await this.#q.config.onSuccess?.(s,e,this.state.context,this,i),await this.options.onSuccess?.(s,e,this.state.context,i),await this.#q.config.onSettled?.(s,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(s,null,e,this.state.context,i),this.#m({type:"success",data:s}),s}catch(t){try{throw await this.#q.config.onError?.(t,e,this.state.context,this,i),await this.options.onError?.(t,e,this.state.context,i),await this.#q.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(void 0,t,e,this.state.context,i),t}finally{this.#m({type:"error",error:t})}}finally{this.#q.runNext(this)}}#m(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),l.notifyManager.batch(()=>{this.#L.forEach(t=>{t.onMutationUpdate(e)}),this.#q.notify({mutation:this,type:"updated",action:e})})}},m=u,p=class extends m.Subscribable{constructor(e={}){super(),this.config=e,this.#Q=new Set,this.#U=new Map,this.#G=0}#Q;#U;#G;build(e,t,i){let r=new f({client:e,mutationCache:this,mutationId:++this.#G,options:e.defaultMutationOptions(t),state:i});return this.add(r),r}add(e){this.#Q.add(e);let t=b(e);if("string"==typeof t){let i=this.#U.get(t);i?i.push(e):this.#U.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#Q.delete(e)){let t=b(e);
11if("string"==typeof t){let i=this.#U.get(t);if(i)if(i.length>1){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}else i[0]===e&&this.#U.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=b(e);if("string"!=typeof t)return!0;{let i=this.#U.get(t),r=i?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=b(e);if("string"!=typeof t)return Promise.resolve();{let i=this.#U.get(t)?.find(t=>t!==e&&t.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){l.notifyManager.batch(()=>{this.#Q.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#Q.clear(),this.#U.clear()})}getAll(){return Array.from(this.#Q)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,a.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,a.matchMutation)(e,t))}notify(e){l.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return l.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(a.noop))))}};function b(e){return e.options.scope?.id}var g=e.i(34638),y=e.i(220498);function v(e){return{onFetch:(t,i)=>{let r=t.options,n=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],o=t.state.data?.pageParams||[],l={pages:[],pageParams:[]},u=0,c=async()=>{let i=!1,c=(0,a.ensureQueryFn)(t.options,t.fetchOptions),d=async(e,r,n)=>{let s;if(i)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let o=(Object.defineProperty(s={client:t.client,queryKey:t.queryKey,pageParam:r,direction:n?"backward":"forward",meta:t.options.meta},"signal",{enumerable:!0,get:()=>(t.signal.aborted?i=!0:t.signal.addEventListener("abort",()=>{i=!0}),t.signal)}),s),l=await c(o),{maxPages:u}=t.options,d=n?a.addToStart:a.addToEnd;return{pages:d(e.pages,l,u),pageParams:d(e.pageParams,r,u)}};if(n&&s.length){let e="backward"===n,t={pages:s,pageParams:o},i=(e?function(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}:w)(r,t);l=await d(t,i,e)}else{let t=e??s.length;do{let e=0===u?o[0]??r.initialPageParam:w(r,l);if(u>0&&null==e)break;l=await d(l,e),u++}while(u<t)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=c}}}function w(e,{pages:t,pageParams:i}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,i[r],i):void 0}var x=class{#$;#q;#h;#W;#B;#V;#K;#H;constructor(e={}){this.#$=e.queryCache||new c,this.#q=e.mutationCache||new p,this.#h=e.defaultOptions||{},this.#W=new Map,this.#B=new Map,this.#V=0}mount(){this.#V++,1===this.#V&&(this.#K=g.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#$.onFocus())}),this.#H=y.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#$.onOnline())}))}unmount(){this.#V--,0===this.#V&&(this.#K?.(),this.#K=void 0,this.#H?.(),this.#H=void 0)}isFetching(e){return this.#$.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#q.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#$.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),i=this.#$.build(this,t),r=i.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime((0,a.resolveStaleTime)(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#$.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,i){let r=this.defaultQueryOptions({queryKey:e}),n=this.#$.get(r.queryHash),s=n?.state.data,o=(0,a.functionalUpdate)(t,s);if(void 0!==o)return this.#$.build(this,r).setData(o,{...i,manual:!0})}setQueriesData(e,t,i){return l.notifyManager.batch(()=>this.#$.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,i)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#$.get(t.queryHash)?.state}removeQueries(e){let t=this.#$;l.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let i=this.#$;return l.notifyManager.batch(()=>
11(i.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let i={revert:!0,...t};return Promise.all(l.notifyManager.batch(()=>this.#$.findAll(e).map(e=>e.cancel(i)))).then(a.noop).catch(a.noop)}invalidateQueries(e,t={}){return l.notifyManager.batch(()=>(this.#$.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let i={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(l.notifyManager.batch(()=>this.#$.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,i);return i.throwOnError||(t=t.catch(a.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(a.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#$.build(this,t);return i.isStaleByTime((0,a.resolveStaleTime)(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(a.noop).catch(a.noop)}fetchInfiniteQuery(e){return e.behavior=v(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(a.noop).catch(a.noop)}ensureInfiniteQueryData(e){return e.behavior=v(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return y.onlineManager.isOnline()?this.#q.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#$}getMutationCache(){return this.#q}getDefaultOptions(){return this.#h}setDefaultOptions(e){this.#h=e}setQueryDefaults(e,t){this.#W.set((0,a.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#W.values()],i={};return t.forEach(t=>{(0,a.partialMatchKey)(e,t.queryKey)&&Object.assign(i,t.defaultOptions)}),i}setMutationDefaults(e,t){this.#B.set((0,a.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#B.values()],i={};return t.forEach(t=>{(0,a.partialMatchKey)(e,t.mutationKey)&&Object.assign(i,t.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#h.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,a.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===a.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#h.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#$.clear(),this.#q.clear()}};function j(){return new x({defaultOptions:{dehydrate:{shouldDehydrateQuery:e=>"success"===e.state.status||"pending"===e.state.status},queries:{staleTime:6e5}}})}let O=(0,s.cache)(j);e.s(["QueryProvider",0,({children:e})=>{let s=a.isServer?O():t??=j();return(0,i.jsxs)(r.QueryClientProvider,{client:s,children:[e,(0,i.jsx)(n,{})]})}],983910)}]);

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.