1/*! For license information please see component---src-templates-default-tsx-270d73e7b8c700ae47b2.js.LICENSE.txt */ 2"use strict";(self.webpackChunkroche_xx=self.webpackChunkroche_xx||[]).push([[975],{7631:function(e,t,r){r.r(t),r.d(t,{Head:function(){return n.Q8E},default:function(){return Rr}});var n=r(1043),a=r(2155),s=r.t(a,2),i=r(5557),o=r(2582);const u=e=>{var t;let{children:r,blok:s,getComponent:i}=e;const u=(0,n.UV8)(),{0:l,1:c}=(0,a.useState)(null),h=n.Tl_.isInEditor(),d=n.O1C.useOptanonConsent(),p=(0,n.S2x)(),f=`form-${s._uid||p}-recaptcha`,{isLoaded:m,renderWidget:y,isError:g,resetWidget:v}=(0,n.Vqf)("6LfnSAoUAAAAAG49XsPZF3YJHzE3KiAuQuoivYZb",d),{0:b,1:E}=(0,a.useState)(null),S=(0,n.Bdt)("confirm you are a human"),T=(0,n.Bdt)("the test requires you to consent to targeting cookies"),C="error"===l,R="success"===l,w=R&&!u.formDirty?s.success:s.submit,k=R&&!u.formDirty?"checkmark":null!==(t=s.submit_icon)&&void 0!==t?t:void 0,O=R&&!u.formDirty?o.q8.SUCCESS:o.q8.PRIMARY,I=C?s.error:void 0,F=C?o.fr.ERROR:void 0,D=R?(0,n.DCO)(i,s.slotted_success_message):void 0,q=(0,a.useCallback)(e=>{E(e)},[]),A=(0,a.useCallback)(()=>{E(null)},[]);return(0,a.useEffect)(()=>{m&&!g&&y(f,q,A)},[m,g,y,q,A]),(0,a.useEffect)(()=>{d||E(null)},[d]),(0,a.useEffect)(()=>{null!==l&&u.formDirty&&c(null)},[u.formDirty]),a.createElement(o.TW,{action:u.action,needsConsent:!d,needsConsentText:S,onConsentRequest:()=>n.O1C.showOnetrustSettings(),consentRequestButtonText:T,submitButton:{onSubmit:async e=>{const t=await u.handleSubmit(e,b);c(t),"error"!==t&&"success"!==t||v(),E(null)},disabled:!R&&(!u.allValuesOk||!b),text:w,loading:u.isSubmitting,appearance:O,icon:k},message:I,messageType:F,successComponent:D},h&&a.createElement(o.j3,{type:o.fr.INFO,message:"Forms can't be submitted from the editor. To test it, open the preview or live site."}),r,m&&!g&&a.createElement("div",{className:"form-wrapper--recaptcha-container",id:f}))},l={"roche-form-contact":e=>{let{blok:t,getComponent:r}=e;const s=t._uid,o=(0,n.Bdt)("region"),l=(0,n.Bdt)("subject"),{countries:m,subjects:y}=(0,n.uMk)(),g=[{_uid:"region",options:c(m),label:o,required:!0,component:"roche-dropdown"},{_uid:"subject",options:c(y),label:l,required:!0,component:"roche-dropdown"}].concat((0,i.A)(t.slotted.flatMap(e=>e.label===d?[e,{...f,conditionalDisplay:{dependsOn:e._uid,value:p}}]:[e])));return a.createElement(n.ZLw,{formType:"contact",formId:s},a.createElement(u,{blok:t,getComponent:r},h(g,r)))},"roche-form-email":e=>{let{blok:t,getComponent:r}=e;const s=t._uid;return a.createElement(n.ZLw,{formType:"email",formId:s},a.createElement(u,{blok:t,getComponent:r},h(t.slotted,r)))}};function c(e){return e.map(e=>{let{key:t,label:r}=e;return{label:r,value:t}})}const h=(e,t)=>e.map(e=>{const r=(0,n.DCO)(t,[e]),s=a.createElement(n.z4c,{slot:e,key:e._uid},r);return"roche-richtext"!==e.component?e.conditionalDisplay?a.createElement(m,{id:e._uid,key:e._uid},s):s:r}),d="Occupation",p="Other",f={_uid:"otherOccupation",label:"Other",required:!0,type:"text",name:"otherOccupation",component:"roche-input"};function m(e){let{children:t,id:r}=e;return(0,n.UV8)().satisfiesConditionalDisplay(r)?a.createElement(a.Fragment,null,t):null}const y=(e,t,r,n)=>`\n ${e}\n ${r?'\n <style>header, footer, #onetrust-banner-sdk {display: none;}</style>\n <link rel="stylesheet" href="https://frontend.roche.com/frontend/releases/5.2.3/resources/css/fontsFallback.css">\n':""}\n ${n&&!t?"\n <script script type = \"text/javascript\">\n window.addEventListener('load', () => {\n window.setTimeout(() => window.frameElement.setAttribute('height', document.body.scrollHeight), 0)\n });\n <\/script>\n":""}\n`;var g=function(e){return e.LOAD="load",e.LOAD_FAILED="load_failed",e.SUBMIT="submit",e.VALIDATE="validate",e.VALIDATION_FAILED="validate_failed",e.SUCCESS="success",e.LEAD_TRACKING="lead_tracking",e}(g||{});const v=e=>({event:"audio_tracking",component_name:"roche-audio",additionalParameters:{name:e.base.audioName,url:e.base.audioUrl,provider:e.base.audioProvider,durationTotal:e.base.audioDurationTotal,progress:e.base.audioPercentage}}),b=e=>({name:e.base.audioName,url:e.base.audioUrl,provider:e.base.audioProvi
2der,durationTotal:e.base.audioDurationTotal}),E=e=>{const t=v(e),r=b(e);n.bIn.push({...t,value:e.trackingValue}),(0,n.po4)({...r},e.trackingValue)},S=(e,t)=>{const r=v(e),a=b(e);n.bIn.push({...r,value:e.trackingValue}),(0,n.po4)({...a,progress:t},e.trackingValue)},T=(e,t)=>{const r=v(e),a=b(e);n.bIn.push({...r,value:e.trackingValue}),(0,n.po4)({...a,progress:t},e.trackingValue)},C=(e,t)=>{const r=b(e);(0,n.po4)({...r,error:t},e.trackingValue)},R="1482fa",w="https://w.soundcloud.com/player/?url=https://api.soundcloud.com",k="https://open.spotify.com/embed",O="https://share.transistor.fm/e",I={soundcloud:{playlist:e=>`${w}/playlists/${e}&color=%23${R}`,track:e=>`${w}/tracks/${e}&color=%23${R}`},spotify:{playlist:e=>`${k}/playlist/${e}`,track:e=>`${k}/track/${e}`,show:e=>`${k}/show/${e}`,episode:e=>`${k}/episode/${e}`,artist:e=>`${k}/artist/${e}`,album:e=>`${k}/album/${e}`},transistor:{transistor:e=>`${O}/${e}`}},F={spotify:/open\.spotify\.com\/embed\/(?:track|playlist|show|episode|artist|album)\/([^/?]+)/i,soundcloud:/api\.soundcloud\.com\/(?:tracks|playlists)\/([^/&]+)/i,transistor:/(?:share\.transistor\.fm\/e\/)([^/?]+)/i},D=/<iframe [^>]*src=["'](http[s]?:\/\/[^"']+)["']/i;var q={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},A=new class{#e=q;#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)}};var P="undefined"==typeof window||"Deno"in globalThis;function M(){}function _(e){return"number"==typeof e&&e>=0&&e!==1/0}function x(e,t){return Math.max(e+(t||0)-Date.now(),0)}function L(e,t){return"function"==typeof e?e(t):e}function N(e,t){return"function"==typeof e?e(t):e}function U(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:s,queryKey:i,stale:o}=e;if(i)if(n){if(t.queryHash!==$(i,t.options))return!1}else if(!j(t.queryKey,i))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&((!a||a===t.state.fetchStatus)&&!(s&&!s(t)))}function Q(e,t){const{exact:r,status:n,predicate:a,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(B(t.options.mutationKey)!==B(s))return!1}else if(!j(t.options.mutationKey,s))return!1}return(!n||t.state.status===n)&&!(a&&!a(t))}function $(e,t){return(t?.queryKeyHashFn||B)(e)}function B(e){return JSON.stringify(e,(e,t)=>G(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function j(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>j(e[r],t[r])))}var K=Object.prototype.hasOwnProperty;function V(e,t){if(e===t)return e;const r=z(e)&&z(t);if(!(r||G(e)&&G(t)))return t;const n=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),s=a.length,i=r?new Array(s):{};let o=0;for(let u=0;u<s;u++){const s=r?u:a[u],l=e[s],c=t[s];if(l===c){i[s]=l,(r?u<n:K.call(e,s))&&o++;continue}if(null===l||null===c||"object"!=typeof l||"object"!=typeof c){i[s]=c;continue}const h=V(l,c);i[s]=h,h===l&&o++}return n===s&&o===n?e:i}function H(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function z(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function G(e){if(!W(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!W(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function W(e){return"[object Object]"===Object.prototype.toString.call(e)}function J(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?V(e,t):t}function Y(e){return e}function Z(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function X(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var ee=Symbol();function te(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==ee?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var re=function(e){setTimeout(e,0)};var ne=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},a=re;const s=n=>{t?e.push(n):a(()=>{r(n)})};return{batch:s=>{let i;t++;try{i=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&a(()=>{n(()=>
2{t.forEach(e=>{r(e)})})})})()}return i},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{a=e}}}(),ae=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(){}},se=new class extends ae{#r;#n;#a;constructor(){super(),this.#a=e=>{if(!P&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#n||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#a=e,this.#n?.(),this.#n=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#r!==e&&(this.#r=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#r?this.#r:"hidden"!==globalThis.document?.visibilityState}},ie=new class extends ae{#s=!0;#n;#a;constructor(){super(),this.#a=e=>{if(!P&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#n||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(e){this.#a=e,this.#n?.(),this.#n=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}};function oe(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function ue(e){return Math.min(1e3*2**e,3e4)}function le(e){return"online"!==(e??"online")||ie.isOnline()}var ce=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function he(e){let t,r=!1,n=0;const a=oe(),s=()=>"pending"!==a.status,i=()=>se.isFocused()&&("always"===e.networkMode||ie.isOnline())&&e.canRun(),o=()=>le(e.networkMode)&&e.canRun(),u=e=>{s()||(t?.(),a.resolve(e))},l=e=>{s()||(t?.(),a.reject(e))},c=()=>new Promise(r=>{t=e=>{(s()||i())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,s()||e.onContinue?.()}),h=()=>{if(s())return;let t;const a=0===n?e.initialPromise:void 0;try{t=a??e.fn()}catch(o){t=Promise.reject(o)}Promise.resolve(t).then(u).catch(t=>{if(s())return;const a=e.retry??(P?0:3),o=e.retryDelay??ue,u="function"==typeof o?o(n,t):o,d=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,t);var p;!r&&d?(n++,e.onFail?.(n,t),(p=u,new Promise(e=>{A.setTimeout(e,p)})).then(()=>i()?void 0:c()).then(()=>{r?l(t):h()})):l(t)})};return{promise:a,status:()=>a.status,cancel:t=>{if(!s()){const r=new ce(t);l(r),e.onCancel?.(r)}},continue:()=>(t?.(),a),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:o,start:()=>(o()?h():c().then(h),a)}}var de=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_(this.gcTime)&&(this.#i=A.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(P?1/0:3e5))}clearGcTimeout(){this.#i&&(A.clearTimeout(this.#i),this.#i=void 0)}},pe=class extends de{#o;#u;#l;#c;#h;#d;#p;constructor(e){super(),this.#p=!1,this.#d=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#l=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=ye(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#h?.promise}setOptions(e){if(this.options={...this.#d,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=ye(this.options);void 0!==e.data&&(this.setState(me(e.data,e.dataUpdatedAt)),this.#o=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(e,t){const r=J(this.state.data,e,this.options);return this.#f({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#f({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#h?.promise;return this.#h?.cancel(e),t?t.then(M).catch(M):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some(e=>!1!==N(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ee||this.state.dataUpdateCount+this.state.errorUpdate
2Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===L(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||!x(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#h?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#l.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.#h&&(this.#p?this.#h.cancel({revert:!0}):this.#h.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#h?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#h)return this.#h.continueRetry(),this.#h.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,r.signal)})},a=()=>{const e=te(this.options,t),r=(()=>{const e={client:this.#c,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#p=!1,this.options.persister?this.options.persister(e,r,this):e(r)},s=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:a};return n(e),e})();this.options.behavior?.onFetch(s,this),this.#u=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===s.fetchOptions?.meta||this.#f({type:"fetch",meta:s.fetchOptions?.meta}),this.#h=he({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:e=>{e instanceof ce&&e.revert&&this.setState({...this.#u,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const e=await this.#h.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#l.config.onSuccess?.(e,this),this.#l.config.onSettled?.(e,this.state.error,this),e}catch(i){if(i instanceof ce){if(i.silent)return this.#h.promise;if(i.revert){if(void 0===this.state.data)throw i;return this.state.data}}throw this.#f({type:"error",error:i}),this.#l.config.onError?.(i,this),this.#l.config.onSettled?.(this.state.data,i,this),i}finally{this.scheduleGc()}}#f(e){this.state=(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,...fe(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...me(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ne.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:e})})}};function fe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:le(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function me(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ye(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdate
2Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var ge=class extends ae{constructor(e={}){super(),this.config=e,this.#m=new Map}#m;build(e,t,r){const n=t.queryKey,a=t.queryHash??$(n,t);let s=this.get(a);return s||(s=new pe({client:e,queryKey:n,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(s)),s}add(e){this.#m.has(e.queryHash)||(this.#m.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#m.get(e.queryHash);t&&(e.destroy(),t===e&&this.#m.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ne.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#m.get(e)}getAll(){return[...this.#m.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>U(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>U(e,t)):t}notify(e){ne.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ne.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ne.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ve=class extends de{#c;#y;#g;#h;constructor(e){super(),this.#c=e.client,this.mutationId=e.mutationId,this.#g=e.mutationCache,this.#y=[],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.#y.includes(e)||(this.#y.push(e),this.clearGcTimeout(),this.#g.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#y=this.#y.filter(t=>t!==e),this.scheduleGc(),this.#g.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#y.length||("pending"===this.state.status?this.scheduleGc():this.#g.remove(this))}continue(){return this.#h?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#f({type:"continue"})},r={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#h=he({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#g.canRun(this)});const n="pending"===this.state.status,a=!this.#h.canStart();try{if(n)t();else{this.#f({type:"pending",variables:e,isPaused:a}),await(this.#g.config.onMutate?.(e,this,r));const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#f({type:"pending",context:t,variables:e,isPaused:a})}const s=await this.#h.start();return await(this.#g.config.onSuccess?.(s,e,this.state.context,this,r)),await(this.options.onSuccess?.(s,e,this.state.context,r)),await(this.#g.config.onSettled?.(s,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(s,null,e,this.state.context,r)),this.#f({type:"success",data:s}),s}catch(s){try{throw await(this.#g.config.onError?.(s,e,this.state.context,this,r)),await(this.options.onError?.(s,e,this.state.context,r)),await(this.#g.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(void 0,s,e,this.state.context,r)),s}finally{this.#f({type:"error",error:s})}}finally{this.#g.runNext(this)}}#f(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,isPau
2sed:!1,status:"error"}}})(this.state),ne.batch(()=>{this.#y.forEach(t=>{t.onMutationUpdate(e)}),this.#g.notify({mutation:this,type:"updated",action:e})})}};var be=class extends ae{constructor(e={}){super(),this.config=e,this.#v=new Set,this.#b=new Map,this.#E=0}#v;#b;#E;build(e,t,r){const n=new ve({client:e,mutationCache:this,mutationId:++this.#E,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#v.add(e);const t=Ee(e);if("string"==typeof t){const r=this.#b.get(t);r?r.push(e):this.#b.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#v.delete(e)){const t=Ee(e);if("string"==typeof t){const r=this.#b.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#b.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Ee(e);if("string"==typeof t){const r=this.#b.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}return!0}runNext(e){const t=Ee(e);if("string"==typeof t){const r=this.#b.get(t)?.find(t=>t!==e&&t.state.isPau
2sed);return r?.continue()??Promise.resolve()}return Promise.resolve()}clear(){ne.batch(()=>{this.#v.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#v.clear(),this.#b.clear()})}getAll(){return Array.from(this.#v)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>Q(t,e))}findAll(e={}){return this.getAll().filter(t=>Q(e,t))}notify(e){ne.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return ne.batch(()=>Promise.all(e.map(e=>e.continue().catch(M))))}};function Ee(e){return e.options.scope?.id}function Se(e){return{onFetch:(t,r)=>{const n=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],i=t.state.data?.pageParams||[];let o={pages:[],pageParams:[]},u=0;const l=async()=>{let r=!1;const l=te(t.options,t.fetchOptions),c=async(e,n,a)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const s=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:a?"backward":"forward",meta:t.options.meta};var s;return s=e,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)}),e})(),i=await l(s),{maxPages:o}=t.options,u=a?X:Z;return{pages:u(e.pages,i,o),pageParams:u(e.pageParams,n,o)}};if(a&&s.length){const e="backward"===a,t={pages:s,pageParams:i},r=(e?Ce:Te)(n,t);o=await c(t,r,e)}else{const t=e??s.length;do{const e=0===u?i[0]??n.initialPageParam:Te(n,o);if(u>0&&null==e)break;o=await c(o,e),u++}while(u<t)}return o};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function Te(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function Ce(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var Re=class{#S;#g;#d;#T;#C;#R;#w;#k;constructor(e={}){this.#S=e.queryCache||new ge,this.#g=e.mutationCache||new be,this.#d=e.defaultOptions||{},this.#T=new Map,this.#C=new Map,this.#R=0}mount(){this.#R++,1===this.#R&&(this.#w=se.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#S.onFocus())}),this.#k=ie.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#S.onOnline())}))}unmount(){this.#R--,0===this.#R&&(this.#w?.(),this.#w=void 0,this.#k?.(),this.#k=void 0)}isFetching(e){return this.#S.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#g.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#S.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#S.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(L(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#S.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),a=this.#S.get(n.queryHash),s=a?.state.data,i=function(e,t){return"function"==typeof e?e(t):e}(t,s);if(void 0!==i)return this.#S.build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return ne.batch(()=>this.#S.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#S.get(t.queryHash)?.state}removeQueries(e){const t=this.#S;ne.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#S;return ne.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=ne.batch(()=>this.#S.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(M).catch(M)}invalidateQueries(e,t={}){return ne.batch(()=>(this.#S.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=ne.batch(()=>this.#S.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(M)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(M)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#S.build(this,t);return r.isStaleByTime(L(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(M).catch(M)}fetchInfiniteQuery(e){return e.behavior=Se(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(M).catch(M)}ensureInfiniteQueryData(e){return e.behavior=Se(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ie.isOnline()?this.#g.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#S}getMutationCache(){return this.#g}getDefaultOptions(){return this.#d}setDefaultOptions(e){this.#d=e}setQueryDefaults(e,t){this.#T.set(B(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#T.values()],r={};return t.forEach(t=>{j(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#C.set(B(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#C.values()],r={};return t.forEach(t=>{j(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#d.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=$(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===ee&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#d.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#S.clear(),this.#g.clear()}},we=r(5723),ke=a.createContext(void 0),Oe=e=>{const t=a.useContext(ke);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ie=({client:e,children:t})=>(a.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,we.jsx)(ke.Provider,{value:e,children:t})),Fe=r(316),De=r.t(Fe,2),qe=r(1977);function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ae.apply(this,arguments)}const Pe=a.createContext(null);const Me=a.createContext(null);const _e=a.createContext(null);const xe=a.createContext(null);const Le=a.createContext({outlet:null,matches:[],isDataRoute:!1});const Ne=a.createContext(null);function Ue(){return null!=a.useContext(xe)}function Qe(){return Ue()||(0,qe.Oi)(!1),a.useContext(xe).location}function $e(e){a.useContext(_e).static||a.useLayoutEffect(e)}function Be(){let{isDataRoute:e}=a.useContext(Le);return e?function(){let{router:e}=Ye(We.UseNavigateStable),t=Xe(Je.UseNavigateStable),r=a.useRef(!1);$e(()=>{r.current=!0});let n=a.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,Ae({fromRouteId:t},a)))},[e,t]);return n}():function(){Ue()||(0,qe.Oi)(!1);let e=a.useContext(Pe),{basename:t,future:r,navigator:n}=a.useContext(_e),{matches:s}=a.useContext(Le),{pathname:i}=Qe(),o=JSON.stringify((0,qe.yD)(s,r.v7_relativeSplatPath)),u=a.useRef(!1);return $e(()=>{u.current=!0}),a.useCallback(function(r,a){if(void 0===a&&(a={}),!u.current)return;if("number"==typeof r)return void n.go(r);let s=(0,qe.Gh)(r,JSON.parse(o),i,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,qe.HS)([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,o,i,e])}()}function je(e,t,r,n){Ue()||(0,qe.Oi)(!1);let{navigator:s}=a.useContext(_e),{matches:i}=a.useContext(Le),o=i[i.length-1],u=o?o.params:{},l=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let c,h=Qe();if(t){var d;let e="string"==typeof t?(0,qe.Rr)(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||(0,qe.Oi)(!1),c=e}else c=h;let p=c.pathname||"/",f=p;if("/"!==l){let e=l.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let m=(0,qe.ue)(e,{pathname:f});let y=Ge(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:(0,qe.HS)([l,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:(0,qe.HS)([l,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&y?a.createElement(xe.Provider,{value:{location:Ae({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:qe.rc.Pop}},y):y}function Ke(){let e=function(){var e;let t=a.useContext(Ne),r=Ze(Je.UseRouteError),n=Xe(Je.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[n]}(),t=(0,qe.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:n};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),r?a.createElement("pre",{style:s},r):null,null)}const Ve=a.createElement(Ke,null);class He extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?a.createElement(Le.Provider,{value:this.props.routeContext},a.createElement(Ne.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ze(e){let{routeContext:t,match:r,children:n}=e,s=a.useContext(Pe);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),a.createElement(Le.Provider,{value:t},n)}function Ge(e,t,r,n){var s;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var i;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(i=n)&&i.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let o=e,u=null==(s=r)?void 0:s.errors;if(null!=u){let e=o.findIndex(e=>e.route.id&&void 0!==(null==u?void 0:u[e.route.id]));e>=0||(0,qe.Oi)(!1),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let a=0;a<o.length;a++){let e=o[a];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=a),e.route.id){let{loaderData:t,errors:n}=r,a=e.route.loader&&void 0===t[e.route.id]&&(!n||void 0===n[e.route.id]);if(e.route.lazy||a){l=!0,o=c>=0?o.slice(0,c+1):[o[0]];break}}}return o.reduceRight((e,n,s)=>{let i,h=!1,d=null,p=null;var f;r&&(i=u&&n.route.id?u[n.route.id]:void 0,d=n.route.errorElement||Ve,l&&(c<0&&0===s?(f="route-fallback",!1||et[f]||(et[f]=!0),h=!0,p=null):c===s&&(h=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,s+1)),y=()=>{let t;
2return t=i?d:h?p:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(ze,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===s)?a.createElement(He,{location:r.location,revalidation:r.revalidation,component:d,error:i,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}var We=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(We||{}),Je=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Je||{});function Ye(e){let t=a.useContext(Pe);return t||(0,qe.Oi)(!1),t}function Ze(e){let t=a.useContext(Me);return t||(0,qe.Oi)(!1),t}function Xe(e){let t=function(){let e=a.useContext(Le);return e||(0,qe.Oi)(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||(0,qe.Oi)(!1),r.route.id}const et={};function tt(e,t){null==e||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}s.startTransition;function rt(e){(0,qe.Oi)(!1)}function nt(e){let{basename:t="/",children:r=null,location:n,navigationType:s=qe.rc.Pop,navigator:i,static:o=!1,future:u}=e;Ue()&&(0,qe.Oi)(!1);let l=t.replace(/^\/*/,"/"),c=a.useMemo(()=>({basename:l,navigator:i,static:o,future:Ae({v7_relativeSplatPath:!1},u)}),[l,u,i,o]);"string"==typeof n&&(n=(0,qe.Rr)(n));let{pathname:h="/",search:d="",hash:p="",state:f=null,key:m="default"}=n,y=a.useMemo(()=>{let e=(0,qe.pb)(h,l);return null==e?null:{location:{pathname:e,search:d,hash:p,state:f,key:m},navigationType:s}},[l,h,d,p,f,m,s]);return null==y?null:a.createElement(_e.Provider,{value:c},a.createElement(xe.Provider,{children:r,value:y}))}function at(e){let{children:t,location:r}=e;return je(st(t),r)}new Promise(()=>{});a.Component;function st(e,t){void 0===t&&(t=[]);let r=[];return a.Children.forEach(e,(e,n)=>{if(!a.isValidElement(e))return;let s=[...t,n];if(e.type===a.Fragment)return void r.push.apply(r,st(e.props.children,s));e.type!==rt&&(0,qe.Oi)(!1),e.props.index&&e.props.children&&(0,qe.Oi)(!1);let i={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=st(e.props.children,s)),r.push(i)}),r}function it(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(wr){}new Map;const ot=s.startTransition;De.flushSync,s.useId;function ut(e){let{basename:t,children:r,future:n,window:s}=e,i=a.useRef();null==i.current&&(i.current=(0,qe.zR)({window:s,v5Compat:!0}));let o=i.current,[u,l]=a.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},h=a.useCallback(e=>{c&&ot?ot(()=>l(e)):l(e)},[l,c]);return a.useLayoutEffect(()=>o.listen(h),[o,h]),a.useEffect(()=>tt(n),[n]),a.createElement(nt,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:o,future:n})}function lt(e){let{basename:t,children:r,future:n,window:s}=e,i=a.useRef();null==i.current&&(i.current=(0,qe.TM)({window:s,v5Compat:!0}));let o=i.current,[u,l]=a.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},h=a.useCallback(e=>{c&&ot?ot(()=>l(e)):l(e)},[l,c]);return a.useLayoutEffect(()=>o.listen(h),[o,h]),a.useEffect(()=>tt(n),[n]),a.createElement(nt,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:o,future:n})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;var ct,ht;function dt(e){let t=a.useRef(it(e)),r=a.useRef(!1),n=Qe(),s=a.useMemo(()=>function(e,t){let r=it(e);return t&&t.forEach((e,n)=>
2{r.has(n)||t.getAll(n).forEach(e=>{r.append(n,e)})}),r}(n.search,r.current?null:t.current),[n.search]),i=Be(),o=a.useCallback((e,t)=>{const n=it("function"==typeof e?e(s):e);r.current=!0,i("?"+n,t)},[i,s]);return[s,o]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ct||(ct={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ht||(ht={}));function pt({basename:e,children:t,location:r="/",future:n}){"string"==typeof r&&(r=(0,qe.Rr)(r));let s=qe.rc.Pop,i={pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:null!=r.state?r.state:null,key:r.key||"default"},o=ft();return a.createElement(nt,{basename:e,children:t,location:i,navigationType:s,navigator:o,future:n,static:!0})}function ft(){return{createHref:mt,encodeLocation:yt,push(e){throw new Error(`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`)},replace(e){throw new Error(`You cannot use navigator.replace() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)}, { replace: true })\` somewhere in your app.`)},go(e){throw new Error(`You cannot use navigator.go() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${e})\` somewhere in your app.`)},back(){throw new Error("You cannot use navigator.back() on the server because it is a stateless environment.")},forward(){throw new Error("You cannot use navigator.forward() on the server because it is a stateless environment.")}}}function mt(e){return"string"==typeof e?e:(0,qe.AO)(e)}function yt(e){let t="string"==typeof e?e:(0,qe.AO)(e);t=t.replace(/ $/,"%20");let r=gt.test(t)?new URL(t):new URL(t,"http://localhost");return{pathname:r.pathname,search:r.search,hash:r.hash}}const gt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;var vt=class extends ae{constructor(e,t){super(),this.options=t,this.#c=e,this.#O=null,this.#I=oe(),this.bindMethods(),this.setOptions(t)}#c;#F=void 0;#D=void 0;#q=void 0;#A;#P;#I;#O;#M;#_;#x;#L;#N;#U;#Q=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#F.addObserver(this),bt(this.#F,this.options)?this.#$():this.updateResult(),this.#B())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Et(this.#F,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Et(this.#F,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#j(),this.#K(),this.#F.removeObserver(this)}setOptions(e){const t=this.options,r=this.#F;if(this.options=this.#c.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof N(this.options.enabled,this.#F))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#V(),this.#F.setOptions(this.options),t._defaulted&&!H(this.options,t)&&this.#c.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#F,observer:this});const n=this.hasListeners();n&&St(this.#F,r,this.options,t)&&this.#$(),this.updateResult(),!n||this.#F===r&&N(this.options.enabled,this.#F)===N(t.enabled,this.#F)&&L(this.options.staleTime,this.#F)===L(t.staleTime,this.#F)||this.#H();const a=this.#z();!n||this.#F===r&&N(this.options.enabled,this.#F)===N(t.enabled,this.#F)&&a===this.#U||this.#G(a)}getOptimisticResult(e){const t=this.#c.getQueryCache().build(this.#c,e),r=this.createResult(t,e);return function(e,t){if(!H(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(this.#q=r,this.#P=this.options,this.#A=this.#F.state),r}getCurrentResult(){return this.#q}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#I.status||this.#I.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#Q.add(e)}getCurrentQuery(){return this.#F}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#c.defaultQueryOptions(e),r=this.#c.getQueryCache().build(this.#c,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#$({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#q))}#$(e){this.#V();let t=this.#F.fetch(this.options,e);return e?.throwOnError||(t=t.catch(M)),t}#H(){this.#j();const e=L(this.options.staleTime,this.#F);if(P||this.#q.isStale||!_(e))return;const t=x(this.#q.dataUpdatedAt,e)+1;this.#L=A.setTimeout(()=>{this.#q.isStale||this.updateResult()},t)}#z(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#F):this.options.refetchInterval)??!1}#G(e){this.#K(),this.#U=e,!P&&!1!==N(this.options.enabled,this.#F)&&_(this.#U)&&0!==this.#U&&(this.#N=A.setInterval(()=>
2{(this.options.refetchIntervalInBackground||se.isFocused())&&this.#$()},this.#U))}#B(){this.#H(),this.#G(this.#z())}#j(){this.#L&&(A.clearTimeout(this.#L),this.#L=void 0)}#K(){this.#N&&(A.clearInterval(this.#N),this.#N=void 0)}createResult(e,t){const r=this.#F,n=this.options,a=this.#q,s=this.#A,i=this.#P,o=e!==r?e.state:this.#D,{state:u}=e;let l,c={...u},h=!1;if(t._optimisticResults){const a=this.hasListeners(),s=!a&&bt(e,t),i=a&&St(e,r,t,n);(s||i)&&(c={...c,...fe(u.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:d,errorUpdatedAt:p,status:f}=c;l=c.data;let m=!1;if(void 0!==t.placeholderData&&void 0===l&&"pending"===f){let e;a?.isPlaceholderData&&t.placeholderData===i?.placeholderData?(e=a.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#x?.state.data,this.#x):t.placeholderData,void 0!==e&&(f="success",l=J(a?.data,e,t),h=!0)}if(t.select&&void 0!==l&&!m)if(a&&l===s?.data&&t.select===this.#M)l=this.#_;else try{this.#M=t.select,l=t.select(l),l=J(a?.data,l,t),this.#_=l,this.#O=null}catch(T){this.#O=T}this.#O&&(d=this.#O,l=this.#_,p=Date.now(),f="error");const y="fetching"===c.fetchStatus,g="pending"===f,v="error"===f,b=g&&y,E=void 0!==l,S={status:f,fetchStatus:c.fetchStatus,isPending:g,isSuccess:"success"===f,isError:v,isInitialLoading:b,isLoading:b,data:l,dataUpdatedAt:c.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>o.dataUpdateCount||c.errorUpdateCount>o.errorUpdateCount,isFetching:y,isRefetching:y&&!g,isLoadingError:v&&!E,isPaused:"paused"===c.fetchStatus,isPlaceholderData:h,isRefetchError:v&&E,isStale:Tt(e,t),refetch:this.refetch,promise:this.#I,isEnabled:!1!==N(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===S.status?e.reject(S.error):void 0!==S.data&&e.resolve(S.data)},n=()=>{const e=this.#I=S.promise=oe();t(e)},a=this.#I;switch(a.status){case"pending":e.queryHash===r.queryHash&&t(a);break;case"fulfilled":"error"!==S.status&&S.data===a.value||n();break;case"rejected":"error"===S.status&&S.error===a.reason||n()}}return S}updateResult(){const e=this.#q,t=this.createResult(this.#F,this.options);if(this.#A=this.#F.state,this.#P=this.options,void 0!==this.#A.data&&(this.#x=this.#F),H(t,e))return;this.#q=t;this.#W({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#Q.size)return!0;const n=new Set(r??this.#Q);return this.options.throwOnError&&n.add("error"),Object.keys(this.#q).some(t=>{const r=t;return this.#q[r]!==e[r]&&n.has(r)})})()})}#V(){const e=this.#c.getQueryCache().build(this.#c,this.options);if(e===this.#F)return;const t=this.#F;this.#F=e,this.#D=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#B()}#W(e){ne.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#q)}),this.#c.getQueryCache().notify({query:this.#F,type:"observerResultsUpdated"})})}};function bt(e,t){return function(e,t){return!1!==N(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Et(e,t,t.refetchOnMount)}function Et(e,t,r){if(!1!==N(t.enabled,e)&&"static"!==L(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Tt(e,t)}return!1}function St(e,t,r,n){return(e!==t||!1===N(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Tt(e,r)}function Tt(e,t){return!1!==N(t.enabled,e)&&e.isStaleByTime(L(t.staleTime,e))}function Ct(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Rt=a.createContext(Ct()),wt=a.createContext(!1),kt=(wt.Provider,(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}));function Ot(e,t,r){const n=a.useContext(wt),s=a.useContext(Rt),i=Oe(r),o=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=n?"isRestoring":"optimistic",(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(o),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOn
2Mount=!1))})(o,s),(e=>{a.useEffect(()=>{e.clearReset()},[e])})(s);const u=!i.getQueryCache().get(o.queryHash),[l]=a.useState(()=>new t(i,o)),c=l.getOptimisticResult(o),h=!n&&!1!==e.subscribed;if(a.useSyncExternalStore(a.useCallback(e=>{const t=h?l.subscribe(ne.batchCalls(e)):M;return l.updateResult(),t},[l,h]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),a.useEffect(()=>{l.setOptions(o)},[o,l]),((e,t)=>e?.suspense&&t.isPending)(o,c))throw kt(o,l,s);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(a&&void 0===e.data||function(e,t){return"function"==typeof e?e(...t):!!e}(r,[e.error,n])))({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:i.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw c.error;if(i.getDefaultOptions().queries?._experimental_afterQuery?.(o,c),o.experimental_prefetchInRender&&!P&&((e,t)=>e.isLoading&&e.isFetching&&!t)(c,n)){const e=u?kt(o,l,s):i.getQueryCache().get(o.queryHash)?.promise;e?.catch(M).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function It(e,t){return Ot(e,vt,t)}function Ft(e,t,r){void 0===t&&(t=0),void 0===r&&(r=[]);var n=function(e,t){void 0===t&&(t=0);var r=(0,a.useRef)(!1),n=(0,a.useRef)(),s=(0,a.useRef)(e),i=(0,a.useCallback)(function(){return r.current},[]),o=(0,a.useCallback)(function(){r.current=!1,n.current&&clearTimeout(n.current),n.current=setTimeout(function(){r.current=!0,s.current()},t)},[t]),u=(0,a.useCallback)(function(){r.current=null,n.current&&clearTimeout(n.current)},[]);return(0,a.useEffect)(function(){s.current=e},[e]),(0,a.useEffect)(function(){return o(),u},[t]),[i,u,o]}(e,t),s=n[0],i=n[1],o=n[2];return(0,a.useEffect)(o,r),[s,i]}let Dt=function(e){return e.MEDIA_RELEASES="Media Releases Search",e.INVESTOR_UPDATES="Investor Updates Search",e.AD_HOC="Ad Hoc Search",e.MEDIA_EVENTS="Media Events Search",e.INVESTOR_EVENTS="Investor Events Search",e.PUB_MED="Pub Med Search",e.MAIN_SEARCH="Main Search",e.SEARCH_SUGGESTION="Search Suggestion",e}({});const qt=(e,t)=>{const r={...e,searchComponent:t.toString()};(0,n.po4)(r,"onsiteSearch")},At=(e,t,r,a,s)=>{(0,n.mZJ)({event:e,teaserTitle:r,teaserUrl:a,componentPath:s,searchTrackingData:t})},Pt=()=>({pagination:{navigationLabel:(0,n.Bdt)("search pagination"),previousPageLabel:(0,n.Bdt)("previous page"),nextPageLabel:(0,n.Bdt)("next page"),pageLabel:(0,n.Bdt)("page"),currentPageLabel:(0,n.Bdt)("current page"),pageStatusLabel:(0,n.Bdt)("{current} page of {total} pages")},siteSearch:(0,n.Bdt)("search site"),searchInputLabel:(0,n.Bdt)("search"),searchInputDescription:(0,n.Bdt)("type to search the site, press escape to clear"),clearSearchTerm:(0,n.Bdt)("clear search term"),searchingFor:(0,n.Bdt)("searching for {searchQuery}"),noResultsFoundFor:(0,n.Bdt)("no results found for {searchQuery}"),resultsFoundFor:(0,n.Bdt)("{totalResults} results found for {searchQuery}")}),Mt=e=>{var t,r,s,i;let{tabName:u="year",subtabName:l="tag",pageName:c="page",queryName:h="query",searchTabs:d=!1,alwaysShowTabs:p=!1,fetchTabs:f,fetchSubtabs:m,fetchList:y,fetchSearch:g,showInput:v,itemRenderer:b,searchTrackingType:E}=e;const{tab:S="",subtab:T="",query:C,page:R="1"}=function(){let{matches:e}=a.useContext(Le),t=e[e.length-1];return t?t.params:{}}(),w=Be(),k=Oe(),O=(0,a.useRef)(null),I=(0,a.useRef)(R),F=(0,a.useRef)(C),D=n.hNM.capitalize((0,n.Bdt)("results")),q=n.hNM.capitalize((0,n.Bdt)("enter your search term")),A=n.hNM.capitalize((0,n.Bdt)("no results found")),P=(0,n.Bdt)("sorry, no results found."),M=(0,n.Bdt)("loading"),_=Pt(),x=(0,a.useRef)(null),L=(0,a.useRef)(null),N=It({queryKey:["tabs"],queryFn:()=>f(),enabled:!!f}),U=It({queryKey:["subtabs"],queryFn:()=>m(),enabled:!!m}),Q=N.isLoading||!!m&&U.isLoading,$=!!m&&U.data&&U.data.length>0,B=(0,a.useMemo)(()=>S||(N.data&&N.data.length>0?N.data[0]:""),[S,N.data]),j=(0,a.useMemo)(()=>{if(T&&U.data){const e=U.data.find(e=>n.hNM.urlify(e)===T);if(e)return e}return T||(U.data&&U.data.length>0?U.data[0]:void 0)},[T,U.data]),K=""!==B||void 0!==C,V=It({queryKey:["list",{page:R,tab:B,subtab:j}],queryFn:()=>y({page:R,tab:B,subtab:j}),enabled:!!N.data&&!C,placeholderData:Y}),H=It({queryKey:["search",{page:R,query:C,tab:B}],queryFn:()=>g({page:R,query:C,tab:B}),enabled:void 0!==C,placeholderData:Y}),z=V.isFetched||H.isFetched,G=(0,a.useCallback)(e=>{let{page:t,query:r}=e;r?k.prefetchQuery({queryKey:["search",{page:t,query:r,tab:B}],queryFn:()=>g({page:t,query:r,tab:B}),staleTime:6e4}):k.prefetchQuery({queryKey:["list",{page:t,tab:B,subtab:j}],queryFn:()=>y({page:t,tab:B,subtab:j}),staleTime:6e4})},[B,y,g,k]),W=function(e,t,r){void 0===r&&(r="1");const a=C?`/${h}/${C}`:"",s=t?`/${l}/${n.hNM.urlify(t)}`:"";return`/${u}/${e}${s}${a}/${c}/${r}`},J=(0,a.useCallback)(()=>C?H:V,[C,H,V])(),{0:Z,1:X}=(0,a.useState)(C||""),{0:ee,1:te}=(0,a.useState)(!1);(0,a.useEffect)(()=>{X(C||"")},[C]),Ft(()=>{if(Z.trim().length>=2&&Z!==C&&g){let e="";d&&(e=`/${u}/${B}`),w(`${e}/${h}/${Z}/${c}/1`)}""===Z&&C&&w(`/${u}/${B}/${c}/1`)},500,[Z,B]);const re=(0,a.useCallback)(()=>{const e={query:C||void 0,tab:B,page:R},t=L.current;t&&t.query===e.query&&t.tab===e.tab&&t.page===e.page&&t.subtab===j||(qt({term:Z,results:x.current,filter:{pagination:parseInt(R,10),filter:j?`${B} | ${j}`:B}},E),L.current=e)},[C,B,j,R,Z,E]);null!==(t=J.data)&&void 0!==t&&t.Items.length&&(x.current=J.data.Total),(0,a.useEffect)(()=>{J.isSuccess&&re()},[J.isSuccess,re]),(0,a.useEffect)(()=>{const e=I.current!==R,t=F.current!==C;var r;e&&!t&&(null===(r=O.current)||void 0===r||r.scrollIntoView({behavior:"smooth",block:"start"}));I.current=R,F.current=C},[R,C]);const ne=null!==(r=null==N||null===(s=N.data)||void 0===s?void 0:s.map(e=>{var t,r,n,a;return{tab:e,variant:"pages",title:e,items:e==B&&null!==(t=null==J||null===(r=J.data)||void 0===r?void 0:r.Items)&&void 0!==t?t:[],totalItems:e==B&&null!==(n=null==J||null===(a=J.data)||void 0===a?void 0:a.Total)&&void 0!==n?n:0}}))&&void 0!==r?r:[],ae=ne.find(e=>e.tab===B),se=parseInt(R);return!K&&N.isLoading?a.createElement(o.y1,{variant:"data",itemRenderer:()=>a.createElement(a.Fragment,null),showInput:v,searchResults:[],resultsRef:O,searchState:{activeTab:"",activeSubtab:void 0,page:1,query:""},labels:{searchPlaceholder:q,totalResultsFoundText:"",loadingText:M,noResultsMessage:A,n
2oResultsTitle:P},onSearchParamsChange:()=>{},isLoading:!0,hasQueriesBeenFetched:!1,ariaLabels:_}):a.createElement(o.y1,{variant:"data",alwaysShowTabs:p,autoFocusFirstItem:ee,itemRenderer:(e,t,r,n,a)=>{var s;return b(e,r,{term:Z,results:null!==(s=null==ae?void 0:ae.totalItems)&&void 0!==s?s:0,resultPosition:r,filter:{pagination:se,filter:j?`${B} | ${j}`:B},searchComponent:E},a)},showInput:v,searchResults:ne,resultsRef:O,subtabs:$?U.data:void 0,searchState:{activeTab:B,activeSubtab:j,page:se,query:Z},labels:{searchTitle:"Search",searchPlaceholder:q,totalResultsFoundText:(null===(i=J.data)||void 0===i?void 0:i.Items.length)>0?`${J.data.Total} ${D}`:P,loadingText:M,noResultsMessage:A},onSearchParamsChange:e=>{var t;X(e.query),(e=>{const t=String(e);if(R===t)return;te(!0),w(W(B,$&&j?j:void 0,t))})(e.page),(e=>{if(B===e)return;te(!1),w(W(e,$&&j?j:void 0))})(e.activeTab),e.activeSubtab&&(t=e.activeSubtab,j!==t&&(te(!1),w(W(B,t))))},isLoading:Q||J.isFetching,hasQueriesBeenFetched:z,onPagePrefetch:(e,t)=>{t>0&&G({page:t,query:C})},ariaLabels:_})},_t=new Re,xt=e=>n.LFT.isBrowserContext()?a.createElement(Ie,{client:_t},a.createElement(lt,{basename:"/"},a.createElement(at,null,a.createElement(rt,{path:`/${e.tabName}?/:tab?/${e.subtabName}?/:subtab?/${e.queryName}?/:query?/${e.pageName}?/:page?`,element:a.createElement(Mt,e)})))):a.createElement(Ie,{client:_t},a.createElement(pt,{location:"/"},a.createElement(at,null,a.createElement(rt,{path:"*",element:a.createElement(Mt,e)})))),Lt=e=>{let{item:t,trackingData:r,autoFocus:s}=e;const i=(0,n.soE)(s),{0:u,1:l}=(0,a.useState)(!1),c=(0,a.useContext)(n.qzM),h=(0,n.Bdt)("add to calendar"),d=(0,n.Bdt)("read more"),p=(e=>"Title"in e||"ReleaseDateTime"in e||"Slug"in e)(t),f=(e=>"Event Title"in e||"Start Date"in e||"Add to Calendar"in e)(t),m=p?t.link:f?t.Link:void 0,{path:y}=(0,n.eHL)();return(0,a.useEffect)(()=>{const e=()=>{l(!1)};return window.addEventListener("rocheModalClose",e),()=>{window.removeEventListener("rocheModalClose",e)}},[]),a.createElement(a.Fragment,null,a.createElement(o.WJ,{linkRef:i,slot:"left",layout:o.GW.CARD_C,teaserTitle:n.hNM.capitalize(t["Event Title"]),teaserOverline:(e=>`\n ${n.BKH.formatDate(e["Start Date"],"dateEvents",c.translations)} ${e.Timezone}${null!==e.Location&&""!==e.Location?` | ${e.Location}`:""}\n `)(t),teaserUrl:m,forceAlignLeft:!0,primaryButtonText:d,primaryButtonVisuallyHiddenText:(0,n.Ige)(n.hNM.capitalize(t["Event Title"])),secondaryButton:"TRUE"===t["Add to Calendar"]&&a.createElement("div",{slot:"secondary-action"},a.createElement(o.sw,{appearance:o.q8.TERTIARY,leftIcon:"calendar",text:n.hNM.capitalize(h),onClick:e=>{const t=n.hNM.capitalize(h);(0,n.dab)(e,(0,n.GHw)({text:t,componentPath:y})),l(!0)}})),onTeaserClick:e=>At(e,r,t["Event Title"],m,y)}),u&&"TRUE"===t["Add to Calendar"]&&a.createElement(n.dqB,{dialogLabel:n.hNM.capitalize(t["Event Title"]),blok:{slotted:[{component:"roche-add-to-calendar",eventTitle:n.hNM.capitalize(t["Event Title"]),description:n.hNM.capitalize(t["Event Text"]||""),startDate:t["Start Date"].replace(/\s/,"T"),endDate:t["End Date"].replace(/\s/,"T")}]},getComponent:Cr}))},Nt={en:"media-switzerland",de:"medien-schweiz",fr:"presse-suisse"},Ut=e=>Nt[e]||"",Qt=async e=>{var t;const r=n.gwd.getActiveLanguage(),{GATSBY_WEBSITE_NAME:a,GATSBY_CLUDO_FUZZINESS:s,GATSBY_CLUDO_CUSTOMER_ID:i}=(0,n.zjv)(),o=(0,n.RQn)(r),u="ON"===(null==(l=s)?void 0:l.toUpperCase())?"ON":"OFF"===(null==l?void 0:l.toUpperCase())?"OFF":"AUTO";var l;const c=(h=e.query,void 0===(d=u)&&(d="AUTO"),"ON"===d||"OFF"!==d&&/[^\x00-\x7F]/.test(h));var h,d;return(await fetch(`https://api.cludo.com/api/v3/${i}/${o}/search`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`SiteKey ${btoa(`${i}:${o}:SiteKey`)}`},body:JSON.stringify({query:c?`${e.query}~`:`${e.query}`,perPage:e.perPage||10,page:e.page,enableFacetFiltering:null===(t=e.enableFacetFiltering)||void 0===t||t,filters:{WebsiteName:[a],Lang:[r],...e.filters},...e.sort&&{sort:e.sort}})})).json()},$t={MEDIA:{path:"media/releases"},INVESTOR:{path:"investors/updates"},TEST:{path:"media-test"}},Bt="all";async function jt(){const e=await n.Z4J.getEventYears({category:n.GMh.INVESTOR});return e.unshift("upcoming"),e}async function Kt(){const e=await n.Z4J.getEventTags({category:n.GMh.INVESTOR});return 0===e.length?[]:(e.unshift(Bt),e)}async function Vt(e){let{tab:t,subtab:r,page:a}=e;return zt({tab:t,subtab:r,page:a,category:n.GMh.INVESTOR})}async function Ht(){const e=await n.Z4J.getEventYears({category:n.GMh.MEDIA});return e.unshift("upcoming"),e}
2async function zt(e){let{tab:t,subtab:r,page:a,category:s=n.GMh.MEDIA}=e;const i="upcoming"===t?await n.Z4J.getUpcomingEvents({category:s,tag:null!=r?r:Bt,page:a}):await n.Z4J.getEvents({category:s,year:t,tag:null!=r?r:Bt,page:a});for(const[n,o]of i.Items.entries())i.Items[n]={...o};return i}function Gt(){return n.Z4J.getNewsYears({category:n.Kjf.SWISS})}function Wt(e){return ar({...e,category:n.Kjf.SWISS})}function Jt(e){return ar({...e,category:n.Kjf.INVESTOR})}function Yt(e){return sr({...e,type:"investors"})}function Zt(e){return sr({...e,type:"swiss"})}function Xt(){return n.Z4J.getNewsYears({category:n.Kjf.TEST})}function er(e){return ar({...e,category:n.Kjf.TEST})}function tr(e){return sr({...e,type:n.Kjf.TEST})}function rr(){return n.Z4J.getNewsYears({category:n.Kjf.MEDIA})}function nr(){return n.Z4J.getNewsYears({category:n.Kjf.INVESTOR})}async function ar(e){let{tab:t,page:r,category:a=n.Kjf.MEDIA}=e;const s=await n.Z4J.getNews({category:a,year:t,page:r});return s.Items=await ur(s.Items),s}async function sr(e){let{query:t,page:r,type:a=n.Kjf.MEDIA}=e;return(async e=>{let{query:t,page:r,type:n="media",perPage:a=10}=e;const s=await Qt({query:t,page:r,perPage:a,filters:{Type:[n]},sort:{Date:"desc"}}),i={Total:s.TotalDocument,Items:[],Page:r};for(const[p,f]of s.TypedDocuments.entries()){var o,u,l,c,h,d;i.Items[p]={localisedTitle:null===(o=f.Fields)||void 0===o||null===(u=o.Title)||void 0===u?void 0:u.Value,link:null===(l=f.Fields)||void 0===l||null===(c=l.Url)||void 0===c?void 0:c.Value,ReleaseDateTime:null===(h=f.Fields)||void 0===h||null===(d=h.Date)||void 0===d?void 0:d.Value}}return i})({query:t,page:r,type:a,perPage:10})}function ir(){return n.Z4J.getAdhocYears()}async function or(e){let{tab:t,page:r}=e;const a=await n.Z4J.getAdhoc({year:t,page:r});return a.Items=await ur(a.Items),a}async function ur(e){const t=n.gwd.getActiveLanguage(),r=[];for(const[a,s]of e.entries()){let e="",i="";if("SWISS"!==s.Category)e=n.gwd.getLocaleAwareLink(`${$t[s.Category].path}/${s.Slug}`,t),i=`${$t[s.Category].path}`;else{const r=Object.keys(s.Title);let a=t;1!==r.length&&r.includes(t)||(a=r.includes(n.gwd.getDefaultLocale())?n.gwd.getDefaultLocale():r[0]),e=n.gwd.getLocaleAwareLink(`/${Ut(a)}/informationen/${s.Slug}`,a)}r[a]={...s,localisedTitle:n.Z4J.getLocalisedValue(s,"Title",t),link:e,path:i}}return r}const lr=e=>{const t=e.locale?e.locale:n.gwd.getActiveLanguage(),r=Object.keys(e.teaserTitles||{}).filter(e=>e!==t);return r.length?a.createElement("div",{slot:e.slot,style:{display:"inline-flex",alignItems:"center"}},r.map((t,r)=>{const s=e.locale?n.gwd.getLocaleAwareLink(`${Ut(t)}/informationen/${e.slug}`,t):n.gwd.getLocaleAwareLink(e.slug,t),i=e.teaserTitles[t];return a.createElement(a.Fragment,{key:t},r>0&&a.createElement("span",{className:"available-languages__separator","aria-hidden":"true"},"Â |Â "),a.createElement(o.Tt,{href:s,lang:t,hrefLang:t,label:i,text:t.toUpperCase(),onTextLinkClick:t=>{var r;return null===(r=e.onLanguageClick)||void 0===r?void 0:r.call(e,t,s,i)}}))})):null},cr=e=>{let{item:t,trackingData:r,locale:s,autoFocus:i}=e;const u=(0,a.useContext)(n.qzM),{path:l}=(0,n.eHL)(),c=(0,n.soE)(i);return a.createElement(o.WJ,{linkRef:c,layout:o.GW.VARIANT_C_WITHOUT_IMAGE,teaserTitle:t.localisedTitle,teaserOverline:t.ReleaseDateTime?n.BKH.formatMediaItem(t,u.translations):void 0,teaserUrl:t.link,teaserOverlineElement:a.createElement(lr,{teaserTitles:t.Title,slug:`${t.path}/${t.Slug}`,locale:s,onLanguageClick:(e,t,n)=>At(e,r,n,t,l)}),onTeaserClick:e=>At(e,r,t.localisedTitle,t.link,l)})};let hr=function(e){return e.PAGES="pages",e.STORIES="stories",e.DOCUMENTS="documents",e}({});const dr=6,pr=async e=>{let{searchQuery:t,categoryFilter:r,page:a,pageSize:s=dr,translations:i}=e;return(async e=>{let{searchQuery:t,categoryFilter:r,page:a,pageSize:s=6,translations:i={}}=e;const u=await Qt({query:t,page:a,perPage:s,filters:{Category:[r]}}),l={Total:u.TotalDocument,Items:[],Page:a};for await(const[N,U]of u.TypedDocuments.entries()){var c,h,d,p,f,m,y,g,v,b,E,S,T,C,R,w,k,O,I,F,D,q,A,P,M,_,x,L;const e=(null===(c=U.Fields)||void 0===c||null===(h=c["Teaser Image"])||void 0===h?void 0:h.Value)||(null===(d=U.Fields)||void 0===d||null===(p=d.Image)||void 0===p?void 0:p.Value),t="none"===(null===(f=U.Fields)||void 0===f||null===(m=f["Story Type"])||void 0===m?void 0:m.Value)?o.D0.DEFAULT:null===(y=U.Fields)||void 0===y||null===(g=y["Story Type"])||void 0===g?void 0:g.Value,a=null!==(v=U.Fields)&&void 0!==v&&null!==(b=v["Published Date"])&&void 0!==b&&b.Value&&"pages"!==r?new Date(null===(E=U.Fields)||void 0===E||null===(S=E["Published Date"])||void 0===S?void 0:S.Value).toISOString():"",s=a?n.BKH.formatDate(a,"dateFull",i):"",u=(null===(T=U.Fields)||void 0===T||null===(C=T["Teaser Title"])||void 0===C?void 0:C.Value)||(null===(R=U.Fields)||void 0===R||null===(w=R.Title)||void 0===w?void 0:w.Value)||(null===(k=U.Fields)||void 0===k||null===(O=k.fc_Title)||void 0===O?void 0:O.Value)||(null===(I=U.Fields)||void 0===I||null===(F=I.fc_ResponseFileName)||void 0===F?void 0:F.Value)||n.hNM.capitalize(r);l.Items[N]={title:u,formattedReleaseDate:s,publishedDate:a,url:null===(D=U.Fields)||void 0===D||null===(q=D.Url)||void 0===q?void 0:q.Value,teaserType:t,variant:r,image:e,description:"documents"===r?n.hNM.getExtension(null===(A=U.Fields)||void 0===A||null===(P=A.Url)||void 0===P?void 0:P.Value).toUpperCase():(null===(M=U.Fields)||void 0===M||null===(_=M["Teaser Description"])||void 0===_?void 0:_.Value)||(null===(x=U.Fields)||void 0===x||null===(L=x.Description)||void 0===L?void 0:L.Value)}}return l})({searchQuery:t,categoryFilter:r,page:a,pageSize:s,translations:i})},fr=e=>{let{item:t,tab:r,trackingData:s,autoFocus:i}=e;const{path:u}=(0,n.eHL)(),l=t.teaserType?n.hNM.capitalize((0,n.Bdt)(t.teaserType)):void 0,c=(0,n.soE)(i),h=e=>At(e,s,t.title,t.url,u);switch(r){case hr.PAGES:return a.createElement(o.WJ,{layout:o.GW.VARIANT_A_WITHOUT_IMAGE,isDownloadLink:!1,isSearchResult:!0,teaserTitle:t.title,teaserDe
2scription:t.description,teaserImage:t.image,teaserImageAlt:t.title,teaserOverline:t.publishedDate,teaserUrl:t.url,"teaser-date":t.publishedDate,onTeaserClick:h,linkRef:c});case hr.STORIES:return a.createElement(o.JD,{slot:"teasers",teaserType:t.teaserType,teaserTagLabel:l,layout:o.Ru.VARIANT_A,teaserTitle:t.title,teaserDescription:t.description,teaserDate:t.formattedReleaseDate,dateTimeValue:t.publishedDate,teaserImage:t.image,teaserImageAlt:t.title,teaserUrl:t.url,onTeaserLinkClick:h,linkRef:c});case hr.DOCUMENTS:return a.createElement(n.aQF,{getComponent:Cr,onTeaserClick:h,linkRef:c,blok:{layout:o.GW.VARIANT_A_WITHOUT_IMAGE,teaser_title:t.title,teaser_overline:"",teaser_image:[],external_asset:"",publishing_date:"",internal_asset:{id:"",filename:t.url,title:t.title,name:t.title,alt:t.title,copyright:"",focus:""}}});default:return null}},mr=["dateDay","dateMonth","dateYear","dateNumeric","dateFull","dateEvents","january","february","march","april","may","june","july","august","september","october","november","december"],yr=e=>{let{searchQuery:t,categoryFilter:r,page:n,searchTrigger:s=Dt.MAIN_SEARCH,shouldTrack:i=!1,translations:o={}}=e;const{0:u,1:l}=(0,a.useState)(t),c=(0,a.useRef)(""),h=function(e){return void 0===e&&(e={}),mr.map(t=>{var r;return`${t}:${null!==(r=e[t])&&void 0!==r?r:""}`}).join("|")}(o);Ft(()=>{l(t)},500,[t]);const d=It({queryKey:["searchCategory",u,n,r,h],queryFn:()=>pr({searchQuery:u,page:n,categoryFilter:r,translations:o}),enabled:u.trim().length>=2});return(0,a.useEffect)(()=>{const e=`${u}-${r}-${n}`;i&&u.trim().length>=2&&d.isSuccess&&d.data&&c.current!==e&&(c.current=e,qt({term:u,results:d.data.Total||0,filter:{pagination:n,filter:r}},s))},[i,u,r,n,d.isSuccess,d.data]),d},gr=e=>e===o.G5.POPULAR_SEARCHES?Dt.SEARCH_SUGGESTION:Dt.MAIN_SEARCH,vr=Object.values(hr),br=e=>{var t;let{blok:r,getComponent:s}=e;const[i,u]=dt(),l=(0,a.useContext)(n.qzM),{0:c,1:h}=(0,a.useState)(o.G5.INPUT),{0:d,1:p}=(0,a.useState)(!1),f=i.get("query")||"",m=Number(i.get("page"))||1,y=i.get("tab")||"pages",g=(0,a.useRef)(null),v=(0,a.useRef)(f),b=(0,a.useRef)(m),E=(0,a.useRef)(y),S=n.hNM.capitalize((0,n.Bdt)("search")),T=n.hNM.capitalize((0,n.Bdt)("enter your search term")),C=n.hNM.capitalize((0,n.Bdt)("popular searches:")),R=null!==(t=r.total_results_found_text)&&void 0!==t?t:n.hNM.capitalize((0,n.Bdt)("total results found")),w=n.hNM.capitalize((0,n.Bdt)("quick links")),k=n.hNM.capitalize((0,n.Bdt)("loading")),O=(0,n.Bdt)("please try with another term."),I=(0,n.Bdt)("sorry, no results found."),F=n.hNM.capitalize((0,n.Bdt)("pages")),D=n.hNM.capitalize((0,n.Bdt)("stories")),q=n.hNM.capitalize((0,n.Bdt)("documents")),A=Pt(),P=vr.map(e=>({category:e,queryFn:yr({searchQuery:f,page:y===e?m:1,categoryFilter:e,searchTrigger:gr(c),shouldTrack:y===e,translations:l.translations})})),M=(0,a.useCallback)(e=>{switch(e){case hr.PAGES:return F;case hr.STORIES:return D;case hr.DOCUMENTS:return q;default:return e}},[F,D,q]),_=(0,a.useMemo)(()=>P.map(e=>{var t,r;let{category:n,queryFn:a}=e;return{tab:n,variant:n,title:M(n),items:(null===(t=a.data)||void 0===t?void 0:t.Items)||[],totalItems:(null===(r=a.data)||void 0===r?void 0:r.Total)||0}}),[P,M]),x=P.some(e=>{let{queryFn:t}=e;return t.isLoading}),L=P.some(e=>{let{queryFn:t}=e;return t.isFetched}),N=(0,a.useMemo)(()=>r.slotted_quick_links.map((e,t)=>(0,n.rK)({slot:"quick-links",blok:e,getComponent:s,keyForChildren:`quick-link-${t}`,parentComponent:"roche-search"},"search-quick-links")),[r.slotted_quick_links,s]),U=(0,a.useMemo)(()=>_.find(e=>e.tab===y),[_,y]);(0,a.useEffect)(()=>{const e=_.some(e=>e.items.length>0),t=f.trim().length>0;if(!e||!t)return;const r=v.current!==f,n=b.current!==m,a=E.current!==y;g.current&&!a&&(r||n)&&g.current.scrollIntoView({behavior:"smooth",block:"start"}),v.current=f,b.current=m,E.current=y},[f,m,y,_,x]);const Q=(0,a.useCallback)((e,t,r,n,s)=>a.createElement(fr,{key:`search-result-${t}-${r}-${n}`,item:e,tab:t,autoFocus:s,trackingData:{term:f,results:(null==U?void 0:U.totalItems)||0,resultPosition:r,filter:{pagination:m,filter:y},searchComponent:gr(c)}}),[f,U,m,y,c]),$=(0,a.useMemo)(()=>({popularSearches:r.slotted_popular_search.map(e=>{var t;return{label:null!==(t=l.popularSearchTranslations[e.label])&&void 0!==t?t:e.label}}),quick_links:N,labels:{popularSearchesTitle:C,quickLinksTitle:w}}),[r.slotted_popular_search,N,C,w,l.popularSearchTranslations]),B=(0,a.useMemo)(()=>({query:f,page:m,activeTab:y,trigger:c}),[f,m,y,c]),j=(0,a.useMemo)(()=>({searchTitle:S,searchPlaceholder:T,totalResultsFoundText:R,loadingText:k,noResultsTitle:I,noResultsMessage:O}),[S,T,R,k,I,O]),K=(0,a.useCallback)(e=>{void 0!==e.trigger&&h(e.trigger),p(e.page!==m&&e.query===f&&e.activeTab===y),u({query:e.query,page:e.page.toString(),tab:e.activeTab})},[u,m,f,y]);return a.createElement(o.y1,{variant:"main",autoFocusFirstItem:d,itemRenderer:Q,showInput:!0,support:$,searchState:B,searchResults:_,isLoading:x,hasQueriesBeenFetched:L,resultsRef:g,onSearchParamsChange:K,labels:j,ariaLabels:A})},Er=new Re,Sr=e=>n.LFT.isBrowserContext()?a.createElement(Ie,{client:Er},a.createElement(ut,null,a.createElement(at,null,a.createElement(rt,{path:"*",element:a.createElement(br,e)})))):a.createElement(Ie,{client:Er},a.createElement(pt,{location:"/"},a.createElement(at,null,a.createElement(rt,{path:"*",element:a.createElement(br,e)})))),Tr={...n.eSG,...l,HtmlBlob:e=>{let{blok:t,slot:r}=e;const{0:n,1:s}=(0,a.useState)({iframe_key:0}),i=()=>{s(e=>({iframe_key:e.iframe_key+1}))},{blob:o,url:u,iframe_height:l,css_injection:c,automatic_resize:h,scroll_hijack:d,min_height:p}=t;(0,a.useEffect)(()=>{var e;d&&(null===(e=document)||void 0===e||e.body.setAttribute("style","overflow: hidden"))},[]),"undefined"!=typeof window&&window.addEventListener("onetrustInitialized",()=>{["#onetrust-accept-btn-handler","#accept-recommended-btn-handler",".ot-pc-refuse-all-handler","#onetrust-reject-all-handler",".save-preference-btn-handler"].forEach(e
2=>{var t,r,n;return null===(t=document)||void 0===t||null===(r=t.body)||void 0===r||null===(n=r.querySelector(e))||void 0===n?void 0:n.addEventListener("click",i)})});const f=l?{height:`${l}px`}:{},m=p?{minHeight:"100vh"}:{};return a.createElement("iframe",{title:"Embedded Content",key:n.iframe_key,slot:r,srcDoc:o?y(o,l,c,h):void 0,src:u||void 0,style:{border:"none",width:"100%",...f,...m}})},Marketo:e=>{var t;let{blok:r,slot:s,getComponent:i}=e;const u={event:"form",component_name:"marketo-form"},{0:l,1:c}=(0,a.useState)(!1),{0:h,1:d}=(0,a.useState)(!1),{0:p,1:f}=(0,a.useState)(!1),{0:m,1:y}=(0,a.useState)(null),v=(0,a.useRef)(null),b=(0,a.useRef)(m);(0,a.useEffect)(()=>{b.current=null==m?void 0:m.replace("mktoForm_","")},[m]);const E=(0,n.Bdt)("form submitted successfully"),S=(0,n.Bdt)("an error occurred while submitting the form"),T=function(e,t){return void 0===t&&(t={}),n.bIn.push({...u,component_action:e,form_id:b.current,munchkin_id:v.current,...t})},C=async()=>{var e,t,a,s;c(!0),d(!1);const i="url"===(null==r||null===(e=r.link)||void 0===e?void 0:e.linktype),o=(null==r||null===(t=r.link)||void 0===t||null===(a=t.story)||void 0===a?void 0:a.url)||(null==r||null===(s=r.link)||void 0===s?void 0:s.url);var u;o&&""!==o&&(i&&!n.o_p.isWhitelistedDomain(o)||(await(u=1500,new Promise(e=>setTimeout(e,u))),window.location.href=i?o:`/${o}`.replace("","/")))},R=(e,t,r)=>{window.MktoForms2?window.MktoForms2.loadForm(e,t,r,e=>{(e=>{if(!e)return T(g.LOAD_FAILED),void f(!0);e.onValidate(e=>{e||(T(g.VALIDATION_FAILED),d(!0))}),e.onSubmit(()=>{T(g.SUBMIT)}),e.onSuccess(async()=>(T(g.SUCCESS),await C(),!1))})(e)}):d(!0)};return(0,a.useEffect)(()=>{const{marketo_property:e,marketo_url:t,form_id:n}=r,a=function(e,t,r){const n=`${t}/js/forms2/js/forms2.min.js`,a=`mktoForm_${r}`,s=e,i=r;return[n,a,s,i].some(e=>void 0===e)?null:{scriptSourceUrl:n,marketoFormId:a,marketoUrl:t,munchkinId:s,formId:i}}(e,t,n);if(!a)return void f(!0);const{scriptSourceUrl:s,marketoFormId:i,marketoUrl:o,munchkinId:u,formId:l}=a;v.current=u,y(i);let c=null;return window.MktoForms2?R(o,u,l):c=((e,t,r,n)=>{const a=document.createElement("script");return a.src=e,a.async=!0,a.onload=()=>R(t,r,n),document.body.appendChild(a),a})(s,o,u,l),()=>{c&&document.body.removeChild(c)}},[r.embedded_snippet]),(0,a.useEffect)(()=>{const e=new URLSearchParams(window.location.search).get("mkt_tok");e&&T(g.LEAD_TRACKING,{lead_origin:e})},[m]),a.createElement(o.nK,null,a.createElement("form",{id:m||void 0,style:{display:l?"none":"block"}}),a.createElement("br",null),l&&(null!==(t=r.success)&&void 0!==t&&t[0]?(0,n.rK)({blok:r.success[0],slot:s,getComponent:i}):a.createElement("div",null,n.hNM.capitalize(E))),h&&(null!=r&&r.error[0]?(0,n.rK)({blok:r.error[0],slot:s,getComponent:i}):a.createElement("div",null,n.hNM.capitalize(S))),p&&a.createElement("roche-editor-alert",{slot:s,type:"error",text:"The embed snippet could not be parsed. Please review the embed code and try again."}))},Podcast:e=>{var t,r,s,i;let{blok:u,slot:l}=e;const{props:c}=(0,n.J9h)(u),h=n.Tl_.isInEditor(),d=(null===(t=(c.IframeSnippet&&"string"==typeof c.IframeSnippet?c.IframeSnippet.replaceAll(""",'"'):"").match(D))||void 0===t?void 0:t[1])||"";if(!d&&h)return a.createElement("roche-editor-alert",{slot:l,type:"error",text:"The embed snippet could not be parsed. Please review the embed code and try again."});const p=Object.keys(I).find(e=>d.includes(e));if(!p&&h)return a.createElement("roche-editor-alert",{slot:l,type:"warning",text:"The provided embed markup belongs to an unsupported service. Only Spotify, Soundcloud, and Transistor are supported."});const f=((e,t)=>{const r={spotify:["playlist","track","show","episode","artist","album"],soundcloud:["playlist","track"],transistor:["transistor"]}[e];return r&&r.find(e=>null==t?void 0:t.includes(e))||null})(p,d);if(!f)return null;const m=null==d||null===(r=d.match(F[p]))||void 0===r?void 0:r[1],y=Boolean("spotify"===p&&(d.includes("creators")||d.includes("podcasters")));return m||y?a.createElement(a.Fragment,null,d&&p&&f?a.createElement(o.KH,{src:y?d:null===(s=I[p])||void 0===s||null===(i=s[f])||void 0===i?void 0:i.call(s,m),provider:y?"spotify-creators":p,slot:l,onPodcastStateChange:e=>(e=>{switch(e.type){case"starting":E(e);break;case"completed":T(e,e.base.audioPercentage);break;case"progress":S(e,e.base.audioPercentage);break;case"error":C(e,e.errorMessage)}})(e)}):null):null},PubMed:e=>{let{slot:t}=e;return a.createElement(a.Fragment,null)},RocheMediaReleasesInvestorUpdatesAdhoc:e=>{let{slot:t}=e;return a.createElement(xt,{slot:t,searchTrackingType:Dt.AD_HOC,tabName:"year",pageName:"page",queryName:"query",fetchTabs:ir,fetchList:or,itemRenderer:(e,t,r,n)=>a.createElement(cr,{key:`${e.Slug}-${t}
2`,item:e,trackingData:r,autoFocus:n})})},RocheInvestorEventsList:e=>{let{slot:t}=e;return a.createElement(xt,{slot:t,searchTrackingType:Dt.INVESTOR_EVENTS,tabName:"year",subtabName:"tag",pageName:"page",fetchTabs:jt,fetchSubtabs:Kt,fetchList:Vt,itemRenderer:(e,t,r,n)=>a.createElement(Lt,{key:`${e.Category}-${t}`,item:e,trackingData:r,autoFocus:n})})},RocheInvestorUpdatesList:e=>{let{slot:t}=e;return a.createElement(xt,{slot:t,searchTrackingType:Dt.INVESTOR_UPDATES,tabName:"year",pageName:"page",queryName:"query",fetchTabs:nr,fetchList:Jt,fetchSearch:Yt,itemRenderer:(e,t,r,n)=>a.createElement(cr,{key:`${e.Slug}-${t}`,item:e,trackingData:r,autoFocus:n}),showInput:!0})},RocheMediaEventsList:e=>{let{slot:t}=e;return a.createElement(xt,{slot:t,searchTrackingType:Dt.MEDIA_EVENTS,tabName:"year",pageName:"page",fetchTabs:Ht,fetchList:zt,itemRenderer:(e,t,r,n)=>a.createElement(Lt,{key:`${e["Start Date"]}-${t}`,item:e,trackingData:r,autoFocus:n})})},RocheMediaReleases:e=>{let{slot:t}=e;return a.createElement(xt,{slot:t,searchTrackingType:Dt.MEDIA_RELEASES,tabName:"year",pageName:"page",showInput:!0,queryName:"query",fetchTabs:rr,fetchList:ar,fetchSearch:sr,itemRenderer:(e,t,r,n)=>a.createElement(cr,{key:`${e.Slug}-${t}`,item:e,trackingData:r,autoFocus:n})})},RocheMediaSwitzerland:e=>{let{slot:t}=e;return a.createElement(xt,{slot:t,searchTrackingType:Dt.MEDIA_RELEASES,tabName:"year",pageName:"page",queryName:"query",fetchTabs:Gt,fetchList:Wt,fetchSearch:Zt,itemRenderer:(e,t,r,s)=>a.createElement(cr,{locale:n.gwd.getActiveLanguage(),key:`${e.link}-${t}`,item:e,trackingData:r,autoFocus:s})})},RocheSearch:e=>a.createElement(Sr,e),RocheTestReleases:e=>{let{slot:t}=e;return a.createElement(xt,{slot:t,searchTrackingType:Dt.MEDIA_RELEASES,tabName:"year",pageName:"page",fetchTabs:Xt,fetchList:er,fetchSearch:tr,itemRenderer:(e,t,r,n)=>a.createElement(cr,{key:`${e.Slug}-${t}`,item:e,trackingData:r,autoFocus:n})})}},Cr=(0,n.QE9)(Tr);var Rr=e=>{let{pageContext:t,pageResources:r,location:s}=e;const{story:{content:i,id:o},footer:u}=t,{hide_stock_price:l}=i,c=(0,n.rK)({getComponent:Cr,blok:i,storyId:o},"main"),h=[(0,n.rK)({getComponent:Cr,blok:{...u.content,canShowStockPrice:l}},"footer"),t.onClickNotice&&(0,n.rK)({getComponent:Cr,blok:t.onClickNotice.content},"on-click-notice")].filter(Boolean);return a.createElement(n.TWD,{isNewsImporter:!1,pageContext:t,pageResources:r,location:s,headerComponents:[],mainComponents:[c],footerComponents:h,getComponent:Cr})}}}]); 3//# sourceMappingURL=component---src-templates-default-tsx-270d73e7b8c700ae47b2.js.map
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.