ou?(i=n.length-ou,[4,e.prototype.set.call(this,t,n.slice(0,ou))]):[3,2];case 1:return a.sent(),(r=this.loggerProvider)==null||r.error(`Failed to save ${i} events because the queue length exceeded ${ou}.`),[3,4];case 2:return[4,e.prototype.set.call(this,t,n)];case 3:a.sent(),a.label=4;case 4:return[2]}})})},t}(Hs),cu=function(e){Va(t,e);function t(){var t;return e.call(this,(t=K())==null?void 0:t.sessionStorage)||this}return t}(Hs),lu=function(e){Va(t,e);function t(t){t===void 0&&(t={});var n=e.call(this)||this;return n.state={done:4},n.customHeaders=t,n}return t.prototype.send=function(e,t,n){return n===void 0&&(n=!1),z(this,void 0,void 0,function(){var r=this;return B(this,function(i){return[2,new Promise(function(i,a){typeof XMLHttpRequest>`u`&&a(Error(`XHRTransport is not supported.`));var o=new XMLHttpRequest;o.open(`GET`,e,!0),o.onreadystatechange=function(){if(o.readyState===r.state.done){var e=o.responseText;try{i(r.buildResponse(JSON.parse(e)))}catch{i(r.buildResponse({code:o.status}))}}};var s={"Content-Type":`application/json`,Accept:`*/*`},c=JSON.stringify(t),l=n&&c.length>=2048&&oc(),u=function(e){var t,n;s=R(R({},r.customHeaders),s);try{for(var i=V(Object.entries(s)),a=i.next();!a.done;a=i.next()){var c=H(a.value,2),l=c[0],u=c[1];o.setRequestHeader(l,u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}o.send(e)};(function(){return z(r,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return l?[4,sc(c)]:[3,2];case 1:return e=t.sent(),e?(s[`Content-Encoding`]=`gzip`,u(e)):u(c),[3,3];case 2:u(c),t.label=3;case 3:return[2]}})})})().catch(a)})]})})},t}(ac),uu=function(e){Va(t,e);function t(t,n,r){t===void 0&&(t={});var i=e.call(this)||this;return i.customHeaders=t,i.enableKeepalive=n!==!1,i.referrerPolicy=r,i}return t.prototype.send=function(e,t,n){return n===void 0&&(n=!1),z(this,void 0,void 0,function(){var r,i,a,o,s,c,l,u,d;return B(this,function(f){switch(f.label){case 0:if(typeof fetch>`u`)throw Error(`FetchTransport is not supported`);return r=JSON.stringify(t),i=n&&r.length>=2048&&oc(),a=r,o={"Content-Type":`application/json`,Accept:`*/*`},i?[4,sc(r)]:[3,2];case 1:s=f.sent(),s&&(o[`Content-Encoding`]=`gzip`,a=s),f.label=2;case 2:return o=R(R({},this.customHeaders),o),c=typeof a==`string`?a.length:a.byteLength,l={headers:o,method:`GET`,keepalive:this.enableKeepalive&&c<=16384},this.referrerPolicy&&(l.referrerPolicy=this.referrerPolicy),[4,fetch(e,l)];case 3:return u=f.sent(),[4,u.text()];case 4:d=f.sent();try{return[2,this.buildResponse(JSON.parse(d))]}catch{return[2,this.buildResponse({code:u.status})]}}})})},t}(ac),du=function(e){Va(t,e);function t(){return e.call(this)||this}return t.prototype.send=function(e,t,n){return n===void 0&&(n=!1),z(this,void 0,void 0,function(){var n=this;return B(this,function(r){return[2,new Promise(function(r,i){var a=K();if(!(a!=null&&a.navigator.sendBeacon))throw Error(`SendBeaconTransport is not supported`);try{var o=JSON.stringify(t);return(fetch(e,{method:`GET`,keepalive:!0}).catch(function(){}),!0)?r(n.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:o.length,server_upload_time:Date.now()})):r(n.buildResponse({code:500}))}catch(e){i(e)}})]})})},t}(ac),fu=function(e,t,n){return n===void 0&&(n=!0),z(void 0,void 0,void 0,function(){var r,i,a,o,s,c,l,u,d;return B(this,function(f){switch(f.label){case 0:return r=Ts(e),[4,t.getRaw(r)];case 1:return i=f.sent(),i?n?[4,t.remove(r)]:[3,3]:[2,{optOut:!1}];case 2:f.sent(),f.label=3;case 3:return a=H(i.split(`.`),6),o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],d=a[5],[2,{deviceId:o,userId:mu(s),sessionId:pu(l),lastEventId:pu(d),lastEventTime:pu(u),optOut:!!c}]}})})},pu=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},mu=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},hu=`[Amplitude]`;`${hu}`;var gu=`${hu} Form Started`,_u=`${hu} Form Submitted`,vu=`${hu} File Downloaded`,yu=`session_start`,bu=`session_end`,xu=`${hu} File Extension`,Su=`${hu} File Name`,Cu=`${hu} Link ID`,wu=`${hu} Link Text`,Tu=`${hu} Link URL`,Eu=`${hu} Form ID`,Du=`${hu} Form Name`,Ou=`${hu} Form Destination`,ku=`cookie`,Au=function(e){var t=e.split(`.`);return t.length<=2?e:t.slice(t.length-2,t.length).join(`.`)},ju=function(e){return Object.values(e).every(function(e){return!e})},Mu=function(e){var t=R(R({},e),{referring_domain:void 0,referrer:void 0});return Object.values(t).every(function(e){return!e})},Nu=function(e,t,n,r,i,a){i===void 0&&(i=!0),e.referrer;var o=e.referring_domain,s=Ha(e,[`referrer`,`referring_domain`]),c=t||{};c.referrer;var l=c.referring_domain,u=Ha(c,[`referrer`,`referring_domain`]),d=n.excludeInternalReferrers;if(d){var f=Ru(d,r);if(!(f instanceof TypeError)&&e.referring_domain&&Hu(e.referring_domain,a)&&(f===`always`||f===`ifEmptyCampaign`&&Mu(e)))return zu(f,e.referring_domain,r),!1}if(Pu(n.excludeReferrers,e.referring_domain))return r.debug(`This is not a new campaign because ${e.referring_domain} is in the exclude referrer list.`),!1;if(!i&&ju(e)&&t)return r.debug(`This is not a new campaign because this is a direct traffic in the same session.`),!1;var p=JSON.stringify(s)!==JSON.stringify(u),m=Au(o||``)!==Au(l||``),h=!t||p||m;return h?r.debug(`This is a new campaign. An $identify event will be sent.`):r.debug(`This is not a new campaign because it's the same as the previous one.`),h},Pu=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=``),e.some(function(e){return e instanceof RegExp?e.test(t):e===t})},Fu=function(e,t){var n=t.startsWith(`.`)?t:`.${t}`;return!!(e.startsWith(`.`)?e:`.${e}`).endsWith(n)},Iu=function(e,t){var n=R(R({},ho),e);return Fo(Object.entries(n).reduce(function(e,n){var r=H(n,2),i=r[0],a=r[1];return e.setOnce(`initial_${i}`,a??t.initialEmptyValue??`EMPTY`),a?e.set(i,a):e.unset(i)},new xo))},Lu=function(e){var t=e;return t?(t.startsWith(`.`)&&(t=t.substring(1)),[RegExp(`${t.replace(`.`,`\\.`)}\$`)]):[]},Ru=function(e,t){if(e===!0)return Dl.always;if(typeof e==`object`){var n=e.condition;if(typeof n==`string`&&Object.keys(Dl).includes(n))return n;if(n===void 0)return Dl.always}var r=`Invalid configuration provided for attribution.excludeInternalReferrers: ${JSON.stringify(e)}`;return t.error(r),TypeError(r)};function zu(e,t,n){var r=`This is not a new campaign because referring_domain=${t} is on the same domain as the current page and it is configured to exclude internal referrers`;e===`always`?n.debug(r):e===`ifEmptyCampaign`&&n.debug(`${r} with empty campaign parameters`)}var Bu=`ac.in,ac.jp,ac.kr,ac.th,ac.uk,ac.za,appspot.com,asn.au,azurewebsites.net,cloudfront.net,myshopify.com,blogspot.com,co.ca,co.in,co.jp,co.kr,co.nz,co.th,co.uk,co.za,com.ar,com.au,com.br,com.cn,com.hk,com.in,com.jp,com.kr,com.mx,com.pl,com.sg,com.tr,com.tw,ed.jp,edu.au,edu.br,edu.cn,edu.hk,edu.sg,edu.th,edu.tr,edu.tw,firebaseapp.com,fly.dev,gc.ca,geek.nz,github.io,gitlab.io,go.jp,go.kr,go.th,gob.ar,gob.mx,gov.au,gov.br,gov.cn,gov.hk,gov.in,gov.pl,gov.sg,gov.tr,gov.tw,gov.uk,gov.za,govt.nz,gr.jp,herokuapp.com,id.au,idv.hk,iwi.nz,lg.jp,ltd.uk,maori.nz,me.uk,mil.kr,ne.jp,ne.kr,net.au,net.br,net.cn,net.hk,net.in,net.nz,net.pl,net.sg,net.tr,net.tw,net.za,onrender.com,or.jp,or.kr,or.th,org.ar,org.au,org.br,org.cn,org.hk,org.in,org.mx,org.nz,org.pl,org.sg,org.tw,org.uk,org.za,pages.dev,pe.kr,plc.uk,re.kr,res.in,sch.uk,vercel.app,netlify.app,workers.dev`.split(`,`),Vu=function(e){var t,n,r=e||((n=(t=K())==null?void 0:t.location)==null?void 0:n.hostname);if(!r)return``;var i=r.split(`.`),a=i[i.length-1],o=i[i.length-2];return Bu.find(function(e){return r.endsWith(`.${e}`)})&&(a=i[i.length-2]+`.`+i[i.length-1],o=i[i.length-3]),o?`${o}.${a}`:a},Hu=function(e,t){var n=K();return n?Fu(e,(t||``).trim()||Vu(n.location.hostname)):!1},Uu=function(e){Va(t,e);function t(t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,ee,k,A,te,j,ne,re,ie,ae,oe,se,ce,le,ue,M,de){r===void 0&&(r=new Ps),i===void 0&&(i={domain:``,expiration:365,sameSite:`Lax`,secure:!1,upgrade:!0}),c===void 0&&(c=1e3),l===void 0&&(l=5),u===void 0&&(u=30),d===void 0&&(d=ku),g===void 0&&(g=new Ko),_===void 0&&(_=Wo.Warn),y===void 0&&(y=!1),b===void 0&&(b=!1),C===void 0&&(C=``),w===void 0&&(w=`US`),D===void 0&&(D=18e5),O===void 0&&(O=new su({loggerProvider:g})),ee===void 0&&(ee={ipAddress:!0,language:!0,platform:!0}),k===void 0&&(k=`fetch`),A===void 0&&(A=!1),te===void 0&&(te=!0),oe===void 0&&(oe=!0),se===void 0&&(se=0),M===void 0&&(M=!1);var N=this;N=e.call(this,{apiKey:t,storageProvider:O,transportProvider:qu(k)})||this,N.apiKey=t,N.appVersion=n,N.cookieOptions=i,N.defaultTracking=a,N.autocapture=o,N.flushIntervalMillis=c,N.flushMaxRetries=l,N.flushQueueSize=u,N.identityStorage=d,N.ingestionMetadata=f,N.instanceName=p,N.loggerProvider=g,N.logLevel=_,N.minIdLength=v,N.offline=y,N.partnerId=x,N.plan=S,N.serverUrl=C,N.serverZone=w,N.sessionTimeout=D,N.storageProvider=O,N.trackingOptions=ee,N.transport=k,N.useBatch=A,N.fetchRemoteConfig=te,N.networkTrackingOptions=ie,N.identify=ae,N.enableDiagnostics=oe,N.diagnosticsSampleRate=se,N.diagnosticsClient=ce,N.remoteConfig=le,N.topLevelDomain=ue,N.enableRequestBodyCompression=M,N.customEnrichment=de,N.version=tu,N._optOut=!1,N._cookieStorage=r,N.deviceId=s,N.lastEventId=m,N.lastEventTime=h,N.optOut=b,N.deferredSessionId=E,N.sessionId=T,N.pageCounter=ne,N.userId=j,N.debugLogsEnabled=re,N.loggerProvider.enable(re?Wo.Debug:N.logLevel),N.networkTrackingOptions=ie,N.identify=ae,N.enableDiagnostics=oe,N.diagnosticsSampleRate=se,N.diagnosticsClient=ce;var fe=(le==null?void 0:le.fetchRemoteConfig)??te;return N.remoteConfig=N.remoteConfig||{},N.remoteConfig.fetchRemoteConfig=fe,N.fetchRemoteConfig=fe,N.topLevelDomain=ue||Vu(),N}return Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,e!==void 0&&this._deferredSessionId!==void 0&&(this._deferredSessionId=void 0),this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deferredSessionId",{get:function(){return this._deferredSessionId},set:function(e){this._deferredSessionId!==e&&e!==this.sessionId&&(this._deferredSessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,deferredSessionId:this._deferredSessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled,cookieDomain:void 0};this.cookieStorage instanceof Is&&(e.cookieDomain=this.cookieStorage.options.domain),this.cookieStorage.set(ws(this.apiKey),e)},t}(Jo),Wu=function(e,t,n,r,i){return t===void 0&&(t={}),z(void 0,void 0,void 0,function(){var a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,ee,k,A,te;return B(this,function(j){switch(j.label){case 0:return a=t.identityStorage||`cookie`,o=``,a===`cookie`&&!((E=t.cookieOptions)!=null&&E.domain)&&((D=t.cookieOptions)==null?void 0:D.domain)!==``?[4,Ju(void 0,r)]:[3,2];case 1:o=j.sent(),j.label=2;case 2:return s=R({domain:((O=t.cookieOptions)==null?void 0:O.domain)??o,expiration:365,sameSite:`Lax`,secure:!1,upgrade:!0},t.cookieOptions),c={duplicateResolverFn:function(e){var t=zs(e);return t?Bs(JSON.parse(t).cookieDomain,s.domain):!1},diagnosticsClient:r},l=Gu(t.identityStorage,s,c),[4,fu(e,l,((ee=t.cookieOptions)==null?void 0:ee.upgrade)??!0)];case 3:return u=j.sent(),[4,l.get(ws(e))];case 4:return d=j.sent(),f=Ds(),p=f.ampTimestamp?Number(f.ampTimestamp):void 0,m=!p||Date.now()`u`||!location.hostname)||(n=e??location.hostname,r=n.split(`.`),r.length===1))return[2,``];for(i=[],a=1,Bu.find(function(e){return n.endsWith(`.${e}`)})&&(a=2),o=r.length-a-1;o>=0;--o)i.push(r.slice(o).join(`.`));o=0,u.label=2;case 2:if(!(o`u`)){var a=new WeakSet,o=function(e){if(!a.has(e)){a.add(e);var o=!1;n(e,`change`,function(){var t,n=rd(e);o||r.track(gu,(t={},t[Eu]=nd(e.id),t[Du]=nd(e.name),t[Ou]=n,t)),o=!0}),n(e,`submit`,function(n){var a,s,c=rd(e);if(o||r.track(gu,(a={},a[Eu]=nd(e.id),a[Du]=nd(e.name),a[Ou]=c,a)),o=!0,(i==null?void 0:i.shouldTrackSubmit)!==void 0){if(typeof i.shouldTrackSubmit==`function`&&typeof SubmitEvent<`u`&&n instanceof SubmitEvent)try{if(!i.shouldTrackSubmit(n))return}catch{t.loggerProvider.warn(`shouldTrackSubmit callback threw an error, proceeding with tracking.`)}else t.loggerProvider.warn(`shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.`)}r.track(_u,(s={},s[Eu]=nd(e.id),s[Du]=nd(e.name),s[Ou]=c,s)),o=!1})}};Array.from(document.getElementsByTagName(`form`)).forEach(o),typeof MutationObserver<`u`&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){e.nodeName===`FORM`&&o(e),`querySelectorAll`in e&&typeof e.querySelectorAll==`function`&&Array.from(e.querySelectorAll(`form`)).map(o)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState===`complete`?a():(o=K(),o?o.addEventListener(`load`,a):t.loggerProvider.debug(`Form interaction tracking is not installed because global is undefined.`)),[2]})})},execute:function(e){return z(void 0,void 0,void 0,function(){return B(this,function(t){return[2,e]})})},teardown:function(){return z(void 0,void 0,void 0,function(){return B(this,function(t){return e==null||e.disconnect(),r(),[2]})})}}},nd=function(e){if(typeof e==`string`)return e},rd=function(e){var t=e.getAttribute(`action`);try{t=new URL(encodeURI(t??``),window.location.href).href}catch{}return t},id=function(){var e,t=[],n=function(e,n,r){e.addEventListener(n,r),t.push({element:e,type:n,handler:r})},r=function(){t.forEach(function(e){var t=e.element,n=e.type,r=e.handler;t==null||t.removeEventListener(n,r)}),t=[]};return{name:`@amplitude/plugin-file-download-tracking-browser`,type:`enrichment`,setup:function(t,r){return z(void 0,void 0,void 0,function(){var i,a;return B(this,function(o){return i=function(){if(!r){t.loggerProvider.warn(`File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.`);return}if(!(typeof document>`u`)){var i=function(e){var t;try{t=new URL(e.href,window.location.href)}catch{return}var i=a.exec(t.href),o=i==null?void 0:i[1];o&&n(e,`click`,function(){var n;o&&r.track(vu,(n={},n[xu]=o,n[Su]=t.pathname,n[Cu]=e.id,n[wu]=e.text,n[Tu]=e.href,n))})},a=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName(`a`)).forEach(i),typeof MutationObserver<`u`&&(e=new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){e.nodeName===`A`&&i(e),`querySelectorAll`in e&&typeof e.querySelectorAll==`function`&&Array.from(e.querySelectorAll(`a`)).map(i)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState===`complete`?i():(a=K(),a?a.addEventListener(`load`,i):t.loggerProvider.debug(`File download tracking is not installed because global is undefined.`)),[2]})})},execute:function(e){return z(void 0,void 0,void 0,function(){return B(this,function(t){return[2,e]})})},teardown:function(){return z(void 0,void 0,void 0,function(){return B(this,function(t){return e==null||e.disconnect(),r(),[2]})})}}},ad=!1,od=function(e){ad||e.defaultTracking!==void 0||(e.loggerProvider.warn(`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:
+
+amplitude.init(, {
+ defaultTracking: true,
+});
+
+Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`),ad=!0)},sd=function(){var e=`@amplitude/plugin-network-checker-browser`,t=`before`,n=K(),r=[],i=function(e,t){n!=null&&n.addEventListener&&(n==null||n.addEventListener(e,t),r.push({type:e,handler:t}))},a=function(){r.forEach(function(e){var t=e.type,r=e.handler;n==null||n.removeEventListener(t,r)}),r=[]};return{name:e,type:t,setup:function(e,t){return z(void 0,void 0,void 0,function(){return B(this,function(n){return typeof navigator>`u`?(e.loggerProvider.debug(`Network connectivity checker plugin is disabled because navigator is not available.`),e.offline=!1,[2]):(e.offline=!navigator.onLine,i(`online`,function(){e.offline!==!1&&(e.loggerProvider.debug(`Network connectivity changed to online.`),e.offline=!1,setTimeout(function(){t.flush()},e.flushIntervalMillis))}),i(`offline`,function(){e.loggerProvider.debug(`Network connectivity changed to offline.`),e.offline=!0}),[2])})})},teardown:function(){return z(void 0,void 0,void 0,function(){return B(this,function(e){return a(),[2]})})}}};function cd(e,t){var n;if(e){Ml(e);try{t.loggerProvider.debug(`Update browser config with remote configuration:`,pl(e));var r=e;if(r&&`autocapture`in r){if(typeof r.autocapture==`boolean`&&(t.autocapture=r.autocapture),typeof r.autocapture==`object`&&r.autocapture!==null){var i=R({},r.autocapture);if(t.autocapture===void 0&&(t.autocapture=r.autocapture),typeof r.autocapture.elementInteractions==`object`&&r.autocapture.elementInteractions!==null&&(n=r.autocapture.elementInteractions.pageUrlAllowlistRegex)!=null&&n.length){i.elementInteractions=R({},r.autocapture.elementInteractions);var a=i.elementInteractions,o=a.pageUrlAllowlist??[],s=r.autocapture.elementInteractions.pageUrlAllowlistRegex;a.pageUrlAllowlist=Al(o,s,t.loggerProvider),delete a.pageUrlAllowlistRegex}var c=jl(r.autocapture.networkTracking,t.loggerProvider);c&&(i.networkTracking=c),typeof t.autocapture==`boolean`&&(t.autocapture=R({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},i)),typeof t.autocapture==`object`&&(t.autocapture=R(R({},t.autocapture),i))}t.defaultTracking=t.autocapture}`customEnrichment`in r&&r.customEnrichment!==null&&t.customEnrichment!==!1&&(t.customEnrichment=r.customEnrichment),t.loggerProvider.debug(`Browser config after remote config update:`,pl(t))}catch(e){t.loggerProvider.error(`Failed to apply remote configuration because of error: `,e)}}}var ld=`1.28.10`,ud=`@amplitude/plugin-autocapture-browser`,dd=`@amplitude/plugin-frustration-browser`,fd=`@amplitude/plugin-performance-browser`,pd=`[Amplitude] Dead Click`,md=`[Amplitude] Rage Click`,hd=`[Amplitude] Error Click`,gd=`[Amplitude] Thrashed Cursor`,_d=`[Amplitude] Main Thread Block`,vd=`[Amplitude] Element ID`,yd=`[Amplitude] Element Class`,bd=`[Amplitude] Element Tag`,xd=`[Amplitude] Element Text`,Sd=`[Amplitude] Element Hierarchy`,Cd=`[Amplitude] Element Href`,wd=`[Amplitude] Element Position Left`,Td=`[Amplitude] Element Position Top`,Ed=`[Amplitude] Element Aria Label`,Dd=`[Amplitude] Element Attributes`,Od=`[Amplitude] Element Path`,kd=`[Amplitude] Element Parent Label`,Ad=`[Amplitude] Page URL`,jd=`[Amplitude] Page Title`,Md=`[Amplitude] Viewport Height`,Nd=`[Amplitude] Viewport Width`,Pd=`[Amplitude] Max Page X`,Fd=`[Amplitude] Max Page Y`,Id=`[Amplitude] Page View ID`,Ld=`/static/clone/noop.js`,Rd=`amp-visual-tagging-selector-highlight`,zd=`data-amp-mask-attributes`,Bd=`AMP_PAGE_VIEW`,Vd=[`input`,`select`,`textarea`],Hd=function(e,t){var n,r=(n=window==null?void 0:window.getComputedStyle)==null?void 0:n.call(window,e);return(r==null?void 0:r.getPropertyValue(`cursor`))===`pointer`&&t===`click`},Ud=function(e){var t=e.pageUrlAllowlist,n=e.pageUrlExcludelist;return!(n&&n.length>0&&ks(window.location.href,n)||!ks(window.location.href,t))},Wd=function(e,t){return function(n,r){var i,a,o=e.shouldTrackEventResolver,s=(a=(i=r==null?void 0:r.tagName)==null?void 0:i.toLowerCase)==null?void 0:a.call(i);if(!s)return!1;if(o)return o(n,r);if(!Ud(e))return!1;var c=String(r==null?void 0:r.getAttribute(`type`))||``;if(typeof c==`string`)switch(c.toLowerCase()){case`hidden`:return!1;case`password`:return!1}if(t&&!t.some(function(e){var t;return!!((t=r==null?void 0:r.matches)!=null&&t.call(r,e))}))return!1;switch(s){case`input`:case`select`:case`textarea`:return n===`change`||n===`click`;default:return n===`click`}}},Gd=function(e){var t,n,r,i=(n=(t=e==null?void 0:e.tagName)==null?void 0:t.toLowerCase)==null?void 0:n.call(t),a=e instanceof HTMLElement&&((r=e.getAttribute(`contenteditable`))==null?void 0:r.toLowerCase())===`true`;return!Vd.includes(i)&&!a},Kd=function(e){return e?e.split(`,`).map(function(e){return e.trim()}).filter(function(e){return e.length>0&&e!==`id`&&e!==`class`}):[]},qd=function(e,t){return Object.entries(e).reduce(function(e,n){var r=H(n,2),i=r[0],a=r[1];if(i.startsWith(t)){var o=i.replace(t,``);o&&(e[o]=a||``)}return e},{})},Jd=function(e){return e==null||typeof e==`object`&&Object.keys(e).length===0||typeof e==`string`&&e.trim().length===0},Yd=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return Jd(r)||(t[n]=r),t},{})},Xd=function(){var e;try{var t=K(),n=(e=t==null?void 0:t.sessionStorage)==null?void 0:e.getItem(Bd);if(!n)return;var r=JSON.parse(n);if(typeof r.pageViewId==`string`)return r.pageViewId}catch{}},Zd=function(e,t){return e?t.some(function(t){var n;return(n=e==null?void 0:e.matches)==null?void 0:n.call(e,t)})?e:Zd(e==null?void 0:e.parentElement,t):null},Qd=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)};function $d(e){return e.type===`click`||e.type===`change`}var ef;(function(e){e[e.LEFT_OR_TOUCH_CONTACT=0]=`LEFT_OR_TOUCH_CONTACT`,e[e.MIDDLE=1]=`MIDDLE`,e[e.RIGHT=2]=`RIGHT`})(ef||={});var tf=`__AMPLITUDE_VISUAL_TAGGING__`;function nf(e,t){var n=e;if(n[tf]!==!0){n[tf]=!0;var r=t.dataExtractor,i=t.isElementSelectable,a=t.cssSelectorAllowlist,o=t.actionClickAllowlist,s=null,c=function(t){e.notify({action:`element-selected`,data:t})},l=function(t,n){t===`selector-mode-changed`?e.notify({action:`track-selector-mode-changed`,data:n}):t===`selector-moved`&&e.notify({action:`track-selector-moved`,data:n})};e.registerActionHandler(`initialize-visual-tagging-selector`,function(t){e.loadScriptOnce(Ld).then(function(){var n;s=(n=window==null?void 0:window.amplitudeVisualTaggingSelector)==null?void 0:n.call(window,{getEventTagProps:r.getEventTagProps,isElementSelectable:function(e){return!i||i((t==null?void 0:t.actionType)||`click`,e)},onTrack:l,onSelect:c,visualHighlightClass:Rd,messenger:e,cssSelectorAllowlist:a,actionClickAllowlist:o,extractDataFromDataSource:r.extractDataFromDataSource,dataExtractor:r,diagnostics:{autocapture:{version:ld}}}),e.notify({action:`selector-loaded`})}).catch(function(){var t;(t=e.logger)==null||t.warn(`Failed to initialize visual tagging selector`)})}),e.registerActionHandler(`close-visual-tagging-selector`,function(){var e;(e=s==null?void 0:s.close)==null||e.call(s)})}}function rf(e){var t=e.amplitude,n=e.allObservables,r=e.shouldTrackEvent,i=e.evaluateTriggers;return n.clickObservable.filter(Qd).filter(function(e){return r(`click`,e.closestTrackedAncestor)}).map(function(e){return i(e)}).subscribe(function(e){t==null||t.track(`[Amplitude] Element Clicked`,e.targetElementProperties)})}function af(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,i=e.shouldTrackEvent,a=e.evaluateTriggers;return n.changeObservable.filter(Qd).filter(function(e){return i(`change`,e.closestTrackedAncestor)}).map(function(e){return a(e)}).subscribe(function(e){t==null||t.track(`[Amplitude] Element Changed`,r(`change`,e.closestTrackedAncestor))})}function of(e){var t=e.amplitude,n=e.allObservables,r=e.options,i=e.getEventProperties,a=e.shouldTrackEvent,o=e.shouldTrackActionClick,s=n.clickObservable,c=n.mutationObservable,l=n.navigateObservable,u=ul(s.filter(function(e){return!a(`click`,e.closestTrackedAncestor)}).map(function(e){return e.closestTrackedAncestor=Zd(e.event.target,r.actionClickAllowlist),e.closestTrackedAncestor!==null&&(e.targetElementProperties=i(e.type,e.closestTrackedAncestor)),e}).filter(Qd).filter(function(e){return o(`click`,e.closestTrackedAncestor)}),l?ul(c,l):c),d=null,f=null;return ll(u,function(e){if(d&&=(clearTimeout(d),null),e.type===`click`)return f=e,d=setTimeout(function(){d=null,f=null},500),Promise.resolve(null);if(f){var t=f;return f=null,Promise.resolve(t)}return Promise.resolve(null)}).subscribe(function(e){e&&(t==null||t.track(`[Amplitude] Element Clicked`,i(`click`,e.closestTrackedAncestor)))})}function sf(e){e.amplitude;var t=e.allObservables.scrollObservable,n={maxX:0,maxY:0},r=t.subscribe(function(){var e=K(),t=Math.floor((e==null?void 0:e.scrollX)??(e==null?void 0:e.pageXOffset)??0),r=Math.floor((e==null?void 0:e.scrollY)??(e==null?void 0:e.pageYOffset)??0);n.maxX=Math.max(n.maxX,t),n.maxY=Math.max(n.maxY,r)});return{unsubscribe:function(){r.unsubscribe()},getState:function(){return n},reset:function(){n.maxX=0,n.maxY=0}}}var cf=K(),lf=function(){return new Z.default(function(e){var t=new MutationObserver(function(t){e.next(t)});return document.body&&t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},uf=function(e){return e===void 0&&(e=`click`),new Z.default(function(t){var n,r=function(e){t.next(e)};return(n=K())==null||n.document.addEventListener(e,r,{capture:!0}),function(){var t;(t=K())==null||t.document.removeEventListener(e,r,{capture:!0})}})},df=function(){return new Z.default(function(e){var t,n=function(t){e.next(t)};return(t=K())==null||t.addEventListener(`scroll`,n),function(){var e;(e=K())==null||e.removeEventListener(`scroll`,n)}})},ff=function(){return new Z.default(function(e){var t=function(t){var n=[...arguments].slice(1),r=void 0;Array.isArray(n[0])&&typeof n[0][0]==`string`&&(r=n[0][0]),e.next({kind:`console`,message:r})};return Cc.addListener(`error`,t),function(){Cc.removeListener(t)}})},pf=function(e,t){return new Z.default(function(n){var r=K();if(!(r!=null&&r.IntersectionObserver))return function(){};var i=new IntersectionObserver(function(e){e.forEach(function(e){n.next(e)})},{root:null,rootMargin:`0px`,threshold:1}),a=t.join(`,`);((r==null?void 0:r.document.querySelectorAll(a))??[]).forEach(function(e){i.observe(e)});var o=e.subscribe(function(e){return e.event.forEach(function(e){return e.addedNodes.forEach(function(e){e instanceof Element&&(e.matches(a)&&i.observe(e),e.querySelectorAll(a).forEach(function(e){i.observe(e)}))})})});return function(){o.unsubscribe(),i.disconnect()}})},mf=function(){return new Z.default(function(e){var t=function(t){if(t instanceof ErrorEvent){var n={kind:`error`};t.error instanceof Error||t.error instanceof DOMException?n=R(R({},n),{message:t.error.message,stack:t.error.stack,filename:t.filename,lineNumber:t.lineno,columnNumber:t.colno}):typeof t.error==`string`&&(n.message=t.error),e.next(n)}};return cf.addEventListener(`error`,t),function(){cf.removeEventListener(`error`,t)}})},hf=function(){return new Z.default(function(e){var t=function(t){var n={kind:`unhandledrejection`};t.reason instanceof Error||t.reason instanceof DOMException?(n.message=t.reason.message,n.stack=t.reason.stack):typeof t.reason==`string`&&(n.message=t.reason),e.next(n)};return cf.addEventListener(`unhandledrejection`,t),function(){cf.removeEventListener(`unhandledrejection`,t)}})},gf=function(){return ul(ul(mf(),hf()),ff())},_f=function(){return new Z.default(function(e){var t=function(t){e.next(t)},n={capture:!0};return cf.document.addEventListener(`mousemove`,t,n),function(){cf.document.removeEventListener(`mousemove`,t,n)}})},vf=function(e,t){try{if(t.subprop_key===`[Amplitude] Element Text`)return t.subprop_op===`is`&&t.subprop_value.includes(e.targetElementProperties[`[Amplitude] Element Text`]);if(t.subprop_key===`[Amplitude] Element Hierarchy`)return t.subprop_op===`autotrack css match`&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(e){return console.error(`Error matching event to filter`,e),!1}return!1},yf=function(e,t){try{if(e.sourceType===`DOM_ELEMENT`){var n=document.documentElement;return e.scope&&t&&(n=t.closest(e.scope)),n&&e.selector?n.querySelector(e.selector):n}}catch{return}},bf=function(e,t,n){e.forEach(function(e){if(typeof e!=`string`&&e.actionType===`ATTACH_EVENT_PROPERTY`){var r=n.extractDataFromDataSource(e.dataSource,t.closestTrackedAncestor);t.targetElementProperties[e.destinationKey]=r}})},xf={"[Amplitude] Element Clicked":`click`,"[Amplitude] Element Changed":`change`},Sf=function(e){var t,n,r,i,a=Object.values(xf).reduce(function(e,t){return e[t]=new Set,e},{});if(!e)return a;try{for(var o=V(e),s=o.next();!s.done;s=o.next()){var c=s.value;try{try{for(var l=(r=void 0,V(c.definition)),u=l.next();!u.done;u=l.next()){var d=xf[u.value.event_type];d&&a[d].add(c.id)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}catch(e){console.warn(`Skipping Labeled Event due to malformed definition`,c==null?void 0:c.id,e)}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},Cf=function(e){var t,n,r,i,a=new Map;try{for(var o=V(e),s=o.next();!s.done;s=o.next()){var c=s.value;try{for(var l=(r=void 0,V(c.conditions)),u=l.next();!u.done;u=l.next()){var d=u.value;if(d.type===`LABELED_EVENT`){var f=d.match.eventId,p=a.get(f);p||(p=[],a.set(f,p)),p.push(c)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return a},wf=function(e,t){return t.filter(function(t){return t.definition.some(function(t){return xf[t.event_type]===e.type&&t.filters.every(function(t){return vf(e,t)})})})},Tf=function(e,t){var n,r,i,a,o=new Set;try{for(var s=V(e),c=s.next();!c.done;c=s.next()){var l=c.value,u=t.get(l.id);if(u)try{for(var d=(i=void 0,V(u)),f=d.next();!f.done;f=d.next()){var p=f.value;o.add(p)}}catch(e){i={error:e}}finally{try{f&&!f.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return Array.from(o)},Ef=function(){function e(e,t,n,r){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.dataExtractor=n,this.options=r}return e.prototype.evaluate=function(e){var t,n,r=this.options.pageActions;if(!r)return e;var i=Tf(wf(e,Array.from(this.groupedLabeledEvents[e.type]).map(function(e){return r.labeledEvents[e]})),this.labeledEventToTriggerMap);try{for(var a=V(i),o=a.next();!o.done;o=a.next()){var s=o.value;bf(s.actions,e,this.dataExtractor)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return e},e.prototype.update=function(e,t,n){this.groupedLabeledEvents=e,this.labeledEventToTriggerMap=t,this.options=n},e}(),Df=function(e,t,n,r){return new Ef(e,t,n,r)},Of=new Set([`id`,`class`,`style`,`value`,`onclick`,`onchange`,`oninput`,`onblur`,`onsubmit`,`onfocus`,`onkeydown`,`onkeyup`,`onkeypress`,`data-reactid`,`data-react-checksum`,`data-reactroot`,zd,tl]),kf=[`type`],Af=[`svg`,`path`,`g`],jf=[`password`,`hidden`];function Mf(e,t){var n,r,i,a,o;if(e===null)return null;var s=String(e.tagName).toLowerCase(),c={tag:s},l=Array.from(((i=e.parentElement)==null?void 0:i.children)??[]);l.length&&(c.index=l.indexOf(e),c.indexOfType=l.filter(function(t){return t.tagName===e.tagName}).indexOf(e));var u=(o=(a=e.previousElementSibling)==null?void 0:a.tagName)==null?void 0:o.toLowerCase();u&&(c.prevSib=String(u));var d=e.getAttribute(`id`);d&&(c.id=String(d));var f=Array.from(e.classList);f.length&&(c.classes=f);var p={},m=Array.from(e.attributes).filter(function(e){return!Of.has(e.name)}),h=!Gd(e);if(!jf.includes(String(e.getAttribute(`type`)))&&!Af.includes(s))try{for(var g=V(m),_=g.next();!_.done;_=g.next()){var v=_.value;if(!(h&&!kf.includes(v.name))){if(t.has(v.name)){p[v.name]=nl;continue}p[v.name]=String(v.value).substring(0,128)}}}catch(e){n={error:e}}finally{try{_&&!_.done&&(r=g.return)&&r.call(g)}finally{if(n)throw n.error}}return Object.keys(p).length&&(c.attrs=p),c}function Nf(e){var t=[];if(!e)return t;t.push(e);for(var n=e.parentElement;n&&n.tagName!==`HTML`;)t.push(n),n=n.parentElement;return t}var Pf=[/^:r[0-9a-z]+:$/,/^radix-/,/^headlessui-/,/^mui-/,/^[a-f0-9]{16,}$/i,/-\d{8,}$/,/\d{4,}/];function Ff(e,t){var n,r,i=[];try{for(var a=V(e),o=a.next();!o.done;o=a.next()){var s=o.value;try{i.push(new RegExp(s))}catch(e){var c=e instanceof Error?e.message:String(e);t==null||t.warn(`@amplitude/element-selector: ignoring invalid autogenerated-id pattern "${s}" (${c})`)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}function If(e,t){var n,r;if(e==null||e===``)return!1;try{for(var i=V(t),a=i.next();!a.done;a=i.next())if(a.value.test(e))return!1}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}var Lf=[/^(p|m|px|py|mx|my|pt|pb|pl|pr|mt|mb|ml|mr)-\d+$/,/^(w|h|min-w|max-w|min-h|max-h)-/,/^(text|bg|border|ring|fill|stroke)-/,/^(hover|focus|active|disabled|group-hover):/,/^(sm|md|lg|xl|2xl):/,/^z-\d+$/,/^data-\[/,/^\[/,/^css-[a-z0-9]{6,}$/,/^[a-zA-Z]+_[a-zA-Z0-9]{3,}__[a-zA-Z0-9]{5,}$/,/^sc-[a-zA-Z0-9]{6,}$/,/^jsx-\d+$/,/^swiper-slide-(visible|fully-visible|active|prev|next|duplicate)$/,/^is-(active|open|selected|hovered|focused|expanded)$/,/^Mui[A-Z][a-zA-Z]+-(focused|selected|disabled|expanded|focusVisible|active|checked)$/,/^Mui-(selected|focused|disabled|expanded|focusVisible|active|checked)$/,/^data-state-/];function Rf(e,t){var n,r,i=[];try{for(var a=V(e),o=a.next();!o.done;o=a.next()){var s=o.value;try{i.push(new RegExp(s))}catch(e){var c=e instanceof Error?e.message:String(e);t==null||t.warn(`@amplitude/element-selector: ignoring invalid unstable-class pattern "${s}" (${c})`)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}function zf(e,t){var n=e.getAttribute(t.explicitTrackingAttribute);if(n!==null&&n===``)return null;var r=e.getAttribute(`id`);return r===null||r===``||!If(r,t.autogeneratedIdPatterns)?null:r}function Bf(e,t){return t.map(Vf).join(` > `)}function Vf(e){var t=e.tagName.toLowerCase(),n=e.parentElement;return n===null?t:`${t}:nth-of-type(${Hf(e,n)})`}function Hf(e,t){for(var n=0,r=0;r=1&&o<=31||o===127||a===0&&o>=48&&o<=57||a===1&&o>=48&&o<=57&&n.charCodeAt(0)===45){i+=`\\${o.toString(16)} `;continue}if(a===0&&r===1&&o===45){i+=`\\-`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){i+=n.charAt(a);continue}i+=`\\${n.charAt(a)}`}return i}function Gf(e){return Wf(e)}var Kf=[Uf,{name:`stableId`,try:function(e,t){var n=zf(e,t.config);return n===null?null:`${e.tagName.toLowerCase()}#${Gf(n)}`}}];function qf(e,t,n){var r,i;n===void 0&&(n={});var a=n.strategies??Kf,o=n.scope??e.ownerDocument??document,s={scope:o,config:t},c=Jf(e,t.maxAncestorWalkDepth);try{for(var l=V(a),u=l.next();!u.done;u=l.next())for(var d=u.value,f=0;f ${Bf(p,c.slice(0,f).reverse())}`;if(Yf(o,h,e,d.name,n.logger))return h}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return null}function Jf(e,t){for(var n=[],r=e;r!==null&&(n.push(r),!(t!==void 0&&n.length>t));)r=r.parentElement;return n}function Yf(e,t,n,r,i){var a;try{a=e.querySelectorAll(t)}catch(e){var o=e instanceof Error?e.message:String(e);return i==null||i.debug(`@amplitude/element-selector: strategy "${r}" emitted a malformed selector "${t}" (${o})`),!1}return a.length===1&&a[0]===n}function Xf(e,t,n){n===void 0&&(n={});for(var r=n.scope??e.ownerDocument??document,i=[],a=e,o=0;a!==null&&!(t.maxAncestorWalkDepth!==void 0&&o>t.maxAncestorWalkDepth);){var s=zf(a,t);if(s!==null){var c=U([`${a.tagName.toLowerCase()}#${Gf(s)}`],H(i),!1).join(` > `);if($f(r,c,e))return c}i.unshift(Zf(a)),a=a.parentElement,o+=1}return i.join(` > `)}function Zf(e){var t=e.tagName.toLowerCase(),n=e.parentElement;return n===null?t:`${t}:nth-of-type(${Qf(e,n)})`}function Qf(e,t){for(var n=0,r=0;r `)},np=function(e,t,n){var r,i;if(e.nodeType!==Node.ELEMENT_NODE)return null;var a=e.getAttribute(`id`);if(t){if(a)return new ep(ip(a),!0);var o=e.tagName.toLowerCase();if(o===`body`||o===`head`||o===`html`)return new ep(o,!0)}var s=e.tagName.toLowerCase();if(a)return new ep(s+ip(a),!0);var c=e.parentNode;if(!c||c.nodeType===Node.DOCUMENT_NODE)return new ep(s,!0);for(var l=rp(e),u=!1,d=!1,f=-1,p=-1,m=c.children,h=0;m&&(f===-1||!d)&&h=0;l--){var u=s[l];if(u){var d=Kd(u.getAttribute(zd)),f=l===s.length-1?[]:c.get(s[l+1])??new Set,p=new Set(U(U([],H(f),!1),H(d),!1));c.set(u,p)}}o=s.map(function(e){return Mf(e,c.get(e)??new Set)});var m=function(e){e!=null&&e.attrs&&Object.entries(e.attrs).forEach(function(t){var n=H(t,2),r=n[0],a=n[1];e.attrs&&(e.attrs[r]=i.replaceSensitiveString(a))})};try{for(var h=V(o),g=h.next();!g.done;g=h.next()){var _=g.value;m(_)}}catch(e){t={error:e}}finally{try{g&&!g.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}var v=performance.now();return(r=i.diagnosticsClient)==null||r.recordHistogram(`autocapturePlugin.getHierarchy`,v-a),o},this.getNearestLabel=function(e){var t=e.parentElement;if(!t)return``;var n;try{n=t.querySelector(`:scope>span,h1,h2,h3,h4,h5,h6`)}catch{n=null}return n?i.getText(n):i.getNearestLabel(t)},this.getElementPath=function(e){var t;if(!e)return``;var n=performance.now(),r=i.selectorEngine.generate(e),a=performance.now();return(t=i.diagnosticsClient)==null||t.recordHistogram(`autocapturePlugin.getElementPath`,a-n),r},this.updateSelectorConfig=function(e,t){if(e==null||typeof e.enabled!=`boolean`){t==null||t.debug("@amplitude/element-selector: ignoring remote-config delivery without an explicit `enabled` flag — keeping current engine state.");return}var n=i.selectorEngine.getConfig().enabled,r=sp(e,t);i.selectorEngine.updateConfig(r),!n&&r.enabled?t==null||t.debug(`@amplitude/element-selector: engine enabled — now emitting new element-selector element paths for autocapture events.`):n&&!r.enabled&&(t==null||t.debug(`@amplitude/element-selector: engine disabled — reverting to legacy cssPath for element paths.`))},this.getEventProperties=function(e,t,n){var r,a,o,s,c=(o=(a=t==null?void 0:t.tagName)==null?void 0:a.toLowerCase)==null?void 0:o.call(a),l=typeof t.getBoundingClientRect==`function`?t.getBoundingClientRect():{left:null,top:null},u=i.getHierarchy(t),d=(s=u[0])==null?void 0:s.attrs,f=i.getNearestLabel(t),p=qd(d??{},n),m=(r={},r[Sd]=u,r[bd]=c,r[xd]=i.getText(t),r[wd]=l.left==null?null:Math.round(l.left),r[Td]=l.top==null?null:Math.round(l.top),r[Dd]=p,r[Od]=i.getElementPath(t),r[kd]=f,r[Ad]=As(window.location.href.split(`?`)[0]),r[jd]=sl(i.replaceSensitiveString),r[Md]=window.innerHeight,r[Nd]=window.innerWidth,r),h=Xd();if(h&&(m[Id]=h),m[vd]=t.getAttribute(`id`)||``,m[yd]=t.getAttribute(`class`),m[Ed]=d==null?void 0:d[`aria-label`],c===`a`&&e===`click`&&t instanceof HTMLAnchorElement){var g=t.href.substring(0,128);m[Cd]=i.replaceSensitiveString(g)}return Yd(m)},this.addTypeAndTimestamp=function(e,t){return{event:e,timestamp:Date.now(),type:t}},this.addAdditionalEventProperties=function(e,t,n,r,a){a===void 0&&(a=!1);var o=i.addTypeAndTimestamp(e,t);if($d(o)&&o.event.target!==null){if(a&&Hd(o.event.target,o.type))return o.closestTrackedAncestor=o.event.target,o.targetElementProperties=i.getEventProperties(o.type,o.closestTrackedAncestor,r),o;var s=Zd(o.event.target,n);return s&&(o.closestTrackedAncestor=s,o.targetElementProperties=i.getEventProperties(o.type,s,r)),o}return o},this.extractDataFromDataSource=function(e,t){if(e.sourceType===`DOM_ELEMENT`){var n=yf(e,t);return n?e.elementExtractType===`TEXT`?i.getText(n):e.elementExtractType===`ATTRIBUTE`&&e.attribute?n.getAttribute(e.attribute):void 0:void 0}},this.getTextWithMaskedDescendants=function(e){var t,n,r=`[${tl}], [contenteditable]`;if(!e.querySelector(r))return e.innerText;var a=``,o=Array.from(e.childNodes);try{for(var s=V(o),c=s.next();!c.done;c=s.next()){var l=c.value;if(l.nodeType===Node.TEXT_NODE){a+=l.textContent||``;continue}if(l instanceof Element){if(l.hasAttribute(`data-amp-mask`)||l.hasAttribute(`contenteditable`)){a+=nl;continue}a+=i.getTextWithMaskedDescendants(l)}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a},this.getText=function(e){if(e.closest(`[data-amp-mask]`)!==null)return nl;var t=``;return t=e.querySelector(`[data-amp-mask], [contenteditable]`)?i.getTextWithMaskedDescendants(e):e.innerText||``,i.replaceSensitiveString(t.substring(0,255)).replace(/\s+/g,` `).trim()},this.getEventTagProps=function(e){var t,n,r;if(!e)return{};var a=(r=(n=e==null?void 0:e.tagName)==null?void 0:n.toLowerCase)==null?void 0:r.call(n);return Yd((t={},t[bd]=a,t[xd]=i.getText(e),t[Ad]=window.location.href.split(`?`)[0],t))},this.diagnosticsClient=t==null?void 0:t.diagnosticsClient,this.selectorEngine=fp();var a=e.maskTextRegex??[],o=[];try{for(var s=V(a),c=s.next();!c.done;c=s.next()){var l=c.value;if(o.length>=25)break;if(l instanceof RegExp)o.push(l);else if(`pattern`in l&&typeof l.pattern==`string`)try{o.push(new RegExp(l.pattern,`i`))}catch{}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}this.additionalMaskTextPatterns=o}return e}(),mp=`configs.analyticsSDK.browserSDK.autocapture.elementSelector`;function hp(e,t){var n=e.remoteConfigClient;if(!(!e.fetchRemoteConfig||!n)){var r=n.subscribe(mp,`all`,function(n,r){e.loggerProvider.debug(`@amplitude/element-selector: remote-config delivery (source=${String(r)}) ${JSON.stringify(n)}`),t.updateSelectorConfig(n,e.loggerProvider)});return function(){n.unsubscribe(r)}}}function gp(e){var t=e.allObservables,n=e.onExposure,r=e.dataExtractor,i=e.exposureDuration,a=i===void 0?150:i,o=new Map,s=new Map,c=t.exposureObservable.subscribe(function(e){var t=e,i=t.target;if(t.isIntersecting){if(!o.get(i)){var c=setTimeout(function(){o.set(i,!0),n(r.getElementPath(i)),s.set(i,null)},a);s.set(i,c)}}else if(!t.isIntersecting&&t.intersectionRatio<1){var c=s.get(i);c&&(clearTimeout(c),s.set(i,null))}});return{unsubscribe:function(){c.unsubscribe()},reset:function(){s.forEach(function(e){e&&clearTimeout(e)}),s.clear(),o.clear()}}}function _p(e){var t,n,r,i=e.amplitude,a=e.scrollTracker,o=e.currentElementExposed,s=e.elementExposedForPage,c=e.exposureTracker,l=e.isPageEnd,u=e.lastScroll,d=a.getState(),f=K(),p=(f==null?void 0:f.innerWidth)??0,m=(f==null?void 0:f.innerHeight)??0,h=(t={},t[Ad]=As(((r=(n=f==null?void 0:f.location)==null?void 0:n.href)==null?void 0:r.split(`?`)[0])??``),t[Pd]=d.maxX+p,t[Fd]=d.maxY+m,t[Md]=m,t[Nd]=p,t[`[Amplitude] Element Exposed`]=Array.from(o),t),g=Xd();if(g&&(h[Id]=g),o.size===0&&d.maxX===u.maxX&&d.maxY===u.maxY){l&&(a.reset(),s.clear(),c==null||c.reset());return}i==null||i.track(`[Amplitude] Viewport Content Updated`,h),u.maxX=d.maxX,u.maxY=d.maxY,o.clear(),l&&(a.reset(),s.clear(),c==null||c.reset())}function vp(e,t,n,r){if(!t.has(e)){t.add(e),n.add(e);var i=Array.from(n);JSON.stringify(i).length>=18e3&&r(!1)}}var yp;(function(e){e.ClickObservable=`clickObservable`,e.ChangeObservable=`changeObservable`,e.NavigateObservable=`navigateObservable`,e.MutationObservable=`mutationObservable`,e.ScrollObservable=`scrollObservable`,e.ExposureObservable=`exposureObservable`,e.BrowserErrorObservable=`browserErrorObservable`,e.SelectionObservable=`selectionObservable`,e.MouseMoveObservable=`mouseMoveObservable`})(yp||={});var bp=function(e,t){var n,r,i,a,o;e===void 0&&(e={}),t==null||t.diagnosticsClient.setTag(`plugin.autocapture.version`,`1.28.10`);var s=e.dataAttributePrefix,c=s===void 0?Tc:s,l=e.visualTaggingOptions,u=l===void 0?{enabled:!0}:l;e.cssSelectorAllowlist=e.cssSelectorAllowlist??wc,e.actionClickAllowlist=e.actionClickAllowlist??Ec,e.debounceTime=e.debounceTime??0;var d=((n=e.viewportContentUpdated)==null?void 0:n.enabled)!==!1,f=((r=e.viewportContentUpdated)==null?void 0:r.exposureDuration)??e.exposureDuration??150;e.viewportContentUpdated=R(R({},e.viewportContentUpdated),{exposureDuration:f}),e.pageUrlExcludelist=(i=e.pageUrlExcludelist)==null?void 0:i.reduce(function(e,t){if(typeof t==`string`&&e.push(t),t instanceof RegExp&&e.push(t),typeof t==`object`&&t&&`pattern`in t)try{e.push(new RegExp(t.pattern))}catch(n){return console.warn(`Invalid regex pattern: ${t.pattern}`,n),e}return e},[]);var p=ud,m=`enrichment`,h=[],g=new pp(e,t),_=new Set,v=new Set,y,b=function(){var t,n=dl(uf().map(function(t){return g.addAdditionalEventProperties(t,`click`,e.cssSelectorAllowlist,c)})),r=dl(new Z.default(function(t){var n,r=function(n){var r=g.addAdditionalEventProperties(n,`change`,e.cssSelectorAllowlist,c);t.next(r)};return(n=K())==null||n.document.addEventListener(`change`,r,{capture:!0}),function(){var e;return(e=K())==null?void 0:e.document.removeEventListener(`change`,r)}})),i;window.navigation&&(i=dl(new Z.default(function(t){var n=function(n){var r=g.addAdditionalEventProperties(n,`navigate`,e.cssSelectorAllowlist,c);t.next(r)};return window.navigation.addEventListener(`navigate`,n),function(){window.navigation.removeEventListener(`navigate`,n)}})));var a=dl(lf().map(function(t){return g.addAdditionalEventProperties(t,`mutation`,e.cssSelectorAllowlist,c)})),o=df(),s=pf(a,e.cssSelectorAllowlist);return t={},t[yp.ChangeObservable]=r,t[yp.ClickObservable]=n,t[yp.MutationObservable]=a,t[yp.NavigateObservable]=i,t[yp.ScrollObservable]=o,t[yp.ExposureObservable]=s,t},x=Sf(Object.values(((a=e.pageActions)==null?void 0:a.labeledEvents)??{})),S=Cf(((o=e.pageActions)==null?void 0:o.triggers)??[]),C=Df(x,S,g,e),w=function(t){t&&(e.pageActions=R(R({},e.pageActions),t),x=Sf(Object.values(e.pageActions.labeledEvents??{})),S=Cf(e.pageActions.triggers??[]),C.update(x,S,e))};return{name:p,type:m,setup:function(t,n){return z(void 0,void 0,void 0,function(){var r,i,a,o,s,l,m,x,S,T,E,D,O,ee,k,A,te,j,ne,re,ie,ae;return B(this,function(oe){return typeof document>`u`?[2]:(r=!1,i={maxX:void 0,maxY:void 0},t.fetchRemoteConfig&&(t.remoteConfigClient?t.remoteConfigClient.subscribe(`configs.analyticsSDK.pageActions`,`all`,function(e){w(e)}):t.loggerProvider.debug(`Remote config client is not provided, skipping remote config fetch`)),a=hp(t,g),a&&h.push({unsubscribe:a}),o=Wd(e,e.cssSelectorAllowlist),s=Wd(e,e.actionClickAllowlist),l=b(),m=rf({allObservables:l,amplitude:n,shouldTrackEvent:o,evaluateTriggers:C.evaluate.bind(C)}),h.push(m),x=af({allObservables:l,getEventProperties:function(){var e=[...arguments];return g.getEventProperties.apply(g,U(U([],H(e),!1),[c],!1))},amplitude:n,shouldTrackEvent:o,evaluateTriggers:C.evaluate.bind(C)}),h.push(x),S=of({allObservables:l,options:e,getEventProperties:function(){var e=[...arguments];return g.getEventProperties.apply(g,U(U([],H(e),!1),[c],!1))},amplitude:n,shouldTrackEvent:o,shouldTrackActionClick:s}),S&&h.push(S),T=sf({allObservables:l,amplitude:n}),h.push(T),E={},D=K(),O=function(e){e&&r||(setTimeout(function(){r=!1},100),r=!0,_p({amplitude:n,scrollTracker:T,currentElementExposed:v,elementExposedForPage:_,exposureTracker:E.exposure,isPageEnd:e,lastScroll:i}))},ee=function(e){vp(e,_,v,O)},d&&(E.exposure=gp({allObservables:l,onExposure:ee,dataExtractor:g,exposureDuration:f}),E.exposure&&h.push(E.exposure),k=function(){O(!0)},D==null||D.addEventListener(`beforeunload`,k),y=function(){D==null||D.removeEventListener(`beforeunload`,k)},h.push({unsubscribe:function(){return y()}}),A=l[yp.NavigateObservable],A?h.push(A.subscribe(function(){O(!0)})):D&&(te=function(){O(!0)},D.addEventListener(`popstate`,te),j=D.history.pushState,D.history&&j&&(D.history.pushState=new Proxy(j,{apply:function(e,t,n){var r=H(n,3),i=r[0],a=r[1],o=r[2];e.apply(t,[i,a,o]),O(!0)}})),h.push({unsubscribe:function(){D.removeEventListener(`popstate`,te),D.history&&j&&(D.history.pushState=j)}}))),(ae=t==null?void 0:t.loggerProvider)==null||ae.log(`${p} has been successfully added.`),window.opener&&u.enabled&&(ne=e.cssSelectorAllowlist,re=e.actionClickAllowlist,ie=wl(),nf(ie,{dataExtractor:g,isElementSelectable:Wd(e,U(U([],H(ne),!1),H(re),!1)),cssSelectorAllowlist:ne,actionClickAllowlist:re}),El(ie),ie.setup(R({logger:t==null?void 0:t.loggerProvider},(t==null?void 0:t.serverZone)&&{endpoint:hl[t.serverZone]}))),[2])})})},execute:function(e){return z(void 0,void 0,void 0,function(){return B(this,function(t){return[2,e]})})},teardown:function(){return z(void 0,void 0,void 0,function(){var e,t,n,r,i;return B(this,function(a){try{for(e=V(h),t=e.next();!t.done;t=e.next())n=t.value,n.unsubscribe()}catch(e){r={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}return[2]})})}}},xp=3e3,Sp=[`mutation`,`navigate`];function Cp(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,i=e.shouldTrackDeadClick,a=n.clickObservable,o=n.mutationObservable,s=n.navigateObservable,c=ul(a.filter(function(e){return Qd(e)&&i(`click`,e.closestTrackedAncestor)&&e.event.target instanceof Element&&e.event.target.closest(`a[target="_blank"]`)===null&&e.event.button===ef.LEFT_OR_TOUCH_CONTACT}),s?ul(o,s):o),l=null;return ll(c,function(e){return l&&Sp.includes(e.type)?(clearTimeout(l),l=null,Promise.resolve(null)):e.type===`click`?l?Promise.resolve(null):new Promise(function(t){l=setTimeout(function(){t(e),l=null},xp)}):Promise.resolve(null)}).subscribe(function(e){if(e){var n={"[Amplitude] X":e.event.clientX,"[Amplitude] Y":e.event.clientY};t.track(pd,R(R({},r(`click`,e.closestTrackedAncestor)),n),{time:e.timestamp})}})}var wp=4,Tp=jc,Ep=50;function Dp(e,t){var n=t.event,r=n.pageX,i=n.pageY;e.yMin=Math.min(e.yMin??i,i),e.yMax=Math.max(e.yMax??i,i),e.xMin=Math.min(e.xMin??r,r),e.xMax=Math.max(e.xMax??r,r),e.isOutOfBounds=e.yMax-e.yMin>Ep||e.xMax-e.xMin>Ep}function Op(e){if(e.length===0)return null;var t=e[0],n=e[e.length-1];return{rageClickEvent:R({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(n.timestamp).toISOString(),"[Amplitude] Duration":n.timestamp-t.timestamp,"[Amplitude] Clicks":e.map(function(e){return{X:e.event.pageX,Y:e.event.pageY,Time:e.timestamp}}),"[Amplitude] Click Count":e.length},t.targetElementProperties),time:t.timestamp}}function kp(e,t){var n=e[Math.max(0,e.length-wp+1)];return t.timestamp-n.timestamp>=Tp}function Ap(e,t){return e.length>0&&e[e.length-1].closestTrackedAncestor!==t.closestTrackedAncestor}function jp(e){var t=this,n=e.amplitude,r=e.allObservables,i=e.shouldTrackRageClick,a=r.clickObservable,o=r.selectionObservable,s=[],c={},l=null;function u(e){s=[],c={},e&&(Dp(c,e),s.push(e))}var d=ll(a.filter(function(e){return i(`click`,e.closestTrackedAncestor)}),function(e){return z(t,void 0,void 0,function(){var t;return B(this,function(n){return Dp(c,e),t=null,s.length===0||Ap(s,e)||kp(s,e)||c.isOutOfBounds?(l&&(t=Op(s)),u(e)):s.push(e),l&&=(clearTimeout(l.timerId),l.resolve(t),null),s.length>=wp?[2,new Promise(function(e){l={resolve:e,timerId:setTimeout(function(){e(Op(s))},Tp)}})]:[2,null]})})}),f=o==null?void 0:o.subscribe(function(){u()}),p=d.subscribe(function(e){e!==null&&n.track(md,e.rageClickEvent,{time:e.time})});return{unsubscribe:function(){p.unsubscribe(),f==null||f.unsubscribe()}}}var Mp=2e3;function Np(e){var t=e.amplitude,n=e.allObservables,r=e.shouldTrackErrorClick,i=n.clickObservable,a=n.browserErrorObservable,o=i.filter(function(e){return Qd(e)&&r(`click`,e.closestTrackedAncestor)&&e.event.target instanceof Element&&e.event.target.closest(`a[target="_blank"]`)===null&&e.event.button===ef.LEFT_OR_TOUCH_CONTACT}),s=null,c=null,l=function(){s!==null&&(clearTimeout(s),s=null),c=null};return ul(o,a).subscribe(function(e){var n;if(e.type===`click`){l(),c=e,s=setTimeout(l,Mp);return}e.type===`error`&&c&&(t.track(hd,R((n={},n[`[Amplitude] Kind`]=e.event.kind,n[`[Amplitude] Message`]=e.event.message,n[`[Amplitude] Stack`]=e.event.stack,n[`[Amplitude] Filename`]=e.event.filename,n[`[Amplitude] Line Number`]=e.event.lineNumber,n[`[Amplitude] Column Number`]=e.event.columnNumber,n),c.targetElementProperties)),l())})}var Pp;(function(e){e.INCREASING=`increasing`,e.DECREASING=`decreasing`})(Pp||={});var Fp;(function(e){e.X=`x`,e.Y=`y`})(Fp||={});var Ip=function(e){var t=e.allWindowObservables.mouseMoveObservable;return new Z.default(function(e){var n=null,r=null,i=null;return t.subscribe(function(t){var a={x:t.clientX,y:t.clientY};if(n===null){n=a;return}a.x>n.x?(r===Pp.DECREASING&&e.next(Fp.X),r=Pp.INCREASING):a.xn.y?(i===Pp.DECREASING&&e.next(Fp.Y),i=Pp.INCREASING):a.yr&&n.shift()}function Rp(e){var t=e.changes,n=e.changesThreshold,r=e.thresholdMs;return t.length`u`?[2]:(h=m(),g=hp(n,f),g&&r.push({unsubscribe:g}),o&&(_=Wd(e,c),v=jp({allObservables:h,amplitude:p,shouldTrackRageClick:_}),r.push(v)),a&&(y=Wd(e,l),b=Cp({amplitude:p,allObservables:h,getEventProperties:function(e,t){return f.getEventProperties(e,t,d)},shouldTrackDeadClick:y}),r.push(b)),i&&(x=Wd(e,u),S=Np({amplitude:p,allObservables:h,shouldTrackErrorClick:x}),r.push(S)),s&&(C=void 0,w=void 0,typeof e.thrashedCursor==`object`&&(C=e.thrashedCursor.directionChanges,w=e.thrashedCursor.threshold,C&&CJp&&(n.loggerProvider.warn(`'thrashedCursor.threshold' of ${w} is above the maximum of ${Jp}, setting to ${Jp}`),w=Jp)),T=Gp({amplitude:p,options:e,allObservables:h,directionChanges:C,thresholdMs:w}),r.push(T)),(E=n==null?void 0:n.loggerProvider)==null||E.log(`${t} has been successfully added.`),[2])})})},execute:function(e){return z(void 0,void 0,void 0,function(){return B(this,function(t){return[2,e]})})},teardown:function(){return z(void 0,void 0,void 0,function(){var e,t,n,i,a;return B(this,function(o){try{for(e=V(r),t=e.next();!t.done;t=e.next())n=t.value,n.unsubscribe()}catch(e){i={error:e}}finally{try{t&&!t.done&&(a=e.return)&&a.call(e)}finally{if(i)throw i.error}}return[2]})})}}},Xp=100,Zp=1e4;function Qp(e,t){var n=e.startTime+e.duration;return t.filter(function(t){return t.startTimee.startTime}).map(function(e){return e.name})}function $p(e,t){var n=Qp(e,t),r=e.scripts??[],i=r.map(function(e){return e.sourceURL}).filter(Boolean),a=r.map(function(e){return e.sourceFunctionName}).filter(Boolean),o=r.map(function(e){return e.sourceCharPosition}).filter(function(e){return typeof e==`number`&&e>=0}),s=r.map(function(e){return e.invokerType}).filter(Boolean),c=r.map(function(e){return e.invoker}).filter(Boolean);return R(R(R(R(R(R(R({"[Amplitude] Main Thread Block Source":`long-animation-frame`,"[Amplitude] Main Thread Block Duration":e.duration,"[Amplitude] Main Thread Block Blocking Duration":e.blockingDuration,"[Amplitude] Main Thread Block Start Time":e.startTime},n.length>0&&{"[Amplitude] Main Thread Block Measures":n}),{"[Amplitude] Main Thread Block Render Start":e.renderStart,"[Amplitude] Main Thread Block Style And Layout Start":e.styleAndLayoutStart,"[Amplitude] Main Thread Block Script Count":r.length}),i.length>0&&{"[Amplitude] Main Thread Block Script URLs":i}),a.length>0&&{"[Amplitude] Main Thread Block Script Functions":a}),o.length>0&&{"[Amplitude] Main Thread Block Script Positions":o}),s.length>0&&{"[Amplitude] Main Thread Block Invoker Types":s}),c.length>0&&{"[Amplitude] Main Thread Block Invokers":c})}function em(e,t){var n=Qp(e,t),r=e.attribution??[];return R(R({"[Amplitude] Main Thread Block Source":`long-task`,"[Amplitude] Main Thread Block Duration":e.duration,"[Amplitude] Main Thread Block Blocking Duration":e.duration,"[Amplitude] Main Thread Block Start Time":e.startTime},n.length>0&&{"[Amplitude] Main Thread Block Measures":n}),r.length>0&&{"[Amplitude] Main Thread Block Attribution":r.map(function(e){return e.name})})}function tm(){if(typeof PerformanceObserver>`u`)return null;try{var e=PerformanceObserver.supportedEntryTypes;if(e.includes(`long-animation-frame`))return`long-animation-frame`;if(e.includes(`longtask`))return`longtask`}catch{}return null}function nm(e){var t=e.amplitude,n=e.options,r=e.durationThreshold,i=r===void 0?Xp:r,a=tm();if(!a)return{unsubscribe:function(){}};var o=[],s=new PerformanceObserver(function(e){var t,n,r=performance.now();try{for(var i=V(e.getEntries()),a=i.next();!a.done;a=i.next()){var s=a.value;o.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}for(var c=r-Zp;o.length>0&&o[0].startTime`u`?[2]:(i&&(o=rm,typeof e.mainThreadBlock==`object`&&e.mainThreadBlock.durationThreshold!==void 0&&(o=e.mainThreadBlock.durationThreshold),s=nm({amplitude:a,options:e,durationThreshold:o}),r.push(s)),(c=n==null?void 0:n.loggerProvider)==null||c.log(`${t} performance tracking has been successfully added.`),[2])})})},execute:function(e){return z(void 0,void 0,void 0,function(){return B(this,function(t){return[2,e]})})},teardown:function(){return z(void 0,void 0,void 0,function(){var e,t,n,i,a;return B(this,function(o){try{for(e=V(r),t=e.next();!t.done;t=e.next())n=t.value,n.unsubscribe()}catch(e){i={error:e}}finally{try{t&&!t.done&&(a=e.return)&&a.call(e)}finally{if(i)throw i.error}}return[2]})})}}},am=`@amplitude/plugin-network-capture-browser`,om=`500-599`;function sm(e,t){var n=`^`+t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,`\\$&`).replace(/\*/g,`.*`)+`$`;return new RegExp(n).test(e)}function cm(e,t){var n,r,i=t.split(`,`);try{for(var a=V(i),o=a.next();!o.done;o=a.next()){var s=o.value,c=H(s.split(`-`).map(Number),2),l=c[0],u=c[1];if(e===l&&u===void 0||e>=l&&e<=u)return!0}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return!1}function lm(e,t,n,r,i){if(!(e.hosts&&!e.hosts.find(function(e){return sm(t,e)}))&&!(r&&e.urls&&!ks(r,e.urls))&&!(i&&e.methods&&!e.methods.find(function(e){return i.toLowerCase()===e.toLowerCase()||e===`*`})))return!((n||n===0)&&!cm(n,e.statusCodeRange||om))}function um(e){var t=e.indexOf(`#`),n=t>=0?e.slice(t+1):``,r=t>=0?e.slice(0,t):e,i=r.indexOf(`?`),a=i>=0?r.slice(i+1):``,o=i>=0?r.slice(0,i):r,s=o.match(/^[a-z][a-z0-9+.-]*:\/\/([^/?#]+)/i);return{query:a,fragment:n,href:e,hrefWithoutQueryOrHash:o,host:(s==null?void 0:s[1])??``}}function dm(e){var t;if(e)try{var n=(t=K())==null?void 0:t.location.href,r=new URL(e,n),i=r.searchParams.toString(),a=r.hash.replace(`#`,``),o=r.href,s=r.host;return r.hash=``,r.search=``,{query:i,fragment:a,href:o,hrefWithoutQueryOrHash:r.href,host:s}}catch{try{return um(e)}catch{return}}}function fm(e,t){if(e.includes(`amplitude.com`))try{var n=t.body;if(typeof n!=`string`)return!1;if(JSON.parse(n).events.find(function(e){return e.event_type===`[Amplitude] Network Request`}))return!0}catch{}return!1}function pm(e){if(typeof e!=`object`||!e)return e?U([],H(go),!1):void 0;if(e.length!==0)return e}function mm(e){var t,n,r;return!((t=e==null?void 0:e.allowlist)!=null&&t.length)&&!((n=e==null?void 0:e.blocklist)!=null&&n.length)&&!((r=e==null?void 0:e.excludelist)!=null&&r.length)}function hm(e,t){var n;t===void 0&&(t={});var r=dm(e.url);if(!r)return!1;var i=r.host;if(t.ignoreAmplitudeRequests!==!1&&(sm(i,`*.amplitude.com`)||sm(i,`amplitude.com`))||(n=t.ignoreHosts)!=null&&n.find(function(e){return sm(i,e)})||!t.captureRules&&e.status!==void 0&&!cm(e.status,om))return!1;if(t.captureRules){var a;if(U([],H(t.captureRules),!1).reverse().find(function(t){if(a=lm(t,i,e.status,e.url,e.method),a){var n=pm(t.responseHeaders);if(e.responseWrapper&&n){var r=e.responseWrapper.headers(n);r&&(e.responseHeaders=r)}var o=pm(t.requestHeaders);if(e.requestWrapper&&o){var s=e.requestWrapper.headers(o);s&&(e.requestHeaders=s)}if(e.responseWrapper&&t.responseBody&&!mm(t.responseBody)){var c=t.responseBody.excludelist||t.responseBody.blocklist;e.responseBodyJson=e.responseWrapper.json(t.responseBody.allowlist,c)}if(e.requestWrapper&&t.requestBody&&!mm(t.requestBody)){var c=t.requestBody.excludelist||t.requestBody.blocklist;e.requestBodyJson=e.requestWrapper.json(t.requestBody.allowlist,c)}}return a!==void 0}),!a)return!1}return!(e.requestWrapper&&fm(i,e.requestWrapper))}function gm(e,t,n,r){return z(this,void 0,void 0,function(){var i,a,o;return B(this,function(s){switch(s.label){case 0:return t.requestBodyJson||t.responseBodyJson?[4,Promise.all([t.requestBodyJson,t.responseBodyJson])]:[3,2];case 1:if(i=H.apply(void 0,[s.sent(),2]),a=i[0],o=i[1],a)try{e[`[Amplitude] Request Body`]=JSON.stringify(a)}catch(e){r==null||r.debug(`Failed to stringify request body`,e)}if(o)try{e[`[Amplitude] Response Body`]=JSON.stringify(o)}catch{r==null||r.debug(`Failed to stringify response body`)}s.label=2;case 2:return n==null||n.track(`[Amplitude] Network Request`,e),[2]}})})}function _m(e){var t=e.allObservables,n=e.networkTrackingOptions,r=e.amplitude,i=e.loggerProvider;return t.networkObservable.filter(function(e){return hm(e.event,n)}).subscribe(function(e){var t,n,a,o=e.event,s=dm(o.url);if(s){var c=(n=o.responseWrapper)==null?void 0:n.bodySize,l=(a=o.requestWrapper)==null?void 0:a.bodySize;gm((t={},t[`[Amplitude] URL`]=s.hrefWithoutQueryOrHash,t[`[Amplitude] URL Query`]=s.query,t[`[Amplitude] URL Fragment`]=s.fragment,t[`[Amplitude] Request Method`]=o.method,t[`[Amplitude] Status Code`]=o.status,t[`[Amplitude] Start Time`]=o.startTime,t[`[Amplitude] Completion Time`]=o.endTime,t[`[Amplitude] Duration`]=o.duration,t[`[Amplitude] Request Body Size`]=l,t[`[Amplitude] Response Body Size`]=c,t[`[Amplitude] Request Type`]=o.type,t[`[Amplitude] Request Headers`]=o.requestHeaders,t[`[Amplitude] Response Headers`]=o.responseHeaders,t),o,r,i)}})}var vm;(function(e){e.NetworkObservable=`networkObservable`})(vm||={});var ym,bm=function(e){e===void 0&&(e={});var t=am,n=`enrichment`,r,i=function(e,t){return{event:e,timestamp:Date.now(),type:t}},a=function(){var e,t=new Z.default(function(e){var t=new Xc(function(t){var n=i(t,`network`);e.next(n)});return Qc.subscribe(t,r),function(){Qc.unsubscribe(t)}});return e={},e[vm.NetworkObservable]=t,e};return{name:t,type:n,setup:function(n,i){return z(void 0,void 0,void 0,function(){var o;return B(this,function(s){return typeof document>`u`&&!kl()?[2]:(o=a(),r=n==null?void 0:n.loggerProvider,ym=_m({allObservables:o,networkTrackingOptions:e,amplitude:i,loggerProvider:r}),r==null||r.log(`${t} has been successfully added.`),[2])})})},execute:function(e){return z(void 0,void 0,void 0,function(){return B(this,function(t){return[2,e]})})},teardown:function(){return z(void 0,void 0,void 0,function(){return B(this,function(e){return ym.unsubscribe(),[2]})})}}},xm=`web-vitals-browser`,Sm=`[Amplitude] Web Vitals`,Cm=-1,wm=e=>{addEventListener(`pageshow`,(t=>{t.persisted&&(Cm=t.timeStamp,e(t))}),!0)},Tm=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=((e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`)(t.value,n),e(t)))}},Em=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},Dm=()=>{let e=performance.getEntriesByType(`navigation`)[0];if(e&&e.responseStart>0&&e.responseStart{let e=Dm();return(e==null?void 0:e.activationStart)??0},km=(e,t=-1)=>{let n=Dm(),r=`navigate`;return Cm>=0?r=`back-forward-cache`:n&&(document.prerendering||Om()>0?r=`prerender`:document.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+0xe8d4a51000}`,navigationType:r}},Am=new WeakMap;function jm(e,t){return Am.get(e)||Am.set(e,new t),Am.get(e)}var Mm=class{constructor(){k(this,`t`,void 0),k(this,`i`,0),k(this,`o`,[])}h(e){var t;if(e.hadRecentInput)return;let n=this.o[0],r=this.o.at(-1);this.i&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),(t=this.t)==null||t.call(this,e)}},Nm=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Pm=e=>{let t=!1;return()=>{t||=(e(),!0)}},Fm=-1,Im=new Set,Lm=()=>document.visibilityState!==`hidden`||document.prerendering?1/0:0,Rm=e=>{if(document.visibilityState===`hidden`){if(e.type===`visibilitychange`)for(let e of Im)e();isFinite(Fm)||(Fm=e.type===`visibilitychange`?e.timeStamp:0,removeEventListener(`prerenderingchange`,Rm,!0))}},zm=()=>{if(Fm<0){var e;let t=Om();Fm=(document.prerendering||(e=globalThis.performance.getEntriesByType(`visibility-state`).filter((e=>e.name===`hidden`&&e.startTime>t))[0])==null?void 0:e.startTime)??Lm(),addEventListener(`visibilitychange`,Rm,!0),addEventListener(`prerenderingchange`,Rm,!0),wm((()=>{setTimeout((()=>{Fm=Lm()}))}))}return{get firstHiddenTime(){return Fm},onHidden(e){Im.add(e)}}},Bm=e=>{document.prerendering?addEventListener(`prerenderingchange`,(()=>e()),!0):e()},Vm=[1800,3e3],Hm=(e,t={})=>{Bm((()=>{let n=zm(),r,i=km(`FCP`),a=Nm(`paint`,(e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime{i=km(`FCP`),r=Tm(e,i,Vm,t.reportAllChanges),Em((()=>{i.value=performance.now()-n.timeStamp,r(!0)}))})))}))},Um=[.1,.25],Wm=(e,t={})=>{let n=zm();Hm(Pm((()=>{let r,i=km(`CLS`,0),a=jm(t,Mm),o=e=>{for(let t of e)a.h(t);a.i>i.value&&(i.value=a.i,i.entries=a.o,r())},s=Nm(`layout-shift`,o);s&&(r=Tm(e,i,Um,t.reportAllChanges),n.onHidden((()=>{o(s.takeRecords()),r(!0)})),wm((()=>{a.i=0,i=km(`CLS`,0),r=Tm(e,i,Um,t.reportAllChanges),Em((()=>r()))})),setTimeout(r))})))},Gm=0,Km=1/0,qm=0,Jm=e=>{for(let t of e)t.interactionId&&(Km=Math.min(Km,t.interactionId),qm=Math.max(qm,t.interactionId),Gm=qm?(qm-Km)/7+1:0)},Ym,Xm=()=>Ym?Gm:performance.interactionCount??0,Zm=()=>{`interactionCount`in performance||Ym||(Ym=Nm(`event`,Jm,{type:`event`,buffered:!0,durationThreshold:0}))},Qm=0,$m=class{constructor(){k(this,`u`,[]),k(this,`l`,new Map),k(this,`m`,void 0),k(this,`p`,void 0)}v(){Qm=Xm(),this.u.length=0,this.l.clear()}L(){let e=Math.min(this.u.length-1,Math.floor((Xm()-Qm)/50));return this.u[e]}h(e){var t;if((t=this.m)==null||t.call(this,e),!e.interactionId&&e.entryType!==`first-input`)return;let n=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>n.P){var i;if(r?e.duration>r.P?(r.entries=[e],r.P=e.duration):e.duration===r.P&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],P:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort(((e,t)=>t.P-e.P)),this.u.length>10){let e=this.u.splice(10);for(let t of e)this.l.delete(t.id)}(i=this.p)==null||i.call(this,r)}}},eh=e=>{let t=globalThis.requestIdleCallback||setTimeout;document.visibilityState===`hidden`?e():(e=Pm(e),addEventListener(`visibilitychange`,e,{once:!0,capture:!0}),t((()=>{e(),removeEventListener(`visibilitychange`,e,{capture:!0})})))},th=[200,500],nh=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!(`interactionId`in PerformanceEventTiming.prototype))return;let n=zm();Bm((()=>{Zm();let r,i=km(`INP`),a=jm(t,$m),o=e=>{eh((()=>{for(let t of e)a.h(t);let t=a.L();t&&t.P!==i.value&&(i.value=t.P,i.entries=t.entries,r())}))},s=Nm(`event`,o,{durationThreshold:t.durationThreshold??40});r=Tm(e,i,th,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden((()=>{o(s.takeRecords()),r(!0)})),wm((()=>{a.v(),i=km(`INP`),r=Tm(e,i,th,t.reportAllChanges)})))}))},rh=class{constructor(){k(this,`m`,void 0)}h(e){var t;(t=this.m)==null||t.call(this,e)}},ih=[2500,4e3],ah=(e,t={})=>{Bm((()=>{let n=zm(),r,i=km(`LCP`),a=jm(t,rh),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a.h(t),t.startTime{o(s.takeRecords()),s.disconnect(),r(!0)})),a=e=>{e.isTrusted&&(eh(n),removeEventListener(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])addEventListener(e,a,{capture:!0});wm((n=>{i=km(`LCP`),r=Tm(e,i,ih,t.reportAllChanges),Em((()=>{i.value=performance.now()-n.timeStamp,r(!0)}))}))}}))},oh=[800,1800],sh=e=>{document.prerendering?Bm((()=>sh(e))):document.readyState===`complete`?setTimeout(e):addEventListener(`load`,(()=>sh(e)),!0)},ch=(e,t={})=>{let n=km(`TTFB`),r=Tm(e,n,oh,t.reportAllChanges);sh((()=>{let i=Dm();i&&(n.value=Math.max(i.responseStart-Om(),0),n.entries=[i],r(!0),wm((()=>{n=km(`TTFB`,0),r=Tm(e,n,oh,t.reportAllChanges),r(!0)})))}))};function lh(e){var t,n=((t=e.entries[0])==null?void 0:t.startTime)||0;return performance.timeOrigin+n}function uh(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(lh(e)),navigationStart:Math.floor(performance.timeOrigin)}}var dh=function(){var e=null,t=K(),n=t==null?void 0:t.document,r=t==null?void 0:t.location;return{name:xm,type:`enrichment`,setup:function(t,i){return z(void 0,void 0,void 0,function(){var a,o;return B(this,function(s){return n===void 0?[2]:(a=As((r==null?void 0:r.href)||``,t.loggerProvider),o={"[Amplitude] Page Domain":(r==null?void 0:r.hostname)||``,"[Amplitude] Page Location":a,"[Amplitude] Page Path":As((r==null?void 0:r.pathname)||``,t.loggerProvider),"[Amplitude] Page Title":typeof document<`u`&&document.title||``,"[Amplitude] Page URL":As(a.split(`?`)[0],t.loggerProvider)},ah(function(e){o[`[Amplitude] LCP`]=uh(e)}),Hm(function(e){o[`[Amplitude] FCP`]=uh(e)}),nh(function(e){o[`[Amplitude] INP`]=uh(e)}),Wm(function(e){o[`[Amplitude] CLS`]=uh(e)}),ch(function(e){o[`[Amplitude] TTFB`]=uh(e)}),e=function(){n.visibilityState===`hidden`&&e&&(i.track(Sm,o),n.removeEventListener(`visibilitychange`,e),e=null)},n.addEventListener(`visibilitychange`,e),[2])})})},execute:function(e){return z(void 0,void 0,void 0,function(){return B(this,function(t){return[2,e]})})},teardown:function(){return z(void 0,void 0,void 0,function(){return B(this,function(t){return e&&(n==null||n.removeEventListener(`visibilitychange`,e)),[2]})})}}},fh=function(){function e(e,t){var n;this.shouldTrackNewCampaign=!1,this.options=R({initialEmptyValue:`EMPTY`,resetSessionOnNewCampaign:!1,excludeReferrers:Lu(((n=t.cookieOptions)==null?void 0:n.domain)||t.topLevelDomain),optOut:t.optOut},e),this.storage=t.cookieStorage,this.storageKey=Vs(t.apiKey,`MKTG`),this.webExpStorageKey=Vs(t.apiKey,`MKTG_ORIGINAL`),this.currentCampaign=ho,this.sessionTimeout=t.sessionTimeout,this.lastEventTime=t.lastEventTime,this.logger=t.loggerProvider,this.topLevelDomain=t.topLevelDomain,t.loggerProvider.log(`Installing web attribution tracking.`)}return e.prototype.init=function(){return z(this,void 0,void 0,function(){var e,t;return B(this,function(n){switch(n.label){case 0:return this.options.optOut?[2]:[4,this.fetchCampaign()];case 1:return t=H.apply(void 0,[n.sent(),2]),this.currentCampaign=t[0],this.previousCampaign=t[1],e=!this.lastEventTime||Cs(this.sessionTimeout,this.lastEventTime),Nu(this.currentCampaign,this.previousCampaign,this.options,this.logger,e,this.topLevelDomain)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return z(this,void 0,void 0,function(){var e;return B(this,function(t){switch(t.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return e=t.sent(),e?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:t.sent(),t.label=3;case 3:return[4,Promise.all([e||new el().parse(),this.storage.get(this.storageKey)])];case 4:return[2,t.sent()]}})})},e.prototype.generateCampaignEvent=function(e){this.shouldTrackNewCampaign=!1;var t=Iu(this.currentCampaign,this.options);return e&&(t.event_id=e),t},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),ph=`[Amplitude] Attribution`,mh=new Set([Wa.IDENTIFY,Wa.GROUP_IDENTIFY]),hh=function(e){return Ns(e)},gh=function(e){e===void 0&&(e={});var t=e.fallbackAttributionEvent??!1,n=K(),r,i,a={},o=!1,s=!1,c,l,u,d,f=function(){return z(void 0,void 0,void 0,function(){var e;return B(this,function(n){switch(n.label){case 0:return[4,new el().parse()];case 1:return e=n.sent(),a=hh(e),t&&(i==null||i.log(`Tracking attribution fallback event.`),r==null||r.track(ph,a)),[2]}})})},p=function(){f()},m=function(e){return new Proxy(e,{apply:function(e,t,n){Reflect.apply(e,t,n),o&&p()}})};return{name:`@amplitude/plugin-event-property-attribution-browser`,type:`enrichment`,setup:function(e,t){return z(void 0,void 0,void 0,function(){return B(this,function(a){switch(a.label){case 0:return r=t,i=e.loggerProvider,o=!0,i.log(`Installing event property attribution tracking.`),[4,f()];case 1:if(a.sent(),!n)return[2];if(n.addEventListener(`popstate`,p),!s){if(c=Reflect.get(n.history,`pushState`),l=Reflect.get(n.history,`replaceState`),!c||!l)return[2];u=m(c),n.history.pushState=u,d=m(l),n.history.replaceState=d,s=!0}return[2]}})})},execute:function(e){return z(void 0,void 0,void 0,function(){return B(this,function(t){return mh.has(e.event_type)||(e.event_properties=R(R({},a),e.event_properties)),[2,e]})})},teardown:function(){return z(void 0,void 0,void 0,function(){var e,t;return B(this,function(r){return n&&(n.removeEventListener(`popstate`,p),e=Reflect.get(n.history,`pushState`),t=Reflect.get(n.history,`replaceState`),s&&e===u&&c&&(n.history.pushState=c),s&&t===d&&l&&(n.history.replaceState=l)),o=!1,s=!1,c=void 0,l=void 0,u=void 0,d=void 0,a={},[2]})})}}},_h=`AMP_CURRENT_PAGE`,vh=`AMP_PREVIOUS_PAGE`,yh=`AMP_URL_INFO`,bh;(function(e){e.Direct=`direct`,e.Internal=`internal`,e.External=`external`})(bh||={});var xh=new Set([Wa.IDENTIFY,Wa.GROUP_IDENTIFY,Wa.REVENUE]),Sh=function(e){var t=(e===void 0?{}:e).internalDomains,n=t===void 0?[]:t,r=K(),i=void 0,a=!1,o=void 0,s=!1,c=!1,l=function(e){var t;try{var n=As(e,o);t=new URL(n).hostname}catch(e){o==null||o.error(`Could not parse URL: `,e)}return t},u=function(e){var t=typeof location<`u`&&location.hostname||``,r=e?l(e):void 0;if(!r)return bh.Direct;var i=n.some(function(e){return t.indexOf(e)!==-1}),a=n.some(function(e){return r.indexOf(e)!==-1});return t===r||a&&i?bh.Internal:bh.External},d=function(){return z(void 0,void 0,void 0,function(){var e,t,n,r,o;return B(this,function(s){switch(s.label){case 0:return i&&a?[4,i.get(yh)]:[3,3];case 1:return e=s.sent(),t=As(typeof location<`u`&&location.href||``),n=(e==null?void 0:e.AMP_CURRENT_PAGE)||``,r=void 0,r=t===n?(e==null?void 0:e.AMP_PREVIOUS_PAGE)||``:n||document.referrer||``,[4,i.set(yh,(o={},o[_h]=t,o[vh]=r,o))];case 2:s.sent(),s.label=3;case 3:return[2]}})})},f=function(){d()};return{name:`@amplitude/plugin-page-url-enrichment-browser`,type:`enrichment`,setup:function(e,t){return z(void 0,void 0,void 0,function(){var t,n,u,p,m,h,g,_;return B(this,function(v){switch(v.label){case 0:if(o=e.loggerProvider,o.log(`Installing @amplitude/plugin-page-url-enrichment-browser`),c=!0,!r)return[3,7];try{i=new Hs(r.sessionStorage)}catch{o==null||o.debug(`sessionStorage is not available in this environment.`)}return[4,i==null?void 0:i.isEnabled()];case 1:return a=v.sent()??!1,i&&a?(t=typeof document<`u`&&document.referrer||``,n=t?l(t):void 0,u=typeof location<`u`&&location.hostname||``,p=As(typeof location<`u`&&location.href||``),[4,i.get(yh)]):[3,6];case 2:return m=v.sent(),h=(m==null?void 0:m.AMP_CURRENT_PAGE)||``,g=!!n&&n!==u&&h!==p,g?[4,i.set(yh,(_={},_[_h]=p,_[vh]=t,_))]:[3,4];case 3:return v.sent(),[3,6];case 4:return[4,d()];case 5:v.sent(),v.label=6;case 6:r.addEventListener(`popstate`,f),s||=(r.history.pushState=new Proxy(r.history.pushState,{apply:function(e,t,n){var r=H(n,3),i=r[0],a=r[1],o=r[2];e.apply(t,[i,a,o]),c&&f()}}),r.history.replaceState=new Proxy(r.history.replaceState,{apply:function(e,t,n){var r=H(n,3),i=r[0],a=r[1],o=r[2];e.apply(t,[i,a,o]),c&&f()}}),!0),v.label=7;case 7:return[2]}})})},execute:function(e){return z(void 0,void 0,void 0,function(){var t,n,r;return B(this,function(o){switch(o.label){case 0:return t=As(typeof location<`u`&&location.href||``),i&&a?[4,i.get(yh)]:[3,2];case 1:if(n=o.sent(),r=(n==null?void 0:n.AMP_PREVIOUS_PAGE)||``,xh.has(e.event_type))return[2,e];e.event_properties=R(R({},e.event_properties||{}),{"[Amplitude] Page Domain":Ch(e,`[Amplitude] Page Domain`,typeof location<`u`&&location.hostname||``),"[Amplitude] Page Location":Ch(e,`[Amplitude] Page Location`,t),"[Amplitude] Page Path":Ch(e,`[Amplitude] Page Path`,typeof location<`u`&&As(location.pathname)||``),"[Amplitude] Page Title":Ch(e,`[Amplitude] Page Title`,sl(ol)),"[Amplitude] Page URL":Ch(e,`[Amplitude] Page URL`,t.split(`?`)[0]),"[Amplitude] Previous Page Location":r,"[Amplitude] Previous Page Type":u(r)}),o.label=2;case 2:return[2,e]}})})},teardown:function(){return z(void 0,void 0,void 0,function(){return B(this,function(e){switch(e.label){case 0:return r&&(r.removeEventListener(`popstate`,f),c=!1),i&&a?[4,i.set(yh,{})]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}})})}}};function Ch(e,t,n){return e.event_properties||={},e.event_properties[t]===void 0?n:e.event_properties[t]}var wh=function(){var e,t,n;function r(e){return typeof e!=`object`||!e?!1:`body`in e&&typeof e.body==`string`}function i(t){if(t)try{var n=Function(`return `+t)();if(typeof n==`function`)return n;e==null||e.error(`Custom enrichment body did not evaluate to a function`)}catch(t){e==null||e.error(`Could not create custom enrichment function`,t)}return function(e){return e}}return{name:`@amplitude/plugin-custom-enrichment-browser`,type:`enrichment`,setup:function(a,o){return z(void 0,void 0,void 0,function(){var o,s;return B(this,function(c){return e=a.loggerProvider,e==null||e.log(`Installing @amplitude/plugin-custom-enrichment-browser`),(s=a.remoteConfig)!=null&&s.fetchRemoteConfig&&(a.remoteConfigClient?(o=a.remoteConfigClient.subscribe(`configs.analyticsSDK.browserSDK.customEnrichment`,`all`,function(e){n=e&&r(e)?i(e.body||``):i(``)}),t=function(){var e;return(e=a.remoteConfigClient)==null?void 0:e.unsubscribe(o)}):e==null||e.debug(`Remote config client is not provided, skipping remote config fetch`)),[2]})})},execute:function(t){return z(void 0,void 0,void 0,function(){return B(this,function(r){if(n)try{return[2,n(t)??null]}catch(n){return e==null||e.error(`Could not execute custom enrichment function`,n),[2,t]}return[2,t]})})},teardown:function(){return z(void 0,void 0,void 0,function(){return B(this,function(e){return t&&t(),[2]})})}}},Th=`userProperty`,Eh=`eventProperty`,Dh=function(e){return e===`userProperty`||e===`eventProperty`},Oh=[Th,Eh],kh=function(e){var t=U([],H(new Set((Array.isArray(e)?e:[e]).filter(Dh))),!1);return t.length>0?t:U([],H(Oh),!1)},Ah=function(e,t){return kh(e.trackingMethod).includes(t)},jh=function(e){return Ah(e,Th)},Mh=function(e){return Ah(e,Eh)},Nh=-1,Ph=function(e){Va(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._diagnosticsSampleRate=0,t}return t.prototype.init=function(e,t,n){e===void 0&&(e=``);var r,i;return arguments.length>2?(r=t,i=n):typeof t==`string`?(r=t,i=void 0):(r=t==null?void 0:t.userId,i=t),zo(this._init(R(R({},i),{userId:r,apiKey:e})))},t.prototype._init=function(t){var n;return z(this,void 0,void 0,function(){var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v=this;return B(this,function(y){switch(y.label){case 0:return this.initializing?[2]:(this.initializing=!0,r=Ku(t),i=t.loggerProvider??new Ko,t.loggerProvider||i.enable(t.logLevel??Wo.Warn),a=t.serverZone??`US`,s=this._diagnosticsSampleRate,c=t.enableDiagnostics??!0,r?(o=new pc(t.apiKey,i,a,(n=t.remoteConfig)==null?void 0:n.serverUrl),[4,new Promise(function(e){o==null||o.subscribe(`configs.diagnostics.browserSDK`,`all`,function(t,n,r){if(i.debug(`Diagnostics remote configuration received:`,JSON.stringify({remoteConfig:t,source:n,lastFetch:r},null,2)),t){var a=t.sampleRate;typeof a==`number`&&!isNaN(a)&&(s=a);var o=t.enabled;typeof o==`boolean`&&(c=o)}e()})})]):[3,2]);case 1:y.sent(),y.label=2;case 2:return l=new ic(t.apiKey,i,a,{enabled:c,sampleRate:s}),l.setTag(`library`,`${nu}/${tu}`),typeof navigator<`u`&&l.setTag(`user_agent`,navigator.userAgent),[4,Wu(t.apiKey,t,this,l,{loggerProvider:i,serverZone:a,enableDiagnostics:c,diagnosticsSampleRate:s})];case 3:return u=y.sent(),r&&o?[4,new Promise(function(e){o==null||o.subscribe(`configs.analyticsSDK.browserSDK`,`all`,function(t,n,r){u.loggerProvider.debug(`Remote configuration received:`,JSON.stringify({remoteConfig:t,source:n,lastFetch:r},null,2)),t&&cd(t,u),e()})})]:[3,5];case 4:y.sent(),y.label=5;case 5:return[4,e.prototype._init.call(this,u)];case 6:return y.sent(),this.logBrowserOptions(u),this.config.remoteConfigClient=o,d=Zl(this.config),Pl(this.config.defaultTracking)&&jh(d)?(this.config.optOut&&this.timeline.addOptOutListener(function(e){return z(v,void 0,void 0,function(){return B(this,function(t){switch(t.label){case 0:return e?[3,2]:(this.webAttribution=new fh(d,this.config),[4,this.webAttribution.init()]);case 1:t.sent(),t.label=2;case 2:return[2]}})})}),this.webAttribution=new fh(d,this.config),[4,this.webAttribution.init()]):[3,8];case 7:y.sent(),y.label=8;case 8:return f=Ds(),p=f.ampTimestamp?Number(f.ampTimestamp):void 0,m=!p||Date.now()1||e<0)&&!this.config){this._diagnosticsSampleRate=e;return}},t}(Bo),Q=function(){var e=new Ph;return{init:Y(e.init.bind(e),`init`,q(e),J(e,[`config`])),add:Y(e.add.bind(e),`add`,q(e),J(e,[`config.apiKey`,`timeline.plugins`])),remove:Y(e.remove.bind(e),`remove`,q(e),J(e,[`config.apiKey`,`timeline.plugins`])),track:Y(e.track.bind(e),`track`,q(e),J(e,[`config.apiKey`,`timeline.queue.length`])),logEvent:Y(e.logEvent.bind(e),`logEvent`,q(e),J(e,[`config.apiKey`,`timeline.queue.length`])),identify:Y(e.identify.bind(e),`identify`,q(e),J(e,[`config.apiKey`,`timeline.queue.length`])),groupIdentify:Y(e.groupIdentify.bind(e),`groupIdentify`,q(e),J(e,[`config.apiKey`,`timeline.queue.length`])),setGroup:Y(e.setGroup.bind(e),`setGroup`,q(e),J(e,[`config.apiKey`,`timeline.queue.length`])),revenue:Y(e.revenue.bind(e),`revenue`,q(e),J(e,[`config.apiKey`,`timeline.queue.length`])),flush:Y(e.flush.bind(e),`flush`,q(e),J(e,[`config.apiKey`,`timeline.queue.length`])),getUserId:Y(e.getUserId.bind(e),`getUserId`,q(e),J(e,[`config`,`config.userId`])),setUserId:Y(e.setUserId.bind(e),`setUserId`,q(e),J(e,[`config`,`config.userId`])),getDeviceId:Y(e.getDeviceId.bind(e),`getDeviceId`,q(e),J(e,[`config`,`config.deviceId`])),setDeviceId:Y(e.setDeviceId.bind(e),`setDeviceId`,q(e),J(e,[`config`,`config.deviceId`])),reset:Y(e.reset.bind(e),`reset`,q(e),J(e,[`config`,`config.userId`,`config.deviceId`])),getSessionId:Y(e.getSessionId.bind(e),`getSessionId`,q(e),J(e,[`config`])),setSessionId:Y(e.setSessionId.bind(e),`setSessionId`,q(e),J(e,[`config`])),extendSession:Y(e.extendSession.bind(e),`extendSession`,q(e),J(e,[`config`])),setOptOut:Y(e.setOptOut.bind(e),`setOptOut`,q(e),J(e,[`config`])),setTransport:Y(e.setTransport.bind(e),`setTransport`,q(e),J(e,[`config`])),getIdentity:Y(e.getIdentity.bind(e),`getIdentity`,q(e),J(e,[`config`])),setIdentity:Y(e.setIdentity.bind(e),`setIdentity`,q(e),J(e,[`config`,`config.userId`,`config.deviceId`])),getOptOut:Y(e.getOptOut.bind(e),`getOptOut`,q(e),J(e,[`config`])),_setDiagnosticsSampleRate:Y(e._setDiagnosticsSampleRate.bind(e),`_setDiagnosticsSampleRate`,q(e),J(e,[`config`]))}}();Q.add,Q.extendSession,Q.flush,Q.getDeviceId,Q.getIdentity,Q.getOptOut,Q.getSessionId,Q.getUserId,Q.groupIdentify,Q.identify;var Fh=Q.init,Ih=Q.logEvent;Q.remove,Q.reset,Q.revenue,Q.setDeviceId,Q.setGroup,Q.setIdentity,Q.setOptOut,Q.setSessionId,Q.setTransport,Q.setUserId,Q.track,Q._setDiagnosticsSampleRate;function Lh(e){Fh(Be,e.amplitude_user_id,{defaultTracking:!0,identityStorage:`none`})}function Rh(e,t){Ih(`sv: ${e}`,t)}var zh={ADMIN:{FOOD_CURATION:`admin::curation`},AUTH:{ID:`auth-id`},CLIENT:{COPY:`client::copy`},COLLECTIONS:{SORT:`collections::sort`},CUSTOM_FOOD:{SORT:`custom-food::sort.1`},DARK_MODE:`dark-mode`,GROCERIES:{BARCODE:`groceries-bar-code`,LAST_VISITED:`groceries-last-visited`,USERS(e){return`linked-groceries::${e}`}},PLANNER:{BETA:`planner-beta`,EDIT:`edit`,EMAIL_PREFERENCES:`email-plan-preferences`,INTERACTIVE(e,t,n){return`planner-interactive::${e}::${t}~${n}`},NUTRITION:`planner-nutrition`,SETTINGS:`planner::settings`},NAV:{CATEGORIES:`nav-categories`,OPEN:`nav-open`},SAVED_PLAN:{SORT:`saved-plan::sort`},SEARCH:{COLLECTION(e){return`collection-search::${e}`},FOOD:`food-search.5`,LAYOUT:`layout-search`,RECIPE:`recipe-search.5`},TRACK:{SETTINGS:`track::settings`},REGISTRATION:{PRICE_ID:`price_id`}};function Bh(e){return function(t,n){let r=a()??n,i=ye(r,n=>{function r(r){r.key===t&&r.storageArea===e&&n(JSON.parse(r.newValue||``))}return be(window,`storage`,r)});function a(){try{let n=e.getItem(t);return n?JSON.parse(n):void 0}catch{return}}function o(n){e.setItem(t,JSON.stringify(n))}return{set(e){o(e),i.set(e)},subscribe:i.subscribe,update(e){i.update(t=>{let n=e(t);return o(t),n})}}}}var Vh=Bh(localStorage),Hh=Bh(sessionStorage),Uh=g(null),$=i(()=>N(Uh)?Ng(N(Uh)):null);De(()=>{let e=i(()=>N($)?N($).is_staff?`Staff`:N($).is_manager?`Manager`:N($).is_managed?`Client`:N($).is_premium?`Premium`:`Free`:`Anonymous`);Oe(()=>{N($)?(ze(N($).id),La.default.setUser(N($).id.toString(),N($).email,N($).username),La.default.addMetadata(`user`,{role:N(e)}),Lh(N($))):La.default.clearMetadata(`user`)})});function Wh(){if(!N(Uh))throw new I;return N(Uh)}function Gh(e){if(!N($))throw new I;return N($).permissions.includes(e)}function Kh(){if(!N($))throw new I;return N($).is_affiliate}function qh(){if(!N($))throw new I;return N($).is_awaiting_manager_approval}function Jh(){if(!N($))throw new I;return N($).is_linked}function Yh(){return!!N(Uh)}function Xh(){if(!N($))throw new I;return N($).is_manager}function Zh(){if(!N($))throw new I;return N($).is_managed}function Qh(){if(!N($))throw new I;return N($).is_staff}function $h(){var e;if(!((e=N($))!=null&&e.manager))throw TypeError();return N($).manager.user_id}function eg(){N($)||Pe(307,ng())}typeof window<`u`&&be(window,`storage`,({key:e})=>{e===zh.AUTH.ID&&(location.href.endsWith(`/logout`)?location.href=Ae(`/(auth)/login`):location.reload())});async function tg(e){s(Uh,e,!0);let t=localStorage.getItem(zh.AUTH.ID),n=e==null?void 0:e.toString();t!==n&&(vn(),n?localStorage.setItem(zh.AUTH.ID,n):localStorage.removeItem(zh.AUTH.ID))}function ng(){let e=location.pathname+location.search;return Ae(`/(auth)/login`)+`?next=${encodeURIComponent(e)}`}var rg=class extends Error{constructor({method:e,url:t}){super(`MaintenanceError: ${e} ${t}`),this.name=`MaintenanceError`}};function ig(e){let t=e.searchParams.get(`next`);if(!t)return;let n=new URL(t,e);if(n.hostname===e.hostname)return n.pathname+n.search+n.hash}async function ag(){try{return await dg(null,`/g/check-status/`),!1}catch(e){if(e instanceof rg)return!0;throw e}}function og(){if(location.pathname!==Ae(`/maintenance`)){let e=location.pathname+location.search;location.href=Ae(`/maintenance`)+`?next=${encodeURIComponent(e)}`}}var sg=6e4;async function cg({data:e,json:t,method:n,uri:r,user_id:i,timeout:a=sg}){let o=new AbortController;setTimeout(()=>o.abort(),a);let s=null;e&&(s=t?JSON.stringify(e):new URLSearchParams(e));let c=t?`application/json`:`application/x-www-form-urlencoded`,l=new URL(r,location.href);l.searchParams.append(`HTTP_BACKEND_VERSION`,`16`);let u=l.toString(),d;try{d=await fetch(u,{body:s,method:n,headers:{accept:`application/json;q=0.9, text/plain;q=0.8`,"auth-id":Yh()?Wh().toString():``,"content-type":c,"disable-full-food-info-toggle":`1`,...i?{"use-user-id":i.toString()}:null,"x-request-with":`XMLHttpRequest`},signal:o.signal})}catch(e){throw new(e instanceof DOMException&&e.name===`AbortError`?xn:bn)({cause:e,method:n,url:u})}if(!d.ok)switch(d.status){case 400:{let e,t=await d.text();try{e=await JSON.parse(t)}catch{e=t}throw new Sn(e)}case 401:throw location.pathname!==Ae(`/(auth)/login`)&&location.pathname!==Ae(`/(auth)/logout`)&&(location.href=ng()),new I;case 403:throw new En({method:n,url:u});case 427:throw new Dn({method:n,url:u});case 503:throw og(),new rg({method:n,url:u});default:throw new Tn({code:d.status,method:n,url:u})}return d}async function lg(e){switch(e.headers.get(`Api-Response-Version`)){case`2023-05-10`:{let t=await e.json();if(!t.success)throw new L(t.errors);if(t.warnings&&Object.keys(t.warnings).length)throw new wn(t.data,t.warnings);return t.data}default:var t;return(t=e.headers.get(`Content-Type`))!=null&&t.includes(`application/json`)?e.json():e.text()}}async function ug(e,t){try{await cg({method:`DELETE`,uri:t,user_id:e})}catch(e){if(e instanceof Tn&&e.code===404)return;throw e}}async function dg(e,t){return lg(await cg({method:`GET`,uri:t,user_id:e}))}function fg(e,t,n){return cg({data:n,json:!0,method:`PATCH`,uri:t,user_id:e})}async function pg(e,t,n,r){return lg(await cg({data:n,json:!0,method:`POST`,timeout:r==null?void 0:r.timeout,uri:t,user_id:e}))}function mg(e,t,n){return cg({data:n,json:!0,method:`PUT`,uri:t,user_id:e})}async function hg(e,t,n){let r=await On(()=>pg(null,e,t,n));if(r.data){let e=r.data.user;tg(e.id),await Ig(e)}return r}async function gg(e,t,n){return lg(await cg({data:n,method:`POST`,uri:t,user_id:e}))}function _g(e){return!!e&&!e.some(e=>e===void 0)}function vg(e){return new Promise((t,n)=>{let r=De(()=>{Oe(()=>{try{let n=e();n!==void 0&&(t(n),r())}catch(e){n(e),r()}})})})}function yg(e){return _g(e)?e:void 0}var bg=new Yt;async function xg(e){(await vg(()=>Ng(e))).initial_signup_complete&&bg.set(e,!0)}function Sg(e){return!!bg.get(e)}function Cg(e){bg.delete(e)}var wg=18e5;function Tg(e){let t=e.match(/\/([^/]+?)\/$/);if((t==null?void 0:t.length)!==2)throw Error(`Invalid ResourceURI`);let n=t[1],r=parseInt(n,10);return r.toString()===n?r:n}function Eg(e){return typeof e==`string`&&e.startsWith(`/api/v1`)}var Dg=class extends Error{constructor(e){super(`NotFoundError: ${e}`),this.name=`NotFoundError`}};function Og(e,t,n){let r=`/api/v1/${e}/`,i=(n==null?void 0:n.onChange)??(()=>{}),a=_n({key(e){return`${r}::${e}`},fetcher(e,t){var i;return(n==null||(i=n.fetchAll)==null?void 0:i.call(n,t,r))??dg(t,r)},maxAge:wg,name:`${e}::${t}`}),o=_n({key(e){return e},async fetcher(e,t){return dg(null,t)},maxAge:wg,name:`${e}::${t}`});function s(e){return a.get(e??Wh())}function c(e){return a.fetch(e??Wh())}function l(e,t){if(!t)return;let n=Eg(t)?t:`${r}${t}/`,i=s(e);return(i==null?void 0:i.find(e=>e.resource_uri===n))||o.get(n)}async function u(e,t){let n=Eg(t)?t:`${r}${t}/`,i=await c(e);return(i==null?void 0:i.find(e=>e.resource_uri===n))||o.fetch(n)}function d(e){return a.refresh(e??Wh())}async function f(t,n,r){t??=Wh(),await a.update(t,t=>{let i=t.findIndex(e=>e.resource_uri===n);if(i===-1)throw new Dg(e);return t[i]=r(t[i]),t})}async function p(e,t,n){if(!Eg(t))await f(e,t.resource_uri,()=>t);else if(n)await f(e,t,n);else throw TypeError()}async function m(e,t,n){if(e??=Wh(),Eg(t))await f(e,t,e=>({...e,...n})),await fg(e,t,n);else{let n=t;await f(e,n.resource_uri,()=>n),await mg(e,n.resource_uri,n)}await i(e)}return{async create(e,t){e??=Wh();let n;return await a.update(e,async i=>(n=typeof t==`function`?await t():await pg(e,r,t),[...i,n])),await i(e),n},async deleteOne(e,t,n){e??=Wh();let r=Eg(t)?t:t.resource_uri;await a.update(e,e=>e.filter(e=>e.resource_uri!==r)),n?await n():await ug(e,r),await i(e)},fetchAll:c,fetchOne:u,getAll:s,getOne:l,invalidate(){a.clear(),o.clear()},onChange:i,async refresh(e,t){return await d(e),u(e,t)},refreshAll:d,update:m,updateCache:p,updateCollection:a.update}}async function kg(){let e=`/api/v1/userv2/?HTTP_BACKEND_VERSION=16`,t=await fetch(e);if(t.ok){let e=await lg(t);if(!e)throw new I;return e}if(t.status!==401){if(t.status===503)og();else throw new Tn({code:t.status,method:`GET`,url:e})}}async function Ag(){let e=await kg();return e?e.is_manager?[e,...await dg(e.id,`/account-management/get-clients/?type=active`)]:e.is_linked?[e,...await dg(e.id,`/api/get-linked-accounts/?type=active`)]:[e]:[]}var jg=Og(`userv2`,`2024-12-04`,{fetchAll:Ag,onChange(e){je(`user:${e}`)}});function Mg(e){return jg.fetchOne(null,e)}function Ng(e){return jg.getOne(null,e)}var Pg=jg.refresh.bind(void 0,null);async function Fg(e,t){return t.use_net_carbs&&await xg(Tg(e)),jg.update(null,e,t)}function Ig(e,t){if(Eg(e)){if(!t)throw TypeError();return jg.updateCache(null,e,t)}return jg.updateCache(null,e)}function Lg(e){return(Xh()?`${e.first_name} ${e.last_name}`.trim():``)||e.username||e.email}async function Rg(e,t){let n=await gg(e.id,`/swoleprofile/add-profile-pic/`,{image:t});await Ig(e.resource_uri,e=>({...e,profile_pic_url:n}))}function zg(e,t){return e.split(/\s+/).every(e=>[t.first_name,t.last_name,t.username,t.email].join(` `).toLowerCase().includes(e))}export{Oa as $,Je as $t,ag as A,Vn as At,ng as B,Cn as Bt,fg as C,er as Ct,mg as D,Zn as Dt,gg as E,Qn as Et,Jh as F,Mn as Ft,Vh as G,_n as Gt,eg as H,kn as Ht,Yh as I,jn as It,La as J,Ft as Jt,Hh as K,rn as Kt,Zh as L,Sn as Lt,Gh as M,Un as Mt,Kh as N,Ln as Nt,lg as O,Xn as Ot,qh as P,Fn as Pt,ka as Q,qe as Qt,Xh as R,En as Rt,dg as S,$n as St,hg as T,nr as Tt,tg as U,vn as Ut,$h as V,L as Vt,zh as W,yn as Wt,Ma as X,Ge as Xt,Fa as Y,We as Yt,ja as Z,Ke as Zt,Sg as _,mr as _t,Pg as a,ma as at,yg as b,ar as bt,Ig as c,aa as ct,Og as d,hr as dt,Le as en,Ta as et,wg as f,gr as ft,xg as g,br as gt,Cg as h,yr as ht,Ng as i,ga as it,Wh as j,Hn as jt,ig as k,Gn as kt,Rg as l,ra as lt,Eg as m,vr as mt,Ag as n,ba as nt,jg as o,na as ot,Tg as p,_r as pt,Rh as q,Yt as qt,Lg as r,xa as rt,Fg as s,oa as st,Mg as t,Re as tn,ya as tt,zg as u,ia as ut,_g as v,sr as vt,pg as w,tr as wt,ug as x,ir as xt,vg as y,or as yt,Qh as z,Tn as zt};
+//# sourceMappingURL=gotDHXHr.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/hnCv5UyG.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/hnCv5UyG.js
new file mode 100644
index 0000000000000000000000000000000000000000..9598f282f15b257d4396f85f5087682badc51a27
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/hnCv5UyG.js
@@ -0,0 +1,8 @@
+import{At as e,Bt as t,Ct as n,D as r,Ft as i,I as a,J as o,K as s,Lt as c,Ot as l,R as u,T as d,U as f,X as p,Y as m,cn as h,et as g,hn as _,kt as v,lt as y,mn as b,s as x,sn as S,tt as C}from"./BhSt9sSe.js";import{l as w}from"./C8UWmKFm.js";import{Kt as T,Nt as E,Ot as D,bt as O,i as k}from"./gotDHXHr.js";import"./xihTtKlq.js";import{n as A}from"./CyviYcci.js";import{t as j}from"./Dw-YYMcZ.js";import{t as M}from"./BpQEveid.js";import{t as N}from"./DzVcsD2j.js";import{c as P,i as F,n as I,r as L,t as R}from"./DCOeEgRm.js";import{t as z}from"./C56eaDX-.js";import{t as B}from"./B9fg6oGg2.js";import{n as V}from"./B1cT_TaC2.js";import{t as H}from"./C2as7BOF.js";import{t as U}from"./BtqPi__O.js";import{O as W,Q as G,j as K}from"./Cer-cfCG.js";import{n as q}from"./z8IbqcTs.js";import{r as J}from"./DhZVZYPM2.js";import{i as Y,t as X}from"./Bjyj8E3p2.js";import{t as Z}from"./BFdFd2wI2.js";import{a as Q}from"./CAq_OQDd2.js";import{i as ee,t as te}from"./CM9HTt0N2.js";import{a as ne,i as re,r as ie}from"./YbPoYoGd2.js";import{n as ae,t as $}from"./B6U_NVjb.js";import{r as oe}from"./CUlQONZr2.js";import{o as se,t as ce}from"./D9lzHozn.js";var le=`
+
+
+
+
+
+`,ue=p(` `),de=p(` `,1),fe=p(` Targets Met`,1),pe=p(` `,1),me=p(` `,1),he=p(` `,1),ge=p(`
`),_e=p(`Some targets are not being met
`),ve=p(` `,1),ye=p(` `),be=p(` `,1);function xe(r,a){h(a,!0);let d=r=>{var i=m(),c=v(i),d=e=>{E(e,{})},p=t=>{var r=de(),i=v(r),a=e=>{var t=ue();u(t,()=>re,!0),_(t),o(e,t)},c=e=>{Z(e,{inline:!0,get nutrition(){return y(P)}})};f(i,e=>{y(L)?e(a):e(c,-1)});var l=e(i);n(e=>s(l,` ${e??``} Calories`),[()=>B(y(P).calories)]),o(t,r)},h=e=>{var t=fe(),n=v(t);u(n,()=>O),b(),o(e,t)},g=t=>{var r=pe(),i=v(r),c=l(i,!0);_(i);var u=e(i);n(e=>{s(c,e),s(u,` / ${a.target.calories??``} Calories`)},[()=>B(y(P).calories)]),o(t,r)},x=r=>{let i=t(()=>y(L)),c=t(()=>y(P)[y(i)]{s(m,e),s(h,` / ${y(c)??``}g`),s(g,` ${q[y(i)].display_name??``}`)},[()=>B(y(P)[y(i)])]),o(r,u)},S=r=>{let i=t(()=>q[y(L)]);var c=he(),u=v(c),d=l(u),f=l(d,!0);_(d);var p=e(d);_(u);var m=e(u);n(e=>{s(f,e),s(p,` / ${a.target[y(L)]??``}${y(i).units??``}`),s(m,` ${y(i).display_name??``}`)},[()=>B(y(P)[y(L)])]),o(r,c)};f(c,e=>{y(P)?F.target===`DETAILED`?e(p,1):y(L)?y(L)===`calories`?e(g,3):y(L)===`carbs`||y(L)===`fats`||y(L)===`proteins`?e(x,4):e(S,-1):e(h,2):e(d)}),o(r,i)},p=new T(`(pointer:fine)`),g=D(),w=t(()=>V(k(g))),A=t(()=>{var e;return a.meal_uri?[a.meal_uri]:((e=a.diet)==null?void 0:e.meals)??[]}),j=t(()=>V(ie(y(A)))),M=t(()=>F.page===`TRACK`),N=t(()=>{var e;return y(M)?(e=y(j))==null?void 0:e.filter(e=>e.eaten):y(j)}),P=t(()=>V(W(y(N)))),I=t(()=>{var e;return ne(a.target,y(P),(e=y(w))==null?void 0:e.use_net_carbs)}),L=t(()=>{var e;return(e=K(y(I)).find(([e,t])=>t))==null?void 0:e[0]}),R=c(!1);var z=m(),U=v(z),G=e=>{var t=ge(),n=l(t);d(n),_(t),o(e,t)},Q=t=>{var n=be(),r=v(n);X(r,{tooltip:t=>{var n=m(),r=v(n),i=t=>{var n=ve(),r=v(n);Y(r,x(()=>y(P)));var i=e(r,2),s=e=>{H(e,{children:(e,t)=>{var n=_e();o(e,n)},$$slots:{default:!0}})};f(i,e=>{y(L)&&e(s)});var c=e(i,2),u=e(l(c));ee(u,{get stats(){return y(P)},get target(){return a.target},get warnings(){return y(I)}}),_(c),o(t,n)};f(r,e=>{a.target&&y(P)&&e(i)}),o(t,n)},children:(e,t)=>{var n=ye(),r=l(n);d(r),_(n),C(`click`,n,()=>i(R,!0)),o(e,n)},$$slots:{tooltip:!0,default:!0}});var s=e(r,2),c=e=>{te(e,{get food_objects(){return y(N)},get show(){return y(R)},set show(e){i(R,e,!0)}})};f(s,e=>{y(R)&&e(c)}),o(t,n)};f(U,e=>{p.current?e(Q,-1):e(G)}),o(r,z),S()}g([`click`]);function Se(){return A.state.focus_day??U.today()}function Ce(e){w(``,{...A.state,focus_day:e})}var we=p(` `),Te=p(``),Ee=p(`
`),De=p(` `,1);function Oe(u,p){h(p,!0);let g=c(!1),b=D(),x=t(()=>V(Q(b,p.diet.nutrition_profile))),C=t(()=>F.page===`TRACK`||oe());async function w(){y(C)?await se({type:`NUTRITION`,diet_uri:p.diet.resource_uri,title:p.title}):(ce()&&await se(null),Ce(p.day))}var T=De(),E=v(T),O=l(E);let k;var A=l(O);let B;var H=l(A),U=e=>{var t=m(),n=v(t);a(n,()=>p.header),o(e,t)},W=e=>{var t=we(),r=l(t,!0);_(t),n(()=>s(r,p.title)),o(e,t)};f(H,e=>{p.header?e(U):e(W,-1)}),_(A);var K=e(A,2),q=e=>{xe(e,{get diet(){return p.diet},get target(){return y(x)}})};f(K,e=>{y(x)&&e(q)}),_(O);var J=e(O,2),Y=t=>{var n=Ee(),r=l(n);ae(r,{children:(t,n)=>{var r=Te(),a=l(r);$(a,{get icon(){return N},label:`Generate`,get onclick(){return p.generateDay}});var s=e(a,2);$(s,{get icon(){return z},label:`Nutrition`,onclick:w});var c=e(s,2);$(c,{get icon(){return P},label:`Notes`,onclick:()=>i(g,!0)});var u=e(c,2);$(u,{get icon(){return j},label:`Copy`,get onclick(){return p.copyDay},start_group:!0});var d=e(u,2);$(d,{get icon(){return le},label:`Insert`,get onclick(){return p.insertDay}});var m=e(d,2),h=e=>{$(e,{get icon(){return M},label:`Clear`,get onclick(){return p.clearDay}})};f(m,e=>{p.clearDay&&e(h)});var v=e(m,2),y=e=>{$(e,{get icon(){return M},label:`Delete`,get onclick(){return p.deleteDay}})};f(v,e=>{p.deleteDay&&e(y)}),_(r),o(t,r)},$$slots:{default:!0}}),_(n),o(t,n)},X=t(()=>R(`REGENERATE_DAY`));f(J,e=>{y(X)&&e(Y)}),_(E),r(E,()=>L(`View Nutrition`,w,p.active));var Z=e(E,2);{let e=t(()=>p.diet.note??``);I(Z,{save:e=>G(p.diet.resource_uri,{note:e}),get title(){return p.title},get value(){return y(e)},get open(){return y(g)},set open(e){i(g,e,!0)}})}n(e=>{k=d(O,1,`svelte-1ib2wd7`,null,k,{"row-title":F.layout===`ROW`}),B=d(A,1,`svelte-1ib2wd7`,null,B,e)},[()=>({"focus-date":p.day===Se()})]),o(u,T),S()}export{le as i,Se as n,Ce as r,Oe as t};
+//# sourceMappingURL=hnCv5UyG.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/iYgU-sGz.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/iYgU-sGz.js
new file mode 100644
index 0000000000000000000000000000000000000000..75bd65c27fda7fd0ca2ac16f93d584bd8e4fc4f6
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/iYgU-sGz.js
@@ -0,0 +1,6 @@
+import{$ as e,At as t,B as n,Bt as r,Ct as i,E as a,Ft as o,J as s,K as c,Lt as l,M as u,Ot as d,R as f,T as p,U as m,V as h,X as g,Y as _,_ as v,a as y,cn as b,et as x,f as S,hn as C,kt as w,lt as T,mn as E,sn as D,tt as ee,v as O,yn as k,z as A}from"./BhSt9sSe.js";import{Ot as te,_t as j,at as M,bt as ne,it as N,xt as P}from"./gotDHXHr.js";import"./xihTtKlq.js";import{t as re}from"./BpQEveid.js";import{p as F}from"./CxRGiBH-2.js";import{t as ie}from"./CWh68Btn2.js";import{t as I}from"./D981sS0w2.js";import{n as L,r as R,t as z}from"./Bn5_FCYL2.js";import{t as B}from"./DvtZBUMh2.js";import{i as V}from"./D2IZisAi2.js";import{t as H}from"./CLTyeLEa.js";import{n as U}from"./z8IbqcTs.js";import{c as W,l as G,o as K,s as q}from"./Dr0HfOwU.js";import{t as J}from"./BMDUh7bc2.js";import{t as Y}from"./DG2gT7rZ2.js";var ae=`
+
+
+`;function oe(e){return e?W:K}function se(e,t,n,r){let i=te();return J(()=>q(i,e,{include_recipes:!!r.include_recipes,filters:ie(n()),meal_uri:r.meal_uri,query:t()}))}var ce=new Map([[`basic_foods`,`Foods`],[`custom_foods`,`Your Custom Foods`],[`branded_foods`,`Branded Foods`],[`restaurant_foods`,`Restaurant Foods`]]),le=new Map([[`basic_foods`,`Foods`],[`recipes`,`Recipes`],[`custom_foods`,`Your Custom Foods`],[`custom_recipes`,`Your Custom Recipes`],[`branded_foods`,`Branded Foods`],[`restaurant_foods`,`Restaurant Foods`]]),ue=g(` `);function de(e,a){b(a,!0);let o=y(a,`category`,15),l=r(()=>a.include_recipes?le:ce);function u(e){let t=e.currentTarget,n=t.checked,r=t.value;o(n?[r,...o()]:o().filter(e=>e!==r))}var f=_(),p=w(f);A(p,17,()=>T(l).entries(),n,(e,n)=>{var a=r(()=>k(T(n),2));let l=()=>T(a)[0],f=()=>T(a)[1];var p=ue(),m=d(p),h=d(m);{let e=r(()=>o().includes(l()));F(h,{get checked(){return T(e)},onclick:u,get value(){return l()}})}var g=t(h);C(m),C(p),i(()=>c(g,` ${f()??``}`)),s(e,p)}),s(e,f),D()}var fe=g(`By default, food will be excluded because it is filtered out by your
+ configured or it doesn't fit your
`),pe=g(` Filter Excluded Foods
`,1);function me(n,r){b(r,!0);let i=y(r,`apply_exclusions`,15),a=l(!1);var c=pe(),f=w(c),p=d(f),h=d(p);F(h,{get checked(){return i()},set checked(e){i(e)}}),E(),C(p);var g=t(p,2);N(g,{get icon(){return B},label:`Help`,onclick:()=>o(a,!T(a))}),C(f);var _=t(f,2),v=n=>{var r=fe(),i=d(r),a=t(d(i));P(a,{href:`/settings/exclusions`,children:(t,n)=>{E();var r=e(`Food Exclusions`);s(t,r)},$$slots:{default:!0}});var o=t(a,2);P(o,{href:`/settings/diet`,children:(t,n)=>{E();var r=e(`Primary Diet`);s(t,r)},$$slots:{default:!0}}),C(i),C(r),u(7,r,()=>V),s(n,r)};m(_,e=>{T(a)&&e(v)}),s(n,c),D()}var X={calories:{color:`--m3-primary`,max:2e3},carbs:{color:`--carbs-color`,max:500},cholesterol:{max:1e3},fats:{color:`--fats-color`,max:250},fiber:{max:100},proteins:{color:`--proteins-color`,max:500},sodium:{max:2e3},sugar:{max:100}},he=g(`
`),ge=g(` `),_e=g(``),ve=g(` `,1);function ye(n,a){b(a,!0);let o=y(a,`filters`,15),l=r(()=>Object.keys(X).filter(e=>!o().nutrition.some(t=>t.field===e)));function f(e){o(o().nutrition=[...o().nutrition,{field:e,min:0,max:X[e].max}],!0)}function p(e){o(o().nutrition=o().nutrition.filter(t=>t.field!==e),!0)}var g=ve(),_=w(g);A(_,19,()=>o().nutrition,e=>e.field,(e,n,i)=>{let a=r(()=>X[T(n).field]),c=r(()=>`color`in T(a)?T(a).color:`--m3-primary`);var l=he(),f=d(l);h(f,()=>({"--handle-color":`var(${T(c)??``})`,"--selected-color":`var(${T(c)??``})`})),Y(f.lastChild,{get nutrient(){return T(n).field},get range_max(){return T(a).max},get min(){return o().nutrition[T(i)].min},set min(e){o(o().nutrition[T(i)].min=e,!0)},get max(){return o().nutrition[T(i)].max},set max(e){o(o().nutrition[T(i)].max=e,!0)}}),C(f);var m=t(f,2);N(m,{get icon(){return re},label:`Remove Filter`,onclick:()=>p(T(n).field)}),C(l),u(3,l,()=>V),s(e,l)});var v=t(_,2),x=t=>{var n=_e();A(n,20,()=>T(l),e=>e,(t,n)=>{var r=ge(),a=d(r);M(a,{onclick:()=>f(n),children:(t,r)=>{E();var a=e();i(()=>c(a,U[n].display_name)),s(t,a)},$$slots:{default:!0}}),C(r),s(t,r)}),C(n),s(t,n)};m(v,e=>{T(l).length&&e(x)}),s(n,g),D()}var be=g(` `),xe=g(``);function Z(e,a){b(a,!0);let o=[],l=y(a,`value`,15);l();var u=xe();A(u,21,()=>a.options,n,(e,n)=>{var u=r(()=>k(T(n),2));let f=()=>T(u)[0],m=()=>T(u)[1];var h=be(),g=d(h),_=d(g);v(_);var y,b=t(_,2),x=d(b,!0);C(b),C(g),C(h),i(()=>{O(_,`name`,a.name),y!==(y=m())&&(_.value=(_.__value=m())??``),p(b,1,`label ${j??``}`,`svelte-2m133r`),c(x,f())}),S(o,[],_,()=>(m(),l()),l),s(e,h)}),C(u),s(e,u),D()}function Q(e,t){b(t,!0);let n=y(t,`filters`,15),r=[[`High Protein`,`high_protein`],[`Low Carb`,`low_carb`],[`Low Fat`,`low_fat`],[`High Fiber`,`high_fiber`],[`Low Sodium`,`low_sodium`]];Z(e,{get options(){return r},name:`filter-focus`,get value(){return n().focus},set value(e){n(n().focus=e,!0)}}),D()}var Se=g(` `),Ce=g(``);function we(n,r){var o=Ce();A(o,21,()=>r.options,({active:e,icon:t,label:n,onclick:r})=>n,(n,r)=>{let o=()=>T(r).active,l=()=>T(r).icon,u=()=>T(r).label,h=()=>T(r).onclick;var g=Se(),v=d(g),y=d(v);f(y,()=>ne,!0),C(y);var b=t(y,2),x=e=>{var t=_(),n=w(t);f(n,l),s(e,t)},S=t=>{var n=e();i(()=>c(n,u())),s(t,n)};m(b,e=>{l()?e(x):e(S,-1)}),C(v),C(g),i(()=>{O(v,`aria-label`,u()),O(v,`aria-pressed`,o()),p(v,1,a(j),`svelte-59zdvl`)}),ee(`click`,v,function(...e){var t;(t=h())==null||t.apply(this,e)}),s(n,g)}),C(o),s(n,o)}x([`click`]);var Te=g(`
`,1);function Ee(e,n){b(n,!0);let i=y(n,`filters`,15),a=r(()=>[`main`,`side`].map(e=>({label:`${I(e)} Dish`,onclick:()=>{i().dish_type===e?i(i().dish_type=null,!0):i(i().dish_type=e,!0)},active:i().dish_type===e})));var o=Te(),c=w(o);we(d(c),{get options(){return T(a)}}),C(c);var l=t(c,2);{let e=r(()=>G.map(e=>[I(e),e]));Z(l,{name:`filter-meal-type`,get options(){return T(e)},get value(){return i().preferred_food_type},set value(e){i(i().preferred_food_type=e,!0)}})}s(e,o),D()}var $=g(` `,1),De=g(``),Oe=g(` `,1);function ke(n,r){b(r,!0);let i=y(r,`filters`,15);H(n,{children:(n,a)=>{var o=Oe(),c=w(o);me(c,{get apply_exclusions(){return i().apply_exclusions},set apply_exclusions(e){i(i().apply_exclusions=e,!0)}});var l=t(c,2);z(l,{open:!0,children:(n,r)=>{var a=$(),o=w(a),c=d(o);R(c,{children:(t,n)=>{E();var r=e(`Nutrition Focus`);s(t,r)},$$slots:{default:!0}}),C(o);var l=t(o,2);L(l,{children:(e,t)=>{Q(e,{get filters(){return i()},set filters(e){i(e)}})},$$slots:{default:!0}}),s(n,a)},$$slots:{default:!0}});var u=t(l,2);z(u,{open:!0,children:(n,r)=>{var a=$(),o=w(a),c=d(o);R(c,{children:(t,n)=>{E();var r=e(`Meal Type`);s(t,r)},$$slots:{default:!0}}),C(o);var l=t(o,2);L(l,{children:(e,t)=>{Ee(e,{get filters(){return i()},set filters(e){i(e)}})},$$slots:{default:!0}}),s(n,a)},$$slots:{default:!0}});var f=t(u,2);z(f,{open:!0,children:(n,a)=>{var o=$(),c=w(o),l=d(c);R(l,{children:(t,n)=>{E();var r=e(`Categories`);s(t,r)},$$slots:{default:!0}}),C(c);var u=t(c,2);L(u,{children:(e,t)=>{var n=De();de(d(n),{get include_recipes(){return r.include_recipes},get category(){return i().categories},set category(e){i(i().categories=e,!0)}}),C(n),s(e,n)},$$slots:{default:!0}}),s(n,o)},$$slots:{default:!0}});var p=t(f,2);z(p,{open:!0,children:(n,r)=>{var a=$(),o=w(a),c=d(o);R(c,{children:(t,n)=>{E();var r=e(`Nutrition per Serving`);s(t,r)},$$slots:{default:!0}}),C(o);var l=t(o,2);L(l,{children:(e,t)=>{ye(e,{get filters(){return i()},set filters(e){i(e)}})},$$slots:{default:!0}}),s(n,a)},$$slots:{default:!0}}),s(n,o)},$$slots:{default:!0}}),D()}export{ae as i,se as n,oe as r,ke as t};
+//# sourceMappingURL=iYgU-sGz.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/jEwY_NrO.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/jEwY_NrO.js
new file mode 100644
index 0000000000000000000000000000000000000000..9cf0b040533a7e56d6b9e9dac81849a5c7e63de7
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/jEwY_NrO.js
@@ -0,0 +1,19 @@
+var e=`\r
+ \r
+ \r
+ \r
+ \r
+`;export{e as t};
+//# sourceMappingURL=jEwY_NrO.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/k84k9Qp02.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/k84k9Qp02.js
new file mode 100644
index 0000000000000000000000000000000000000000..d21a6714f57494b53ac1b8ab369ab62ca2472c07
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/k84k9Qp02.js
@@ -0,0 +1 @@
+import"./BZQKY5H72.js";
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/lJbb5zTU.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/lJbb5zTU.js
new file mode 100644
index 0000000000000000000000000000000000000000..05a61a1ac77b38cad68217a63b196bc5961ed28a
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/lJbb5zTU.js
@@ -0,0 +1,2 @@
+import{p as e}from"./gotDHXHr.js";function t(t){return e(t)*35%360}export{t};
+//# sourceMappingURL=lJbb5zTU.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/mRJ-UFmt.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/mRJ-UFmt.js
new file mode 100644
index 0000000000000000000000000000000000000000..b9970996e0828836f70ab633ed0543219f100795
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/mRJ-UFmt.js
@@ -0,0 +1,2 @@
+import{Ct as e,Tt as t}from"./gotDHXHr.js";function n(n,r){let i=t(n,r);e(i)}export{n as t};
+//# sourceMappingURL=mRJ-UFmt.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/mqmQrvC72.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/mqmQrvC72.js
new file mode 100644
index 0000000000000000000000000000000000000000..774d4af7d3d5589e51711684cce9a3c1de26b9a5
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/mqmQrvC72.js
@@ -0,0 +1,2 @@
+import{Bt as e,Sn as t,lt as n,pt as r}from"./BhSt9sSe.js";import{n as i,r as a}from"./C8UWmKFm.js";import{It as o}from"./gotDHXHr.js";import{n as s}from"./CyviYcci.js";var c=t(o(),1),l=new Map;function u(){return{nav_id:Date.now()}}function d(){return s.state.nav_id??0}function f(e){let t=d();r().then(()=>{requestAnimationFrame(()=>{e.scrollTop=l.get(t)??0})}),i(()=>{l.set(t,e.scrollTop)})}var p=e(()=>{let e=s.url.searchParams.get(`pane`);if(!e)return null;try{return _(e)}catch(e){return c.default.notify(e),null}});function m(e,t,n){return a(e,{keepFocus:!0,noScroll:!0,replaceState:t,state:n})}function h(){function e(){return n(p)}function t(){return s.state.parent?history.back():a(null)}function i(e){return m(c(e),!0,s.state)}function a(t){return e()===null&&t!==null?o(t):m(c(t),!1,{...s.state,...u(),parent:void 0,child:void 0,previous_stale:!0})}async function o(e){let t=location.pathname+location.search,n=c(e);return await m(``,!0,{...s.state,child:n}),await r(),m(n,!1,{...s.state,...u(),parent:t,child:void 0,previous_stale:!0})}function c(e,t=s.url.toString()){let n=new URL(t,s.url);if(e){let t=g(e);n.searchParams.set(`pane`,t)}else n.searchParams.delete(`pane`);return n.toString()}return{getPane:e,getPaneURL:c,goBack:t,replacePane:i,showChildPane:o,showPane:a}}function g(e){let t=JSON.stringify(e),n=new TextEncoder().encode(t),r=String.fromCharCode(...n);return btoa(r).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}function _(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`),n=atob(t),r=Uint8Array.from(n,e=>e.charCodeAt(0));return JSON.parse(new TextDecoder().decode(r))}export{d as n,f as r,h as t};
+//# sourceMappingURL=mqmQrvC72.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/nvigbOhh2.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/nvigbOhh2.js
new file mode 100644
index 0000000000000000000000000000000000000000..00a36309c23c8a64941b75c56cabb0b15165b76f
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/nvigbOhh2.js
@@ -0,0 +1,11 @@
+import{$ as e,At as t,B as n,Bt as r,Ct as i,E as a,Ft as o,I as s,J as c,K as l,Lt as u,M as d,Ot as f,R as p,T as m,U as h,W as g,X as _,Y as v,a as y,cn as b,et as x,g as S,hn as C,it as w,jt as T,k as E,kt as D,lt as O,mn as k,s as A,sn as j,tt as M,v as ee,wt as N,yn as te,z as P}from"./BhSt9sSe.js";import{r as ne}from"./C8UWmKFm.js";import{Dt as F,F as re,Ht as ie,Jt as ae,M as I,Ot as L,Pt as oe,R as se,S as ce,Tt as le,Z as ue,_ as de,_t as fe,at as pe,h as me,p as he,q as ge,tt as _e,vt as ve,w as ye,xt as be,y as xe,yt as Se,z as Ce}from"./gotDHXHr.js";import"./xihTtKlq.js";import"./Bx99Pxiq.js";import{i as we,n as Te,r as Ee}from"./CNh6es_b.js";import{t as De}from"./CbUYSPq9.js";import{t as Oe}from"./Dw-YYMcZ.js";import{t as ke}from"./BpQEveid.js";import{t as Ae}from"./D2JSHRnj.js";import{t as R}from"./DzVcsD2j.js";import{i as je,t as Me}from"./hnCv5UyG.js";import{t as Ne}from"./BKPDtw98.js";import{n as Pe,t as z}from"./DEgMoMXi.js";import{t as Fe}from"./DJdf7xnK.js";import{t as B}from"./XKJvcd3t2.js";import{a as Ie,n as Le,p as Re}from"./CxRGiBH-2.js";import{t as ze}from"./BTw3_Nuu2.js";import{n as V}from"./B1cT_TaC2.js";import{i as Be}from"./D2IZisAi2.js";import{t as Ve}from"./CPGReOo72.js";import{t as He}from"./CsIAEk3y2.js";import{t as Ue}from"./C2as7BOF.js";import{r as We}from"./p3gDh4vM.js";import{n as H}from"./C2PzE5jE.js";import{a as U,c as Ge,n as Ke,r as qe,t as W}from"./BtqPi__O.js";import{E as Je,G as Ye,H as Xe,J as Ze,K as Qe,S as $e,U as et,W as tt,X as nt,Z as rt,et as it,q as at}from"./Cer-cfCG.js";import{a as ot,n as st}from"./DRq5eja-.js";import{t as G}from"./DDOpnL3q2.js";import{t as ct}from"./CKHRnZFH2.js";import{t as lt}from"./Da2DpX_H2.js";import{t as ut}from"./BC4LLrwJ.js";import{t as dt}from"./BN66IXsU.js";import{t as K}from"./D7mLfM7M.js";import{t as ft}from"./CMf_mwGa.js";import{n as pt,t as q}from"./B6U_NVjb.js";import{n as mt}from"./B9LAw6kI.js";import{i as ht,n as gt}from"./B6Qcxm1X.js";import{o as _t}from"./CYGTaWAz2.js";import{n as vt}from"./CUlQONZr2.js";import{a as yt,i as bt,o as J,r as xt,t as St}from"./D9lzHozn.js";import{t as Y}from"./B3u-DD2v.js";import{t as Ct}from"./DLWDFuIf.js";import{t as wt}from"./B4UD6C5h.js";import{r as X,t as Tt}from"./TrjAWC3u.js";import{t as Et}from"./DC9OKBum2.js";import{t as Dt}from"./CVTvHqEK2.js";var Ot=` `;function kt(e){let t=W.today();return e===t?`Today`:e===Ke(t,-1)?`Yesterday`:e===Ke(t,1)?`Tomorrow`:qe(e)}var At=_(` `,1);function jt(e,n){b(n,!0);let a=e=>{var r=At(),a=D(r),o=f(a,!0);C(a);var u=t(a,2),d=f(u,!0);C(u),i(e=>{ee(a,`datetime`,n.date),l(o,e),l(d,O(s))},[()=>U(n.date)]),c(e,r)},o=L(),s=r(()=>kt(n.date));function u(){K({icon:ke,action:`Clear`,title:`Clear Day`,content:`All meals for ${U(n.date)} will be cleared.`,async onconfirm(){await et(o,n.calendar_day)}})}function d(){K({icon:R,action:`Generate`,title:`Generate Day`,content:`All meals for ${U(n.date)} will be replaced with a new plan.`,onconfirm:n.generate})}function p(){K({icon:je,action:`Insert`,title:`Insert Day`,content:`All meals for ${U(n.date)} and future days will be moved forward by one day.`,async onconfirm(){await Ze(o,n.calendar_day)}})}{let t=r(()=>n.show_date?a:void 0);Me(e,{get diet(){return n.diet},get title(){return O(s)},active:()=>{let e=St();return(e==null?void 0:e.type)===`NUTRITION`&&e.diet_uri===n.diet.resource_uri||(e==null?void 0:e.type)===`COPY_DAY`&&(e==null?void 0:e.date)===n.date},clearDay:u,copyDay:()=>J({type:`COPY_DAY`,date:n.date}),get day(){return n.date},generateDay:d,insertDay:p,get header(){return O(t)}})}j()}var Mt=_(` `,1),Nt=_(``),Pt=_(`With a premium account, you can print, download, or email or your meal
+ plan.
`,1),Ft=_(`With a premium account, you can save meal plans to reuse later.
`,1),It=_(`With a premium account, you can load previously saved meal plans.
`,1),Lt=_(` `,1);function Rt(e,n){b(n,!0);let i=L(),a=u(!1),s=u(!1),l=u(!1);function d(){if(!n.start||!n.end)throw TypeError();let e=W.today(),t=n.start<=e&&e<=n.end?e:n.start,r=Ge(t,n.end);K({action:`Clear`,content:`${ze(r.length,`day`)} will be cleared.`,icon:ke,title:`Clear Week`,async onconfirm(){r.length&&(await ye(i,`/api/clear-calendar-range/`,{start_date:t,end_date:n.end}),await Xe(i,r))}})}var p=Lt(),m=D(p);pt(m,{children:(e,i)=>{var u=Nt(),p=f(u),m=e=>{q(e,{href:`/settings/meals`,get icon(){return Ae},label:`Meal settings…`})},g=r(()=>I(H.EDIT_SETTINGS));h(p,e=>{O(g)&&e(m)});var _=t(p,2),v=e=>{q(e,{get icon(){return ke},label:`Clear week`,onclick:d})},y=r(()=>I(H.EDIT_PLANNER)&&n.start&&n.end);h(_,e=>{O(y)&&e(v)});var b=t(_,2),x=e=>{{let t=r(()=>I(H.EDIT_SETTINGS));q(e,{get icon(){return Ne},label:`Email or print`,onclick:()=>J({type:`PRINT`}),get start_group(){return O(t)}})}},S=r(()=>F()),w=e=>{{let t=r(()=>I(H.EDIT_SETTINGS));q(e,{get icon(){return B},label:`Email or print`,onclick:()=>o(s,!0),get start_group(){return O(t)}})}};h(b,e=>{O(S)?e(x):e(w,-1)});var T=t(b,2),E=e=>{q(e,{get icon(){return De},label:`Copy to user`,onclick:()=>J({type:`COPY_TO_USER`})})},k=r(()=>re());h(T,e=>{O(k)&&e(E)});var A=t(T,2),j=e=>{var n=Mt(),i=D(n),s=e=>{q(e,{get icon(){return Ot},label:`Save meal plan`,onclick:()=>J({type:`SAVE_PLAN`})})},u=r(()=>F()),d=e=>{q(e,{get icon(){return B},label:`Save meal plan`,onclick:()=>o(l,!0)})};h(i,e=>{O(u)?e(s):e(d,-1)});var f=t(i,2),p=e=>{q(e,{get icon(){return Fe},label:`Load saved plan`,onclick:()=>J({type:`LOAD_PLAN`})})},m=r(()=>F()),g=e=>{q(e,{get icon(){return B},label:`Load saved plan`,onclick:()=>o(a,!0)})};h(f,e=>{O(m)?e(p):e(g,-1)}),c(e,n)},M=r(()=>I(H.SAVED_PLANS));h(A,e=>{O(M)&&e(j)}),C(u),c(e,u)},$$slots:{default:!0}});var g=t(m,2),_=e=>{Ve(e,{action:null,title:`Print Meal Plan`,onclose:()=>o(s,!1),children:(e,n)=>{var r=Pt(),i=t(D(r),2);G(i,{align:`right`}),c(e,r)},$$slots:{default:!0}})};h(g,e=>{O(s)&&e(_)});var v=t(g,2),y=e=>{Ve(e,{action:null,title:`Save Meal Plan`,onclose:()=>o(l,!1),children:(e,n)=>{var r=Ft(),i=t(D(r),2);G(i,{align:`right`}),c(e,r)},$$slots:{default:!0}})};h(v,e=>{O(l)&&e(y)});var x=t(v,2),S=e=>{Ve(e,{action:null,title:`Load Meal Plan`,onclose:()=>o(a,!1),children:(e,n)=>{var r=It(),i=t(D(r),2);G(i,{align:`right`}),c(e,r)},$$slots:{default:!0}})};h(x,e=>{O(a)&&e(S)}),c(e,p),j()}var zt=_(`Tomorrow Planning ahead makes it easy to stick to any diet. Upgrade to get these
+ features:
Plan meals in advance Grocery lists ..and more! `);function Bt(e){var n=zt(),r=f(n),i=f(r),a=t(f(i),6);G(a,{align:`center`}),C(i);var o=t(i,2);S(o,()=>({alt:``,...ct}),void 0,void 0,void 0,`svelte-2i0ihy`),C(r),C(n),w(o),c(e,n)}var Vt={height:250,width:211,src:`/app/_app/immutable/assets/orange-sunbathe.Digm0oyU.avif`},Ht=_(` You've reached the planning horizon!
We support meal planning up to one year ahead.
`),Ut=_(` You've reached as far back as we go!
Meal history is available for the past 5 years.
`);function Wt(e,t){b(t,!0);let n=new Date().getFullYear(),r=W(new Date().setFullYear(n+1)),i=W(new Date().setFullYear(n-5));var a=v(),o=D(a),l=e=>{var t=Ht(),n=f(t);S(n,()=>({alt:``,...Vt}),void 0,void 0,void 0,`svelte-oupv84`),k(4),C(t),w(n),c(e,t)},u=e=>{var t=Ut(),n=f(t);S(n,()=>({alt:``,...Vt}),void 0,void 0,void 0,`svelte-oupv84`),k(4),C(t),w(n),c(e,t)},d=e=>{var n=v(),r=D(n);s(r,()=>t.children),c(e,n)};h(o,e=>{t.end>r?e(l):t.start `,1);function Kt(n,i){b(i,!0);let a=L(),o=r(()=>de(a));function s(){me(a)}function l(){K({action:`Regenerate`,content:`This will regenerate all meals planned for today and future dates.`,icon:R,async onconfirm(){var e;let t=W.today(),{data:n}=await ie(()=>ye(a,`/g/generate/week-clear-future-entries/`,{current_date:t}));for(let e of n.results)await nt(a,e.date,e);let r=((e=n.results.at(-1))==null?void 0:e.date)??t;await Ye(a,r),me(a)},title:`Regenerate Meal Plans`})}var u=v(),d=D(u),f=n=>{Et(n,{actions:n=>{var r=Gt(),i=D(r);pe(i,{get icon(){return R},onclick:l,style:`secondary`,children:(t,n)=>{k();var r=e(`Regenerate`);c(t,r)},$$slots:{default:!0}});var a=t(i,2);pe(a,{get icon(){return Se},onclick:s,style:`text`,children:(t,n)=>{k();var r=e(`Dismiss`);c(t,r)},$$slots:{default:!0}}),c(n,r)},children:(t,n)=>{k();var r=e(`You have made changes to your settings. Regenerate to apply these changes.`);c(t,r)},$$slots:{actions:!0,default:!0}})},p=r(()=>I(H.REGENERATE_WEEK)&&O(o));h(d,e=>{O(p)&&e(f)}),c(n,u),j()}var qt=_(`Copy To User `,1),Jt=_(` Copy To Selected Days `,1);function Yt(n,i){b(i,!0);let a=L(),s=r(()=>V(at(a,i.date))),l=u(T([])),d=L(),f=u(T(L()));async function p(){if(!O(s))throw TypeError();await Qe({from_user_id:d,to_user_id:O(f),dates:O(l),calendar_day:O(s)}),vt()&&xt()}var m=v(),g=D(m),_=n=>{{let i=r(()=>U(O(s).date));Y(n,{get title(){return`Copy ${O(i)??``}`},children:(n,i)=>{ue(n,{onSubmit:p,children:(n,i)=>{var a=Jt(),s=D(a),u=e=>{var n=qt(),r=t(D(n),2);Ct(r,{name:`User`,get user_id(){return O(f)},set user_id(e){o(f,e,!0)}}),c(e,n)},d=r(()=>re()||se());h(s,e=>{O(d)&&e(u)});var p=t(s,4);Ee(p,{get value(){return O(l)},set value(e){o(l,e,!0)}});var m=t(p,2);dt(m,{children:(t,n)=>{{let n=r(()=>!O(l).length);z(t,{get disabled(){return O(n)},get icon(){return Oe},children:(t,n)=>{k();var r=e(`Copy`);c(t,r)},$$slots:{default:!0}})}},$$slots:{default:!0}}),c(n,a)},$$slots:{default:!0}})},$$slots:{default:!0}})}};h(g,e=>{O(s)&&e(_)}),c(n,m),j()}var Xt=_(` `),Zt=_(` `),Qt=_(` `,1);function Z(e,o){b(o,!0);let s=y(o,`value`,15);var u=Qt(),d=D(u);P(d,21,()=>o.options.entries(),n,(e,t)=>{var n=r(()=>te(O(t),2));let o=()=>O(n)[0],u=()=>O(n)[1];var d=Xt(),p=f(d);let h;var g=f(p,!0);C(p),C(d),i(()=>{h=m(p,1,a(fe),`svelte-pzh87q`,h,{active:o()===s()}),l(g,u())}),M(`click`,p,()=>s(o())),c(e,d)}),C(d);var p=t(d,2);P(p,21,()=>o.options.entries(),n,(e,n)=>{var a=r(()=>te(O(n),2));let u=()=>O(a)[0],d=()=>O(a)[1];var p=Zt(),m=f(p),h=f(m);{let e=r(()=>u()===s());Ie(h,{get checked(){return O(e)},get name(){return o.name},onclick:()=>s(u())})}var g=t(h);C(m),C(p),i(()=>l(g,` ${d()??``}`)),c(e,p)}),C(p),c(e,u),j()}x([`click`]);var $t=new Map([[`none`,`None`],[`minimal`,`Minimal`],[`some`,`Some`]]),en=u(!0),Q=u(!1),$=u(!1),tn=u(`none`),nn=_(` Upgrade your account to regenerate entire weeks and manage
+ Groceries`,1),rn=_(`
`),an=_(` Reset Groceries
`),on=_(`Prioritize owned groceries? `,1),sn=_(`
Allow additional unowned groceries?
`),cn=_(`
What is your focus? Keep existing meals?
`,1);function ln(n,a){b(a,!0);let s=W.today(),u=L(),m=r(()=>V(gt(u))),g=new Map([[!1,`No`],[!0,`Yes`]]);async function _(){let e={overwrite_existing_diets:O(Q),use_pantry:!1};ge(`Regenerate Day`,e),await mn(ie(()=>$e(u,s,e)))}async function v(){let e=a.startF()?v:_);ue(n,{get onSubmit(){return O(a)},children:(n,a)=>{var s=cn(),u=D(s),_=f(u);C(u);var v=t(u,2),y=e=>{var t=rn(),n=f(t);be(n,{href:`/help/premium-features`,children:(e,t)=>{var n=nn(),r=D(n);p(r,()=>B),k(),c(e,n)},$$slots:{default:!0}}),C(t),c(e,t)},b=r(()=>!F()),x=e=>{var t=an(),n=f(t),r=f(n);Re(r,{name:`reset_groceries`,get checked(){return O(en)},set checked(e){o(en,e,!0)}}),k(),C(n),C(t),c(e,t)};h(v,e=>{O(b)?e(y):e(x,-1)});var S=t(v,4),w=e=>{var t=()=>O(m).generator_focus,n=e=>ht(O(m).resource_uri,{generator_focus:e});Z(e,{name:`generator_focus`,get options(){return mt},get value(){return t()},set value(e){n(e)}})};h(S,e=>{O(m)&&e(w)});var T=t(S,4);Z(T,{name:`existing_meals`,options:new Map([[!1,`Keep`],[!0,`Replace`]]),get value(){return O(Q)},set value(e){o(Q,e,!0)}});var E=t(T,2),A=e=>{var n=on();Z(t(D(n),2),{name:`use_owned_groceries`,get options(){return g},get value(){return O($)},set value(e){o($,e,!0)}}),c(e,n)},j=r(()=>Ce()&&F());h(E,e=>{O(j)&&e(A)});var M=t(E,2),ee=e=>{var n=sn();Z(t(f(n),2),{name:`owned_groceries_mode`,get options(){return $t},get value(){return O(tn)},set value(e){o(tn,e,!0)}}),C(n),d(3,n,()=>Be),c(e,n)};h(M,e=>{O($)&&e(ee)});var N=t(M,2),te=f(N);z(te,{get icon(){return R},full_width:!0,children:(t,n)=>{k();var r=e(`Generate`);c(t,r)},$$slots:{default:!0}}),C(N),i(e=>l(_,`Automatically fill ${e??``} with meals that match
+ your goals. Choose a focus to help steer the generator.`),[()=>F()?`your week`:`today`]),c(n,s)},$$slots:{default:!0}})}j()}var un={height:250,width:278,src:`/app/_app/immutable/assets/carrot-sleep.BLKbK3qm.avif`},dn={height:250,width:250,src:`/app/_app/immutable/assets/orange-cooking.gfEK-nOY.webp`},fn={height:250,width:249,src:`/app/_app/immutable/assets/orange-finished.DSYX2TDt.webp`},pn=new Map;async function mn(e){let t=Date.now(),n=Promise.all([e,ve(2e3)]).then(([e])=>e);pn.set(t,n),await yt({type:`GENERATE`,request_id:t})}var hn=_(` `),gn=_(` Past weeks cannot be generated
`),_n=_(`
`),vn=_(`
`),yn=_(` A new plan has been generated for you
`,1),bn=_(`
`,1),xn=_(` Generating your plan...
`,1);function Sn(a,o){b(o,!0);let s=r(()=>o.request_id?pn.get(o.request_id):void 0);N(()=>{o.request_id&&!O(s)&&bt(null)});let u=W.today();E(`1nzwjc2`,e=>{var t=v(),r=D(t);P(r,17,()=>[dn,fn,He],n,(e,t)=>{var n=hn();i(()=>ee(n,`href`,O(t).src)),c(e,n)}),c(e,t)});{let d=r(()=>F()?`Week`:`Today`);Y(a,{get title(){return`Generate ${O(d)??``}`},children:(a,d)=>{var p=v(),m=D(p),_=e=>{var t=gn(),n=f(t);S(n,()=>({alt:``,...un}),void 0,void 0,void 0,`svelte-1nzwjc2`),k(2),C(t),w(n),c(e,t)},y=a=>{var o=v(),u=D(o);g(u,()=>O(s),e=>{var t=xn(),n=D(t);S(n,()=>({alt:``,...dn}),void 0,void 0,void 0,`svelte-1nzwjc2`),k(2),w(n),c(e,t)},(a,o)=>{var s=r(()=>{var{warnings:e}=O(o);return{warnings:e}}),u=r(()=>O(s).warnings),d=yn(),p=D(d);S(p,()=>({alt:``,...fn}),void 0,void 0,void 0,`svelte-1nzwjc2`);var m=t(p,4),g=e=>{Ue(e,{children:(e,t)=>{var r=v(),a=D(r);P(a,17,()=>Object.values(O(u)),n,(e,t)=>{var n=_n(),r=f(n,!0);C(n),i(()=>l(r,O(t))),c(e,n)}),c(e,r)},$$slots:{default:!0}})},_=r(()=>Object.keys(O(u)).length);h(m,e=>{O(_)&&e(g)});var y=t(m,2),b=t=>{var n=vn(),r=f(n);pe(r,{onclick:()=>J(null),children:(t,n)=>{k();var r=e(`View Plan`);c(t,r)},$$slots:{default:!0}}),C(n),c(t,n)},x=r(()=>vt());h(y,e=>{O(x)&&e(b)}),w(p),c(a,d)},(e,n)=>{var r=bn(),a=D(r);S(a,()=>({alt:``,...He}),void 0,void 0,void 0,`svelte-1nzwjc2`);var o=t(a,2),s=f(o,!0);C(o),i(e=>l(s,e),[()=>_e(O(n))]),w(a),c(e,r)}),c(a,o)},b=e=>{ln(e,{get start(){return o.start},get end(){return o.end}})};h(m,e=>{o.endYou don't have any saved plans yet! Use the button to save a
+ meal plan from your calendar. `);function wn(e,n){b(n,!0);let i=L(),a=r(()=>V(ot(i)));var o=v(),s=D(o),l=e=>{wt(e,{allow_select:!0,get start(){return n.start}})},u=r(()=>{var e;return se()||re()||((e=O(a))==null?void 0:e.length)}),d=e=>{var n=Cn(),r=t(f(n));p(r,()=>Pe),k(),C(n),c(e,n)};h(s,e=>{O(u)?e(l):e(d,-1)}),c(e,o),j()}function Tn(e,t){Y(e,{title:`Load Plan`,children:(e,n)=>{wn(e,{get start(){return t.start}})},$$slots:{default:!0}})}function En(e,t){b(t,!0),We(()=>{vt()&&J(null)}),Y(e,{title:`Email or Print Plan`,children:(e,n)=>{Tt(e,{get start(){return t.start},get end(){return t.end}})},$$slots:{default:!0}}),j()}var Dn=_(` to
`);function On(e,n){b(n,!0);let r=y(n,`start`,15),i=y(n,`end`,15);function a(){var e;r()>i()&&i(r()),(e=n.onchange)==null||e.call(n,{start:r(),end:i()})}function o(){var e;i()`);function An(e,t){var n=kn(),r=f(n);lt(r,{get nutrition(){return t.nutrition}}),C(n),c(e,n)}var jn=_(`This date range has no plans to save.
`),Mn=_(`
`,1),Nn=_(`Plan Stats `,1);function Pn(e,n){b(n,!0);let a=L(),s=u(void 0),d={};async function p(e,t){let n=d={},r=await ce(a,`/weeklyplanner/get-plan-summary/?`+new URLSearchParams({start_date:e,end_date:t}));n===d&&o(s,r,!0)}function m(e){return{calories:e.calories??0,carbs:e.carbs??0,fats:e.fats??0,net_carbs:e.net_carbs??0,proteins:e.proteins??0}}let g=r(()=>n.form.start),_=r(()=>n.form.end);N(()=>{p(O(g),O(_))});var v=Nn(),y=t(D(v),2),x=e=>{oe(e,{})},S=e=>{var t=jn();c(e,t)},w=e=>{var n=Mn(),a=D(n),o=f(a);C(a);var u=t(a,2);{let e=r(()=>m(O(s).plan_stats));An(u,{get nutrition(){return O(e)}})}i(e=>l(o,`You have selected
+ ${e??``}
+ to save.`),[()=>ze(O(s).num_plans,`meal plan`)]),c(e,n)};h(y,e=>{O(s)?O(s).num_plans?e(w,-1):e(S,1):e(x)}),c(e,v),j()}var Fn=_(` `,1),In=_(`You can save your current meal plan, or a set of meal plans. If you save a
+ set of meal plans all at once, when you load them later, they will all get
+ loaded together.
`,1);function Ln(n,r){b(r,!0);let i=L(),a=u(T({start:r.start,end:r.end,title:``,description:``,tags:``}));async function s(){let e=await st(i,{start_date:O(a).start,end_date:O(a).end,title:O(a).title,description:O(a).description,tags:O(a).tags}),t=le(i,`/saved-plan/${e.id}`);await ne(t)}ue(n,{onSubmit:s,children:(n,r)=>{var i=In(),s=t(D(i),2);ut(s,{children:(e,n)=>{var r=Fn(),i=D(r);Le(i,{label:`Date range`,id:`date_range`,children:(e,t)=>{On(e,{name:`date_range`,get start(){return O(a).start},set start(e){O(a).start=e},get end(){return O(a).end},set end(e){O(a).end=e}})},$$slots:{default:!0}});var s=t(i,2);Dt(s,{get form(){return O(a)},set form(e){o(a,e,!0)}}),c(e,r)},$$slots:{default:!0}});var l=t(s,2);Pn(l,{get form(){return O(a)}});var u=t(l,2);dt(u,{children:(t,n)=>{z(t,{get icon(){return Ot},children:(t,n)=>{k();var r=e(`Save`);c(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),c(n,i)},$$slots:{default:!0}}),j()}function Rn(e,t){Y(e,{title:`Save Plan`,children:(e,n)=>{Ln(e,{get start(){return t.start},get end(){return t.end}})},$$slots:{default:!0}})}var zn=_(`No meals planned
`),Bn=_(` `),Vn=_(``),Hn=_(``),Un=_(`
`);function Wn(e,o){b(o,!0);let s=W.today(),u=L(),d=new Intl.DateTimeFormat(void 0,{weekday:`short`}).format;function p(e){if(s===e)return`Today`;let t=W.toDate(e);return d(t)}function g(e){o.exclude.has(e)?o.exclude.delete(e):o.exclude.add(e)}var _=Un();P(_,21,()=>o.date_range,n,(e,d)=>{let _=r(()=>V(at(u,O(d))));var y=Hn();let b;var x=f(y),S=f(x,!0);C(x);var w=t(x,2),T=e=>{var t=zn();c(e,t)},E=e=>{let t=r(()=>V(rt(O(_).diet)));var s=v(),d=D(s),p=e=>{var s=Vn();P(s,21,()=>O(t).meals,n,(e,t)=>{let n=r(()=>V(it(O(t)))),s=r(()=>O(n)&&V(_t(u,O(n).meal_type)));var d=Bn(),p=f(d);let h;var _=f(p,!0);C(p),C(d),i(e=>{var t;h=m(p,1,a(fe),`svelte-crjmm`,h,e),l(_,(t=O(s))==null?void 0:t.title)},[()=>({active:!o.exclude.has(O(t))})]),M(`click`,p,()=>g(O(t))),c(e,d)}),C(s),c(e,s)};h(d,e=>{O(t)&&e(p)}),c(e,s)};h(w,e=>{O(_)?e(E,-1):e(T)}),C(y),i(e=>{b=m(y,1,`svelte-crjmm`,null,b,{today:O(d)===s}),l(S,e)},[()=>p(O(d))]),c(e,y)}),C(_),c(e,_),j()}x([`click`]);var Gn=u(!0),Kn=_(` to `,1),qn=_(` Copy Meals
`,1);function Jn(n,i){b(i,!0);let a=y(i,`start`,7),s=y(i,`end`,7),l=r(()=>Ge(a(),s())),d=u(T(new ae)),p=u(void 0),m=L();async function h(){if(!O(p))throw TypeError();let e=O(l).map(async e=>{let t=await xe(()=>at(m,e));return t?(await xe(()=>rt(t.diet))).meals.filter(e=>!O(d).has(e)).map(he):[]}),t=(await Promise.all(e)).flat(),{copy_dates:n}=await ye(m,`/api/copy-meals-execute/`,{replace_existing:O(Gn).toString(),selected_meal_ids:t,target_user_id:O(p)});for(let e of n)tt(O(p),e);await bt(null)}Y(n,{title:`Copy To User`,children:(n,i)=>{ue(n,{onSubmit:h,children:(n,i)=>{var u=qn(),m=D(u);Ct(m,{exclude_current_user:!0,name:`User`,get user_id(){return O(p)},set user_id(e){o(p,e,!0)}});var h=t(m,4);Le(h,{label:`Date range`,id:`start_date`,children:(e,n)=>{var r=Kn(),i=D(r);X(i,{name:`start_date`,get value(){return a()},set value(e){a(e)}});var o=t(i,2);X(o,{name:`end_date`,get value(){return s()},set value(e){s(e)}}),c(e,r)},$$slots:{default:!0}});var g=t(h,2);Le(g,{label:`Replace existing`,id:`replace_existing`,children:(e,t)=>{ft(e,{name:`replace_existing`,get checked(){return O(Gn)},set checked(e){o(Gn,e,!0)}})},$$slots:{default:!0}});var _=t(g,2);Wn(_,{get date_range(){return O(l)},get exclude(){return O(d)},set exclude(e){o(d,e,!0)}});var v=t(_,2),y=f(v);{let t=r(()=>!O(p));z(y,{get disabled(){return O(t)},full_width:!0,get icon(){return Oe},children:(t,n)=>{k();var r=e(`Copy`);c(t,r)},$$slots:{default:!0}})}C(v),c(n,u)},$$slots:{default:!0}})},$$slots:{default:!0}}),j()}function Yn(e,t){b(t,!0);let n=W.today();var i=v(),a=D(i),o=e=>{Yt(e,A(()=>t.pane))},s=e=>{Te(e,A({saved_plan:null},()=>t.pane))},l=e=>{Jn(e,{get start(){return t.start},get end(){return t.end}})},u=e=>{var i=v(),a=D(i),o=e=>{Sn(e,A({get start(){return t.start},get end(){return t.end}},()=>t.pane))},s=r(()=>F()),l=e=>{Sn(e,A({get start(){return n},get end(){return n}},()=>t.pane))};h(a,e=>{O(s)?e(o):e(l,-1)}),c(e,i)},d=e=>{Tn(e,{get start(){return t.start}})},f=e=>{En(e,{get start(){return t.start},get end(){return t.end}})},p=e=>{Rn(e,{get start(){return t.start},get end(){return t.end}})},m=e=>{we(e,{get selected(){return t.pane}})};h(a,e=>{t.pane.type===`COPY_DAY`?e(o):t.pane.type===`COPY_MEAL`?e(s,1):t.pane.type===`COPY_TO_USER`?e(l,2):t.pane.type===`GENERATE`?e(u,3):t.pane.type===`LOAD_PLAN`?e(d,4):t.pane.type===`PRINT`?e(f,5):t.pane.type===`SAVE_PLAN`?e(p,6):e(m,-1)}),c(e,i),j()}export{Rt as a,Bt as i,Kt as n,jt as o,Wt as r,kt as s,Yn as t};
+//# sourceMappingURL=nvigbOhh2.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/p3gDh4vM.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/p3gDh4vM.js
new file mode 100644
index 0000000000000000000000000000000000000000..a1df151955564dc1b5b7a04375087f21f3500d97
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/p3gDh4vM.js
@@ -0,0 +1,2 @@
+import{Ft as e}from"./gotDHXHr.js";var[t,n,r]=e();export{r as n,n as r,t};
+//# sourceMappingURL=p3gDh4vM.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/qBLqlIPz.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/qBLqlIPz.js
new file mode 100644
index 0000000000000000000000000000000000000000..5060cce31b929bd26e9cdc6a511f1678ec5606c6
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/qBLqlIPz.js
@@ -0,0 +1,2 @@
+import{D as e,J as t,X as n,a as r,cn as i,sn as a,wt as o}from"./BhSt9sSe.js";import{Bt as s,S as c,Zt as l}from"./gotDHXHr.js";import"./xihTtKlq.js";import{n as u}from"./B1cT_TaC2.js";import{t as d}from"./DgK9emsh.js";import{t as f}from"./BCf8GMcz.js";function p(e){"@babel/helpers - typeof";return p=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},p(e)}var m=`dahlia`,h=function(e){return e===3?`v3`:e},g=`/static/clone/stripe`,_=`${g}/${m}/stripe.js`,v=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,y=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,b=`loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used`,x=function(e){return v.test(e)||y.test(e)},S=function(){for(var e=document.querySelectorAll(`script[src^="${g}"]`),t=0;t element.`);return r.appendChild(n),n},w=function(e,t){!e||!e._registerWrapper||e._registerWrapper({name:`stripe-js`,version:`9.13.0`,startTime:t})},T=null,E=null,D=null,O=function(e){return function(t){e(Error(`Failed to load Stripe.js`,{cause:t}))}},k=function(e,t){return function(){window.Stripe?e(window.Stripe):t(Error(`Stripe.js not available`))}},A=function(e){return T===null?(T=new Promise(function(t,n){if(typeof window>`u`||typeof document>`u`){t(null);return}if(window.Stripe&&e&&console.warn(b),window.Stripe){t(window.Stripe);return}try{var r=S();if(r&&e)console.warn(b);else if(!r)r=C(e);else if(r&&D!==null&&E!==null){var i;r.removeEventListener(`load`,D),r.removeEventListener(`error`,E),(i=r.parentNode)==null||i.removeChild(r),r=C(e)}D=k(t,n),E=O(n),r.addEventListener(`load`,D),r.addEventListener(`error`,E)}catch(e){n(e);return}}),T.catch(function(e){return T=null,Promise.reject(e)})):T},j=function(e,t,n){if(e===null)return null;var r=t[0];if(typeof r!=`string`)throw Error(`Expected publishable key to be of type string, got type ${p(r)} instead.`);var i=r.match(/^pk_test/),a=h(e.version),o=m;i&&a!==o&&console.warn(`Stripe.js@${a} was loaded on the page, but @stripe/stripe-js@9.13.0 expected Stripe.js@${o}. This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning`);var s=e.apply(void 0,t);return w(s,n),s},M,N=!1,P=function(){return M||(M=A(null).catch(function(e){return M=null,Promise.reject(e)}),M)};Promise.resolve().then(function(){return P()}).catch(function(e){N||console.warn(e)});var F=function(){var e=[...arguments];N=!0;var t=Date.now();return P().then(function(n){return j(n,e,t)})},I=d(()=>F(l,{developerTools:{assistant:{enabled:!1}}}));async function L(){return c(null,`/payments/create-setup-intent/`)}function R(){let e={borderRadius:`0.3rem`,colorDanger:`#b82b00`,fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'`,fontSizeBase:`1rem`},t={".Input":{border:`1px solid var(--colorBackgroundText)`,boxShadow:`none`,outline:`none`},".Input:focus":{border:`1px solid currentColor`,boxShadow:`none`,outline:`1px solid currentColor`},".Input--invalid":{boxShadow:`none`}};return f()?{theme:`night`,rules:t,variables:{colorBackground:`#1f2021`,colorBackgroundText:`#2b323b`,colorPrimary:`#e5592e`,colorPrimaryText:`#f2f2f3`,colorText:`#d7d8db`,colorTextSecondary:`#94989e`,...e}}:{theme:`stripe`,rules:t,variables:{colorBackground:`#feffff`,colorBackgroundText:`#e8eef3`,colorPrimary:`#f07651`,colorPrimaryText:`#ffffff`,colorText:`#303a41`,colorTextSecondary:`#555a5e`,...e}}}async function z(){let[e,t]=await Promise.all([I(),L()]);if(!e)throw Error(`Stripe did not load`);let n=e.elements({clientSecret:t.client_secret,appearance:R(),paymentMethodCreation:`manual`});return{async confirm(){let{error:t}=await e.confirmSetup({elements:n,confirmParams:{return_url:window.location.toString()},redirect:`if_required`});if(t)throw new s(t)},createElement(e){let t=n.create(`payment`,{layout:{type:`auto`,defaultCollapsed:!1},wallets:{link:`never`}});return t.mount(e),o(()=>{n.update({appearance:R()})}),{element:t,destroy(){t.unmount()}}},async createPaymentMethod(){let{error:t}=await n.submit();if(t)throw t;let{error:r,paymentMethod:i}=await e.createPaymentMethod({elements:n});if(r)throw r;if(!i)throw TypeError();return i.id},setup_intent_id:t.setup_intent_id}}var B=n(`
`);function V(n,o){i(o,!0);let s=r(o,`complete`,15);s();function c(e){let{element:t,destroy:n}=o.createElement(e);return t.on(`change`,e=>{s(!!(e!=null&&e.complete))}),u(new Promise(e=>{t.on(`ready`,e)})),n}var l=B();e(l,()=>c),t(n,l),a()}export{z as n,I as r,V as t};
+//# sourceMappingURL=qBLqlIPz.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/qYFcsNWe.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/qYFcsNWe.js
new file mode 100644
index 0000000000000000000000000000000000000000..349eda95ffc3f7aad27d3d27a5446b1438b7d92a
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/qYFcsNWe.js
@@ -0,0 +1,2 @@
+function e(e,t){let n={};for(let r of e){let e=r[t];n[e]?n[e].push(r):n[e]=[r]}return n}function t(e,t){return[...e].sort((e,n)=>e[t].localeCompare(n[t]))}export{e as n,t};
+//# sourceMappingURL=qYFcsNWe.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/sat-xcJP.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/sat-xcJP.js
new file mode 100644
index 0000000000000000000000000000000000000000..39ab85a3e19aa70c2d799051f7f47a7e91935a99
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/sat-xcJP.js
@@ -0,0 +1,2 @@
+import{$ as e,A as t,At as n,Bt as r,Ct as i,E as a,I as o,J as s,K as c,Ot as l,T as u,U as d,X as f,Y as p,a as m,cn as h,et as g,hn as _,jt as v,kt as y,lt as b,mn as x,sn as S,tt as C,v as w,vn as T}from"./BhSt9sSe.js";import{$t as E,Qt as D,_t as O}from"./gotDHXHr.js";import"./xihTtKlq.js";import{a as k}from"./CxRGiBH-2.js";import{n as A}from"./B1cT_TaC2.js";import{n as j,t as M}from"./BwAVaRnq.js";import{t as N}from"./Blhu9Gta.js";var P=f(` `),F=f(` `,1);function I(e,r){h(r,!0);let a=m(r,`discounted`,3,!1);var o=p(),f=y(o);t(f,()=>a()?`del`:`b`,!1,(e,t)=>{u(e,0,`svelte-unvcqh`);var a=F(),o=y(a),f=n(o),p=e=>{var t=P(),n=l(t,!0);_(t),i(()=>c(n,r.pricing.currencies.selected)),s(e,t)};d(f,e=>{r.pricing.currencies.selected_symbol===`$`&&e(p)}),i(()=>c(o,`${r.price??``} `)),s(t,a)}),s(e,o),S()}var L=f(` per month
`);function R(e,t){h(t,!0);let f=m(t,`value`,15),p=r(()=>t.plan===f());var g=L();let v;var y=l(g),E=l(y),D=l(E),A=l(D,!0);_(D),_(E);var j=n(E,2);k(j,{get checked(){return b(p)},get id(){return`subscription_${t.plan??``}`},name:`subscription`,get value(){return t.plan}}),_(y);var M=n(y,2),N=l(M);{let e=r(()=>!!t.sale_price);I(N,{get discounted(){return b(e)},get price(){return t.price},get pricing(){return t.pricing}})}var P=n(N,2),F=e=>{I(e,{get price(){return t.sale_price},get pricing(){return t.pricing}})};d(P,e=>{t.sale_price&&e(F)}),x(),_(M);var R=n(M,2);o(R,()=>t.children??T),_(g),i(()=>{v=u(g,1,a(O),`svelte-17yodnp`,v,{active:b(p)}),w(D,`for`,`subscription_${t.plan??``}`),c(A,t.name)}),C(`click`,g,()=>f(t.plan)),s(e,g),S()}g([`click`]);var z=f(`
`),B=f(`
`,1),V=f(`Subscription Plan `),H=f(` `,1);function U(t,a){h(a,!0);let o=D,u=E,f=m(a,`value`,31,()=>v(u)),p=r(()=>A(M())),g=r(()=>j(b(p)));var x=H(),C=y(x);N(C,{});var w=n(C,2),T=t=>{var a=V(),m=n(l(a),2),h=l(m);{let t=r(()=>b(g)&&b(p).discount_prices.monthly_price);R(h,{name:`Monthly`,get plan(){return o},get price(){return b(p).prices.monthly_price},get pricing(){return b(p)},get sale_price(){return b(t)},get value(){return f()},set value(e){f(e)},children:(t,n)=>{var r=z(),a=l(r),o=t=>{var n=e();i(()=>c(n,`${b(p).discount_prices.monthly_price??``} for the first month, then ${b(p).prices.monthly_price??``} per month`)),s(t,n)},u=t=>{var n=e();i(()=>c(n,`${b(p).prices.monthly_price??``} charged every month`)),s(t,n)};d(a,e=>{b(g)?e(o):e(u,-1)}),_(r),s(t,r)},$$slots:{default:!0}})}var v=n(h,2);{let t=r(()=>b(g)&&b(p).discount_prices.yearly_price_per_month);R(v,{name:`Yearly`,get plan(){return u},get price(){return b(p).prices.yearly_price_per_month},get pricing(){return b(p)},get sale_price(){return b(t)},get value(){return f()},set value(e){f(e)},children:(t,r)=>{var a=B(),o=y(a),u=l(o),f=l(u);_(u),_(o);var m=n(o,2),h=l(m),v=t=>{var n=e();i(()=>c(n,`${b(p).discount_prices.yearly_price??``} for the first year, then ${b(p).prices.yearly_price??``} per year`)),s(t,n)},x=t=>{var n=e();i(()=>c(n,`${b(p).prices.yearly_price??``} charged every 12 months`)),s(t,n)};d(h,e=>{b(g)?e(v):e(x,-1)}),_(m),i(()=>c(f,`Save ${b(p).prices.yearly_percent_savings??``}%`)),s(t,a)},$$slots:{default:!0}})}_(m),_(a),s(t,a)};d(w,e=>{b(p)&&e(T)}),s(t,x),S()}export{U as t};
+//# sourceMappingURL=sat-xcJP.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/twP00gay.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/twP00gay.js
new file mode 100644
index 0000000000000000000000000000000000000000..6ec86547836e58daf22197135649571265d11459
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/twP00gay.js
@@ -0,0 +1,5 @@
+var e=`
+
+
+`;export{e as t};
+//# sourceMappingURL=twP00gay.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/xbhHVLuF.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/xbhHVLuF.js
new file mode 100644
index 0000000000000000000000000000000000000000..35b66d7cb7cf53123e249a70675ad7b651de037a
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/xbhHVLuF.js
@@ -0,0 +1,2 @@
+import{S as e,j as t,o as n,w as r}from"./gotDHXHr.js";function i(t){return n.create(null,async()=>{let n=await r(null,`/account-management/create-user/`,t);return e(null,`/api/v1/userv2/${n.client_id}/`)})}var a=n.getAll.bind(void 0,null);async function o(e){let i=t();await n.deleteOne(i,e.resource_uri,()=>r(i,`/account-management/stop-managing-user-ids/`,{ids:[e.id]}))}export{o as n,a as r,i as t};
+//# sourceMappingURL=xbhHVLuF.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/xihTtKlq.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/xihTtKlq.js
new file mode 100644
index 0000000000000000000000000000000000000000..ecb752cba86953339c522e363ee0ef2ffc60ad80
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/xihTtKlq.js
@@ -0,0 +1,2 @@
+typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);
+//# sourceMappingURL=xihTtKlq.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/z0YszRDZ.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/z0YszRDZ.js
new file mode 100644
index 0000000000000000000000000000000000000000..4fb99982d6e23f00ef9370ba042929159e76a3d3
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/z0YszRDZ.js
@@ -0,0 +1,2 @@
+var e={height:250,width:196,src:`/app/_app/immutable/assets/broccoli-workout.COck7Kp5.avif`},t={height:250,width:147,src:`/app/_app/immutable/assets/orange-reading.VW1oL5xo.avif`},n={height:250,width:233,src:`/app/_app/immutable/assets/orange-sport.B38uOlBS.avif`},r={height:250,width:267,src:`/app/_app/immutable/assets/pear-swimming.P7yt5nom.avif`},i={height:250,width:246,src:`/app/_app/immutable/assets/strawberry-running.D5arH07s.avif`};export{e as a,t as i,r as n,n as r,i as t};
+//# sourceMappingURL=z0YszRDZ.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/z8IbqcTs.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/z8IbqcTs.js
new file mode 100644
index 0000000000000000000000000000000000000000..054b45c47208bb072b6ffca421a67ab7034dfcc2
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/z8IbqcTs.js
@@ -0,0 +1,2 @@
+function e(e){return e===parseFloat(e).toString()}function t(t){let n=Object.entries(t).filter(([t])=>!e(t)).map(([e,t])=>[t,e]);return new Map(n)}var n=function(e){return e[e[`Desk job, light exercise`]=1.2]=`Desk job, light exercise`,e[e[`Lightly active, workout 3-4 times/week`]=1.375]=`Lightly active, workout 3-4 times/week`,e[e[`Active daily, frequent exercise`]=1.55]=`Active daily, frequent exercise`,e[e[`Very athletic`]=1.725]=`Very athletic`,e[e[`Extremely athletic`]=1.9]=`Extremely athletic`,e}({}),r=t(n),i=function(e){return e[e.Low=10]=`Low`,e[e.Medium=20]=`Medium`,e[e.High=30]=`High`,e}({}),a=t(i),o=function(e){return e.Male=`M`,e.Female=`F`,e[`Non-Binary`]=`O`,e}({}),s=t(o),c=function(e){return e[`Lose fat`]=`L`,e[`Maintain weight`]=`M`,e[`Build muscle`]=`G`,e}({}),l=t(c),u=new Map([[!1,`General Goal`],[!0,`Exact Goal`]]),d=[`calories`,`carbs`,`cholesterol`,`fats`,`fiber`,`net_carbs`,`proteins`,`saturated_fats`,`sodium`,`sugar`,`trans_fats`],f={carbs:4,fats:9,proteins:4},p=e=>t=>e,m={ala_fatty_acid:{display_name:`Alpha Linolenic Acid (ALA)`,daily_value:p(null),units:`g`},alanine:{display_name:`Alanine`,daily_value:p(null),units:`g`},alcohol:{display_name:`Alcohol`,daily_value:p(null),units:`g`},alpha_carotene:{display_name:`Alpha carotene`,daily_value:p(null),units:`μg`},arginine:{display_name:`Arginine`,daily_value:p(null),units:`g`},aspartic_acid:{display_name:`Aspartic acid`,daily_value:p(null),units:`g`},beta_carotene:{display_name:`Beta carotene`,daily_value:p(null),units:`μg`},betaine:{display_name:`Betaine`,daily_value:p(null),units:`mg`},caffeine:{display_name:`Caffeine`,daily_value:p(null),units:`mg`},calcium:{display_name:`Calcium`,daily_value(e){return e!=null&&e.age&&(e.age>70||e.gender===o.Female&&e.age>50)?1200:1e3},units:`mg`},calories:{display_name:`Calories`,daily_value:p(null),units:`kcal`},carbs:{display_name:`Carbs`,daily_value:p(275),units:`g`},cholesterol:{display_name:`Cholesterol`,daily_value:p(300),units:`mg`},choline:{display_name:`Choline`,daily_value:p(550),units:`mg`},copper:{display_name:`Copper`,daily_value:p(.9),units:`mg`},cystine:{display_name:`Cystine`,daily_value:p(null),units:`g`},dha_fatty_acid:{display_name:`Docosahexaenoic Acid (DHA)`,daily_value:p(null),units:`g`},dpa_fatty_acid:{display_name:`Docosapentaenoic Acid (DPA)`,daily_value:p(null),units:`g`},epa_fatty_acid:{display_name:`Eicosapentaenoic Acid (EPA)`,daily_value:p(null),units:`g`},fats:{display_name:`Fats`,daily_value:p(78),units:`g`},fiber:{display_name:`Fiber`,daily_value:p(28),units:`g`},fluoride:{display_name:`Fluoride`,daily_value:p(null),units:`μg`},folate:{display_name:`Folate (B9)`,daily_value:p(400),units:`μg`},fructose:{display_name:`Fructose`,daily_value:p(null),units:`g`},galactose:{display_name:`Galactose`,daily_value:p(null),units:`g`},glucose:{display_name:`Glucose`,daily_value:p(null),units:`g`},glutamic_acid:{display_name:`Glutamic acid`,daily_value:p(null),units:`g`},glycine:{display_name:`Glycine`,daily_value:p(null),units:`g`},histidine:{display_name:`Histidine`,daily_value:p(null),units:`g`},hydroxyproline:{display_name:`Hydroxyproline`,daily_value:p(null),units:`g`},iron:{display_name:`Iron`,daily_value(e){return e!=null&&e.age&&e.age<=50&&e.gender===o.Female?18:8},units:`mg`},isoleucine:{display_name:`Isoleucine`,daily_value:p(null),units:`g`},lactose:{display_name:`Lactose`,daily_value:p(null),units:`g`},leucine:{display_name:`Leucine`,daily_value:p(null),units:`g`},lycopene:{display_name:`Lycopene`,daily_value:p(null),units:`μg`},lysine:{display_name:`Lysine`,daily_value:p(null),units:`g`},magnesium:{display_name:`Magnesium`,daily_value(e){return e!=null&&e.age?e.gender===o.Female?e.age>30?320:310:e.age>30?420:400:420},units:`mg`},maltose:{display_name:`Maltose`,daily_value:p(null),units:`g`},manganese:{display_name:`Manganese`,daily_value:p(2.3),units:`mg`},methionine:{display_name:`Methionine`,daily_value:p(null),units:`g`},monounsaturated_fats:{display_name:`Monounsaturated fats`,daily_value:p(null),units:`g`},net_carbs:{display_name:`Net carbs`,daily_value:p(null),units:`g`},niacin:{display_name:`Niacin`,daily_value:p(16),units:`mg`},pantothenic_acid:{display_name:`Pantothenic acid`,daily_value:p(5),units:`mg`},phenylalanine:{display_name:`Phenylalanine`,daily_value:p(null),units:`g`},phosphorus:{display_name:`Phosphorus`,daily_value:p(700),units:`mg`},polyunsaturated_fats:{display_name:`Polyunsaturated fats`,daily_value:p(null),units:`g`},potassium:{display_name:`Potassium`,daily_value:p(4700),units:`mg`},proline:{display_name:`Proline`,daily_value:p(null),units:`g`},proteins:{display_name:`Protein`,daily_value:p(null),units:`g`},retinol:{display_name:`Retinol`,daily_value:p(null),units:`μg`},riboflavin:{display_name:`Riboflavin (B2)`,daily_value:p(1.3),units:`mg`},saturated_fats:{display_name:`Saturated fats`,daily_value:p(20),units:`g`},selenium:{display_name:`Selenium`,daily_value:p(55),units:`μg`},serine:{display_name:`Serine`,daily_value:p(null),units:`g`},sodium:{display_name:`Sodium`,daily_value:p(2300),units:`mg`},starch:{display_name:`Starch`,daily_value:p(null),units:`g`},sucrose:{display_name:`Sucrose`,daily_value:p(null),units:`g`},sugar:{display_name:`Sugar`,daily_value:p(null),units:`g`},theobromine:{display_name:`Theobromine`,daily_value:p(null),units:`mg`},thiamine:{display_name:`Thiamine`,daily_value:p(1.2),units:`mg`},threonine:{display_name:`Threonine`,daily_value:p(null),units:`g`},total_omega_3:{display_name:`Total omega 3`,daily_value:p(null),units:`g`},total_omega_6:{display_name:`Total omega 6`,daily_value:p(null),units:`g`},trans_fats:{display_name:`Trans fats`,daily_value:p(null),units:`g`},tryptophan:{display_name:`Tryptophan`,daily_value:p(null),units:`g`},tyrosine:{display_name:`Tyrosine`,daily_value:p(null),units:`g`},valine:{display_name:`Valine`,daily_value:p(null),units:`g`},vit_a:{display_name:`Vitamin A`,daily_value(e){return(e==null?void 0:e.gender)===o.Female?700:900},units:`μg`},vit_a_iu:{display_name:`Vitamin A IU`,daily_value:p(null),units:`IU`},vit_b6:{display_name:`Vitamin B6`,daily_value(e){return e!=null&&e.age&&e.age>50?e.gender===o.Female?1.5:1.7:1.3},units:`mg`},vit_b12:{display_name:`Vitamin B12`,daily_value:p(2.4),units:`μg`},vit_c:{display_name:`Vitamin C`,daily_value:p(90),units:`mg`},vit_d:{display_name:`Vitamin D`,daily_value(e){return e!=null&&e.age&&e.age>70?20:15},units:`μg`},vit_d_iu:{display_name:`Vitamin D IU`,daily_value:p(null),units:`IU`},vit_d2:{display_name:`Vitamin D2`,daily_value:p(null),units:`μg`},vit_d3:{display_name:`Vitamin D3`,daily_value:p(null),units:`μg`},vit_e:{display_name:`Vitamin E`,daily_value:p(15),units:`mg`},vit_k:{display_name:`Vitamin K`,daily_value(e){return(e==null?void 0:e.gender)===o.Female?90:120},units:`μg`},water:{display_name:`Water`,daily_value:p(null),units:`g`},zinc:{display_name:`Zinc`,daily_value(e){return(e==null?void 0:e.gender)===o.Female?8:11},units:`mg`}},h=(e,t)=>e.includes(t),g=Object.keys(m).filter(e=>!h(d,e));export{n as a,r as c,l as d,u as f,g as i,a as l,m as n,i as o,t as p,f as r,c as s,d as t,s as u};
+//# sourceMappingURL=z8IbqcTs.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/zqfIgEQ_.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/zqfIgEQ_.js
new file mode 100644
index 0000000000000000000000000000000000000000..29100f57ee3f3786a8e1ec621c7a77c1404aa151
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/chunks/zqfIgEQ_.js
@@ -0,0 +1,2 @@
+import{Gt as e,R as t,S as n,f as r}from"./gotDHXHr.js";var i=`/api/stripe-free-trial-availability/`,a=e({key(e){return`${i}`},async fetcher(){let e=await n(null,i);return{premium:e.premium_free_trial_available,professional:e.professional_free_trial_available}},maxAge:r,name:`trial-availability::2023-10-27`});function o(e){if(e.is_premium)return!1;let t=a.get(null);return t==null?void 0:t.premium}function s(){if(t())return!1;let e=a.get(null);return e==null?void 0:e.professional}export{o as n,s as t};
+//# sourceMappingURL=zqfIgEQ_.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/entry/app.BgncCrZy.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/entry/app.BgncCrZy.js
new file mode 100644
index 0000000000000000000000000000000000000000..326a644dc1e5808cf59936926c52bea093d3a429
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/entry/app.BgncCrZy.js
@@ -0,0 +1,3 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/_app/immutable/nodes/0.uKbgA_l7.js","/app/_app/immutable/chunks/BhSt9sSe.js","/app/_app/immutable/chunks/C8UWmKFm.js","/app/_app/immutable/chunks/gotDHXHr.js","/app/_app/immutable/chunks/C5rGgnpV.js","/app/_app/immutable/chunks/xihTtKlq.js","/app/_app/immutable/chunks/Bx99Pxiq.js","/app/_app/immutable/chunks/CyviYcci.js","/app/_app/immutable/assets/user.ATb5Lzr_.css","/app/_app/immutable/chunks/CxRGiBH-2.js","/app/_app/immutable/chunks/B9fg6oGg2.js","/app/_app/immutable/chunks/DvtZBUMh2.js","/app/_app/immutable/assets/form.0brcNwQ2.css","/app/_app/immutable/chunks/BD1OUcyy2.js","/app/_app/immutable/chunks/B1cT_TaC2.js","/app/_app/immutable/assets/suspense.BzksXB-L.css","/app/_app/immutable/chunks/DTcfIa-V2.js","/app/_app/immutable/chunks/DXDsflZU.js","/app/_app/immutable/chunks/CPGReOo72.js","/app/_app/immutable/chunks/BpQEveid.js","/app/_app/immutable/chunks/DEgMoMXi.js","/app/_app/immutable/chunks/BeWRM1O72.js","/app/_app/immutable/chunks/D2IZisAi2.js","/app/_app/immutable/assets/mini-modal.H3gvAU2F.css","/app/_app/immutable/assets/impersonation-banner.CYl6ub3R.css","/app/_app/immutable/nodes/1.BXju74JG.js","/app/_app/immutable/chunks/BB8a8jXj2.js","/app/_app/immutable/chunks/CsIAEk3y2.js","/app/_app/immutable/chunks/DaionNlP2.js","/app/_app/immutable/assets/1.Ej-mex2U.css","/app/_app/immutable/nodes/2.BiuGRjVb.js","/app/_app/immutable/chunks/9yaFw3Eq.js","/app/_app/immutable/assets/2.DNSXXmEP.css","/app/_app/immutable/nodes/3.B3FsyqN3.js","/app/_app/immutable/chunks/CLTyeLEa.js","/app/_app/immutable/chunks/C2as7BOF.js","/app/_app/immutable/assets/warning.CawDNAkj.css","/app/_app/immutable/assets/loading-boundary.5fI3Je_q.css","/app/_app/immutable/assets/3.DKi3_j7k.css","/app/_app/immutable/nodes/4.CZAHAUHI.js","/app/_app/immutable/chunks/CLRsa_LO.js","/app/_app/immutable/chunks/CnNEPMPf.js","/app/_app/immutable/chunks/CbUYSPq9.js","/app/_app/immutable/chunks/D2JSHRnj.js","/app/_app/immutable/chunks/DzVcsD2j.js","/app/_app/immutable/chunks/BQCFC5dX.js","/app/_app/immutable/chunks/BaMUyfx-.js","/app/_app/immutable/chunks/DSsz7zzb.js","/app/_app/immutable/chunks/C-HdF7GT.js","/app/_app/immutable/chunks/BTw3_Nuu2.js","/app/_app/immutable/chunks/xbhHVLuF.js","/app/_app/immutable/chunks/DMI9ZW7h.js","/app/_app/immutable/chunks/CuR2tGfA2.js","/app/_app/immutable/assets/search.D0hT8DKz.css","/app/_app/immutable/chunks/D-BzUZR5.js","/app/_app/immutable/assets/sticky.DZoQo2BX.css","/app/_app/immutable/chunks/Ctg-Sb3g.js","/app/_app/immutable/chunks/C8xjeFj8.js","/app/_app/immutable/assets/search.C63SHYqx.css","/app/_app/immutable/chunks/C56eaDX-.js","/app/_app/immutable/chunks/twP00gay.js","/app/_app/immutable/chunks/CkihHAIa.js","/app/_app/immutable/chunks/CqYOJzvT2.js","/app/_app/immutable/chunks/XKJvcd3t2.js","/app/_app/immutable/chunks/BON7-EQG2.js","/app/_app/immutable/chunks/B-CQW_E02.js","/app/_app/immutable/assets/suspense-list.DqRZJUWW.css","/app/_app/immutable/chunks/B19gMY7G.js","/app/_app/immutable/chunks/BbCDz64Q.js","/app/_app/immutable/chunks/YJGvmxuv.js","/app/_app/immutable/chunks/BjK2Nlsh.js","/app/_app/immutable/chunks/p3gDh4vM.js","/app/_app/immutable/chunks/CwXwk9tw.js","/app/_app/immutable/assets/modal-sheet.D0i4f62G.css","/app/_app/immutable/chunks/KSgUzsPF.js","/app/_app/immutable/chunks/aovk0dHP.js","/app/_app/immutable/assets/card-grid.29z7hCwq.css","/app/_app/immutable/assets/card.jtDyLtOq.css","/app/_app/immutable/chunks/CMlJSk1P.js","/app/_app/immutable/chunks/lJbb5zTU.js","/app/_app/immutable/assets/profile-image.CiypeAl5.css","/app/_app/immutable/chunks/CrJsVZxj.js","/app/_app/immutable/assets/user-display.DZiU0mZY.css","/app/_app/immutable/chunks/C2PzE5jE.js","/app/_app/immutable/chunks/B-VPo5WB.js","/app/_app/immutable/chunks/FxpW_qOG.js","/app/_app/immutable/chunks/jEwY_NrO.js","/app/_app/immutable/assets/logo.BK--R20-.css","/app/_app/immutable/assets/4.Blu7z5x_.css","/app/_app/immutable/nodes/5.XcbIfXIK.js","/app/_app/immutable/chunks/DZzYSFS5.js","/app/_app/immutable/assets/5.klKjWhNi.css","/app/_app/immutable/nodes/6.BnPNNNgI.js","/app/_app/immutable/nodes/7.Iy6th9OI.js","/app/_app/immutable/chunks/BMUmCrYb.js","/app/_app/immutable/nodes/8.D5D0w8El.js","/app/_app/immutable/nodes/9.C6hyjH1i.js","/app/_app/immutable/nodes/10.A4uO0eA-.js","/app/_app/immutable/nodes/11.C1Dwxnsl.js","/app/_app/immutable/chunks/Cer-cfCG.js","/app/_app/immutable/chunks/BtqPi__O.js","/app/_app/immutable/chunks/DRq5eja-.js","/app/_app/immutable/chunks/z8IbqcTs.js","/app/_app/immutable/chunks/Dr0HfOwU.js","/app/_app/immutable/chunks/CWh68Btn2.js","/app/_app/immutable/chunks/DgK9emsh.js","/app/_app/immutable/chunks/DNDaYjwu.js","/app/_app/immutable/chunks/BeWss_qm.js","/app/_app/immutable/chunks/712M-gak.js","/app/_app/immutable/chunks/mRJ-UFmt.js","/app/_app/immutable/assets/app-header.CRAQXZf5.css","/app/_app/immutable/chunks/CBE8YyEJ.js","/app/_app/immutable/chunks/DakvCGF62.js","/app/_app/immutable/chunks/DDOpnL3q2.js","/app/_app/immutable/chunks/Bm6XGpdy2.js","/app/_app/immutable/chunks/zqfIgEQ_.js","/app/_app/immutable/assets/upgrade-buttons.FKtGkc69.css","/app/_app/immutable/chunks/CKHRnZFH2.js","/app/_app/immutable/assets/upgrade-benefits.Bk3bS6u4.css","/app/_app/immutable/nodes/12.rhyrtrxX.js","/app/_app/immutable/chunks/YbPoYoGd2.js","/app/_app/immutable/chunks/DhZVZYPM2.js","/app/_app/immutable/assets/kilojoules.DzUxVp16.css","/app/_app/immutable/chunks/Bjyj8E3p2.js","/app/_app/immutable/chunks/COwaMya3.js","/app/_app/immutable/chunks/Da2DpX_H2.js","/app/_app/immutable/assets/basic-nutrition.B1vrxrHq.css","/app/_app/immutable/chunks/BZQKY5H72.js","/app/_app/immutable/assets/food-amount.rxlnxFTi.css","/app/_app/immutable/assets/tooltip.D4bSDbyn.css","/app/_app/immutable/chunks/BFdFd2wI2.js","/app/_app/immutable/assets/nutrition-chart.DP6b-JJ7.css","/app/_app/immutable/chunks/CM9HTt0N2.js","/app/_app/immutable/chunks/BxmAK_uu.js","/app/_app/immutable/chunks/Mg-YQQBA.js","/app/_app/immutable/chunks/BrfbP0yE2.js","/app/_app/immutable/chunks/75oOzRea2.js","/app/_app/immutable/chunks/BFOxw_3A.js","/app/_app/immutable/assets/modal-header.iDoiTSn9.css","/app/_app/immutable/chunks/CAq_OQDd2.js","/app/_app/immutable/chunks/CWcvf8_g2.js","/app/_app/immutable/chunks/DbfHMH5n2.js","/app/_app/immutable/assets/detailed-nutrition.ZDCGhMEF.css","/app/_app/immutable/assets/calories.ZZ2mZKO7.css","/app/_app/immutable/nodes/13.BbJK0_pX.js","/app/_app/immutable/nodes/14.B3ZjD0a9.js","/app/_app/immutable/chunks/LtYjoJmG2.js","/app/_app/immutable/nodes/15.C-9011Ts.js","/app/_app/immutable/nodes/16.D6Es0qok.js","/app/_app/immutable/nodes/17.f77PYdwT.js","/app/_app/immutable/nodes/18.B-4zxNWB.js","/app/_app/immutable/nodes/19.CZ1DMC1V.js","/app/_app/immutable/chunks/c5zWaAEX2.js","/app/_app/immutable/assets/19.BWze-dmj.css","/app/_app/immutable/nodes/20.LX5cVnZT.js","/app/_app/immutable/chunks/FlQAycz02.js","/app/_app/immutable/chunks/Dw-YYMcZ.js","/app/_app/immutable/assets/copy.BQ7yGanQ.css","/app/_app/immutable/assets/20.CKOsMM0X.css","/app/_app/immutable/nodes/21.eBjk7AG0.js","/app/_app/immutable/chunks/TSJ3fM002.js","/app/_app/immutable/assets/social-login.C6_UuL1q.css","/app/_app/immutable/chunks/DT7Dqe2g2.js","/app/_app/immutable/assets/21.BvQfWVbW.css","/app/_app/immutable/nodes/22.FmbvcfYx.js","/app/_app/immutable/assets/22.h5P4w39K.css","/app/_app/immutable/nodes/23.C0wtlKWw.js","/app/_app/immutable/chunks/Bce0nSU2.js","/app/_app/immutable/chunks/2fVw9NDa2.js","/app/_app/immutable/assets/auth-field.CtK7eg26.css","/app/_app/immutable/assets/23.CoEKrMJ_.css","/app/_app/immutable/nodes/24.C2rp7Dwu.js","/app/_app/immutable/chunks/CqYOJzvT.js","/app/_app/immutable/assets/24.DUOSPVcy.css","/app/_app/immutable/nodes/25.Bfy7jfT9.js","/app/_app/immutable/chunks/DTm82U0q2.js","/app/_app/immutable/chunks/CcM5tauT2.js","/app/_app/immutable/assets/manager-price.D3rVjxM_.css","/app/_app/immutable/chunks/C6BLD0Db2.js","/app/_app/immutable/chunks/cX185zOy2.js","/app/_app/immutable/assets/popover.DeeM_OT1.css","/app/_app/immutable/assets/custom-select.DA7ABgRB.css","/app/_app/immutable/assets/manager-plans.BzksLihN.css","/app/_app/immutable/chunks/CZOcB8DL.js","/app/_app/immutable/chunks/DfR5pL5G.js","/app/_app/immutable/assets/actions.D07iAJuV.css","/app/_app/immutable/assets/save.ttXRwrHu.css","/app/_app/immutable/chunks/sat-xcJP.js","/app/_app/immutable/chunks/BwAVaRnq.js","/app/_app/immutable/chunks/Blhu9Gta.js","/app/_app/immutable/assets/announcement-banner.vEHgvwID.css","/app/_app/immutable/assets/subscription-plans.Bfl_fMy9.css","/app/_app/immutable/nodes/26.C3-Y3tWg.js","/app/_app/immutable/chunks/CfvA40lv.js","/app/_app/immutable/assets/text-area.BX92ExxQ.css","/app/_app/immutable/assets/26.BcI43bST.css","/app/_app/immutable/nodes/27.BpxtYox7.js","/app/_app/immutable/chunks/BiFEq6WA.js","/app/_app/immutable/chunks/qBLqlIPz.js","/app/_app/immutable/chunks/BCf8GMcz.js","/app/_app/immutable/assets/stripe-payment.DDUdZ4wG.css","/app/_app/immutable/chunks/C_NFOZtL.js","/app/_app/immutable/assets/27.qDgkUrlg.css","/app/_app/immutable/nodes/28.QRe7a6jD.js","/app/_app/immutable/chunks/BZ9FN49-.js","/app/_app/immutable/chunks/BC4LLrwJ.js","/app/_app/immutable/assets/row-container.BcljsfHv.css","/app/_app/immutable/chunks/OkVvj29C.js","/app/_app/immutable/assets/title.DJR_21Y9.css","/app/_app/immutable/nodes/29.DNeVGvxo.js","/app/_app/immutable/chunks/BanapObv.js","/app/_app/immutable/chunks/B-9Xxr31.js","/app/_app/immutable/chunks/Vs690ISY2.js","/app/_app/immutable/chunks/BN66IXsU.js","/app/_app/immutable/assets/modal-actions.BwJCwTw1.css","/app/_app/immutable/assets/modal.1XNd3t9E.css","/app/_app/immutable/chunks/QqnK60GX.js","/app/_app/immutable/assets/profile-form.B8IKtG53.css","/app/_app/immutable/nodes/30.p6xlpZbj.js","/app/_app/immutable/chunks/DbcdiBb3.js","/app/_app/immutable/assets/30.BkV7gLbf.css","/app/_app/immutable/nodes/31.RcWJKm_y.js","/app/_app/immutable/chunks/DMf5TeBn.js","/app/_app/immutable/chunks/BWqLgya7.js","/app/_app/immutable/assets/31.DtEqfyTs.css","/app/_app/immutable/nodes/32.Bjud94KB.js","/app/_app/immutable/nodes/33.MdJn3fh6.js","/app/_app/immutable/chunks/BBCQccAx.js","/app/_app/immutable/chunks/CtDUMnLZ.js","/app/_app/immutable/assets/banner.DazzEEO4.css","/app/_app/immutable/nodes/34.BuLWK4a0.js","/app/_app/immutable/nodes/35.ChQJLoN5.js","/app/_app/immutable/nodes/36.D0BzxiEb.js","/app/_app/immutable/chunks/D6NmChFs.js","/app/_app/immutable/assets/line-chart.CkSFRQVc.css","/app/_app/immutable/chunks/B1rreK3F.js","/app/_app/immutable/assets/36.BFDoLGA1.css","/app/_app/immutable/nodes/37.Cy8eODvY.js","/app/_app/immutable/chunks/BBbGtOhS.js","/app/_app/immutable/chunks/DGQfeLd_.js","/app/_app/immutable/chunks/D7mLfM7M.js","/app/_app/immutable/assets/confirm.Bo199dJo.css","/app/_app/immutable/assets/37.BuldUrDU.css","/app/_app/immutable/nodes/38.DMLWcAPa.js","/app/_app/immutable/assets/38.D0chkd9s.css","/app/_app/immutable/nodes/39.CL55oVYv.js","/app/_app/immutable/assets/39.G_PRncR2.css","/app/_app/immutable/nodes/40.37_A35I-.js","/app/_app/immutable/chunks/CRanwLzu.js","/app/_app/immutable/chunks/CTx2jRsm.js","/app/_app/immutable/nodes/41.LZlI4CTo.js","/app/_app/immutable/nodes/42.DTwg8Rt9.js","/app/_app/immutable/nodes/43.XGvXBjG6.js","/app/_app/immutable/assets/43.CcUlfb3V.css","/app/_app/immutable/nodes/44.D7nWGsFc.js","/app/_app/immutable/chunks/CMf_mwGa.js","/app/_app/immutable/assets/switch.DvkJBCDO.css","/app/_app/immutable/assets/44.CO8IRaqe.css","/app/_app/immutable/nodes/45.DJosnLxc.js","/app/_app/immutable/nodes/46.tTN3seEH.js","/app/_app/immutable/chunks/Cb0T7gAr.js","/app/_app/immutable/chunks/gj9JhKHe.js","/app/_app/immutable/assets/selectable-card.sifMqJmk.css","/app/_app/immutable/assets/help-card.BUeWn0Ul.css","/app/_app/immutable/assets/46.CeHxG1Dk.css","/app/_app/immutable/nodes/47.oN3VECeG.js","/app/_app/immutable/chunks/D3pU2EEp.js","/app/_app/immutable/assets/47.Dfu_IX3E.css","/app/_app/immutable/nodes/48.DKLpRQ2I.js","/app/_app/immutable/nodes/49.KXvL_eD4.js","/app/_app/immutable/nodes/50.C3RjktRu.js","/app/_app/immutable/assets/50.CPwBmVnK.css","/app/_app/immutable/nodes/51.CsofGYU4.js","/app/_app/immutable/chunks/-YOj1Zzm.js","/app/_app/immutable/chunks/B6U_NVjb.js","/app/_app/immutable/assets/drop-down.CxO6U_t2.css","/app/_app/immutable/assets/setup-form.D7Z6If3n.css","/app/_app/immutable/chunks/EMkCxHyW.js","/app/_app/immutable/chunks/DezUpAoa.js","/app/_app/immutable/chunks/CjBHSDGC.js","/app/_app/immutable/chunks/B9LAw6kI.js","/app/_app/immutable/chunks/B6Qcxm1X.js","/app/_app/immutable/chunks/DLiBxM3i.js","/app/_app/immutable/assets/51.NwRRHQzW.css","/app/_app/immutable/nodes/52.C1yvpHJM.js","/app/_app/immutable/nodes/53.DR3DawHO.js","/app/_app/immutable/chunks/Bwr2wBB52.js","/app/_app/immutable/chunks/D5_aRWCh2.js","/app/_app/immutable/chunks/BfqGvEGP2.js","/app/_app/immutable/assets/option.B_oxHAYy.css","/app/_app/immutable/assets/edit.BMu-QVAw.css","/app/_app/immutable/chunks/UYZBdDnt2.js","/app/_app/immutable/nodes/54.Dy46ph59.js","/app/_app/immutable/assets/54.rJFjgZx-.css","/app/_app/immutable/nodes/55.CMp9XOOX.js","/app/_app/immutable/chunks/DQfSipwY2.js","/app/_app/immutable/assets/category.B-P8pIup.css","/app/_app/immutable/assets/55.5XeSai8Q.css","/app/_app/immutable/nodes/56.CCGR311L.js","/app/_app/immutable/chunks/Kk-jaXxu2.js","/app/_app/immutable/chunks/Czas9PUh2.js","/app/_app/immutable/chunks/C_QeEPqD2.js","/app/_app/immutable/nodes/57.DE0cYHYC.js","/app/_app/immutable/chunks/CYGTaWAz2.js","/app/_app/immutable/chunks/BvG_GAF12.js","/app/_app/immutable/chunks/BMDUh7bc2.js","/app/_app/immutable/assets/pick-categories.DtYXqMwX.css","/app/_app/immutable/nodes/58.Bp_56he1.js","/app/_app/immutable/chunks/DfE8jfaJ2.js","/app/_app/immutable/assets/sortable.Xxc_I44Q.css","/app/_app/immutable/assets/58.CVfMyNhL.css","/app/_app/immutable/nodes/59.EDsyP6y2.js","/app/_app/immutable/chunks/BKywytVe2.js","/app/_app/immutable/chunks/BH5Kp2fT2.js","/app/_app/immutable/chunks/g9-sjC_l2.js","/app/_app/immutable/chunks/DG2gT7rZ2.js","/app/_app/immutable/assets/range.Cc5sHdjV.css","/app/_app/immutable/assets/nutrition-form.CiDwrMp2.css","/app/_app/immutable/chunks/C_E3KHg-2.js","/app/_app/immutable/nodes/60.DbJyPOMK.js","/app/_app/immutable/chunks/DOgki7EK2.js","/app/_app/immutable/nodes/61.CsoWBJXo.js","/app/_app/immutable/chunks/BBmDjNEb2.js","/app/_app/immutable/chunks/CJkB_yrk2.js","/app/_app/immutable/nodes/62.CRdM6lZ-.js","/app/_app/immutable/assets/62.-I1S5tRn.css","/app/_app/immutable/nodes/63.C6Ifa1C1.js","/app/_app/immutable/nodes/64.BlAD1U2K.js","/app/_app/immutable/nodes/65.YLOK7Z1o.js","/app/_app/immutable/assets/65.HlaNKUZr.css","/app/_app/immutable/nodes/66.C9qsBSWb.js","/app/_app/immutable/chunks/CUlQONZr2.js","/app/_app/immutable/chunks/mqmQrvC72.js","/app/_app/immutable/assets/two-pane-layout.B0R-VIiS.css","/app/_app/immutable/chunks/DEgSyIgv2.js","/app/_app/immutable/chunks/CaKWAbBW2.js","/app/_app/immutable/assets/mode-selector.B-rIBL4t.css","/app/_app/immutable/chunks/DuMrw9gP2.js","/app/_app/immutable/assets/types.BnzGz1ux.css","/app/_app/immutable/chunks/DcW2JRyl2.js","/app/_app/immutable/assets/food-image.CkMJt0Aw.css","/app/_app/immutable/chunks/DLXIoRkz2.js","/app/_app/immutable/chunks/BLz2WXeC.js","/app/_app/immutable/chunks/Sb52OVMz.js","/app/_app/immutable/chunks/BKPDtw98.js","/app/_app/immutable/chunks/Bn5_FCYL2.js","/app/_app/immutable/assets/accordion.BroQLW-r.css","/app/_app/immutable/chunks/D9lzHozn.js","/app/_app/immutable/chunks/B3u-DD2v.js","/app/_app/immutable/assets/pane.tYagl3Jz.css","/app/_app/immutable/chunks/CwL-EWYT.js","/app/_app/immutable/chunks/qYFcsNWe.js","/app/_app/immutable/chunks/CqbnryEZ.js","/app/_app/immutable/chunks/B1DDWD9B.js","/app/_app/immutable/assets/food.DKsP1yYZ.css","/app/_app/immutable/assets/food.DExyRV6O.css","/app/_app/immutable/chunks/DzZQFndg.js","/app/_app/immutable/assets/food-list.DG2nnuc7.css","/app/_app/immutable/assets/results-list.D13Iduwr.css","/app/_app/immutable/assets/66.DrpPGh19.css","/app/_app/immutable/nodes/67.CZLqV4f5.js","/app/_app/immutable/chunks/BFY9L1Z_.js","/app/_app/immutable/chunks/CtJBN8y2.js","/app/_app/immutable/chunks/CJ_HqN_G.js","/app/_app/immutable/assets/food-link.B5Zl3SHB.css","/app/_app/immutable/assets/67.DQyY5T1Q.css","/app/_app/immutable/nodes/68.DjnpJb-T.js","/app/_app/immutable/assets/68.Bo4XiGEF.css","/app/_app/immutable/nodes/69.CXVp8q7F.js","/app/_app/immutable/assets/69.CzMbmsHw.css","/app/_app/immutable/nodes/70.C9zhgqTI.js","/app/_app/immutable/chunks/D43B57zC.js","/app/_app/immutable/chunks/CBMqhxGx2.js","/app/_app/immutable/chunks/hnCv5UyG.js","/app/_app/immutable/chunks/DCOeEgRm.js","/app/_app/immutable/assets/has-perm.BNDg_3IU.css","/app/_app/immutable/assets/header.BMUC-1jB.css","/app/_app/immutable/chunks/DJdf7xnK.js","/app/_app/immutable/chunks/5LEJzpx8.js","/app/_app/immutable/chunks/DLWDFuIf.js","/app/_app/immutable/assets/select-user.D3GIitxb.css","/app/_app/immutable/chunks/B4UD6C5h.js","/app/_app/immutable/chunks/TrjAWC3u.js","/app/_app/immutable/assets/form.Cka5BQ5s.css","/app/_app/immutable/assets/form.Dlqrjfq-.css","/app/_app/immutable/assets/nutrition-summary.hm0hFsXd.css","/app/_app/immutable/chunks/C2uIn59-.js","/app/_app/immutable/assets/action-card.DZ2WafIr.css","/app/_app/immutable/chunks/Dsr8z0gq.js","/app/_app/immutable/chunks/BDWS7MW4.js","/app/_app/immutable/assets/professional-upgrade.DhRDSQB1.css","/app/_app/immutable/chunks/DMgj-NiU.js","/app/_app/immutable/assets/search-bar.BToq2tT6.css","/app/_app/immutable/assets/_page.B8Vwax3O.css","/app/_app/immutable/nodes/71.C1bR4NcU.js","/app/_app/immutable/chunks/DqlcaBOi.js","/app/_app/immutable/chunks/BP7lrNzK.js","/app/_app/immutable/assets/71.p-y1F9Ht.css","/app/_app/immutable/nodes/72.BFNODRHo.js","/app/_app/immutable/chunks/D0QBoZR2.js","/app/_app/immutable/assets/avatar.B7Eb8H1q.css","/app/_app/immutable/chunks/DxwnPqMi.js","/app/_app/immutable/chunks/DNaYzSeo.js","/app/_app/immutable/nodes/73.1AKQJj1Z.js","/app/_app/immutable/chunks/D2v6g4jG.js","/app/_app/immutable/assets/user-access.tJfoNHdr.css","/app/_app/immutable/nodes/74.CXA6QWUZ.js","/app/_app/immutable/chunks/CP-bvMUT.js","/app/_app/immutable/chunks/BAy7WyRz.js","/app/_app/immutable/assets/checkbox-group.CyKBEeHu.css","/app/_app/immutable/assets/74.CYYea-r9.css","/app/_app/immutable/nodes/75.Cbz6LZ0l.js","/app/_app/immutable/assets/75.DGliLF7H.css","/app/_app/immutable/nodes/76.Ba0zq1f-.js","/app/_app/immutable/chunks/Bgsw_2hE.js","/app/_app/immutable/assets/76.C9LPSdTp.css","/app/_app/immutable/nodes/77.D73bcRze.js","/app/_app/immutable/chunks/CjGE1_hi.js","/app/_app/immutable/chunks/iYgU-sGz.js","/app/_app/immutable/chunks/D981sS0w2.js","/app/_app/immutable/assets/filter-form.CwCrIfvt.css","/app/_app/immutable/chunks/CNSfixrI.js","/app/_app/immutable/chunks/B681WsDr.js","/app/_app/immutable/assets/search-filters.BZwiAsAY.css","/app/_app/immutable/assets/search.BI4Dva-R.css","/app/_app/immutable/chunks/BuZOCL6G.js","/app/_app/immutable/chunks/TAoLre2b.js","/app/_app/immutable/chunks/CJ0y2QtP.js","/app/_app/immutable/assets/recurring-collection.TppzJyVH.css","/app/_app/immutable/chunks/z0YszRDZ.js","/app/_app/immutable/assets/77.5UgOWQe7.css","/app/_app/immutable/nodes/78.C7zvRPm7.js","/app/_app/immutable/nodes/79.RJ6N3Xlp.js","/app/_app/immutable/chunks/BDGu4ULl.js","/app/_app/immutable/assets/placeholder.BWSCHonR.css","/app/_app/immutable/chunks/DnGn-N58.js","/app/_app/immutable/assets/79.CvY2Zzdi.css","/app/_app/immutable/nodes/80.Dzl1c8c2.js","/app/_app/immutable/chunks/DaQppzL1.js","/app/_app/immutable/chunks/DxhO-kdX.js","/app/_app/immutable/chunks/B5e4OpJo.js","/app/_app/immutable/assets/delete.CCnrlmYL.css","/app/_app/immutable/assets/custom-food.DbSd0a5b.css","/app/_app/immutable/assets/create.COPWyOwG.css","/app/_app/immutable/nodes/81.DB3IzkqD.js","/app/_app/immutable/nodes/82.Cq6qdOX0.js","/app/_app/immutable/chunks/BTaZG_gq2.js","/app/_app/immutable/chunks/Dzhpx5UD2.js","/app/_app/immutable/assets/create.C4Wfjdkn.css","/app/_app/immutable/nodes/83.BdIECcOX.js","/app/_app/immutable/nodes/84.rqLvq14D.js","/app/_app/immutable/assets/84.7wk6VHLi.css","/app/_app/immutable/nodes/85.3tujhPbq.js","/app/_app/immutable/assets/85.ByvG-QKK.css","/app/_app/immutable/nodes/86.DS_NQjMk.js","/app/_app/immutable/assets/86.apTZ7i0j.css","/app/_app/immutable/nodes/87.CKs_BQsq.js","/app/_app/immutable/chunks/BGlizLwK2.js","/app/_app/immutable/nodes/88.CtmLQdoh.js","/app/_app/immutable/chunks/DWoGh4GZ2.js","/app/_app/immutable/chunks/BaQVTF3m.js","/app/_app/immutable/chunks/k84k9Qp02.js","/app/_app/immutable/chunks/BV5PfwMA2.js","/app/_app/immutable/assets/food-modal.BkIZyKWt.css","/app/_app/immutable/assets/grocery-header.BIIgvmQX.css","/app/_app/immutable/chunks/BDL1KNLz2.js","/app/_app/immutable/assets/88.Bii6RIsy.css","/app/_app/immutable/nodes/89.CgqkLAGf.js","/app/_app/immutable/chunks/DUFHbvqJ2.js","/app/_app/immutable/chunks/CiaBI-Z72.js","/app/_app/immutable/assets/calendar.B17ffgcs.css","/app/_app/immutable/chunks/DcdZQ_TX2.js","/app/_app/immutable/assets/date-picker-container.ZyosmwHX.css","/app/_app/immutable/assets/date-range-picker.YvggK0LK.css","/app/_app/immutable/assets/89.DFPe6adX.css","/app/_app/immutable/nodes/90.ZxnvOJTv.js","/app/_app/immutable/assets/90.D7v-r3pt.css","/app/_app/immutable/nodes/91.DI3Jupo9.js","/app/_app/immutable/assets/91.B2t54e1g.css","/app/_app/immutable/nodes/92.CujHPKLk.js","/app/_app/immutable/chunks/3KgrUyHr2.js","/app/_app/immutable/assets/feature.DxN6fVeT.css","/app/_app/immutable/assets/92.C8Z9BC1N.css","/app/_app/immutable/nodes/93.CTPcq1fb.js","/app/_app/immutable/assets/93.MDNvXzb6.css","/app/_app/immutable/nodes/94.C7_exoDV.js","/app/_app/immutable/chunks/Dejy07Ez2.js","/app/_app/immutable/chunks/GxMYxVJf2.js","/app/_app/immutable/assets/food-tile.BlDTVMc9.css","/app/_app/immutable/assets/94.CSL7wnYE.css","/app/_app/immutable/nodes/95.CAONOKf-.js","/app/_app/immutable/assets/95.D7pCiPKg.css","/app/_app/immutable/nodes/96.C65iULF3.js","/app/_app/immutable/chunks/CNh6es_b.js","/app/_app/immutable/chunks/BIL8YQYW2.js","/app/_app/immutable/chunks/DwK3WsCL2.js","/app/_app/immutable/assets/settings.Cv7o1MCH.css","/app/_app/immutable/chunks/nvigbOhh2.js","/app/_app/immutable/chunks/DC9OKBum2.js","/app/_app/immutable/assets/update-banner.czBZzBXU.css","/app/_app/immutable/chunks/CVTvHqEK2.js","/app/_app/immutable/assets/routing.DGHYdF_b.css","/app/_app/immutable/chunks/AsBhMvcX2.js","/app/_app/immutable/assets/week.DRhkGqtr.css","/app/_app/immutable/assets/96.C60FbOVd.css","/app/_app/immutable/nodes/97.C315DPJd.js","/app/_app/immutable/assets/97.D4n_FjAL.css","/app/_app/immutable/nodes/98.-_gLu0re.js","/app/_app/immutable/chunks/B8cQXWub2.js","/app/_app/immutable/assets/suggest-nutrition-target.BjJafrk4.css","/app/_app/immutable/assets/98.C5CI3Fep.css","/app/_app/immutable/nodes/99.5lqNSXKc.js","/app/_app/immutable/assets/99.LXzMjNqP.css","/app/_app/immutable/nodes/100.DQoW7ifU.js","/app/_app/immutable/chunks/Bfjzo74K2.js","/app/_app/immutable/assets/list.Bggc6hyR.css","/app/_app/immutable/assets/100.DHOzfIx8.css","/app/_app/immutable/nodes/101.Bx5XsOja.js","/app/_app/immutable/nodes/102.C4-4A4Xg.js","/app/_app/immutable/chunks/B3B1Mzes2.js","/app/_app/immutable/chunks/COhig5UI2.js","/app/_app/immutable/assets/102.DgqQ_WE2.css","/app/_app/immutable/nodes/103.DkqYwKuu.js","/app/_app/immutable/assets/103.ifjzaEph.css","/app/_app/immutable/nodes/104.DZ2LgbOI.js","/app/_app/immutable/chunks/C00YvGuk2.js","/app/_app/immutable/chunks/DIdjUE392.js","/app/_app/immutable/assets/104.CStvPBsg.css","/app/_app/immutable/nodes/105.CzIVf7hM.js","/app/_app/immutable/chunks/9-f7JXzK2.js","/app/_app/immutable/nodes/106.Bi2R7N7d.js","/app/_app/immutable/nodes/107.DGc9yaM0.js","/app/_app/immutable/assets/107.BmVF2UZ3.css","/app/_app/immutable/nodes/108.CTz7M_Gm.js","/app/_app/immutable/chunks/CaVcD9202.js","/app/_app/immutable/assets/edit.BdIB-Af2.css","/app/_app/immutable/nodes/109.DGQ5K8VO.js","/app/_app/immutable/nodes/110.D8JaYbV6.js","/app/_app/immutable/assets/110.BklDW5Ae.css","/app/_app/immutable/nodes/111.CPEfUXkU.js","/app/_app/immutable/chunks/VDBjb0rj2.js","/app/_app/immutable/nodes/112.KIXJwt4s.js","/app/_app/immutable/nodes/113.CHeKmZJg.js","/app/_app/immutable/nodes/114.06UXL2Yn.js","/app/_app/immutable/nodes/115.BsqCLO_7.js","/app/_app/immutable/nodes/116.D7ZaHU2M.js","/app/_app/immutable/nodes/117.BMw1YXvD.js","/app/_app/immutable/assets/117.32qaxLfC.css","/app/_app/immutable/nodes/118.jtfumgKO.js","/app/_app/immutable/assets/118.CQbJx_ay.css","/app/_app/immutable/nodes/119.DsMejuLV.js"])))=>i.map(i=>d[i]);
+import{$ as e,At as t,Bt as n,Ct as r,F as i,Ft as a,J as o,K as s,Lt as c,Ot as l,Tt as u,U as d,X as f,Y as p,a as m,cn as h,hn as g,i as _,kt as v,l as y,lt as b,pt as x,r as S,sn as C,wt as w}from"../chunks/BhSt9sSe.js";import{J as T,U as E,Yt as D,n as O,o as k,tn as A,zt as j}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";var M=`modulepreload`,N=function(e,t){return new URL(e,t).href},P={},F=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute(`nonce`));function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=N(t,n),t=s(t),t in P)return;P[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:M,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function I(){let e=new URLSearchParams(location.search);(e.has(`shortlink`)||e.has(`af_siteid`)||e.has(`awc`))&&fetch(`/api/link-appsflyer/?${e}`,{method:`POST`})}var L=(({error:e})=>{if(T.default.notify(e),e instanceof j&&e.code===404)return{code:404,message:`Not Found`}});async function R(){I(),A(D);let e=await O();if(e.length){let t=e[0];E(t.id),await k.updateCollection(t.id,e)}}var z={connect:(e=>{if(!e.length)return!0;let t=e.split(`/`);return t[0]===`connect`&&t.length===2}),number:(e=>/^\d+$/.test(e))},B=f(`
`),V=f(` `,1);function H(f,_){h(_,!0);let T=m(_,`components`,23,()=>[]),E=m(_,`data_0`,3,null),D=m(_,`data_1`,3,null),O=m(_,`data_2`,3,null),k=m(_,`data_3`,3,null),A=m(_,`data_4`,3,null);u(()=>_.stores.page.set(_.page)),w(()=>{_.stores,_.page,_.constructors,T(),_.form,E(),D(),O(),k(),A(),_.stores.page.notify()});let j=c(!1),M=c(!1),N=c(null);S(()=>{let e=_.stores.page.subscribe(()=>{b(j)&&(a(M,!0),x().then(()=>{a(N,document.title||`untitled page`,!0)}))});return a(j,!0),e});let P=n(()=>_.constructors[4]);var F=V(),I=v(F),L=e=>{let t=n(()=>_.constructors[0]);var r=p(),a=v(r);i(a,()=>b(t),(e,t)=>{y(t(e,{get data(){return E()},get form(){return _.form},get params(){return _.page.params},children:(e,t)=>{var r=p(),a=v(r),s=e=>{let t=n(()=>_.constructors[1]);var r=p(),a=v(r);i(a,()=>b(t),(e,t)=>{y(t(e,{get data(){return D()},get form(){return _.form},get params(){return _.page.params},children:(e,t)=>{var r=p(),a=v(r),s=e=>{let t=n(()=>_.constructors[2]);var r=p(),a=v(r);i(a,()=>b(t),(e,t)=>{y(t(e,{get data(){return O()},get form(){return _.form},get params(){return _.page.params},children:(e,t)=>{var r=p(),a=v(r),s=e=>{let t=n(()=>_.constructors[3]);var r=p(),a=v(r);i(a,()=>b(t),(e,t)=>{y(t(e,{get data(){return k()},get form(){return _.form},get params(){return _.page.params},children:(e,t)=>{var n=p(),r=v(n);i(r,()=>b(P),(e,t)=>{y(t(e,{get data(){return A()},get form(){return _.form},get params(){return _.page.params}}),e=>T()[4]=e,()=>{var e;return(e=T())==null?void 0:e[4]})}),o(e,n)},$$slots:{default:!0}}),e=>T()[3]=e,()=>{var e;return(e=T())==null?void 0:e[3]})}),o(e,r)},c=e=>{let t=n(()=>_.constructors[3]);var r=p(),a=v(r);i(a,()=>b(t),(e,t)=>{y(t(e,{get data(){return k()},get form(){return _.form},get params(){return _.page.params}}),e=>T()[3]=e,()=>{var e;return(e=T())==null?void 0:e[3]})}),o(e,r)};d(a,e=>{_.constructors[4]?e(s):e(c,-1)}),o(e,r)},$$slots:{default:!0}}),e=>T()[2]=e,()=>{var e;return(e=T())==null?void 0:e[2]})}),o(e,r)},c=e=>{let t=n(()=>_.constructors[2]);var r=p(),a=v(r);i(a,()=>b(t),(e,t)=>{y(t(e,{get data(){return O()},get form(){return _.form},get params(){return _.page.params}}),e=>T()[2]=e,()=>{var e;return(e=T())==null?void 0:e[2]})}),o(e,r)};d(a,e=>{_.constructors[3]?e(s):e(c,-1)}),o(e,r)},$$slots:{default:!0}}),e=>T()[1]=e,()=>{var e;return(e=T())==null?void 0:e[1]})}),o(e,r)},c=e=>{let t=n(()=>_.constructors[1]);var r=p(),a=v(r);i(a,()=>b(t),(e,t)=>{y(t(e,{get data(){return D()},get form(){return _.form},get params(){return _.page.params}}),e=>T()[1]=e,()=>{var e;return(e=T())==null?void 0:e[1]})}),o(e,r)};d(a,e=>{_.constructors[2]?e(s):e(c,-1)}),o(e,r)},$$slots:{default:!0}}),e=>T()[0]=e,()=>{var e;return(e=T())==null?void 0:e[0]})}),o(e,r)},R=e=>{let t=n(()=>_.constructors[0]);var r=p(),a=v(r);i(a,()=>b(t),(e,t)=>{y(t(e,{get data(){return E()},get form(){return _.form},get params(){return _.page.params}}),e=>T()[0]=e,()=>{var e;return(e=T())==null?void 0:e[0]})}),o(e,r)};d(I,e=>{_.constructors[1]?e(L):e(R,-1)});var z=t(I,2),H=t=>{var n=B(),i=l(n),a=t=>{var n=e();r(()=>s(n,b(N))),o(t,n)};d(i,e=>{b(M)&&e(a)}),g(n),o(t,n)};d(z,e=>{b(j)&&e(H)}),o(f,F),C()}var U=_(H),W=[()=>F(()=>import(`../nodes/0.uKbgA_l7.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),()=>F(()=>import(`../nodes/1.BXju74JG.js`),__vite__mapDeps([25,1,2,5,6,7,26,27,28,29]),import.meta.url),()=>F(()=>import(`../nodes/2.BiuGRjVb.js`),__vite__mapDeps([30,1,2,3,4,5,6,7,8,31,32]),import.meta.url),()=>F(()=>import(`../nodes/3.B3FsyqN3.js`),__vite__mapDeps([33,1,3,2,4,5,6,7,8,34,13,14,15,35,22,36,37,38]),import.meta.url),()=>F(()=>import(`../nodes/4.CZAHAUHI.js`),__vite__mapDeps([39,1,2,3,4,5,6,7,8,40,41,42,43,44,45,17,46,47,48,49,14,50,51,52,22,53,54,55,56,57,58,59,60,61,62,63,64,11,13,15,65,66,34,35,36,37,67,68,69,70,71,72,21,73,74,75,76,77,78,79,80,81,82,83,84,85,31,86,87,88]),import.meta.url),()=>F(()=>import(`../nodes/5.XcbIfXIK.js`),__vite__mapDeps([89,1,5,90,91]),import.meta.url),()=>F(()=>import(`../nodes/6.BnPNNNgI.js`),__vite__mapDeps([92,1,3,2,4,5,6,7,8,34,13,14,15,35,22,36,37]),import.meta.url),()=>F(()=>import(`../nodes/7.Iy6th9OI.js`),__vite__mapDeps([93,1,2,3,4,5,6,7,8,94]),import.meta.url),()=>F(()=>import(`../nodes/8.D5D0w8El.js`),__vite__mapDeps([95,1,2,3,4,5,6,7,8,56,57,94]),import.meta.url),()=>F(()=>import(`../nodes/9.C6hyjH1i.js`),__vite__mapDeps([96,1,3,2,4,5,6,7,8,9,10,11,12,83]),import.meta.url),()=>F(()=>import(`../nodes/10.A4uO0eA-.js`),__vite__mapDeps([97,1,3,2,4,5,6,7,8,9,10,11,12,83]),import.meta.url),()=>F(()=>import(`../nodes/11.C1Dwxnsl.js`),__vite__mapDeps([98,1,3,2,4,5,6,7,8,99,57,67,100,101,102,103,104,105,106,107,108,16,17,9,10,11,12,18,19,20,21,22,23,24,54,55,109,110,111,112,71,113,14,114,63,115,116,117,118]),import.meta.url),()=>F(()=>import(`../nodes/12.rhyrtrxX.js`),__vite__mapDeps([119,1,2,3,4,5,6,7,8,14,99,57,67,100,101,102,103,104,105,120,10,35,22,36,121,122,123,34,13,15,37,124,125,126,127,9,11,12,83,128,129,130,131,132,133,134,135,136,137,21,69,71,54,55,138,139,140,141,142,143]),import.meta.url),()=>F(()=>import(`../nodes/13.BbJK0_pX.js`),__vite__mapDeps([144,1,3,2,4,5,6,7,8,9,10,11,12,83]),import.meta.url),()=>F(()=>import(`../nodes/14.B3ZjD0a9.js`),__vite__mapDeps([145,1,3,2,4,5,6,7,8,112,71,113,14,114,63,115,116,117,118,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,22,23,24,54,55,109,110,111]),import.meta.url),()=>F(()=>import(`../nodes/15.C-9011Ts.js`),__vite__mapDeps([147,1,3,2,4,5,6,7,8,107,108,16,17,9,10,11,12,18,19,20,21,22,23,24,54,55,109,110,111,112,71,113,14,114,63,115,116,117,118]),import.meta.url),()=>F(()=>import(`../nodes/16.D6Es0qok.js`),__vite__mapDeps([148,1,3,2,4,5,6,7,8,9,10,11,12,83,112,71,113,14,114,63,115,116,117,118,146,20,69,70,107,108,16,17,18,19,21,22,23,24,54,55,109,110,111]),import.meta.url),()=>F(()=>import(`../nodes/17.f77PYdwT.js`),__vite__mapDeps([149,1,2,3,4,5,6,7,8]),import.meta.url),()=>F(()=>import(`../nodes/18.B-4zxNWB.js`),__vite__mapDeps([150,1,2,4]),import.meta.url),()=>F(()=>import(`../nodes/19.CZ1DMC1V.js`),__vite__mapDeps([151,1,2,3,4,5,6,7,8,19,64,35,22,36,152,153]),import.meta.url),()=>F(()=>import(`../nodes/20.LX5cVnZT.js`),__vite__mapDeps([154,1,2,3,4,5,6,7,8,19,64,99,57,67,100,101,102,103,104,105,152,155,156,157,158]),import.meta.url),()=>F(()=>import(`../nodes/21.eBjk7AG0.js`),__vite__mapDeps([159,1,2,3,4,5,6,7,8,20,9,10,11,12,35,22,36,152,160,161,162,163]),import.meta.url),()=>F(()=>import(`../nodes/22.FmbvcfYx.js`),__vite__mapDeps([164,1,2,3,4,5,6,7,8,31,165]),import.meta.url),()=>F(()=>import(`../nodes/23.C0wtlKWw.js`),__vite__mapDeps([166,1,2,3,4,5,6,7,8,167,20,64,9,10,11,12,35,22,36,160,161,162,168,169,170]),import.meta.url),()=>F(()=>import(`../nodes/24.C2rp7Dwu.js`),__vite__mapDeps([171,1,3,2,4,5,6,7,8,172,20,9,10,11,12,173]),import.meta.url),()=>F(()=>import(`../nodes/25.Bfy7jfT9.js`),__vite__mapDeps([174,1,2,3,4,5,6,7,8,35,22,36,34,13,14,15,37,56,57,109,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,23,24,54,55,110,111,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,114,63,115,190,191]),import.meta.url),()=>F(()=>import(`../nodes/26.C3-Y3tWg.js`),__vite__mapDeps([192,1,3,2,4,5,6,7,8,9,10,11,12,14,56,57,183,20,54,55,109,184,70,185,186,193,194,195]),import.meta.url),()=>F(()=>import(`../nodes/27.BpxtYox7.js`),__vite__mapDeps([196,1,3,2,4,5,6,7,8,14,34,13,15,35,22,36,37,56,57,107,108,16,17,9,10,11,12,18,19,20,21,23,24,54,55,109,110,111,197,63,183,184,70,185,186,198,105,199,200,201,202]),import.meta.url),()=>F(()=>import(`../nodes/28.QRe7a6jD.js`),__vite__mapDeps([203,1,2,3,4,5,6,7,8,20,204,9,10,11,12,14,35,22,36,162,205,206,207,31,208]),import.meta.url),()=>F(()=>import(`../nodes/29.DNeVGvxo.js`),__vite__mapDeps([209,1,3,2,4,5,6,7,8,210,20,107,108,16,17,9,10,11,12,18,19,21,22,23,24,54,55,109,110,111,211,212,71,136,137,34,13,14,15,35,36,37,69,105,138,213,214,215,104,85,31,86,87,184,70,185,205,206,216,217]),import.meta.url),()=>F(()=>import(`../nodes/30.p6xlpZbj.js`),__vite__mapDeps([218,1,3,2,4,5,6,7,8,210,14,219,201,220]),import.meta.url),()=>F(()=>import(`../nodes/31.RcWJKm_y.js`),__vite__mapDeps([221,1,2,3,4,5,6,7,8,14,106,107,108,16,17,9,10,11,12,18,19,20,21,22,23,24,54,55,109,110,111,115,176,177,198,105,199,200,222,197,63,35,36,34,13,15,37,56,57,183,184,70,185,186,223,224]),import.meta.url),()=>F(()=>import(`../nodes/32.Bjud94KB.js`),__vite__mapDeps([225,1,2,3,4,5,6,7,8,34,13,14,15,35,22,36,37,107,108,16,17,9,10,11,12,18,19,20,21,23,24,54,55,109,110,111,175,56,57,176,177,178,179,180,181,182]),import.meta.url),()=>F(()=>import(`../nodes/33.MdJn3fh6.js`),__vite__mapDeps([226,1,2,3,4,5,6,7,8,227,63,9,10,11,12,56,57,146,20,69,70,107,108,16,17,18,19,21,22,23,24,54,55,109,110,111,183,184,185,186,205,206,228,229]),import.meta.url),()=>F(()=>import(`../nodes/34.BuLWK4a0.js`),__vite__mapDeps([230,1,2,3,4,5,6,7,8,167,20,9,10,11,12,205,206,204,14,35,22,36,162,207,31,208]),import.meta.url),()=>F(()=>import(`../nodes/35.ChQJLoN5.js`),__vite__mapDeps([231,1,2,3,4,5,6,7,8,227,14,34,13,15,35,22,36,37,56,57,106,109,107,108,16,17,9,10,11,12,18,19,20,21,23,24,54,55,110,111,115,188,187,189,114,63,190,191,198,105,199,200,222,197,183,184,70,185,186,223,228,229]),import.meta.url),()=>F(()=>import(`../nodes/36.D0BzxiEb.js`),__vite__mapDeps([232,1,3,2,4,5,6,7,8,9,10,11,12,14,100,106,146,20,69,70,107,108,16,17,18,19,21,22,23,24,54,55,109,110,111,155,156,157,223,57,233,234,235,236]),import.meta.url),()=>F(()=>import(`../nodes/37.Cy8eODvY.js`),__vite__mapDeps([237,1,3,2,4,5,6,7,8,238,19,20,9,10,11,12,14,18,21,22,23,107,108,16,17,24,54,55,109,110,111,155,156,157,239,240,241,242]),import.meta.url),()=>F(()=>import(`../nodes/38.DMLWcAPa.js`),__vite__mapDeps([243,1,5,14,34,3,2,4,6,7,8,13,15,35,22,36,37,84,100,107,108,16,17,9,10,11,12,18,19,20,21,23,24,54,55,109,110,111,205,206,239,244]),import.meta.url),()=>F(()=>import(`../nodes/39.CL55oVYv.js`),__vite__mapDeps([245,1,2,3,4,5,6,7,8,19,20,14,22,135,34,13,15,35,36,37,136,137,21,69,71,54,55,105,138,146,70,107,108,16,17,9,10,11,12,18,23,24,109,110,111,155,156,157,160,161,204,162,205,206,213,214,240,241,246]),import.meta.url),()=>F(()=>import(`../nodes/40.37_A35I-.js`),__vite__mapDeps([247,1,3,2,4,5,6,7,8,9,10,11,12,146,20,69,70,107,108,16,17,18,19,21,22,23,24,54,55,109,110,111,205,206,248,183,184,185,186,249,240,241]),import.meta.url),()=>F(()=>import(`../nodes/41.LZlI4CTo.js`),__vite__mapDeps([250,1,3,2,4,5,6,7,8,14,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,22,23,24,54,55,109,110,111,204,35,36,162,205,206,248,183,184,185,186,249,240,241]),import.meta.url),()=>F(()=>import(`../nodes/42.DTwg8Rt9.js`),__vite__mapDeps([251,1,3,2,4,5,6,7,8,14,56,57,106,115,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,22,23,24,54,55,109,110,111,155,156,157,223]),import.meta.url),()=>F(()=>import(`../nodes/43.XGvXBjG6.js`),__vite__mapDeps([252,1,2,3,4,5,6,7,8,19,14,34,13,15,35,22,36,37,78,79,80,99,57,67,100,101,102,103,104,105,107,108,16,17,9,10,11,12,18,20,21,23,24,54,55,109,110,111,155,156,157,240,241,253]),import.meta.url),()=>F(()=>import(`../nodes/44.D7nWGsFc.js`),__vite__mapDeps([254,1,3,2,4,5,6,7,8,9,10,11,12,14,146,20,69,70,107,108,16,17,18,19,21,22,23,24,54,55,109,110,111,255,256,257]),import.meta.url),()=>F(()=>import(`../nodes/45.DJosnLxc.js`),__vite__mapDeps([258,1,3,2,4,5,6,7,8,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,22,23,24,54,55,109,110,111,211,212,71,136,137,34,13,14,15,35,36,37,105,138,213,214,215,104,85,31,86,87,184,185,205,206,216,217]),import.meta.url),()=>F(()=>import(`../nodes/46.tTN3seEH.js`),__vite__mapDeps([259,1,3,2,4,5,6,7,8,227,14,56,57,100,106,114,63,115,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,22,23,24,54,55,109,110,111,260,261,74,75,76,77,262,263,264]),import.meta.url),()=>F(()=>import(`../nodes/47.oN3VECeG.js`),__vite__mapDeps([265,1,3,2,4,5,6,7,8,14,34,13,15,35,22,36,37,100,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,23,24,54,55,109,110,111,235,266,267]),import.meta.url),()=>F(()=>import(`../nodes/48.DKLpRQ2I.js`),__vite__mapDeps([268,1,3,2,4,5,6,7,8,14,34,13,15,35,22,36,37,56,57,109,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,23,24,54,55,110,111,183,184,185,186,198,105,199,200]),import.meta.url),()=>F(()=>import(`../nodes/49.KXvL_eD4.js`),__vite__mapDeps([269,1,2,4]),import.meta.url),()=>F(()=>import(`../nodes/50.C3RjktRu.js`),__vite__mapDeps([270,1,3,2,4,5,6,7,8,62,9,10,11,12,34,13,14,15,35,22,36,37,146,20,69,70,107,108,16,17,18,19,21,23,24,54,55,109,110,111,183,184,185,186,188,193,194,198,105,199,200,271]),import.meta.url),()=>F(()=>import(`../nodes/51.CsofGYU4.js`),__vite__mapDeps([272,1,3,2,4,5,6,7,8,20,104,83,99,57,67,100,101,102,103,105,141,139,140,273,137,47,210,64,10,14,34,13,15,35,22,36,37,78,79,80,54,55,86,274,71,179,180,275,276,277,278,279,280,281,282,283]),import.meta.url),()=>F(()=>import(`../nodes/52.C1yvpHJM.js`),__vite__mapDeps([284,1,5,6,273,2,3,4,7,8,137,47,210,20,64,10,14,34,13,15,35,22,36,37,78,79,80,54,55,86,140,104,100,99,57,67,101,102,103,105,274,71,179,180,275,276,277]),import.meta.url),()=>F(()=>import(`../nodes/53.DR3DawHO.js`),__vite__mapDeps([285,1,5,6,106,3,2,4,7,8,273,137,47,210,20,64,10,14,34,13,15,35,22,36,37,78,79,80,54,55,86,140,104,100,99,57,67,101,102,103,105,274,71,179,180,275,276,281,139,282,286,287,280,288,9,11,12,289,290,291]),import.meta.url),()=>F(()=>import(`../nodes/54.Dy46ph59.js`),__vite__mapDeps([292,1,2,3,4,5,6,7,8,100,99,57,67,101,102,103,104,105,219,201,293]),import.meta.url),()=>F(()=>import(`../nodes/55.CMp9XOOX.js`),__vite__mapDeps([294,1,3,2,4,5,6,7,8,14,28,273,137,47,210,20,64,10,34,13,15,35,22,36,37,78,79,80,54,55,86,140,104,100,99,57,67,101,102,103,105,274,71,179,180,275,276,281,139,282,295,287,280,296,297]),import.meta.url),()=>F(()=>import(`../nodes/56.CCGR311L.js`),__vite__mapDeps([298,1,5,6,106,3,2,4,7,8,141,57,139,140,104,100,99,67,101,102,103,105,273,137,47,210,20,64,10,14,34,13,15,35,22,36,37,78,79,80,54,55,86,274,71,179,180,275,276,299,9,11,12,300,83,301]),import.meta.url),()=>F(()=>import(`../nodes/57.DE0cYHYC.js`),__vite__mapDeps([302,1,3,2,4,5,6,7,8,9,10,11,12,104,22,99,57,67,100,101,102,103,105,255,256,273,137,47,210,20,64,14,34,13,15,35,36,37,78,79,80,54,55,86,140,274,71,179,180,275,276,303,304,282,305,306]),import.meta.url),()=>F(()=>import(`../nodes/58.Bp_56he1.js`),__vite__mapDeps([307,1,3,2,4,5,6,7,8,19,26,140,104,100,99,57,67,101,102,103,105,273,137,47,210,20,64,10,14,34,13,15,35,22,36,37,78,79,80,54,55,86,274,71,179,180,275,276,303,308,309,310]),import.meta.url),()=>F(()=>import(`../nodes/59.EDsyP6y2.js`),__vite__mapDeps([311,1,3,2,4,5,6,7,8,104,34,13,14,15,35,22,36,37,121,10,122,139,140,100,99,57,67,101,102,103,105,273,137,47,210,20,64,78,79,80,54,55,86,274,71,179,180,275,276,280,281,282,312,141,313,9,11,12,18,19,21,23,205,206,228,229,255,256,314,315,316,317,318]),import.meta.url),()=>F(()=>import(`../nodes/60.DbJyPOMK.js`),__vite__mapDeps([319,1,5,6,106,3,2,4,7,8,141,57,139,140,104,100,99,67,101,102,103,105,273,137,47,210,20,64,10,14,34,13,15,35,22,36,37,78,79,80,54,55,86,274,71,179,180,275,276,320,300,9,11,12,83,205,206,301]),import.meta.url),()=>F(()=>import(`../nodes/61.CsoWBJXo.js`),__vite__mapDeps([321,1,3,2,4,5,6,7,8,9,10,11,12,14,83,205,206,273,137,47,210,20,64,34,13,15,35,22,36,37,78,79,80,54,55,86,140,104,100,99,57,67,101,102,103,105,274,71,179,180,275,276,322,323]),import.meta.url),()=>F(()=>import(`../nodes/62.CRdM6lZ-.js`),__vite__mapDeps([324,1,2,3,4,5,6,7,8,14,56,57,106,115,114,63,117,188,189,190,273,137,47,210,20,64,10,34,13,15,35,22,36,37,78,79,80,54,55,86,140,104,100,99,67,101,102,103,105,274,71,179,180,275,276,325]),import.meta.url),()=>F(()=>import(`../nodes/63.C6Ifa1C1.js`),__vite__mapDeps([326,1,5,6,273,2,3,4,7,8,137,47,210,20,64,10,14,34,13,15,35,22,36,37,78,79,80,54,55,86,140,104,100,99,57,67,101,102,103,105,274,71,179,180,275,276,279]),import.meta.url),()=>F(()=>import(`../nodes/64.BlAD1U2K.js`),__vite__mapDeps([327,1,5,6,273,2,3,4,7,8,137,47,210,20,64,10,14,34,13,15,35,22,36,37,78,79,80,54,55,86,140,104,100,99,57,67,101,102,103,105,274,71,179,180,275,276,278]),import.meta.url),()=>F(()=>import(`../nodes/65.YLOK7Z1o.js`),__vite__mapDeps([328,1,3,2,4,5,6,7,8,20,52,107,108,16,17,9,10,11,12,18,19,21,22,23,24,54,55,109,110,111,193,194,205,206,329]),import.meta.url),()=>F(()=>import(`../nodes/66.C9qsBSWb.js`),__vite__mapDeps([330,1,3,2,4,5,6,7,8,65,13,14,15,66,107,108,16,17,9,10,11,12,18,19,20,21,22,23,24,54,55,109,110,111,331,34,35,36,37,308,309,332,333,334,67,57,121,122,120,99,100,101,102,103,104,105,123,124,125,126,127,83,128,129,130,131,132,133,134,135,136,137,69,71,138,139,140,141,142,143,335,336,337,338,339,340,341,342,238,41,156,343,344,212,213,214,215,49,345,346,74,75,76,77,78,79,80,193,194,240,241,274,179,180,275,303,347,348,349,350,282,351,352,353,354,355,356,357,358,359]),import.meta.url),()=>F(()=>import(`../nodes/67.CZLqV4f5.js`),__vite__mapDeps([360,1,2,3,4,5,6,7,8,19,20,52,9,10,11,12,14,65,13,15,66,21,22,34,35,36,37,67,57,107,108,16,17,18,23,24,54,55,109,110,111,193,194,205,206,361,167,104,124,71,123,102,125,121,122,126,127,83,128,129,136,137,69,105,138,213,214,301,339,340,362,363,364,365]),import.meta.url),()=>F(()=>import(`../nodes/68.DjnpJb-T.js`),__vite__mapDeps([366,1,3,2,4,5,6,7,8,17,20,9,10,11,12,107,108,16,18,19,21,22,23,24,54,55,109,110,111,367]),import.meta.url),()=>F(()=>import(`../nodes/69.CXVp8q7F.js`),__vite__mapDeps([368,1,3,2,4,5,6,7,8,342,238,41,156,343,344,20,212,71,136,137,21,22,34,13,14,15,35,36,37,69,54,55,105,138,213,214,215,9,10,11,12,49,345,346,65,66,18,19,23,124,67,57,74,75,76,77,78,79,80,83,100,99,101,102,103,104,121,122,127,128,130,131,139,140,132,133,134,135,141,142,193,194,240,241,274,179,180,275,303,337,338,339,340,347,332,348,108,349,350,282,351,352,353,354,28,107,16,17,24,109,110,111,331,308,309,333,341,355,369]),import.meta.url),()=>F(()=>import(`../nodes/70.C9zhgqTI.js`),__vite__mapDeps([370,1,5,6,14,101,3,2,4,7,8,371,238,343,372,156,19,373,44,374,9,10,11,12,18,20,21,22,23,83,193,194,375,59,35,36,100,99,57,67,102,103,104,105,121,122,123,34,13,15,37,124,125,126,127,128,129,130,131,139,140,132,133,134,135,136,137,69,71,54,55,138,141,142,120,143,274,179,180,275,331,65,66,308,309,332,333,347,376,172,344,377,155,157,240,241,348,108,349,378,379,78,79,80,50,380,381,49,205,206,213,214,382,63,383,384,385,75,76,107,16,17,24,109,110,111,386,387,388,389,390,391,51,52,53,392,393]),import.meta.url),()=>F(()=>import(`../nodes/71.C1bR4NcU.js`),__vite__mapDeps([394,1,2,3,4,5,6,7,8,19,343,172,48,49,14,50,51,52,22,53,54,55,56,57,58,377,64,65,13,15,66,34,35,36,37,69,72,21,71,73,75,76,78,79,80,90,100,106,107,108,16,17,9,10,11,12,18,20,23,24,109,110,111,136,137,105,138,135,213,214,240,241,260,261,74,77,262,263,274,179,180,275,386,387,381,101,121,122,125,126,205,206,378,99,67,102,103,104,379,380,382,63,383,384,395,396,397]),import.meta.url),()=>F(()=>import(`../nodes/72.BFNODRHo.js`),__vite__mapDeps([398,1,3,2,4,5,6,7,8,133,20,9,10,11,12,104,35,22,36,71,109,136,137,21,34,13,14,15,37,69,54,55,105,138,135,205,206,213,214,248,146,70,107,108,16,17,18,19,23,24,110,111,183,184,185,186,249,240,241,399,78,79,80,216,212,215,400,401,402,83]),import.meta.url),()=>F(()=>import(`../nodes/73.1AKQJj1Z.js`),__vite__mapDeps([403,1,3,2,4,5,6,7,8,104,109,205,206,248,9,10,11,12,69,146,20,70,107,108,16,17,18,19,21,22,23,24,54,55,110,111,183,184,185,186,249,240,241,401,404,35,36,83,402,405]),import.meta.url),()=>F(()=>import(`../nodes/74.CXA6QWUZ.js`),__vite__mapDeps([406,1,3,2,4,5,6,7,8,210,64,9,10,11,12,345,22,346,34,13,14,15,35,36,37,70,50,109,107,108,16,17,18,19,20,21,23,24,54,55,110,111,162,168,169,183,184,185,186,205,206,216,212,71,136,137,69,105,138,213,214,215,255,256,379,78,79,80,179,180,380,402,83,404,405,407,63,56,57,408,409,410]),import.meta.url),()=>F(()=>import(`../nodes/75.Cbz6LZ0l.js`),__vite__mapDeps([411,1,2,3,4,5,6,7,8,172,20,9,10,11,12,14,65,13,15,66,22,34,35,36,37,71,75,76,100,107,108,16,17,18,19,21,23,24,54,55,109,110,111,136,137,69,105,138,155,156,157,193,194,213,214,386,387,396,407,63,50,56,57,412]),import.meta.url),()=>F(()=>import(`../nodes/76.Ba0zq1f-.js`),__vite__mapDeps([413,1,3,2,4,5,6,7,8,238,49,345,22,346,11,14,65,13,15,66,18,19,20,21,23,34,35,36,37,75,76,74,77,99,57,67,100,101,102,103,104,105,106,107,108,16,17,9,10,12,24,54,55,109,110,111,352,353,391,51,52,53,392,414,415]),import.meta.url),()=>F(()=>import(`../nodes/77.D73bcRze.js`),__vite__mapDeps([416,1,3,2,4,5,6,7,8,238,417,156,19,43,418,9,10,11,12,104,419,345,22,346,34,13,14,15,35,36,37,102,103,305,315,316,420,46,374,18,20,21,23,83,193,194,375,342,41,343,344,212,71,136,137,69,54,55,105,138,213,214,215,49,65,66,124,67,57,74,75,76,77,78,79,80,100,99,101,121,122,127,128,130,131,139,140,132,133,134,135,141,142,240,241,274,179,180,275,303,337,338,339,340,347,332,348,108,349,350,282,351,352,353,354,51,52,53,123,125,126,129,120,143,308,309,356,357,414,421,422,28,423,424,425,106,109,107,16,17,24,110,205,206,216,278,318,331,333,391,392,426,427,167,428,429,430]),import.meta.url),()=>F(()=>import(`../nodes/78.C7zvRPm7.js`),__vite__mapDeps([431,1,2,3,4,5,6,7,8,238,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,22,23,24,54,55,109,110,111,183,184,185,186,205,206,352,103,104,353,426,193,194]),import.meta.url),()=>F(()=>import(`../nodes/79.RJ6N3Xlp.js`),__vite__mapDeps([432,1,2,3,4,5,6,7,8,238,343,20,9,10,11,12,14,35,22,36,34,13,15,37,124,51,52,53,106,107,108,16,17,18,19,21,23,24,54,55,109,110,111,288,289,331,65,66,308,309,332,333,339,340,341,342,41,156,344,212,71,136,137,69,105,138,213,214,215,49,345,346,67,57,74,75,76,77,78,79,80,83,100,99,101,102,103,104,121,122,127,128,130,131,139,140,132,133,134,135,141,142,193,194,240,241,274,179,180,275,303,337,338,347,348,349,350,282,351,352,353,354,355,356,357,421,433,434,435,436]),import.meta.url),()=>F(()=>import(`../nodes/80.Dzl1c8c2.js`),__vite__mapDeps([437,1,3,2,4,5,6,7,8,104,10,433,124,67,57,99,100,101,102,103,105,434,438,238,19,9,11,12,345,22,346,14,35,36,134,121,122,141,139,140,205,206,291,314,363,439,40,20,81,78,79,80,82,109,107,108,16,17,18,21,23,24,54,55,110,111,136,137,34,13,15,37,69,71,138,135,178,179,180,181,183,184,70,185,186,193,194,213,214,216,212,215,249,240,241,261,74,75,76,77,262,331,65,66,308,309,332,333,339,340,421,440,441,442,443]),import.meta.url),()=>F(()=>import(`../nodes/81.DB3IzkqD.js`),__vite__mapDeps([444,1,3,2,4,5,6,7,8,67,57,433,10,124,99,100,101,102,103,104,105,434,439,40,19,20,9,11,12,14,35,22,36,81,78,79,80,82,109,107,108,16,17,18,21,23,24,54,55,110,111,136,137,34,13,15,37,69,71,138,135,178,179,180,181,183,184,70,185,186,193,194,205,206,213,214,216,212,215,249,240,241,261,74,75,76,77,262,331,65,66,308,309,332,333,339,340,421,440,441,442,438,238,345,346,134,121,122,141,139,140,291,314,363,443]),import.meta.url),()=>F(()=>import(`../nodes/82.Cq6qdOX0.js`),__vite__mapDeps([445,1,3,2,4,5,6,7,8,104,435,124,67,57,99,100,101,102,103,105,446,238,417,156,19,43,418,9,10,11,12,419,345,22,346,34,13,14,15,35,36,37,305,315,316,420,46,374,18,20,21,23,83,193,194,375,342,41,343,344,212,71,136,137,69,54,55,138,213,214,215,49,65,66,74,75,76,77,78,79,80,121,122,127,128,130,131,139,140,132,133,134,135,141,142,240,241,274,179,180,275,303,337,338,339,340,347,332,348,108,349,350,282,351,352,353,354,51,52,53,123,125,126,129,120,143,308,309,356,357,414,421,422,28,423,424,167,447,205,206,255,256,266,278,331,333,433,434,439,40,81,82,109,107,16,17,24,110,111,178,181,183,184,70,185,186,216,249,261,262,440,441,442,448]),import.meta.url),()=>F(()=>import(`../nodes/83.BdIECcOX.js`),__vite__mapDeps([449,1,3,2,4,5,6,7,8,67,57,228,229,433,10,124,99,100,101,102,103,104,105,434,439,40,19,20,9,11,12,14,35,22,36,81,78,79,80,82,109,107,108,16,17,18,21,23,24,54,55,110,111,136,137,34,13,15,37,69,71,138,135,178,179,180,181,183,184,70,185,186,193,194,205,206,213,214,216,212,215,249,240,241,261,74,75,76,77,262,331,65,66,308,309,332,333,339,340,421,440,441,442,446,238,417,156,43,418,419,345,346,305,315,316,420,46,374,83,375,342,41,343,344,49,121,122,127,128,130,131,139,140,132,133,134,141,142,274,275,303,337,338,347,348,349,350,282,351,352,353,354,51,52,53,123,125,126,129,120,143,356,357,414,422,28,423,424,167,447,255,256,266,278,435,448]),import.meta.url),()=>F(()=>import(`../nodes/84.rqLvq14D.js`),__vite__mapDeps([450,1,3,2,4,5,6,7,8,27,35,22,36,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,23,24,54,55,109,110,111,435,124,67,57,99,100,101,102,103,104,105,439,40,14,81,78,79,80,82,136,137,34,13,15,37,71,138,135,178,179,180,181,183,184,185,186,193,194,205,206,213,214,216,212,215,249,240,241,261,74,75,76,77,262,331,65,66,308,309,332,333,339,340,421,433,434,440,441,442,446,238,417,156,43,418,419,345,346,305,315,316,420,46,374,83,375,342,41,343,344,49,121,122,127,128,130,131,139,140,132,133,134,141,142,274,275,303,337,338,347,348,349,350,282,351,352,353,354,51,52,53,123,125,126,129,120,143,356,357,414,422,28,423,424,167,447,255,256,266,278,448,451]),import.meta.url),()=>F(()=>import(`../nodes/85.3tujhPbq.js`),__vite__mapDeps([452,1,2,3,4,5,6,7,8,418,19,9,10,11,12,104,419,345,22,346,34,13,14,15,35,36,37,102,103,305,315,316,420,65,66,51,52,53,107,108,16,17,18,20,21,23,24,54,55,109,110,111,331,308,309,332,333,334,67,57,121,122,120,99,100,101,105,123,124,125,126,127,83,128,129,130,131,132,133,134,135,136,137,69,71,138,139,140,141,142,143,335,336,337,338,339,340,341,342,238,41,156,343,344,212,213,214,215,49,74,75,76,77,78,79,80,193,194,240,241,274,179,180,275,303,347,348,349,350,282,351,352,353,354,355,356,357,358,422,28,421,423,453]),import.meta.url),()=>F(()=>import(`../nodes/86.DS_NQjMk.js`),__vite__mapDeps([454,1,2,3,4,5,6,7,8,342,238,41,156,343,344,20,212,71,136,137,21,22,34,13,14,15,35,36,37,69,54,55,105,138,213,214,215,9,10,11,12,49,345,346,65,66,18,19,23,124,67,57,74,75,76,77,78,79,80,83,100,99,101,102,103,104,121,122,127,128,130,131,139,140,132,133,134,135,141,142,193,194,240,241,274,179,180,275,303,337,338,339,340,347,332,348,108,349,350,282,351,352,353,354,106,455]),import.meta.url),()=>F(()=>import(`../nodes/87.CKs_BQsq.js`),__vite__mapDeps([456,1,2,3,4,5,6,7,8,457]),import.meta.url),()=>F(()=>import(`../nodes/88.CtmLQdoh.js`),__vite__mapDeps([458,1,3,2,4,5,6,7,8,238,19,14,65,13,15,66,22,18,20,21,23,34,35,36,37,67,57,99,100,101,102,103,104,105,361,167,124,71,123,125,10,121,122,126,127,9,11,12,83,128,129,136,137,69,54,55,138,213,214,301,339,340,362,205,206,363,364,457,459,45,460,49,78,79,80,107,108,16,17,24,109,110,111,335,336,351,461,462,418,419,345,346,305,315,316,420,52,72,73,74,75,76,77,51,53,130,131,337,338,463,464,465,466]),import.meta.url),()=>F(()=>import(`../nodes/89.CgqkLAGf.js`),__vite__mapDeps([467,1,3,2,4,5,6,7,8,238,344,14,35,22,36,34,13,15,37,100,99,57,67,101,102,103,104,105,135,136,137,21,69,71,54,55,138,141,139,140,240,18,19,20,23,241,274,179,180,275,279,331,65,66,308,309,332,333,382,343,63,9,10,11,12,205,206,213,214,383,395,457,459,45,460,49,124,78,79,80,107,108,16,17,24,109,110,111,127,83,128,335,336,339,340,351,361,167,123,125,121,122,126,129,301,362,363,364,461,462,418,419,345,346,305,315,316,420,52,72,73,74,75,76,77,51,53,130,131,337,338,463,464,468,469,210,470,471,184,70,185,472,473,474]),import.meta.url),()=>F(()=>import(`../nodes/90.ZxnvOJTv.js`),__vite__mapDeps([475,1,3,2,4,5,6,7,8,345,22,346,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,23,24,54,55,109,110,111,155,156,157,260,261,74,75,76,77,262,263,476]),import.meta.url),()=>F(()=>import(`../nodes/91.DI3Jupo9.js`),__vite__mapDeps([477,1,3,2,4,5,6,7,8,172,20,9,10,11,12,14,109,107,108,16,17,18,19,21,22,23,24,54,55,110,111,193,194,478]),import.meta.url),()=>F(()=>import(`../nodes/92.CujHPKLk.js`),__vite__mapDeps([479,1,3,2,4,5,6,7,8,44,45,46,460,60,14,107,108,16,17,9,10,11,12,18,19,20,21,22,23,24,54,55,109,110,111,114,63,115,188,219,201,277,278,279,347,332,465,480,481,482]),import.meta.url),()=>F(()=>import(`../nodes/93.CTPcq1fb.js`),__vite__mapDeps([483,1,3,2,4,5,6,7,8,42,61,63,64,107,108,16,17,9,10,11,12,18,19,20,21,22,23,24,54,55,109,110,111,277,323,389,480,481,484]),import.meta.url),()=>F(()=>import(`../nodes/94.C7_exoDV.js`),__vite__mapDeps([485,1,2,3,4,5,6,7,8,377,14,65,13,15,66,34,35,22,36,37,67,57,100,99,101,102,103,104,105,107,108,16,17,9,10,11,12,18,19,20,21,23,24,54,55,109,110,111,127,124,83,128,120,121,122,123,125,126,129,130,131,132,133,134,135,136,137,69,71,138,139,140,141,142,143,240,241,378,461,486,487,361,167,213,214,301,339,340,362,205,206,363,364,488,489]),import.meta.url),()=>F(()=>import(`../nodes/95.CAONOKf-.js`),__vite__mapDeps([490,1,3,2,4,5,6,7,8,68,219,201,486,491]),import.meta.url),()=>F(()=>import(`../nodes/96.C65iULF3.js`),__vite__mapDeps([492,1,2,3,4,5,6,7,8,493,238,417,156,19,43,418,9,10,11,12,104,419,345,22,346,34,13,14,15,35,36,37,102,103,305,315,316,420,46,374,18,20,21,23,83,193,194,375,342,41,343,344,212,71,136,137,69,54,55,105,138,213,214,215,49,65,66,124,67,57,74,75,76,77,78,79,80,100,99,101,121,122,127,128,130,131,139,140,132,133,134,135,141,142,240,241,274,179,180,275,303,337,338,339,340,347,332,348,108,349,350,282,351,352,353,354,51,52,53,123,125,126,129,120,143,308,309,356,357,414,421,422,28,423,424,44,59,425,72,73,199,205,206,255,256,278,301,318,331,333,362,363,379,50,380,382,63,383,408,409,429,469,210,470,494,495,496,373,376,497,42,377,27,113,114,115,116,117,280,281,381,378,384,498,499,500,501,107,16,17,24,109,110,111,228,229,277,468,471,184,70,185,472,473,502,503,504]),import.meta.url),()=>F(()=>import(`../nodes/97.C315DPJd.js`),__vite__mapDeps([505,1,3,2,4,5,6,7,8,493,238,417,156,19,43,418,9,10,11,12,104,419,345,22,346,34,13,14,15,35,36,37,102,103,305,315,316,420,46,374,18,20,21,23,83,193,194,375,342,41,343,344,212,71,136,137,69,54,55,105,138,213,214,215,49,65,66,124,67,57,74,75,76,77,78,79,80,100,99,101,121,122,127,128,130,131,139,140,132,133,134,135,141,142,240,241,274,179,180,275,303,337,338,339,340,347,332,348,108,349,350,282,351,352,353,354,51,52,53,123,125,126,129,120,143,308,309,356,357,414,421,422,28,423,424,44,59,425,72,73,199,205,206,255,256,278,301,318,331,333,362,363,379,50,380,382,63,383,408,409,429,469,210,470,494,495,496,373,376,372,172,377,155,157,378,381,384,385,107,16,17,24,109,110,111,502,503,506]),import.meta.url),()=>F(()=>import(`../nodes/98.-_gLu0re.js`),__vite__mapDeps([507,1,3,2,4,5,6,7,8,9,10,11,12,14,34,13,15,35,22,36,37,146,20,69,70,107,108,16,17,18,19,21,23,24,54,55,109,110,111,205,206,281,57,99,67,100,101,102,103,104,105,139,140,282,287,280,286,288,289,290,508,71,121,122,136,137,138,213,214,312,141,498,499,509,510]),import.meta.url),()=>F(()=>import(`../nodes/99.5lqNSXKc.js`),__vite__mapDeps([511,1,3,2,4,5,6,7,8,238,20,9,10,11,12,419,14,22,34,13,15,35,36,37,146,69,70,107,108,16,17,18,19,21,23,24,54,55,109,110,111,281,57,99,67,100,101,102,103,104,105,139,140,282,287,280,295,296,512]),import.meta.url),()=>F(()=>import(`../nodes/100.DQoW7ifU.js`),__vite__mapDeps([513,1,3,2,4,5,6,7,8,34,13,14,15,35,22,36,37,107,108,16,17,9,10,11,12,18,19,20,21,23,24,54,55,109,110,111,323,350,99,57,67,100,101,102,103,104,105,282,514,52,65,66,361,167,124,71,123,125,121,122,126,127,83,128,129,136,137,69,138,213,214,301,339,340,362,205,206,363,364,515,516]),import.meta.url),()=>F(()=>import(`../nodes/101.Bx5XsOja.js`),__vite__mapDeps([517,1,5,6,34,3,2,4,7,8,13,14,15,35,22,36,37,107,108,16,17,9,10,11,12,18,19,20,21,23,24,54,55,109,110,111,350,99,57,67,100,101,102,103,104,105,282,514,52,65,66,361,167,124,71,123,125,121,122,126,127,83,128,129,136,137,69,138,213,214,301,339,340,362,205,206,363,364,515]),import.meta.url),()=>F(()=>import(`../nodes/102.C4-4A4Xg.js`),__vite__mapDeps([518,1,3,2,4,5,6,7,8,63,9,10,11,12,14,106,112,71,113,114,115,116,117,118,146,20,69,70,107,108,16,17,18,19,21,22,23,24,54,55,109,110,111,205,206,255,256,280,102,281,57,99,67,100,101,103,104,105,139,140,282,301,322,83,519,520,521]),import.meta.url),()=>F(()=>import(`../nodes/103.DkqYwKuu.js`),__vite__mapDeps([522,1,3,2,4,5,6,7,8,20,9,10,11,12,300,83,102,14,100,106,141,57,139,140,104,99,67,101,103,105,146,69,70,107,108,16,17,18,19,21,22,23,24,54,55,109,110,111,205,206,233,234,299,35,36,301,508,34,13,15,37,71,121,122,136,137,138,213,214,312,281,282,498,499,509,523]),import.meta.url),()=>F(()=>import(`../nodes/104.DZ2LgbOI.js`),__vite__mapDeps([524,1,2,3,4,5,6,7,8,14,65,13,15,66,22,34,35,36,37,75,76,74,77,79,106,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,23,24,54,55,109,110,111,255,256,281,57,99,67,100,101,102,103,104,105,139,140,282,303,520,525,526,238,527]),import.meta.url),()=>F(()=>import(`../nodes/105.CzIVf7hM.js`),__vite__mapDeps([528,1,5,525,3,2,4,6,7,8,529,9,10,11,12,104,14,35,22,36,109,205,206,248,69,146,20,70,107,108,16,17,18,19,21,23,24,54,55,110,111,183,184,185,186,249,240,241,303,99,57,67,100,101,102,103,105,140,408,409,440,441,520]),import.meta.url),()=>F(()=>import(`../nodes/106.Bi2R7N7d.js`),__vite__mapDeps([530,1,5,6,529,3,2,4,7,8,9,10,11,12,104,14,35,22,36,109,205,206,248,69,146,20,70,107,108,16,17,18,19,21,23,24,54,55,110,111,183,184,185,186,249,240,241,303,99,57,67,100,101,102,103,105,140,408,409,440,441,520,525]),import.meta.url),()=>F(()=>import(`../nodes/107.DGc9yaM0.js`),__vite__mapDeps([531,1,3,2,4,5,6,7,8,238,19,133,447,9,10,11,12,345,22,346,14,34,13,15,35,36,37,71,74,75,76,77,106,112,113,114,63,115,116,117,118,136,137,21,69,54,55,105,138,140,104,100,99,57,67,101,102,103,139,146,20,70,107,108,16,17,18,23,24,109,110,111,205,206,213,214,255,256,281,282,303,308,309,353,386,387,494,520,519,532]),import.meta.url),()=>F(()=>import(`../nodes/108.CTz7M_Gm.js`),__vite__mapDeps([533,1,3,2,4,5,6,7,8,303,99,57,67,100,101,102,103,104,105,140,353,494,534,238,19,425,52,9,10,11,12,14,22,35,36,34,13,15,37,109,127,124,83,128,123,125,121,122,126,129,136,137,21,69,71,54,55,138,205,206,213,214,248,146,20,70,107,108,16,17,18,23,24,110,111,183,184,185,186,249,240,241,255,256,301,304,282,305,306,352,414,427,167,49,428,440,441,462,418,419,345,346,315,316,420,65,66,72,73,74,75,76,77,51,53,130,131,337,338,339,340,361,362,363,364,463,487,488,495,535]),import.meta.url),()=>F(()=>import(`../nodes/109.DGQ5K8VO.js`),__vite__mapDeps([536,1,5,6,534,3,2,4,7,8,238,19,425,52,9,10,11,12,104,14,22,35,36,34,13,15,37,67,57,99,100,101,102,103,105,109,127,124,83,128,123,125,121,122,126,129,136,137,21,69,71,54,55,138,140,205,206,213,214,248,146,20,70,107,108,16,17,18,23,24,110,111,183,184,185,186,249,240,241,255,256,301,303,304,282,305,306,352,353,414,427,167,49,428,440,441,462,418,419,345,346,315,316,420,65,66,72,73,74,75,76,77,51,53,130,131,337,338,339,340,361,362,363,364,463,487,488,494,495,535]),import.meta.url),()=>F(()=>import(`../nodes/110.D8JaYbV6.js`),__vite__mapDeps([537,1,3,2,4,5,6,7,8,238,63,10,14,34,13,15,35,22,36,37,75,76,74,77,102,106,121,122,139,140,104,100,99,57,67,101,103,105,146,20,69,70,107,108,16,17,9,11,12,18,19,21,23,24,54,55,109,110,111,388,389,390,526,538]),import.meta.url),()=>F(()=>import(`../nodes/111.CPEfUXkU.js`),__vite__mapDeps([539,1,3,2,4,5,6,7,8,139,140,104,100,99,57,67,101,102,103,105,540,109,248,9,10,11,12,69,146,20,70,107,108,16,17,18,19,21,22,23,24,54,55,110,111,183,184,185,186,249,240,241,313,14,35,36,34,13,15,37,121,122,205,206,228,229,255,256,312,141,281,282,314,315,316,317,440,441]),import.meta.url),()=>F(()=>import(`../nodes/112.KIXJwt4s.js`),__vite__mapDeps([541,1,5,312,3,2,4,6,7,8,141,57,139,140,104,100,99,67,101,102,103,105,281,282,540,109,248,9,10,11,12,69,146,20,70,107,108,16,17,18,19,21,22,23,24,54,55,110,111,183,184,185,186,249,240,241,313,14,35,36,34,13,15,37,121,122,205,206,228,229,255,256,314,315,316,317,440,441]),import.meta.url),()=>F(()=>import(`../nodes/113.CHeKmZJg.js`),__vite__mapDeps([542,1,3,2,4,5,6,7,8,106,141,57,139,140,104,100,99,67,101,102,103,105,146,20,69,70,107,108,16,17,9,10,11,12,18,19,21,22,23,24,54,55,109,110,111,205,206,320,300,83,14,301,399,78,79,80,216,212,71,136,137,34,13,15,35,36,37,138,213,214,215,400,508,121,122,312,281,282,498,499,509]),import.meta.url),()=>F(()=>import(`../nodes/114.06UXL2Yn.js`),__vite__mapDeps([543,1,101,3,2,4,5,6,7,8,106,371,238,343,372,156,19,373,44,374,9,10,11,12,18,20,21,22,23,83,193,194,375,59,14,35,36,100,99,57,67,102,103,104,105,121,122,123,34,13,15,37,124,125,126,127,128,129,130,131,139,140,132,133,134,135,136,137,69,71,54,55,138,141,142,120,143,274,179,180,275,331,65,66,308,309,332,333,347,376,172,344,377,155,157,240,241,348,108,349,378,379,78,79,80,50,380,381,49,205,206,213,214,382,63,383,384,385,75,76,107,16,17,24,109,110,111,386,387,388,389,390,391,51,52,53,392,393]),import.meta.url),()=>F(()=>import(`../nodes/115.BsqCLO_7.js`),__vite__mapDeps([544,1,3,2,4,5,6,7,8,104,101,109,205,206,248,9,10,11,12,69,146,20,70,107,108,16,17,18,19,21,22,23,24,54,55,110,111,183,184,185,186,249,240,241,301,440,441,500,193,194]),import.meta.url),()=>F(()=>import(`../nodes/116.D7ZaHU2M.js`),__vite__mapDeps([545,1,2,3,4,5,6,7,8,9,10,11,12,14,81,78,79,80,82,205,206,248,69,146,20,70,107,108,16,17,18,19,21,22,23,24,54,55,109,110,111,183,184,185,186,249,240,241,378,100,99,57,67,101,102,103,104,105,500,193,194]),import.meta.url),()=>F(()=>import(`../nodes/117.BMw1YXvD.js`),__vite__mapDeps([546,1,2,3,4,5,6,7,8,493,238,417,156,19,43,418,9,10,11,12,104,419,345,22,346,34,13,14,15,35,36,37,102,103,305,315,316,420,46,374,18,20,21,23,83,193,194,375,342,41,343,344,212,71,136,137,69,54,55,105,138,213,214,215,49,65,66,124,67,57,74,75,76,77,78,79,80,100,99,101,121,122,127,128,130,131,139,140,132,133,134,135,141,142,240,241,274,179,180,275,303,337,338,339,340,347,332,348,108,349,350,282,351,352,353,354,51,52,53,123,125,126,129,120,143,308,309,356,357,414,421,422,28,423,424,44,59,425,72,73,199,205,206,255,256,278,301,318,331,333,362,363,379,50,380,382,63,383,408,409,429,469,210,470,494,495,496,497,42,373,376,377,27,113,114,115,116,117,280,281,381,378,384,498,499,500,501,107,16,17,24,109,110,111,471,184,70,185,472,547]),import.meta.url),()=>F(()=>import(`../nodes/118.jtfumgKO.js`),__vite__mapDeps([548,1,2,3,4,5,6,7,8,549]),import.meta.url),()=>F(()=>import(`../nodes/119.DsMejuLV.js`),__vite__mapDeps([550,1,5,6]),import.meta.url)],G=[],K={"/":[17],"/[[user_id=number]]/account-setup":[51,[6]],"/[[user_id=number]]/account-setup/about-you":[52,[6]],"/[[user_id=number]]/account-setup/diet":[53,[6]],"/[[user_id=number]]/account-setup/finish":[54,[6]],"/[[user_id=number]]/account-setup/food-exclusions":[55,[6]],"/[[user_id=number]]/account-setup/goal":[56,[6]],"/[[user_id=number]]/account-setup/meals":[58,[6]],"/[[user_id=number]]/account-setup/meal/[meal_id]":[57,[6]],"/[[user_id=number]]/account-setup/nutrition":[59,[6]],"/[[user_id=number]]/account-setup/profile":[60,[6]],"/[[user_id=number]]/account-setup/units":[61,[6]],"/[[user_id=number]]/account-setup/upgrade":[62,[6]],"/[[user_id=number]]/account-setup/your-diet":[63,[6]],"/[[user_id=number]]/account-setup/your-meals":[64,[6]],"/[[user_id=number]]/account/affiliate":[36,[4]],"/[[user_id=number]]/account/api-keys":[37,[4]],"/[[user_id=number]]/account/api-usage":[38,[4]],"/(subscription)/account/change-plan":[25,[3]],"/[[user_id=number]]/account/credentials":[39,[4]],"/[[user_id=number]]/account/credentials/email":[40,[4]],"/[[user_id=number]]/account/credentials/password":[41,[4]],"/[[user_id=number]]/account/invite-friends":[42,[4,5]],"/[[user_id=number]]/account/linked":[43,[4]],"/[[user_id=number]]/account/notifications":[44,[4]],"/[[user_id=number]]/account/profile":[45,[4]],"/[[user_id=number]]/account/subscription":[46,[4]],"/[[user_id=number]]/account/subscription/history":[47,[4]],"/[[user_id=number]]/account/subscription/payment":[48,[4]],"/[[user_id=number]]/account/subscription/redeem-gift":[49,[4]],"/[[user_id=number]]/account/subscription/send-gift":[50,[4]],"/(subscription)/account/unsubscribe":[26,[3]],"/[[user_id=number]]/admin/discover":[65,[4]],"/[[user_id=number]]/admin/discover/results":[66,[4]],"/[[user_id=number]]/admin/images":[67,[4]],"/[[user_id=number]]/admin/impersonate":[68,[4]],"/[[user_id=number]]/admin/reports":[69,[4]],"/[[user_id=number]]/all-saved-plans":[70,[4,7]],"/[[user_id=number]]/client":[71,[4,8]],"/[[user_id=number]]/client/create":[74,[4,8]],"/[[user_id=number]]/client/invite":[75,[4,8]],"/[[user_id=number]]/client/[client_id=number]":[72,[4,8]],"/[[user_id=number]]/client/[client_id=number]/permissions":[73,[4,8]],"/[[user_id=number]]/collection":[76,[4,9]],"/[[user_id=number]]/collection/create":[78,[4,9]],"/[[user_id=number]]/collection/[secret_url]":[77,[4,9]],"/[[user_id=number]]/custom":[79,[4,10]],"/[[user_id=number]]/custom/food/create":[81,[4,10]],"/[[user_id=number]]/custom/food/[custom_food_id]":[80,[4,10]],"/[[user_id=number]]/custom/recipe/create":[83,[4,10]],"/[[user_id=number]]/custom/recipe/from-url":[84,[4,10]],"/[[user_id=number]]/custom/recipe/[custom_recipe_id]":[82,[4,10]],"/[[user_id=number]]/discover":[85,[4]],"/[[user_id=number]]/food/[food_id]":[86,[4]],"/[[user_id=number]]/groceries":[87,[4,11]],"/[[user_id=number]]/groceries/owned":[88,[4,11]],"/[[user_id=number]]/groceries/unowned":[89,[4,11]],"/[[user_id=number]]/help":[90,[4]],"/[[user_id=number]]/help/contact":[91,[4]],"/[[user_id=number]]/help/premium-features":[92,[4]],"/[[user_id=number]]/help/professional-features":[93,[4]],"/[[user_id=number]]/import-plan/[id=number]":[94,[4]],"/[[user_id=number]]/import-plan/[id=number]/success":[95],"/maintenance":[118],"/offline":[119],"/(subscription)/partner-api":[27,[3]],"/(subscription)/password-expired":[28,[3]],"/[[user_id=number]]/planner/[[date]]":[96,[4]],"/(subscription)/professional-setup":[29,[3]],"/(subscription)/professional-setup/finish":[30,[3]],"/(subscription)/professional-setup/payment":[31,[3]],"/(subscription)/professional-setup/plan":[32,[3]],"/(subscription)/redeem-gift":[33,[3]],"/[[user_id=number]]/saved-plan/[saved_plan_id]":[97,[4,12]],"/(subscription)/set-password":[34,[3]],"/[[user_id=number]]/settings/diet":[98,[4,13]],"/[[user_id=number]]/settings/exclusions":[99,[4,13]],"/[[user_id=number]]/settings/foods/blocked":[100,[4,13]],"/[[user_id=number]]/settings/foods/liked":[101,[4,13]],"/[[user_id=number]]/settings/generator":[102,[4,13]],"/[[user_id=number]]/settings/goal":[103,[4,13]],"/[[user_id=number]]/settings/leftovers":[104,[4,13,14]],"/[[user_id=number]]/settings/leftovers/create":[106,[4,13,14]],"/[[user_id=number]]/settings/leftovers/[leftover_id]":[105,[4,13,14]],"/[[user_id=number]]/settings/meals":[107,[4,13]],"/[[user_id=number]]/settings/meals/create":[109,[4,13]],"/[[user_id=number]]/settings/meals/[meal_type_id]":[108,[4,13]],"/[[user_id=number]]/settings/nutrition":[110,[4,13]],"/[[user_id=number]]/settings/nutrition/create":[112,[4,13,15]],"/[[user_id=number]]/settings/nutrition/[nutrition_target_id]":[111,[4,13]],"/[[user_id=number]]/settings/physical-stats":[113,[4,13]],"/[[user_id=number]]/settings/saved-plan":[114,[4,13,16]],"/[[user_id=number]]/settings/saved-plan/create":[116,[4,13,16]],"/[[user_id=number]]/settings/saved-plan/[saved_plan_id]":[115,[4,13,16]],"/[[user_id=number]]/track/[[date]]":[117,[4]],"/(subscription)/upgrade":[35,[3]],"/(auth)/[...connect=connect]/invite-family/[code]":[18,[2]],"/(auth)/[...connect=connect]/join":[19,[2]],"/(auth)/[...connect=connect]/link-account/[code]":[20,[2]],"/(auth)/[...connect=connect]/login":[21,[2]],"/(auth)/[...connect=connect]/logout":[22],"/(auth)/[...connect=connect]/registration":[23,[2]],"/(auth)/[...connect=connect]/reset-password":[24,[2]]},q={handleError:L||(({error:e})=>{console.error(e)}),init:R,reroute:(()=>{}),transport:{}},J=Object.fromEntries(Object.entries(q.transport).map(([e,t])=>[e,t.decode])),Y=Object.fromEntries(Object.entries(q.transport).map(([e,t])=>[e,t.encode])),X=!1,Z=(e,t)=>J[e](t),Q=()=>F(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{Z as decode,J as decoders,K as dictionary,Y as encoders,Q as get_error_template,X as hash,q as hooks,z as matchers,W as nodes,U as root,G as server_loads};
+//# sourceMappingURL=app.BgncCrZy.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/entry/start.IKCdDXFp.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/entry/start.IKCdDXFp.js
new file mode 100644
index 0000000000000000000000000000000000000000..6352f6d29f83ad82ccc46ed23b30e6895fd6806f
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/entry/start.IKCdDXFp.js
@@ -0,0 +1 @@
+import{h as e,u as t}from"../chunks/C8UWmKFm.js";export{e as load_css,t as start};
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/0.uKbgA_l7.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/0.uKbgA_l7.js
new file mode 100644
index 0000000000000000000000000000000000000000..4ec6c813f5dcace1eea1235181368683d037edf5
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/0.uKbgA_l7.js
@@ -0,0 +1,2 @@
+import{At as e,Bt as t,I as n,J as r,U as i,X as a,cn as o,kt as s,lt as c,sn as l,xn as u}from"../chunks/BhSt9sSe.js";import{t as d}from"../chunks/C8UWmKFm.js";import{I as f,Wt as p,et as m,kt as h}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/CxRGiBH-2.js";import{t as g}from"../chunks/BD1OUcyy2.js";import{t as _}from"../chunks/DTcfIa-V2.js";var v=u({ssr:()=>!1}),y=a(` `,1);function b(a,u){o(u,!0);var v;(v=document.getElementById(`splash-screen`))==null||v.remove(),d(p);var b=y(),x=s(b);h(x,{});var S=e(x,2),C=e=>{g(e,{children:(e,t)=>{_(e,{fallback:!0})},$$slots:{default:!0}})},w=t(()=>f());i(S,e=>{c(w)&&e(C)});var T=e(S,2);m(T,{});var E=e(T,2);n(E,()=>u.children),r(a,b),l()}export{b as component,v as universal};
+//# sourceMappingURL=0.uKbgA_l7.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/1.BXju74JG.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/1.BXju74JG.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb77d5254392492213eb276bb68fc0f5ae80e2ca
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/1.BXju74JG.js
@@ -0,0 +1,3 @@
+import{At as e,Bt as t,Ct as n,I as r,J as i,Ot as a,U as o,X as s,Y as c,c as l,cn as u,et as d,g as f,hn as p,it as m,kt as h,lt as g,mn as _,sn as v,tt as y,v as b}from"../chunks/BhSt9sSe.js";import{g as x}from"../chunks/C8UWmKFm.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{n as S}from"../chunks/CyviYcci.js";import{t as C}from"../chunks/BB8a8jXj2.js";import{t as w}from"../chunks/CsIAEk3y2.js";import{t as T}from"../chunks/DaionNlP2.js";var E=s(``);function D(t,n){var o=E(),s=a(o),c=a(s),l=a(c);r(l,()=>n.picture),p(c);var u=e(c,2),d=a(u);r(d,()=>n.children),p(u),p(s),p(o),i(t,o)}var O=s(` `),k=s(`404 Not Found We couldn't find the page you requested.
Return Home
`,1),A=s(`Network Error An unexpected error occurred communicating with the network. Check your
+ internet connection and try again .
`,1),j=s(`500 Unexpected Error An error has occurred. If this problem persists, contact us at support@eatthismuch.com .
Return Home
`,1);function M(r,s){u(s,!1);let d=S.error;function E(){window.location.reload()}l();var M=c(),N=h(M),P=t=>{D(t,{picture:e=>{var t=O();f(t,()=>({alt:``,...T})),m(t),i(e,t)},children:(t,r)=>{var o=k(),s=e(h(o),4),c=a(s);p(s),n(e=>b(c,`href`,e),[()=>x(`/`)]),i(t,o)},$$slots:{picture:!0,default:!0}})},F=t=>{D(t,{picture:e=>{var t=O();f(t,()=>({alt:``,...C})),m(t),i(e,t)},children:(t,n)=>{var r=A(),o=e(h(r),2),s=e(a(o));_(),p(o),y(`click`,s,E),i(t,r)},$$slots:{picture:!0,default:!0}})},I=t(()=>d==null?void 0:d.message.startsWith(`Failed to fetch`)),L=t=>{D(t,{picture:e=>{var t=O();f(t,()=>({alt:``,...w})),m(t),i(e,t)},children:(t,r)=>{var o=j(),s=e(h(o),4),c=a(s);p(s),n(e=>b(c,`href`,e),[()=>x(`/`)]),i(t,o)},$$slots:{picture:!0,default:!0}})};o(N,e=>{(d==null?void 0:d.message)===`Not Found`?e(P):g(I)?e(F,1):e(L,-1)}),i(r,M),v()}d([`click`]);export{M as component};
+//# sourceMappingURL=1.BXju74JG.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/10.A4uO0eA-.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/10.A4uO0eA-.js
new file mode 100644
index 0000000000000000000000000000000000000000..b18cccce60a51a64f5eed6528ac33bcf44fb9ec7
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/10.A4uO0eA-.js
@@ -0,0 +1,2 @@
+import{I as e,J as t,Y as n,cn as r,kt as i,sn as a}from"../chunks/BhSt9sSe.js";import{M as o}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{d as s}from"../chunks/CxRGiBH-2.js";import{n as c}from"../chunks/C2PzE5jE.js";function l(l,u){r(u,!0);let d=!o(c.CUSTOM_FOOD);s(d);var f=n(),p=i(f);e(p,()=>u.children),t(l,f),a()}export{l as component};
+//# sourceMappingURL=10.A4uO0eA-.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/101.Bx5XsOja.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/101.Bx5XsOja.js
new file mode 100644
index 0000000000000000000000000000000000000000..123c257e841432e7513da10dbafebcf14f51a357
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/101.Bx5XsOja.js
@@ -0,0 +1,3 @@
+import{$ as e,At as t,J as n,X as r,c as i,cn as a,kt as o,mn as s,sn as c}from"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as l}from"../chunks/CLTyeLEa.js";import{t as u}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{a as d}from"../chunks/CwL-EWYT.js";import{t as f}from"../chunks/Bfjzo74K2.js";var p=r(` Foods you have liked will show up slightly more often in the generator, as
+ will similar foods.
`,1);function m(r,m){a(m,!1),i();var h=p(),g=o(h);u(g,{title:`Liked Foods`});var _=t(g,4);l(_,{children:(t,r)=>{f(t,{get rating(){return d.LIKED},undo_action:`Unlike`,children:(t,r)=>{s();var i=e(`You have not liked any foods yet.`);n(t,i)},$$slots:{default:!0}})},$$slots:{default:!0}}),n(r,h),c()}export{m as component};
+//# sourceMappingURL=101.Bx5XsOja.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/104.DZ2LgbOI.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/104.DZ2LgbOI.js
new file mode 100644
index 0000000000000000000000000000000000000000..35231b2b435ff56f965a6f878b9e12483fa07294
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/104.DZ2LgbOI.js
@@ -0,0 +1,7 @@
+import{$ as e,At as t,B as n,Bt as r,Ct as i,E as a,I as o,J as s,K as c,M as l,Ot as u,R as d,T as f,U as p,W as m,X as h,Y as g,c as _,cn as v,et as y,hn as b,kt as x,lt as S,sn as C,tt as w,v as T,vn as E,w as D,xn as O,z as k}from"../chunks/BhSt9sSe.js";import{g as A}from"../chunks/C8UWmKFm.js";import{Ot as j,S as M,_t as N,b as P,p as F,xt as I}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{n as L}from"../chunks/B1cT_TaC2.js";import{t as ee}from"../chunks/B-CQW_E02.js";import{t as te}from"../chunks/D2IZisAi2.js";import{t as R}from"../chunks/CLTyeLEa.js";import{t as z}from"../chunks/aovk0dHP.js";import{n as B}from"../chunks/KSgUzsPF.js";import{t as V}from"../chunks/lJbb5zTU.js";import{t as H}from"../chunks/DNDaYjwu.js";import{t as U}from"../chunks/LtYjoJmG2.js";import{t as W}from"../chunks/CMf_mwGa.js";import{i as G,n as K}from"../chunks/B6Qcxm1X.js";import{a as q,o as J}from"../chunks/CYGTaWAz2.js";import{t as Y}from"../chunks/COhig5UI2.js";import{r as X}from"../chunks/C00YvGuk2.js";import{t as Z}from"../chunks/DIdjUE392.js";var Q=`
+
+ `,ne=O({load:()=>re});async function re({parent:e}){let{user:t}=await e();await H(()=>X(t.id),()=>q(t.id),()=>K(t.id))}var ie=h(` `),ae=h(` `,1),oe=h(`for the next `,1),se=h(`Prepare
`),ce=h(` `);function le(o,l){v(l,!0);let d=j(),m=r(()=>L(J(d,l.leftover.parent_meal_type))),h=r(()=>{let e=l.leftover.child_meal_types.map(e=>L(J(d,e)));return P(e)});var g=ce();let _;var y=u(g),T=u(y);I(T,{breadcrumb:!0,get href(){return`${l.path??``}/${l.leftover.id??``}`},children:(n,r)=>{var a=ie(),o=u(a),d=t=>{var n=e();i(()=>c(n,Y[l.leftover.start_day])),s(t,n)};p(o,e=>{l.leftover.repeat||e(d)});var f=t(o);b(a),i(()=>{var e;return c(f,` ${((e=S(m))==null?void 0:e.title)??``}`)}),s(n,a)},$$slots:{default:!0}}),b(y);var E=t(y,2),O=r=>{var a=se(),o=t(u(a));k(o,17,()=>S(h),n,(e,n,r)=>{var a=ae(),o=x(a),l=u(o,!0);b(o);var d=t(o,1,!0);i(()=>{var e;c(l,(e=S(n))==null?void 0:e.title),c(d,S(h).length===r+1?``:`, `)}),s(e,a)});var d=t(o,2),f=n=>{var r=oe(),a=t(x(r)),o=t=>{var n=e(`day`);s(t,n)},u=t=>{var n=e();i(()=>c(n,`${l.leftover.days_to_save_leftovers??``} days`)),s(t,n)};p(a,e=>{l.leftover.days_to_save_leftovers===1?e(o):e(u,-1)}),s(n,r)};p(d,e=>{l.leftover.days_to_save_leftovers&&e(f)}),b(a),s(r,a)};p(E,e=>{S(h)&&e(O)}),b(g),i(e=>{f(g,1,a(N),`svelte-1hv6da2`),_=D(g,``,_,e)},[()=>({"--hue":V(l.leftover.resource_uri)})]),w(`click`,g,function(...e){B==null||B.apply(this,e)}),s(o,g),C()}y([`click`]);async function ue(e){return await M(e,`/g/leftovers-preview/`)}var de=h(` `);function fe(e,t){v(t,!0);let n=j(),a=r(()=>t.meal.leftovers_chain?F(t.meal.leftovers_chain):null);var c=g(),l=x(c),d=e=>{var r=de(),c=u(r);o(c,()=>t.children??E),b(r),i(e=>T(r,`href`,e),[()=>A(`/${n}/settings/leftovers/${S(a)}`)]),s(e,r)},f=e=>{var n=g(),r=x(n);o(r,()=>t.children??E),s(e,n)};p(l,e=>{S(a)?e(d):e(f,-1)}),s(e,c),C()}var pe=h(`
`),me=h(``);function he(e,n){v(n,!0);let a=j(),o=r(()=>L(J(a,n.meal.meal_type)));fe(e,{get meal(){return n.meal},children:(e,r)=>{var a=me();let l,m;var h=u(a),g=e=>{var t=pe();d(t,()=>Q,!0),b(t),s(e,t)};p(h,e=>{n.meal.is_parent_leftovers&&e(g)});var _=t(h,2),v=u(_,!0);b(_),b(a),i(e=>{var t;l=f(a,1,`item ${(n.meal.leftovers_chain?N:``)??``}`,`svelte-qkhb7x`,l,{"in-pattern":n.meal.leftovers_chain}),m=D(a,``,m,e),c(v,(t=S(o))==null?void 0:t.title)},[()=>({"--hue":n.meal.leftovers_chain?V(n.meal.leftovers_chain):0})]),s(e,a)},$$slots:{default:!0}}),C()}var ge=h(``),_e=h(`Leftover Preview
`,1);function ve(e,r){v(r,!1);let a=ue(j());_();var o=_e(),l=t(x(o),2),d=u(l);m(d,()=>L(a),null,(e,r)=>{var a=g(),o=x(a);k(o,1,()=>S(r),n,(e,r)=>{var a=ge(),o=u(a),l=u(o,!0);b(o);var d=t(o,2),f=u(d,!0);b(d);var p=t(d,2);k(p,1,()=>S(r).meals,n,(e,t)=>{he(e,{get meal(){return S(t)}})}),b(a),i(e=>{c(l,S(r).weekday),c(f,e)},[()=>S(r).weekday.substring(0,3)]),s(e,a)}),s(e,a)}),b(l),s(e,o),C()}var ye=h(`You have not configured any leftovers.
`),be=h(` `,1),$=h(` `,1),xe=h(`
`),Se=h(`Use Leftover Patterns
`,1);function Ce(e,n){v(n,!0);let i=j(),a=r(()=>L(X(i))),o=r(()=>L(K(i)));async function c(e){if(!S(o))throw TypeError();await G(S(o).resource_uri,{use_leftovers:e.currentTarget.checked})}var d=Se(),f=x(d),m=t(u(f),2);{let e=r(()=>{var e;return!!((e=S(o))!=null&&e.use_leftovers)});W(m,{get checked(){return S(e)},name:`leftovers_enabled`,onchange:c})}b(f);var h=t(f,2),_=e=>{var r=xe(),i=u(r);ee(i,{collapse:!0,children:(e,r)=>{var i=$(),o=x(i);R(o,{children:(e,r)=>{var i=be(),o=x(i);Z(o,{get href(){return`${n.path??``}/create`},label:`New Pattern`});var c=t(o,2),l=e=>{z(e,{list:!0,children:(e,t)=>{var r=g(),i=x(r);k(i,17,()=>S(a),e=>e.resource_uri,(e,t)=>{le(e,{get leftover(){return S(t)},get path(){return n.path}})}),s(e,r)},$$slots:{default:!0}})},u=e=>{var t=ye();s(e,t)};p(c,e=>{var t;(t=S(a))!=null&&t.length?e(l):e(u,-1)}),s(e,i)},$$slots:{default:!0}});var c=t(o,2),l=u(c);R(l,{children:(e,t)=>{ve(e,{})},$$slots:{default:!0}}),b(c),s(e,i)},$$slots:{default:!0}}),b(r),l(7,r,()=>te),s(e,r)};p(h,e=>{var t;(t=S(o))!=null&&t.use_leftovers&&e(_)}),s(e,d),C()}var we=h(` Here you can create "Leftover Patterns" to automatically set up batch cooking
+ of recipes to carry over from one day to the next. Leftovers are a great way
+ to save time throughout the week, and they keep your grocery list shorter
+ because you'll have more repeat dishes in your plan.
`,1);function Te(e){var n=we(),r=x(n);U(r,{title:`Leftover Patterns`}),Ce(t(r,4),{path:`/settings/leftovers`}),s(e,n)}export{Te as component,ne as universal};
+//# sourceMappingURL=104.DZ2LgbOI.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/105.CzIVf7hM.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/105.CzIVf7hM.js
new file mode 100644
index 0000000000000000000000000000000000000000..40b38c1d47b892b58d1a04080ecf759ab5d0f13e
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/105.CzIVf7hM.js
@@ -0,0 +1,2 @@
+import{cn as e,sn as t,xn as n}from"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import{i as r}from"../chunks/C00YvGuk2.js";import{t as i}from"../chunks/9-f7JXzK2.js";var a=n({load:()=>o});async function o({params:e,parent:t}){let{user:n}=await t(),i=parseInt(e.leftover_id,10);return{leftover:await r(n.id,i)}}function s(n,r){e(r,!0),i(n,{get leftover_pattern(){return r.data.leftover}}),t()}export{s as component,a as universal};
+//# sourceMappingURL=105.CzIVf7hM.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/107.DGc9yaM0.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/107.DGc9yaM0.js
new file mode 100644
index 0000000000000000000000000000000000000000..1b79219e88faeac3aef2054ac77a62f36bbf4d62
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/107.DGc9yaM0.js
@@ -0,0 +1,8 @@
+import{$ as e,At as t,B as n,Bt as r,C as i,Ct as a,D as o,E as s,Ft as c,J as l,K as u,Lt as d,Ot as f,R as p,S as m,T as h,U as g,X as _,Y as v,Z as y,cn as b,et as x,hn as S,kt as C,lt as w,mn as T,sn as E,tt as D,v as O,w as k,xn as A,yn as j,z as M}from"../chunks/BhSt9sSe.js";import{Dt as N,Ot as P,_t as F,at as I,i as L,it as ee,p as R,xt as z}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as B}from"../chunks/BBbGtOhS.js";import{t as te}from"../chunks/BpQEveid.js";import{t as ne}from"../chunks/BxmAK_uu.js";import{t as re}from"../chunks/Dzhpx5UD2.js";import{n as V,u as H}from"../chunks/CxRGiBH-2.js";import{i as ie,n as ae,r as oe,t as se}from"../chunks/Bn5_FCYL2.js";import{n as U}from"../chunks/B1cT_TaC2.js";import{t as W}from"../chunks/CLTyeLEa.js";import{t as ce}from"../chunks/p3gDh4vM.js";import{n as G}from"../chunks/KSgUzsPF.js";import{t as le}from"../chunks/DNDaYjwu.js";import{t as ue}from"../chunks/DakvCGF62.js";import{n as de,t as fe}from"../chunks/75oOzRea2.js";import{a as pe,i as me,n as K,o as he,r as q,t as J}from"../chunks/CWcvf8_g2.js";import{a as ge,i as Y}from"../chunks/CAq_OQDd2.js";import{t as _e}from"../chunks/LtYjoJmG2.js";import{t as ve}from"../chunks/BC4LLrwJ.js";import{t as ye}from"../chunks/BN66IXsU.js";import{t as be}from"../chunks/CMf_mwGa.js";import{i as xe,n as X}from"../chunks/B6Qcxm1X.js";import{a as Z,d as Se,m as Ce,n as we,o as Te,p as Ee}from"../chunks/CYGTaWAz2.js";import{t as De}from"../chunks/DfE8jfaJ2.js";import{r as Oe}from"../chunks/B1DDWD9B.js";import{t as ke}from"../chunks/C2uIn59-.js";import{r as Ae}from"../chunks/BIL8YQYW2.js";import{t as je}from"../chunks/COhig5UI2.js";import{t as Me}from"../chunks/B3B1Mzes2.js";var Ne=A({load:()=>Pe});async function Pe({parent:e}){let{user:t}=await e();le(()=>K(t.id),()=>Y(t.id),()=>Z(t.id),()=>Oe(t.id),()=>Ae(t.id),()=>X(t.id))}var Fe=`\r
+ \r
+ \r
+ \r
+`,Ie=y(` `);function Le(e,n){b(n,!0);function r(e){return e?`currentColor`:`var(--placeholder)`}var i=Ie(),o=t(f(i)),s=t(o);S(i),a((e,t)=>{O(o,`stroke`,e),O(s,`stroke`,t)},[()=>r(n.size>=Ce[`Normal meal`]),()=>r(n.size>=Ce[`Big meal`])]),l(e,i),E()}var Re=_(`
Complexity `),ze=_(`
Cooking No Cooking `),Be=_(`
Size `);function Q(e,n){b(n,!0);var r=Be(),i=f(r),o=f(i);Le(f(o),{get size(){return n.meal_type.size_slider}}),T(2),S(o);var s=t(o,2),c=f(s,!0);S(s),S(i);var d=t(i,2),m=e=>{var r=Re(),i=f(r),o=f(i);p(o,()=>Fe),T(2),S(i);var s=t(i,2),c=f(s,!0);S(s),S(r),a(e=>u(c,e),[()=>we.get(n.meal_type.complexity)]),l(e,r)};g(d,e=>{n.meal_type.complexity!==Ee.Any&&e(m)});var h=t(d,2),_=e=>{var t=ze();l(e,t)};g(h,e=>{n.meal_type.max_cooktime||e(_)}),S(r),a(e=>u(c,e),[()=>{var e;return(e=Se.get(n.meal_type.size_slider))==null?void 0:e.replace(` meal`,``)}]),l(e,r),E()}var Ve=_(`
`),He=_(` `,1);function Ue(i,o){b(o,!0);let s=ce(),c=P(),d=r(()=>U(Z(c)));async function p(e){await J(c,o.template.resource_uri,{meal_number:o.template.diet.meals.length,meal_type:e.resource_uri}),s()}var m=He(),h=C(m);M(h,21,()=>w(d)||[],n,(e,n)=>{var r=Ve(),i=f(r),o=f(i,!0);S(i);var s=t(i,2);Q(f(s),{get meal_type(){return w(n)}}),S(s);var c=t(s,2);ee(c,{get icon(){return B},label:`Add`,onclick:()=>p(w(n))}),S(r),a(()=>u(o,w(n).title)),l(e,r)}),S(h);var g=t(h,2);ye(g,{children:(t,n)=>{I(t,{breadcrumb:!0,full_width:!0,get href(){return`/settings/meals/create?daily_template=${o.template.weekday??``}`},get icon(){return B},style:`secondary`,children:(t,n)=>{T();var r=e(`Create New Meal`);l(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),l(i,m),E()}function We(){let e=new Map,t=0;return function(n){let r=e.get(n);return r===void 0&&(r=t*35%360,t++,e.set(n,r)),r}}var Ge=We(),{draggable:Ke,dropTarget:$}=De(),qe=_(` `),Je=_(`
`),Ye=_(``),Xe=_(`
`);function Ze(n,i){b(i,!0);let c=r(()=>Ge(i.meal.meal_type)),d=H(),m=P(),_=r(()=>U(Te(m,i.meal.meal_type))),y=r(()=>U(X(m))),x=r(()=>i.index===0),O=r(()=>i.index>=i.template.diet.meals.length-1),A=r(()=>{var e;return`/settings/meals/${(e=w(_))==null?void 0:e.id}`});async function j(){return i.move(i.meal,i.index+1)}function M(){return i.move(i.meal,i.index-1)}async function N(){me({meal_id:i.meal.id,template_uri:i.template.resource_uri,user_id:m})}var I=v(),L=C(I),R=n=>{var r=Xe(),m=f(r);ke(m,{children:(n,r)=>{var i=Ye(),o=f(i),m=f(o),v=f(m),b=e=>{var t=qe();let n;a(()=>n=k(t,``,n,{"--hue":w(c)})),l(e,t)};g(v,e=>{var t;(t=w(y))!=null&&t.single_template_diet||e(b)});var C=t(v,2),E=t=>{var n=e();a(()=>u(n,w(_).title)),l(t,n)},P=t=>{z(t,{breadcrumb:!0,get href(){return w(A)},children:(t,n)=>{T();var r=e();a(()=>u(r,w(_).title)),l(t,r)},$$slots:{default:!0}})};g(C,e=>{d?e(E):e(P,-1)}),S(m),Q(t(m,2),{get meal_type(){return w(_)}}),S(o);var I=t(o,2),L=f(I);ee(L,{get icon(){return te},label:`Remove`,onclick:N}),S(I);var R=t(I,2),B=e=>{var n=Je(),r=f(n);p(r,()=>re,!0),S(r);var i=t(r,2);p(i,()=>ie,!0),S(i),S(n),a(()=>{h(r,1,s(F),`svelte-kbl9ew`),r.disabled=w(x),h(i,1,s(F),`svelte-kbl9ew`),i.disabled=w(O)}),D(`click`,r,M),D(`click`,i,j),l(e,n)};g(R,e=>{d||e(B)}),S(i),l(n,i)},$$slots:{default:!0}}),S(r),o(r,()=>!d&&Ke(`copyMove`,{meal:i.meal,template:i.template})),o(r,()=>$({index:i.index,template:i.template},i.ondrop)),l(n,r)};g(L,e=>{w(_)&&e(R)}),l(n,I),E()}x([`click`]);var Qe=_(`There are no meals in this day
`),$e=_(`
`),et=_(`Add Meal `,1),tt=_(` `,1),nt=_(` `,1);function rt(r,i){b(i,!0);let s=d(!1),p=H(),m=P();function h(e,t){return q({from_uri:i.template.resource_uri,to:i.template,item:e,index:t,user_id:m})}let _=async({data:e,effect:t,placement:n})=>{let r=n.index;n.position===`AFTER`&&r++,`meal_type`in e?await J(m,n.template.resource_uri,{meal_type:e.meal_type.resource_uri,meal_number:r}):t===`copy`?await J(m,n.template.resource_uri,{meal_type:e.meal.meal_type,meal_number:r}):await q({from_uri:e.template.resource_uri,to:n.template,item:e.meal,index:r,user_id:m})};var v=nt(),y=C(v);M(y,17,()=>i.template.diet.meals,n,(e,t,n)=>{Ze(e,{index:n,get meal(){return w(t)},move:h,ondrop:_,get template(){return i.template}})},e=>{var t=Qe();o(t,()=>$({index:0,template:i.template},_,`AFTER`)),l(e,t)});var x=t(y,2),D=t=>{var n=$e(),r=f(n);I(r,{get icon(){return B},onclick:()=>c(s,!0),style:`text`,children:(t,n)=>{T();var r=e(`Add Meal`);l(t,r)},$$slots:{default:!0}}),S(n),o(n,()=>$({index:i.template.diet.meals.length,template:i.template},_,`BEFORE`)),l(t,n)};g(x,e=>{p||e(D)});var O=t(x,2),k=n=>{de(n,{close:()=>c(s,!1),children:(n,r)=>{var o=tt(),s=C(o);fe(s,{children:(n,r)=>{T();var o=et(),s=t(C(o)),c=t=>{var n=e();a(()=>u(n,`to ${i.label??``}`)),l(t,n)};g(s,e=>{i.label&&e(c)}),l(n,o)},$$slots:{default:!0}});var c=t(s,2);W(c,{children:(e,t)=>{Ue(e,{get template(){return i.template}})},$$slots:{default:!0}}),l(n,o)},$$slots:{default:!0}})};g(O,e=>{w(s)&&e(k)}),l(r,v),E()}var it=_(` `),at=_(` `),ot=_(` `,1),st=_(`
`);function ct(o,s){b(s,!0);let c=H(),d=P(),h=r(()=>U(Y(d))),_=r(()=>U(ge(d,s.template.diet.nutrition_profile))),y=r(()=>{var e;return(e=w(h))==null?void 0:e.some(e=>e.resource_uri===s.template.diet.nutrition_profile)});function x(e){return`/settings/nutrition/${R(e)}`}async function T(e){let t=e.currentTarget.value;await he({nutrition_profile_uri:t,template:s.template,user_id:d})}var k=v(),A=C(k),j=o=>{var d=st(),b=f(d),E=t=>{var n=e();a(()=>u(n,w(_).title)),l(t,n)},k=e=>{var o=ot(),c=C(o),d=f(c),b=e=>{var t=it(),n=f(t,!0);S(t);var r={};a(()=>{u(n,w(_).title),r!==(r=w(_).resource_uri)&&(t.value=(t.__value=w(_).resource_uri)??``)}),l(e,t)};g(d,e=>{w(y)||e(b)});var E=t(d);M(E,17,()=>w(h),n,(e,t)=>{var n=at(),r=f(n,!0);S(n);var i={};a(()=>{u(r,w(t).title),i!==(i=w(t).resource_uri)&&(n.value=(n.__value=w(t).resource_uri)??``)}),l(e,n)}),S(c);var k;m(c);var A=t(c,2);{let e=r(()=>x(s.template.diet.nutrition_profile));z(A,{breadcrumb:!0,get href(){return w(e)},label:`Edit`,children:(e,t)=>{var n=v(),r=C(n);p(r,()=>ne),l(e,n)},$$slots:{default:!0}})}a(()=>{O(c,`id`,s.id),k!==(k=s.template.diet.nutrition_profile)&&(c.value=(c.__value=s.template.diet.nutrition_profile)??``,i(c,s.template.diet.nutrition_profile))}),D(`change`,c,T),l(e,o)};g(b,e=>{c?e(E):e(k,-1)}),S(d),l(o,d)};g(A,e=>{w(h)&&w(_)&&e(j)}),l(o,k),E()}x([`change`]);var lt=_(` `,1),ut=_(`With a premium account, you can set different meals and nutrition
+ targets for each day of the week (for example, if you want different
+ workout and rest day targets).
`),dt=_(``),ft=_(`Meal Layout
`,1),pt=_(``),mt=_(` `,1);function ht(e,n){b(n,!0);let i=P(),o=r(()=>U(X(i))),s=r(()=>U(K(i))),p=r(()=>U(L(i))),m=d(!0);async function h(e){if(!w(o))throw TypeError();await xe(w(o).resource_uri,{single_template_diet:e}),await pe(i)}function _(e){let t=(e+1)%7,n=je.map((e,t)=>[t,e]);return[...n.slice(t),...n.slice(0,t)]}var y=v(),x=C(y),T=e=>{var n=mt(),i=C(n);ve(i,{children:(e,n)=>{var i=lt(),a=C(i);Me(a,{});var u=t(a,2);V(u,{label:`Same schedule each day`,id:`single_template_diet`,children:(e,t)=>{var n=v(),i=C(n),a=e=>{be(e,{get checked(){return w(o).single_template_diet},onchange:e=>h(e.currentTarget.checked),name:`single_template_diet`})},s=r(()=>N()),u=e=>{be(e,{name:`single_template_diet`,get checked(){return w(m)},set checked(e){c(m,e,!0)}})};g(i,e=>{w(s)?e(a):e(u,-1)}),l(e,n)},$$slots:{default:!0}});var d=t(u,2),f=e=>{V(e,{label:`Nutrition target`,id:`nutrition_target`,children:(e,t)=>{ct(e,{id:`nutrition_target`,get template(){return w(s)[6]}})},$$slots:{default:!0}})};g(d,e=>{w(o).single_template_diet&&e(f)}),l(e,i)},$$slots:{default:!0}});var d=t(i,2),y=e=>{ue(e,{children:(e,t)=>{var n=ut();l(e,n)},$$slots:{default:!0}})},b=e=>{var n=ft(),i=t(C(n),2);M(i,21,()=>_(w(p).shopping_day),([e,t])=>e,(e,n)=>{var i=r(()=>j(w(n),2));let o=()=>w(i)[0],c=()=>w(i)[1],d=r(()=>w(s)[o()]),p=r(()=>`nutrition_target_${o()}`);var m=dt(),h=f(m),g=f(h,!0);S(h);var _=t(h,2),v=f(_);ct(t(v,2),{get id(){return w(p)},get template(){return w(d)}}),S(_),rt(t(_,2),{get label(){return c()},get template(){return w(d)}}),S(m),a(()=>{u(g,c()),O(v,`for`,w(p))}),l(e,m)}),S(i),l(e,n)},x=r(()=>!w(o).single_template_diet&&N()),T=e=>{var n=pt();rt(t(f(n),2),{get template(){return w(s)[6]}}),S(n),l(e,n)};g(d,e=>{w(m)?w(x)?e(b,1):e(T,-1):e(y)}),l(e,n)};g(x,e=>{w(o)&&w(p)&&w(s)&&e(T)}),l(e,y),E()}var gt=_(` `);function _t(n,i){b(i,!0);let c=r(()=>`${i.path}/${i.meal_type.id}`),d=H();var p=gt(),m=f(p),g=f(m);z(g,{breadcrumb:!0,get href(){return w(c)},children:(t,n)=>{T();var r=e();a(()=>u(r,i.meal_type.title)),l(t,r)},$$slots:{default:!0}}),S(m),Q(t(m,2),{get meal_type(){return i.meal_type}}),S(p),o(p,()=>!d&&Ke(`move`,{meal_type:i.meal_type})),a(()=>h(p,1,s(F),`svelte-lgyish`)),D(`click`,p,function(...e){G==null||G.apply(this,e)}),l(n,p),E()}x([`click`]);var vt=d(!1),yt=_(`
`),bt=_(` `,1),xt=_(` `,1);function St(i,a){b(a,!0);let o=P(),s=r(()=>U(K(o))),u=r(()=>U(X(o))),d=r(()=>U(Z(o))),p=r(()=>{if(!w(s)||!w(u)||!w(d))return;let e=(w(u).single_template_diet?[w(s)[6]]:w(s)).flatMap(e=>e.diet.meals.map(e=>e.meal_type));return w(d).filter(t=>!e.includes(t.resource_uri))});var m=xt(),h=C(m);_e(h,{title:`Meal Settings`});var _=t(h,2);W(_,{children:(r,i)=>{var a=xt(),o=C(a);ht(o,{});var s=t(o,2),u=r=>{se(r,{get open(){return w(vt)},set open(e){c(vt,e,!0)},children:(r,i)=>{var a=bt(),o=C(a),s=f(o);oe(s,{children:(t,n)=>{T();var r=e(`Unscheduled Meal Types`);l(t,r)},$$slots:{default:!0}}),S(o);var c=t(o,2);ae(c,{children:(e,t)=>{var r=yt();M(r,21,()=>w(p),n,(e,t)=>{_t(e,{path:`/settings/meals`,get meal_type(){return w(t)}})}),S(r),l(e,r)},$$slots:{default:!0}}),l(r,a)},$$slots:{default:!0}})};g(s,e=>{var t;(t=w(p))!=null&&t.length&&e(u)}),l(r,a)},$$slots:{default:!0}}),l(i,m),E()}export{St as component,Ne as universal};
+//# sourceMappingURL=107.DGc9yaM0.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/108.CTz7M_Gm.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/108.CTz7M_Gm.js
new file mode 100644
index 0000000000000000000000000000000000000000..7bce91d671b97f437327661d564051451c80a74b
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/108.CTz7M_Gm.js
@@ -0,0 +1,2 @@
+import{cn as e,sn as t,xn as n}from"../chunks/BhSt9sSe.js";import{y as r}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{o as i}from"../chunks/CYGTaWAz2.js";import{i as a}from"../chunks/B1DDWD9B.js";import{i as o}from"../chunks/BIL8YQYW2.js";import{t as s}from"../chunks/CaVcD9202.js";var c=n({load:()=>l});async function l({params:e,parent:t}){let{user:n}=await t(),s=parseInt(e.meal_type_id,10),c=await r(()=>i(n.id,s)),l=r(()=>a(n.id,c.resource_uri)),u=r(()=>o(n.id,c.resource_uri));return{meal_type:c,recurring_collections:await l,recurring_foods:await u}}function u(n,r){e(r,!0),s(n,{get meal_type(){return r.data.meal_type},get recurring_collections(){return r.data.recurring_collections},get recurring_foods(){return r.data.recurring_foods}}),t()}export{u as component,c as universal};
+//# sourceMappingURL=108.CTz7M_Gm.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/109.DGQ5K8VO.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/109.DGQ5K8VO.js
new file mode 100644
index 0000000000000000000000000000000000000000..1289c9ca5fcdec479ad05022173cb77ac1ae6c4c
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/109.DGQ5K8VO.js
@@ -0,0 +1,2 @@
+import{c as e,cn as t,sn as n}from"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as r}from"../chunks/CaVcD9202.js";function i(i,a){t(a,!1);let o={complexity:2,family_scale:1,max_totaltime:30,size_slider:100,num_foods_per_meal:0,only_use_recurring:!1,filter_recurring_collections:!0,preferred_food_types:0};e(),r(i,{get meal_type(){return o},recurring_collections:[],recurring_foods:new Map}),n()}export{i as component};
+//# sourceMappingURL=109.DGQ5K8VO.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/11.C1Dwxnsl.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/11.C1Dwxnsl.js
new file mode 100644
index 0000000000000000000000000000000000000000..94de6d49afa901fc7cc034d19dfe7bbcd77c8248
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/11.C1Dwxnsl.js
@@ -0,0 +1,6 @@
+import{At as e,Bt as t,I as n,J as r,U as i,X as a,Y as o,cn as s,kt as c,lt as l,mn as u,sn as d,vn as f,xn as p}from"../chunks/BhSt9sSe.js";import{Dt as m}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{n as h}from"../chunks/Cer-cfCG.js";import{t as g}from"../chunks/DNDaYjwu.js";import{t as _}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as v}from"../chunks/DakvCGF62.js";var y=p({load:()=>b});async function b({parent:e}){let{user:t}=await e();t.is_premium&&await g(()=>h(t.id))}var x=a(`Groceries and Pantry are unlocked by subscribing to Eat This Much Premium.
As a subscriber, the Planner will send you new meal plans every week with a
+ grocery list. Once you go shopping, just check off the items you bought and
+ they will be moved to your Pantry. As you mark meals as "eaten", the
+ ingredients are removed from your Pantry automatically.
Also, you can get your groceries delivered by one of our supported
+ providers: AmazonFresh, Whole Foods, Instacart, Walmart, and more!
`,1),S=a(` `,1);function C(t){var n=S(),i=c(n);_(i,{title:`Upgrade Required`});var a=e(i,2);v(a,{children:(e,t)=>{var n=x();u(4),r(e,n)},$$slots:{default:!0}}),r(t,n)}function w(e,a){s(a,!0);var u=o(),p=c(u),h=e=>{var t=o(),i=c(t);n(i,()=>a.children??f),r(e,t)},g=t(()=>m()),_=e=>{C(e,{})};i(p,e=>{l(g)?e(h):e(_,-1)}),r(e,u),d()}export{w as component,y as universal};
+//# sourceMappingURL=11.C1Dwxnsl.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/111.CPEfUXkU.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/111.CPEfUXkU.js
new file mode 100644
index 0000000000000000000000000000000000000000..b4f2ba4142de9b26008c3d52583a765b7e3170c9
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/111.CPEfUXkU.js
@@ -0,0 +1,2 @@
+import{cn as e,sn as t,xn as n}from"../chunks/BhSt9sSe.js";import{y as r}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{a as i}from"../chunks/CAq_OQDd2.js";import{t as a}from"../chunks/VDBjb0rj2.js";var o=n({load:()=>s});async function s({params:e,parent:t}){let{user:n}=await t(),a=parseInt(e.nutrition_target_id,10);return{nutrition_target:await r(()=>i(n.id,a))}}function c(n,r){e(r,!0),a(n,{get nutrition_target(){return r.data.nutrition_target}}),t()}export{c as component,o as universal};
+//# sourceMappingURL=111.CPEfUXkU.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/113.CHeKmZJg.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/113.CHeKmZJg.js
new file mode 100644
index 0000000000000000000000000000000000000000..06f7dbf804e2ef46824e0aeb32e08b56a7e0f98d
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/113.CHeKmZJg.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Ft as n,J as r,Lt as i,X as a,kt as o,lt as s,mn as c,xn as l}from"../chunks/BhSt9sSe.js";import{xt as u}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as d}from"../chunks/DNDaYjwu.js";import{t as f}from"../chunks/DbfHMH5n2.js";import{t as p}from"../chunks/LtYjoJmG2.js";import{t as m}from"../chunks/BC4LLrwJ.js";import{t as h}from"../chunks/DOgki7EK2.js";import{t as g}from"../chunks/D0QBoZR2.js";import{t as _}from"../chunks/B8cQXWub2.js";var v=l({load:()=>y});async function y({parent:e}){let{user:t}=await e();return d(()=>f(t.id))}var b=a(`Your profile has been updated. You may want to adjust your to better fit your needs.`,1),x=a(` `,1),S=a(` Personal Information `,1);function C(a){let l=i(!1);var d=S(),f=o(d);g(f,{});var p=t(f,4);m(p,{children:(i,a)=>{var d=x(),f=o(d);h(f,{onchange:()=>n(l,!0)});var p=t(f,2);_(p,{get open(){return s(l)},set open(e){n(l,e,!0)},children:(n,i)=>{c();var a=b(),s=t(o(a));u(s,{href:`/settings/nutrition`,children:(t,n)=>{c();var i=e(`Nutrition Targets`);r(t,i)},$$slots:{default:!0}}),c(),r(n,a)},$$slots:{default:!0}}),r(i,d)},$$slots:{default:!0}}),r(a,d)}var w=a(` `,1);function T(e){var n=w(),i=o(n);p(i,{title:`Physical Stats`}),C(t(i,2),{}),r(e,n)}export{T as component,v as universal};
+//# sourceMappingURL=113.CHeKmZJg.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/114.06UXL2Yn.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/114.06UXL2Yn.js
new file mode 100644
index 0000000000000000000000000000000000000000..40154f6b9ba702cc8d06739102b3e8b1637f89d2
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/114.06UXL2Yn.js
@@ -0,0 +1,2 @@
+import{xn as e}from"../chunks/BhSt9sSe.js";import{a as t}from"../chunks/DRq5eja-.js";import{t as n}from"../chunks/DNDaYjwu.js";import{t as r}from"../chunks/D43B57zC.js";var i=e({load:()=>a});async function a({parent:e}){let{user:r}=await e();await n(()=>t(r.id))}export{r as component,i as universal};
+//# sourceMappingURL=114.06UXL2Yn.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/115.BsqCLO_7.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/115.BsqCLO_7.js
new file mode 100644
index 0000000000000000000000000000000000000000..35d5eef65e5a44028cc21ede12c0e49639b2d234
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/115.BsqCLO_7.js
@@ -0,0 +1,2 @@
+import{At as e,Bt as t,Ft as n,J as r,Lt as i,X as a,cn as o,jt as s,kt as c,lt as l,sn as u,xn as d}from"../chunks/BhSt9sSe.js";import{Ot as f,Tt as p,y as m}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as h}from"../chunks/CWh68Btn2.js";import{l as g,o as _,r as v}from"../chunks/DRq5eja-.js";import{t as y}from"../chunks/mRJ-UFmt.js";import{t as b}from"../chunks/BC4LLrwJ.js";import{t as x}from"../chunks/CRanwLzu.js";import{n as S}from"../chunks/C_QeEPqD2.js";import{t as C}from"../chunks/B5e4OpJo.js";import{t as w}from"../chunks/CVTvHqEK2.js";var T=d({load:()=>E});async function E({params:e}){let t=parseInt(e.saved_plan_id,10);return{saved_plan:await m(()=>_(t))}}var D=a(` `,1);function O(a,d){o(d,!0);let m=f(),_=p(m,`/settings/saved-plan`),T=d.data.saved_plan,E=i(s(h(T)));async function O(){let e=S(l(E),T);return e&&await g(m,T.resource_uri,e),y(m,_)}var k=D(),A=c(k);{let e=t(()=>`Edit "${T.title}"`);x(A,{get back(){return _},onSubmit:O,get title(){return l(e)},children:(e,t)=>{b(e,{children:(e,t)=>{w(e,{get form(){return l(E)},set form(e){n(E,e,!0)}})},$$slots:{default:!0}})},$$slots:{default:!0}})}var j=e(A,2);C(j,{model_name:`Saved Plan`,redirect:()=>y(m,_),remove:()=>v(m,T),get title(){return T.title}}),r(a,k),u()}export{O as component,T as universal};
+//# sourceMappingURL=115.BsqCLO_7.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/116.D7ZaHU2M.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/116.D7ZaHU2M.js
new file mode 100644
index 0000000000000000000000000000000000000000..71a4d73e59f4f050adc1d7d8f226095eeccfe95e
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/116.D7ZaHU2M.js
@@ -0,0 +1,2 @@
+import{At as e,Bt as t,Ft as n,J as r,Lt as i,U as a,X as o,Y as s,cn as c,jt as l,kt as u,lt as d,sn as f}from"../chunks/BhSt9sSe.js";import{r as p}from"../chunks/C8UWmKFm.js";import{Ot as m,R as h,Tt as g,i as _}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as v,s as y}from"../chunks/CxRGiBH-2.js";import{n as b}from"../chunks/B1cT_TaC2.js";import{t as x}from"../chunks/CrJsVZxj.js";import{t as S}from"../chunks/BC4LLrwJ.js";import{t as C}from"../chunks/CRanwLzu.js";import{n as w}from"../chunks/5LEJzpx8.js";import{t as T}from"../chunks/CVTvHqEK2.js";var E=o(` `,1);function D(o,D){c(D,!0);let O=i(l({description:``,tags:``,title:``})),k=i(7),A=m(),j=t(()=>b(_(A)));async function M(){let e=await w(A,d(k),d(O)),t=g(A,`/saved-plan/${e.id}`);return p(t)}C(o,{back:`/settings/saved-plan`,onSubmit:M,title:`Create Saved Plan`,children:(i,o)=>{S(i,{children:(i,o)=>{var c=E(),l=u(c),f=e=>{v(e,{id:`client`,label:`Create for`,children:(e,t)=>{var n=s(),i=u(n),o=e=>{x(e,{get user(){return d(j)}})};a(i,e=>{d(j)&&e(o)}),r(e,n)},$$slots:{default:!0}})},p=t(()=>h());a(l,e=>{d(p)&&e(f)});var m=e(l,2);v(m,{id:`num_days`,label:`Number of days`,children:(e,t)=>{y(e,{name:`num_days`,get value(){return d(k)},set value(e){n(k,e,!0)}})},$$slots:{default:!0}});var g=e(m,2);T(g,{get form(){return d(O)},set form(e){n(O,e,!0)}}),r(i,c)},$$slots:{default:!0}})},$$slots:{default:!0}}),f()}export{D as component};
+//# sourceMappingURL=116.D7ZaHU2M.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/118.jtfumgKO.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/118.jtfumgKO.js
new file mode 100644
index 0000000000000000000000000000000000000000..24d1b099453b033e68267a33bad9728b4d003448
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/118.jtfumgKO.js
@@ -0,0 +1,3 @@
+import{J as e,X as t,c as n,cn as r,r as i,sn as a,xn as o}from"../chunks/BhSt9sSe.js";import{g as s,r as c}from"../chunks/C8UWmKFm.js";import{A as l,k as u}from"../chunks/gotDHXHr.js";import{t as d}from"../chunks/C5rGgnpV.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{n as f}from"../chunks/CyviYcci.js";var p=o({load:()=>m});async function m({url:e}){if(await l())return{};let t=u(e);d(307,t??s(`/`))}var h=t(` EatThisMuch is currently down for maintenance. Sorry for the
+ inconvenience!
Everything should be back up shortly.
`);function g(t,o){r(o,!1),i(()=>{let e=setInterval(async()=>{if(!await l()){let e=u(f.url)??s(`/`);await c(e)}},6e4);return()=>clearInterval(e)}),n();var d=h();e(t,d),a()}export{g as component,p as universal};
+//# sourceMappingURL=118.jtfumgKO.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/119.DsMejuLV.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/119.DsMejuLV.js
new file mode 100644
index 0000000000000000000000000000000000000000..696039b022b1fcd10411bd1f854e7ac2f9fe3421
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/119.DsMejuLV.js
@@ -0,0 +1,2 @@
+import"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";function e(e){}export{e as component};
+//# sourceMappingURL=119.DsMejuLV.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/12.rhyrtrxX.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/12.rhyrtrxX.js
new file mode 100644
index 0000000000000000000000000000000000000000..0a25ae0e79fac71ed867c39c9da8289846df1114
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/12.rhyrtrxX.js
@@ -0,0 +1,2 @@
+import{At as e,Bt as t,I as n,J as r,U as i,X as a,Y as o,cn as s,kt as c,lt as l,mn as u,sn as d,wt as f,xn as p}from"../chunks/BhSt9sSe.js";import{g as m}from"../chunks/C8UWmKFm.js";import{I as h,Ot as g,Rt as _,Tt as v,X as y,y as b}from"../chunks/gotDHXHr.js";import{t as x}from"../chunks/C5rGgnpV.js";import"../chunks/xihTtKlq.js";import{n as S}from"../chunks/B1cT_TaC2.js";import{B as C,O as w,j as T}from"../chunks/Cer-cfCG.js";import{l as E,o as D}from"../chunks/DRq5eja-.js";import{r as O}from"../chunks/YbPoYoGd2.js";var k=p({load:()=>A});async function A({params:e,parent:t}){h()||x(307,m(`/(auth)/login`));let{user:n}=await t(),r=parseInt(e.saved_plan_id,10),i=!1;try{let e=await b(()=>D(r));if(e.user.id!==n.id){let t=v(e.user.id,`/saved-plan/${r}`);x(307,t)}}catch(e){if(e instanceof _)i=!0;else throw e}return{permission_error:i,saved_plan_id:r,user:n}}function j(e,n){s(n,!0);let r,i=g(),a=y(async(e,t)=>{let n=r={};if(!e||!t)return;let a=await b(()=>w(t)),o=t=>t/e.num_diets,s={average_calories:o(a.calories),average_carbs:o(a.carbs),average_fats:o(a.fats),average_fiber:o(a.fiber),average_net_carbs:o(a.net_carbs),average_proteins:o(a.proteins)};T(s).some(([t,n])=>{let r=e[t];return rn+1})&&n===r&&await E(i,e.resource_uri,s)},500),o=t(()=>S(D(n.saved_plan_id))),c=t(()=>{let e=S(C(i,l(o)));if(!e)return;let t=e.flatMap(e=>e.meals);return S(O(t))});f(()=>{a(l(o),l(c))}),d()}var M=a(`Access Denied You do not have permission to view this Saved Plan.
`,1),N=a(` `,1);function P(t,a){s(a,!0);var l=o(),f=c(l),p=e=>{var t=M();u(2),r(e,t)},m=t=>{var i=N(),o=c(i);j(o,{get saved_plan_id(){return a.data.saved_plan_id}});var s=e(o,2);n(s,()=>a.children),r(t,i)};i(f,e=>{a.data.permission_error?e(p):e(m,-1)}),r(t,l),d()}export{P as component,k as universal};
+//# sourceMappingURL=12.rhyrtrxX.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/13.BbJK0_pX.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/13.BbJK0_pX.js
new file mode 100644
index 0000000000000000000000000000000000000000..48d22e66dbdbb95e2b55ea1b3977c804a6692ef5
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/13.BbJK0_pX.js
@@ -0,0 +1,2 @@
+import{I as e,J as t,Y as n,cn as r,kt as i,sn as a,vn as o}from"../chunks/BhSt9sSe.js";import{M as s}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{d as c}from"../chunks/CxRGiBH-2.js";import{n as l}from"../chunks/C2PzE5jE.js";function u(u,d){r(d,!0);let f=!s(l.EDIT_SETTINGS);c(f);var p=n(),m=i(p);e(m,()=>d.children??o),t(u,p),a()}export{u as component};
+//# sourceMappingURL=13.BbJK0_pX.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/15.C-9011Ts.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/15.C-9011Ts.js
new file mode 100644
index 0000000000000000000000000000000000000000..a6278f019716156d1b2d2b779afccae9d96a1dfd
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/15.C-9011Ts.js
@@ -0,0 +1,5 @@
+import{At as e,Bt as t,I as n,J as r,U as i,X as a,Y as o,cn as s,kt as c,lt as l,mn as u,sn as d}from"../chunks/BhSt9sSe.js";import{Dt as f}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as p}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as m}from"../chunks/DakvCGF62.js";var h=a(`Creating additional Nutrition Targets requires an Eat This Much Premium
+ subscription.
As a subscriber, you can create multiple Nutrition Targets, use them when
+ creating a Saved Plan, or assign different Nutrition Targets to each day
+ of the week!
`,1),g=a(` `,1);function _(a,_){s(_,!0);var v=o(),y=c(v),b=e=>{var t=o(),i=c(t);n(i,()=>_.children),r(e,t)},x=t(()=>f()),S=t=>{var n=g(),i=c(n);p(i,{title:`Upgrade Required`});var a=e(i,2);m(a,{children:(e,t)=>{var n=h();u(2),r(e,n)},$$slots:{default:!0}}),r(t,n)};i(y,e=>{l(x)?e(b):e(S,-1)}),r(a,v),d()}export{_ as component};
+//# sourceMappingURL=15.C-9011Ts.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/16.D6Es0qok.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/16.D6Es0qok.js
new file mode 100644
index 0000000000000000000000000000000000000000..bf881cba3a464184e622b4bcf36b980469984682
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/16.D6Es0qok.js
@@ -0,0 +1,3 @@
+import{At as e,Bt as t,I as n,J as r,U as i,X as a,Y as o,cn as s,kt as c,lt as l,sn as u}from"../chunks/BhSt9sSe.js";import{Dt as d,M as f}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{d as p}from"../chunks/CxRGiBH-2.js";import{n as m}from"../chunks/C2PzE5jE.js";import{t as h}from"../chunks/DakvCGF62.js";import{t as g}from"../chunks/LtYjoJmG2.js";var _=a(`With Eat This Much Premium, you can save days or weeks of meal plans and
+ load them into your calendar whenever you like!
`),v=a(` `,1);function y(a,y){s(y,!0);let b=!f(m.SAVED_PLANS);p(b);var x=o(),S=c(x),C=t=>{var n=v(),i=c(n);g(i,{title:`Saved Plans`});var a=e(i,2);h(a,{children:(e,t)=>{var n=_();r(e,n)},$$slots:{default:!0}}),r(t,n)},w=t(()=>!d()),T=e=>{var t=o(),i=c(t);n(i,()=>y.children),r(e,t)};i(S,e=>{l(w)?e(C):e(T,-1)}),r(a,x),u()}export{y as component};
+//# sourceMappingURL=16.D6Es0qok.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/19.CZ1DMC1V.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/19.CZ1DMC1V.js
new file mode 100644
index 0000000000000000000000000000000000000000..dbf586902ce6f25aeed1b32296528e701e613ff8
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/19.CZ1DMC1V.js
@@ -0,0 +1,5 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,J as a,K as o,Ot as s,U as c,X as l,Y as u,a as d,cn as f,hn as p,kt as m,lt as h,mn as g,sn as _,xn as v}from"../chunks/BhSt9sSe.js";import{g as y,r as b}from"../chunks/C8UWmKFm.js";import{I as x,T as S,at as C,bt as w,j as T,t as E}from"../chunks/gotDHXHr.js";import{t as D}from"../chunks/C5rGgnpV.js";import"../chunks/xihTtKlq.js";import{t as O}from"../chunks/BpQEveid.js";import{t as k}from"../chunks/BON7-EQG2.js";import{t as A}from"../chunks/C2as7BOF.js";import{t as j}from"../chunks/c5zWaAEX2.js";var M=v({load:()=>N});async function N({parent:e,url:t}){let n=await e();n.manager||D(307,y(`/`));let r=null;return x()&&(r=await E(T()),(r.is_managed||r.is_manager)&&D(307,y(`/`))),{...n,invite_code:t.searchParams.get(`invite_code`)||void 0,title:`Connect Account`,user:r}}var P=l(`You will lose access to your account
`,1),F=l(` `),I=l(` `,1),L=l(`
Connecting accounts will give them complete access to your account, allowing
+ them to update your meal plans and modify your diet preferences.
`,1);function R(i,l){f(l,!0);let u=d(l,`user`,15),v=n(()=>`/api/join-professional/${l.manager.user_id}/${l.manager.username}/`);async function T(){let e=await S(h(v),{accept_invite:`true`,invite_code:l.invite_code});if(e.data){if(e.data.user.is_awaiting_manager_approval)u(e.data.user);else return b(y(`/`))}}async function E(){await S(h(v),{accept_invite:`false`}),await b(y(`/`))}var D=L(),M=m(D),N=s(M);p(M);var R=t(M,4),z=e=>{A(e,{children:(e,n)=>{var i=P(),c=t(m(i),2),u=s(c);p(c),r(()=>o(u,`If you want to keep access to your account, ask ${l.manager.company_name??``}
+ to change their account to a "Collaborate" plan before accepting this invitation.`)),a(e,i)},$$slots:{default:!0}})};c(R,e=>{l.manager.tier_type===`control`&&e(z)});var B=t(R,2),V=s(B),H=t=>{var n=F(),r=s(n);C(r,{get icon(){return w},onclick:T,style:`primary`,children:(t,n)=>{g();var r=e(`Accept Invitation`);a(t,r)},$$slots:{default:!0}}),p(n),a(t,n)},U=n(()=>x()),W=r=>{var i=I(),o=m(i),c=s(o);{let t=n(()=>l.getLink(`/registration`));C(c,{get icon(){return k},get href(){return h(t)},style:`primary`,children:(t,n)=>{g();var r=e(`Register`);a(t,r)},$$slots:{default:!0}})}p(o);var u=t(o,2),d=s(u);{let t=n(()=>l.getLink(`/login`));C(d,{get icon(){return j},get href(){return h(t)},style:`primary`,children:(t,n)=>{g();var r=e(`Log In`);a(t,r)},$$slots:{default:!0}})}p(u),a(r,i)};c(V,e=>{h(U)?e(H):e(W,-1)});var G=t(V,2),K=s(G),q=t=>{C(t,{get icon(){return O},onclick:E,children:(t,n)=>{g();var r=e(`Decline Invitation`);a(t,r)},$$slots:{default:!0}})},J=t=>{{let r=n(()=>y(`/`));C(t,{get icon(){return O},get href(){return h(r)},children:(t,n)=>{g();var r=e(`Decline Invitation`);a(t,r)},$$slots:{default:!0}})}};c(K,e=>{var t;(t=u())!=null&&t.inviting_manager?e(q):e(J,-1)}),p(G),p(B),r(()=>o(N,`${l.manager.company_name??``} has invited you to connect your account.`)),a(i,D),_()}var z=l(`
You may safely close this window.
`,1),B=l(`
In the meantime, you may use the free tier of Eat This Much.
`,1);function V(l,d){f(d,!0);let v=n(()=>d.data.user);var b=u(),x=m(b),S=e=>{var t=z(),n=m(t),i=s(n);p(n),g(2),r(()=>o(i,`Thank you for submitting your details! We have notified ${d.data.manager.company_name??``} and they will follow up with you for your next steps.`)),a(e,t)},w=i=>{var c=B(),l=m(c),u=s(l);p(l);var f=t(l,4),_=s(f);{let t=n(()=>y(`/`));C(_,{get href(){return h(t)},style:`primary`,children:(t,n)=>{g();var r=e(`Continue`);a(t,r)},$$slots:{default:!0}})}p(f),r(()=>o(u,`You have connected your account, but ${d.data.manager.company_name??``} needs to confirm
+ this action before completion.`)),a(i,c)},T=e=>{R(e,{get getLink(){return d.data.getLink},get invite_code(){return d.data.invite_code},get manager(){return d.data.manager},get user(){return h(v)},set user(e){i(v,e)}})};c(x,e=>{var t,n,r;(t=h(v))!=null&&t.is_awaiting_manager_approval&&((n=h(v).manager)==null?void 0:n.tier_type)===`control`?e(S):(r=h(v))!=null&&r.is_awaiting_manager_approval?e(w,1):e(T,-1)}),a(l,b),_()}export{V as component,M as universal};
+//# sourceMappingURL=19.CZ1DMC1V.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/2.BiuGRjVb.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/2.BiuGRjVb.js
new file mode 100644
index 0000000000000000000000000000000000000000..a7e40b9772316190da24b8df95f83e81afbd7401
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/2.BiuGRjVb.js
@@ -0,0 +1,2 @@
+import{At as e,Bt as t,Ct as n,Et as r,I as i,J as a,K as o,Ot as s,R as c,U as l,X as u,cn as d,gt as f,hn as p,k as m,kt as h,lt as g,sn as _,v,vn as y,xn as b}from"../chunks/BhSt9sSe.js";import{g as x,o as S}from"../chunks/C8UWmKFm.js";import{S as C}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as w}from"../chunks/CyviYcci.js";import{t as T}from"../chunks/9yaFw3Eq.js";var E=b({load:()=>D});async function D({params:e,url:t}){if(e.connect){let[n,r]=e.connect.split(`/`),i=await C(null,`/api/get-professional-details/${r}/`),a=t.searchParams.get(`join_code`);return{getLink(e){let t=x(`/(auth)/connect/${i.username}${e}`);return a&&(t+=`?join_code=${encodeURIComponent(a)}`),t},manager:i}}return{getLink(e){return x(`/(auth)${e}`)}}}var O=u(` `),k=u(`
`,1),A=u(` `),j=u(` `,1);function M(u,b){d(b,!0);let C=t(()=>b.data.manager),E=t(()=>w.data.title),D=new Date().getFullYear();S(x(`/`));var M=j();m(`6te7c9`,e=>{f(()=>{r.title=g(E)??``})});var N=h(M),P=s(N),F=t=>{var r=k(),i=h(r),c=s(i),u=e=>{var t=O();n(()=>v(t,`src`,g(C).logo_url)),a(e,t)};l(c,e=>{g(C).logo_url&&e(u)});var d=e(c);p(i);var f=e(i,2),m=s(f,!0);p(f),n(()=>{o(d,` ${g(C).company_name??``}`),o(m,g(E))}),a(t,r)},I=t=>{var r=A(),i=s(r);c(i,()=>T,!0),p(i);var l=e(i);p(r),n(()=>o(l,` ${g(E)??``}`)),a(t,r)};l(P,e=>{g(C)?e(F):e(I,-1)});var L=e(P,2);i(L,()=>b.children??y),p(N);var R=e(N,2),z=e(s(R),4),B=s(z);p(z),p(R),n(()=>o(B,`©${D??``} Eat This Much, Inc.`)),a(u,M),_()}export{M as component,E as universal};
+//# sourceMappingURL=2.BiuGRjVb.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/20.LX5cVnZT.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/20.LX5cVnZT.js
new file mode 100644
index 0000000000000000000000000000000000000000..93ae7fba6299c5feec2fc4e388ec4a01f65ac773
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/20.LX5cVnZT.js
@@ -0,0 +1,4 @@
+import{$ as e,At as t,Bt as n,Ct as r,J as i,K as a,Ot as o,U as s,X as c,Y as l,cn as u,hn as d,kt as f,lt as p,mn as m,sn as h,xn as g}from"../chunks/BhSt9sSe.js";import{g as _,r as v}from"../chunks/C8UWmKFm.js";import{B as y,I as b,Lt as x,S,T as C,at as w,bt as T,j as E,t as D}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as O}from"../chunks/BpQEveid.js";import{t as k}from"../chunks/BON7-EQG2.js";import{l as A}from"../chunks/Cer-cfCG.js";import{t as j}from"../chunks/c5zWaAEX2.js";import{t as M}from"../chunks/FlQAycz02.js";var N=g({load:()=>P});async function P({params:e}){let t=e.code,n=S(null,`/api/get-group-owner-for-invite/?join_code=${t}`).catch(e=>{if(e instanceof x&&e.message===`Invalid invite code.`)return null;throw e}),r=null;if(b()){let e=E();r=await D(e)}return{auth_user:r,code:t,manager:await n,title:`Connect Your Account`}}var F=c(` `,1),I=c(` has invited you to connect your account. You will both be able to see and modify
+ each others accounts.
`,1);function L(c,l){u(l,!0);async function g(){await C(`/api/join-group/`,{join_code:l.code}),await A(),await v(_(`/`))}function x(){let e=location.pathname+location.search;return _(`/(auth)/registration`)+`?next=${encodeURIComponent(e)}`}var S=I(),E=f(S),D=o(E),M=o(D,!0);d(D),m(),d(E);var N=t(E,2),P=o(N),L=r=>{var a=F(),s=f(a),c=o(s);w(c,{get icon(){return T},onclick:g,style:`primary`,children:(t,n)=>{m();var r=e(`Accept`);i(t,r)},$$slots:{default:!0}}),d(s);var l=t(s,2),u=o(l);{let t=n(()=>_(`/`));w(u,{get icon(){return O},get href(){return p(t)},children:(t,n)=>{m();var r=e(`Decline`);i(t,r)},$$slots:{default:!0}})}d(l),i(r,a)},R=n(()=>b()),z=r=>{var a=F(),s=f(a),c=o(s);{let t=n(x);w(c,{get icon(){return k},get href(){return p(t)},style:`primary`,children:(t,n)=>{m();var r=e(`Register`);i(t,r)},$$slots:{default:!0}})}d(s);var l=t(s,2),u=o(l);{let t=n(y);w(u,{get icon(){return j},get href(){return p(t)},style:`primary`,children:(t,n)=>{m();var r=e(`Log In`);i(t,r)},$$slots:{default:!0}})}d(l),i(r,a)};s(P,e=>{p(R)?e(L):e(z,-1)}),d(N),r(()=>a(M,l.manager.username)),i(c,S),h()}var R=c(`This invite code has expired.
`,1),z=c(`You can't connect with your own account. Send this link to a different user
+ to invite them to connect their account:
`,1);function B(n,r){u(r,!0);let a=_(`/`);var c=l(),p=f(c),g=n=>{var r=R(),s=t(f(r),2),c=o(s);w(c,{get href(){return a},children:(t,n)=>{m();var r=e(`Continue`);i(t,r)},$$slots:{default:!0}}),d(s),i(n,r)},v=n=>{var r=z(),s=t(f(r),2),c=o(s);M(c,{value:window.location.href}),d(s);var l=t(s,2),u=o(l);w(u,{get href(){return a},style:`primary`,children:(t,n)=>{m();var r=e(`Return Home`);i(t,r)},$$slots:{default:!0}}),d(l),i(n,r)},y=e=>{L(e,{get code(){return r.data.code},get manager(){return r.data.manager}})};s(p,e=>{var t;r.data.manager===null?e(g):((t=r.data.auth_user)==null?void 0:t.username)===r.data.manager.username?e(v,1):e(y,-1)}),i(n,c),h()}export{B as component,N as universal};
+//# sourceMappingURL=20.LX5cVnZT.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/21.eBjk7AG0.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/21.eBjk7AG0.js
new file mode 100644
index 0000000000000000000000000000000000000000..0137d6683b4cb75cad88115be1753cd9a100c3b6
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/21.eBjk7AG0.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Ct as n,E as r,Ft as i,J as a,K as o,Lt as s,Ot as c,T as l,U as u,V as d,X as f,cn as p,hn as m,jt as h,kt as g,lt as _,mn as v,sn as y,v as b,xn as x}from"../chunks/BhSt9sSe.js";import{g as S,r as C}from"../chunks/C8UWmKFm.js";import{I as w,Q as T,T as E,Z as D,dt as O,k}from"../chunks/gotDHXHr.js";import{t as A}from"../chunks/C5rGgnpV.js";import"../chunks/xihTtKlq.js";import{t as j}from"../chunks/DEgMoMXi.js";import{o as M,t as N}from"../chunks/CxRGiBH-2.js";import{t as P}from"../chunks/C2as7BOF.js";import{t as F}from"../chunks/c5zWaAEX2.js";import{r as I}from"../chunks/TSJ3fM002.js";import{t as L}from"../chunks/DT7Dqe2g2.js";var R=x({load:()=>z});async function z({url:e}){let t=k(e)??S(`/`);return w()&&A(307,t),{next:t,title:`Log In`}}var B=f(`Don't have an account? Register
`,1),V=f(` `,1);function H(f,x){p(x,!0);let w=s(``),k=s(``),A=s(h({}));async function R(){let e=await E(`/api/login/`,{username:_(w),password:_(k)});if(e.errors)throw i(A,e.errors,!0),new T;let t=e.data.user;if(x.data.manager&&!t.is_managed&&!t.is_manager){let e=x.data.getLink(`/join`);return C(e)}return C(x.data.next)}var z=V(),H=g(z);D(H,{onSubmit:R,children:(s,d)=>{var f=B(),p=g(f),h=t(c(p));m(p);var y=t(p,2),C=t=>{P(t,{children:(t,r)=>{v();var i=e();n(()=>o(i,_(A).__all__)),a(t,i)},$$slots:{default:!0}})};u(y,e=>{_(A).__all__&&e(C)});var T=t(y,2),E=c(T),D=c(E),I=t(c(D));N(I,{disable_autocorrect:!0,name:`username`,get value(){return _(w)},set value(e){i(w,e,!0)}}),m(D);var R=t(D,2);L(R,{get error(){return _(A).username}}),m(E);var z=t(E,2),V=c(z),H=t(c(V));M(H,{autocomplete:`current-password`,get value(){return _(k)},set value(e){i(k,e,!0)}}),m(V);var U=t(V,2);L(U,{get error(){return _(A).password}});var W=t(U,2);m(z),m(T);var G=t(T,2),K=c(G);j(K,{get icon(){return F},children:(t,n)=>{v();var r=e(`Log In`);a(t,r)},$$slots:{default:!0}}),m(G),n((e,t)=>{b(h,`href`,e),l(T,1,r(O),`svelte-1lycsie`),b(W,`href`,t)},[()=>x.data.getLink(`/registration`),()=>S(`/(auth)/reset-password`)]),a(s,f)},$$slots:{default:!0}});var U=t(H,2);d(U,()=>({"--border-radius":`var(--button-height)`})),I(U.lastChild,{get next(){return x.data.next}}),m(U),a(f,z),y()}export{H as component,R as universal};
+//# sourceMappingURL=21.eBjk7AG0.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/22.FmbvcfYx.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/22.FmbvcfYx.js
new file mode 100644
index 0000000000000000000000000000000000000000..69183d9f0c6a454b6dd2e68c16f3f357d052a2ed
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/22.FmbvcfYx.js
@@ -0,0 +1,2 @@
+import{At as e,Ct as t,Et as n,J as r,Ot as i,R as a,W as o,X as s,_t as c,c as l,cn as u,hn as d,k as f,kt as p,mn as m,sn as h,v as g}from"../chunks/BhSt9sSe.js";import{g as _,l as v}from"../chunks/C8UWmKFm.js";import{Pt as y,U as b,Ut as x,w as S}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as C}from"../chunks/9yaFw3Eq.js";var w=s(`Logged Out You have been logged out successfully. We hope to see you soon!
`,1),T=s(`Logging Out
`,1),E=s(`
`);function D(s,D){u(D,!1);async function O(){await S(null,`/api/logout/`,{}),await b(null),await x(),v(`/`,{})}l();var k=E();f(`1ir8ru7`,e=>{c(()=>{n.title=`Log Out`})});var A=i(k),j=i(A);a(j,()=>C,!0),d(j),d(A);var M=e(A,2);o(M,O,t=>{var n=T(),a=e(p(n),2),o=i(a);y(o,{}),d(a),r(t,n)},n=>{var a=w(),o=e(p(a),4),s=i(o),c=i(s);d(s),m(2),d(o),t(e=>g(c,`href`,e),[()=>_(`/(auth)/login`)]),r(n,a)}),d(k),r(s,k),h()}export{D as component};
+//# sourceMappingURL=22.FmbvcfYx.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/23.C0wtlKWw.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/23.C0wtlKWw.js
new file mode 100644
index 0000000000000000000000000000000000000000..809c7480bdc49ba2c3081eee5de39eb678e02af4
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/23.C0wtlKWw.js
@@ -0,0 +1,3 @@
+import{$ as e,At as t,Bt as n,Ct as r,E as i,Ft as a,J as o,K as s,Lt as c,Ot as l,R as ee,T as te,U as u,V as d,X as f,cn as p,hn as m,jt as h,kt as g,lt as _,mn as v,sn as y,v as b,xn as x}from"../chunks/BhSt9sSe.js";import{g as S,r as C}from"../chunks/C8UWmKFm.js";import{I as w,Q as T,T as E,Z as D,dt as ne,en as O,k}from"../chunks/gotDHXHr.js";import{t as A}from"../chunks/C5rGgnpV.js";import"../chunks/xihTtKlq.js";import{t as re}from"../chunks/Bce0nSU2.js";import{t as ie}from"../chunks/DEgMoMXi.js";import{t as ae}from"../chunks/BON7-EQG2.js";import{o as j,p as M}from"../chunks/CxRGiBH-2.js";import{t as N}from"../chunks/C2as7BOF.js";import{r as P}from"../chunks/TSJ3fM002.js";import{t as F}from"../chunks/DT7Dqe2g2.js";import{t as I}from"../chunks/2fVw9NDa2.js";var L=x({load:()=>R});async function R({url:e}){let t=e.searchParams.has(`professional`);if(w()){t&&A(307,S(`/`)+`?professional-setup`);let n=k(e)??S(`/`);A(307,n)}return{next:k(e)??S(`/account-setup`),professional:t,title:t?`Professional Registration`:`Register`}}var oe=f(` Send me a once-a-week email with meal ideas Optional! These can help maintain your meal planning mindset, and you
+ can opt-out at any time.
`),se=f(`
`,1),z=f(`Already have an account? Log In
`,1);function B(f,x){p(x,!0);let w=c(``),k=c(``),A=c(``),L=c(``),R=c(!1),B=c(!1),V=c(h({})),H=c(!1);async function U(){a(H,!0);let{errors:e}=await E(`/api/auth/registration/start`,{email:_(k),password1:_(A),password2:_(L),platform:`svelte`,tos:_(R)?`True`:`False`,receive_free_plan_emails:_(B)?`True`:`False`,username:_(w)});if(e)throw a(V,e,!0),new T;if(x.data.professional)return O(`event`,`pro_registered`),C(S(`/professional-setup`));if(x.data.manager){O(`event`,`registered`);let e=x.data.getLink(`/join`);return C(e)}return O(`event`,`registered`),location.href=`/auth/registration/verify`}var W=z(),G=g(W),K=t(l(G));m(G);var q=t(G,2),J=t=>{N(t,{children:(t,n)=>{v();var i=e();r(()=>s(i,_(V).__all__)),o(t,i)},$$slots:{default:!0}})};u(q,e=>{_(V).__all__&&e(J)});var Y=t(q,2);D(Y,{onSubmit:U,children:(s,c)=>{var d=se(),f=g(d),p=l(f),h=l(p),y=t(l(h));I(y,{type:`username`,get error(){return _(V).username},set error(e){_(V).username=e},get value(){return _(w)},set value(e){a(w,e,!0)}}),m(h);var b=t(h,2);F(b,{get error(){return _(V).username}}),m(p);var S=t(p,2),C=l(S),T=t(l(C));I(T,{type:`email`,get error(){return _(V).email},set error(e){_(V).email=e},get value(){return _(k)},set value(e){a(k,e,!0)}}),m(C);var E=t(C,2);F(E,{get error(){return _(V).email}}),m(S);var D=t(S,2),O=l(D),P=t(l(O));j(P,{autocomplete:`new-password`,get value(){return _(A)},set value(e){a(A,e,!0)}}),m(O);var z=t(O,2);F(z,{get error(){return _(V).password1}}),m(D);var U=t(D,2),W=l(U),G=t(l(W));{let e=n(()=>_(A)===_(L)?``:`Passwords must match`);j(G,{autocomplete:`new-password`,get error(){return _(e)},onblur:()=>a(H,!0),get value(){return _(L)},set value(e){a(L,e,!0)}})}m(W);var K=t(W,2),q=t=>{N(t,{children:(t,n)=>{v();var r=e(`Those passwords do not match.`);o(t,r)},$$slots:{default:!0}})};u(K,e=>{_(H)&&_(A)!==_(L)&&e(q)}),m(U);var J=t(U,2),Y=l(J),X=l(Y);M(X,{required:!0,get checked(){return _(R)},set checked(e){a(R,e,!0)}});var Z=t(X,2),Q=t(l(Z)),ce=t(l(Q));ee(ce,()=>re),m(Q),m(Z),m(Y),m(J);var le=t(J,2),ue=e=>{var t=oe(),n=l(t),r=l(n);M(r,{get checked(){return _(B)},set checked(e){a(B,e,!0)}}),v(2),m(n),v(2),m(t),o(e,t)};u(le,e=>{x.data.professional||e(ue)}),m(f);var $=t(f,2),de=l($);ie(de,{get icon(){return ae},children:(t,n)=>{v();var r=e(`Create Account`);o(t,r)},$$slots:{default:!0}}),m($),r(()=>te(f,1,i(ne),`svelte-1hohyim`)),o(s,d)},$$slots:{default:!0}});var X=t(Y,2);{let e=n(()=>S(`/`)+(x.data.professional?`?professional-setup`:``));d(X,()=>({"--border-radius":`var(--button-height)`})),P(X.lastChild,{get next(){return _(e)}}),m(X)}r(e=>b(K,`href`,e),[()=>x.data.getLink(`/login`)]),o(f,W),y()}export{B as component,L as universal};
+//# sourceMappingURL=23.C0wtlKWw.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/24.C2rp7Dwu.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/24.C2rp7Dwu.js
new file mode 100644
index 0000000000000000000000000000000000000000..f8b3da57b92cc091081e1603e6e157a125dd4136
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/24.C2rp7Dwu.js
@@ -0,0 +1,5 @@
+import{$ as e,At as t,Ct as n,E as r,Ft as i,J as a,Lt as o,Ot as s,T as c,U as l,X as u,Y as d,cn as f,hn as p,kt as m,lt as h,mn as g,sn as _,xn as v}from"../chunks/BhSt9sSe.js";import{E as y,Z as b,dt as x}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as S}from"../chunks/CqYOJzvT.js";import{t as C}from"../chunks/DEgMoMXi.js";import{l as w}from"../chunks/CxRGiBH-2.js";var T=v({load:()=>E});function E(){return{title:`Reset Password`}}var D=u(`If a user exists with the email you specified we will now send a link to
+ reset your password. Please check your email and click the link to continue.
If you do not receive an email we likely did not have any accounts using
+ that email and you may want to try another email address.
`,1),O=u(`Enter your email in the form below and we'll send you instructions for
+ creating a new one.
`,1);function k(u,v){f(v,!0);let T=o(``),E=o(!1);async function k(){await y(null,`/user/password/reset/`,{email:h(T)}),location.href=`/auth/password-reset/verify`}var A=d(),j=m(A),M=e=>{var t=D();g(2),a(e,t)},N=o=>{b(o,{onSubmit:k,children:(o,l)=>{var u=O(),d=t(m(u),2),f=s(d),_=s(f),v=t(s(_));w(v,{get value(){return h(T)},set value(e){i(T,e,!0)}}),p(_),p(f),p(d);var y=t(d,2),b=s(y);C(b,{get icon(){return S},children:(t,n)=>{g();var r=e(`Send Password Reset Email`);a(t,r)},$$slots:{default:!0}}),p(y),n(()=>c(d,1,r(x),`svelte-1nj5vzg`)),a(o,u)},$$slots:{default:!0}})};l(j,e=>{h(E)?e(M):e(N,-1)}),a(u,A),_()}export{k as component,T as universal};
+//# sourceMappingURL=24.C2rp7Dwu.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/25.Bfy7jfT9.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/25.Bfy7jfT9.js
new file mode 100644
index 0000000000000000000000000000000000000000..3441ffb9682c308f55ae8b76ed082eae1702bafe
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/25.Bfy7jfT9.js
@@ -0,0 +1,13 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,J as a,K as o,Ot as s,U as c,X as l,cn as u,hn as d,kt as f,lt as p,mn as m,sn as h,xn as g}from"../chunks/BhSt9sSe.js";import{g as _}from"../chunks/C8UWmKFm.js";import{Ot as v,R as y,Tt as b,Z as x,w as S,y as C}from"../chunks/gotDHXHr.js";import{t as w}from"../chunks/C5rGgnpV.js";import"../chunks/xihTtKlq.js";import{t as T}from"../chunks/C2as7BOF.js";import{t as E}from"../chunks/CLTyeLEa.js";import{r as D,t as O}from"../chunks/Ctg-Sb3g.js";import{t as k}from"../chunks/mRJ-UFmt.js";import{t as A}from"../chunks/LtYjoJmG2.js";import{t as j}from"../chunks/DTm82U0q2.js";import{t as M}from"../chunks/CZOcB8DL.js";import{t as N}from"../chunks/sat-xcJP.js";var P=g({load:()=>F});async function F({parent:e}){let{user:t}=await e(),n=await C(()=>O());return(!t.is_premium||n.unsubscribed)&&w(307,_(y()?`/professional-setup/plan`:`/upgrade`)),{subscription:n}}var I=l(`Your account is currently on a legacy per-client billing plan.
If you had more than 10 clients over the past billing period and switch to
+ a new tiered plan, our billing system will make an immediate one-time
+ charge to close out those extra client fees. You may also be charged a
+ prorated amount for the plan change itself. Feel free to contact us if you have any questions.
Then you can say goodbye to per-client fees!
`,1),L=l(`You're subscribed to the plan.
Choose Plan `,1);function R(n,i){u(i,!0);let l=v(),p=b(l,`/account/subscription`);async function g(e){let{subscription:t}=await S(null,`/api/change-plan/`,{price_id:e});return D(t),k(l,p)}var _=L(),y=f(_),x=t(s(y)),C=s(x,!0);d(x);var w=t(x,2),O=t=>{var n=e(`If you change to the quarterly subscription, you'll be charged the quarterly
+ rate, prorated for any time you haven't used for the rest of this month.`);a(t,n)},A=t=>{var n=e(`If you change to the monthly subscription, your account will be credited an
+ amount proportional to the remaining time on your membership. Your monthly
+ subscription will use the these credited funds before charging your credit
+ card.`);a(t,n)};c(w,e=>{i.subscription.period===`monthly`?e(O):i.subscription.period===`quarterly`&&e(A,1)}),d(y);var M=t(y,2),N=e=>{T(e,{children:(e,t)=>{var n=I();m(4),a(e,n)},$$slots:{default:!0}})};c(M,e=>{i.subscription.tier_type||e(N)});var P=t(M,4);E(P,{children:(e,t)=>{j(e,{onSubmit:g,get period(){return i.subscription.period}})},$$slots:{default:!0}}),r(()=>o(C,i.subscription.description)),a(n,_),h()}var z=l(` `,1),B=l(`You're subscribed to the plan.
`,1);function V(l,m){u(m,!0);let g=n(()=>m.subscription.period),_=n(()=>m.subscription.price),y=v(),C=b(y,`/account/subscription`);async function w(){let{subscription:e}=await S(null,`/api/change-plan/`,{price_id:p(_)});return D(e),k(y,C)}var T=B(),O=f(T),A=t(s(O)),j=s(A,!0);d(A);var P=t(A,2),F=t=>{var n=e(`If you change to the annual subscription, you'll be charged the yearly rate,
+ prorated for any time you haven't used for the rest of this month.`);a(t,n)},I=t=>{var n=e(`If you change to the monthly subscription, your account will be credited an
+ amount proportional to the remaining time on your membership. Your monthly
+ subscription will use the these credited funds before charging your credit
+ card.`);a(t,n)};c(P,e=>{p(g)===`monthly`?e(F):p(g)===`yearly`&&e(I,1)}),d(O);var L=t(O,2);E(L,{children:(e,n)=>{x(e,{onSubmit:w,children:(e,n)=>{var r=z(),o=f(r);N(o,{get value(){return p(_)},set value(e){i(_,e)}});var s=t(o,2);M(s,{get href(){return C}}),a(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),r(()=>o(j,m.subscription.description)),a(l,T),h()}var H=l(` `,1);function U(e,r){u(r,!0);var i=H(),o=f(i);A(o,{href:`/account/subscription`,title:`Change Subscription Plan`});var s=t(o,2),l=e=>{R(e,{get subscription(){return r.data.subscription}})},d=n(()=>y()),m=e=>{V(e,{get subscription(){return r.data.subscription}})};c(s,e=>{p(d)?e(l):e(m,-1)}),a(e,i),h()}export{U as component,P as universal};
+//# sourceMappingURL=25.Bfy7jfT9.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/26.C3-Y3tWg.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/26.C3-Y3tWg.js
new file mode 100644
index 0000000000000000000000000000000000000000..b9b3216fb1abda4f9c3c2b1bbd0514b1bbf50eb2
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/26.C3-Y3tWg.js
@@ -0,0 +1,5 @@
+import{$ as e,At as t,B as n,Bt as r,Ct as i,Et as a,J as o,K as s,Ot as c,U as l,X as u,Y as d,_t as f,cn as p,hn as m,jt as h,k as g,kt as _,lt as v,mn as y,sn as b,xn as x,yn as S,z as C}from"../chunks/BhSt9sSe.js";import{Dt as w,S as T,Z as E,a as D,at as O,j as k,w as A}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{a as j,p as M}from"../chunks/CxRGiBH-2.js";import{n as N}from"../chunks/B1cT_TaC2.js";import{n as P,t as F}from"../chunks/Ctg-Sb3g.js";import{t as I}from"../chunks/CZOcB8DL.js";import{t as L}from"../chunks/CfvA40lv.js";var R=x({load:()=>z});async function z(){return{choices:await T(null,`/api/unsubscribe-survey-choices/`)}}var B=u(` `),V=u(`What motivated you the most to cancel today? Want to tell us more? Confirm cancellation Yes, I would like to cancel my subscription `,1),H=u(`If you're unsubscribing because you met your fitness goals and don't need my
+ help anymore, hooray!
If it's something else, please let us know! Every bit of feedback helps.
`,1);function U(e,a){p(a,!0);let l=k(),u=h({confirm_unsubscribe:!1,unsub_survey_choice:void 0,unsub_survey_text:``});async function d(){await A(null,`/api/unsubscribe/`,u),await D(l),await P()}var f=H(),g=t(_(f),4);E(g,{onSubmit:d,children:(e,l)=>{var d=V(),f=_(d),p=t(c(f),2);C(p,21,()=>a.choices,n,(e,n)=>{var a=r(()=>S(v(n),2));let l=()=>v(a)[0],d=()=>v(a)[1];var f=B(),p=c(f),h=c(p);{let e=r(()=>u.unsub_survey_choice===l());j(h,{get checked(){return v(e)},name:`unsub_survey_choice`,required:!1,get value(){return l()},onclick:()=>u.unsub_survey_choice=l()})}var g=t(h,2),_=c(g,!0);m(g),m(p),m(f),i(()=>s(_,d())),o(e,f)}),m(p),m(f);var h=t(f,2),g=t(c(h),2);L(g,{full_width:!0,name:`unsub_survey_text`,required:!1,get value(){return u.unsub_survey_text},set value(e){u.unsub_survey_text=e}}),m(h);var b=t(h,2),x=t(c(b),2),w=c(x);M(w,{name:`confirm_unsubscribe`,required:!0,get checked(){return u.confirm_unsubscribe},set checked(e){u.confirm_unsubscribe=e}}),y(2),m(x),m(b);var T=t(b,2);I(T,{action:`Unsubscribe`,get href(){return a.cancel}}),o(e,d)},$$slots:{default:!0}}),o(e,f),b()}var W=u(`You may still use premium features until the next billing period. At
+ that time, you will be restricted to using only the free features of Eat
+ This Much.
`),G=u(`You have successfully unsubscribed from Eat This Much.
`,1),K=u(`Unsubscribe `,1);function q(n,i){p(i,!0);let s=`/account/subscription`,u=r(()=>N(F()));var h=K();g(`85h9wf`,e=>{f(()=>{a.title=`Unsubscribe`})});var x=t(_(h),2),S=n=>{var a=d(),f=_(a),p=e=>{U(e,{cancel:s,get choices(){return i.data.choices}})},h=n=>{var i=G(),a=t(_(i),2),u=e=>{var t=W();o(e,t)},d=r(()=>w());l(a,e=>{v(d)&&e(u)});var f=t(a,2),p=c(f);O(p,{href:s,style:`primary`,children:(t,n)=>{y();var r=e(`Continue`);o(t,r)},$$slots:{default:!0}}),m(f),o(n,i)};l(f,e=>{v(u).unsubscribed?e(h,-1):e(p)}),o(n,a)};l(x,e=>{v(u)&&e(S)}),o(n,h),b()}export{q as component,R as universal};
+//# sourceMappingURL=26.C3-Y3tWg.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/28.QRe7a6jD.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/28.QRe7a6jD.js
new file mode 100644
index 0000000000000000000000000000000000000000..bfe18b4280d6f94acd7550339fa63f6b5eec51a3
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/28.QRe7a6jD.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Ft as n,J as r,Lt as i,Ot as a,X as o,cn as s,hn as c,kt as l,l as u,lt as d,mn as f,sn as p}from"../chunks/BhSt9sSe.js";import{g as m,r as h}from"../chunks/C8UWmKFm.js";import{Z as g}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as _}from"../chunks/DEgMoMXi.js";import{t as v}from"../chunks/BZ9FN49-.js";import{t as y}from"../chunks/OkVvj29C.js";var b=o(`
`,1),x=o(` Your password has expired. Please choose a new password to continue.
`,1);function S(o,S){s(S,!0);let C=i(void 0);async function w(){var e;await((e=d(C))==null?void 0:e.submit()),await h(m(`/`))}var T=x(),E=l(T);y(E,{title:`Reset Password`});var D=t(E,4);g(D,{onSubmit:w,children:(i,o)=>{var s=b(),p=l(s);u(v(p,{}),e=>n(C,e,!0),()=>d(C));var m=t(p,2),h=a(m);_(h,{full_width:!0,children:(t,n)=>{f();var i=e(`Change Password`);r(t,i)},$$slots:{default:!0}}),c(m),r(i,s)},$$slots:{default:!0}}),r(o,T),p()}export{S as component};
+//# sourceMappingURL=28.QRe7a6jD.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/29.DNeVGvxo.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/29.DNeVGvxo.js
new file mode 100644
index 0000000000000000000000000000000000000000..4530a097258b5dc7b29034358445f66f03092b52
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/29.DNeVGvxo.js
@@ -0,0 +1,3 @@
+import{$ as e,At as t,J as n,Ot as r,X as i,cn as a,hn as o,kt as s,mn as c,sn as l,xn as u}from"../chunks/BhSt9sSe.js";import{Ot as d,Tt as f,i as p,j as m,wt as h,xt as g,y as _}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as v}from"../chunks/BanapObv.js";import{t as y}from"../chunks/DEgMoMXi.js";import{t as b}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as x}from"../chunks/B-9Xxr31.js";var S=u({load:()=>C});async function C(){let e=m();return{user:await _(()=>p(e))}}var w=i(` This information will be shown to all of your clients and may be changed at
+ any time.
Don't need a professional account? You may instead.
`,1);function T(i,u){a(u,!0);let p=d(),m=f(p,`/professional-setup/plan`);function _(){return h(m)}var S=w(),C=s(S);b(C,{title:`Create Profile`});var T=t(C,4),E=t(r(T));g(E,{href:`/account-setup`,children:(t,r)=>{c();var i=e(`continue as an individual account`);n(t,i)},$$slots:{default:!0}}),c(),o(T);var D=t(T,2);x(D,{onSubmit:_,get user(){return u.data.user},children:(t,r)=>{y(t,{get icon(){return v},children:(t,r)=>{c();var i=e(`Continue`);n(t,i)},$$slots:{default:!0}})},$$slots:{default:!0}}),n(i,S),l()}export{T as component,S as universal};
+//# sourceMappingURL=29.DNeVGvxo.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/32.Bjud94KB.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/32.Bjud94KB.js
new file mode 100644
index 0000000000000000000000000000000000000000..dfcfc4633337921f70c508b2812701a0bd393542
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/32.Bjud94KB.js
@@ -0,0 +1,2 @@
+import{At as e,J as t,X as n,c as r,cn as i,kt as a,sn as o,xn as s}from"../chunks/BhSt9sSe.js";import{g as c}from"../chunks/C8UWmKFm.js";import{W as l,wt as u}from"../chunks/gotDHXHr.js";import{t as d}from"../chunks/C5rGgnpV.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as f}from"../chunks/CLTyeLEa.js";import{t as p}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as m}from"../chunks/DTm82U0q2.js";var h=s({load:()=>g});async function g(){let e=sessionStorage.getItem(l.REGISTRATION.PRICE_ID);e&&(sessionStorage.removeItem(l.REGISTRATION.PRICE_ID),d(307,c(`/professional-setup/payment`)+`?plan=${e}`))}var _=n(` `,1);function v(n,s){i(s,!1);async function l(e){return u(c(`/professional-setup/payment`)+`?plan=${e}`)}r();var d=_(),h=a(d);p(h,{title:`Choose Plan`});var g=e(h,2);f(g,{children:(e,t)=>{m(e,{onSubmit:l})},$$slots:{default:!0}}),t(n,d),o()}export{v as component,h as universal};
+//# sourceMappingURL=32.Bjud94KB.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/33.MdJn3fh6.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/33.MdJn3fh6.js
new file mode 100644
index 0000000000000000000000000000000000000000..3de695e98133980e00a43ae88679e2e45e198785
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/33.MdJn3fh6.js
@@ -0,0 +1,4 @@
+import{$ as e,At as t,Bt as n,Ft as r,J as i,Lt as a,U as o,X as s,cn as c,kt as l,lt as u,mn as d,sn as f}from"../chunks/BhSt9sSe.js";import{g as p,r as m}from"../chunks/C8UWmKFm.js";import{Dt as h,Ot as g,Tt as _,Z as v,at as y,c as b,i as x,w as S}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as C}from"../chunks/BBCQccAx.js";import{t as w}from"../chunks/XKJvcd3t2.js";import{n as T,t as E}from"../chunks/CxRGiBH-2.js";import{r as D}from"../chunks/Ctg-Sb3g.js";import{t as O}from"../chunks/LtYjoJmG2.js";import{t as k}from"../chunks/CZOcB8DL.js";import{t as A}from"../chunks/BC4LLrwJ.js";import{t as j}from"../chunks/CtDUMnLZ.js";var M=s(`You currently have a premium Eat This Much account.
If you would like to enter a gift code, you will have to wait until your
+ current subscription is over.
`,1),N=s(`Want to send a gift code? `,1),P=s(` `,1),F=s(`If you were sent an Eat This Much gift code, you may redeem it here to
+ upgrade your account to a premium account.
`,1);function I(s,I){c(I,!0);let L=g(),R=_(L,`/account/subscription`),z=n(()=>x(L)),B=a(``);async function V(){let{subscription:e,user:t}=await S(null,`/api/redeem-gift-sub/`,{gift_code:u(B)});await D(e),await b(t),await m(p(`/help/premium-features`)+`?congratulations`)}var H=P(),U=l(H);O(U,{get href(){return R},title:`Redeem Your Gift`});var W=t(U,2),G=e=>{var t=M();d(2),i(e,t)},K=n(()=>h()),q=n=>{var a=F(),s=t(l(a),2);v(s,{onSubmit:V,children:(n,a)=>{var s=P(),c=l(s);A(c,{children:(n,a)=>{var s=P(),c=l(s),f=n=>{j(n,{children:(n,r)=>{d();var a=N(),o=t(l(a));y(o,{href:`/account/subscription/send-gift`,get icon(){return C},style:`text`,children:(t,n)=>{d();var r=e(`Purchase Gift Code`);i(t,r)},$$slots:{default:!0}}),i(n,a)},$$slots:{default:!0}})};o(c,e=>{var t;(t=u(z))!=null&&t.initial_signup_complete&&e(f)});var p=t(c,2);T(p,{label:`Gift code`,id:`gift_code`,children:(e,t)=>{E(e,{name:`gift_code`,placeholder:`####-####-####`,get value(){return u(B)},set value(e){r(B,e,!0)}})},$$slots:{default:!0}}),i(n,s)},$$slots:{default:!0}});var f=t(c,2);k(f,{action:`Activate`,get icon(){return w},get href(){return R}}),i(n,s)},$$slots:{default:!0}}),i(n,a)};o(W,e=>{u(K)?e(G):e(q,-1)}),i(s,H),f()}export{I as component};
+//# sourceMappingURL=33.MdJn3fh6.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/34.BuLWK4a0.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/34.BuLWK4a0.js
new file mode 100644
index 0000000000000000000000000000000000000000..2b4d1c4175c55f996c728748bb2c40d4f5ac4bc6
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/34.BuLWK4a0.js
@@ -0,0 +1,5 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,J as a,K as o,Lt as s,Ot as c,R as l,U as u,X as d,cn as f,hn as p,jt as m,kt as h,lt as g,mn as _,sn as v,xn as y}from"../chunks/BhSt9sSe.js";import{g as b,r as x}from"../chunks/C8UWmKFm.js";import{L as S,T as C,Vt as w,Z as T,i as E,j as D,y as O}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as k}from"../chunks/Bce0nSU2.js";import{t as A}from"../chunks/DEgMoMXi.js";import{l as j,n as M,p as N,t as P}from"../chunks/CxRGiBH-2.js";import{t as F}from"../chunks/BC4LLrwJ.js";import{t as I}from"../chunks/BZ9FN49-.js";import{t as L}from"../chunks/OkVvj29C.js";var R=y({load:()=>z});async function z(){let e=D();return{user:await O(()=>E(e))}}var B=d(` has created an account for you and is providing you with
+ premium membership! As your manager, will be able to access your
+ account to help keep you on track with your meal plans, but they will not be able
+ to see your password.
`),V=d(` I agree to the Terms of Service `),H=d(` `,1),U=d(`Set Password Verify Account Information
`,1),W=d(` `,1);function G(d,y){f(y,!0);let E=n(()=>{var e;return(e=y.data.user.manager)==null?void 0:e.username}),D=s(m({new_password1:``,new_password2:``})),O=m({email:y.data.user.email,first_name:y.data.user.first_name,last_name:y.data.user.last_name});async function R(){let e=await C(`/api/update-account-info/`,{...O,password1:g(D).new_password1,password2:g(D).new_password2,tos:!0,username:y.data.user.username});if(e.errors)throw new w(e.errors);await x(b(`/`))}var z=W(),G=h(z);L(G,{title:`Set Up Account`});var K=t(G,2),q=e=>{var n=B(),i=c(n),s=c(i,!0);p(i);var l=t(i,2),u=c(l,!0);p(l),_(),p(n),r(()=>{o(s,g(E)),o(u,g(E))}),a(e,n)},J=n(()=>S()&&g(E));u(K,e=>{g(J)&&e(q)});var Y=t(K,2);T(Y,{onSubmit:R,children:(n,r)=>{var o=U(),s=t(h(o),2);I(s,{hide_current_password:!0,get form(){return g(D)},set form(e){i(D,e,!0)}});var u=t(s,4);F(u,{children:(e,n)=>{var r=H(),i=h(r);M(i,{label:`Email`,id:`email`,children:(e,t)=>{j(e,{name:`email`,get value(){return O.email},set value(e){O.email=e}})},$$slots:{default:!0}});var o=t(i,2);M(o,{label:`First name`,id:`first_name`,children:(e,t)=>{P(e,{name:`first_name`,get value(){return O.first_name},set value(e){O.first_name=e}})},$$slots:{default:!0}});var s=t(o,2);M(s,{label:`Last name`,id:`last_name`,children:(e,t)=>{P(e,{name:`last_name`,get value(){return O.last_name},set value(e){O.last_name=e}})},$$slots:{default:!0}});var u=t(s,2);M(u,{label:`Terms of service`,id:`tos`,children:(e,n)=>{var r=V(),i=c(r);N(i,{checked:!1,name:`tos`,required:!0});var o=t(i,2),s=t(c(o)),u=t(c(s));l(u,()=>k),p(s),p(o),p(r),a(e,r)},$$slots:{default:!0}}),a(e,r)},$$slots:{default:!0}});var d=t(u,2),f=c(d);A(f,{full_width:!0,children:(t,n)=>{_();var r=e(`Submit`);a(t,r)},$$slots:{default:!0}}),p(d),a(n,o)},$$slots:{default:!0}}),a(d,z),v()}export{G as component,R as universal};
+//# sourceMappingURL=34.BuLWK4a0.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/35.ChQJLoN5.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/35.ChQJLoN5.js
new file mode 100644
index 0000000000000000000000000000000000000000..47a73cdc33a3d69d49c0a415ddeb7847e52afcfd
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/35.ChQJLoN5.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Bt as n,Ft as r,J as i,Lt as a,Ot as o,U as s,X as c,cn as l,hn as u,jt as d,kt as f,lt as p,mn as m,sn as h,xn as g}from"../chunks/BhSt9sSe.js";import{g as _}from"../chunks/C8UWmKFm.js";import{Dt as v,Ot as y,Qt as b,Tt as x,at as S,i as C,y as w}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as T}from"../chunks/BBCQccAx.js";import{n as E}from"../chunks/B1cT_TaC2.js";import{t as D}from"../chunks/CLTyeLEa.js";import{t as O}from"../chunks/Ctg-Sb3g.js";import{t as k}from"../chunks/DNDaYjwu.js";import{t as A}from"../chunks/mRJ-UFmt.js";import{t as j}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{n as M}from"../chunks/zqfIgEQ_.js";import{t as N}from"../chunks/BwAVaRnq.js";import{t as P}from"../chunks/sat-xcJP.js";import{r as F}from"../chunks/qBLqlIPz.js";import{t as I}from"../chunks/DMf5TeBn.js";import{t as L}from"../chunks/CtDUMnLZ.js";var R=g({load:()=>z});async function z({parent:e}){let t=w(()=>O()),{user:n}=await e(),r=w(()=>M(n));return await k(()=>N(),()=>F()),{subscription:await t,trial_available:await r}}var B=c(`Have a gift code? `,1),V=c(` `,1);function H(o,s){l(s,!0);let c=n(()=>E(N())),u=y(),g=n(()=>E(C(u))),v=n(()=>{var e;return(e=p(g))!=null&&e.initial_signup_complete?`/help/premium-features?congratulations`:`/account-setup/finish`}),x=a(d(b)),w=n(()=>{var e;return((e=p(c))==null?void 0:e.currencies.selected)??`USD`});{let a=n(()=>_(`/`));I(o,{get currency(){return p(w)},get price_id(){return p(x)},get next(){return p(v)},get cancel(){return p(a)},get trial_available(){return s.trial_available},children:(n,a)=>{var o=V(),s=f(o);L(s,{children:(n,r)=>{m();var a=B(),o=t(f(a));S(o,{breadcrumb:!0,href:`/account/subscription/redeem-gift`,get icon(){return T},style:`text`,children:(t,n)=>{m();var r=e(`Redeem Code`);i(t,r)},$$slots:{default:!0}}),i(n,a)},$$slots:{default:!0}});var c=t(s,2);P(c,{get value(){return p(x)},set value(e){r(x,e,!0)}}),i(n,o)},$$slots:{default:!0}})}h()}var U=c(`You currently have a premium subscription to Eat This Much.
`,1),W=c(` `,1);function G(r,a){l(a,!0);let c=a.data.subscription,d=n(()=>a.data.trial_available),g=y(),_=x(g,`/planner`);function b(){return A(g,_)}var C=W(),w=f(C);{let e=n(()=>p(d)?`Start Free Trial`:`Eat This Much Premium`);j(w,{get title(){return p(e)}})}var T=t(w,2),E=n=>{var r=U(),a=t(f(r),2),s=o(a);S(s,{onclick:b,style:`primary`,children:(t,n)=>{m();var r=e(`Continue`);i(t,r)},$$slots:{default:!0}}),u(a),i(n,r)},O=n(()=>v()&&!(c!=null&&c.unsubscribed)),k=e=>{D(e,{children:(e,t)=>{H(e,{get trial_available(){return p(d)}})},$$slots:{default:!0}})};s(T,e=>{p(O)?e(E):e(k,-1)}),i(r,C),h()}export{G as component,R as universal};
+//# sourceMappingURL=35.ChQJLoN5.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/36.D0BzxiEb.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/36.D0BzxiEb.js
new file mode 100644
index 0000000000000000000000000000000000000000..1c522d49a6a2fc76830e3e348dcc443de8d83878
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/36.D0BzxiEb.js
@@ -0,0 +1,3 @@
+import{At as e,Bt as t,Ct as n,Ft as r,J as i,K as a,Lt as o,Ot as s,U as c,X as l,cn as u,hn as d,kt as f,lt as p,sn as m,xn as h}from"../chunks/BhSt9sSe.js";import{S as g,i as _,j as v}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{i as y}from"../chunks/CxRGiBH-2.js";import{n as b}from"../chunks/B1cT_TaC2.js";import{c as x,t as S}from"../chunks/BtqPi__O.js";import{t as C}from"../chunks/DNDaYjwu.js";import{t as w}from"../chunks/LtYjoJmG2.js";import{t as T}from"../chunks/FlQAycz02.js";import{t as E}from"../chunks/BWqLgya7.js";import{t as D}from"../chunks/D6NmChFs.js";import{t as O}from"../chunks/B1rreK3F.js";var k=h({load:()=>A});async function A(){let e=v();return C(()=>E(e))}var j=l(`Historical Performance `,1);function M(n,a){u(a,!0);let s=o(`week`),c=new Map([[`week`,`Past Week`],[`month`,`Past Month`],[`3month`,`Three Months`],[`year`,`Past Year`]]);async function l(e){let t=await g(null,`/affiliate/data/?timespan=${e}`),n=S(t.start_date),r=S(t.end_date),i=x(n,r);return[{label:`Charges`,color:`var(--text-muted)`,unit:``,values:d(i,t.graph_data.charge)},{label:`Signups`,color:`var(--m3-primary)`,unit:``,values:d(i,t.graph_data.signup)}]}function d(e,t){return e.map(e=>({timestamp:S.toDate(e).getTime(),weight:t[e]??0}))}var h=j(),_=e(f(h),2);y(_,{get options(){return c},get value(){return p(s)},set value(e){r(s,e,!0)}});var v=e(_,2);{let e=t(()=>l(p(s)));D(v,{get data(){return p(e)}})}i(n,h),m()}var N=l(`Payout Payouts are made at the end of every month with a $50 minimum. If the
+ minimum is not met, your payouts will be rolled over to the next month.
Next payout amount Total payout amount PayPal account `,1),P=l(`Stats
Affiliate link clicks
Monthly signups Monthly payments
Annual signups Annual payments `,1),F=l(` Referral Links
`,1);function I(r,o){u(o,!0);let l=v(),h=t(()=>b(E(l))),g=t(()=>b(_(l))),y=t(()=>{var e,t;return new URL(`/?a=${(e=p(h))==null?void 0:e.id}_${(t=p(h))==null?void 0:t.shortHash}`,location.href).href}),x=t(()=>{var e;return new URL(`/a/${(e=p(g))==null?void 0:e.username}`,location.href).href}),S=O(`USD`);var C=F(),D=f(C);w(D,{title:`Eat This Much Affiliate Program`});var k=e(D,2),A=t=>{var r=N(),o=e(f(r),4),c=s(o),l=e(s(c),2),u=s(l),m=e(u),g=s(m,!0);d(m),d(l);var _=e(l,4),v=s(_),y=e(v),b=s(y,!0);d(y),d(_);var x=e(_,4),C=s(x,!0);d(x),d(c),d(o),n((e,t,n,r)=>{a(u,`${e??``} `),a(g,t),a(v,`${n??``} `),a(b,r),a(C,p(h).paypal_id)},[()=>S(p(h).next_payout),()=>`USD`,()=>S(p(h).total_payout),()=>`USD`]),i(t,r)};c(k,e=>{p(h)&&e(A)});var j=e(k,4),I=s(j);T(I,{get value(){return p(x)}}),d(j);var L=e(j,2),R=s(L);T(R,{get value(){return p(y)}}),d(L);var z=e(L,2),B=t=>{var r=P(),o=e(f(r),2),c=s(o),l=e(s(c),2),u=s(l,!0);d(l),d(c);var m=e(c,2),g=e(s(m),2),_=s(g,!0);d(g);var v=e(g,4),y=s(v,!0);d(v),d(m);var b=e(m,2),x=e(s(b),2),S=s(x,!0);d(x);var C=e(x,4),w=s(C,!0);d(C),d(b),d(o),n(()=>{a(u,p(h).parameter_link_count+p(h).username_link_count),a(_,p(h).total_referred_monthly_signups),a(y,p(h).total_referred_monthly_payments),a(S,p(h).total_referred_annual_signups),a(w,p(h).total_referred_annual_payments)}),i(t,r)};c(z,e=>{p(h)&&e(B)}),M(e(z,2),{}),i(r,C),m()}export{I as component,k as universal};
+//# sourceMappingURL=36.D0BzxiEb.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/39.CL55oVYv.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/39.CL55oVYv.js
new file mode 100644
index 0000000000000000000000000000000000000000..3df36590b977923fe31dc38024e03ae374ab0e20
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/39.CL55oVYv.js
@@ -0,0 +1,7 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,J as a,K as o,Lt as s,M as c,Ot as l,R as u,U as d,W as f,X as p,Y as m,c as h,cn as g,et as _,hn as v,jt as y,kt as b,lt as x,mn as S,sn as C,tt as w}from"../chunks/BhSt9sSe.js";import{g as T}from"../chunks/C8UWmKFm.js";import{Ot as E,Pt as D,R as O,S as k,Ut as A,Z as j,at as M,c as N,i as P,w as F}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as I}from"../chunks/BpQEveid.js";import{t as ee}from"../chunks/DEgMoMXi.js";import{n as L}from"../chunks/B1cT_TaC2.js";import{i as R}from"../chunks/D2IZisAi2.js";import{t as z}from"../chunks/BrfbP0yE2.js";import{t as B}from"../chunks/LtYjoJmG2.js";import{t as V}from"../chunks/FlQAycz02.js";import{n as te,t as H}from"../chunks/TSJ3fM002.js";import{t as U}from"../chunks/BZ9FN49-.js";import{t as W}from"../chunks/BN66IXsU.js";import{t as G}from"../chunks/D7mLfM7M.js";var K=`
+
+
+`,q=p(`
Username
API Key `),J=p(` `,1);function Y(r,o){g(o,!0);let c=s(!1),u=E(),d=n(()=>L(P(u)));async function p(){let{key:e}=await k(null,`/api/v1/apikey/mykey/`);return e}var h=J(),_=b(h);M(_,{onclick:()=>i(c,!0),style:`text`,children:(t,n)=>{S();var r=e(`View API Key`);a(t,r)},$$slots:{default:!0}});var y=t(_,2);z(y,{title:`API Key`,get open(){return x(c)},set open(e){i(c,e,!0)},children:(e,r)=>{var i=m(),o=b(i);f(o,p,e=>{D(e,{})},(e,r)=>{var i=q(),o=l(i),s=t(l(o),2),c=l(s);{let e=n(()=>{var e;return((e=x(d))==null?void 0:e.username)??``});V(c,{type:`username`,get value(){return x(e)}})}v(s),v(o);var u=t(o,2),f=t(l(u),2),p=l(f);V(p,{type:`API key`,get value(){return x(r)}}),v(f),v(u),v(i),a(e,i)}),a(e,i)},$$slots:{default:!0}}),a(r,h),C()}var X=p(`
`,1),Z=p(` `);function Q(f,p){g(p,!0);let h=E(),_=n(()=>L(P(h))),w=s(!1),T=s(y({new_password1:``,new_password2:``}));function D(){var e;if(!x(_))throw TypeError();(e=x(_))!=null&&e.has_set_password?G({action:`Unlink`,content:`You may reconnect this account at any time in the future.`,title:`Unlink ${p.name}`,onconfirm:O}):i(w,!0)}async function O(e=!1){let t=e?{password1:x(T).new_password1,password2:x(T).new_password2,social_auth_providers:p.providers}:{social_auth_providers:p.providers},n=await F(null,`/api/disconnect-socials/`,t);N(n.user)}var k=m(),A=b(k),B=n=>{var s=Z(),d=l(s);u(d,()=>p.icon);var f=t(d),m=t(f);M(m,{style:`text`,onclick:D,children:(t,n)=>{S();var r=e(`Unlink`);a(t,r)},$$slots:{default:!0}});var h=t(m,2);z(h,{get title(){return`Unlink ${p.name??``}`},get open(){return x(w)},set open(e){i(w,e,!0)},children:(n,s)=>{j(n,{onSubmit:()=>O(!0),children:(n,s)=>{var c=X(),u=b(c),d=l(u);v(u);var f=t(u,2);U(f,{get form(){return x(T)},set form(e){i(T,e,!0)}});var m=t(f,2);W(m,{children:(t,n)=>{ee(t,{get icon(){return I},children:(t,n)=>{S();var r=e(`Unlink`);a(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),r(()=>o(d,`Before you can disconnect ${p.name??``}, you must set a password for your
+ account.`)),a(n,c)},$$slots:{default:!0}})},$$slots:{default:!0}}),v(s),r(()=>o(f,` ${p.name??``} `)),c(3,s,()=>R),a(n,s)},V=n(()=>{var e;return(e=x(_))==null?void 0:e.social_auth_providers.some(e=>p.providers.includes(e))});d(A,e=>{x(V)&&e(B)}),a(f,k),C()}var ne=p(`Connected Accounts `,1);function re(e){let n=[`apple-id`,`apple-ios-id`,`beta-apple-ios-id`];var r=ne(),i=t(b(r),2),o=l(i);Q(o,{get icon(){return te},name:`Apple`,get providers(){return n}});var s=t(o,2);Q(s,{get icon(){return K},name:`Facebook`,providers:[`facebook`]}),Q(t(s,2),{get icon(){return H},name:`Google`,providers:[`google-oauth2`]}),v(i),a(e,r)}var $=p(`Danger Zone Reset Your Account Clear data from your account and start with a clean slate. You will retain all
+ Collections and Custom Recipes.
Permanently delete your account and all associated information.
`,1);function ie(e,n){g(n,!1);function r(){G({action:`Reset`,content:`You are about to reset your account data. This action cannot be undone. Do you wish to continue?`,icon:``,async onconfirm(){await F(null,`/api/reset-account/`,{reset_account:!0}),await A(),window.location.href=T(`/`)},title:`Reset Your Account`})}h();var i=$(),o=t(b(i),2),s=l(o);v(o),S(6),w(`click`,s,r),a(e,i),C()}_([`click`]);var ae=p(`•••••••• `,1),oe=p(`API Key `,1),se=p(` Email Address Password `,1);function ce(i,s){g(s,!0);let c=E(),u=n(()=>L(P(c)));var f=se(),p=b(f);B(p,{title:`Credentials`});var m=t(p,2),h=t(l(m),2),_=l(h),y=t(_);M(y,{breadcrumb:!0,href:`/account/credentials/email`,style:`text`,children:(t,n)=>{S();var r=e(`Change`);a(t,r)},$$slots:{default:!0}}),v(h);var w=t(h,4),T=l(w),D=n=>{var r=ae(),i=t(b(r));M(i,{breadcrumb:!0,href:`/account/credentials/password`,style:`text`,children:(t,n)=>{S();var r=e(`Change`);a(t,r)},$$slots:{default:!0}}),a(n,r)},k=t=>{M(t,{breadcrumb:!0,href:`/account/credentials/password`,style:`text`,children:(t,n)=>{S();var r=e(`Set Password`);a(t,r)},$$slots:{default:!0}})};d(T,e=>{var t;(t=x(u))!=null&&t.has_set_password?e(D):e(k,-1)}),v(w);var A=t(w,2),j=e=>{var n=oe(),r=t(b(n),2);Y(l(r),{}),v(r),a(e,n)},N=n(()=>O());d(A,e=>{x(N)&&e(j)}),v(m);var F=t(m,2),I=e=>{re(e,{})};d(F,e=>{var t;(t=x(u))!=null&&t.social_auth_providers.length&&e(I)}),ie(t(F,2),{}),r(()=>{var e;return o(_,`${((e=x(u))==null?void 0:e.email)??``} `)}),a(i,f),C()}export{ce as component};
+//# sourceMappingURL=39.CL55oVYv.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/40.37_A35I-.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/40.37_A35I-.js
new file mode 100644
index 0000000000000000000000000000000000000000..43e877d1ae3b763f891c7f42e7c4f911595ecf5a
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/40.37_A35I-.js
@@ -0,0 +1,3 @@
+import{At as e,Ct as t,Ft as n,J as r,K as i,Lt as a,Ot as o,U as s,X as c,Y as l,cn as u,hn as d,kt as f,lt as p,mn as m,sn as h}from"../chunks/BhSt9sSe.js";import{Ot as g,w as _}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{l as v,n as y}from"../chunks/CxRGiBH-2.js";import{t as b}from"../chunks/LtYjoJmG2.js";import{t as x}from"../chunks/BC4LLrwJ.js";import{t as S}from"../chunks/CRanwLzu.js";var C=c(` An e-mail has been sent to
Please check your email and follow the instructions to verify your new
+ e-mail address.
`,1);function w(c,w){u(w,!0);let T=g(),E=`/account/credentials`,D=`Change E-Mail Address`,O=a(``),k=a(!1);async function A(){await _(T,`/api/email-add/`,{new_email:p(O)}),n(k,!0)}var j=l(),M=f(j),N=n=>{var a=C(),s=f(a);b(s,{href:E,title:D});var c=e(s,2),l=e(o(c)),u=o(l,!0);d(l),d(c),m(2),t(()=>i(u,p(O))),r(n,a)},P=e=>{S(e,{back:E,onSubmit:A,title:D,children:(e,t)=>{x(e,{children:(e,t)=>{y(e,{id:`new_email`,label:`New E-Mail Address`,children:(e,t)=>{v(e,{name:`new_email`,get value(){return p(O)},set value(e){n(O,e,!0)}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})};s(M,e=>{p(k)?e(N):e(P,-1)}),r(c,j),h()}export{w as component};
+//# sourceMappingURL=40.37_A35I-.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/43.XGvXBjG6.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/43.XGvXBjG6.js
new file mode 100644
index 0000000000000000000000000000000000000000..d18faf138b134feeaaddfeac6ccdadf9908f2517
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/43.XGvXBjG6.js
@@ -0,0 +1,4 @@
+import{$ as e,At as t,Bt as n,Ct as r,J as i,K as a,Ot as o,U as s,X as c,cn as l,hn as u,kt as d,lt as f,mn as p,sn as m,xn as h,z as g}from"../chunks/BhSt9sSe.js";import{g as _,r as v}from"../chunks/C8UWmKFm.js";import{S as y,Tt as b,a as x,at as S,i as C,it as w,j as T,r as E,w as D,xt as O}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as k}from"../chunks/CyviYcci.js";import{t as A}from"../chunks/BpQEveid.js";import{n as j}from"../chunks/B1cT_TaC2.js";import{t as M}from"../chunks/CLTyeLEa.js";import{t as N}from"../chunks/CMlJSk1P.js";import{l as P,o as F,s as I}from"../chunks/Cer-cfCG.js";import{t as L}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as R}from"../chunks/FlQAycz02.js";import{t as z}from"../chunks/D7mLfM7M.js";var B=h({load:()=>V});async function V({url:e}){let{join_code:t}=await y(null,`/api/get-join-code/`),n=_(`/(auth)/link-account/${t}`);return{join_url:new URL(n,e.href).href}}var H=c(` `,1),U=c(` `);function W(c,p){l(p,!0);let h=T(),g=n(()=>j(C(h)));function _(){z({action:`Remove`,content:`In order to rejoin, ${p.user.username} will need a new invitation.`,async onconfirm(){if(await F(p.user),p.user.id.toString()===k.params.user_id){let e=window.location.toString().replace(`/${p.user.id}`,``);await v(e)}},title:`Remove ${p.user.username}`})}var y=U(),x=o(y),S=o(x);{let e=n(()=>b(p.user.id,`/planner`));O(S,{get href(){return f(e)},children:(e,n)=>{var s=H(),c=d(s),l=o(c);N(l,{get user(){return p.user}}),u(c);var f=t(c);r(e=>a(f,` ${e??``}`),[()=>E(p.user)]),i(e,s)},$$slots:{default:!0}})}u(x);var D=t(x),M=o(D),P=t=>{var n=e(`Your Account`);i(t,n)},I=t=>{var n=e();r(()=>a(n,p.user.email)),i(t,n)};s(M,e=>{p.user.id===h?e(P):e(I,-1)}),u(D);var L=t(D),R=o(L),B=e=>{w(e,{get icon(){return A},label:`Remove`,onclick:_})};s(R,e=>{var t,n;p.user.id!==h&&((t=f(g))==null?void 0:t.username)===((n=f(g))==null?void 0:n.linked_group_owner)&&e(B)}),u(L),u(y),i(c,y),m()}var G=c(`Connected Users Danger Zone If you leave this group, you will need a new invitation to rejoin.
`,1);function K(r,a){l(a,!0);let s=T(),c=n(()=>j(I()));function h(){z({action:`Leave`,content:`If you leave this group, you will need a new invitation to rejoin.`,async onconfirm(){if(await D(null,`/api/leave-group/`,{confirm:!0}),await x(s),await P(),k.params.user_id){let e=window.location.toString().replace(`/${k.params.user_id}`,``);await v(e)}},title:`Leave Group`})}var _=G(),y=t(d(_),2),b=t(o(y));g(b,21,()=>f(c)??[],e=>e.id,(e,t)=>{W(e,{get user(){return f(t)}})}),u(b),u(y);var C=t(y,6),w=o(C);S(w,{get icon(){return A},onclick:h,children:(t,n)=>{p();var r=e(`Leave Group`);i(t,r)},$$slots:{default:!0}}),u(C),i(r,_),m()}var q=c(`Invite User Share this link to invite a user to link their account with yours.
`,1);function J(e,n){var r=q(),a=t(d(r),4),s=o(a);R(s,{get value(){return n.join_url}}),u(a),i(e,r)}var Y=c(`Linked Accounts Beta `),X=c(` `,1),Z=c(` Connected accounts can combine Groceries, view and edit each other's meal
+ plans, and share Custom Recipes, Collections, and Saved Plans. This can help
+ keep you accountable while sharing the load of grocery shopping and planning.
`,1);function Q(e,r){l(r,!0);let a=T(),o=n(()=>j(C(a)));var c=Z(),u=d(c);L(u,{title:`Linked Accounts`,renderTitle:e=>{var t=Y();i(e,t)},$$slots:{renderTitle:!0}});var p=t(u,4);M(p,{children:(e,n)=>{var a=X(),c=d(a);J(c,{get join_url(){return r.data.join_url}});var l=t(c,2),u=e=>{K(e,{})};s(l,e=>{var t;(t=f(o))!=null&&t.is_linked&&e(u)}),i(e,a)},$$slots:{default:!0}}),i(e,c),m()}export{Q as component,B as universal};
+//# sourceMappingURL=43.XGvXBjG6.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/44.D7nWGsFc.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/44.D7nWGsFc.js
new file mode 100644
index 0000000000000000000000000000000000000000..b1addfa4f80eb9f90396965ef9ebd49563c53e8c
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/44.D7nWGsFc.js
@@ -0,0 +1,2 @@
+import{At as e,B as t,Bt as n,Ct as r,J as i,K as a,Ot as o,U as s,X as c,Y as l,cn as u,hn as d,kt as f,lt as p,mn as m,sn as h,yn as g,z as _}from"../chunks/BhSt9sSe.js";import{Dt as v,L as y,Ot as b,S as x,d as S,j as C}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{p as w}from"../chunks/CxRGiBH-2.js";import{n as T}from"../chunks/B1cT_TaC2.js";import{t as E}from"../chunks/LtYjoJmG2.js";import{t as D}from"../chunks/CMf_mwGa.js";var O=S(`emailsettings`,`2023-05-17`,{async fetchAll(e){return[await x(e,`/api/v1/emailsettings/${e}/`)]}});function k(e){let t=O.getAll(e);return t==null?void 0:t[0]}var A=O.update;O.updateCache;var j=c(`
`),M=c(``),N=c(` `,1);function P(c,x){u(x,!0);let S=C(),O=b(),P=n(()=>T(k(O))),F=v(),I=L();function L(){let e=[];return F?e.push([`receive_plan_emails`,`Weekly meal plan`,`Your generated upcoming meals`]):e.push([`receive_free_plan_emails`,`Weekly meal ideas`,`A once-a-week email with meal ideas in your inbox`]),!y()&&S===O&&e.push([`receive_announcement_emails`,`Announcements`,`New features and major changes to EatThisMuch`],[`receive_newsletter_emails`,`Newsletter`,`Regular updates on what we are working on and what's new`],[`receive_promotional_emails`,`Promotions`,`Site wide sales and discounts`]),e}function R(e,t){if(!p(P))return;let n=e.currentTarget;A(O,p(P).resource_uri,{[t]:n.checked})}var z=N(),B=f(z);E(B,{title:`Notifications`});var V=e(B,2),H=c=>{var u=M(),h=o(u),v=o(h),y=o(v),b=o(y);D(b,{get checked(){return p(P).receive_emails},name:`receive_emails`,onchange:e=>R(e,`receive_emails`)}),d(y),m(4),d(v),m(2),d(h);var x=e(h,2),S=s=>{var c=l(),u=f(c);_(u,17,()=>I,t,(t,s)=>{var c=n(()=>g(p(s),3));let l=()=>p(c)[0],u=()=>p(c)[1],f=()=>p(c)[2];var h=j(),_=o(h),v=o(_),y=o(v);w(y,{get name(){return l()},get checked(){return p(P)[l()]},onclick:e=>R(e,l())}),d(v);var b=e(v,2),x=o(b,!0);d(b),m(2),d(_);var S=e(_,2),C=o(S,!0);d(S),d(h),r(()=>{a(x,u()),a(C,f())}),i(t,h)}),i(s,c)};s(x,e=>{p(P).receive_emails&&e(S)}),d(u),i(c,u)};s(V,e=>{p(P)&&e(H)}),i(c,z),h()}export{P as component};
+//# sourceMappingURL=44.D7nWGsFc.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/45.DJosnLxc.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/45.DJosnLxc.js
new file mode 100644
index 0000000000000000000000000000000000000000..c606a22d2f65e10e3f772b6062699cadc9f240f7
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/45.DJosnLxc.js
@@ -0,0 +1,2 @@
+import{At as e,J as t,X as n,cn as r,kt as i,sn as a,xn as o}from"../chunks/BhSt9sSe.js";import{i as s,j as c,y as l}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/LtYjoJmG2.js";import{t as d}from"../chunks/B-9Xxr31.js";var f=o({load:()=>p});async function p(){let e=c();return{user:await l(()=>s(e))}}var m=n(` `,1);function h(n,o){r(o,!0);var s=m(),c=i(s);u(c,{title:`Profile`});var l=e(c,2);d(l,{get user(){return o.data.user}}),t(n,s),a()}export{h as component,f as universal};
+//# sourceMappingURL=45.DJosnLxc.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/47.oN3VECeG.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/47.oN3VECeG.js
new file mode 100644
index 0000000000000000000000000000000000000000..82b97c6d0bc40c0d5bf7a9543c6592a4def24a2a
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/47.oN3VECeG.js
@@ -0,0 +1,3 @@
+import{At as e,B as t,Ct as n,J as r,K as i,Ot as a,T as o,W as s,X as c,Y as l,c as u,cn as d,hn as f,kt as p,lt as m,sn as h,v as g,z as _,zt as v}from"../chunks/BhSt9sSe.js";import{Ot as y,S as b,Tt as x}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{n as S}from"../chunks/B1cT_TaC2.js";import{t as C}from"../chunks/CLTyeLEa.js";import{a as w,t as T}from"../chunks/BtqPi__O.js";import{t as E}from"../chunks/LtYjoJmG2.js";import{t as D}from"../chunks/B1rreK3F.js";import{t as O}from"../chunks/D3pU2EEp.js";var k=c(`
`),A=c(`
`),j=c(`No payments have been made.
`),M=c(` Payments made through the iOS or Android app stores are not shown here. To
+ view those transactions, please check the payment history in our mobile app.
`,1);function N(c,N){d(N,!1);let P=y(),F=x(P,`/account/subscription`),I=b(P,`/api/stripe-invoice-history/`);u();var L=M(),R=p(L);E(R,{get href(){return F},title:`Payment History`});var z=e(R,4),B=a(z);C(B,{children:(c,u)=>{var d=l(),h=p(d);s(h,()=>S(I),null,(s,c)=>{var u=l(),d=p(u);_(d,1,()=>m(c),t,(s,c)=>{let l=v(()=>D(m(c).currency)),u=v(()=>T(m(c).created*1e3));var d=A(),p=a(d),h=a(p),y=a(h,!0);f(h),f(p);var b=e(p,2);_(b,1,()=>m(c).lines.data.slice(1),t,(e,t)=>{let o=()=>m(t).description;var s=k(),c=a(s,!0);f(s),n(()=>i(c,o())),r(e,s)});var x=e(b,2),S=a(x,!0);f(x);var C=e(x,2),E=a(C),j=a(E,!0);f(E);var M=e(E),N=e(M),P=a(N,!0);f(N),f(C),f(d),n((e,t,n,r)=>{var a;g(h,`href`,m(c).hosted_invoice_url),i(y,(a=m(c).lines.data[0])==null?void 0:a.description),i(S,e),o(E,1,`status ${m(c).status??``}`,`svelte-3d0a23`),i(j,t),i(M,` ${n??``} `),i(P,r)},[()=>w(m(u)),()=>O(m(c).status),()=>m(l)(m(c).amount_due),()=>m(c).currency.toUpperCase()]),r(s,d)},e=>{var t=j();r(e,t)}),r(s,u)}),r(c,d)},$$slots:{default:!0}}),f(z),r(c,L),h()}export{N as component};
+//# sourceMappingURL=47.oN3VECeG.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/48.DKLpRQ2I.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/48.DKLpRQ2I.js
new file mode 100644
index 0000000000000000000000000000000000000000..91e1d18deae4454d1b82f16bc56f7aec2cfbcb74
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/48.DKLpRQ2I.js
@@ -0,0 +1,3 @@
+import{At as e,Bt as t,Ct as n,Ft as r,J as i,K as a,Lt as o,Ot as s,U as c,W as l,X as u,cn as d,hn as f,kt as p,lt as m,sn as h}from"../chunks/BhSt9sSe.js";import{Ot as g,Tt as _,Z as v,w as y}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as b}from"../chunks/B1cT_TaC2.js";import{t as x}from"../chunks/CLTyeLEa.js";import{t as S}from"../chunks/Ctg-Sb3g.js";import{t as C}from"../chunks/mRJ-UFmt.js";import{t as w}from"../chunks/LtYjoJmG2.js";import{t as T}from"../chunks/CZOcB8DL.js";import{n as E,t as D}from"../chunks/qBLqlIPz.js";var O=u(`
`,1);function k(n,a){d(a,!0);let c=g(),u=o(!1),_=E();async function x(){let{confirm:e,setup_intent_id:t}=await _;await e(),await y(null,`/api/change-payment/`,{setup_intent_id:t}),await C(c,a.NEXT)}v(n,{onSubmit:x,children:(n,o)=>{var c=O(),d=p(c),h=s(d);l(h,()=>b(_),null,(e,t)=>{D(e,{get createElement(){return m(t).createElement},get complete(){return m(u)},set complete(e){r(u,e,!0)}})}),f(d);var g=e(d,2);{let e=t(()=>!m(u));T(g,{get disabled(){return m(e)},get href(){return a.NEXT}})}i(n,c)},$$slots:{default:!0}}),h()}var A=u(`
`),j=u(` Update your card on file. The new card will be used when you are next charged
+ for Eat This Much Premium.
`,1);function M(r,o){d(o,!0);let l=g(),u=t(()=>b(S())),v=_(l,`/account/subscription`);var y=j(),C=p(y);w(C,{get href(){return v},title:`Update Card`});var T=e(C,4),E=e=>{var t=A(),r=s(t);f(t),n(()=>{var e;return a(r,`Last four digits on current card: ${((e=m(u))==null?void 0:e.card_last4)??``}`)}),i(e,t)};c(T,e=>{var t;(t=m(u))!=null&&t.card_last4&&e(E)});var D=e(T,2);x(D,{children:(e,t)=>{k(e,{get NEXT(){return v}})},$$slots:{default:!0}}),i(r,y),h()}export{M as component};
+//# sourceMappingURL=48.DKLpRQ2I.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/49.KXvL_eD4.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/49.KXvL_eD4.js
new file mode 100644
index 0000000000000000000000000000000000000000..fa69e36ed309e17f01026b2aa6b58660ab1ddbcc
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/49.KXvL_eD4.js
@@ -0,0 +1,2 @@
+import{xn as e}from"../chunks/BhSt9sSe.js";import{g as t}from"../chunks/C8UWmKFm.js";import{t as n}from"../chunks/C5rGgnpV.js";var r=e({load:()=>i});function i(){n(307,t(`/redeem-gift`))}export{r as universal};
+//# sourceMappingURL=49.KXvL_eD4.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/5.XcbIfXIK.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/5.XcbIfXIK.js
new file mode 100644
index 0000000000000000000000000000000000000000..0d14d19b70e8779a9c6d5b8ba75e35fac0ab9938
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/5.XcbIfXIK.js
@@ -0,0 +1,2 @@
+import{At as e,I as t,J as n,Ot as r,X as i,g as a,hn as o,it as s,vn as c}from"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import{t as l}from"../chunks/DZzYSFS5.js";var u=i(``);function d(i,d){var f=u(),p=r(f),m=r(p);t(m,()=>d.children??c),o(p);var h=e(p,2),g=r(h);a(g,()=>({alt:``,...l}),void 0,void 0,void 0,`svelte-1s1y9p1`),o(h),o(f),s(g),n(i,f)}export{d as component};
+//# sourceMappingURL=5.XcbIfXIK.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/52.C1yvpHJM.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/52.C1yvpHJM.js
new file mode 100644
index 0000000000000000000000000000000000000000..ce195001f81d9318ad0156603670259e7ca34114
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/52.C1yvpHJM.js
@@ -0,0 +1,4 @@
+import{J as e,X as t,mn as n}from"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as r}from"../chunks/-YOj1Zzm.js";import{t as i}from"../chunks/EMkCxHyW.js";var a=t(`We'll ask about your current height and weight as well as your long term
+ goals.
With this information, we can calculate your daily calorie and macro
+ requirements.
`,1);function o(t){r(t,{title:`About you`,get image(){return i},children:(t,r)=>{var i=a();n(2),e(t,i)},$$slots:{default:!0}})}export{o as component};
+//# sourceMappingURL=52.C1yvpHJM.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/55.CMp9XOOX.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/55.CMp9XOOX.js
new file mode 100644
index 0000000000000000000000000000000000000000..08d32ac3781e0c613de9776613f25e3b629ae450
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/55.CMp9XOOX.js
@@ -0,0 +1,3 @@
+import{At as e,Ct as t,E as n,J as r,T as i,U as a,X as o,c as s,cn as c,kt as l,lt as u,s as d,sn as f,xn as p,zt as m}from"../chunks/BhSt9sSe.js";import{Ot as h,pt as g}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{n as _}from"../chunks/B1cT_TaC2.js";import{t as v}from"../chunks/DaionNlP2.js";import{t as y}from"../chunks/-YOj1Zzm.js";import{n as b}from"../chunks/B6Qcxm1X.js";import{a as x,t as S}from"../chunks/DQfSipwY2.js";var C=p({load:()=>w});async function w({parent:e}){let{user:t}=await e();await b(t.id)}var T=o(`This may be due to allergies or any other reason.
You can fully configure your Food Exclusions later, including setting
+ custom exclusions.
`,1);function E(o,p){c(p,!1);let C=h();s(),y(o,{title:`Are there foods you avoid?`,get image(){return v},children:(o,s)=>{let c=m(()=>_(b(C)));var f=T(),p=e(l(f),2),h=e=>{S(e,d(()=>x[0],{get generator_settings(){return u(c)},title:``}))};a(p,e=>{u(c)&&e(h)});var v=e(p,2);t(()=>i(v,1,n(g),`svelte-cl8c39`)),r(o,f)},$$slots:{default:!0}}),f()}export{E as component,C as universal};
+//# sourceMappingURL=55.CMp9XOOX.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/56.CCGR311L.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/56.CCGR311L.js
new file mode 100644
index 0000000000000000000000000000000000000000..7ef67a051c599544dbacdbd74ef6f0d80415c08f
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/56.CCGR311L.js
@@ -0,0 +1,2 @@
+import{At as e,J as t,X as n,kt as r,xn as i}from"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as a}from"../chunks/DNDaYjwu.js";import{t as o}from"../chunks/DbfHMH5n2.js";import{t as s}from"../chunks/-YOj1Zzm.js";import{t as c}from"../chunks/Kk-jaXxu2.js";var l=i({load:()=>u});async function u({parent:e}){let{user:t}=await e();return a(()=>o(t.id))}var d={height:250,width:211,src:`/app/_app/immutable/assets/carrot-weigh.BQn3avEN.avif`},f=n(`We'll adjust your daily nutrition targets to match your goals.
`,1);function p(n){s(n,{get image(){return d},title:`What is your goal?`,children:(n,i)=>{var a=f(),o=e(r(a),2);c(o,{}),t(n,a)},$$slots:{default:!0}})}export{p as component,l as universal};
+//# sourceMappingURL=56.CCGR311L.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/57.DE0cYHYC.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/57.DE0cYHYC.js
new file mode 100644
index 0000000000000000000000000000000000000000..80a68a32b127ebdc2e3696654f6474eb309bba16
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/57.DE0cYHYC.js
@@ -0,0 +1,6 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,H as a,J as o,K as s,M as c,Ot as l,U as u,X as d,Y as f,cn as p,hn as m,kt as h,lt as g,mn as _,sn as v,xn as y}from"../chunks/BhSt9sSe.js";import{Mt as b,Ot as x,xt as S,y as C}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as w,s as T}from"../chunks/CxRGiBH-2.js";import{t as E}from"../chunks/CWh68Btn2.js";import{t as D}from"../chunks/D2IZisAi2.js";import{et as O}from"../chunks/Cer-cfCG.js";import{t as k}from"../chunks/CMf_mwGa.js";import{t as A}from"../chunks/-YOj1Zzm.js";import{f as j,o as M}from"../chunks/CYGTaWAz2.js";import{t as N}from"../chunks/BvG_GAF12.js";var P=y({load:()=>F});async function F({params:e,parent:t}){let{user:n}=await t(),r=parseInt(e.meal_id,10),i=await C(()=>O(r));return{meal_type:await C(()=>M(n.id,i.meal_type))}}var I=d(`Ingredients in recipes and grocery lists will be scaled based on the
+ number of people. Nutrition targets will be based on your profile.
For more advanced scenarios, use .
`,1),L=d(` `,1),R=d(`
`),z=d(`The generator will leave the meal empty. This is useful if you want to
+ track the meal yourself, or if you want to use the meal as a placeholder
+ for things you eat outside the plan. You can still use the "meal
+ alternatives" to get suggestions for this meal.
`),B=d(` `,1);function V(a,d){p(d,!0);let f=x(),y=n(()=>d.meal_type.family_scale-1),C=n(()=>!d.meal_type.leave_empty),O=n(()=>E(d.meal_type.preferred_categories));async function M(){await j(f,d.meal_type.resource_uri,{family_scale:g(y)+1,leave_empty:!g(C),preferred_categories:g(O)})}A(a,{save:M,get title(){return d.meal_type.title},children:(n,a)=>{var f=B(),p=h(f);w(p,{id:`plan_meal`,label:`Automatically make suggestions`,children:(e,t)=>{k(e,{name:`plan_meal`,get checked(){return g(C)},set checked(e){i(C,e)}})},$$slots:{default:!0}});var v=t(p,2);w(v,{id:`family_scale`,label:`Additional family members`,help:n=>{var r=I(),i=t(h(r),2),a=t(l(i));S(a,{external:!0,href:`https://help.eatthismuch.com/help/family-members-account-linking-beta`,children:(t,n)=>{_();var r=e(`Linked Accounts`);o(t,r)},$$slots:{default:!0}}),_(),m(i),o(n,r)},children:(e,n)=>{var a=L(),c=h(a);T(c,{name:`family_scale`,get value(){return g(y)},set value(e){i(y,e)}});var l=t(c);r(()=>s(l,` ${g(y)===1?`person`:`people`}`)),o(e,a)},$$slots:{help:!0,default:!0}});var x=t(v,2),E=e=>{var t=R(),n=l(t);N(n,{get meal_type(){return d.meal_type},get preferred_categories(){return g(O)},set preferred_categories(e){i(O,e)}}),m(t),c(1,t,()=>b),c(2,t,()=>D),o(e,t)},A=e=>{var t=z();o(e,t)};u(x,e=>{g(C)?e(E):e(A,-1)}),o(n,f)},$$slots:{default:!0}}),v()}function H(e,t){p(t,!0);let r=n(()=>t.data.meal_type);var i=f(),s=h(i);a(s,()=>g(r).id,e=>{V(e,{get meal_type(){return g(r)}})}),o(e,i),v()}export{H as component,P as universal};
+//# sourceMappingURL=57.DE0cYHYC.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/58.Bp_56he1.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/58.Bp_56he1.js
new file mode 100644
index 0000000000000000000000000000000000000000..b77a3154e245c1fa1a3fcd67ba79ed41e00751ee
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/58.Bp_56he1.js
@@ -0,0 +1,6 @@
+import{$ as e,At as t,B as n,Bt as r,Ct as i,D as a,E as o,J as s,K as c,Ot as l,R as u,T as d,U as f,X as p,cn as m,hn as h,jt as g,kt as _,lt as v,mn as y,sn as b,xn as x,z as S}from"../chunks/BhSt9sSe.js";import{Ot as C,at as w,it as T,pt as E,y as D}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as O}from"../chunks/BpQEveid.js";import{t as k}from"../chunks/BB8a8jXj2.js";import{i as A,n as j,r as M,t as N}from"../chunks/CWcvf8_g2.js";import{t as P}from"../chunks/-YOj1Zzm.js";import{a as F}from"../chunks/CYGTaWAz2.js";import{t as I}from"../chunks/DfE8jfaJ2.js";var L=x({load:()=>R});async function R({parent:e}){let{user:t}=await e(),n=D(()=>F(t.id)),r=(await D(()=>j(t.id)))[6];return{meal_types:await n,template:r}}var z=`\r
+ \r
+ \r
+`,B=p(`
`,1),V=p(` `,1),H=p(`
`),U=p(`
`,1);function W(p,x){m(x,!0);let{meal_types:D,template:j}=x.data,F=C(),L=g([]);for(let e of j.diet.meals){let t=D.find(t=>t.resource_uri===e.meal_type),n=g({deleted:!1,meal_type:t,template_meal:e});L.push(n)}for(let e of D){if(L.find(t=>{var n;return((n=t.meal_type)==null?void 0:n.resource_uri)===e.resource_uri}))continue;let t=g({deleted:!0,meal_type:e,template_meal:null});L.push(t)}let{draggable:R,dropTarget:W}=I(),G=({data:e,placement:t})=>{let n=t.index;t.position===`AFTER`&&n++,t.index>e.index&&n--;let[r]=L.splice(e.index,1);L.splice(n,0,r)};async function K(){let e=0;for(let t of L){if(t.deleted){t.template_meal&&await A({meal_id:t.template_meal.id,template_uri:j.resource_uri,user_id:F});continue}t.template_meal?t.template_meal.meal_number!==e&&await M({from_uri:j.resource_uri,item:t.template_meal,to:j,index:e,user_id:F}):await N(F,j.resource_uri,{meal_number:e,meal_type:t.meal_type.resource_uri}),e++}}P(p,{save:K,title:`Which meals do you eat each day?`,get image(){return k},children:(p,m)=>{var g=U(),b=_(g);S(b,21,()=>L,n,(n,o,d)=>{let p=r(()=>v(o).meal_type.title);var m=H(),g=l(m);u(g,()=>z,!0),h(g);var b=t(g,2),x=n=>{var r=B(),a=_(r),u=l(a);h(a);var d=t(a,2);w(d,{onclick:()=>v(o).deleted=!1,style:`none`,children:(t,n)=>{y();var r=e(`Undo`);s(t,r)},$$slots:{default:!0}}),i(()=>c(u,`You have removed "${v(p)??``}"`)),s(n,r)},S=e=>{var n=V(),r=_(n),a=l(r,!0);h(r);var u=t(r,2);T(u,{get icon(){return O},get label(){return`Remove ${v(p)??``}`},onclick:()=>v(o).deleted=!0}),i(()=>c(a,v(p))),s(e,n)};f(b,e=>{v(o).deleted?e(x):e(S,-1)}),h(m),a(m,()=>R(`move`,{index:d})),a(m,()=>W({index:d},G)),s(n,m)}),h(b);var x=t(b,2);i(()=>d(x,1,o(E),`svelte-7x6267`)),s(p,g)},$$slots:{default:!0}}),b()}export{W as component,L as universal};
+//# sourceMappingURL=58.Bp_56he1.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/59.EDsyP6y2.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/59.EDsyP6y2.js
new file mode 100644
index 0000000000000000000000000000000000000000..05802c30ef1f6e07a90e40bba72938d5d16ab884
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/59.EDsyP6y2.js
@@ -0,0 +1,7 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,J as a,K as o,Lt as s,Ot as c,U as l,X as u,Y as d,cn as f,hn as p,jt as m,kt as h,lt as g,mn as _,sn as v,xn as y}from"../chunks/BhSt9sSe.js";import{Ot as b,at as x,y as S}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as C}from"../chunks/CWh68Btn2.js";import{t as w}from"../chunks/CLTyeLEa.js";import{n as T,r as E}from"../chunks/DhZVZYPM2.js";import{r as D,s as O,t as k}from"../chunks/CAq_OQDd2.js";import{t as A}from"../chunks/-YOj1Zzm.js";import{t as j}from"../chunks/B9LAw6kI.js";import{n as M}from"../chunks/B6Qcxm1X.js";import{t as N}from"../chunks/BKywytVe2.js";import{t as P}from"../chunks/BH5Kp2fT2.js";import{t as F}from"../chunks/C_E3KHg-2.js";var I=y({load:()=>L});async function L({parent:e}){let{user:t}=await e();return{generator_settings:await S(()=>M(t.id)),nutrition_target:await R(t.id),user:t}}async function R(e){let t=N(e),n=await D(e),r=await t;if(n.length){let t=n[0];return await O(e,t.resource_uri,{...r,auto:!0}),{...t,...r,auto:!0}}return k(e,{...r,auto:!0,title:`Nutrition Targets`})}function z(e,t){f(t,!0);let n=b(),r=s(m(C(t.nutrition_target)));g(r).auto=!1;async function a(){await O(n,t.nutrition_target.resource_uri,g(r))}A(e,{save:a,title:`Set Nutrition Target`,children:(e,t)=>{P(e,{get form(){return g(r)},set form(e){i(r,e,!0)}})},$$slots:{default:!0}}),v()}var B=u(`We've estimated your daily nutrition targets based on your profile. You can
+ edit these targets at any time.
`,1);function V(n,i){f(i,!0),A(n,{title:`Nutrition Targets`,get image(){return F},children:(n,s)=>{var u=B(),d=t(h(u),2),f=c(d),m=c(f),g=t=>{var n=e();r(e=>o(n,e),[()=>T(i.nutrition_target.calories)]),a(t,n)},v=t=>{var n=e();r(()=>o(n,`${i.nutrition_target.calories??``} Calories`)),a(t,n)};l(m,e=>{i.user.use_kilojoules?e(g):e(v,-1)}),_(),p(f);var y=t(f,2),b=c(y);E(b,{type:`carbs`});var S=t(b,2),C=t=>{var n=e();r(()=>o(n,`At most
+ ${i.nutrition_target.max_carbs??``}g
+ ${i.user.use_net_carbs?`Net Carbs`:`Carbs`}`)),a(t,n)},w=t=>{var n=e();r(()=>o(n,`At least
+ ${i.nutrition_target.min_carbs??``}g
+ ${i.user.use_net_carbs?`Net Carbs`:`Carbs`}`)),a(t,n)};l(S,e=>{i.generator_settings.preset_diet===j.KETO?e(C):e(w,-1)}),p(y);var D=t(y,2),O=c(D);E(O,{type:`fats`});var k=t(O);p(D);var A=t(D,2),M=c(A);E(M,{type:`proteins`});var N=t(M);p(A),p(d);var P=t(d,2),F=c(P);x(F,{get onclick(){return i.onedit},children:(t,n)=>{_();var r=e(`Edit Targets`);a(t,r)},$$slots:{default:!0}}),p(P),r(()=>{o(k,` At least ${i.nutrition_target.min_fats??``}g Fats`),o(N,` At least ${i.nutrition_target.min_proteins??``}g Proteins`)}),a(n,u)},$$slots:{default:!0}}),v()}function H(e,t){let r=n(()=>t.data.generator_settings),o=n(()=>t.data.nutrition_target),c=n(()=>t.data.user),u=s(!1);w(e,{children:(e,t)=>{var n=d(),s=h(n),f=e=>{z(e,{get nutrition_target(){return g(o)}})},p=e=>{V(e,{get nutrition_target(){return g(o)},get generator_settings(){return g(r)},onedit:()=>i(u,!0),get user(){return g(c)}})};l(s,e=>{g(u)?e(f):e(p,-1)}),a(e,n)},$$slots:{default:!0}})}export{H as component,I as universal};
+//# sourceMappingURL=59.EDsyP6y2.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/6.BnPNNNgI.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/6.BnPNNNgI.js
new file mode 100644
index 0000000000000000000000000000000000000000..91f970eb6de5fc988a45ff54ec52670fc749ed5f
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/6.BnPNNNgI.js
@@ -0,0 +1,2 @@
+import{H as e,I as t,J as n,Y as r,cn as i,kt as a,sn as o,xn as s}from"../chunks/BhSt9sSe.js";import{Et as c,H as l,i as u,j as d,y as f}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as p}from"../chunks/CLTyeLEa.js";var m=s({load:()=>h});async function h({params:e}){l();let t=e.user_id?parseInt(e.user_id,10):d();return{user:await f(()=>u(t))}}function g(s,l){i(l,!0);var u=r(),d=a(u);e(d,()=>l.data.user.id,e=>{c(e,{get user(){return l.data.user},children:(e,i)=>{p(e,{children:(e,i)=>{var o=r(),s=a(o);t(s,()=>l.children),n(e,o)},$$slots:{default:!0}})},$$slots:{default:!0}})}),n(s,u),o()}export{g as component,m as universal};
+//# sourceMappingURL=6.BnPNNNgI.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/60.DbJyPOMK.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/60.DbJyPOMK.js
new file mode 100644
index 0000000000000000000000000000000000000000..3cd9488c92b334f36014e8b1864e81606f4514f2
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/60.DbJyPOMK.js
@@ -0,0 +1,2 @@
+import{At as e,J as t,X as n,kt as r,xn as i}from"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as a}from"../chunks/DNDaYjwu.js";import{t as o}from"../chunks/DbfHMH5n2.js";import{t as s}from"../chunks/-YOj1Zzm.js";import{t as c}from"../chunks/DOgki7EK2.js";var l=i({load:()=>u});async function u({parent:e}){let{user:t}=await e();return a(()=>o(t.id))}var d={height:250,width:203,src:`/app/_app/immutable/assets/cheese-selfie.DdDKJOvw.avif`},f=n(`This information lets us estimate your nutrition requirements for each day.
`,1);function p(n){s(n,{get image(){return d},title:`Tell us about yourself`,children:(n,i)=>{var a=f(),o=e(r(a),2);c(o,{}),t(n,a)},$$slots:{default:!0}})}export{p as component,l as universal};
+//# sourceMappingURL=60.DbJyPOMK.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/61.CsoWBJXo.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/61.CsoWBJXo.js
new file mode 100644
index 0000000000000000000000000000000000000000..c6842c86a72c3c7cdec712ee8c5d351305dd6baf
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/61.CsoWBJXo.js
@@ -0,0 +1,3 @@
+import{At as e,Bt as t,Ft as n,J as r,Lt as i,X as a,cn as o,jt as s,kt as c,lt as l,sn as u}from"../chunks/BhSt9sSe.js";import{Ot as d,i as f,s as p}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as m,r as h}from"../chunks/CxRGiBH-2.js";import{n as g}from"../chunks/B1cT_TaC2.js";import{t as _}from"../chunks/C2PzE5jE.js";import{t as v}from"../chunks/BC4LLrwJ.js";import{t as y}from"../chunks/-YOj1Zzm.js";import{r as b,t as x}from"../chunks/BBmDjNEb2.js";import{t as S}from"../chunks/CJkB_yrk2.js";var C=a(` `,1),w=a(`We will use these defaults to display amounts in recipes and when recording
+ goals.
`,1);function T(a,T){o(T,!0);let E=d(),D=t(()=>g(f(E))),O=i(!1),k=i(s(navigator.languages[0].toLowerCase()===`en-us`?_.IMPERIAL:_.METRIC));async function A(){if(!l(D))return;let e=l(D).timezone||j();await p(l(D).resource_uri,{units:l(k),use_kilojoules:l(O),timezone:e})}function j(){let e=new Date(2022,0,1).getTimezoneOffset()/-60,t=new Date(2022,6,1).getTimezoneOffset()/-60;return Math.min(e,t)}y(a,{title:`How do you measure things?`,get image(){return S},save:A,children:(t,i)=>{var a=w(),o=e(c(a),2);v(o,{children:(t,i)=>{var a=C(),o=c(a);m(o,{id:`units`,label:`Preferred units`,children:(e,t)=>{h(e,{name:`units`,get options(){return b},get value(){return l(k)},set value(e){n(k,e,!0)}})},$$slots:{default:!0}});var s=e(o,2);m(s,{id:`use_kilojoules`,label:`Preferred unit of energy`,children:(e,t)=>{h(e,{name:`use_kilojoules`,get options(){return x},get value(){return l(O)},set value(e){n(O,e,!0)}})},$$slots:{default:!0}}),r(t,a)},$$slots:{default:!0}}),r(t,a)},$$slots:{default:!0}}),u()}export{T as component};
+//# sourceMappingURL=61.CsoWBJXo.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/64.BlAD1U2K.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/64.BlAD1U2K.js
new file mode 100644
index 0000000000000000000000000000000000000000..5dd40780775212c7e5e908101b74ce1017a754e3
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/64.BlAD1U2K.js
@@ -0,0 +1,4 @@
+import{J as e,X as t,mn as n}from"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as r}from"../chunks/-YOj1Zzm.js";import{t as i}from"../chunks/DezUpAoa.js";var a=t(`We'll ask about how you eat food throughout the day. You can then configure
+ what kind of food you would like to see in each meal.
This will be used by the generator to lay out your day and make food
+ recommendations.
`,1);function o(t){r(t,{title:`Your meals`,get image(){return i},children:(t,r)=>{var i=a();n(2),e(t,i)},$$slots:{default:!0}})}export{o as component};
+//# sourceMappingURL=64.BlAD1U2K.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/65.YLOK7Z1o.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/65.YLOK7Z1o.js
new file mode 100644
index 0000000000000000000000000000000000000000..0b254cb0b74ffa69b0d13eb7dab68b01fb626974
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/65.YLOK7Z1o.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Ft as n,J as r,Lt as i,Ot as a,X as o,cn as s,hn as c,jt as l,kt as u,lt as d,mn as f,sn as p}from"../chunks/BhSt9sSe.js";import{Ot as m,Tt as h,W as g,Z as _,wt as v}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as y}from"../chunks/DEgMoMXi.js";import{t as b}from"../chunks/CuR2tGfA2.js";import{t as x}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as S}from"../chunks/CfvA40lv.js";import{t as C}from"../chunks/BC4LLrwJ.js";var w=o(`Query
`,1),T=o(` `,1);function E(o,E){s(E,!0);let D=m(),O=i(l(sessionStorage.getItem(g.ADMIN.FOOD_CURATION)??``));async function k(){sessionStorage.setItem(g.ADMIN.FOOD_CURATION,d(O));let e=h(D,`/admin/discover/results?q=${encodeURIComponent(d(O))}`);await v(e)}var A=T(),j=u(A);x(j,{title:`Curation Queue`});var M=t(j,2);_(M,{onSubmit:k,children:(i,o)=>{C(i,{children:(i,o)=>{var s=w(),l=u(s),p=t(a(l),2);S(p,{full_width:!0,name:`query`,get value(){return d(O)},set value(e){n(O,e,!0)}}),c(l);var m=t(l,2),h=a(m);y(h,{get icon(){return b},children:(t,n)=>{f();var i=e(`Search`);r(t,i)},$$slots:{default:!0}}),c(m),r(i,s)},$$slots:{default:!0}})},$$slots:{default:!0}}),r(o,A),p()}export{E as component};
+//# sourceMappingURL=65.YLOK7Z1o.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/66.C9qsBSWb.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/66.C9qsBSWb.js
new file mode 100644
index 0000000000000000000000000000000000000000..a2157521956b1554224c963d77d54e03ce123e78
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/66.C9qsBSWb.js
@@ -0,0 +1,2 @@
+import{At as e,J as t,U as n,X as r,Y as i,cn as a,g as o,it as s,kt as c,s as l,sn as u,vn as d,xn as f}from"../chunks/BhSt9sSe.js";import{S as p,Tt as m}from"../chunks/gotDHXHr.js";import{t as h}from"../chunks/C5rGgnpV.js";import"../chunks/xihTtKlq.js";import{t as g}from"../chunks/B-CQW_E02.js";import{t as _}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as v}from"../chunks/CUlQONZr2.js";import{n as y,t as b}from"../chunks/DEgSyIgv2.js";import{t as x}from"../chunks/DLXIoRkz2.js";var S=f({load:()=>C});async function C({parent:e,url:t}){let n=t.searchParams.get(`q`)??``;if(!n){let{user:t}=await e(),n=m(t.id,`/admin/discover`);h(307,n)}try{return{results:await p(null,`/api/admin-foods/?q=${encodeURIComponent(n)}`)}}catch(e){return console.error(e),{error:!0}}}var w={height:250,width:272,src:`/app/_app/immutable/assets/orange-chalkboard.C6LOsSFZ.avif`},T=r(` `),E=r(`There was a problem executing your query
`),D=r(`No results
`),O=r(` `,1);function k(r,f){a(f,!0),v(r,{placeholder:e=>{var n=T();o(n,()=>({alt:``,...w}),void 0,void 0,void 0,`svelte-yooyuz`),s(n),t(e,n)},routing:(e,r=d)=>{var a=i(),o=c(a),s=e=>{x(e,l(r))};n(o,e=>{r().type===`FOOD`&&e(s)}),t(e,a)},children:(r,i)=>{var a=O(),o=c(a);_(o,{title:`Curation Queue`,actions:e=>{y(e,{})},$$slots:{actions:!0}});var s=e(o,2),l=e=>{var n=E();t(e,n)},u=e=>{var n=D();t(e,n)},d=e=>{g(e,{children:(e,t)=>{b(e,{get food_uris(){return f.data.results}})},$$slots:{default:!0}})};n(s,e=>{var t;f.data.error?e(l):(t=f.data.results)!=null&&t.length?e(d,-1):e(u,1)}),t(r,a)},$$slots:{placeholder:!0,routing:!0,default:!0}}),u()}export{k as component,S as universal};
+//# sourceMappingURL=66.C9qsBSWb.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/67.CZLqV4f5.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/67.CZLqV4f5.js
new file mode 100644
index 0000000000000000000000000000000000000000..767f41af43f4d61773707ca228ed665944d33a20
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/67.CZLqV4f5.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Bt as n,Ct as r,D as i,E as a,Ft as o,I as s,J as c,K as l,Lt as u,M as d,Ot as f,T as p,U as m,W as h,X as g,Y as _,a as v,cn as y,et as b,hn as x,kt as S,lt as C,mn as w,sn as T,tt as E,v as D,vn as O,wt as k,xn as A,z as j}from"../chunks/BhSt9sSe.js";import{r as M}from"../chunks/C8UWmKFm.js";import{S as N,Xt as P,Z as F,at as I,ft as L,it as ee,p as R,w as z,x as B,yt as te}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as V}from"../chunks/CyviYcci.js";import{t as ne}from"../chunks/BpQEveid.js";import{t as H}from"../chunks/DEgMoMXi.js";import{t as U}from"../chunks/CuR2tGfA2.js";import{i as re,p as W}from"../chunks/CxRGiBH-2.js";import{n as G}from"../chunks/B1cT_TaC2.js";import{t as K}from"../chunks/B-CQW_E02.js";import{n as q,t as J}from"../chunks/BeWRM1O72.js";import{t as Y}from"../chunks/D2IZisAi2.js";import{t as X}from"../chunks/CLTyeLEa.js";import{n as ie}from"../chunks/B19gMY7G.js";import{t as ae}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as oe}from"../chunks/CfvA40lv.js";import{t as se}from"../chunks/BC4LLrwJ.js";import{t as ce}from"../chunks/BFY9L1Z_.js";var le=A({load:()=>ue});async function ue({url:e}){let t=e.searchParams.get(`q`)??``,{food_uris:n}=await N(null,`/admin/images/${t?`?`+t:``}`);return{food_uris:n,query:t}}var Z={APPROVED:!0,BANNED:!1,UNREVIEWED:null},de=g(` `),fe=g(`??? x ??? `),pe=g(`
`),me=g(`
Uploader
Resolution
Status
`);function he(s,u){y(u,!0),J();let g=n(()=>u.image.curated),_=new Map([[Z.APPROVED,`Approved`],[Z.BANNED,`Banned`],[Z.UNREVIEWED,`Unreviewed`]]);async function v(){C(g)!==u.image.curated&&await u.changeStatus(u.image,C(g)),u.close()}async function b(){o(g,u.image.curated),await u.deleteImage()}var S=me(),E=f(S),O=f(E),k=f(O);x(O);var A=t(O,2),j=f(A),M=f(j),N=t(f(M),2),P=f(N,!0);x(N),x(M);var F=t(M,2),R=t(f(F),2);h(R,()=>u.resolution,e=>{var t=fe();c(e,t)},(e,t)=>{var n=de();let i;var a=f(n);x(n),r(()=>{i=p(n,1,`svelte-d8h610`,null,i,{error:C(t).errors.ratio||C(t).errors.size}),l(a,`${C(t).width??``} x ${C(t).height??``}`)}),c(e,n)}),x(F);var z=t(F,2),B=t(f(z),2),V=f(B);{let e=n(()=>new Map(_));re(V,{get options(){return C(e)},get value(){return C(g)},set value(e){o(g,e)}})}x(B),x(z),x(j);var H=t(j,2),U=t=>{var n=pe(),r=f(n);I(r,{get icon(){return ne},onclick:b,children:(t,n)=>{w();var r=e(`Delete Image`);c(t,r)},$$slots:{default:!0}}),x(n),c(t,n)};m(H,e=>{C(g)===Z.BANNED&&e(U)}),x(A);var W=t(A,2),G=f(W);ee(G,{get icon(){return te},label:`close`,onclick:v}),x(W),x(E),x(S),i(S,()=>q(v)),r(()=>{p(S,1,a(L),`svelte-d8h610`),D(k,`src`,`/media/images/${u.image.image??``}`),l(P,u.image.user_id)}),d(7,S,()=>Y),c(s,S),T()}var ge=g(` `,1);function Q(e,n){y(n,!0);let i=v(n,`images`,15),a=v(n,`renderActions`,3,void 0),l=u(!1);async function d(e,t){if(await z(null,`/admin/image/change_curated/${e.id}/`,{curated:t}),t===Z.APPROVED){var n;(n=i())!=null&&n.some(e=>e.is_primary_image)||(await z(null,`/admin/image/set_primary/${e.id}/`,{}),e.is_primary_image=!0)}e.curated=t,e=e,i(i())}function p(){o(l,!1)}async function h(){var e;await B(null,`/api/v1/image/${n.image.id}/`),i(((e=i())==null?void 0:e.filter(e=>e.id!==n.image.id))??null)}let g=new Promise((e,t)=>{let r=new Image;r.onerror=t,r.onload=()=>{let t=r.height,n=r.width,i=n/t;e({errors:{ratio:i<1.3||i>1.5,size:t<600||n<800},height:t,width:n})},r.src=`${P}${n.image.image}`});var _=ge(),b=S(_),w=f(b);x(b);var k=t(b,2);s(k,()=>a()??O,()=>({changeStatus:d,resolution:g}));var A=t(k,2),j=e=>{he(e,{changeStatus:d,close:p,deleteImage:h,get image(){return n.image},get resolution(){return g}})};m(A,e=>{C(l)&&e(j)}),r(()=>D(w,`src`,`/media/images/${n.image.image??``}`)),E(`click`,b,()=>o(l,!0)),c(e,_),T()}b([`click`]);var _e=g(` `),ve=g(`
`,1);function ye(n,i){y(i,!0);let a=v(i,`image`,15),o=v(i,`images`,15);Q(n,{get image(){return a()},set image(e){a(e)},get images(){return o()},set images(e){o(e)},renderActions:(n,i)=>{let o=()=>(i==null?void 0:i()).changeStatus,s=()=>(i==null?void 0:i()).resolution;var u=ve(),d=S(u),m=f(d),g=f(m);h(g,s,null,(e,t)=>{var n=_e();let i;var a=f(n);x(n),r(()=>{i=p(n,1,`svelte-plu3v5`,null,i,{error:C(t).errors.ratio||C(t).errors.size}),l(a,`${C(t).width??``} x ${C(t).height??``}`)}),c(e,n)}),x(m);var _=t(m,2),v=f(_);x(_),x(d);var y=t(d,2),b=f(y);I(b,{onclick:()=>o()(a(),Z.APPROVED),style:`secondary`,children:(t,n)=>{w();var r=e(`Approve`);c(t,r)},$$slots:{default:!0}});var T=t(b,2);I(T,{onclick:()=>o()(a(),Z.BANNED),children:(t,n)=>{w();var r=e(`Ban`);c(t,r)},$$slots:{default:!0}}),x(y),r(()=>l(v,`Uploader: ${a().user_id??``}`)),c(n,u)},$$slots:{renderActions:!0}}),T()}var be=g(`
`),$=g(` `),xe=g(` `),Se=g(``),Ce=g(` `),we=g(``),Te=g(`No further images to review.
`),Ee=g(` `);function De(e,i){y(i,!0);let a=n(()=>R(i.food_uri)),s=n(()=>G(ie(i.food_uri))),h=u(null),g=n(()=>{var e;return(e=C(h))==null?void 0:e.filter(e=>i.show_banned?e.curated!==Z.UNREVIEWED:e.curated===Z.APPROVED)}),v=n(()=>{var e;return(e=C(h))==null?void 0:e.filter(e=>e.curated===Z.UNREVIEWED)});k(()=>{G(N(null,`/g/all-images/${C(a)}/`).then(e=>o(h,e,!0)))});async function b(e){if(!C(h))throw TypeError();e.is_primary_image&&C(h).filter(e=>e.is_primary_image).length===1||(await z(null,`/admin/image/set_primary/${e.id}/`,{}),o(h,C(h).map(t=>({...t,is_primary_image:t.id===e.id})),!0))}var w=_(),E=S(w),D=e=>{var n=Ee(),i=f(n),a=f(i),u=f(a);ce(u,{external:!0,get food(){return C(s)},image:!1}),x(a);var _=t(a,2),y=e=>{var t=be(),n=f(t,!0);x(t),r(()=>l(n,C(s).description)),c(e,t)};m(_,e=>{C(s).description&&e(y)}),x(i);var S=t(i,2),w=e=>{var n=Se();j(n,23,()=>C(g),e=>e.id,(e,n,i)=>{var a=xe();let s;var l=f(a),u=e=>{var t=$(),r=f(t);W(r,{get checked(){return C(n).is_primary_image},onclick:()=>b(C(n))}),x(t),c(e,t)};m(l,e=>{C(n).curated===Z.APPROVED&&e(u)}),Q(t(l,2),{get image(){return C(g)[C(i)]},set image(e){C(g)[C(i)]=e},get images(){return C(h)},set images(e){o(h,e,!0)}}),x(a),r(()=>s=p(a,1,`svelte-l164nq`,null,s,{banned:C(n).curated===Z.BANNED})),d(3,a,()=>Y),c(e,a)}),x(n),c(e,n)};m(S,e=>{var t;(t=C(g))!=null&&t.length&&e(w)});var T=t(S,2),E=e=>{var t=we();j(t,23,()=>C(v),e=>e.id,(e,t,n)=>{var r=Ce();ye(f(r),{get image(){return C(v)[C(n)]},set image(e){C(v)[C(n)]=e},get images(){return C(h)},set images(e){o(h,e,!0)}}),x(r),d(3,r,()=>Y),c(e,r)}),x(t),c(e,t)};m(T,e=>{var t;(t=C(v))!=null&&t.length&&e(E)});var D=t(T,2),O=e=>{var t=Te();c(e,t)};m(D,e=>{var t,n;!((t=C(g))!=null&&t.length)&&!((n=C(v))!=null&&n.length)&&e(O)}),x(n),c(e,n)};m(E,e=>{C(s)&&e(D)}),c(e,w),T()}var Oe=g(`Query
`,1);function ke(n,r){y(r,!0);let i=v(r,`query`,15);function a(){return M(window.location.pathname+`?q=`+i(),{replaceState:!0,state:V.state})}F(n,{onSubmit:a,children:(n,r)=>{se(n,{children:(n,r)=>{var a=Oe(),o=S(a),s=t(f(o),2);oe(s,{full_width:!0,name:`query`,required:!1,get value(){return i()},set value(e){i(e)}}),x(o);var l=t(o,2),u=f(l);H(u,{get icon(){return U},children:(t,n)=>{w();var r=e(`Search`);c(t,r)},$$slots:{default:!0}}),x(l),c(n,a)},$$slots:{default:!0}})},$$slots:{default:!0}}),T()}var Ae=g(` `,1);function je(n,r){y(r,!0);let i=u(!1);var a=Ae(),s=S(a);ae(s,{title:`Image Curation`,children:(t,n)=>{I(t,{get active(){return C(i)},onclick:()=>o(i,!C(i)),children:(t,n)=>{w();var r=e(`Show Banned`);c(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var l=t(s,2);ke(l,{get query(){return r.data.query}});var d=t(l,2);K(d,{collapse:!0,children:(e,t)=>{var n=_(),a=S(n);j(a,16,()=>r.data.food_uris,e=>e,(e,t)=>{X(e,{children:(e,n)=>{De(e,{get food_uri(){return t},get show_banned(){return C(i)}})},$$slots:{default:!0}})}),c(e,n)},$$slots:{default:!0}}),c(n,a),T()}export{je as component,le as universal};
+//# sourceMappingURL=67.CZLqV4f5.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/68.DjnpJb-T.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/68.DjnpJb-T.js
new file mode 100644
index 0000000000000000000000000000000000000000..40ac53275143734dd275d09cd72bc2af17ea3062
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/68.DjnpJb-T.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Ft as n,J as r,Lt as i,Ot as a,X as o,hn as s,kt as c,lt as l,mn as u}from"../chunks/BhSt9sSe.js";import{Z as d}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as f}from"../chunks/DXDsflZU.js";import{t as p}from"../chunks/DEgMoMXi.js";import{s as m}from"../chunks/CxRGiBH-2.js";import{t as h}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";var g=o(`User ID
`),_=o(` `,1);function v(o){let v=i(null);function y(){location.href=`/impersonate/${l(v)}`}var b=_(),x=c(b);h(x,{title:`Impersonate`});var S=t(x,2);d(S,{onSubmit:y,children:(i,o)=>{var c=g(),d=a(c),h=t(a(d));m(h,{name:`user_id`,get value(){return l(v)},set value(e){n(v,e,!0)}}),s(d);var _=t(d,2);p(_,{get icon(){return f},children:(t,n)=>{u();var i=e(`Impersonate`);r(t,i)},$$slots:{default:!0}}),s(c),r(i,c)},$$slots:{default:!0}}),r(o,b)}export{v as component};
+//# sourceMappingURL=68.DjnpJb-T.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/69.CXVp8q7F.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/69.CXVp8q7F.js
new file mode 100644
index 0000000000000000000000000000000000000000..c5ab2711d0963de87f71de09acb456a0e4660b38
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/69.CXVp8q7F.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,B as n,Bt as r,Ct as i,J as a,K as o,M as s,Ot as c,T as ee,U as l,X as u,Y as d,a as f,cn as p,et as m,g as h,hn as g,it as _,kt as v,lt as y,mn as b,s as x,sn as S,tt as te,v as C,vn as w,xn as T,z as E}from"../chunks/BhSt9sSe.js";import{C as D,Ot as O,S as k,Tt as ne,at as A}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{a as re}from"../chunks/BLz2WXeC.js";import{n as j}from"../chunks/B1cT_TaC2.js";import{t as M}from"../chunks/B-CQW_E02.js";import{i as ie}from"../chunks/D2IZisAi2.js";import{t as N}from"../chunks/DaionNlP2.js";import{t as P}from"../chunks/CLTyeLEa.js";import{o as F}from"../chunks/COwaMya3.js";import{n as I}from"../chunks/B19gMY7G.js";import{a as L,t as R}from"../chunks/BtqPi__O.js";import{t as z}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as ae}from"../chunks/CfvA40lv.js";import{t as B}from"../chunks/CUlQONZr2.js";import{t as V}from"../chunks/mqmQrvC72.js";import{t as H}from"../chunks/DLXIoRkz2.js";var U=T({load:()=>W});async function W({url:e}){let t=new URLSearchParams({food__curated:`true`,limit:`100`,order_by:`-date`,reviewed:`false`}),n=e.searchParams.has(`recipes`);return n&&t.set(`food_model`,`r`),{only_recipes:n,reports:await k(null,`/api/v1/foodreport/?${t}`)}}var{getPane:G,showPane:oe}=V(),se=u(`
`),ce=u(` `),le=u(`
`),ue=u(`
`),de=u(`
,
Notes:
`);function K(u,m){p(m,!0);let h=f(m,`report`,15),_=O(),x=r(()=>j(I(h().food))),w=`https://eatthismuch.groovehq.com/tickets/new?`+new URLSearchParams({expand:`true`,to:h().reporting_user_email,subject:`Your food report`});async function T(){await D(null,h().resource_uri,{reviewed:!0}),h(h().reviewed=!0,!0)}async function k(e){let t=e.currentTarget.value;t!==(h().review_notes??``)&&(await D(null,h().resource_uri,{review_notes:t}),h(h().review_notes=t,!0))}let M={[F.BRANDED_FOOD]:`Branded`,[F.CUSTOM_FOOD]:`Custom`,[F.NUTRITIONIX_BRANDED_FOOD]:`Nutritionix`,[F.NUTRITIONIX_RESTAURANT_FOOD]:`Nutritionix`,[F.RECIPE]:`Recipe`,[F.RESTAURANT_FOOD]:`Restaurant`,[F.TRACKING]:`Tracking (Error!)`,[F.USDA_BRANDED_FOOD]:`USDA`,[F.USDA_FOOD]:`USDA`};var N=d(),P=v(N),z=u=>{var d=de();let f;var p=c(d),v=c(p),S=c(v),D=c(S,!0);g(S),g(v);var O=t(v,2),j=e=>{var t=se(),n=c(t,!0);g(t),i(()=>o(n,y(x).description)),a(e,t)};l(O,e=>{y(x).description&&e(j)});var N=t(O,2),P=c(N);g(N),g(p);var F=t(p,2),I=e=>{var t=le();E(t,21,()=>y(x).images,n,(e,t)=>{var n=ce();i(()=>C(n,`src`,`/media/images/${y(t).medium_image??``}`)),a(e,n)}),g(t),a(e,t)};l(F,e=>{var t;(t=y(x).images)!=null&&t.length&&e(I)});var z=t(F,2),B=c(z),V=c(B,!0);g(B);var H=t(B,2),U=e=>{var t=ue(),n=c(t,!0);g(t),i(()=>o(n,h().custom_reason)),a(e,t)};l(H,e=>{h().custom_reason&&e(U)});var W=t(H,2),G=c(W),K=c(G),q=c(K,!0);g(K),g(G);var J=t(G,2),Y=c(J,!0);g(J),g(W),g(z);var X=t(z,2),Z=c(X),fe=t(c(Z),2);{let e=r(()=>h().review_notes??``);ae(fe,{full_width:!0,get id(){return`review_notes_${h().id??``}`},name:`review_notes`,placeholder:`Notes...`,get value(){return y(e)},onchange:k})}g(Z),g(X);var Q=t(X,2),$=c(Q);A($,{style:`secondary`,onclick:T,children:(t,n)=>{b();var r=e(`Mark as Reviewed`);a(t,r)},$$slots:{default:!0}});var pe=t($,2),me=t=>{{let n=r(()=>encodeURIComponent(`id=${y(x).id}`));A(t,{get href(){return`/admin/images/?q=${y(n)??``}`},children:(t,n)=>{b();var r=e(`Review Images`);a(t,r)},$$slots:{default:!0}})}};l(pe,e=>{h().preset_reasons===10&&e(me)}),g(Q),g(d),i((e,t,n)=>{f=ee(d,1,`svelte-nal4a6`,null,f,{first:m.index===0}),C(S,`href`,e),o(D,y(x).food_name),o(P,`Source: ${M[y(x).model]??``}`),o(V,t),C(K,`href`,w),o(q,h().reporting_user_username),C(J,`datetime`,h().date),o(Y,n)},[()=>ne(_,`/food/${y(x).id}`),()=>re.get(h().preset_reasons),()=>L(R(h().date))]),te(`click`,S,e=>{e.preventDefault(),oe({type:`FOOD`,food_uri:y(x).resource_uri})}),s(2,d,()=>ie),a(u,d)};l(P,e=>{y(x)&&h().reviewed===!1&&e(z)}),a(u,N),S()}m([`click`]);var q=u(` `),J=u(`No reports to review.
`),Y=u(` `,1);function X(n,r){p(r,!0),B(n,{narrow:!0,placeholder:e=>{var t=q();h(t,()=>({alt:``,...N}),void 0,void 0,void 0,`svelte-12g2htu`),_(t),a(e,t)},routing:(e,t=w)=>{var n=d(),r=v(n),i=e=>{H(e,x(t))};l(r,e=>{t().type===`FOOD`&&e(i)}),a(e,n)},children:(n,i)=>{var o=Y(),s=v(o);z(s,{title:`Food Reports`,children:(t,n)=>{var i=d(),o=v(i),s=t=>{A(t,{active:!0,href:window.location.pathname,children:(t,n)=>{b();var r=e(`Recipes`);a(t,r)},$$slots:{default:!0}})},c=t=>{A(t,{href:`${window.location.pathname??``}?recipes`,children:(t,n)=>{b();var r=e(`Recipes`);a(t,r)},$$slots:{default:!0}})};l(o,e=>{r.data.only_recipes?e(s):e(c,-1)}),a(t,i)},$$slots:{default:!0}});var c=t(s,2);M(c,{collapse:!0,children:(e,t)=>{var n=d(),i=v(n);E(i,19,()=>r.data.reports,e=>e.resource_uri,(e,t,n)=>{P(e,{children:(e,r)=>{K(e,{get report(){return y(t)},get index(){return y(n)}})},$$slots:{default:!0}})},e=>{var t=J();a(e,t)}),a(e,n)},$$slots:{default:!0}}),a(n,o)},$$slots:{placeholder:!0,routing:!0,default:!0}}),S()}export{X as component,U as universal};
+//# sourceMappingURL=69.CXVp8q7F.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/70.C9zhgqTI.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/70.C9zhgqTI.js
new file mode 100644
index 0000000000000000000000000000000000000000..e169d2621e4427b1354d4cf5ee3dcc5f5bfff3a1
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/70.C9zhgqTI.js
@@ -0,0 +1,2 @@
+import{c as e,cn as t,sn as n}from"../chunks/BhSt9sSe.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{n as r}from"../chunks/B1cT_TaC2.js";import{i}from"../chunks/DRq5eja-.js";import{t as a}from"../chunks/D43B57zC.js";function o(o,s){t(s,!1),e(),a(o,{saved_plans:()=>r(i()),show_owner:!0,title:`All Saved Plans`}),n()}export{o as component};
+//# sourceMappingURL=70.C9zhgqTI.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/71.C1bR4NcU.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/71.C1bR4NcU.js
new file mode 100644
index 0000000000000000000000000000000000000000..340851d3c58a792637b25d6a89041e514d16041a
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/71.C1bR4NcU.js
@@ -0,0 +1,14 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,I as a,J as o,K as s,Lt as c,Ot as l,R as u,U as d,X as f,Y as p,cn as m,g as h,hn as g,it as _,j as v,kt as y,lt as b,mn as x,sn as S,vn as C,xn as w,z as T}from"../chunks/BhSt9sSe.js";import{r as E}from"../chunks/C8UWmKFm.js";import{C as D,Et as O,Ot as k,S as A,Tt as j,at as M,d as N,i as P,j as F,o as I,r as L,xt as R,y as z}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as B}from"../chunks/CyviYcci.js";import{t as V}from"../chunks/BpQEveid.js";import{t as H}from"../chunks/Sb52OVMz.js";import{t as U}from"../chunks/CqYOJzvT.js";import{n as ee,t as te}from"../chunks/C-HdF7GT.js";import{t as ne}from"../chunks/DJdf7xnK.js";import{t as W}from"../chunks/BON7-EQG2.js";import{n as G}from"../chunks/B1cT_TaC2.js";import{t as re}from"../chunks/B-CQW_E02.js";import{n as ie}from"../chunks/D2IZisAi2.js";import{t as ae}from"../chunks/CLTyeLEa.js";import{t as oe}from"../chunks/C8xjeFj8.js";import{t as K}from"../chunks/YJGvmxuv.js";import{t as se}from"../chunks/CwXwk9tw.js";import{t as q}from"../chunks/aovk0dHP.js";import{t as ce}from"../chunks/CMlJSk1P.js";import{n as le,r as ue}from"../chunks/xbhHVLuF.js";import{t as de}from"../chunks/DZzYSFS5.js";import{l as fe,t as pe}from"../chunks/BtqPi__O.js";import{t as me}from"../chunks/DNDaYjwu.js";import{t as he}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{n as ge,t as _e}from"../chunks/75oOzRea2.js";import{t as ve}from"../chunks/BrfbP0yE2.js";import{t as ye}from"../chunks/BN66IXsU.js";import{t as J}from"../chunks/D7mLfM7M.js";import{t as Y}from"../chunks/Cb0T7gAr.js";import{n as be,t as X}from"../chunks/B6U_NVjb.js";import{t as xe}from"../chunks/C2uIn59-.js";import{t as Se}from"../chunks/B4UD6C5h.js";import{t as Ce}from"../chunks/DqlcaBOi.js";import{r as Z,t as we}from"../chunks/BP7lrNzK.js";var Te=` `,Q=N(`managedaccount`,`2023-05-17`,{async fetchAll(e,t){return A(e,`${t}?manager_approved=false`)}}),$=Q.getAll;async function Ee(e){let t=F();await Q.deleteOne(t,e.resource_uri,async()=>{await D(t,e.resource_uri,{manager_approved:!0}),await I.create(t,()=>A(null,`/api/v1/userv2/${e.client_id}/`))})}var De=Q.deleteOne,Oe=w({load:()=>ke});async function ke(){let e=F();return me(()=>ue(),()=>$(e))}var Ae=f(``),je=f(` `,1),Me=f(`
`,1);function Ne(e,r){m(r,!0);let a=c(!1),s=c(!1),u=pe.today(),d=n(()=>fe(r.user,u)),f=n(()=>b(d).start),p=n(()=>b(d).end);function h(){J({action:`Remove`,content:`This will remove this managed user and they will no longer
+have access to Eat This Much Premium unless they subscribe themselves.
+You can reconnect their account later if you need to.`,title:`Remove ${L(r.user)}?`,async onconfirm(){if(await le(r.user),r.user.id.toString()===B.params.user_id){let e=window.location.toString().replace(`/${r.user.id}`,``);await E(e)}}})}var _=Me(),v=y(_),x=l(v);M(x,{breadcrumb:!0,get href(){return`/client/${r.user.id??``}`},icon_only:!0,get icon(){return H},label:`Edit`,style:`none`});var C=t(x,2);be(C,{children:(e,c)=>{var u=Ae(),d=l(u);{let e=n(()=>j(r.user.id,`/planner`));X(d,{get icon(){return Te},label:`Manage user`,get href(){return b(e)}})}var f=t(d,2);X(f,{get icon(){return U},label:`Mail meal plan`,onclick:()=>i(a,!0)});var p=t(f,2);X(p,{get icon(){return ne},label:`Load saved plan`,onclick:()=>i(s,!0)});var m=t(p,2);X(m,{start_group:!0,get icon(){return V},label:`Remove client`,onclick:h}),g(u),o(e,u)},$$slots:{default:!0}}),g(v);var w=t(v,2);O(w,{get user(){return r.user},children:(e,n)=>{var r=je(),c=y(r);Ce(c,{get start(){return b(f)},get end(){return b(p)},get open(){return b(a)},set open(e){i(a,e,!0)}});var l=t(c,2);ve(l,{title:`Load Saved Plan`,get open(){return b(s)},set open(e){i(s,e,!0)},children:(e,t)=>{Se(e,{allow_select:!0,get start(){return u}})},$$slots:{default:!0}}),o(e,r)},$$slots:{default:!0}}),o(e,_),S()}var Pe=f(`
`),Fe=f(`
`);function Ie(i,a){m(a,!0);let c=n(()=>a.user.id===F());function u(e){let t=new Date,n=t.getTime()-e.getTime(),r=Math.floor(n/864e5);if(r===0)return`today`;if(r===1)return`yesterday`;if(r<7)return`${r} days ago`;if(r<14)return`last week`;if(r<32)return`${Math.floor(r/7)} weeks ago`;let i=(t.getFullYear()-e.getFullYear())*12+t.getMonth()-e.getMonth();return i===1?`last month`:i<12?`${i} months ago`:i>=12&&i<24?`last year`:`${Math.floor(i/12)} years ago`}var f=Fe(),p=l(f),h=l(p);ce(h,{get user(){return a.user}}),g(p);var _=t(p,2),v=l(_),y=l(v);{let t=n(()=>j(a.user.id,`/planner`));R(y,{get href(){return b(t)},children:(t,n)=>{x();var i=e();r(e=>s(i,e),[()=>L(a.user)]),o(t,i)},$$slots:{default:!0}})}g(v);var C=t(v,2),w=l(C),T=t=>{var n=e(`Your Account`);o(t,n)},E=t=>{var n=e();r(()=>s(n,a.user.email)),o(t,n)};d(w,e=>{b(c)?e(T):e(E,-1)}),g(C);var D=t(C,2),O=e=>{var t=Pe(),n=l(t);g(t),r(e=>s(n,`Active ${e??``}`),[()=>u(new Date(a.user.last_use_time))]),o(e,t)};d(D,e=>{a.user.last_use_time&&e(O)}),g(_);var k=t(_,2),A=l(k),M=e=>{Ne(e,{get user(){return a.user}})};d(A,e=>{b(c)||e(M)}),g(k),g(f),o(i,f),S()}var Le=`
+
+
+`,Re=f(` `,1),ze=f(`
`,1),Be=f(`
`),Ve=f(`Pending Requests Current Clients `,1);function He(e,i){m(i,!0);let a=F(),c=n(()=>G($(a)));function u(e){J({action:`Deny`,icon:Z,onconfirm(){return De(a,e)},title:`Deny ${e.client_full_name}`})}var f=p(),h=y(f),_=e=>{var n=Ve(),i=t(y(n),2);q(i,{list:!0,children:(e,n)=>{var i=p(),a=y(i);T(a,25,()=>b(c),e=>e.resource_uri,(e,n)=>{var i=Be(),a=l(i);xe(a,{actions:e=>{var r=Re(),i=y(r);M(i,{icon_only:!0,get icon(){return Le},onclick:()=>Ee(b(n)),label:`Approve`,style:`none`});var a=t(i,2);M(a,{icon_only:!0,get icon(){return Z},onclick:()=>u(b(n)),label:`Deny`,style:`none`}),o(e,r)},children:(e,i)=>{var a=ze(),c=y(a),u=l(c,!0);g(c);var d=t(c,2),f=l(d,!0);g(d);var p=t(d,2),m=l(p,!0);g(p),r(()=>{s(u,b(n).client_full_name),s(f,b(n).client_username),s(m,b(n).client_email)}),o(e,a)},$$slots:{actions:!0,default:!0}}),g(i),v(i,()=>ie,null),o(e,i)}),o(e,i)},$$slots:{default:!0}}),x(2),o(e,n)};d(h,e=>{var t;(t=b(c))!=null&&t.length&&e(_)}),o(e,f),S()}var Ue=f(` `,1),We=f(` `,1);function Ge(i,c){m(c,!0);var u=p(),f=y(u),h=n=>{ge(n,{get close(){return c.close},children:(n,i)=>{var l=Ue(),u=y(l);_e(u,{children:(t,n)=>{x();var i=e();r(()=>s(i,c.title)),o(t,i)},$$slots:{default:!0}});var d=t(u,2);a(d,()=>c.children??C),o(n,l)},$$slots:{default:!0}})},_=n(()=>K()),v=e=>{se(e,{get close(){return c.close},children:(e,n)=>{var i=We(),u=y(i),d=l(u,!0);g(u);var f=t(u,2);a(f,()=>c.children??C),r(()=>s(d,c.title)),o(e,i)},$$slots:{default:!0}})};d(f,e=>{b(_)?e(h):e(v,-1)}),o(i,u),S()}var Ke=oe(`walkthrough`,`2023-05-17`);function qe(e=F()){return Ke.getOne(e)}var Je=Ke.update,Ye=f(`Here are some tips to get you started as a Professional user:
`),Xe=f(`Here are some key differences from the old Professional interface:
`),Ze=f(`Use the Create User button in the top right to add your first client. Your personal profile can be accessed from the client list (labeled Your Account ). You can use it for experimentation, or for
+ planning your own meals. This doesn't count against your client limit. Recipes, foods, and collections that are on your personal profile can
+ be accessed by all of your clients. `,1),Qe=f(`This new interface is much more mobile and touch friendly. Try it out
+ on your phone or tablet! `),$e=f(` `,1),et=f(` Hit the button in the to open the main menu. There you'll find all your clients, saved plans,
+ and preferences for the client you're currently viewing. You can quickly switch between clients in the menu bar! The button Planner will display the current user you're viewing and editing,
+ and let you switch between them. Alternatively, just click the client's
+ name in your main Clients page. Looking for more in-depth guidance?
`,1);function tt(r,a){m(a,!0);let s=k(),f=n(()=>G(P(s))),v=c(!1),C;z(()=>qe()).then(e=>{var t;C=e,i(v,!((t=e.desktop)!=null&&t.seen_pro_intro_modal))});let w=new Date(`2023-09-19T00:00:00+0000`),T=n(()=>!b(f)||new Date(b(f).date_joined)>w);function E(){if(i(v,!1),!C)throw TypeError();Je(C.resource_uri,{desktop:{...C.desktop,seen_pro_intro_modal:!0}})}var D=p(),O=y(D),A=r=>{{let i=n(()=>b(T)?`Welcome!`:`Welcome to the new Eat This Much!`);Ge(r,{close:E,get title(){return b(i)},children:(r,i)=>{var a=et(),s=y(a),c=e=>{var t=Ye();o(e,t)},f=e=>{var t=Xe();o(e,t)};d(s,e=>{b(T)?e(c):e(f,-1)});var p=t(s,2),m=l(p),v=t(l(m));u(v,()=>ee,!0),g(v);var S=t(v,2),C=t=>{var n=e(`top left corner`);o(t,n)},w=n(()=>K()),D=t=>{var n=e(`bottom right`);o(t,n)};d(S,e=>{b(w)?e(C):e(D,-1)}),x(),g(m);var O=t(m,2),k=e=>{var n=Ze(),r=y(n),i=t(l(r)),a=l(i);u(a,()=>W),x(),g(i),x(),g(r),x(4),o(e,n)};d(O,e=>{b(T)&&e(k)});var A=t(O,2),j=t(l(A)),N=t=>{var n=e(`right above`);o(t,n)},P=n(()=>K()),F=t=>{var n=e(`to the left of`);o(t,n)};d(j,e=>{b(P)?e(N):e(F,-1)}),x(5),g(A);var I=t(A,2),L=e=>{var t=Qe();o(e,t)},R=n(()=>!b(T)&&K());d(I,e=>{b(R)&&e(L)}),g(p);var z=t(p,4),B=l(z);q(B,{list:!0,children:(n,r)=>{var i=$e(),a=y(i);Y(a,{external:!0,title:`Video Tutorials`,href:`https://www.youtube.com/playlist?list=PLoodCtaVlnT_g0VZNgH6W78KWqtlHKqyY`,children:(t,n)=>{x();var r=e(`Check out our video series on making the most of your Pro account.`);o(t,r)},$$slots:{default:!0}});var s=t(a,2);Y(s,{external:!0,title:`Pro Knowledge Base`,href:`https://help.eatthismuch.com/help/etm-professional`,children:(t,n)=>{x();var r=e(`Written articles on using various features of the Pro interface with
+ your clients.`);o(t,r)},$$slots:{default:!0}}),o(n,i)},$$slots:{default:!0}}),g(z);var V=t(z,2);h(V,()=>({alt:``,...de}),void 0,void 0,void 0,`svelte-1llin4b`);var H=t(V,2);ye(H,{children:(t,n)=>{M(t,{style:`primary`,onclick:E,children:(t,n)=>{x();var r=e(`Continue`);o(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),_(V),o(r,a)},$$slots:{default:!0}})}};d(O,e=>{b(v)&&e(A)}),o(r,D),S()}var nt=f(`Invite Users `,1),rt=f(` `),it=f(``),at=f(` `,1),ot=f(`
`,1);function st(i,a){m(a,!0);let c=n(()=>G(we()));var u=ot(),f=y(u),h=l(f);he(h,{title:`Manage Clients`,children:(n,i)=>{var u=it(),f=l(u),p=n=>{var i=rt(),a=l(i);M(a,{breadcrumb:!0,href:`/client/invite`,get icon(){return U},children:(n,i)=>{x();var a=nt(),l=t(y(a)),u=t=>{var n=e();r(()=>s(n,`(${b(c).length??``})`)),o(t,n)};d(l,e=>{var t;(t=b(c))!=null&&t.length&&e(u)}),o(n,a)},$$slots:{default:!0}}),g(i),o(n,i)};d(f,e=>{a.data.is_control||e(p)});var m=t(f,2),h=l(m);M(h,{breadcrumb:!0,href:`/client/create`,get icon(){return W},children:(t,n)=>{x();var r=e(`Create User`);o(t,r)},$$slots:{default:!0}}),g(m),g(u),o(n,u)},$$slots:{default:!0}}),g(f);var _=t(f,2);ae(_,{children:(e,n)=>{var r=at(),i=y(r);He(i,{});var a=t(i,2);te(a,{children:(e,t=C)=>{re(e,{collapse:!0,final:!0,children:(e,n)=>{var r=p(),i=y(r);T(i,17,t,e=>e.resource_uri,(e,t)=>{Ie(e,{get user(){return b(t)}})}),o(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),o(e,r)},$$slots:{default:!0}}),tt(t(_,2),{}),o(i,u),S()}export{st as component,Oe as universal};
+//# sourceMappingURL=71.C1bR4NcU.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/75.Cbz6LZ0l.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/75.Cbz6LZ0l.js
new file mode 100644
index 0000000000000000000000000000000000000000..ba667556c8d357f4ede378e416f7a3651c937f68
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/75.Cbz6LZ0l.js
@@ -0,0 +1,5 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,J as a,K as o,Lt as s,Ot as c,U as l,X as u,Y as d,a as f,cn as p,hn as m,j as h,jt as g,kt as _,lt as v,mn as y,sn as b,v as x,z as S}from"../chunks/BhSt9sSe.js";import{g as C}from"../chunks/C8UWmKFm.js";import{E as w,Ot as T,Z as E,at as D,i as O,j as k,nt as ee,xt as A}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as j}from"../chunks/CqYOJzvT.js";import{t as M}from"../chunks/DEgMoMXi.js";import{t as te}from"../chunks/CxRGiBH-2.js";import{n as N}from"../chunks/B1cT_TaC2.js";import{t as ne}from"../chunks/B-CQW_E02.js";import{n as re}from"../chunks/D2IZisAi2.js";import{t as P}from"../chunks/CLTyeLEa.js";import{t as F}from"../chunks/p3gDh4vM.js";import{t as I}from"../chunks/aovk0dHP.js";import{a as L,t as R}from"../chunks/BtqPi__O.js";import{t as z}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{n as B,t as V}from"../chunks/75oOzRea2.js";import{t as H}from"../chunks/FlQAycz02.js";import{t as U}from"../chunks/CfvA40lv.js";import{t as W}from"../chunks/BN66IXsU.js";import{t as G}from"../chunks/C2uIn59-.js";import{n as K,r as q,t as J}from"../chunks/BP7lrNzK.js";import{t as Y}from"../chunks/CP-bvMUT.js";var ie=u(` `),ae=u(`Hi there,
You've been invited to join Eat This Much by
`,1);function oe(n,i){p(i,!0);let s=f(i,`emails`,15),u=F(),d=g({invite_emails:s().split(/\s/).filter(e=>e).join(`
+`),manager_name:i.user.first_name,personal_message_email:``});async function h(){let e=await w(null,`/account-management/invite-users-via-email/`,d);e&&ee(e),s(``),await K(),u()}E(n,{onSubmit:h,children:(n,s)=>{var u=ae(),f=t(_(u),2),p=t(c(f));te(p,{name:`manager_name`,placeholder:`Your name`,get value(){return d.manager_name},set value(e){d.manager_name=e}}),m(f);var h=t(f,2),g=c(h);U(g,{full_width:!0,name:`personal_message_email`,placeholder:`Any personal message you'd like here`,required:!1,get value(){return d.personal_message_email},set value(e){d.personal_message_email=e}}),m(h);var v=t(h,2),b=c(v),S=e=>{var t=ie();r(()=>x(t,`src`,i.user.manager.logo_url)),a(e,t)};l(b,e=>{var t;(t=i.user.manager)!=null&&t.logo_url&&e(S)});var C=t(b);m(v);var w=t(v,2);W(w,{children:(t,n)=>{M(t,{get icon(){return j},children:(t,n)=>{y();var r=e(`Send E-mail`);a(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),r(()=>{var e;return o(C,` ${(((e=i.user.manager)==null?void 0:e.company_name)||``)??``}`)}),a(n,u)},$$slots:{default:!0}}),b()}var se=u(` `),ce=u(` Preview Your E-Mail `,1);function X(i,s){p(s,!0);let u=f(s,`emails`,15),d=f(s,`open`,15);d();let h=u().split(/\s/).filter(e=>e),g=T(),y=n(()=>N(O(g)));B(i,{close:()=>d(!1),children:(n,i)=>{var s=ce(),d=_(s);V(d,{children:(t,n)=>{var i=se(),s=c(i),u=t=>{var n=e();r(()=>o(n,`Invite ${h[0]??``}`)),a(t,n)},d=t=>{var n=e();r(()=>o(n,`Invite ${h.length??``} Clients`)),a(t,n)};l(s,e=>{h.length===1?e(u):e(d,-1)}),m(i),a(t,i)},$$slots:{default:!0}});var f=t(d,4),p=e=>{oe(e,{get user(){return v(y)},get emails(){return u()},set emails(e){u(e)}})};l(f,e=>{v(y)&&e(p)}),a(n,s)},$$slots:{default:!0}}),b()}var le=u(`Invite By E-mail Enter multiple emails to invite users to connect their account to yours.
+ Enter each email on a new line.
`,1),ue=u(` `,1);function de(n){let r=s(``),o=s(!1);function u(){i(o,!0)}var d=ue(),f=_(d);E(f,{onSubmit:u,children:(n,o)=>{var s=le(),l=t(_(s),2),u=t(c(l),2);U(u,{name:`invite_emails`,placeholder:`example@domain.com`,get value(){return v(r)},set value(e){i(r,e,!0)}}),m(l);var d=t(l,2),f=c(d);M(f,{get icon(){return j},children:(t,n)=>{y();var r=e(`Preview E-Mail`);a(t,r)},$$slots:{default:!0}}),m(d),a(n,s)},$$slots:{default:!0}});var p=t(f,2),h=e=>{X(e,{get emails(){return v(r)},set emails(e){i(r,e,!0)},get open(){return v(o)},set open(e){i(o,e,!0)}})};l(p,e=>{v(o)&&e(h)}),a(n,d)}var fe=u(`Share Your Link When visiting this url, users will be prompted to connect their account to
+ yours. For your protection, you must confirm accounts via your before they will be linked.
`,1);function pe(r,i){p(i,!0);let o=k(),s=n(()=>N(O(o))),l=n(()=>{var e;let t=C(`/connect/${(e=v(s))==null?void 0:e.username}/join`);return new URL(t,location.href).toString()});var u=fe(),d=t(_(u),2),f=t(c(d));A(f,{href:`/client`,children:(t,n)=>{y();var r=e(`Client Dashboard`);a(t,r)},$$slots:{default:!0}}),y(),m(d);var h=t(d,2),g=c(h);H(g,{get value(){return v(l)}}),m(h),a(r,u),b()}var Z=u(` `,1),me=u(`
`,1);function Q(e,n){p(n,!0);let u=s(!1);async function d(){await w(null,`/account-management/delete-invited-users/`,{ids:JSON.stringify([n.invite.id])}),await K()}function f(){i(u,!0)}function h(e){let[t,n,r]=e.last_invite_date.split(`-`),i=2e3+parseInt(r,10),a=parseInt(t,10)-1,o=new Date(i,a,parseInt(n,10)),s=R(o);return L(s)}var g=Z(),y=_(g);G(y,{actions:e=>{var n=Z(),r=_(n);D(r,{get icon(){return j},icon_only:!0,onclick:f,label:`Resend Invite`,style:`none`});var i=t(r,2);D(i,{get icon(){return q},icon_only:!0,onclick:d,label:`Delete Invite`,style:`none`}),a(e,n)},children:(e,i)=>{var s=me(),l=_(s),u=c(l,!0);m(l);var d=t(l,2),f=c(d,!0);m(d),r(e=>{o(u,n.invite.invited_email),o(f,e)},[()=>h(n.invite)]),a(e,s)},$$slots:{actions:!0,default:!0}});var x=t(y,2),S=e=>{X(e,{get emails(){return n.invite.invited_email},get open(){return v(u)},set open(e){i(u,e,!0)}})};l(x,e=>{v(u)&&e(S)}),a(e,g),b()}var he=u(`
`),ge=u(`Invited Users `,1);function _e(e,r){p(r,!0);let i=n(()=>N(J()));var o=d(),s=_(o),u=e=>{var n=ge(),r=t(_(n),2);I(r,{list:!0,children:(e,t)=>{var n=d(),r=_(n);S(r,25,()=>v(i),e=>e.resource_uri,(e,t)=>{var n=he();Q(c(n),{get invite(){return v(t)}}),m(n),h(n,()=>re,null),a(e,n)}),a(e,n)},$$slots:{default:!0}}),a(e,n)};l(s,e=>{var t;(t=v(i))!=null&&t.length&&e(u)}),a(e,o),b()}var $=u(``),ve=u(` `,1),ye=u(` `,1);function be(e){var n=ye(),r=_(n);z(r,{back:`/client`,title:`Invite Users`});var i=t(r,2);Y(i,{children:(e,n)=>{ne(e,{collapse:!0,final:!0,children:(e,n)=>{var r=ve(),i=_(r);P(i,{children:(e,t)=>{var n=$();pe(c(n),{}),m(n),a(e,n)},$$slots:{default:!0}});var o=t(i,2);P(o,{children:(e,t)=>{var n=$();de(c(n),{}),m(n),a(e,n)},$$slots:{default:!0}});var s=t(o,2);P(s,{children:(e,t)=>{var n=$();_e(c(n),{}),m(n),a(e,n)},$$slots:{default:!0}}),a(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),a(e,n)}export{be as component};
+//# sourceMappingURL=75.Cbz6LZ0l.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/76.Ba0zq1f-.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/76.Ba0zq1f-.js
new file mode 100644
index 0000000000000000000000000000000000000000..b73cdfb4e01a9f85deadc5549c3e354b439d1a5e
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/76.Ba0zq1f-.js
@@ -0,0 +1,5 @@
+import{$ as e,At as t,B as n,Bt as r,Ct as i,E as a,Ft as o,J as s,K as c,Lt as l,Ot as u,Qt as d,T as f,U as p,X as m,Xt as h,Y as g,Zt as _,cn as v,en as y,et as b,hn as x,kt as S,lt as C,mn as w,sn as T,tt as E,v as D,xn as O,z as k}from"../chunks/BhSt9sSe.js";import{F as A,K as ee,Ot as j,Tt as M,W as N,_t as P,at as te,d as ne,i as re,it as ie,r as F,wt as ae,xt as oe}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as I}from"../chunks/BBbGtOhS.js";import{t as L}from"../chunks/BTw3_Nuu2.js";import{n as R,r as z,t as B}from"../chunks/Bn5_FCYL2.js";import{t as V}from"../chunks/DvtZBUMh2.js";import{n as H}from"../chunks/B1cT_TaC2.js";import{t as U}from"../chunks/B-CQW_E02.js";import{t as W}from"../chunks/CPGReOo72.js";import{t as G}from"../chunks/CLTyeLEa.js";import{t as K}from"../chunks/aovk0dHP.js";import{t as q}from"../chunks/KSgUzsPF.js";import{s as se}from"../chunks/Cer-cfCG.js";import{t as ce}from"../chunks/DNDaYjwu.js";import{t as le}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{l as J,s as Y}from"../chunks/CqbnryEZ.js";import{t as ue}from"../chunks/DMgj-NiU.js";import{r as de,t as fe}from"../chunks/Bgsw_2hE.js";var pe=O({load:()=>me});async function me({parent:e}){let{user:t}=await e();await ce(()=>Y(t.id))}var he=m(` `);function X(e,t){v(t,!0);var n=he(),r=u(n,!0);x(n),i(e=>{D(n,`aria-label`,e),c(r,t.collection.num_foods)},[()=>L(t.collection.num_foods,`item`)]),s(e,n),T()}var ge=m(`
`),_e=m(`No results matched your search.
`),ve=m(` `),ye=m(``);function Z(e,o){v(o,!0);let l=r(()=>o.filter(o.collections)),d=j();var m=g(),h=S(m),_=e=>{var t=ge(),n=u(t,!0);x(t),i(()=>c(n,o.empty_message)),s(e,t)},y=e=>{var t=_e();s(e,t)},b=e=>{var o=ye();k(o,21,()=>C(l),n,(e,n)=>{let o=r(()=>M(d,`/collection/${C(n).secret_url}`));var l=ve(),p=u(l),m=u(p),h=t(m);X(t(h),{get collection(){return C(n)}}),x(p),x(l),i(e=>{f(p,1,a(P),`svelte-p98357`),D(p,`href`,C(o)),D(m,`src`,e),c(h,` ${C(n).title??``} `)},[()=>J(C(n))]),E(`click`,p,e=>{e.ctrlKey||e.metaKey||(e.preventDefault(),ae(C(o)))}),s(e,l)}),x(o),s(e,o)};p(h,e=>{var t,n;(t=o.collections)!=null&&t.length?(n=C(l))!=null&&n.length?e(b,-1):e(y,1):e(_)}),s(e,m),T()}b([`click`]);var be=m(`Your Collections `,1);function xe(e,n){v(n,!0);let i=j(),a=r(()=>H(Y(i)));var o=be();Z(t(S(o),2),{get collections(){return C(a)},get filter(){return n.filter},empty_message:`You have not created any Collections yet.`}),s(e,o),T()}var Se=ne(`featuredfoodcollection`,`2022-05-17`).getAll,Ce=m(`There are currently no featured collections.
`),we=m(`No results matched your search.
`),Te=m(` `),Ee=m(`
`),De=m(` `,1),Oe=m(`Featured Collections `,1);function Q(a,o){v(o,!0);let l=j(),d=r(()=>H(Se(l))),f=r(()=>o.filter(C(d)));var m=Oe(),h=t(S(m),2),_=e=>{var t=Ce();s(e,t)},y=e=>{var t=we();s(e,t)},b=r=>{K(r,{list:!0,children:(r,a)=>{var o=g(),l=S(o);k(l,17,()=>C(f),n,(n,r)=>{q(n,{image:e=>{var t=Te();i(e=>D(t,`src`,e),[()=>J(C(r))]),s(e,t)},children:(n,a)=>{var o=De(),l=S(o),d=u(l),f=u(d);oe(f,{breadcrumb:!0,get href(){return`/collection/${C(r).secret_url??``}`},children:(t,n)=>{w();var a=e();i(()=>c(a,C(r).title)),s(t,a)},$$slots:{default:!0}}),x(d),X(t(d,2),{get collection(){return C(r)}}),x(l);var m=t(l,2),h=e=>{var t=Ee(),n=u(t,!0);x(t),i(()=>c(n,C(r).description)),s(e,t)};p(m,e=>{C(r).description&&e(h)}),s(n,o)},$$slots:{image:!0,default:!0}})}),s(r,o)},$$slots:{default:!0}})};p(h,e=>{var t,n;(t=C(d))!=null&&t.length?(n=C(f))!=null&&n.length?e(b,-1):e(y,1):e(_)}),s(a,m),T()}var ke=m(`By following a Collection, its foods will show up more prominently in
+ search results. You can also add them as "Recurring Collections" in your
+ Meal Settings, and the Planner will put more priority in using those
+ foods.
`),Ae=m(` `,1);function je(e,n){v(n,!0);let i=j(),a=r(()=>H(de(i))),c=l(!1);var d=Ae(),f=S(d),m=t(u(f),2);ie(m,{get icon(){return V},label:`Help`,onclick:()=>o(c,!0)}),x(f);var h=t(f,2),g=e=>{W(e,{action:null,title:`Followed Collections`,onclose:()=>o(c,!1),children:(e,t)=>{var n=ke();s(e,n)},$$slots:{default:!0}})};p(h,e=>{C(c)&&e(g)}),Z(t(h,2),{get collections(){return C(a)},empty_message:`You are not following any Collections.`,get filter(){return n.filter}}),s(e,d),T()}var Me=m(`Manager Collections `,1);function Ne(e,n){v(n,!0);let i=j(),a=r(()=>H(fe(i)));var o=g(),c=S(o),l=e=>{var r=Me();Z(t(S(r),2),{get collections(){return C(a)},empty_message:`Your manager has not created any Collections yet.`,get filter(){return n.filter}}),s(e,r)};p(c,e=>{var t;(t=C(a))!=null&&t.length&&e(l)}),s(e,o),T()}var Pe=m(` `,1),Fe=m(``);function Ie(a,o){v(o,!0);let l=r(()=>H(se())),d=j();var f=g(),m=S(f),h=a=>{var f=Fe(),m=t(u(f),2);k(m,17,()=>C(l),n,(n,a)=>{var l=g(),f=S(l),m=n=>{B(n,{open:!0,children:(n,l)=>{var d=Pe(),f=S(d),p=u(f);z(p,{children:(t,n)=>{w();var r=e();i(e=>c(r,`${e??``}'s Collections`),[()=>F(C(a))]),s(t,r)},$$slots:{default:!0}}),x(f);var m=t(f,2);R(m,{children:(e,t)=>{G(e,{children:e=>{let t=r(()=>H(Y(C(a).id)));{let n=r(()=>F(C(a)));Z(e,{get collections(){return C(t)},get empty_message(){return`${C(n)??``} is not following any Collections.`},get filter(){return o.filter}})}},$$slots:{default:!0}})},$$slots:{default:!0}}),s(n,d)},$$slots:{default:!0}})};p(f,e=>{C(a).id!==d&&e(m)}),s(n,l)}),x(f),s(a,f)};p(m,e=>{C(l)&&C(l).length>1&&e(h)}),s(a,f),T()}function $(e,t){return function(n){if(!n)return;let r=e.toLowerCase().split(/\s+/),i=e?n.filter(e=>r.every(t=>e.title.toLowerCase().includes(t))):[...n];return t===`date_created`?i.sort((e,t)=>t.created.localeCompare(e.created)):t===`title`&&i.sort((e,t)=>e.title.localeCompare(t.title)),i}}var Le=m(``),Re=m(` `,1),ze=m(` `,1);function Be(n,i){v(i,!0);let a=()=>d(g,`$sort_by`,c),[c,f]=_(),m=l(``),g=ee(N.COLLECTIONS.SORT,`title`),b=j(),E=r(()=>H(re(b))),D=r(()=>$(C(m),a()));var O=ze(),k=S(O);le(k,{title:`Collections`,children:(t,n)=>{te(t,{breadcrumb:!0,href:`/collection/create`,get icon(){return I},style:`secondary`,children:(t,n)=>{w();var r=e(`Create`);s(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var M=t(k,2);ue(M,{options:new Map([[`title`,`Name`],[`date_created`,`Recent`]]),get query(){return C(m)},set query(e){o(m,e,!0)},get sort_by(){return h(),a()},set sort_by(e){y(g,e)}});var P=t(M,2);U(P,{collapse:!0,children:(e,n)=>{var i=Re(),a=S(i),o=u(a);G(o,{children:(e,t)=>{xe(e,{get filter(){return C(D)}})},$$slots:{default:!0}}),x(a);var c=t(a,2),l=e=>{var t=Le(),n=u(t);G(n,{children:(e,t)=>{Ne(e,{get filter(){return C(D)}})},$$slots:{default:!0}}),x(t),s(e,t)};p(c,e=>{var t;(t=C(E))!=null&&t.is_managed&&e(l)});var d=t(c,2),f=u(d);G(f,{children:(e,t)=>{je(e,{get filter(){return C(D)}})},$$slots:{default:!0}}),x(d);var h=t(d,2),g=e=>{G(e,{children:(e,t)=>{Ie(e,{get filter(){return C(D)}})},$$slots:{default:!0}})},_=r(()=>A());p(h,e=>{C(_)&&e(g)});var v=t(h,2),y=u(v);G(y,{children:(e,t)=>{{let t=r(()=>$(C(m),null));Q(e,{get filter(){return C(t)}})}},$$slots:{default:!0}}),x(v),s(e,i)},$$slots:{default:!0}}),s(n,O),T(),f()}export{Be as component,pe as universal};
+//# sourceMappingURL=76.Ba0zq1f-.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/77.D73bcRze.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/77.D73bcRze.js
new file mode 100644
index 0000000000000000000000000000000000000000..c713d86620f84d1b61fab81ee59b20ae82cf750e
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/77.D73bcRze.js
@@ -0,0 +1,5 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,J as a,K as o,Lt as s,Ot as c,U as l,X as u,Y as d,a as f,cn as p,g as m,hn as h,it as g,jt as _,kt as v,lt as y,mn as b,s as x,sn as S,v as C,vn as w,xn as T,z as E}from"../chunks/BhSt9sSe.js";import{M as ee,Ot as D,Tt as te,Z as O,at as k,b as A,i as j,it as ne}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as M}from"../chunks/BBbGtOhS.js";import{t as re}from"../chunks/CjGE1_hi.js";import{t as N}from"../chunks/BpQEveid.js";import{t as ie}from"../chunks/Sb52OVMz.js";import{r as ae,t as oe}from"../chunks/BLz2WXeC.js";import{t as P}from"../chunks/BuZOCL6G.js";import{t as F}from"../chunks/DEgMoMXi.js";import{i as se,n as ce}from"../chunks/CxRGiBH-2.js";import{t as le}from"../chunks/CWh68Btn2.js";import{n as I}from"../chunks/B1cT_TaC2.js";import{t as ue}from"../chunks/B-CQW_E02.js";import{t as de}from"../chunks/C2as7BOF.js";import{t as L}from"../chunks/CLTyeLEa.js";import{n as fe}from"../chunks/COwaMya3.js";import{n as R}from"../chunks/B19gMY7G.js";import{n as z}from"../chunks/C2PzE5jE.js";import{N as B}from"../chunks/Cer-cfCG.js";import{t as V}from"../chunks/DNDaYjwu.js";import{t as pe}from"../chunks/mRJ-UFmt.js";import{t as me}from"../chunks/BeWss_qm.js";import{n as he,t as ge}from"../chunks/BZQKY5H72.js";import{t as _e}from"../chunks/BC4LLrwJ.js";import{t as ve}from"../chunks/QqnK60GX.js";import{t as ye}from"../chunks/D7mLfM7M.js";import{n as be,t as H}from"../chunks/B6U_NVjb.js";import{t as xe}from"../chunks/DezUpAoa.js";import{a as Se,o as Ce}from"../chunks/CYGTaWAz2.js";import{t as we}from"../chunks/C_E3KHg-2.js";import{t as Te}from"../chunks/CUlQONZr2.js";import{t as Ee}from"../chunks/mqmQrvC72.js";import{n as De,t as Oe}from"../chunks/DzZQFndg.js";import{t as U}from"../chunks/B3u-DD2v.js";import{c as W,d as ke,i as Ae,l as G,n as K,o as je,r as Me,t as Ne,u as Pe}from"../chunks/CqbnryEZ.js";import{i as q,n as Fe,t as Ie}from"../chunks/B1DDWD9B.js";import{t as Le}from"../chunks/DMgj-NiU.js";import{a as Re,i as ze,n as Be}from"../chunks/Bgsw_2hE.js";import{t as Ve}from"../chunks/TAoLre2b.js";import{t as He}from"../chunks/CJ0y2QtP.js";import{a as Ue,i as We,n as Ge,r as Ke,t as qe}from"../chunks/z0YszRDZ.js";import{t as Je}from"../chunks/B681WsDr.js";var Ye=T({load:()=>Xe});async function Xe({params:e,parent:t}){let{user:n}=await t(),r=e.secret_url;return await V(()=>W(n.id,r)),{collection_id:r}}var Ze=`
+
+
+`;function Qe(t,i){p(i,!0);let s=D(),c=n(()=>I(ze(s,i.collection.resource_uri)));async function l(){y(c)?await Re(s,y(c)):await Be(s,i.collection)}{let i=n(()=>!y(c));k(t,{get active(){return y(i)},get icon(){return Ze},onclick:l,style:`secondary`,children:(t,n)=>{b();var i=e();r(()=>o(i,y(c)?`Following`:`Follow`)),a(t,i)},$$slots:{default:!0}})}S()}var{getPane:J,replacePane:$e,showPane:Y,showChildPane:X}=Ee(),et=u(` `,1),tt=u(` `,1);function nt(r,i){p(i,!0);let o=D(),s=te(o,`/collection`);async function c(){if(!i.collection)throw TypeError();ye({action:`Delete`,content:`This will permanently remove this collection from your account.`,title:`Delete "${i.collection.title}"?`,async onconfirm(){await je(o,i.collection.resource_uri),await pe(o,s)}})}me(r,{get back(){return s},get title(){return i.collection.title},children:(r,o)=>{var s=tt(),u=v(s),f=t=>{let r=n(()=>{var e,t;return((e=J())==null?void 0:e.type)===`FOOD`||((t=J())==null?void 0:t.type)===`SEARCH`});k(t,{get active(){return y(r)},get icon(){return M},onclick:()=>{Y(y(r)?null:{type:`SEARCH`})},style:`secondary`,children:(t,n)=>{b();var r=e(`Add`);a(t,r)},$$slots:{default:!0}})},p=e=>{Qe(e,{get collection(){return i.collection}})};l(u,e=>{i.editable?e(f):e(p,-1)});var m=t(u,2);be(m,{children:(e,n)=>{var r=d(),o=v(r),s=e=>{H(e,{get icon(){return P},label:`Set as recurring`,onclick:()=>Y({type:`RECURRING`})})},u=e=>{var n=et(),r=v(n);H(r,{get icon(){return ie},label:`Edit`,onclick:()=>Y({type:`EDIT`})});var i=t(r,2);H(i,{get icon(){return P},label:`Set as recurring`,onclick:()=>Y({type:`RECURRING`})});var o=t(i,2);H(o,{get icon(){return N},label:`Delete`,onclick:c}),a(e,n)};l(o,e=>{!i.editable||i.collection.is_favorites?e(s):e(u,-1)}),a(e,r)},$$slots:{default:!0}}),a(r,s)},$$slots:{default:!0}}),S()}var rt=u(`
`),it=u(` `,1),at=u(`
`),ot=u(`Created by
`),st=u(``);function ct(e,i){p(i,!0);let s=D(),u=n(()=>G(i.collection));async function d(e){await ke(s,i.collection,e)}var f=st(),m=c(f);ae(m,{get src(){return y(u)},children:(e,n)=>{var o=it(),s=v(o),u=t(s,2),f=e=>{var t=rt(),n=c(t);ve(n,{onUpload:d,style:`secondary`}),h(t),a(e,t)};l(u,e=>{i.editable&&e(f)}),r(e=>C(s,`src`,e),[()=>G(i.collection)]),a(e,o)},$$slots:{default:!0}});var g=t(m,2),_=e=>{var t=at(),n=c(t,!0);h(t),r(()=>o(n,i.collection.description)),a(e,t)};l(g,e=>{i.collection.description&&e(_)});var b=t(g,2),x=e=>{var n=ot(),s=t(c(n)),l=c(s,!0);h(s),h(n),r(()=>o(l,i.collection.original_author)),a(e,n)};l(b,e=>{i.editable||e(x)}),h(f),a(e,f),S()}var lt=u(` `,1);function ut(n,r){p(r,!0);let o=D(),c=s(_({description:r.collection.description,title:r.collection.title}));async function l(){await Pe(o,r.collection.resource_uri,y(c)),await Y(null)}U(n,{title:`Edit Collection`,children:(n,r)=>{O(n,{onSubmit:l,children:(n,r)=>{var o=lt(),s=v(o);_e(s,{children:(e,t)=>{Ve(e,{get data(){return y(c)},set data(e){i(c,e,!0)}})},$$slots:{default:!0}});var l=t(s,2);F(l,{full_width:!0,children:(t,n)=>{b();var r=e(`Save`);a(t,r)},$$slots:{default:!0}}),a(n,o)},$$slots:{default:!0}})},$$slots:{default:!0}}),S()}var dt=u(`
`,1);function ft(e,i){p(i,!0);let s=D(),u=n(()=>I(j(s))),f=n(()=>I(R(i.food_uri))),m=n(()=>I(K(i.collection.resource_uri))),g=n(()=>{var e;return(e=y(m))==null?void 0:e.find(e=>e.food===i.food_uri)}),_=n(()=>i.amount?i.amount:y(g)?y(g):!y(u)||!y(f)?null:he(y(u),y(f)));async function b(){if(!y(_))throw TypeError();return Ne(s,i.collection.resource_uri,{food:i.food_uri,...y(_)})}async function x(){if(!y(g))throw TypeError();return Me({collection_uri:i.collection.resource_uri,food_uri:i.food_uri,item_uri:y(g).resource_uri,user_id:s})}async function C(e){await $e({type:`FOOD`,food_uri:i.food_uri,amount:e}),y(g)&&await Ae(i.collection.resource_uri,y(g).resource_uri,e)}var w=d(),T=v(w),E=e=>{oe(e,{get amount(){return y(_)},get food(){return y(f)},food_object:null,onClickFood:(e,t)=>X({type:`FOOD`,amount:t,food_uri:e.resource_uri}),fab:e=>{var t=d(),n=v(t),r=e=>{k(e,{get icon(){return N},icon_only:!0,label:`Remove`,onclick:x})},i=e=>{k(e,{get icon(){return M},icon_only:!0,label:`Add`,style:`primary`,onclick:b})};l(n,e=>{y(g)?e(r):e(i,-1)}),a(e,t)},children:(e,n)=>{var i=dt(),s=v(i),l=c(s);h(s);var u=t(s,2),d=c(u);ge(d,{get food(){return y(f)},get food_amount(){return y(_)},onUpdate:C}),h(u),r(e=>o(l,`Scale ${e??``}`),[()=>fe(y(f))?`Recipe`:`Amount`]),a(e,i)},$$slots:{fab:!0,default:!0}})};l(T,e=>{y(_)&&y(f)&&e(E)}),a(e,w),S()}var pt=u(`No Collections for this meal
`),mt=u(` `,1);function Z(e,i){p(i,!0);let s=D(),l=n(()=>I(Ce(s,i.meal_uri))),u=n(()=>I(q(s,i.meal_uri)));async function f(e){return Fe(s,e.resource_uri)}var m=mt(),g=v(m),_=c(g);h(g);var b=t(g,2);ue(b,{collapse:!0,children:(e,t)=>{var n=d(),r=v(n);E(r,17,()=>y(u)||[],e=>e.resource_uri,(e,t)=>{L(e,{children:(e,n)=>{He(e,{get collection_uri(){return y(t).food_collection},children:(e,n)=>{ne(e,{get icon(){return N},label:`Delete recurring collection`,onclick:()=>f(y(t))})},$$slots:{default:!0}})},$$slots:{default:!0}})},e=>{var t=pt();a(e,t)}),a(e,n)},$$slots:{default:!0}}),r(()=>{var e;return o(_,`Recurring Collections for ${((e=y(l))==null?void 0:e.title)??``}`)}),a(e,m),S()}function ht(e,t){p(t,!0);let r=f(t,`value`,15),i=D(),a=n(()=>I(Se(i))),o=n(()=>{var e;return new Map((e=y(a))==null?void 0:e.map(e=>[e.resource_uri,e.title]))}),s=n(()=>r()?I(q(i,r())):void 0);function c(e){return e!=null&&e.some(e=>e.food_collection===t.collection.resource_uri)?`This collection is already in the selected meal type`:``}ce(e,{id:`meal_type`,label:`Add to`,children:(e,t)=>{{let t=n(()=>c(y(s)));se(e,{get error(){return y(t)},name:`meal_type`,get options(){return y(o)},get value(){return r()},set value(e){r(e)}})}},$$slots:{default:!0}}),S()}var Q=u(` `,1);function gt(n,r){p(r,!0);let i=D(),o=_({});async function s(){await Ie(i,{...o,food_collection:r.collection.resource_uri})}U(n,{title:`Set as Recurring`,children:(n,i)=>{L(n,{children:(n,i)=>{var c=Q(),u=v(c);O(u,{onSubmit:s,children:(n,i)=>{var s=Q(),c=v(s);ht(c,{get collection(){return r.collection},get value(){return o.meal_type},set value(e){o.meal_type=e}});var l=t(c,2);F(l,{get icon(){return P},full_width:!0,children:(t,n)=>{b();var r=e(`Set`);a(t,r)},$$slots:{default:!0}}),a(n,s)},$$slots:{default:!0}});var d=t(u,2),f=e=>{Z(e,{get meal_uri(){return o.meal_type}})};l(d,e=>{o.meal_type&&e(f)}),a(n,c)},$$slots:{default:!0}})},$$slots:{default:!0}}),S()}var _t=u(` `);function vt(e,t){let r=[Ue,We,xe,Ke,Ge,qe,we],i=n(()=>r[t.index%r.length]);var o=_t();m(o,()=>({alt:``,...y(i),loading:`lazy`}),void 0,void 0,void 0,`svelte-1m7m962`),g(o),a(e,o)}var yt=u(` `,1);function bt(e,r){p(r,!0);let o=new Map([[`NAME`,`Name`],[`DATE`,`Recent`]]),c=s(`Name`),l=s(``);function u(e,t){return!e||!t?[]:le(e).sort((e,n)=>{var r,i;let a=((r=t.get(e.food))==null?void 0:r.food_name)??``,o=((i=t.get(n.food))==null?void 0:i.food_name)??``;return a.localeCompare(o)})}let d=n(()=>{var e;let t=I(A((e=r.collection_items)==null?void 0:e.map(e=>R(e.food))));if(t)return new Map(t.map(e=>[e.resource_uri,e]))}),f=n(()=>y(l).trim().toLowerCase()),m=n(()=>r.collection_items.filter(e=>{var t;let n=(t=y(d))==null?void 0:t.get(e.food);return n==null?void 0:n.food_name.toLowerCase().includes(y(f))})),h=n(()=>y(c)===`NAME`?u(y(m),y(d)):y(m).toReversed());var g=yt(),_=v(g);Le(_,{get options(){return o},get query(){return y(l)},set query(e){i(l,e,!0)},get sort_by(){return y(c)},set sort_by(e){i(c,e,!0)}});var b=t(_,2);Oe(b,{get list(){return y(h)},render:(e,t=w)=>{De(e,{draggable:null,get food_uri(){return t().food},onclick:()=>X({type:`FOOD`,amount:B(t(),[`scaled_amount`,`units`]),food_uri:t().food})})},$$slots:{render:!0}}),a(e,g),S()}var xt=u(`There are no items in this Collection
`),$=u(` `,1);function St(r,i){p(i,!0);let o=D(),s=n(()=>I(j(o))),c=n(()=>I(W(o,i.data.collection_id))),u=n(()=>{var e,t;return ee(z.COLLECTIONS)&&((e=y(s))==null?void 0:e.username)===((t=y(c))==null?void 0:t.original_author)});var f=d(),m=v(f),h=r=>{Te(r,{placeholder:e=>{vt(e,{get index(){return y(c).id}})},routing:(t,n=w)=>{var r=d(),i=v(r),o=e=>{ut(e,{get collection(){return y(c)}})},s=e=>{ft(e,x({get collection(){return y(c)}},n))},u=e=>{gt(e,{get collection(){return y(c)}})},f=e=>{re(e,{})},p=e=>{Je(e,{})},m=t=>{de(t,{children:(t,n)=>{b();var r=e(`Invalid Navigation`);a(t,r)},$$slots:{default:!0}})};l(i,e=>{n().type===`EDIT`?e(o):n().type===`FOOD`?e(s,1):n().type===`RECURRING`?e(u,2):n().type===`SEARCH`?e(f,3):n().type===`SEARCH_FILTERS`?e(p,4):e(m,-1)}),a(t,r)},children:(e,r)=>{var i=$(),o=v(i);nt(o,{get collection(){return y(c)},get editable(){return y(u)}});var s=t(o,2);L(s,{children:(e,r)=>{let i=n(()=>I(K(y(c).resource_uri)));var o=$(),s=v(o);ct(s,{get collection(){return y(c)},get editable(){return y(u)}});var d=t(s,2),f=e=>{var t=xt();a(e,t)},p=e=>{bt(e,{get collection_items(){return y(i)}})};l(d,e=>{var t;(t=y(i))!=null&&t.length?e(p,-1):e(f)}),a(e,o)},$$slots:{default:!0}}),a(e,i)},$$slots:{placeholder:!0,routing:!0,default:!0}})};l(m,e=>{y(c)&&e(h)}),a(r,f),S()}export{St as component,Ye as universal};
+//# sourceMappingURL=77.D73bcRze.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/78.C7zvRPm7.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/78.C7zvRPm7.js
new file mode 100644
index 0000000000000000000000000000000000000000..d220320df1533d128c23808c5771f35e22f88cb6
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/78.C7zvRPm7.js
@@ -0,0 +1,2 @@
+import{At as e,Ft as t,J as n,Lt as r,X as i,cn as a,jt as o,kt as s,lt as c,sn as l}from"../chunks/BhSt9sSe.js";import{r as u}from"../chunks/C8UWmKFm.js";import{Ot as d,Tt as f,Z as p}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as m}from"../chunks/BBbGtOhS.js";import{t as h}from"../chunks/LtYjoJmG2.js";import{t as g}from"../chunks/CZOcB8DL.js";import{t as _}from"../chunks/BC4LLrwJ.js";import{a as v}from"../chunks/CqbnryEZ.js";import{t as y}from"../chunks/TAoLre2b.js";var b=i(` `,1);function x(i,x){a(x,!0);let S=d(),C=r(o({description:``,title:``}));async function w(){let e=`/collection/${(await v(S,c(C))).secret_url}`,t=f(S,e);return u(t)}var T=b(),E=s(T);h(E,{href:`/collection`,title:`Create Collection`});var D=e(E,2);p(D,{onSubmit:w,children:(r,i)=>{_(r,{children:(r,i)=>{var a=b(),o=s(a);y(o,{get data(){return c(C)},set data(e){t(C,e,!0)}});var l=e(o,2);g(l,{action:`Create`,get icon(){return m},href:`/collection`}),n(r,a)},$$slots:{default:!0}})},$$slots:{default:!0}}),n(i,T),l()}export{x as component};
+//# sourceMappingURL=78.C7zvRPm7.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/79.RJ6N3Xlp.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/79.RJ6N3Xlp.js
new file mode 100644
index 0000000000000000000000000000000000000000..cca98f1e3a76563c9b152f3d0f13f86110e53b42
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/79.RJ6N3Xlp.js
@@ -0,0 +1,3 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,J as a,K as o,Lt as s,Ot as c,Qt as l,Rt as u,U as d,X as f,Xt as p,Y as m,Zt as h,cn as g,en as _,g as v,hn as y,it as b,kt as x,lt as S,mn as C,s as w,sn as T,vn as E,wt as D,xn as O}from"../chunks/BhSt9sSe.js";import{r as k}from"../chunks/C8UWmKFm.js";import{K as A,Ot as j,Tt as M,W as ee,Z as N,at as P,i as F}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as I}from"../chunks/CyviYcci.js";import{t as te}from"../chunks/BBbGtOhS.js";import{t as ne}from"../chunks/Sb52OVMz.js";import{t as re}from"../chunks/DEgMoMXi.js";import{i as ie,u as ae}from"../chunks/CxRGiBH-2.js";import{n as L}from"../chunks/B1cT_TaC2.js";import{t as oe}from"../chunks/C2as7BOF.js";import{t as se}from"../chunks/CLTyeLEa.js";import{n as ce}from"../chunks/COwaMya3.js";import{t as R}from"../chunks/DMI9ZW7h.js";import{t as z}from"../chunks/DNDaYjwu.js";import{t as B}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as V}from"../chunks/BfqGvEGP2.js";import{t as H}from"../chunks/CUlQONZr2.js";import{i as U}from"../chunks/DcW2JRyl2.js";import{t as W}from"../chunks/DLXIoRkz2.js";import{n as G,t as le}from"../chunks/DzZQFndg.js";import{t as ue}from"../chunks/B3u-DD2v.js";import{r as K,t as de}from"../chunks/CNSfixrI.js";import{a as q,o as fe,t as pe}from"../chunks/BDGu4ULl.js";import{a as me,i as J}from"../chunks/DnGn-N58.js";var he=O({load:()=>ge});async function ge({parent:e}){let{user:t}=await e();await z(()=>J(t.id),()=>q(t.id),()=>U())}function Y({custom_foods:e,custom_recipes:t,query:n,sort_by:r}){if(!e||!t)return[];let i=[...e,...t],a=n.toLowerCase().split(/\s+/);return a.length&&(i=i.filter(e=>a.every(t=>e.food_name.toLowerCase().includes(t)||e.description.toLowerCase().includes(t)))),r===`food_name`?i.sort((e,t)=>e.food_name.localeCompare(t.food_name)):r===`date_created`&&i.sort((e,t)=>t.date_created.localeCompare(e.date_created)),i}var _e=f(`
`),ve=f(` `,1);function X(r,o){g(o,!0);let l=s(0);D(()=>{o.results&&i(l,1)});let f=n(()=>o.results.slice(0,S(l)*100));var p=ve(),m=x(p);le(m,{get list(){return S(f)},render:(e,t=E)=>{G(e,{draggable:null,get food_uri(){return t().resource_uri},onclick:()=>K({type:`FOOD`,food_uri:t().resource_uri})})},$$slots:{render:!0}});var h=t(m,2),_=t=>{var n=_e(),r=c(n);P(r,{onclick:()=>u(l),style:`primary`,children:(t,n)=>{C();var r=e(`View More`);a(t,r)},$$slots:{default:!0}}),y(n),a(t,n)};d(h,e=>{S(f).length `,1);function be(e,i){if(g(i,!0),!i.manager.user_id)throw TypeError();let s=n(()=>L(q(i.manager.user_id))),l=n(()=>L(J(i.manager.user_id))),u=n(()=>Y({custom_foods:S(s),custom_recipes:S(l),query:i.query,sort_by:i.sort_by}));var f=m(),p=x(f),h=e=>{var n=ye(),s=x(n),l=c(s);y(s),X(t(s,2),{get results(){return S(u)}}),r(()=>o(l,`${(i.manager.company_name||i.manager.username||`Your Manager`)??``}'s Custom Foods
+ & Recipes`)),a(e,n)};d(p,e=>{S(u).length&&e(h)}),a(e,f),T()}var xe=f(`Shared Foods & Recipes `,1);function Se(e,r){g(r,!0);let i=j(),o=n(()=>L(fe(i))),s=n(()=>L(me(i))),c=n(()=>Y({custom_foods:S(o),custom_recipes:S(s),sort_by:r.sort_by,query:r.query}));var l=m(),u=x(l),f=e=>{var n=xe();X(t(x(n),2),{get results(){return S(c)}}),a(e,n)};d(u,e=>{S(c).length&&e(f)}),a(e,l),T()}var Ce=f(`You do not have any Custom Foods or Recipes.
`),we=f(`Your Custom Foods & Recipes `),Te=f(`You do not have any custom foods or recipes
`),Ee=f(`No results matched your search
`),De=f(` `,1),Z=f(` `,1);function Oe(e,r){g(r,!0);let o=()=>l(E,`$sort_by`,u),[u,f]=h(),m=j(),v=n(()=>L(F(m))),b=n(()=>L(q(m))),C=n(()=>L(J(m))),w=s(``),E=A(ee.CUSTOM_FOOD.SORT,`food_name`),D=n(()=>Y({custom_foods:S(b),custom_recipes:S(C),query:S(w),sort_by:o()}));var O=Z(),k=x(O),M=e=>{var t=Ce();a(e,t)},N=e=>{var n=De(),r=x(n),s=c(r),l=c(s);R(l,{placeholder:`Search…`,get value(){return S(w)},set value(e){i(w,e,!0)}}),y(s);var u=t(s,2),f=c(u);ie(f,{options:new Map([[`food_name`,`Name`],[`date_created`,`Recent`]]),get value(){return p(),o()},set value(e){_(E,e)}}),y(u),y(r);var m=t(r,2),h=e=>{var t=we();a(e,t)};d(m,e=>{var t;(t=S(v))!=null&&t.is_managed&&e(h)});var g=t(m,2),T=e=>{var t=Te();a(e,t)},O=e=>{var t=Ee();a(e,t)},k=e=>{X(e,{get results(){return S(D)}})};d(g,e=>{var t,n;!((t=S(b))!=null&&t.length)&&!((n=S(C))!=null&&n.length)?e(T):S(D).length?e(k,-1):e(O,1)}),a(e,n)};d(k,e=>{var t,n,r;!((t=S(v))!=null&&t.is_managed)&&!((n=S(b))!=null&&n.length)&&!((r=S(C))!=null&&r.length)?e(M):e(N,-1)});var P=t(k,2);se(P,{children:(e,n)=>{var r=Z(),i=x(r),s=e=>{Se(e,{get query(){return S(w)},get sort_by(){return o()}})};d(i,e=>{var t;(t=S(v))!=null&&t.is_linked&&e(s)});var c=t(i,2),l=e=>{be(e,{get manager(){return S(v).manager},get query(){return S(w)},get sort_by(){return o()}})};d(c,e=>{var t;(t=S(v))!=null&&t.is_managed&&S(v).manager&&e(l)}),a(e,r)},$$slots:{default:!0}}),a(e,O),T(),f()}var Q={height:80,width:80,src:`/app/_app/immutable/assets/icons8-carrot-80.D62YVmFx.png`},ke={height:80,width:80,src:`/app/_app/immutable/assets/icons8-paella-80.gkL0qpka.png`},Ae={height:80,width:80,src:`/app/_app/immutable/assets/icons8-url-80.Bc3lOLYZ.png`},je=f(` `),Me=f(`
`,1);function Ne(l,u){g(u,!0);let d=(t,s)=>{let c=()=>(s==null?void 0:s()).label,l=()=>(s==null?void 0:s()).icon,u=()=>(s==null?void 0:s()).description,d=()=>(s==null?void 0:s()).value;{let s=e=>{var t=je();v(t,()=>({alt:``,...l()}),void 0,void 0,void 0,`svelte-1rxvevu`),b(t),a(e,t)},p=n(()=>S(f)===d());V(t,{get checked(){return S(p)},get label(){return c()},get value(){return d()},onclick:()=>i(f,d(),!0),icon:s,children:(t,n)=>{C();var i=e();r(()=>o(i,u())),a(t,i)},$$slots:{icon:!0,default:!0}})}},f=s(`recipe`),p=j();function m(){let e=`/custom/${S(f)}/create`;S(f)===`import`&&(e=`/custom/recipe/from-url`);let t=M(p,e);return k(t,{replaceState:!0,state:I.state})}ue(l,{title:`Create`,wide:!0,children:(n,r)=>{N(n,{onSubmit:m,children:(n,r)=>{var i=Me(),o=x(i),s=c(o);d(s,()=>({value:`recipe`,label:`Create a Recipe`,icon:ke,description:`Enter ingredients and directions`}));var l=t(s,2);d(l,()=>({value:`food`,label:`Create a Food`,icon:Q,description:`A recipe ingredient or prepackaged meal`}));var u=t(l,2);d(u,()=>({value:`import`,label:`Import a Recipe`,icon:Ae,description:`Save a recipe for personal use with our browser extension`})),y(o);var f=t(o,2),p=c(f);re(p,{icon:``,full_width:!0,children:(t,n)=>{C();var r=e(`Continue`);a(t,r)},$$slots:{default:!0}}),y(f),a(n,i)},$$slots:{default:!0}})},$$slots:{default:!0}}),T()}var Pe={height:250,width:158,src:`/app/_app/immutable/assets/strawberry.DUHcAArA.avif`},$=t=>{pe(t,{get image(){return Pe},children:(t,n)=>{C();var r=e(`Manage your own recipes and use them in any meal plan`);a(t,r)},$$slots:{default:!0}})},Fe=(e,t=E)=>{{let r=n(()=>ce(t())?`recipe`:`food`),i=n(()=>t().id);P(e,{breadcrumb:!0,get href(){return`/custom/${S(r)??``}/${S(i)??``}`},get icon(){return ne},icon_only:!0,label:`Edit`,style:`secondary`})}},Ie=f(``),Le=f(` `,1);function Re(r,i){g(i,!0);let o=t=>{var r=m(),i=x(r),o=t=>{let r=n(()=>{var e;return((e=de())==null?void 0:e.type)===`CREATE`}),i=n(()=>S(r)?null:{type:`CREATE`});P(t,{get active(){return S(r)},onclick:()=>{K(S(i))},get icon(){return te},style:`secondary`,children:(t,n)=>{C();var r=e(`Create`);a(t,r)},$$slots:{default:!0}})};d(i,e=>{l||e(o)}),a(t,r)},s=(t,r=E)=>{var i=m(),o=x(i),s=e=>{Ne(e,{})},c=e=>{{let t=n(()=>l?void 0:Fe);W(e,w(r,{get fab(){return S(t)}}))}},u=t=>{oe(t,{children:(t,n)=>{C();var r=e(`Invalid Navigation`);a(t,r)},$$slots:{default:!0}})};d(o,e=>{r().type===`CREATE`?e(s):r().type===`FOOD`?e(c,1):e(u,-1)}),a(t,i)},l=ae(),u=j(),f=n(()=>L(q(u))),p=n(()=>L(J(u))),h=n(()=>L(F(u))),_=n(()=>{var e,t,n;return!((e=S(h))!=null&&e.is_managed)&&!((t=S(f))!=null&&t.length)&&!((n=S(p))!=null&&n.length)});var v=m(),b=x(v),D=e=>{H(e,{get routing(){return s},overlay:!0,placeholder:e=>{},children:(e,n)=>{var r=Ie(),i=c(r);B(i,{title:`Custom Foods & Recipes`});var s=t(i,2),l=c(s);$(l);var u=t(l,2),d=c(u);o(d),y(u),y(s),y(r),a(e,r)},$$slots:{placeholder:!0,default:!0}})},O=e=>{H(e,{get routing(){return s},placeholder:e=>{$(e)},children:(e,n)=>{var r=Le(),i=x(r);B(i,{title:`Custom Foods & Recipes`,children:(e,t)=>{o(e)},$$slots:{default:!0}}),Oe(t(i,2),{}),a(e,r)},$$slots:{placeholder:!0,default:!0}})};d(b,e=>{S(_)?e(D):e(O,-1)}),a(r,v),T()}export{Re as component,he as universal};
+//# sourceMappingURL=79.RJ6N3Xlp.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/8.D5D0w8El.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/8.D5D0w8El.js
new file mode 100644
index 0000000000000000000000000000000000000000..ea566cf11b550577a21dcc5668a1d40c342221eb
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/8.D5D0w8El.js
@@ -0,0 +1,2 @@
+import{xn as e}from"../chunks/BhSt9sSe.js";import{g as t}from"../chunks/C8UWmKFm.js";import{R as n,y as r}from"../chunks/gotDHXHr.js";import{t as i}from"../chunks/C5rGgnpV.js";import{t as a}from"../chunks/Ctg-Sb3g.js";import{t as o}from"../chunks/BMUmCrYb.js";var s=e({load:()=>c});async function c({parent:e}){n()||i(307,t(`/`));let o=(await r(()=>a())).tier_type===`control`;return{...await e(),is_control:o}}export{o as component,s as universal};
+//# sourceMappingURL=8.D5D0w8El.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/81.DB3IzkqD.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/81.DB3IzkqD.js
new file mode 100644
index 0000000000000000000000000000000000000000..02b685964972df7f0d3ca7a88e7664790439718b
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/81.DB3IzkqD.js
@@ -0,0 +1,2 @@
+import{Ft as e,Lt as t,cn as n,jt as r,lt as i,sn as a,xn as o}from"../chunks/BhSt9sSe.js";import{y as s}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as c}from"../chunks/B19gMY7G.js";import{n as l}from"../chunks/BDGu4ULl.js";import{o as u}from"../chunks/DxhO-kdX.js";import{t as d}from"../chunks/DaQppzL1.js";var f=o({load:()=>p});async function p({parent:e,url:t}){let n=t.searchParams.get(`copy`),{user:r}=await e(),i=u(r.id),a;if(n){let e=parseInt(n,10),t=await s(()=>c(e));a=l(r.id,t)}else a=i;return a.weights.length<2&&(a.weights[1]=i.weights[1]),{form:a}}function m(o,s){n(s,!0);let c=t(r(s.data.form));d(o,{get form(){return i(c)},set form(t){e(c,t,!0)}}),a()}export{m as component,f as universal};
+//# sourceMappingURL=81.DB3IzkqD.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/83.BdIECcOX.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/83.BdIECcOX.js
new file mode 100644
index 0000000000000000000000000000000000000000..f1b7f956e9c9f33733aca0130e4a10f3e5e83f6d
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/83.BdIECcOX.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,J as n,U as r,X as i,Y as a,cn as o,kt as s,mn as c,sn as l,xn as u}from"../chunks/BhSt9sSe.js";import{at as d,y as f}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as p}from"../chunks/B19gMY7G.js";import{t as m}from"../chunks/CtDUMnLZ.js";import{n as h}from"../chunks/BDGu4ULl.js";import{i as g}from"../chunks/DxhO-kdX.js";import{t as _}from"../chunks/BTaZG_gq2.js";var v=u({load:()=>y});async function y({parent:e,url:t}){let n=t.searchParams.get(`copy`),{user:r}=await e(),i;if(n){let e=parseInt(n,10),t=await f(()=>p(e));i=h(r.id,t)}else i=g(r.id);return{form:i}}var b=i(`Want a faster way to add recipes? Try our Recipe Clipper `,1);function x(i,u){o(u,!0),_(i,{get custom_recipe(){return u.data.form},children:(i,o)=>{var l=a(),f=s(l),p=r=>{m(r,{children:(r,i)=>{c();var a=b(),o=t(s(a));d(o,{href:`/custom/recipe/from-url`,style:`secondary`,breadcrumb:!0,children:(t,r)=>{c();var i=e(`Learn More`);n(t,i)},$$slots:{default:!0}}),n(r,a)},$$slots:{default:!0}})};r(f,e=>{u.data.form.base_food_id||e(p)}),n(i,l)},$$slots:{default:!0}}),l()}export{x as component,v as universal};
+//# sourceMappingURL=83.BdIECcOX.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/84.rqLvq14D.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/84.rqLvq14D.js
new file mode 100644
index 0000000000000000000000000000000000000000..2d675ac7c7138ac9bef77c008129207467705268
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/84.rqLvq14D.js
@@ -0,0 +1,3 @@
+import{$ as e,At as t,B as n,Bt as r,Ct as i,J as a,K as o,Ot as s,U as c,W as l,X as u,Y as d,_n as f,cn as p,g as m,hn as h,it as g,kt as _,lt as v,mn as y,rt as b,sn as x,v as S,xn as C,yn as w,z as T}from"../chunks/BhSt9sSe.js";import{E,Ot as ee,Pt as D,at as O,w as k,zt as A}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as j}from"../chunks/CsIAEk3y2.js";import{t as M}from"../chunks/C2as7BOF.js";import{t as N}from"../chunks/LtYjoJmG2.js";import{c as P}from"../chunks/DnGn-N58.js";import{i as F,n as I}from"../chunks/DxhO-kdX.js";import{t as L}from"../chunks/BTaZG_gq2.js";var R=C({load:()=>z});function z({url:e}){return{clip_id:e.searchParams.get(`clip`),recipe_url:e.searchParams.get(`url`)}}var B=u(`
`,1);function V(e,n){var r=B(),c=_(r);N(c,{href:`/custom`,title:`Import Recipe`});var l=t(c,2),u=s(l);m(u,()=>({alt:``,...j})),h(l);var d=t(l,2),f=s(d,!0);h(d),i(()=>o(f,n.error)),g(u),a(e,r)}var H=class{constructor(){f(this,`promise`,void 0),f(this,`resolve`,void 0),f(this,`reject`,void 0),this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};function te(e){return!e.directions.length||!e.ingredients.length||!e.settings.food_name||!e.settings.cook_time||!e.settings.prep_time||!e.servings.amount||!e.servings.units}async function U(e,t,n,r){if(!e.url_valid)return{afterSave:void 0,form:void 0,imported_image:null,parsed_ingredients:[],warning:`That link doesn't look like a valid recipe page.`};let i=e.ingredients.length?await P(e.ingredients):[];return{afterSave:r,form:{...F(t),cook_time:e.settings.cook_time??1,directions:e.directions.map((e,t)=>({order:t,text:e})),food_name:e.settings.food_name||``,prep_time:e.settings.prep_time??1,number_servings:e.servings.amount,source_url:e.source_url,weights:[{amount:100,description:`grams`},{amount:e.servings.amount,description:e.servings.units}]},imported_image:n,parsed_ingredients:i,warning:te(e)?`It looks like one or more of the fields weren't able to be imported. Please scroll through, fill in any incorrect blanks, and make sure the chosen ingredients are correct.`:null}}var W=3,G=`eatthismuch-webapp`,K=`eatthismuch-recipe-importer`,q=/^[a-f0-9-]{20,64}$/i;function J(e,t){window.postMessage({source:G,type:e,version:W,clip_id:t},window.location.origin)}function Y(e,t){var n,r,i;return e.source===window&&e.origin===window.location.origin&&((n=e.data)==null?void 0:n.source)===K&&((r=e.data)==null?void 0:r.version)===W&&((i=e.data)==null?void 0:i.clip_id)===t}function X(e){let t=new H,n=b(window,`message`,n=>{Y(n,e)&&(n.data.type===`ETM_RECIPE_CLIP_RESPONSE`?t.resolve(n.data.payload):n.data.type===`ETM_RECIPE_CLIP_ERROR`&&t.reject(Error(n.data.error)))});return window.setTimeout(()=>{t.reject(Error(`The Eat This Much extension didn't respond. Reopen the recipe page and try saving it again.`))},1e4),J(`ETM_RECIPE_CLIP_REQUEST`,e),t.promise.finally(n)}function Z(e){J(`ETM_RECIPE_CLIP_REMOVE`,e)}async function Q(e,t,n,r,i){let a;try{a=await k(null,`/recipe/import_recipe_url/`,{recipe_url:e,recipe_html:t})}catch(e){if(!(e instanceof A))throw e;let t=`The recipe could not be imported. Please try again.`;return e.code===413?t=`This recipe page is too large to import.`:e.code===422&&(t=`We couldn't find a recipe on that page.`),{afterSave:void 0,form:void 0,imported_image:null,parsed_ingredients:[],warning:t}}return U(a,n,r,i)}async function ne(e,t){if(!q.test(e))return{afterSave:void 0,form:void 0,imported_image:null,parsed_ingredients:[],warning:`This recipe link is invalid.`};let n;try{n=await X(e)}catch{return{afterSave:void 0,form:void 0,imported_image:null,parsed_ingredients:[],warning:`This saved recipe could not be loaded. It may have expired; reopen the recipe page and try saving it again.`}}return Q(n.canonical_url||n.source_url,n.document_html,t,n.image?{image:n.image.data_url,recipe_import:!0}:null,()=>Z(e))}async function re(e,t){return U(await E(null,`/recipe/import_recipe_url/`,{recipe_url:e}),t,null)}var ie=u(` Please wait while we import your recipe. This can take a little while.
`,1);function ae(e){var n=ie(),r=_(n),i=s(r);I(i,{title:`Importing...`}),h(r);var o=t(r,4),c=s(o);D(c,{}),h(o),a(e,n)}var oe=`/app/_app/immutable/assets/brave.MPjTlpDi.svg`,$=`/app/_app/immutable/assets/google-chrome.HffE_sj5.svg`,se=`/app/_app/immutable/assets/microsoft-edge.mWaXSgsF.svg`,ce=u(` `),le=u(` Use the Eat This Much Recipe Clipper on a recipe page you want to save for
+ personal use.
Using another browser? If your browser isn't supported, you can still create the recipe manually.
`,1);function ue(c){var l=le(),u=_(l);N(u,{href:`/custom`,title:`Recipe Clipper`});var d=t(u,4),f=s(d);T(f,5,()=>[[`Chrome`,$],[`Brave`,oe],[`Microsoft Edge`,se]],n,(e,n)=>{var c=r(()=>w(v(n),2));let l=()=>v(c)[0],u=()=>v(c)[1];var d=ce(),f=s(d),p=t(f,2),m=s(p,!0);h(p),h(d),i(()=>{S(f,`src`,u()),o(m,l())}),a(e,d)}),h(f),h(d);var p=t(d,2),m=s(p);O(m,{href:`https://chromewebstore.google.com/detail/eat-this-much-recipe-clip/deefcoodgkfkemnadjphindnllkcgjgp`,style:`primary`,external:!0,children:(t,n)=>{y();var r=e(`Install Extension`);a(t,r)},$$slots:{default:!0}}),h(p);var g=t(p,6),b=s(g);O(b,{href:`/custom/recipe/create`,children:(t,n)=>{y();var r=e(`Create Recipe`);a(t,r)},$$slots:{default:!0}}),h(g),a(c,l)}function de(t,n){p(n,!0);let r=ee(),s=u();function u(){return n.data.clip_id?ne(n.data.clip_id,r):n.data.recipe_url?re(n.data.recipe_url,r):null}var f=d(),m=_(f),h=t=>{var n=d(),r=_(n);l(r,()=>s,e=>{ae(e,{})},(t,n)=>{var r=d(),s=_(r),l=t=>{L(t,{get custom_recipe(){return v(n).form},get afterSave(){return v(n).afterSave},get imported_image(){return v(n).imported_image},get parsed_ingredients(){return v(n).parsed_ingredients},children:(t,r)=>{var s=d(),l=_(s),u=t=>{M(t,{children:(t,r)=>{y();var s=e();i(()=>o(s,v(n).warning)),a(t,s)},$$slots:{default:!0}})};c(l,e=>{v(n).warning&&e(u)}),a(t,s)},$$slots:{default:!0}})},u=e=>{V(e,{get error(){return v(n).warning}})};c(s,e=>{v(n).form?e(l):e(u,-1)}),a(t,r)},e=>{V(e,{error:`An unknown error occurred while importing this recipe.`})}),a(t,n)},g=e=>{ue(e,{})};c(m,e=>{s?e(h):e(g,-1)}),a(t,f),x()}export{de as component,R as universal};
+//# sourceMappingURL=84.rqLvq14D.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/85.3tujhPbq.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/85.3tujhPbq.js
new file mode 100644
index 0000000000000000000000000000000000000000..81ad48e6bce07cea89d060ef1684e41ba2eddaa3
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/85.3tujhPbq.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Bt as n,Ft as r,J as i,Lt as a,Ot as o,Qt as s,U as c,X as l,Xt as u,Y as d,Zt as f,a as p,cn as m,en as h,fn as g,g as _,hn as v,it as y,jt as b,kt as x,lt as S,mn as C,s as w,sn as T,vn as E,wt as D}from"../chunks/BhSt9sSe.js";import{l as O,n as k}from"../chunks/C8UWmKFm.js";import{Pt as A,at as j}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{n as M}from"../chunks/CyviYcci.js";import{i as N,n as P,r as F}from"../chunks/iYgU-sGz.js";import{t as ee}from"../chunks/B-CQW_E02.js";import{t as I}from"../chunks/C2as7BOF.js";import{t as L}from"../chunks/CLTyeLEa.js";import{t as R}from"../chunks/DMI9ZW7h.js";import{t as z}from"../chunks/Dr0HfOwU.js";import{t as B}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as V}from"../chunks/CUlQONZr2.js";import{n as H,t as U}from"../chunks/DEgSyIgv2.js";import{i as W,n as G,r as K,t as q}from"../chunks/DLXIoRkz2.js";import{n as J,t as Y}from"../chunks/B681WsDr.js";var X=l(`
`),Z=l(` `,1),Q=l(` `,1);function te(l,d){m(d,!0);let _=()=>s(d.filters,`$filters`,y),[y,w]=f(),E=p(d,`query`,15),N=a(b(M.state.discover??{})),P=`results`,F=n(()=>S(N)[P]??1),I=n(()=>d.search.results);k(()=>{O(``,{...M.state,discover:g(S(N)),search:E()})});let z=!0;D(()=>{if(d.search.results){if(z){z=!1;return}r(N,{},!0),window.scrollTo(0,0)}});var B=Q(),V=x(B),H=o(V),W=o(H);R(W,{get loading(){return d.search.pending},name:`search`,get value(){return E()},set value(e){E(e)}}),v(H),v(V);var G=t(V,2),K=e=>{A(e,{})},q=e=>{J(e,{get filters(){return u(),_()},set filters(e){h(d.filters,e)}})},Y=r=>{ee(r,{children:(r,a)=>{var s=Z(),c=x(s);{let e=n(()=>S(I).slice(0,S(F)*30).map(e=>e.food));U(c,{get food_uris(){return S(e)}})}var l=t(c,2);L(l,{children:(t,n)=>{var r=X(),a=o(r);j(a,{onclick:()=>S(N)[P]=S(F)+1,style:`primary`,children:(t,n)=>{C();var r=e(`View More`);i(t,r)},$$slots:{default:!0}}),v(r),i(t,r)},$$slots:{default:!0}}),i(r,s)},$$slots:{default:!0}})};c(G,e=>{S(I)?S(I).length===0?e(q,1):e(Y,-1):e(K)}),i(l,B),T(),w()}var ne={height:250,width:213,src:`/app/_app/immutable/assets/pear-teach.DbCuPoli.avif`},re=l(` Find new recipes to try in the future
`,1);function ie(e){var t=re(),n=x(t);_(n,()=>({alt:``,...ne}),void 0,void 0,void 0,`svelte-1h4arvt`),C(2),y(n),i(e,t)}var $=l(` `,1);function ae(o,l){m(l,!0);let u=()=>s(_,`$filters`,p),[p,h]=f(),g=a(b(M.state.search??``)),_=F(!0),v=P(`results`,()=>S(g),()=>u(),{include_recipes:!0});V(o,{placeholder:e=>{ie(e,{})},routing:(t,n=E)=>{var r=d(),a=x(r),o=e=>{q(e,w(n))},s=e=>{Y(e,{})},l=t=>{I(t,{children:(t,n)=>{C();var r=e(`Invalid Navigation`);i(t,r)},$$slots:{default:!0}})};c(a,e=>{n().type===`FOOD`?e(o):n().type===`SEARCH_FILTERS`?e(s,1):e(l,-1)}),i(t,r)},children:(e,a)=>{var o=$(),s=x(o);B(s,{title:`Discover`,children:(e,r)=>{let a=n(()=>{var e;return((e=G())==null?void 0:e.type)===`SEARCH_FILTERS`}),o=n(()=>S(a)?null:{type:`SEARCH_FILTERS`}),s=n(()=>z(u()));var c=$(),l=x(c);{let e=n(()=>K(S(o)));j(l,{get active(){return S(a)},get badge(){return S(s)},get icon(){return N},icon_only:!0,get href(){return S(e)},label:`Filters`,onclick:()=>{W(S(o))},style:`none`})}var d=t(l,2);H(d,{}),i(e,c)},$$slots:{default:!0}}),te(t(s,2),{get filters(){return _},get search(){return v},get query(){return S(g)},set query(e){r(g,e,!0)}}),i(e,o)},$$slots:{placeholder:!0,routing:!0,default:!0}}),T(),h()}export{ae as component};
+//# sourceMappingURL=85.3tujhPbq.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/86.DS_NQjMk.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/86.DS_NQjMk.js
new file mode 100644
index 0000000000000000000000000000000000000000..9f58e3361416033661ba20a8828704cafbc5d93d
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/86.DS_NQjMk.js
@@ -0,0 +1,2 @@
+import{At as e,Bt as t,Ct as n,Et as r,J as i,K as a,Ot as o,X as s,cn as c,gt as l,hn as u,k as d,kt as f,lt as p,sn as m,xn as h}from"../chunks/BhSt9sSe.js";import{r as g}from"../chunks/C8UWmKFm.js";import{b as _,y as v}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{n as y}from"../chunks/CyviYcci.js";import{t as b}from"../chunks/BLz2WXeC.js";import{n as x}from"../chunks/COwaMya3.js";import{n as S}from"../chunks/B19gMY7G.js";import{R as C,z as w}from"../chunks/Cer-cfCG.js";import{t as T}from"../chunks/DNDaYjwu.js";import{n as E,t as D}from"../chunks/BZQKY5H72.js";import{r as O}from"../chunks/DcW2JRyl2.js";import{n as k}from"../chunks/CwL-EWYT.js";import{f as A}from"../chunks/CqbnryEZ.js";var j=h({load:()=>M});async function M({params:e,parent:t}){let{user:n}=await t(),r=parseInt(e.food_id,10);return await T(()=>S(r),()=>{let e=S(r);if(e&&x(e)){let t=e.ingredients.map(e=>S(e.food));return _(t)}},()=>k(n.id),()=>A(n.id,r),()=>C(n.id,r),()=>{let e=w(n.id,r),t=e==null?void 0:e.map(e=>S(e.food_id));return _(t)},()=>O(r)),{food:await v(()=>S(r))}}var N=s(`
`,1),P=s(`
`);function F(s,h){c(h,!0);let _=t(()=>h.data.food),v=t(()=>{let e=y.url.searchParams.get(`amount`);if(e){let[t,n]=e.split(`;`),r=parseFloat(t),i=parseInt(n,10);if(!isNaN(r)&&!isNaN(i))return{scaled_amount:r,units:i}}return E(h.data.user,p(_))});async function S(e){let t=new URLSearchParams(location.search);t.set(`amount`,`${e.scaled_amount};${e.units}`),await g(`${location.pathname}?${t}`,{keepFocus:!0,noScroll:!0,replaceState:!0,state:y.state})}var C=P();d(`1x0wtxo`,e=>{l(()=>{r.title=p(_).food_name??``})});var w=o(C);b(w,{get amount(){return p(v)},get food(){return p(_)},food_object:null,children:(t,r)=>{var s=N(),c=f(s),l=o(c);u(c);var d=e(c,2),m=o(d);D(m,{get food(){return h.data.food},get food_amount(){return p(v)},onUpdate:S}),u(d),n(e=>a(l,`Scale ${e??``}`),[()=>x(p(_))?`Recipe`:`Amount`]),i(t,s)},$$slots:{default:!0}}),u(C),i(s,C),m()}export{F as component,j as universal};
+//# sourceMappingURL=86.DS_NQjMk.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/87.CKs_BQsq.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/87.CKs_BQsq.js
new file mode 100644
index 0000000000000000000000000000000000000000..2c40e3586ae816b38f5e8863251965912b45fe67
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/87.CKs_BQsq.js
@@ -0,0 +1,2 @@
+import{xn as e}from"../chunks/BhSt9sSe.js";import{_ as t}from"../chunks/C8UWmKFm.js";import{Tt as n}from"../chunks/gotDHXHr.js";import{t as r}from"../chunks/C5rGgnpV.js";import{t as i}from"../chunks/BGlizLwK2.js";var a=e({load:()=>o});async function o({parent:e}){let{user:a}=await e(),o=t(i),s=n(a.id,`/groceries/${o.current}`);r(307,s)}export{a as universal};
+//# sourceMappingURL=87.CKs_BQsq.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/88.CtmLQdoh.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/88.CtmLQdoh.js
new file mode 100644
index 0000000000000000000000000000000000000000..245dba68301289e353d92ac2f975c8f6c400c6ba
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/88.CtmLQdoh.js
@@ -0,0 +1,11 @@
+import{$ as e,At as t,Bt as n,Ct as r,E as i,Ft as a,J as o,Lt as s,M as c,Ot as l,Qt as u,R as d,T as f,U as p,W as m,X as h,Y as g,Zt as ee,cn as _,en as v,g as y,hn as b,it as x,kt as S,lt as C,mn as w,sn as T,xn as E,z as D}from"../chunks/BhSt9sSe.js";import{E as O,G as te,Ot as k,S as A,W as j,at as M,it as N,pt as P,yt as F}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as I}from"../chunks/BBbGtOhS.js";import{t as L}from"../chunks/BpQEveid.js";import{n as R}from"../chunks/B1cT_TaC2.js";import{t as z}from"../chunks/B-CQW_E02.js";import{i as B}from"../chunks/D2IZisAi2.js";import{t as V}from"../chunks/CPGReOo72.js";import{t as H}from"../chunks/CLTyeLEa.js";import{n as U}from"../chunks/B19gMY7G.js";import{n as W,r as G,t as K}from"../chunks/Cer-cfCG.js";import{t as q}from"../chunks/BFY9L1Z_.js";import{t as J}from"../chunks/BGlizLwK2.js";import{n as Y,t as X}from"../chunks/DWoGh4GZ2.js";import{t as Z}from"../chunks/BDL1KNLz2.js";var Q=E({load:()=>ne});function ne(){J.set(`owned`)}var re=h(` No items in Pantry
`);function ie(e){var t=re(),n=l(t);y(n,()=>({alt:``,...Z})),w(2),b(t),x(n),o(e,t)}var ae=h(`Ensure your plan is accurate. Past meals will be removed from your Pantry.
`),oe=h(`
`,1);function se(n,r){_(r,!0);let i=k(),c=s(!1);async function u(){await O(i,`/update-pantry/`,{}),await G(i)}var d=oe(),f=S(d),m=l(f);M(m,{get icon(){return L},onclick:()=>a(c,!0),style:`secondary`,children:(t,n)=>{w();var r=e(`Remove Eaten`);o(t,r)},$$slots:{default:!0}}),b(f);var h=t(f,2),g=e=>{V(e,{action:`Remove`,get icon(){return L},title:`Remove Eaten`,onclose:()=>a(c,!1),onconfirm:u,children:(e,t)=>{var n=ae();o(e,n)},$$slots:{default:!0}})};p(h,e=>{C(c)&&e(g)}),o(n,d),T()}var ce=`
+
+
+
+
+
+
+`,le={height:84,width:282,src:`/app/_app/immutable/assets/google-play-badge.2NFSwiDa.webp`},ue=h(` `,1);function de(e){var n=ue(),r=S(n),i=l(r);d(i,()=>ce,!0),b(i),b(r);var a=t(r,2),s=l(a),c=l(s);y(c,()=>({alt:`Get it on Google Play`,loading:`lazy`,...le})),b(s),b(a),x(c),o(e,n)}var fe=h(` `);function pe(e,r){_(r,!0);let i=n(()=>R(U(r.food_uri))),a=k();async function s(e){let t=e.default_package_amount||1/e.number_servings;await K(a,{food:r.food_uri,owned:!0,scaled_amount:t,units:e.default_units})}var c=g(),u=S(c),d=e=>{var n=fe(),r=l(n);q(r,{get food(){return C(i)},inline:!0});var a=t(r,2);N(a,{get icon(){return I},get label(){return`Add ${C(i).food_name??``} To Pantry`},onclick:()=>s(C(i))}),b(n),o(e,n)};p(u,e=>{C(i)&&e(d)}),o(e,c),T()}var $=h(`
`),me=h(`Suggested Ingredients Have these on hand? More ingredients allows greater recipe variety while
+ using up your Pantry.
`,1);function he(e,r){_(r,!0);let i=k(),a=A(i,`/g/owned-groceries-suggestions/`);function s(e){var t;return!((t=r.groceries.groceries)!=null&&t.find(t=>t.food===e&&t.scaled_amount_owned))}var c=g(),l=S(c);m(l,()=>a,null,(e,r)=>{let i=n(()=>C(r).filter(s));var a=g(),c=S(a),l=e=>{var n=me(),r=t(S(n),4);z(r,{children:(e,t)=>{var n=$();D(n,20,()=>C(i),e=>e,(e,t)=>{H(e,{children:(e,n)=>{pe(e,{get food_uri(){return t}})},$$slots:{default:!0}})}),b(n),o(e,n)},$$slots:{default:!0}}),o(e,n)};p(c,e=>{C(i).length&&e(l)}),o(e,a)}),o(e,c),T()}var ge=h(` `),_e=h(``),ve=h(` `,1),ye=h(`
Add ingredients you own to your Pantry. They will be prioritized in your
+ future meal plans.
`,1);function be(e,a){_(a,!0);let s=()=>u(y,`$show_barcode`,d),[d,m]=ee(),h=k(),g=n(()=>R(W(h))),y=te(j.GROCERIES.BARCODE,!0);var x=ye(),w=S(x),E=l(w);X(E,{active:`Pantry`,title:`Pantry`,children:(e,t)=>{var n=ge();se(l(n),{}),b(n),o(e,n)},$$slots:{default:!0}}),b(w);var D=t(w,2),O=e=>{var n=_e(),a=l(n),s=t(l(a),2);N(s,{get icon(){return F},label:`Dismiss`,onclick:()=>v(y,!1)}),b(a);var u=t(a,4);de(l(u),{}),b(u),b(n),r(()=>f(n,1,i(P),`svelte-yvu8mo`)),c(2,n,()=>B),o(e,n)};p(D,e=>{s()&&e(O)});var A=t(D,4),M=e=>{var n=ve(),r=S(n);Y(r,{owned:!0,get groceries(){return C(g)},empty:e=>{ie(e,{})},$$slots:{empty:!0}}),he(t(r,2),{get groceries(){return C(g)}}),o(e,n)};p(A,e=>{C(g)&&e(M)}),o(e,x),T(),m()}export{be as component,Q as universal};
+//# sourceMappingURL=88.CtmLQdoh.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/9.C6hyjH1i.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/9.C6hyjH1i.js
new file mode 100644
index 0000000000000000000000000000000000000000..a50e4e46bb09301b969fa1207b1daf6a71c90a0c
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/9.C6hyjH1i.js
@@ -0,0 +1,2 @@
+import{I as e,J as t,Y as n,cn as r,kt as i,sn as a}from"../chunks/BhSt9sSe.js";import{M as o}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{d as s}from"../chunks/CxRGiBH-2.js";import{n as c}from"../chunks/C2PzE5jE.js";function l(l,u){r(u,!0);let d=!o(c.COLLECTIONS);s(d);var f=n(),p=i(f);e(p,()=>u.children),t(l,f),a()}export{l as component};
+//# sourceMappingURL=9.C6hyjH1i.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/92.CujHPKLk.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/92.CujHPKLk.js
new file mode 100644
index 0000000000000000000000000000000000000000..bedf72cc2de0edff409485644a819b716ef154fa
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/92.CujHPKLk.js
@@ -0,0 +1,4 @@
+import{$ as e,At as t,Bt as n,Ct as r,E as i,J as a,K as o,Ot as s,T as c,U as l,X as u,c as d,cn as f,hn as p,kt as m,lt as h,mn as g,sn as _,zt as v}from"../chunks/BhSt9sSe.js";import{Dt as y,Ot as b,Tt as x,at as S,pt as C}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{n as w}from"../chunks/CyviYcci.js";import{t as T}from"../chunks/DzVcsD2j.js";import{t as E}from"../chunks/BQCFC5dX.js";import{t as D}from"../chunks/BaMUyfx-.js";import{t as O}from"../chunks/BaQVTF3m.js";import{t as k}from"../chunks/twP00gay.js";import{n as A}from"../chunks/B1cT_TaC2.js";import{t as j}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as M}from"../chunks/Bm6XGpdy2.js";import{t as N}from"../chunks/BwAVaRnq.js";import{t as P}from"../chunks/DbcdiBb3.js";import{t as F}from"../chunks/EMkCxHyW.js";import{t as I}from"../chunks/DezUpAoa.js";import{t as L}from"../chunks/CjBHSDGC.js";import{n as R}from"../chunks/D9lzHozn.js";import{t as z}from"../chunks/BDL1KNLz2.js";import{t as B}from"../chunks/3KgrUyHr2.js";var V=u(``);function H(e,l){f(l,!0);let u=n(()=>A(N()));var d=V(),m=s(d),v=t(s(m),3),y=s(v,!0);p(v),g(),p(m);var b=t(m,2);M(b,{}),p(d),r(()=>{var e;c(d,1,i(C),`svelte-nv4jc2`),o(y,(e=h(u))==null?void 0:e.discount_prices.yearly_price_per_month)}),a(e,d),_()}var U=u(` You have upgraded your account to Eat This Much Premium! You now have access
+ to these super cool features:
`,1),W=u(` With an Eat This Much Premium account, you get access to exciting new
+ features.
`,1),G=u(` `,1),K=u(`
`),q=u(` `,1);function J(r,i){f(i,!1);let o=b();d();var c=q(),u=m(c),C=e=>{var n=U(),r=m(n);j(r,{title:`Congratulations!`});var i=t(r,2);P(i,{}),g(2),a(e,n)},A=n(()=>w.url.searchParams.has(`congratulations`)),N=e=>{var r=W(),i=m(r);j(i,{title:`Premium Features`});var o=t(i,4),s=e=>{H(e,{})},c=n(()=>!y());l(o,e=>{h(c)&&e(s)}),a(e,r)};l(u,e=>{h(A)?e(C):e(N,-1)});var V=t(u,2);B(V,{title:`Plan Your Week`,get image(){return F},description:`You can plan out meals for future days or plan out entire weeks at a time.`,children:(n,r)=>{let i=v(()=>x(o,`/planner`));var s=G(),c=m(s);{let t=v(()=>R({type:`GENERATE`},h(i)));S(c,{get icon(){return T},get href(){return h(t)},style:`secondary`,children:(t,n)=>{g();var r=e(`Generate Week`);a(t,r)},$$slots:{default:!0}})}var l=t(c,2);S(l,{get icon(){return k},href:`/planner`,children:(t,n)=>{g();var r=e(`View Planner`);a(t,r)},$$slots:{default:!0}}),a(n,s)},$$slots:{default:!0}});var J=t(V,2);B(J,{title:`Grocery List`,get image(){return L},description:`Once you have planned out your meals for the upcoming week, you can view a complete grocery shopping list. Take it with you grocery shopping on our mobile app or order your groceries through Instacart, AmazonFresh, or other services straight from your computer.`,children:(t,n)=>{S(t,{get icon(){return E},href:`/groceries/unowned`,children:(t,n)=>{g();var r=e(`View Groceries`);a(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var Y=t(J,2);B(Y,{title:`Your Pantry`,get image(){return z},description:`You can add what ingredients you currently have on hand. This can be used while generating meals to use ingredients you already have, cutting down food waste and saving you money.`,children:(t,n)=>{S(t,{get icon(){return O},href:`/groceries/owned`,children:(t,n)=>{g();var r=e(`View Pantry`);a(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var X=t(Y,2);B(X,{title:`Leftovers`,get image(){return I},description:`Like to cook one large batch and then eat that for multiple meals? With leftovers you can configure when you want to cook and which meals you will cook for.`,children:(t,n)=>{S(t,{get icon(){return D},href:`/settings/leftovers`,children:(t,n)=>{g();var r=e(`Set Up Leftovers`);a(t,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var Z=t(X,2),Q=e=>{var t=K(),n=s(t);M(n,{}),p(t),a(e,t)},$=n(()=>!y());l(Z,e=>{h($)&&e(Q)}),a(r,c),_()}export{J as component};
+//# sourceMappingURL=92.CujHPKLk.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/93.CTPcq1fb.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/93.CTPcq1fb.js
new file mode 100644
index 0000000000000000000000000000000000000000..8496f29c416e313d8dad3581474bded932ca421f
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/93.CTPcq1fb.js
@@ -0,0 +1,3 @@
+import{$ as e,At as t,J as n,Ot as r,U as i,X as a,c as o,cn as s,hn as c,kt as l,mn as u,sn as d}from"../chunks/BhSt9sSe.js";import{R as f,at as p}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as m}from"../chunks/CbUYSPq9.js";import{t as h}from"../chunks/CkihHAIa.js";import{t as g}from"../chunks/XKJvcd3t2.js";import{t as _}from"../chunks/BON7-EQG2.js";import{t as v}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as y}from"../chunks/EMkCxHyW.js";import{t as b}from"../chunks/CJkB_yrk2.js";import{t as x}from"../chunks/BDWS7MW4.js";import{t as S}from"../chunks/3KgrUyHr2.js";var C=a(`
`),w=a(` With an Eat This Much Professional account, you get access to exciting new
+ features.
`,1);function T(a,T){s(T,!1);let E=f();o();var D=w(),O=l(D);v(O,{title:`Professional Features`});var k=t(O,4);S(k,{title:`Manage Clients In One Spot`,get image(){return x},description:`Use the client dashboard to quickly jump between client accounts, make updates, or email plans.`,get show_action(){return E},children:(t,r)=>{p(t,{get icon(){return m},href:`/clients`,children:(t,r)=>{u();var i=e(`View Clients`);n(t,i)},$$slots:{default:!0}})},$$slots:{default:!0}});var A=t(k,2);S(A,{title:`Add Your Own Branding`,get image(){return y},description:`Create a consistent feel with your services by adding your logo to the plans you share. The ETM watermark and logo will be removed from your PDFs.`,get show_action(){return E},children:(t,r)=>{p(t,{get icon(){return _},href:`/account/profile`,children:(t,r)=>{u();var i=e(`Configure Profile`);n(t,i)},$$slots:{default:!0}})},$$slots:{default:!0}});var j=t(A,2);S(j,{title:`Reuse Saved Meal Plans`,get image(){return b},description:`Easily create and manage saved plans to be used with multiple clients.`,get show_action(){return E},children:(t,r)=>{p(t,{get icon(){return h},href:`/all-saved-plans`,children:(t,r)=>{u();var i=e(`View Saved Plans`);n(t,i)},$$slots:{default:!0}})},$$slots:{default:!0}});var M=t(j,2),N=t=>{var i=C(),a=r(i);p(a,{href:`/professional-setup`,style:`primary`,get icon(){return g},children:(t,r)=>{u();var i=e(`Upgrade to Professional`);n(t,i)},$$slots:{default:!0}}),c(i),n(t,i)};i(M,e=>{E||e(N)}),n(a,D),d()}export{T as component};
+//# sourceMappingURL=93.CTPcq1fb.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/95.CAONOKf-.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/95.CAONOKf-.js
new file mode 100644
index 0000000000000000000000000000000000000000..ed31a2e7d72e7ac2d65a4290cc679fcf087dbe0e
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/95.CAONOKf-.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Bt as n,Ct as r,Et as i,J as a,K as o,Ot as s,U as c,X as l,cn as u,gt as d,hn as f,k as p,lt as m,mn as h,sn as g,xn as _}from"../chunks/BhSt9sSe.js";import{Et as v,at as y}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{t as b}from"../chunks/BbCDz64Q.js";import{t as x}from"../chunks/DbcdiBb3.js";import{t as S}from"../chunks/Dejy07Ez2.js";var C=_({load:()=>w});async function w({depends:e,params:t,url:n}){let r=await S({params:t}),{user:i}=await b(e,{params:t,url:n});return{plan:r,user:i}}var T=l(``);function E(l,_){u(_,!0);let b=n(()=>`${_.data.plan.title} Imported`);p(`1grilys`,e=>{d(()=>{i.title=m(b)??``})}),v(l,{get user(){return _.data.user},children:(n,i)=>{var l=T(),u=s(l),d=s(u,!0);f(u);var p=t(u,2);x(p,{});var g=t(p,2),v=s(g),S=t=>{y(t,{href:`/planner`,style:`primary`,children:(t,n)=>{h();var r=e(`Continue to Planner`);a(t,r)},$$slots:{default:!0}})},C=t=>{y(t,{href:`/account-setup`,style:`primary`,children:(t,n)=>{h();var r=e(`Continue to Account Setup`);a(t,r)},$$slots:{default:!0}})};c(v,e=>{_.data.user.initial_signup_complete?e(S):e(C,-1)}),f(g),f(l),r(()=>o(d,m(b))),a(n,l)},$$slots:{default:!0}}),g()}export{E as component,C as universal};
+//# sourceMappingURL=95.CAONOKf-.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/96.C65iULF3.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/96.C65iULF3.js
new file mode 100644
index 0000000000000000000000000000000000000000..2b9607f1499e6c4d05f97e7c5b6b048c58682d45
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/96.C65iULF3.js
@@ -0,0 +1,2 @@
+import{$ as e,At as t,Bt as n,Ct as r,Ft as i,H as a,J as o,K as s,Lt as c,Ot as l,Qt as u,U as d,X as f,Y as p,Zt as m,cn as h,g,hn as _,it as v,kt as y,lt as b,mn as x,sn as S,vn as C,xn as w,z as T}from"../chunks/BhSt9sSe.js";import{r as E}from"../chunks/C8UWmKFm.js";import{Dt as D,Ot as O,Tt as k,at as A,it as j}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import{c as ee,l as M,o as N,s as P,t as F}from"../chunks/CNh6es_b.js";import{t as I}from"../chunks/DzVcsD2j.js";import{n as L}from"../chunks/hnCv5UyG.js";import{t as R}from"../chunks/BFOxw_3A.js";import{a as z,i as B,o as te,t as ne}from"../chunks/DCOeEgRm.js";import{t as re}from"../chunks/BanapObv.js";import{a as ie,i as ae,n as oe,o as se,r as ce,s as le,t as V}from"../chunks/nvigbOhh2.js";import{n as H}from"../chunks/B1cT_TaC2.js";import{t as U}from"../chunks/CLTyeLEa.js";import{a as W,c as G,l as ue,n as K,t as q,u as J}from"../chunks/BtqPi__O.js";import{C as de,I as fe,Z as Y,et as pe,q as X}from"../chunks/Cer-cfCG.js";import{t as me}from"../chunks/BeWss_qm.js";import"../chunks/CBE8YyEJ.js";import{t as he}from"../chunks/CtDUMnLZ.js";import{t as ge}from"../chunks/EMkCxHyW.js";import{t as _e}from"../chunks/CUlQONZr2.js";import{o as ve}from"../chunks/D9lzHozn.js";import{t as ye}from"../chunks/DUFHbvqJ2.js";import{t as be}from"../chunks/AsBhMvcX2.js";var xe=w({load:()=>Se});async function Se({params:e,parent:t}){var n;if((n=e.date)!=null&&n.includes(`~`)){let[t,n]=e.date.split(`~`);if(J(t)&&J(n))return{start:t,end:n}}let r=e.date&&J(e.date)?e.date:q.today(),{user:i}=await t();return ue(i,r)}var Z=f(` `),Ce=f(` `),we=f(` `,1);function Te(e,r){h(r,!0);let i=q.today(),a=O(),s=n(()=>{let e=q.toDate(r.start),t=q.toDate(r.end).getTime()-e.getTime();return Math.round(t/864e5)+1}),c=n(()=>`/planner/${K(r.start,b(s))}~${K(r.end,b(s))}`),u=n(()=>`/planner/${K(r.start,-b(s))}~${K(r.end,-b(s))}`),f=n(()=>{function e(e){return r.start<=e&&e<=r.end}return b(s)===7?e(i)?`This Week`:e(K(i,-7))?`Last Week`:e(K(i,7))?`Next Week`:`Week of ${W(r.start)}`:`${W(r.start)} to ${W(r.end)}`});async function p({start:e,end:t}){let n=k(a,`/planner/${e}~${t}`);await E(n)}me(e,{get title(){return b(f)},renderTitle:e=>{var t=Z(),n=l(t);ye(n,{get title(){return b(f)},get start(){return r.start},get end(){return r.end},onchange:p}),_(t),o(e,t)},nav:e=>{var n=Ce(),r=l(n);j(r,{get icon(){return R},get href(){return b(u)},label:`Previous Week`});var i=t(r,2);j(i,{get icon(){return re},get href(){return b(c)},label:`Next Week`}),_(n),o(e,n)},actions:e=>{var i=we(),a=y(i),s=e=>{P(e,{get icon(){return I},label:`Generate Week`,type:`GENERATE`})},c=n(()=>ne(`REGENERATE_WEEK`));d(a,e=>{b(c)&&e(s)});var l=t(a,2);P(l,{get icon(){return M},label:`Customize Appearance`,type:`SETTINGS`});var u=t(l,2);ie(u,{get start(){return r.start},get end(){return r.end}}),o(e,i)},$$slots:{renderTitle:!0,nav:!0,actions:!0}}),S()}var Ee=f(` `,1),De=f(` Start planning your upcoming meals
`,1);function Oe(i,a){h(a,!0);let c=O(),u=n(()=>a.date&&H(X(c,a.date))),f=n(()=>{var e;return a.date&&H(Y((e=b(u))==null?void 0:e.diet))}),m=n(()=>{var e;return(e=b(f))==null?void 0:e.meals.some(e=>{var t;return(t=pe(e))==null?void 0:t.foods.length})});var C=p(),w=y(C),T=e=>{var n=Ee(),i=y(n),c=l(i,!0);_(i);var u=t(i,2);N(u,{get diet_uri(){return b(f).resource_uri},tracked:!1}),r(e=>s(c,e),[()=>le(a.date)]),o(e,n)},E=n=>{var r=De(),i=y(r);g(i,()=>({alt:``,...ge}),void 0,void 0,void 0,`svelte-1cedsxr`);var a=t(i,4),s=l(a);A(s,{get icon(){return M},onclick:()=>{ve({type:`SETTINGS`})},children:(t,n)=>{x();var r=e(`Customize Appearance`);o(t,r)},$$slots:{default:!0}}),_(a),v(i),o(n,r)};d(w,e=>{var t;a.date&&b(m)&&(t=b(f))!=null&&t.resource_uri?e(T):e(E,-1)}),o(i,C),S()}var ke=` `,Q=c(!1),$=f(` `,1),Ae=f(` `,1);function je(c,l){h(l,!0);let f=()=>u(z,`$appearance`,g),[g,_]=m(),v=n(()=>l.data.start),w=n(()=>l.data.end),E=O(),k=q.today(),j=n(()=>!D()&&b(w)>k?G(b(v),k):G(b(v),b(w))),M=n(()=>b(Q)||b(w){let e=L();return typeof e==`string`&&b(v)<=e&&e<=b(w)?e:null});te(()=>({page:`PLAN`,...f()}));var P=p(),I=y(P);a(I,()=>b(v),a=>{{let c=e=>{Oe(e,{get date(){return b(N)}})},l=(e,t=C)=>{var n=p(),r=y(n),i=e=>{F(e,{get appearance(){return z},include_layout:!0})},a=e=>{V(e,{get start(){return b(v)},get end(){return b(w)},get pane(){return t()}})};d(r,e=>{t().type===`SETTINGS`?e(i):e(a,-1)}),o(e,n)},u=n(()=>B.layout===`LIST`),f=n(()=>B.layout===`GRID`);_e(a,{get narrow(){return b(u)},get overlay(){return b(f)},placeholder:c,routing:l,children:(a,c)=>{var l=Ae(),u=y(l);Te(u,{get start(){return b(v)},get end(){return b(w)}});var f=t(u,2);oe(f,{});var m=t(f,2),h=a=>{let c=n(()=>b(j).filter(e=>e{var l=$(),u=y(l),f=t=>{var n=e(`One past date is hidden`);o(t,n)},p=t=>{var n=e();r(()=>s(n,`${b(c)??``} past dates are hidden`)),o(t,n)};d(u,e=>{b(c)===1?e(f):e(p,-1)});var m=t(u,2);A(m,{get icon(){return ke},onclick:()=>i(Q,!0),style:`text`,children:(t,n)=>{x();var r=e(`Show`);o(t,r)},$$slots:{default:!0}}),o(n,l)},$$slots:{default:!0}})};d(m,e=>{b(M)||e(h)});var g=t(m,2);ce(g,{get start(){return b(v)},get end(){return b(w)},children:(e,r)=>{be(e,{children:(e,r)=>{var i=$(),a=y(i);T(a,18,()=>b(j),e=>e,(e,t,r)=>{var i=p(),a=y(i),s=e=>{U(e,{children:(e,i)=>{let a=n(()=>H(X(E,t))),s=n(()=>{var e;return H(Y((e=b(a))==null?void 0:e.diet))}),c=n(()=>fe(E,()=>de(E,t)));var l=p(),u=y(l),f=e=>{{let i=e=>{se(e,{get calendar_day(){return b(a)},get date(){return t},get diet(){return b(s)},get generate(){return b(c)},show_date:!0})},o=n(()=>t>=k),l=n(()=>t===k);ee(e,{get diet(){return b(s)},get index(){return b(r)},get is_future(){return b(o)},get is_today(){return b(l)},get generate(){return b(c)},header:i,$$slots:{header:!0}})}};d(u,e=>{b(a)&&b(s)&&e(f)}),o(e,l)},$$slots:{default:!0}})};d(a,e=>{(b(M)||t>=k)&&e(s)}),o(e,i)});var s=t(a,2),c=e=>{U(e,{children:(e,t)=>{ae(e,{})},$$slots:{default:!0}})},l=n(()=>!D()&&b(w)>=k);d(s,e=>{b(l)&&e(c)}),o(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}}),o(a,l)},$$slots:{placeholder:!0,routing:!0,default:!0}})}}),o(c,P),S(),_()}export{je as component,xe as universal};
+//# sourceMappingURL=96.C65iULF3.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/99.5lqNSXKc.js b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/99.5lqNSXKc.js
new file mode 100644
index 0000000000000000000000000000000000000000..d9ad2eb2c2ddf37f8e84dc3fdf5d99ae1e89c1eb
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/immutable/nodes/99.5lqNSXKc.js
@@ -0,0 +1,6 @@
+import{$ as e,At as t,B as n,Bt as r,Ct as i,Ft as a,J as o,K as s,Lt as c,M as l,Ot as u,U as d,X as f,Y as p,_ as m,b as h,cn as g,hn as _,kt as v,lt as y,mn as b,p as x,s as S,sn as C,wt as w,z as T}from"../chunks/BhSt9sSe.js";import{Ot as E,Z as D}from"../chunks/gotDHXHr.js";import"../chunks/xihTtKlq.js";import"../chunks/Bx99Pxiq.js";import{t as O}from"../chunks/BBbGtOhS.js";import{t as k}from"../chunks/DEgMoMXi.js";import{u as A}from"../chunks/CxRGiBH-2.js";import{t as j}from"../chunks/B9fg6oGg2.js";import{t as M}from"../chunks/D981sS0w2.js";import{n as N}from"../chunks/B1cT_TaC2.js";import{i as P,o as F}from"../chunks/D2IZisAi2.js";import{t as I}from"../chunks/CLTyeLEa.js";import{t as L}from"../chunks/LtYjoJmG2.js";import{i as R,n as z,t as B}from"../chunks/B6Qcxm1X.js";import{t as V}from"../chunks/D5_aRWCh2.js";import{a as H,i as U,n as W,o as G,r as K,s as q,t as J}from"../chunks/DQfSipwY2.js";var Y=f(` `),X=f(`Add Custom Exclusions
`,1);function Z(r,l){g(l,!0);let d=c(``),f=p();function p(){return H.map(e=>e.common?[]:[e.title,...e.foods]).flat().sort()}function h(){if(y(d)){let e=y(d).split(`,`).map(e=>e.trim()).filter(e=>e).map(M).reduce(W,l.generator_settings.exclusions);R(l.generator_settings.resource_uri,{exclusions:e}),a(d,``)}}D(r,{onSubmit:h,children:(r,c)=>{var l=X(),p=t(v(l),2),h=u(p);m(h);var g=t(h,2);k(g,{get icon(){return O},children:(t,n)=>{b();var r=e(`Add`);o(t,r)},$$slots:{default:!0}}),_(p);var S=t(p,2);T(S,21,()=>f,n,(e,t,n,r)=>{var a=Y(),c=u(a,!0);_(a);var l={};i(()=>{s(c,y(t)),l!==(l=y(t))&&(a.value=(a.__value=y(t))??``)}),o(e,a)}),_(S),x(h,()=>y(d),e=>a(d,e)),o(r,l)},$$slots:{default:!0}}),C()}var Q=f(` `,1);function $(e,i){g(i,!0);let a=r(()=>{var e;return((e=V.find(e=>e.value===i.generator_settings.preset_diet))==null?void 0:e.excludes)??[]}),s=r(()=>i.generator_settings.exclusions.filter(e=>!K(y(a),e))),c=A();async function l(e){let t=e.currentTarget;await R(i.generator_settings.resource_uri,{exclusions:U(i.generator_settings.exclusions,t.value)})}var u=Q(),f=v(u),m=e=>{q(e,{title:`Excluded by Diet`,children:(e,t)=>{var r=p(),i=v(r);T(i,17,()=>y(a),n,(e,t)=>{G(e,{checked:!0,disabled:!0,get value(){return y(t)}})}),o(e,r)},$$slots:{default:!0}})};d(f,e=>{y(a).length&&e(m)});var h=t(f,2),_=e=>{q(e,{title:`Your Exclusions`,children:(e,t)=>{var r=p(),i=v(r);T(i,17,()=>y(s),n,(e,t)=>{G(e,{checked:!0,get disabled(){return c},get value(){return y(t)},onclick:l})}),o(e,r)},$$slots:{default:!0}})};d(h,e=>{y(s).length&&e(_)}),o(e,u),C()}var ee=f(``);function te(e,n){g(n,!0);let r=F.of(()=>100-n.variety),f=c(!1);w(()=>{r.target>0&&a(f,!0)});var m=p(),b=v(m),x=e=>{var n=ee(),a=t(u(n),2),c=u(a);_(a);var d=t(a,2),f=u(d);_(d),_(n),i((e,t)=>{s(c,`You have excluded ${e??``}% of the available recipes.`),h(d,r.current),s(f,`${t??``}%`)},[()=>j(r.target),()=>j(r.target)]),l(3,n,()=>P),o(e,n)};d(b,e=>{y(f)&&e(x)}),o(e,m),C()}var ne=f(` `,1),re=f(` `,1);function ie(e,i){g(i,!0);let a=E(),s=A(),c=r(()=>N(z(a))),l=r(()=>N(B(a)));var u=p(),f=v(u),m=e=>{var r=re(),i=v(r);$(i,{get generator_settings(){return y(c)}});var a=t(i,2),u=e=>{var r=ne(),i=v(r);Z(i,{get generator_settings(){return y(c)}});var a=t(i,2),s=e=>{te(e,{get variety(){return y(l)}})};d(a,e=>{y(l)!==void 0&&e(s)});var u=t(a,4);T(u,17,()=>H,n,(e,t)=>{J(e,S(()=>y(t),{get generator_settings(){return y(c)}}))}),o(e,r)};d(a,e=>{s||e(u)}),o(e,r)};d(f,e=>{y(c)&&e(m)}),o(e,u),C()}var ae=f(` Add "exclusions" to filter recipes based on their titles or ingredients.
+ Recipes matching these exclusions won't appear in your meal plans.
Don't see the exclusion you're looking for? You can create a custom keyword
+ exclusion. Tip: If an ingredient isn't strictly an allergy or strong dislike,
+ consider allowing it for more recipe variety. It's often easy to leave out or
+ substitute minor ingredients and garnishes when preparing the meal.
`,1);function oe(e){var n=ae(),r=v(n);L(r,{title:`Food Exclusions`});var i=t(r,6);I(i,{children:(e,t)=>{ie(e,{})},$$slots:{default:!0}}),o(e,n)}export{oe as component};
+//# sourceMappingURL=99.5lqNSXKc.js.map
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/app/_app/version.json b/tasks/eatthismuch/environment/reference/clone/static/app/_app/version.json
new file mode 100644
index 0000000000000000000000000000000000000000..c74b94b3663b0a42a8d88a76074f3a4385972b24
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/app/_app/version.json
@@ -0,0 +1 @@
+{"version": "1787182404321"}
\ No newline at end of file
diff --git a/tasks/eatthismuch/environment/reference/clone/static/clone/stripe/dahlia/stripe.js b/tasks/eatthismuch/environment/reference/clone/static/clone/stripe/dahlia/stripe.js
new file mode 100644
index 0000000000000000000000000000000000000000..0c9115a3eb06a5f1d5a24b76b586f6e44c88ac85
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/clone/stripe/dahlia/stripe.js
@@ -0,0 +1,166 @@
+/* offline-clone: js.stripe.com/dahlia/stripe.js 的本地替身。
+ *
+ * 为什么需要它
+ * ------------
+ * chunks/qBLqlIPz.js(源站自己的代码,@stripe/stripe-js 9.13.0)在模块加载时
+ * 就无条件跑 `Promise.resolve().then(loadStripe)`,而 loadStripe 是运行时
+ * `document.createElement('script')` 注入的——静态标记里 grep 不到它。
+ * 不管它,离线包每次打开 /app/upgrade 都会往 js.stripe.com 发一次请求
+ * (外发请求必须清零),而且脚本加载失败后 `z()` 会抛 "Stripe did not load",
+ * 整个「Billing Information」区块塌成 "An error has occurred."。
+ *
+ * 这个文件只实现 qBLqlIPz.js 真正调用到的那几个方法,不多做一件事:
+ *
+ * Stripe(pk, opts) -> { elements, confirmSetup, createPaymentMethod }
+ * elements(opts) -> { create, update, submit }
+ * element -> { mount, unmount, on('ready'|'change') }
+ *
+ * 为什么挂的是说明位而不是一张卡号表单
+ * ------------------------------------
+ * 源站那块是 Stripe 的跨域 iframe,取证根本拿不到它的标记;照着截图捏一张出来
+ * 就是伪造证据。所以这里挂的是一块写明边界的说明位——和站外链接落到
+ * /external/{host} 是同一个做法:这条路确实通向某处,只是那个某处不在离线包里。
+ *
+ * change 事件永远报 complete:false,"Start Free Trial" 因此保持禁用:
+ * 离线包里不存在能被点出去的真实交易路径。
+ */
+(function () {
+ 'use strict';
+
+ var NOTICE_STYLE = [
+ 'border:1px dashed currentColor',
+ 'border-radius:0.3rem',
+ 'padding:0.9rem 1rem',
+ 'font-size:0.9rem',
+ 'line-height:1.45',
+ 'opacity:0.85',
+ ].join(';');
+
+ function render(container) {
+ var box = document.createElement('div');
+ box.className = 'offline-clone-payment-boundary';
+ box.setAttribute('role', 'note');
+ box.setAttribute('data-offline-clone', 'payment-boundary');
+ box.setAttribute('style', NOTICE_STYLE);
+
+ var title = document.createElement('strong');
+ title.textContent = 'Card form not included in this offline clone';
+ var body = document.createElement('p');
+ body.setAttribute('style', 'margin:0.45rem 0 0');
+ body.textContent =
+ 'The live site mounts a Stripe Elements iframe here, served from ' +
+ 'js.stripe.com. This clone makes no outbound requests and runs no real ' +
+ 'transaction, so the slot carries this boundary note instead of a ' +
+ 'reconstructed payment form. Everything else on this page is the real ' +
+ 'thing: plans, prices and copy all come from the captured site.';
+
+ box.appendChild(title);
+ box.appendChild(body);
+ container.appendChild(box);
+ return box;
+ }
+
+ function makeElement() {
+ var handlers = {};
+ var node = null;
+ var el = {
+ mount: function (target) {
+ var container =
+ typeof target === 'string' ? document.querySelector(target) : target;
+ if (container) node = render(container);
+ // ready 必须真的发出去:消费方 await 的就是它,不发它那边一直挂着。
+ setTimeout(function () {
+ emit('ready', {elementType: 'payment'});
+ emit('change', {elementType: 'payment', complete: false, empty: true});
+ }, 0);
+ return el;
+ },
+ unmount: function () {
+ if (node && node.parentNode) node.parentNode.removeChild(node);
+ node = null;
+ return el;
+ },
+ destroy: function () {
+ return el.unmount();
+ },
+ on: function (name, fn) {
+ (handlers[name] = handlers[name] || []).push(fn);
+ return el;
+ },
+ off: function (name, fn) {
+ var list = handlers[name] || [];
+ var i = list.indexOf(fn);
+ if (i >= 0) list.splice(i, 1);
+ return el;
+ },
+ update: function () {
+ return el;
+ },
+ focus: function () {
+ return el;
+ },
+ blur: function () {
+ return el;
+ },
+ };
+ function emit(name, event) {
+ (handlers[name] || []).forEach(function (fn) {
+ try {
+ fn(event);
+ } catch (err) {
+ /* 一个监听器炸了不该带塌其他监听器 */
+ }
+ });
+ }
+ return el;
+ }
+
+ var SANDBOX_ERROR = {
+ type: 'invalid_request_error',
+ code: 'offline_clone_no_transaction',
+ message:
+ 'This offline clone does not run payments. No request left the machine.',
+ };
+
+ function Stripe() {
+ return {
+ elements: function () {
+ return {
+ create: function () {
+ return makeElement();
+ },
+ getElement: function () {
+ return null;
+ },
+ update: function () {},
+ fetchUpdates: function () {
+ return Promise.resolve({});
+ },
+ submit: function () {
+ return Promise.resolve({error: SANDBOX_ERROR});
+ },
+ };
+ },
+ confirmSetup: function () {
+ return Promise.resolve({error: SANDBOX_ERROR});
+ },
+ confirmPayment: function () {
+ return Promise.resolve({error: SANDBOX_ERROR});
+ },
+ createPaymentMethod: function () {
+ return Promise.resolve({error: SANDBOX_ERROR});
+ },
+ retrieveSetupIntent: function () {
+ return Promise.resolve({error: SANDBOX_ERROR});
+ },
+ _registerWrapper: function () {},
+ };
+ }
+
+ // @stripe/stripe-js 会拿 Stripe.version 和它期望的 'dahlia' 比对,
+ // 对不上就 console.warn。报出这个版本只是为了别在控制台里制造噪音。
+ Stripe.version = 'dahlia';
+ Stripe.registerAppInfo = function () {};
+
+ window.Stripe = window.Stripe || Stripe;
+})();
diff --git a/tasks/eatthismuch/environment/reference/clone/static/www/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js b/tasks/eatthismuch/environment/reference/clone/static/www/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..725b7c678f4ee3e7a42d5c449ae9bdd2336b3f27
--- /dev/null
+++ b/tasks/eatthismuch/environment/reference/clone/static/www/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js
@@ -0,0 +1 @@
+!function(){"use strict";function e(e){try{if("undefined"==typeof console)return;"error"in console?console.error(e):console.log(e)}catch(e){}}function t(e){return d.innerHTML=' ',d.childNodes[0].getAttribute("href")||""}function r(e,t){var r=e.substr(t,2);return parseInt(r,16)}function n(n,c){for(var o="",a=r(n,c),i=c+2;i-1&&(o.href="mailto:"+n(o.href,a+l.length))}catch(i){e(i)}}function o(t){for(var r=t.querySelectorAll(u),c=0;c