From c5528af2b1bfff2efec0b571bea3758f91628194 Mon Sep 17 00:00:00 2001 From: bodobraegger Date: Fri, 12 Jan 2024 15:48:43 +0000 Subject: [PATCH] deploy: 76981c95a9adff941eaaa2fff310b8f7268ab1f8 --- assets/{index-8ce42411.js => index-e8624ecc.js} | 2 +- index.html | 2 +- sw.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename assets/{index-8ce42411.js => index-e8624ecc.js} (99%) diff --git a/assets/index-8ce42411.js b/assets/index-e8624ecc.js similarity index 99% rename from assets/index-8ce42411.js rename to assets/index-e8624ecc.js index a580477..8bc4555 100644 --- a/assets/index-8ce42411.js +++ b/assets/index-e8624ecc.js @@ -167,7 +167,7 @@ Error generating stack: `+a.message+` `,now:{line:1,column:1},lineShift:0});return r&&r.charCodeAt(r.length-1)!==10&&r.charCodeAt(r.length-1)!==13&&(r+=` `),r;function i(a){return n.stack.push(a),o;function o(){n.stack.pop()}}}function GF(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function KF(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}function QF(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function YF(e,t){return oh(e,this,t)}function ZF(e,t){return Hy(e,this,t)}function XF(e,t){return fp(this,e,t)}function JF(e){Object.assign(this,{Compiler:n=>{const r=this.data("settings");return qF(n,Object.assign({},r,e,{extensions:this.data("toMarkdownExtensions")||[]}))}})}const eD=K2().use(fy).use(JF).freeze();function tD({t:e,keyword:t,onChange:n,onKeyDown:r,tooltipDirection:i}){const a=R.useRef(null);return B.jsx("div",{className:"position-relative ",children:B.jsxs("form",{role:"search",className:"d-flex",onSubmit:o=>{var l,s;o.preventDefault(),(l=a.current)==null||l.focus(),console.log(a.current),(s=a.current)==null||s.dispatchEvent(new KeyboardEvent("keypress",{key:"Enter"}))},children:[B.jsx("meta",{name:"viewport",content:"width=device-width initial-scale=1"}),B.jsxs("label",{className:"text-normal ",children:[B.jsx("span",{className:"visually-hidden",children:e("searchPage.searchPlaceholder")}),B.jsx(ON,{defaultValue:t,onChange:n,onKeyDown:r,ref:a,required:!0,onInvalid:o=>o.target.setCustomValidity("Please enter a search query."),type:"search",onInput:o=>o.target.setCustomValidity(""),placeholder:e("searchPage.searchPlaceholder"),maxLength:512,sx:{width:"100%",height:"2rem",transition:"width 0.3s ease-in-out",borderBottomRightRadius:"unset",borderTopRightRadius:"unset",borderRight:"none"}})]}),B.jsx(ga,{"aria-label":e("searchPage.tooltip"),direction:i||"n",children:B.jsx(Qi,{className:"AppHeader-button color-fg-muted","aria-label":e("searchPage.tooltip"),icon:tx,sx:{borderTopLeftRadius:"unset",borderBottomLeftRadius:"unset"}})})]})})}const mk=Jt()(tD);function nD({t:e,sections:t,minKeyWordLength:n=3}){const r=Or(),i=ql(),[a,o]=R.useState(""),[l,s]=R.useState([]),[u,c]=R.useState(),[f,d]=R.useState(!1),g=R.useMemo(()=>t.reduce((h,b)=>h.concat(b.chapters),[]),[t]);R.useEffect(()=>{const b=new URLSearchParams(r.search).get("keyword");b&&o(b)},[r.search]),R.useEffect(()=>{(()=>{if(d(!0),u&&clearTimeout(u),!a||a.length{const b=await Promise.all(g.filter(S=>sF.matches(a,[S.title,S.content])).map(async S=>{const T=await m(a,S.content);return{id:S.id,title:S.title,matchingContents:T,slug_with_section:S.slug_with_section,section:t.find(E=>E.id===S.section)}}));s(b),d(!1);const v=new URLSearchParams(r.search);v.get("keyword")!==a&&(v.set("keyword",a),i({search:v.toString()}))},500))})()},[a,g]);const p=h=>{var b;o(((b=h.currentTarget)==null?void 0:b.value)??"")},m=(h,b)=>eD().use(fF).process(b).then(S=>{let E=[...String(S).matchAll(new RegExp(`[^.!?:;# ]*(?=${h}).*?[.!? -](?=s?|$)`,"gmi"))].reduce((O,P)=>O.concat(P),[]);return E=[...new Set(E)],E=E.map(O=>O.replace(new RegExp(h,"gi"),"**$&**")),E}),y=()=>f?null:a.length>=n?l.length>0?l.map(h=>B.jsxs("div",{className:"search-result border rounded",children:[B.jsxs("div",{className:"title-match",children:[B.jsx(Cn,{to:`/${h.section.slug}`,children:h.section.title})," / ",B.jsx(Cn,{to:`/${h.slug_with_section}`,children:h.title})]}),h.matchingContents.length>0?B.jsx("div",{className:"content-match",children:h.matchingContents.map((b,v)=>B.jsx(go,{remarkPlugins:[Yl],components:Xl,children:b,className:"border-bottom"},v))}):null]},h.id)):B.jsx("div",{children:e("searchPage.noResults")}):B.jsxs("div",{children:[" ",e("searchPage.noKeyword",{amountOfCharacters:n})]});return B.jsxs(B.Fragment,{children:[B.jsx(mk,{keyword:a,onChange:p}),B.jsx("br",{}),B.jsx(ex,{isLoading:f}),B.jsx("div",{className:"search-results",children:y()})]})}const rD=Jt()(nD);function iD({page:e,sections:t,t:n}){const r=e;return B.jsxs("div",{className:"content",children:[B.jsx(gi,{children:B.jsx("title",{children:n("searchPage.title")})}),B.jsxs("div",{className:"search",children:[B.jsx("h1",{className:"mb-4",children:n("searchPage.title")}),B.jsx(go,{remarkPlugins:[Yl],components:Xl,children:r.content}),B.jsx(rD,{sections:t})]})]})}const aD=Jt()(iD),oD=({t:e,xs:t,mediumOrLower:n})=>{const r=ql(),i=Or(),a={de:{name:"Deutsch"},fr:{name:"Français"},it:{name:"Italiano"}},o=Object.keys(a),l=ft.language,s=a[l];if(o.length<2)return null;const u=(f,d,g)=>{let p=!1;const m=d.pathname.replace("/",""),y=g.find(h=>h.slug===m);ft.changeLanguage(f).then(h=>{if(m==="impressum"){p=!0;return}let b=window.localStorage.getItem(`sections_${f}`),v=[];if(b!==null)v=JSON.parse(b);else{console.error("No sections found in local storage");return}if(y){const S=v.find(T=>T.sorting===y.sorting);if(v&&S){const T=v.find(E=>E.sorting===S.sorting);T&&(p=!0,r("/"+T.slug))}}p||r("/")})},c=o.map(f=>B.jsx(it.Item,{selected:f===l,onSelect:()=>{if(f)try{u(f,i,window.sections)}catch(d){console.warn("Unable to set preferred language",d)}},children:B.jsx("span",{children:B.jsx(Cn,{to:f,className:"color-fg-default",children:a[f].name})})},`/${f}`));return B.jsx("div",{className:"d-flex",children:t?B.jsx(B.Fragment,{children:B.jsxs(kn,{children:[B.jsx(kn.Anchor,{children:B.jsxs(kn.Button,{className:"width-full mb-3","aria-label":`Select language: current language is ${s.name}`,sx:{height:"auto",textAlign:"left","span:first-child":{display:"inline"}},children:[B.jsx("span",{style:{whiteSpace:"pre-wrap"},children:e("languagePicker.tooltip")+` +](?=s?|$)`,"gmi"))].reduce((O,P)=>O.concat(P),[]);return E=[...new Set(E)],E=E.map(O=>O.replace(new RegExp(h,"gi"),"**$&**")),E}),y=()=>f?null:a.length>=n?l.length>0?l.map(h=>B.jsxs("div",{className:"search-result border rounded",children:[B.jsxs("div",{className:"title-match",style:{color:h.section.color_primary},children:[B.jsx(Cn,{to:`/${h.section.slug}`,className:"color-fg-inherit",children:h.section.title})," / ",B.jsx(Cn,{to:`/${h.slug_with_section}`,className:"color-fg-inherit",children:h.title})]}),h.matchingContents.length>0?B.jsx("div",{className:"content-match",children:h.matchingContents.map((b,v)=>B.jsx(go,{remarkPlugins:[Yl],components:Xl,children:b,className:"border-bottom"},v))}):null]},h.id)):B.jsx("div",{children:e("searchPage.noResults")}):B.jsxs("div",{children:[" ",e("searchPage.noKeyword",{amountOfCharacters:n})]});return B.jsxs(B.Fragment,{children:[B.jsx(mk,{keyword:a,onChange:p}),B.jsx("br",{}),B.jsx(ex,{isLoading:f}),B.jsx("div",{className:"search-results",children:y()})]})}const rD=Jt()(nD);function iD({page:e,sections:t,t:n}){const r=e;return B.jsxs("div",{className:"content",children:[B.jsx(gi,{children:B.jsx("title",{children:n("searchPage.title")})}),B.jsxs("div",{className:"search",children:[B.jsx("h1",{className:"mb-4",children:n("searchPage.title")}),B.jsx(go,{remarkPlugins:[Yl],components:Xl,children:r.content}),B.jsx(rD,{sections:t})]})]})}const aD=Jt()(iD),oD=({t:e,xs:t,mediumOrLower:n})=>{const r=ql(),i=Or(),a={de:{name:"Deutsch"},fr:{name:"Français"},it:{name:"Italiano"}},o=Object.keys(a),l=ft.language,s=a[l];if(o.length<2)return null;const u=(f,d,g)=>{let p=!1;const m=d.pathname.replace("/",""),y=g.find(h=>h.slug===m);ft.changeLanguage(f).then(h=>{if(m==="impressum"){p=!0;return}let b=window.localStorage.getItem(`sections_${f}`),v=[];if(b!==null)v=JSON.parse(b);else{console.error("No sections found in local storage");return}if(y){const S=v.find(T=>T.sorting===y.sorting);if(v&&S){const T=v.find(E=>E.sorting===S.sorting);T&&(p=!0,r("/"+T.slug))}}p||r("/")})},c=o.map(f=>B.jsx(it.Item,{selected:f===l,onSelect:()=>{if(f)try{u(f,i,window.sections)}catch(d){console.warn("Unable to set preferred language",d)}},children:B.jsx("span",{children:B.jsx(Cn,{to:f,className:"color-fg-default",children:a[f].name})})},`/${f}`));return B.jsx("div",{className:"d-flex",children:t?B.jsx(B.Fragment,{children:B.jsxs(kn,{children:[B.jsx(kn.Anchor,{children:B.jsxs(kn.Button,{className:"width-full mb-3","aria-label":`Select language: current language is ${s.name}`,sx:{height:"auto",textAlign:"left","span:first-child":{display:"inline"}},children:[B.jsx("span",{style:{whiteSpace:"pre-wrap"},children:e("languagePicker.tooltip")+` `}),B.jsx("span",{className:"color-fg-muted text-normal f6",children:s.name})]})}),B.jsx(kn.Overlay,{align:"end",children:B.jsx(it,{selectionVariant:"single",children:c})})]})}):n?B.jsx(it,{className:"hide-sm width-full",selectionVariant:"single",children:B.jsx(it.Group,{title:e("languagePicker.tooltip"),children:c})}):B.jsxs(kn,{children:[B.jsx(kn.Anchor,{children:B.jsx(ga,{"aria-label":e("languagePicker.tooltip"),direction:"s",children:B.jsx(Qi,{icon:pE,"aria-label":`${e("languagePicker.tooltip")}: ${s.name}`})})}),B.jsx(kn.Overlay,{align:"end",children:B.jsx(it,{selectionVariant:"single",children:c})})]})})},m2=Jt()(oD);function bk(e){const t=Or(),r=window.sections.map(function(l,s){const u=t.pathname.replace("/","")===l.slug,c=`nav_item_${l.sorting}_${l.slug}`,d=l.chapters.sort(function(g,p){return g.sorting-p.sorting}).map(function(g){const p=t.hash.replace("#","")===g.slug,m=`subnav_item_${g.sorting}_${g.slug_with_section}`;return B.jsxs(ni.Item,{className:Qt("ml-4",`${g.slug_with_section}`),style:{color:l.color_primary},id:m,as:Cn,to:`${g.slug_with_section}`,children:[B.jsx(ni.LeadingVisual,{style:{color:l.color_primary},children:p?B.jsx(cE,{}):B.jsx(uE,{})}),B.jsx("span",{className:Qt(p&&"text-bold"),style:{color:l.color_primary},children:g.menu_name})]},m)});return B.jsxs(ni.Item,{id:c,className:Qt(l.slug,u&&"active"),"aria-current":u&&"page","aria-expanded":u,as:Cn,to:l.slug,children:[B.jsxs(ni.LeadingVisual,{style:{color:l.color_primary},children:[l.icon&&B.jsx("img",{className:"icon",src:l.icon.url,alt:"icon",style:{width:"18px"}}),!l.icon&&B.jsx(bE,{})]}),d.length>0?B.jsx(fS,{as:Cn,to:l.slug,children:B.jsx(Ml,{title:l.menu_name,as:"span",className:Qt("d-inline-block",u&&"text-bold"),maxWidth:200,style:{color:l.color_primary},children:l.menu_name})}):B.jsx(Ml,{title:l.menu_name,as:"span",className:Qt("d-inline-block",u&&"text-bold"),maxWidth:200,style:{color:l.color_primary},children:l.menu_name}),d.length>0&&B.jsx(ni.SubNav,{children:d})]},c)});var a=t.pathname==="/"?"home active":"home";const o=e.variant;return B.jsxs("div",{"data-container":"nav",style:{minWidth:"261px",minHeight:"var(--sticky-pane-height)"},className:Qt(o==="full"?"position-sticky d-xxl-block d-lg-block d-none border-right height-full color-border-subtle":""),children:[B.jsxs(ni,{children:[B.jsxs(ni.Item,{as:Cn,to:"/",className:Qt(a),children:[B.jsx(ni.LeadingVisual,{children:B.jsx(gE,{})}),"Home"]}),r]}),B.jsx("div",{className:Qt(o==="overlay"?"d-xxl-none":"d-none d-lg-block d-xxl-block")})]})}const lD="_header_kglax_1",sD="_portalRoot_kglax_5",uD="_widgetsContainer_kglax_9",cD="_searchContainerWithClosedSearch_kglax_18",fD="_searchContainerWithOpenSearch_kglax_27",dD="_logoWithClosedSearch_kglax_36",pD="_logoWithOpenSearch_kglax_42",gD="_menuOverlay_kglax_53",b2={header:lD,portalRoot:sD,widgetsContainer:uD,searchContainerWithClosedSearch:cD,searchContainerWithOpenSearch:fD,logoWithClosedSearch:dD,logoWithOpenSearch:pD,menuOverlay:gD},hD=({t:e})=>{const[t,n]=R.useState(!1),[r,i]=R.useState(!1),a=R.useCallback(()=>i(!0),[]),o=R.useCallback(()=>i(!1),[]),[l,s]=R.useState(!1),{width:u}=v(),c=R.useRef(null),f=[{id:"auto",name:e("header.theme_auto_name")},{id:"light",name:e("header.theme_light_name")},{id:"dark",name:e("header.theme_dark_name")}],{setColorMode:d}=as(),[g,p]=R.useState(f[1]),m=Or(),y=ql(),h=m.pathname==="/search",b=S=>{if(S.key==="Enter"){const T=S.currentTarget.value,E="/search";if(m.pathname!==E){const O={pathname:E,search:""};(T==null?void 0:T.length)>0&&(O.search=`keyword=${T}`),y(O)}else y({search:`keyword=${T}`});S.currentTarget.value="",o()}};R.useEffect(()=>{const S=document.querySelector("body");S==null||S.setAttribute("data-color-mode",g.id)},[g.id]),R.useEffect(()=>{function S(){n(window.scrollY>10)}return window.addEventListener("scroll",S),()=>{window.removeEventListener("scroll",S)}},[]),R.useEffect(()=>{const S=document.querySelector("body div"),T=document.querySelector("body");S&&T&&(T.style.overflow=r&&u&&u<1280?"hidden":"auto")},[r,u]),R.useEffect(()=>{const S=()=>{i(!1)};return window.addEventListener("hashchange",S),()=>{window.removeEventListener("hashchange",S)}},[]);function v(){const S=typeof window<"u",T=R.useCallback(()=>({width:S?window.innerWidth:null}),[S]),[E,O]=R.useState(T());return R.useEffect(()=>{if(S){const P=function(){O(T())};return window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)}},[S,T]),E}return B.jsx(B.Fragment,{children:B.jsx("header",{className:Qt("AppHeader","z-1 sections position-sticky top-0"),role:"banner","aria-label":"Main",children:B.jsxs("div",{className:Qt("d-flex flex-items-center p-3"),children:[B.jsx(Qi,{className:Qt("AppHeader-button hide-xxl mr-3 color-fg-muted"),icon:vE,"aria-label":"Open Sidebar",onClick:a,ref:c,sx:l?{"@media (max-width: 400px)":{display:"none"}}:{}}),B.jsxs(Qv,{returnFocusRef:c,isOpen:r,onDismiss:o,"aria-labelledby":"sidebar-overlay-header",className:` rounded-0 rounded-right-3 position-fixed top-0 left-0 `,sx:{marginTop:"0",maxHeight:"100vh !important",height:"100vh",width:"auto !important",transform:"none",overflow:"auto"},children:[B.jsx(Qv.Header,{id:"sidebar-overlay-header",children:e("sideBarNav.title")}),B.jsx(bk,{startPageMenuName:e("startPage.menuName"),variant:"overlay"})]}),!h&&B.jsx("div",{className:Qt(l?b2.searchContainerWithOpenSearch:b2.searchContainerWithClosedSearch,"mr-3 ml-auto"),children:B.jsx(mk,{onKeyDown:b,tooltipDirection:"s"})}),!h&&B.jsxs(B.Fragment,{children:[B.jsx(Qi,{className:Qt("hide-lg hide-xl AppHeader-button color-fg-muted",l?"d-none":"d-flex flex-items-center ml-auto"),onClick:()=>s(!l),"aria-label":"Open Search Bar","aria-expanded":l?"true":"false",icon:tx}),B.jsx(Qi,{onClick:()=>s(!l),"aria-label":"Close Search Bar","aria-expanded":l?"true":"false",icon:nx,className:"show AppHeader-button color-fg-muted",sx:l?{"@media (min-width: 768px)":{display:"none"}}:{display:"none"}})]}),B.jsx("div",{className:h?"ml-auto":"",children:B.jsx("div",{className:"dotdotdot-nav",children:B.jsxs(kn,{"aria-labelledby":"sidebar-overlay-header",children:[B.jsx(kn.Anchor,{children:B.jsx(Qi,{className:"AppHeader-button color-fg-muted",icon:hE,"aria-label":"Open Menu",sx:l?{marginLeft:"8px",display:"none","@media (min-width: 768px)":{display:"inline-block",marginLeft:"4px"},"@media (min-width: 1012px)":{display:"none"}}:{marginLeft:"16px","@media (min-width: 768px)":{marginLeft:"0"},"@media (min-width: 1012px)":{display:"inline-block"}}})}),B.jsx(kn.Overlay,{align:"start",children:B.jsxs(it,{children:[B.jsx(it.Group,{children:u&&u>544?B.jsx(m2,{mediumOrLower:!0}):B.jsx(m2,{xs:!0})}),B.jsxs(kn,{children:[B.jsxs(kn.Button,{className:"width-full",sx:{textAlign:"left","span:first-child":{display:"inline"}},children:["Theme: ",g.name]}),B.jsx(kn.Overlay,{children:B.jsx(it,{selectionVariant:"single",children:f.map(S=>B.jsx(it.Item,{selected:S.id===g.id,onSelect:()=>{p(S),d(S.id)},children:S.name},S.id))})})]}),B.jsxs(it.Group,{children:[B.jsx(it.Item,{as:Cn,to:"/impressum",children:"Impressum"}),B.jsx(it.Item,{disabled:!0,children:"© 2024 Pfadibewegung Schweiz"})]})]})})]})})})]})})})},mD=Jt()(hD),vk=x.createContext([]);function bD(){const[e,t]=x.useState(null),[n,r]=x.useState(null),[i,a]=x.useState(null),[o,l]=x.useState(null),s=ft.language;async function u(f,d,g){const p=ik.get(`/${f}?_locale=${d}`);Promise.all([p]).then(m=>{let y=m[0].data;y.filter&&(y=y.filter(h=>h.published_at!==null)),g(y),window.localStorage.setItem(`${f}_${d}`,JSON.stringify(y)),console.info(`pulled from strapi - ${f}_${d}`)})}if(R.useEffect(()=>{let f=window.localStorage.getItem(`start-page_${s}`),d=window.localStorage.getItem(`sections_${s}`),g=window.localStorage.getItem(`links_${s}`),p=window.localStorage.getItem("always-reload");p="not-null-during-dev",p===null?(f!==null?(a(JSON.parse(f)),console.info("loaded from local storage - start-page")):u("start-page",s,a),d!==null&&d!=="[]"?(t(JSON.parse(d)),l(JSON.parse(d)),console.info("loaded from local storage - sections")):(u("sections",s,t),u("sections",s,l)),g!==null&&g!=="[]"?(r(JSON.parse(g)),console.info("loaded from local storage - links")):u("links",s,r)):(console.log("always reload is not null! reloading data from strapi..."),u("start-page",s,a),u("sections",s,t),u("sections",s,l),u("links",s,r))},[s]),R.useEffect(()=>{window.history.scrollRestoration="manual"},[]),!e||!n||!i||!o)return null;const c=e.reduce(function(f,d){return f[d.slug]=d,f},{});return lF(e,n),window.sections=e,B.jsx(lR,{colorMode:"light",children:B.jsxs(Pa,{children:[B.jsx(gi,{children:B.jsx("script",{defer:!0,"data-domain":"scout-ch.github.io/thilo",src:"https://plausible.io/js/script.js"})}),B.jsx("div",{className:"App",children:B.jsx(X4,{basename:"/",children:B.jsxs(vk.Provider,{value:n,children:[B.jsx(mD,{}),B.jsxs(Vd,{sx:{padding:"0"},children:[B.jsx(Vd.Content,{children:B.jsxs("main",{id:"main-content",className:"p-3",children:[B.jsxs(G4,{children:[B.jsx(Oa,{path:"/search",element:B.jsx(aD,{page:o,sections:e})}),B.jsx(Oa,{path:"/impressum",element:B.jsx(oF,{})}),B.jsx(Oa,{path:"/:slug",element:B.jsx(UN,{sections:c})}),B.jsx(Oa,{path:"/",element:B.jsx(W1,{page:i})}),B.jsx(Oa,{path:"/thilo/",element:B.jsx(W1,{page:i})})]}),B.jsx(NN,{})]})}),B.jsx(Vd.Pane,{position:"start",sticky:!0,hidden:{narrow:!0,regular:!0,wide:!1},offsetHeader:64,children:B.jsx(bk,{startPageMenuName:"start",variant:"full"})})]})]})})})]})})}const vD=Jt()(bD),yD="modulepreload",xD=function(e){return"/thilo/"+e},v2={},wD=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=xD(a),a in v2)return;v2[a]=!0;const o=a.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===a&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":yD,o||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t()).catch(a=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=a,window.dispatchEvent(o),!o.defaultPrevented)throw a})},SD=e=>{e&&e instanceof Function&&wD(()=>import("./web-vitals-7b71ae84.js"),[]).then(({getCLS:t,getFID:n,getFCP:r,getLCP:i,getTTFB:a})=>{t(e),n(e),r(e),i(e),a(e)})};var yk,y2=A0;yk=y2.createRoot,y2.hydrateRoot;const kD=document.getElementById("root"),CD=yk(kD);CD.render(B.jsx(x.StrictMode,{children:B.jsx(vD,{})}));SD(); diff --git a/index.html b/index.html index 66fd2dd..eadd276 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@ }; - + diff --git a/sw.js b/sw.js index 42cb84c..c4e6fd1 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),c={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map((e=>c[e]||l(e)))).then((e=>(r(...e),o)))}}define(["./workbox-15aa4474"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-806eee04.css",revision:null},{url:"assets/index-8ce42411.js",revision:null},{url:"assets/web-vitals-7b71ae84.js",revision:null},{url:"index.html",revision:"461a62cffeae8ceda1c63231c559a7a2"},{url:"registerSW.js",revision:"f294c23f3839727e8f4f3ab55ecfee09"},{url:"manifest.webmanifest",revision:"a7d58352071c9ea56499e3524db5905f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),f={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map((e=>f[e]||l(e)))).then((e=>(r(...e),o)))}}define(["./workbox-15aa4474"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-806eee04.css",revision:null},{url:"assets/index-e8624ecc.js",revision:null},{url:"assets/web-vitals-7b71ae84.js",revision:null},{url:"index.html",revision:"bf2449a1a7b3f353fb59050cfe8142d8"},{url:"registerSW.js",revision:"f294c23f3839727e8f4f3ab55ecfee09"},{url:"manifest.webmanifest",revision:"a7d58352071c9ea56499e3524db5905f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));