1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91151,e=>{"use strict";e.i(135605);var t=e.i(282887);let n=["us","uk","nl","ch-fr","ch-de","nz","au","se","be-nl","be-fr","de","ca-en","ca-fr","fr","eu-en"];[...n,...t.MIRRORED_BLOG_MARKETS];let r=["ca","ch","be","eu"];function i(e){return r.includes(e)}let a={us:{defaultLang:"en",languages:{en:{locale:"en-US",market:"en-US",domain:"weightwatchers.com/us",cmxDomain:"weightwatchers.com"}}},ca:{defaultLang:"en",languages:{en:{locale:"en-CA",market:"en-CA",domain:"weightwatchers.com/ca/en",cmxDomain:"weightwatchers.ca",umxLoginPath:"/ca/en"},fr:{locale:"fr-CA",market:"fr-CA",domain:"weightwatchers.com/ca/fr",cmxDomain:"fr.weightwatchers.ca",umxLoginPath:"/ca/fr"}}},uk:{defaultLang:"en",languages:{en:{locale:"en-GB",market:"en-GB",domain:"weightwatchers.com/uk",cmxDomain:"weightwatchers.co.uk",umxLoginPath:"/uk/en"}}},gb:{defaultLang:"en",languages:{en:{locale:"en-GB",market:"en-GB",domain:"weightwatchers.com/uk",cmxDomain:"weightwatchers.co.uk",umxLoginPath:"/uk/en"}}},de:{defaultLang:"de",languages:{de:{locale:"de-DE",market:"de-DE",domain:"weightwatchers.com/de",cmxDomain:"weightwatchers.de",umxLoginPath:"/de/de"}}},fr:{defaultLang:"fr",languages:{fr:{locale:"fr-FR",market:"fr-FR",domain:"weightwatchers.com/fr",cmxDomain:"weightwatchers.fr",umxLoginPath:"/fr/fr"}}},nl:{defaultLang:"nl",languages:{nl:{locale:"nl-BE",market:"nl-BE",domain:"weightwatchers.com/nl",cmxDomain:"weightwatchers.nl",umxLoginPath:"/nl/nl"}}},au:{defaultLang:"en",languages:{en:{locale:"en-AU",market:"en-AU",domain:"weightwatchers.com/au",cmxDomain:"weightwatchers.com.au",umxLoginPath:"/au/en"}}},nz:{defaultLang:"en",languages:{en:{locale:"en-NZ",market:"en-NZ",domain:"weightwatchers.com/nz",cmxDomain:"weightwatchers.com.au",umxLoginPath:"/nz/en"}}},be:{defaultLang:"nl",languages:{nl:{locale:"nl-BE",market:"nl-BE",domain:"weightwatchers.com/be/nl",cmxDomain:"weightwatchers.be",umxLoginPath:"/be/nl"},fr:{locale:"fr-BE",market:"fr-BE",domain:"weightwatchers.com/be/fr",cmxDomain:"fr.weightwatchers.be",umxLoginPath:"/be/fr"}}},ch:{defaultLang:"de",languages:{de:{locale:"de-CH",market:"de-CH",domain:"weightwatchers.com/ch/de",cmxDomain:"weightwatchers.ch",umxLoginPath:"/ch/de"},fr:{locale:"fr-CH",market:"fr-CH",domain:"weightwatchers.com/ch/fr",cmxDomain:"fr.weightwatchers.ch",umxLoginPath:"/ch/fr"}}},se:{defaultLang:"sv",languages:{sv:{locale:"sv-SE",market:"sv-SE",domain:"viktvaktarna.se/se",cmxDomain:"viktvaktarna.se",umxLoginPath:"/se/sv"}}},eu:{defaultLang:"en",languages:{en:{locale:"en-EU",market:"en-EU",domain:"weightwatchers.com/eu/en",accountUrlStyle:"site"}}}};function s(e,t){return e in t.languages}let o=e=>{let t=e.trim().toLowerCase().split(/[/-]/);if(t.length>2||""===t[0]||2===t.length&&""===t[1])return null;if(1===t.length)return{country:t[0]};let[n,r]=t,i=n in a,o=r in a;return i&&!o?{country:n,lang:r}:!i&&o||i&&o&&s(n,a[r])?{country:r,lang:n}:i?{country:n,lang:r}:null};function l(e){if(null==e||""===e)return"";let t=e.trim().toLowerCase();if(""===t)return"";let n=o(t);if(!n)return t;let{country:r,lang:a}=n;return void 0!==a&&i(r),r}function c(e){let t=u(e);if(!t)return null;let n=a[t.country],r=n.languages[t.langKey];return r?{countryConfig:n,langConfig:r}:null}function u(e){let t=o(e);if(!t)return null;let n="gb"===t.country?"uk":t.country,{lang:r}=t;if(!(n in a))return null;let i=a[n];return{country:n,langKey:r&&s(r,i)?r:i.defaultLang}}function h(e,t){let n=c(e);if(n?.langConfig.accountUrlStyle==="site")return`https://www.${n.langConfig.domain}${"login"===t?"/account/login":"/account"}`;let r=n?.langConfig.cmxDomain||"weightwatchers.com";return`https://cmx.${r}${"login"===t?"/login":"/"}`}function d(e,t){var n;let r=c(e)?.langConfig;return r?.umxLoginPath?`https://www.${n=e,(c(n)?.langConfig.domain??f).split("/")[0]??f}${r.umxLoginPath}${t}`:null}let f="weightwatchers.com",p=["ca","ch","be"];e.s(["ALLOWED_LOCALES_MAP",0,a,"DEFAULT_LOCALE",0,"us","SUPPORTED_LO
1CALES",0,n,"getCmxAccountUrl",0,function(e){return h(e,"account")},"getCmxLoginUrl",0,function(e){return h(e,"login")},"getLanguageOptions",0,function(e){let t=o(e);if(!t)return null;let{country:n,lang:r}=t;if(!(n in a)||!p.includes(n))return null;let i=a[n],s=i.languages,l=Object.keys(s);if(l.length<2)return null;let c=r&&r in s?r:i.defaultLang,u=l.map(e=>({lang:e,label:e.toUpperCase(),locale:`${n}-${e}`})),h=u.find(e=>e.lang===c);return h?{country:n,current:h,options:u}:null},"getLocaleSlug",0,function(e){let t=u(e);if(!t)return null;let{country:r,langKey:a}=t,s=i(r)?`${r}-${a}`:r;return n.includes(s)?s:null},"getMarketFromUrlLocale",0,function(e){return c(e)?.langConfig.market||null},"getMirroredBlogMarketForLocale",0,function(e){return t.MIRRORED_BLOG_MARKETS.find(n=>(0,t.getMirroredBlogMarketLocales)(n).includes(e))},"getUmxAccountUrl",0,function(e){return d(e,"/account")},"getUmxLoginUrl",0,function(e){return d(e,"/account/login")},"isLocalePathSegment",0,function(e){return n.includes(e)},"isMultiPartCountry",0,i,"normalizeStoryblokRegionLocale",0,l,"storyblokRegionLocalesMatch",0,function(e,t){return l(e)===l(t)}])},996698,511518,487122,516467,708894,825822,492552,e=>{"use strict";var t=e.i(135605),n=e.i(91151);let r=Symbol.for("constructDateFrom");function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r in e?e[r](t):e instanceof Date?new e.constructor(t):new Date(t)}function a(e,t){return i(t||e,e)}function s(e,t){return+a(e)<+a(t)}function o(e,t){let n,r,s=()=>i(t?.in,NaN),o=t?.additionalDigits??2,y=function(e){let t,n={},r=e.split(l);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],c.test(n.date)&&(n.date=e.split(c)[0],t=e.substr(n.date.length,e.length))),t){let e=u.exec(t);e?(n.time=t.replace(e[1],""),n.timezone=e[1]):n.time=t}return n}(e);if(y.date){let e=function(e,t){let n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};let i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(y.date,o);n=function(e,t){var n,r,i,a,s,o,l,c,u,d;if(null===t)return new Date(NaN);let f=e.match(h);if(!f)return new Date(NaN);let g=!!f[4],y=p(f[1]),v=p(f[2])-1,b=p(f[3]),S=p(f[4]),k=p(f[5])-1;if(g){let e,o;return(n=S,r=k,n>=1&&n<=53&&r>=0&&r<=6)?(i=t,a=S,s=k,(e=new Date(0)).setUTCFullYear(i,0,4),o=e.getUTCDay()||7,e.setUTCDate(e.getUTCDate()+((a-1)*7+s+1-o)),e):new Date(NaN)}{let e=new Date(0);return(o=t,l=v,c=b,l>=0&&l<=11&&c>=1&&c<=(m[l]||(w(o)?29:28))&&(u=t,(d=y)>=1&&d<=(w(u)?366:365)))?(e.setUTCFullYear(t,v,Math.max(y,b)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!n||isNaN(+n))return s();let v=+n,b=0;if(y.time&&isNaN(b=function(e){var t,n,r;let i=e.match(d);if(!i)return NaN;let a=g(i[1]),s=g(i[2]),o=g(i[3]);return(t=a,n=s,r=o,24===t?0===n&&0===r:r>=0&&r<60&&n>=0&&n<60&&t>=0&&t<25)?36e5*a+6e4*s+1e3*o:NaN}(y.time)))return s();if(y.timezone){if(isNaN(r=function(e){var t;if("Z"===e)return 0;let n=e.match(f);if(!n)return 0;let r="+"===n[1]?-1:1,i=parseInt(n[2]),a=n[3]&&parseInt(n[3])||0;return(t=a)>=0&&t<=59?r*(36e5*i+6e4*a):NaN}(y.timezone)))return s()}else{let e=new Date(v+b),n=a(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return a(v+b+r,t?.in)}e.s(["constructFromSymbol",0,r,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInWeek",0,6048e5],511518),e.s(["constructFrom",0,i],487122),e.s(["toDate",0,a],516467),e.s(["isBefore",0,s],708894);let l=/[T ]/,c=/[Z ]/i,u=/([Z+-].*)$/,h=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,d=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,f=/^([+-])(\d{2})(?::?(\d{2}))?$/;function p(e){return e?parseInt(e):1}function g(e){return e&&parseFloat(e.replace(",","."))||0}let m=[31,null,31,30,31,30,31,31,30,31,30,31];function w(e){return e%400==0||e%4==0&&e%100!=0}e.s(["parseISO",0,o],825822);var y=e.i(703209);
1class v extends Error{status;code;constructor(e,t,n="API_ERROR"){super(e),this.name="WWAPIError",this.status=t,this.code=n}}class b{config;authToken=null;constructor(e){this.config=e}getAuthToken(){if(this.authToken)return this.authToken;if("u">typeof document){let e=document.cookie.split(";").find(e=>e.trim().startsWith("wwSession="));if(e){let t=e.split("=")[1];return this.isTokenExpired(t)?null:t}}return null}isTokenExpired(e){try{let{exp:t}=(0,y.jwtDecode)(e);return"number"==typeof t&&1e3*t<=Date.now()}catch{return!1}}setAuthToken(e){this.authToken=e}setWwSession(e){}clearAuthToken(){this.authToken=null}clearWwSession(){"u">typeof document&&(document.cookie="wwSession=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT")}isAuthenticated(){return!!this.getAuthToken()}async makeRequest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=`${n||this.config.baseURL}${e}`,i={"Content-Type":"application/json",...t.headers},a=this.getAuthToken();a&&(i.Authorization=`Bearer ${a}`);let s={...t,headers:i},o=new AbortController,l=setTimeout(()=>o.abort(),this.config.timeout);try{let e=await fetch(r,{...s,signal:o.signal});if(clearTimeout(l),!e.ok){401===e.status&&this.clearWwSession();let t=(await e.json().catch(()=>({}))).message||`HTTP error! status: ${e.status}`;throw new v(t,e.status,this.getErrorCode(e.status))}return await e.json()}catch(e){if(e instanceof v)throw e;if(e instanceof Error){if("AbortError"===e.name)throw new v("Request timeout",408,"TIMEOUT_ERROR");throw new v(e.message,0,"NETWORK_ERROR")}throw new v("Unknown error occurred",0,"UNKNOWN_ERROR")}finally{clearTimeout(l)}}getErrorCode(e){return e>=500?"SERVER_ERROR":404===e?"NOT_FOUND":403===e?"FORBIDDEN":401===e?"UNAUTHORIZED":400===e?"BAD_REQUEST":e>=400?"CLIENT_ERROR":"UNKNOWN_ERROR"}async login(e,t,n){throw Error("Login is only available in development environment")}}e.s(["BaseWWAPIClient",0,b,"WWAPIError",0,v],492552);class S extends b{constructor(e={}){super({baseURL:"https://api1.weightwatchers.com",wwApiURL:"https://api.ww.com",timeout:1e4,retries:3,...e})}transformGetExperiences(e){return e.filter(e=>!!e.utcStartTime&&!!e.utcEndTime)}async getExperiences(e){let{validDays:t=8,showCancelledEvents:r=!1,market:i,tag:a}=e,s=new URLSearchParams({market:(0,n.getMarketFromUrlLocale)(i)??"en-US",validDays:`${t}`,showCancelledEvents:`${r}`});a&&s.append("tags",a);let o=await this.makeRequest(`/wsf/v2/virtual?${s.toString()}`);return{...o,events:this.transformGetExperiences(o?.events||[])}}async getUserInfo(){try{var e;let t,n,r,i,a,l=await this.makeRequest("/v1/identity/member",{},this.config.wwApiURL),c=(e=l.account||{},t=e?.enrollment?.entitlements||[],n=e?.enrollment?.premiumTrialEndDate,i=(r=e?.identity?.accountStatus==="active")&&function(e){if(!e||0===e.length)return!1;let t=e.includes("app")&&e.includes("studio"),n=e.includes("classic-monthly_pass");return t||n}(t),a=r&&function(e){if(!e)return!1;try{let t=o(e),n=new Date;return s(n,t)}catch{return console.error("Invalid premiumTrialEndDate format:",e),!1}}(n),{isPremium:i,isPremiumTrial:a,hasPremiumAccess:i||a,isCore:r&&function(e){if(!e||0===e.length)return!1;let t=["classic-monthly_pass","classic-etools","studio","coaching","ww4d","clinical"];return!e.some(e=>t.includes(e))&&e.includes("app")}(t)});return{...l,membershipStatus:c}}catch(e){this.clearWwSession(),console.error("Error getting user info",e)}}async getCoaches(e){let{coachTypes:t="vw_coach",page:r=0,limit:i=300,market:a}=e,s=new URLSearchParams({market:(0,n.getMarketFromUrlLocale)(a)??"en-US",coachTypes:t,page:`${r}`,limit:`${i}`});return await this.makeRequest(`/wsf/v1/coach-tech/profiles?${s.toString()}`)}async getCoachDetail(e){let{coachId:t,market:r}=e,i=new URLSearchParams({market:(0,n.getMarketFromUrlLocale)(r)??"en-US"});return await this.makeRequest(`/wsf/v1/coach-tech/profiles/${t}?${i.toString()}`)}async getVirtualWorkshop(e){let{workshopId:t,market:r}=e,i=(0,n.getMarketFromUrlLocale)(r)??"en-US";return await this.makeRequest(`/wsf/v2/virtual/${t}?market=${i}`)}async getUpsellEligibility(e){let{userId:t,market:r}=e,i=(0,n.getMarketFromUrlLocale)(r)??"en-US";
1return await this.makeRequest(`/v2/subscription/${t}/switch/eligibility?market=${i}`,{},this.config.wwApiURL)}async getSubscriptionStatus(e){if(e)try{return await this.makeRequest(`/sms/v1/accounts/code-${e}/subscription`,{},this.config.wwApiURL)}catch(e){console.error("Error getting subscription status",e)}}async getFavoriteLocations(e){let{market:t}=e,r=(0,n.getMarketFromUrlLocale)(t)??"en-US";return await this.makeRequest(`/wsf/v1/member/favorites/locations?market=${r}&time=${Date.now()}`)}async addFavoriteLocation(e){let{locationId:t,market:r}=e,i=(0,n.getMarketFromUrlLocale)(r)??"en-US";return await this.makeRequest(`/wsf/v1/member/favorites/locations/${t}?market=${i}`,{method:"POST"})}async removeFavoriteLocation(e){let{locationId:t,market:r}=e,i=(0,n.getMarketFromUrlLocale)(r)??"en-US";return await this.makeRequest(`/wsf/v1/member/favorites/locations/${t}?market=${i}`,{method:"DELETE"})}async getInPersonExperiences(e){let{searchText:r,market:i,radius:a=150,page:s=0,startDate:o,endDate:l,type:c,excludeTypes:u,excludeLocations:h,meetingDays:d}=e,f=(0,n.getMarketFromUrlLocale)(i)??"en-US",p=["en-CA","fr-CA"].includes(f)?Math.min(a,50):a,g=t.default.env.NEXT_PUBLIC_WW_EXCLUDE_LOCATION_TYPES||"2,13",m=t.default.env.NEXT_PUBLIC_WW_EXCLUDE_LOCATION_IDS||"2562,7262,45762",w=[`market=${f}`,`searchText=${r}`,`radius=${p}`,`page=${s}`,`execludeTypes=${u||g}`,`execludeLocations=${h||m}`];o&&w.push(`startDate=${o}`),l&&w.push(`endDate=${l}`),c&&w.push(`type=${c}`),d&&w.push(`meetingDays=${d}`);let y=w.join("&");return await this.makeRequest(`/wsf/v3/locations?${y}`)}}let k=new S;e.s(["WWAPIClient",0,S,"wwAPIClient",0,k],996698)},935140,e=>{"use strict";var t=e.i(279743),n=e.i(204039),r=new class extends t.Subscribable{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!n.isServer&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,r])},889747,e=>{"use strict";let t,n,r,i,a,s;var o=e.i(608839).systemSetTimeoutZero,l=(t=[],n=0,r=e=>{e()},i=e=>{e()},a=o,{batch:e=>{let s;n++;try{s=e()}finally{let e;--n||(e=t,t=[],e.length&&a(()=>{i(()=>{e.forEach(e=>{r(e)})})}))}return s},batchCalls:e=>function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];s(()=>{e(...n)})},schedule:s=e=>{n?t.push(e):a(()=>{r(e)})},setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{a=e}});e.s(["notifyManager",0,l])},868259,170434,297805,879714,702872,e=>{"use strict";var t=e.i(204039),n=e.i(889747),r=e.i(935140),i=e.i(279743),a=new class extends i.Subscribable{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!t.isServer&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}};function s(){let e,t,n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function o(e){return Math.min(1e3*2**e,3e4)}function l(e){return(e??"online")!=="online"||a.isOnline()}e.s(["onlineManager",0,a],170434),e.s(["pendingThenable",0,s],297805);
1var c=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function u(e){let n,i=!1,u=0,h=s(),d=()=>r.focusManager.isFocused()&&("always"===e.networkMode||a.isOnline())&&e.canRun(),f=()=>l(e.networkMode)&&e.canRun(),p=e=>{"pending"===h.status&&(n?.(),h.resolve(e))},g=e=>{"pending"===h.status&&(n?.(),h.reject(e))},m=()=>new Promise(t=>{n=e=>{("pending"!==h.status||d())&&t(e)},e.onPause?.()}).then(()=>{n=void 0,"pending"===h.status&&e.onContinue?.()}),w=()=>{let n;if("pending"!==h.status)return;let r=0===u?e.initialPromise:void 0;try{n=r??e.fn()}catch(e){n=Promise.reject(e)}Promise.resolve(n).then(p).catch(n=>{if("pending"!==h.status)return;let r=e.retry??3*!t.isServer,a=e.retryDelay??o,s="function"==typeof a?a(u,n):a,l=!0===r||"number"==typeof r&&u<r||"function"==typeof r&&r(u,n);i||!l?g(n):(u++,e.onFail?.(u,n),(0,t.sleep)(s).then(()=>d()?void 0:m()).then(()=>{i?g(n):w()}))})};return{promise:h,status:()=>h.status,cancel:t=>{if("pending"===h.status){let n=new c(t);g(n),e.onCancel?.(n)}},continue:()=>(n?.(),h),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:f,start:()=>(f()?w():m().then(w),h)}}e.s(["CancelledError",0,c,"canFetch",0,l,"createRetryer",0,u],879714);var h=e.i(608839),d=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#i=h.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(t.isServer?1/0:3e5))}clearGcTimeout(){this.#i&&(h.timeoutManager.clearTimeout(this.#i),this.#i=void 0)}};e.s(["Removable",0,d],702872);var f=class extends d{#a;#s;#o;#l;#c;#u;#h;constructor(e){super(),this.#h=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#o=this.#l.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=m(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#c?.promise}setOptions(e){if(this.options={...this.#u,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=m(this.options);void 0!==e.data&&(this.setState(g(e.data,e.dataUpdatedAt)),this.#a=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#o.remove(this)}setData(e,n){let r=(0,t.replaceData)(this.state.data,e,this.options);return this.#d({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){let n=this.#c?.promise;return this.#c?.cancel(e),n?n.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#c?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#c?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.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.#c&&(this.#h?this.#c.cancel({revert:!0}):this.#c.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}
1async fetch(e,n){let r;if("idle"!==this.state.fetchStatus&&this.#c?.status()!=="rejected"){if(void 0!==this.state.data&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#c)return this.#c.continueRetry(),this.#c.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,i.signal)})},s=()=>{let e,r=(0,t.ensureQueryFn)(this.options,n),i=(a(e={client:this.#l,queryKey:this.queryKey,meta:this.meta}),e);return(this.#h=!1,this.options.persister)?this.options.persister(r,i,this):r(i)},o=(a(r={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:s}),r);this.options.behavior?.onFetch(o,this),this.#s=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#d({type:"fetch",meta:o.fetchOptions?.meta}),this.#c=u({initialPromise:n?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof c&&e.revert&&this.setState({...this.#s,fetchStatus:"idle"}),i.abort()},onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let e=await this.#c.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#o.config.onSuccess?.(e,this),this.#o.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof c){if(e.silent)return this.#c.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#d({type:"error",error:e}),this.#o.config.onError?.(e,this),this.#o.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#d(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,...p(t.data,this.options),fetchMeta:e.meta??null};case"success":let n={...t,...g(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#s=e.manual?n:void 0,n;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),n.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function p(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:l(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function g(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function m(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,f,"fetchState",0,p],868259)},279743,e=>{"use strict";e.s(["Subscribable",0,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(){}}])},204039,608839,e=>{"use strict";var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},n=new class{#f=t;#p=!1;setTimeoutProvider(e){this.#f=e}setTimeout(e,t){return this.#f.setTimeout(e,t)}clearTimeout(e){this.#f.clearTimeout(e)}setInterval(e,t){return this.#f.setInterval(e,t)}clearInterval(e){this.#f.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,n],608839);var r="u"<typeof window||"Deno"in globalThis;function i(e,t){return(t?.queryKeyHashFn||a)(e)}function a(e){return JSON.stringify(e,(e,t)=>c(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function s(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>s(e[n],t[n]))}var o=Object.prototype.hasOwnProperty;function l(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function c(e){if(!u(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!u(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}var h=Symbol();e.s(["addToEnd",0,function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[...e,t];return n&&r.length>n?r.slice(1):r},"addToStart",0,function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[t,...e];return n&&r.length>n?r.slice(0,-1):r},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==h?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,a,"hashQueryKeyByOptions",0,i,"isServer",0,r,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(a(t.options.mutationKey)!==a(o))return!1}
1else if(!s(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&(!i||!!i(t))},"matchQuery",0,function(e,t){let{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==i(l,t.options))return!1}else if(!s(t.queryKey,l))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof c||t.isStale()===c)&&(!a||a===t.state.fetchStatus)&&(!o||!!o(t))},"noop",0,function(){},"partialMatchKey",0,s,"replaceData",0,function(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function e(t,n){if(t===n)return t;let r=l(t)&&l(n);if(!r&&!(c(t)&&c(n)))return n;let i=(r?t:Object.keys(t)).length,a=r?n:Object.keys(n),s=a.length,u=r?Array(s):{},h=0;for(let l=0;l<s;l++){let s=r?l:a[l],c=t[s],d=n[s];if(c===d){u[s]=c,(r?l<i:o.call(t,s))&&h++;continue}if(null===c||null===d||"object"!=typeof c||"object"!=typeof d){u[s]=d;continue}let f=e(c,d);u[s]=f,f===c&&h++}return i===s&&h===i?t:u}(e,t):t},"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,h,"sleep",0,function(e){return new Promise(t=>{n.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],204039)},855312,e=>{"use strict";var t=e.i(468118),n=e.i(864360),r=t.createContext(void 0);e.s(["QueryClientProvider",0,e=>{let{client:i,children:a}=e;return t.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),(0,n.jsx)(r.Provider,{value:i,children:a})},"useQueryClient",0,e=>{let n=t.useContext(r);if(e)return e;if(!n)throw Error("No QueryClient set, use QueryClientProvider to set one");return n}])},703209,e=>{"use strict";class t extends Error{}t.prototype.name="InvalidTokenError",e.s(["jwtDecode",0,function(e,n){let r;if("string"!=typeof e)throw new t("Invalid token specified: must be a string");n||(n={});let i=+(!0!==n.header),a=e.split(".")[i];if("string"!=typeof a)throw new t(`Invalid token specified: missing part #${i+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var n;return n=t,decodeURIComponent(atob(n).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}catch(e){return atob(t)}}(a)}catch(e){throw new t(`Invalid token specified: invalid base64 for part #${i+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new t(`Invalid token specified: invalid json for part #${i+1} (${e.message})`)}}])},828694,(e,t,n)=>{t.exports=e.r(84274)},282887,770376,e=>{"use strict";let t=[{internal:"find-a-workshop/virtual",groups:[{locales:["se"],path:"hitta-workshop/virtuell"},{locales:["be-fr","ca-fr","ch-fr","fr"],path:"trouver-un-atelier/virtuel"},{locales:["be-nl","nl"],path:"vind-een-workshop/online"},{locales:["ch-de","de"],path:"workshop-finden/virtuell"}]},{internal:"find-a-workshop/browse-ww-coaches",groups:[{locales:["se"],path:"hitta-workshop/browse-ww-coaches"},{locales:["ch-fr"],path:"trouver-un-atelier/browse-ww-coaches"},{locales:["be-fr","ca-fr","fr"],path:"trouver-un-atelier/parcourir-ww-coachs"},{locales:["be-nl","nl"],path:"vind-een-workshop/bekijk-ww-coaches"},{locales:["ch-de"],path:"workshop-finden/browse-ww-coaches"},{locales:["de"],path:"workshop-finden/coaches"}]},{internal:"find-a-workshop",groups:[{locales:["se"],path:"hitta-workshop"},{locales:["be-fr","ca-fr","ch-fr","fr"],path:"trouver-un-atelier"},{locales:["be-nl","nl"],path:"vind-een-workshop"},{locales:["ch-de","de"],path:"workshop-finden"}]}];e.s(["FIND_A_WORKSHOP_LOCALIZED_ROUTES",0,t],770376);let n={"ca-en":"ca/en","ca-fr":"ca/fr","ch-de":"ch/de","ch-fr":"ch/fr","be-fr":"be/fr","be-nl":"be/nl","eu-en":"eu/en"},r=["au-nz"];function i(e){return r.includes(e)}function a(e){if(e.startsWith("http")||e.startsWith("#")||e.includes(":"))return e;let t=e.startsWith("/")?e:`/${e}`,r=t.match(/^(\/preview)?\/([a-z]{2})-([a-z]{2})(\/|$)/);if(!r)return t;let a=r[1]??"",s=`${r[2]}-${r[3]}`,o=t.slice(r[0].length-("/"===r[4]));return s in n?`${a}/${n[s]}${o}`:i(s)?t:`${a}/${r[2]}${o}`}let s=[{internal:"recipe",groups:[{locales:["fr","ca-fr","be-fr","ch-fr"],path:"recette"},{locales:["de","ch-de"],path:"rezept"},{locales:["nl","be-nl","se"],path:"recept"}]}],o=[{internal:"meal",groups:[{locales:["fr"],path:"menu"},{locales:["be-fr"],path:"repas"},{locales:["nl","be-nl"],path:"maaltijd"}]}],l=[...s,...o,{internal:"find-my-plan",groups:[{locales:["de","ch-de"],path:"meinen-plan-finden"},{locales:["fr","ca-fr","be-fr","ch-fr"],path:"trouver-mon-plan"},{locales:["nl","be-nl"],path:"vind-mijn-plan"},{locales:["se"],path:"hitta-min-plan"}]},{internal:"blog/category/success-stories",groups:[{locales:["nl","be-nl"],path:"blog/category/succesverhalen"},{locales:["ca-fr","fr","be-fr"],path:"blog/category/temoignages"}
1,{locales:["de","ch-de"],path:"blog/category/erfolgsgeschichten"},{locales:["se"],path:"blog/category/framgang"}]},{internal:"blog/category",groups:[]},...t].sort((e,t)=>t.internal.split("/").length-e.internal.split("/").length),c=new Set(Object.keys(n).map(e=>e.split("-")[0])),u=e=>e.includes("-")?[e,e.replace("-","/")]:[e];new WeakMap,new WeakMap;let h="meal";e.s(["DEFAULT_MEAL_SEGMENT",0,h,"MEAL_LOCALIZED_ROUTES",0,o,"MIRRORED_BLOG_MARKETS",0,r,"RECIPE_LOCALIZED_ROUTES",0,s,"canonicalizeLocaleInPath",0,a,"canonicalizeRouteInPath",0,function(e){let t;if(""===e||e.startsWith("http")||e.startsWith("#")||e.includes(":"))return e;let r=a(e),i=-1===(t=r.search(/[?#]/))?r.length:t,s=r.slice(0,i),o=r.slice(i),u=s.length>1&&s.endsWith("/");u&&(s=s.slice(0,-1));let h="/preview"===s||s.startsWith("/preview/"),d=h?"/preview":"",f=function(e){let t=e.split("/").filter(Boolean),r=t[0];if(void 0===r)return null;let i=t[1];if(c.has(r)&&void 0!==i&&`${r}-${i}`in n){let e=t.slice(2);return 0===e.length?null:{locale:`${r}-${i}`,localePrefix:`${r}/${i}`,routePath:e.join("/")}}let a=t.slice(1);return 0===a.length?null:{locale:r,localePrefix:r,routePath:a.join("/")}}(h?s.slice(d.length):s);if(!f)return r;let p=f.routePath.replace(/^intl\/[^/]+\//,""),g=p!==f.routePath;if("home"===p)return`${d}/${f.localePrefix}${o}`;let m=`${d}/${f.localePrefix}/${p}${u?"/":""}${o}`;for(let e of l){if(!(p===e.internal||p.startsWith(`${e.internal}/`)))continue;let t=e.groups.find(e=>e.locales.includes(f.locale));if(!t)break;let n=p.slice(e.internal.length),r=`${t.path}${n}`,i=`${d}/${f.localePrefix}/${r}`;return`${i}${u?"/":""}${o}`}return g?m:r},"generateLocalizedRedirects",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return e.flatMap(e=>{let{internal:r,groups:i}=e;return i.flatMap(e=>{let{locales:i,path:a}=e;return i.flatMap(e=>u(e).map(e=>({source:`${t}/${e}/${r}/:path*`,destination:`${t}/${e}/${a}/:path*`,permanent:n})))})})},"generateLocalizedRewrites",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.flatMap(e=>{let{internal:n,groups:r}=e;return r.flatMap(e=>{let{locales:r,path:i}=e;return r.flatMap(e=>u(e).map(e=>({source:`${t}/${e}/${i}/:path*`,destination:`${t}/${e}/${n}/:path*`})))})})},"getLocaleUrlVariations",0,u,"getMealSegmentForLocale",0,function(e){let t=o[0]?.groups.find(t=>t.locales.includes(e));return t?t.path:h},"getMirroredBlogMarketLocales",0,function(e){return i(e)?e.split("-"):[e]},"isMirroredBlogMarket",0,i,"localeSlugToPathSegment",0,function(e){return e&&e.includes("-")?e.replace("-","/"):e}],282887)}]);
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.