(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,185945,e=>{"use strict";var t=e.i(288906),n=e.i(247865),r=e.i(725287);function o(){return false}function i(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(r.current)e.route&&r.current(e.route);else{let n=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let n=e.scriptSrc?e.scriptSrc:o()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${n}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let r=document.createElement("script");return r.src=n,r.defer=!0,r.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),r.dataset.sdkv="1.3.1",e.sampleRate&&(r.dataset.sampleRate=e.sampleRate.toString()),e.route&&(r.dataset.route=e.route),e.endpoint?r.dataset.endpoint=e.endpoint:e.basePath&&(r.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(r.dataset.dsn=e.dsn),o()&&!1===e.debug&&(r.dataset.debug="false"),r.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${n}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(r),{setRoute:e=>{r.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});n&&(r.current=n.setRoute)}},[e.route]),null}function a(e){let o=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,n=(0,r.usePathname)();if(!e)return null;let o=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!n||!o)return n;let l=n;try{let e=Object.entries(o);for(let[t,n]of e)if(!Array.isArray(n)){let e=i(n);e.test(l)&&(l=l.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=i(n.join("/"));e.test(l)&&(l=l.replace(e,`/[...${t}]`))}return l}catch(e){return n}})();return n.default.createElement(l,{route:o,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(a,{...e}))}])},538946,e=>{"use strict";var t,n=e.i(288906),r={scriptHostname:("u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof n.default?n.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof n.default?"dpl_5Q8o6E4YrbWqG2fHyM2H54g2R23A":void 0},o=e.i(247865),i=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:n}){return(0,o.useEffect)(()=>(e&&i&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(r,e);let n=document.createElement("script");for(let[o,i]of(n.src=`${r.scriptHostname}/_next-live/feedback/feedback.js`,n.setAttribute("data-explicit-opt-in","true"),e.nonce&&n.setAttribute("nonce",e.nonce),Object.entries((r.ownerId&&r.projectId?{"data-owner-id":r.ownerId,"data-project-id":r.projectId,"data-branch":t??r.branch}:r.deploymentId?{"data-deployment-id":r.deploymentId}:void 0)??{})))i&&n.setAttribute(o,i);(document.head||document.documentElement).appendChild(n)}}({nonce:n}),i=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],538946)},520362,e=>{"use strict";var t=e.i(902875),n=e.i(247865);let r=e=>{let{apiRoute:t,depth:r,refresh:o,serverURL:i}=e,l=(0,n.useRef)(!1),a=(0,n.useCallback)(e=>{e.origin===i&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof o?o():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[o,i]);return(0,n.useEffect)(()=>("u">typeof window&&window.addEventListener("message",a),l.current||(l.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:i}),o()),()=>{"u">typeof window&&window.removeEventListener("message",a)}),[i,a,r,t,o]),null};var o=e.i(725287);let i=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),l={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},a=e=>{let n=(0,o.useRouter)();return(0,t.jsx)(r,{...e,refresh:n.refresh})};e.s(["LivePreviewListener",0,a],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,n.useRef)(null),t=(0,n.useRef)(null),r=(0,n.useRef)(null),o=(0,n.useRef)(null),a=(0,n.useRef)(null),s=(0,n.useCallback)(()=>{if("u"{let n=t.current,o=e.current;if(!n||!o)return;if(!n.isConnected){t.current=null,o.style.opacity="0",r.current?.disconnect();return}let i=n.getBoundingClientRect();o.style.top=`${i.top+window.scrollY}px`,o.style.left=`${i.left+window.scrollX}px`,o.style.width=`${i.width}px`,o.style.height=`${i.height}px`,o.style.opacity="1"},[]),d=(0,n.useCallback)(()=>{t.current=null,a.current=null,e.current&&(e.current.style.opacity="0"),r.current?.disconnect()},[]),c=(0,n.useCallback)(()=>{t.current&&null===o.current&&(o.current=requestAnimationFrame(()=>{o.current=null,u()}))},[u]),f=(0,n.useCallback)(e=>{if(e===a.current)return;let n=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!n)return void i.debug("No element found for block ID",{blockId:e});let o=(e=>{let t=e,n=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?f(e.data.blockId):d())};return window.addEventListener("message",t),window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",c),window.removeEventListener("resize",c),null!==o.current&&cancelAnimationFrame(o.current),r.current?.disconnect(),e.current?.remove()}},[f,d,c]),null},"LivePreviewListener",0,a],520362)},186044,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1gjumgzj3pu0x.js"].map(t=>e.l(t))).then(()=>t(451309)))}]);