import{t as e}from"./rolldown-runtime.CMAw1HyY.mjs";import{A as t,B as n,C as r,D as i,F as a,I as o,M as s,N as c,O as l,P as u,R as d,S as f,T as p,_ as m,a as h,b as g,c as _,d as v,f as y,g as b,h as x,i as S,j as C,k as w,l as T,o as E,p as D,s as ee,u as O,v as k,w as te,x as A,y as ne,z as re}from"./react.D3LpXLeJ.mjs";import{$ as j,A as ie,C as M,D as ae,E as N,G as oe,H as se,I as ce,J as le,K as ue,L as de,M as fe,N as pe,O as me,Q as he,R as P,T as ge,U as _e,V as ve,W as ye,X as be,Y as xe,Z as Se,_ as F,a as Ce,at as we,b as Te,c as Ee,d as De,et as Oe,f as ke,g as Ae,h as I,i as je,it as Me,j as Ne,k as Pe,l as Fe,m as Ie,n as Le,nt as L,o as Re,p as ze,r as Be,rt as Ve,s as He,tt as Ue,u as We,v as Ge,w as Ke,x as qe,y as Je,z as Ye}from"./motion.DmxynPzX.mjs";function Xe(e){return typeof e==`function`}function Ze(e){return typeof e==`boolean`}function R(e){return typeof e==`string`}function z(e){return Number.isFinite(e)}function Qe(e){return Array.isArray(e)}function B(e){return typeof e==`object`&&!!e&&!Qe(e)}function $e(e){for(let t in e)return!1;return!0}function et(e){return e===void 0}function tt(e){return e===null}function nt(e){return e==null}function rt(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function it(e){return B(e)&&Xe(e.return)}function at(e){return B(e)&&Xe(e.then)}function ot(e){return e instanceof Promise}function st(e){return`url('${ct(e)}')`}function ct(e){return`data:image/svg+xml,${e.replaceAll(`#`,`%23`).replaceAll(`'`,`%27`).replaceAll(`"`,`%22`)}`}function lt(e,t){let n=t instanceof Error?t.stack??t.message:t;return`${e?`${e} `:``}In case the issue persists, report this to the Framer team via https://www.framer.com/contact/${n?`: ${n}`:`.`}`}function ut(){if(!cg)return;let e=document.querySelectorAll(`[rel="modulepreload"][data-framer-lazy]`);for(let t of e){let e=t.getAttribute(`data-framer-lazy`),n=t.getAttribute(`href`);if(!e||!n)continue;let r=import(n).then(t=>(hg.set(e,t),t)).catch(t=>{throw hg.delete(e),console.warn(`Failed to import lazy module: ${n}`,t),t});r.catch(sg),hg.set(e,r)}}function dt(e){return typeof e==`object`&&!!e&&!D(e)&&_g in e}function ft(e,t){if(t in e)return e[t];throw Error(`Module does not contain export '${t}'`)}function pt(e,t=`default`,n){let r,i,a,o=()=>{if(i||!n||!hg.has(n))return;let e=hg.get(n);ot(e)?s(()=>e):i=ft(e,t)},s=e=>i?Promise.resolve(i):(r||=e().then(e=>{let n=ft(e,t);return i=n,n}).catch(e=>{a=e}),r),l=!1,u=m(function(t,r){if(c(()=>{l=!0},[]),a)throw a;if(o(),n!==void 0&&gg!==void 0&&gg.add(n),!i)throw s(e);return T(i,{ref:r,...t})});return u.preload=()=>(o(),s(e)),u.getStatus=()=>({hasLoaded:i!==void 0,hasRendered:l}),u}function mt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ht(e){return e===null||!(yg in e)?!1:typeof e.equals==`function`}function gt(e,t){return e===t?!0:e!==e&&t!==t}function _t(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!gt(e[r],t[r]))return!1;return!0}function vt(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!wt(e[r],t[r],!0))return!1;return!0}function yt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!gt(r,t.get(n)))return!1;return!0}function bt(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!wt(r,t.get(n),!0))return!1;return!0}function xt(e,t){if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n))return!1;return!0}function St(e,t){let n=vg(e);if(n.length!==vg(t).length)return!1;for(let r of n)if(!mt(t,r)||!(r===`_owner`&&mt(e,`$$typeof`)&&e.$$typeof)&&!gt(e[r],t[r]))return!1;return!0}function Ct(e,t){let n=vg(e);if(n.length!==vg(t).length)return!1;for(let r of n)if(!mt(t,r)||!(r===`_owner`&&mt(e,`$$typeof`)&&e.$$typeof)&&!wt(e[r],t[r],!0))return!1;return!0}function wt(e,t,n){if(e===t)return!0;if(!e||!t)return e!==e&&t!==t;let r=typeof e;if(r!==typeof t||r!==`object`)return!1;let i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return n?vt(e,t):_t(e,t);if(i!==a)return!1;let o=e instanceof Map,s=t instanceof Map;if(o&&s)return n?bt(e,t):yt(e,t);if(o!==s)return!1;let c=e instanceof Set,l=t instanceof Set;if(c&&l)return xt(e,t);if(c!==l)return!1;let u=e instanceof Date,d=t instanceof Date;if(u&&d)return e.getTime()===t.getTime();if(u!==d)return!1;let f=e instanceof RegExp,p=t instanceof RegExp;return f&&p?e.toString()===t.toString():f===p?ht(e)&&ht(t)?e.equals(t):n?Ct(e,t):St(e,t):!1}function Tt(e,t,n=!0){try{return wt(e,t,n)}catch(e){if(e instanceof Error&&/stack|recursion/iu.exec(e.message))return console.warn(`Warning: isEqual does not handle circular references.`,e.name,e.message),!1;throw e}}function Et(e){return A.useCallback(t=>e[t],[e])}function Dt({api:e,children:t}){return T(bg.Provider,{value:e,children:t})}function Ot(){return A.useContext(bg)}function kt({routes:e,children:t}){let n=Et(e),r=C(()=>({getRoute:n}),[n]);return T(bg.Provider,{value:r,children:t})}function At(){let e=Ot(),n=t(xg),r=n?.routeId??e.currentRouteId,i=n?.routeId?n.pathVariables:e.currentPathVariables,a=r?e.getRoute?.(r):void 0;return C(()=>{if(!(!r||!a))return{...a,id:r,pathVariables:i}},[r,i,a])}function jt(){let e=At();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function Mt(e){let t=At(),n=A.useRef(t);Tt(n.current,t)||!t||(n.current=t,e(t))}function Nt(e){let t=Ot();if(e)return t.getRoute?.(e)}function Pt(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}function Ft(e){let t=[`pointerdown`,`pointerup`,`keydown`,`keyup`],n=e=>{let n=e.type;t.includes(n)&&performance.mark(`framer-navigation-input`,{detail:{type:n}})};for(let r=0;r{for(let e=0;er?Pt(r,e):e,[e,r])}function Lt(){return At()?.pathVariables}function V(e,...t){if(e)return;let n=Error(`Assertion Error`+(t.length>0?`: `+t.join(` `):``));if(n.stack)try{let e=n.stack.split(` `);e[1]?.includes(`assert`)?(e.splice(1,1),n.stack=e.join(` `)):e[0]?.includes(`assert`)&&(e.splice(0,1),n.stack=e.join(` `))}catch{}throw n}function H(e,t){throw t instanceof Error?t:t===void 0?Error(e?`Unexpected value: ${e}`:`Application entered invalid state`):Error(String(t))}function Rt(e){return e===null||typeof e!=`object`&&typeof e!=`function`}function zt(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===zg}function Bt(e){return Object.prototype.toString.call(e).slice(8,-1)}function Vt(e){switch(e){case`"`:return`\\"`;case`<`:return`\\u003C`;case`\\`:return`\\\\`;case` `:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return e<` `?`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`:``}}function Ht(e){let t=``,n=0,r=e.length;for(let i=0;iObject.getOwnPropertyDescriptor(e,t).enumerable)}function Wt(e){return Bg.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function Gt(e){return!(!Number.isInteger(e)||e<0||e>Lg)}function Kt(e){return!(!Number.isInteger(e)||e<0||e>Ig)}function qt(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t57)return!1}return Gt(+e)}function Jt(e){let t=Object.keys(e);for(var n=t.length-1;n>=0&&!qt(t[n]);n--);return t.length=n+1,t}function Yt(e){return new Uint8Array(e).toBase64()}function Xt(e){return Uint8Array.fromBase64(e).buffer}function Zt(e){return Buffer.from(e).toString(`base64`)}function Qt(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function $t(e){let t=new Uint8Array(e),n=``,r=32768;for(let e=0;e=t)throw Error(`Invalid input`);n[r]=a(s[e+1])}n.length=t}else{let t=Array(s.length);r[e]=t;for(let e=0;e{let t=c(e,l);t<0&&(r[l]=t)})}else{let e=Bt(n);switch(e){case`Number`:case`String`:case`Boolean`:case`BigInt`:u=`["Object",${c(n.valueOf())}]`;break;case`Date`:u=`["Date","${isNaN(n.getDate())?``:n.toISOString()}"]`;break;case`URL`:u=`["URL",${Ht(n.toString())}]`;break;case`URLSearchParams`:u=`["URLSearchParams",${Ht(n.toString())}]`;break;case`RegExp`:let{source:r,flags:i}=n;u=i?`["RegExp",${Ht(r)},"${i}"]`:`["RegExp",${Ht(r)}]`;break;case`Array`:{let e=!1;u=`[`;for(let t=0;t0&&(u+=`,`),Object.hasOwn(n,t))o.push(`[${t}]`),u+=c(n[t]),o.pop();else if(e)u+=Ag;else{let t=Jt(n),r=t.length,i=String(n.length).length;if((n.length-r)*3>4+i+r*(i+1)){u=`[`+Fg+`,`+n.length;for(let e=0;e0)throw new Rg(`Cannot stringify POJOs with symbolic keys`,o,n,t);if(Object.getPrototypeOf(n)===null){u=`["null"`;for(let e of Object.keys(n)){if(e===`__proto__`)throw new Rg(`Cannot stringify objects with __proto__ keys`,o,n,t);o.push(Wt(e)),u+=`,${Ht(e)},${c(n[e])}`,o.pop()}u+=`]`}else{u=`{`;let e=!1;for(let r of Object.keys(n)){if(r===`__proto__`)throw new Rg(`Cannot stringify objects with __proto__ keys`,o,n,t);e&&(u+=`,`),e=!0,o.push(Wt(r)),u+=`${Ht(r)}:${c(n[r])}`,o.pop()}u+=`}`}}}return r[l]=u,l}let l=c(t);return l<0?`${l}`:r}function on(e){let t=typeof e;return t===`string`?Ht(e):e===void 0?kg.toString():e===0&&1/e<0?Pg.toString():t===`bigint`?`["BigInt","${e}"]`:String(e)}function sn(e,t,n=`lazy`){switch(q.__framer_events?.push([e,t,n]),e){case`published_site_click`:{let{trackingId:e,href:n}=t;e&&document.dispatchEvent(new CustomEvent(`framer:click`,{detail:{trackingId:e,href:n}}));break}case`published_site_form_submit`:{let{trackingId:e}=t;e&&document.dispatchEvent(new CustomEvent(`framer:formsubmit`,{detail:{trackingId:e}}));break}case`published_site_pageview`:{let{framerLocale:e}=t;document.dispatchEvent(new CustomEvent(`framer:pageview`,{detail:{framerLocale:e}}));break}case`published_site_trigger_invoke`:{let{trackingId:e}=t;e&&document.dispatchEvent(new CustomEvent(`framer:triggerinvoke`,{detail:{trackingId:e}}));break}}}function cn(e){return R(e)&&(e===``||Kg.test(e))}function ln(){return{[qg.QueryCache]:new Map,[qg.CollectionUtilsCache]:new Map}}function un(){if(!cg)return;if(Jg!==void 0)return Jg;let e=document.getElementById(`__framer__handoverData`);if(e){try{Jg=tn(e.text)??ln()}catch(e){Jg=ln(),console.warn(`Failed to parse handover data. Falling back to network.`,e)}return dg(()=>{e?.remove(),e=null}),Jg}}function dn(e,t){if(console.warn(lt(`Failed to resolve raw query result from DOM during hydration for: ${t}. This might make the page load slightly slower.`)),Math.random()<.01){let t=e instanceof Error&&typeof e.stack==`string`?e.stack:null;sn(`published_site_load_error`,{message:String(e),stack:t})}}function fn(e,t){let n=un();return n?n[e].has(t):!1}function pn(e,t){let n=un();if(!n)return;let r=n[e];if(!r.has(t))return;let i=r.get(t);return r.delete(t),i}function mn(e){return e?.id??Eg}function hn(e,t,n,r){return`${e}|${t}|${n}|${r}`}function gn(e){return t=>{if(!e)return;let n=e[t];if(!n)return;if(Qg.has(n))return Qg.get(n);let r=new e_(n,t);return Qg.set(n,r),r}}function _n({children:e,collectionUtils:t}){let n=C(()=>({get:gn(t)}),[t]);return T($g.Provider,{value:n,children:e})}function vn(){return t($g)}function yn(e){return`scheduler`in e}function bn(){for(let e of i_)e();i_.clear()}function xn(e){return new Promise(t=>{if(i_.add(t),document.hidden){bn();return}document.addEventListener(`visibilitychange`,bn),document.addEventListener(`pagehide`,bn),I.read(()=>{Cn(e).then(()=>{i_.delete(t),!e?.signal?.aborted&&t()})})})}function Sn(e){return new Promise(t=>{setTimeout(t,100),I.read(()=>{Cn(e).then(t)},!1,!0)})}function Cn(e){let t=e?.priority;return n_||r_?t===`background`?new Promise(e=>{setTimeout(e,1)}):n_?t_.yield(e).catch(sg):t_.postTask(()=>{},e).catch(sg):t===`user-blocking`?Promise.resolve():new Promise(e=>{setTimeout(e,t===`background`?1:0)})}function wn(e){let{continueAfter:t,ensureContinueBeforeUnload:n,...r}=e??{};return n?xn(r):t===`paint`?Sn(r):Cn(r)}function Tn(){let e=vn(),{autobahnNavigation:t}=Tg(),{getRoute:n}=Ot();return s((r,i,a=!0,o=!0)=>{if(!r||!n)return;let s=n(r),{pathVariables:c,locale:l}=i;return Dn(s,{routeId:r,pathVariables:c,locale:l,collectionUtils:e},a,o&&t)},[n,e,t])}function En(e,t=!0){let n=Tn();c(()=>{if(!(!t||!a_))for(let t of e)n(t,{})},[e,t,n])}async function Dn(e,t,n=!0,r=!0){if(!a_||!e)return;let i=e.page;if(!(!i||!dt(i))){n&&await wn();try{let e=await i.preload();r&&t&&e&&await On(e,t)}catch{}}}async function On(e,t){let n=e.loader;if(!n?.load)return;let r={signal:t.signal??new AbortController().signal,pathVariables:t.pathVariables??{},routeId:t.routeId,locale:t.locale,collectionUtils:t.collectionUtils};try{await n.load({},r)}catch{}}function kn(e,t){if(!e.startsWith(`/`)||!t.startsWith(`/`))throw Error(`from/to paths are expected to be absolute`);let[n]=An(e),[r,i]=An(t),a=jn(n,r);return a===``&&(a=`.`),!a.startsWith(`.`)&&!a.startsWith(`/`)&&(a=`./`+a),a+`/`+i}function An(e){let t=e.lastIndexOf(`/`);return[e.substring(0,t+1),e.substring(t+1)]}function jn(e,t){if(e===t||(e=`/`+Mn(e),t=`/`+Mn(t),e===t))return``;let n=e.length,r=n-1,i=t.length-1,a=ra){if(c_(t,1+s)===s_)return u_(t,1+s+1);if(s===0)return u_(t,1+s)}else r>a&&(c_(e,1+s)===s_?o=s:s===0&&(o=0));let c=``;for(s=1+o+1;s<=n;++s)(s===n||c_(e,s)===s_)&&(c+=c.length===0?`..`:`/..`);return`${c}${u_(t,1+o)}`}function Mn(e){let t=``,n=0,r=-1,i=0,a=0;for(let o=0;o<=e.length;++o){if(o2){let e=l_(t,f_);e===-1?(t=``,n=0):(t=u_(t,0,e),n=t.length-1-l_(t,f_)),r=o,i=0;continue}else if(t.length!==0){t=``,n=0,r=o,i=0;continue}}d_&&(t+=t.length>0?`${f_}..`:`..`,n=2)}else t.length>0?t+=`${f_}${u_(e,r+1,o)}`:t=u_(e,r+1,o),n=o-r-1;r=o,i=0}else a===o_&&i!==-1?++i:i=-1}return t}function Nn(e,t){return e.replace(h_,(e,n)=>{let r=t[n];return typeof r!=`string`||r.length===0?e:encodeURIComponent(r)})}function Pn(e,t=!1){let r=``;if(n!==void 0)if(t)r=n.location.search;else{let e=n.history?.state?.queryParamBackAnchorSearch;r=e===void 0?n.location.search:e===``?``:`?${e}`}return r?Fn(r,e):e}function Fn(e,t){let n=t.indexOf(`#`),r=n===-1?t:t.substring(0,n),i=n===-1?``:t.substring(n),a=r.indexOf(`?`),o=a===-1?r:r.substring(0,a),s=a===-1?``:r.substring(a),c=new URLSearchParams(s),l=new URLSearchParams(e);for(let[e,t]of l)c.has(e)||e!==g_&&c.append(e,t);let u=c.toString();return u===``?r+i:o+`?`+u+i}async function In(e,t,n,r,i,a,o){let s=e,c=!1,l={...a},u=Array.from(s.matchAll(h_)),d=await Promise.all(u.map(async e=>{let s=e?.[0],u=e?.[1];if(!s||!u)throw Error(`Failed to replace path variables: unexpected regex match group`);let d=a[u];if(!d||!R(d))throw Error(`No slug found for path variable ${u}`);let f=o?.get(i);if(!f||!t)return d;let p=f.getRecordIdBySlug(d,t),m=ot(p)?await p:p;if(!m)return d;let h=f.getSlugByRecordId(m,n),g=ot(h)?await h:h;if(!g){c=!0;let e=f.getSlugByRecordId(m,r),t=ot(e)?await e:e;return t&&(l[u]=t),t??d}return l[u]=g,g})),f=0,p=``,m=!1;for(let e=0;e{I.render(()=>{performance.mark(`framer-vt-remove`);let e=document.getElementById(C_);e&&document.head.removeChild(e)})})}function Qn(){return!!document.startViewTransition}function $n(e){return new Promise(t=>{I.render(()=>{performance.mark(`framer-vt-style`),Xn(e),t()})})}async function er(e,t,n){if(!Qn()){e();return}if(await $n(t),n?.aborted)return;performance.mark(`framer-vt`);let r=document.startViewTransition(async()=>{performance.mark(`framer-vt-freeze`),!n?.aborted&&(n?.addEventListener(`abort`,()=>r.skipTransition()),await e())});return r.updateCallbackDone.then(()=>{performance.mark(`framer-vt-unfreeze`)}).catch(T_),Promise.all([r.ready,r.finished]).then(()=>{performance.mark(`framer-vt-finished`),Zn()}).catch(T_),r}function tr(){let e=Bn(),t=l(void 0);return c(()=>{t.current&&=(t.current(),void 0)}),s((n,r,i,a)=>{let o=Vn(n,r,e);if(o){let e=new Promise(e=>{t.current=e});return er(async()=>{i(),await e},o,a)}i()},[e])}function nr(e,t){dg(()=>{let n=document.querySelector(`link[rel='canonical']`);if(!n)return;let r=new URL(e,t);r.search=``,n.setAttribute(`href`,r.toString())})}function rr(e,t,n,r=f){r(()=>{let t=async e=>(await wn({...n,continueAfter:`paint`}),e()),r=t(e);return()=>{(async()=>{let e=await r;e&&t(e)})()}},t)}function ir(e){let t=l(void 0);return rr(()=>{t.current&&=(t.current(),void 0)},void 0,{priority:`user-blocking`}),s(n=>{let r=new Promise(e=>{t.current=e});if(!e)return{promise:r,measureDetail:n,ignore:null};let i=`${e}-start`,a=`${e}-end`,o=!1;return performance.mark(i),r.finally(()=>{o||(performance.mark(a),performance.measure(e,{start:i,end:a,detail:n}))}).catch(e=>{console.error(e)}),{promise:r,measureDetail:n,ignore:()=>{o=!0,t.current?.(),t.current=void 0}}},[e])}async function ar(e,t,{currentRoutePath:r,currentRoutePathLocalized:i,currentPathVariables:a,hash:o,pathVariables:s,localeId:c,preserveQueryParams:l,siteCanonicalURL:u},d=!1){let{path:f}=t;if(!f)return;let p=fr(t,{currentRoutePath:r,currentRoutePathLocalized:i,currentPathVariables:a,hash:o,pathVariables:s,preserveQueryParams:l,siteCanonicalURL:u,localeId:c}),m=r!==void 0&&r===f,h=or(n.history.state)?n.history.state:void 0,g=m?h?.queryParamBackAnchorSearch:void 0;try{return await cr({routeId:e,hash:o,pathVariables:s,localeId:c,queryParamBackAnchorSearch:g},p,d)}catch{}}function or(e){return B(e)&&R(e.routeId)}function sr(e,t,r=!1){performance.mark(`framer-history-replace`),t&&nr(t,n.location.href),(r?n.history.__proto__.replaceState:n.history.replaceState).call(n.history,e,``,t)}async function cr(e,t,r=!1){if(performance.mark(`framer-history-push`),nr(t,n.location.href),!r){n.history.pushState(e,``,t);return}let i=!1,a;O_&&(a=()=>{if(i=!0,k_)return;let e=`Popstate called after intercept(). Please report this to the Framer team.`;console.error(e),sn(`published_site_load_recoverable_error`,{message:e})},n.addEventListener(`popstate`,a,{once:!0})),k_&&O_?n.history.__proto__.pushState.call(n.history,e,``,t):n.history.pushState(e,``,t),O_&&queueMicrotask(()=>{i||(O_=!1,n.removeEventListener(`popstate`,a))})}function lr({disabled:e,routeId:t,initialPathVariables:r,initialLocaleId:i}){f(()=>{if(e)return;performance.mark(`framer-history-set-initial-state`);let a=B(n.history.state)?n.history.state:{},o=n.location.hash?n.location.hash.slice(1):void 0;sr({...a,routeId:t,hash:o,pathVariables:r,localeId:i},void 0,!0)},[])}function ur(e,t){let r=tr(),i=ir(`framer-route-change`),a=l(void 0),o=s(async({state:o})=>{if(n.navigation?.transition&&n.navigation?.transition?.navigationType!==`traverse`||!B(o))return;let{routeId:s,hash:c,pathVariables:l,localeId:u}=o;if(!R(s))return;let d=i({popstate:!0}),f=Ft();d.promise.finally(f);let p=await r(e.current,s,()=>{t(s,R(u)?u:void 0,R(c)?c:void 0,n.location.pathname+n.location.search+n.location.hash,B(l)?l:void 0,!0,d,!1)}),m=n.navigation?.transition;await(p?.updateCallbackDone??Promise.resolve()).then(a.current?.resolve).catch(a.current?.reject),await d.promise;try{await m?.finished}catch(e){console.warn(`Popstate transition failed`,e)}D_(),nr(n.location.href)},[e,i,t,r]),u=s(e=>{e.navigationType!==`traverse`||!e.canIntercept||e.intercept({async handler(){await new Promise((e,t)=>{a.current={resolve:e,reject:t}}),a.current=void 0},scroll:`after-transition`})},[]);c(()=>(n.addEventListener(`popstate`,o),A_&&n.navigation.addEventListener(`navigate`,u),()=>{n.removeEventListener(`popstate`,o),A_&&n.navigation.removeEventListener(`navigate`,u)}),[o,u])}function dr(e,t,n){let r=Pt(t,e);if(!r)return;let i=Object.assign({},t?.elements,n);return r.replace(h_,(e,t)=>i[t]??e)}function fr(e,{currentRoutePath:t,currentRoutePathLocalized:r,currentPathVariables:i,hash:a,pathVariables:o,hashVariables:s,relative:c=!0,preserveQueryParams:l,onlyHash:u=!1,siteCanonicalURL:d,localeId:f}){let p=dr(a,e,s);if(u)return p??``;let m=t??`/`;r&&f&&(m=r[f]??m),i&&(m=m.replace(h_,(e,t)=>String(i[t]||e)));let h=(f?e?.pathLocalized?.[f]:void 0)??e?.path??`/`;o&&(h=h.replace(h_,(e,t)=>String(o[t]||e)));let g=!!(m===h&&p),_=!g&&o!==void 0&&t!==void 0&&e?.path!==void 0&&t===e.path&&m!==h;if(c)if(m_.has(m)&&n!==void 0){let e=Rn(d);h=kn(n.location.pathname,e+h)}else h=kn(m,h);let v=g||_;return(l||v)&&(h=Pn(h,v)),p&&(h=`${h}#${p}`),h}async function pr(e,t,r){if(!e.path||!t)return!1;let i=`${r.slug?`/${r.slug}`:``}${Nn(e.path,t)}`;return(await fetch(i,{method:`HEAD`,redirect:`manual`})).type===`opaqueredirect`?(n.location.href=n.location.origin+i,!0):!1}function mr(){let e=vn();return s(t=>hr({...t,collectionUtils:e}),[e])}async function hr(e){let t=await Ln(e);if(t){try{localStorage.preferredLocale=e.nextLocale.code}catch{}try{if(!R(t.path))throw Error(`Expected result.path to be a string`);if(t.isMissingInLocale&&await pr(e.route,t.pathVariables,e.nextLocale))return}catch{}return t}}function gr(){let e=l(Promise.resolve()),t=l(),r=s(n=>{if(n.navigationType===`traverse`||!n.canIntercept)return;let r=t.current;r?.signal.addEventListener(`abort`,()=>{r.abort(`user aborted`)}),n.intercept({handler:()=>e.current})},[]);return s((i,a,o)=>{if(!A_){a();return}e.current=i,t.current=o,n.navigation.addEventListener(`navigate`,r),a(!0),i.finally(()=>{n.navigation.removeEventListener(`navigate`,r)})},[r])}function _r(e){let t=0,n=e.length;for(;tt&&e[n-1]===`-`;)n--;return e.slice(t,n)}function vr(e){return _r(e.trim().toLowerCase().replace(j_,`-`))}function yr({children:e,value:t}){return T(N_.Provider,{value:t,children:e})}function br(){return t(N_)}function xr(e,t){let n=a(()=>({inputs:t,result:e()}))[0],r=l(!0),i=l(n),o=r.current||t&&i.current.inputs&&Tt(t,i.current.inputs,!1)?i.current:{inputs:t,result:e()};return c(()=>{r.current=!1,i.current=o},[o]),o.result}function Sr(e,t){return xr(()=>e,t)}function Cr(){return A.useContext(I_)}function wr(){return Cr().activeLocale?.code??`en-US`}function Tr(){return n.location.search}function Er(){return``}function Dr(e){return R_.add(e),n.addEventListener(`popstate`,e),()=>{R_.delete(e),n.removeEventListener(`popstate`,e)}}function Or(){for(let e of R_)e()}function kr({children:e}){let t=br()===`preview`,[r,o]=a(``),c=i(g(Dr,Tr,Er));Ot();let l=t?r:c,u=s(async e=>{if(t){k(()=>{o(t=>e(new URLSearchParams(t)).toString())});return}await wn({continueAfter:`paint`});let r=n.history.state,i=new URL(n.location.href),a=e(i.searchParams).toString();i.search=a;let s=r?.queryParamBackAnchorSearch,c=n.location.search.slice(1),l=s===void 0&&a!==c,u=s!==void 0&&a===s,d={...r,queryParamBackAnchorSearch:u?void 0:s??(l?c:void 0)},f=i.toString();l||u?await cr(d,f):sr(d,f),Or()},[t]),d=xr(()=>({urlSearchParams:new URLSearchParams(l),replaceSearchParams:u}),[l,u]);return T(z_.Provider,{value:d,children:e})}function Ar(e){return B_ in e&&e[B_]===1}function jr(){if(!V_)return;U_=!0,performance.mark(`framer-react-event-handling-start`);let e={capture:!0},t=document.body;V_.forEach(n=>t.addEventListener(n,H_,e))}function Mr(){return c(()=>{if(!U_||!V_)return;let e={capture:!0},t=document.body;V_.forEach(n=>t.removeEventListener(n,H_,e)),V_=void 0,performance.mark(`framer-react-event-handling-end`)},[]),null}function Nr(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}function Pr(e,t,n){try{performance.measure(e,t,n)}catch(t){console.warn(`Could not measure ${e}`,t)}}function Fr(){lv=new cv,lv.render.markStart()}function Ir(){r(()=>{lv?.useInsertionEffects.markRouterStart()},[]),f(()=>{lv?.useLayoutEffects.markRouterStart()},[]),c(()=>{lv?.useEffects.markRouterStart()},[])}function Lr(){r(()=>{lv?.render.markEnd(),lv?.useInsertionEffects.markStart()},[]),f(()=>{if(lv?.useLayoutEffects.markStart(),document.visibilityState!==`visible`){uv=!0;return}I.read(()=>{lv?.browserRendering.requestAnimationFrame.markStart(),lv?.unattributedHydrationOverhead.measure()})},[]),c(()=>{lv?.useEffects.markStart(),lv?.browserRendering.hasStarted||(lv?.mutationEffects.measure(),lv?.useEffects.markAreSynchronous())},[])}function Rr(){r(()=>{lv?.useInsertionEffects.markEnd()},[]),f(()=>{lv?.useLayoutEffects.markEnd(),!(uv||document.visibilityState!==`visible`)&&I.read(()=>{lv?.browserRendering.requestAnimationFrame.markEnd(),wn().then(()=>{lv?.browserRendering.layoutStylePaint.markEnd()})})},[]),c(()=>{lv?.useEffects.markEnd()},[])}function zr(){return Lr(),null}function Br(){return Rr(),null}function Vr(e,t){let n={style:t,"data-framer-root":``};return A.isValidElement(e)?A.cloneElement(e,n):T(e,{...n})}function Hr(){return mv}function Ur(e){if(hv?.lastRoutes!==e){let t={},n={},r=[],i={},a=e;for(let r in e){let i=e[r];V(i,`route must be defined`);let{path:a,pathLocalized:o}=i;if(a&&(t[a]={path:a,depth:Kr(a),routeId:r},o))for(let e in o){let t=o[e];V(t,`localizedPath must be defined`);let i=Kr(t),a=n[e]||={};a[t]={path:t,depth:i,routeId:r}}}for(let e in r=Object.values(t),r.sort(({depth:e},{depth:t})=>t-e),n){let t=n[e];if(!t)continue;let r=Object.values(t);r.sort(({depth:e},{depth:t})=>t-e),i[e]=r}hv={pathRoutes:t,pathRoutesLocalized:n,paths:r,pathsLocalized:i,lastRoutes:a}}return{pathRoutes:hv.pathRoutes,paths:hv.paths,pathRoutesLocalized:hv.pathRoutesLocalized,pathsLocalized:hv.pathsLocalized}}function Wr(e,t,n=!0,r=Hr()){return Gr(e,t,r,n)}function Gr(e,t,n,r=!0){let{pathRoutes:i,paths:a,pathRoutesLocalized:o,pathsLocalized:s}=Ur(e),c,l,u=!1;if(n.length>0){let e=t.split(`/`).find(Boolean);if(e&&(c=n.find(({slug:t})=>t===e),c&&(l=c.id,t=t.substring(c.slug.length+1),u=!0)),!l){let e=n.find(({slug:e})=>e===``);e&&(l=e.id)}}if(l&&u){let e=o[l],n=e?e[t]:void 0;if(n){let e=qr(t,n.path);if(e.isMatch)return{routeId:n.routeId,localeId:l,pathVariables:e.pathVariables}}}let d=i[t];if(d){let e=qr(t,d.path);if(e.isMatch)return{routeId:d.routeId,localeId:l,pathVariables:e.pathVariables}}if(l&&u){let e=s[l];if(e)for(let{path:n,routeId:r}of e){let e=qr(t,n);if(e.isMatch)return{routeId:r,localeId:l,pathVariables:e.pathVariables}}}for(let{path:e,routeId:n}of a){let r=qr(t,e);if(r.isMatch)return{routeId:n,localeId:l,pathVariables:r.pathVariables}}if(!r)throw Error(`No exact match found for path`);let f=i[`/`];if(f)return{routeId:f.routeId,localeId:l};let p=Object.keys(e)[0];if(!p)throw Error(`Router should not have undefined routes`);return{routeId:p,localeId:l}}function Kr(e){let t=e.replace(/^\/|\/$/gu,``);return t===``?0:t.split(`/`).length}function qr(e,t){let n=[],r=Jr(t).replace(h_,(e,t)=>(n.push(t),`([^/]+)`)),i=RegExp(r+`$`),a=e.match(i);if(!a)return{isMatch:!1};if(a.length===1)return{isMatch:!0};let o={},s=a.slice(1);for(let e=0;ee.name===`abtests`);return t?new URLSearchParams(t.description):new URLSearchParams}return new URLSearchParams}function Xr(e,t,n){let r=e[n];if(!r)return;let i=r.abTestingParentId??n;if(!e[i])return;let{abTestingParentId:a,...o}=r,s=e[i].elements||r.elements?{...e[i].elements,...r.elements}:void 0;e[i]={...o,elements:s,abTestingVariantId:n,abTestId:t}}function Zr(e,t){for(let[n,r]of t)Xr(e,n,r)}function Qr(e){for(let t in e)e[t]?.abTestingParentId&&delete e[t]}function $r(e,t){if(!e[t]||!e[t].abTestingParentId)return;let n=e[t].abTestingParentId,{abTestingParentId:r,...i}=e[t],a=e[n]?.elements||i.elements?{...e[n]?.elements,...i.elements}:void 0;e[n]={...i,elements:a,abTestingVariantId:t}}function ei(e,t){if(n===void 0)return t;let r=t;if(t){$r(e,t);let n=e[t]?.abTestingParentId;n&&(r=n)}return Zr(e,Yr()),Qr(e),r}function ti(e){c(()=>{if(e.robots){let t=document.querySelector(`meta[name="robots"]`);t?t.setAttribute(`content`,e.robots):(t=document.createElement(`meta`),t.setAttribute(`name`,`robots`),t.setAttribute(`content`,e.robots),document.head.appendChild(t))}},[e.robots]),r(()=>{document.title=e.title||``,e.viewport&&document.querySelector(`meta[name="viewport"]`)?.setAttribute(`content`,e.viewport)},[e.title,e.viewport])}function ni(e,...t){gv.has(e)||(gv.add(e),console.warn(e,...t))}function ri(e,t,n){ni(`Deprecation warning: ${e} will be removed in version ${t}${n?`, use ${n} instead`:``}.`)}function ii(e){return typeof e==`object`&&!!e&&yv in e&&e[yv]instanceof Function&&bv in e&&e[bv]instanceof Function}function ai(e,t){return{interpolate(e,n){let r=e.get(),i=n.get(),a=vv(r);return e=>{let n=t.interpolate(r,i)(e);return a.set(n),a}},difference(e,n){let r=e.get();return t.difference(r,n.get())}}}function oi(e,t){let n=10**Math.round(Math.abs(t));return Math.round(e*n)/n}function si(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function ci(e){return Math.round(e*2)/2}function li(e,t){return{x:e,y:t}}function ui(e){switch(e){case`linear`:return[0,0,1,1];case`ease`:return[.25,.1,.25,1];case`ease-in`:return[.42,0,1,1];case`ease-out`:return[0,0,.58,1];case`ease-in-out`:return[.42,0,.58,1]}}function di(e){return typeof e==`function`&&e.interpolationFor&&typeof e.interpolationFor==`function`}function fi(e,t,n,r=12){let i=n;for(let n=1,a=r,o=1<=a;o?na;o?n++:n--)i-=e(i)/t(i);return i}function pi(e,t){return e*Math.sqrt(1-t**2)}function mi(e){return e?typeof e.dampingRatio==`number`||typeof e.duration==`number`||typeof e.mass==`number`:!1}function hi(e,t,n,r=!1){let[i,a]=t,[o,s]=n,c=a-i;if(c===0)return(s+o)/2;let l=s-o;if(l===0)return o;let u=o+(e-i)/c*l;if(r===!0)if(os)return s}else{if(u>o)return o;if(u.5?e/(2-c-l):e/(c+l),c){case a:u=(o-s)/e+(o1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ei(e,t,n){let r,i,a;if(e=ki(e,360),t=ki(t*100,100),n=ki(n*100,100),t===0)r=i=a=n;else{let o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Ti(s,o,e+1/3),i=Ti(s,o,e),a=Ti(s,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function Di(e,t,n){e=ki(e,255),t=ki(t,255),n=ki(n,255);let r=Math.max(e,t,n),i=Math.min(e,t,n),a=r-i,o=0,s=r===0?0:a/r,c=r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/a+(t.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92}function Bi({r:e,g:t,b:n,a:r}){return{r:zi(e),g:zi(t),b:zi(n),a:r}}function Vi({r:e,g:t,b:n,a:r}){let i=Math.max(e,t,n),a=Math.min(e,t,n),o={h:0,s:i===0?0:1-a/i,v:i,a:r};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t1)&&(e=1),e}function Qi(){return q.location.origin===`https://screenshot.framer.invalid`}function $i(e,t,n,r){ri(`animate()`,`2.0.0`,`the new animation API (https://www.framer.com/api/animation/)`);let i=e,a;a=ii(e)||Qv(e)?e.get():vv.objectToValues(e);let o=new py(i,a,t,n,r);return o.play(),o}function ea({children:e}){if(t(gy).top)return T(_,{children:e});let n=l({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),r=l({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),i=l(new Set).current,a=l({getLayoutId:s(({id:e,name:t,duplicatedFrom:a})=>{if(!e)return null;let o=t?`byName`:`byId`,s=n.current[o][e];if(s)return s;let c=t||e;if(!a&&!i.has(c)&&(!n.current.byLayoutId[c]||n.current.byLayoutId[c]===c))return n.current.count[o][c]===void 0&&(n.current.count[o][c]=0,n.current.byLayoutId[c]=c,r.current[o][e]=c),i.add(c),c;let l;if(a?.length)for(let s=a.length-1;s>=0;s--){let c=a[s];V(!!c,`duplicatedId must be defined`);let u=n.current[o][c],d=n.current.byLastId[c];if(d&&!l){let e=n.current.byLayoutId[d],r=!e||e===t;d&&!i.has(d)&&(!t||r)&&(l=[d,c])}let f=u?n.current.byLayoutId[u]:void 0,p=!f||f===t;if(u&&!i.has(u)&&(!t||p))return r.current[o][e]=u,r.current.byLastId[c]=u,i.add(u),u}let u=n.current.byLastId[e];if(u&&!i.has(u))return i.add(u),r.current.byId[e]=u,u;if(l){let[t,n]=l;return r.current[o][e]=t,r.current.byLastId[n]=t,i.add(t),t}let d=n.current.byPossibleId[e];if(d&&!i.has(d))return i.add(d),r.current.byId[e]=d,d;let f=a?.[0],p=t||f||e,{layoutId:m,value:h}=ta(p,(n.current.count[o][p]??-1)+1,i);if(n.current.count[o][p]=h,r.current[o][e]=m,a?.length&&!t){let e=a[a.length-1];if(e&&(r.current.byLastId[e]=m),a.length>1)for(let e=0;e{n.current={byId:{...n.current.byId,...r.current.byId},byLastId:{...n.current.byLastId,...r.current.byLastId},byPossibleId:{...n.current.byPossibleId,...r.current.byPossibleId},byName:{...n.current.byName,...r.current.byName},byLastName:{...n.current.byLastName,...r.current.byLastName},byLayoutId:{...n.current.byLayoutId,...r.current.byLayoutId},count:{...n.current.count,byName:{}}},r.current={byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}},i.clear()},[]),top:!0,enabled:!0}).current;return T(gy.Provider,{value:a,children:e})}function ta(e,t,n){let r=t,i=r?`${e}-${r}`:e;for(;n.has(i);)r++,i=`${e}-${r}`;return{layoutId:i,value:r}}function na({enabled:e=!0,...n}){let r=t(gy),i=C(()=>({...r,enabled:e}),[e]);return T(gy.Provider,{...n,value:i})}function ra(e){let t=l(null);return t.current===null&&(t.current=e()),t.current}function ia(e){let{error:t,file:n}=e,r=n?`Error in ${aa(n)}`:`Error`,i=t instanceof Error?t.message:``+t;return O(`div`,{style:vy,children:[T(`div`,{className:`text`,style:by,children:r}),i&&T(`div`,{className:`text`,style:xy,children:i})]})}function aa(e){return e.startsWith(`./`)?e.replace(`./`,``):e}function U(e){return Number.isFinite(e)}function oa(e){return!e||!Object.keys(e).length&&e.constructor===Object}function sa(e){return typeof e!=`string`&&typeof e!=`number`}function ca(e){return e!=null&&typeof e!=`boolean`&&!oa(e)}function la(e){return e*(Math.PI/180)}function ua(e){return et(e)?!1:e===2||e===5}function da(e){if(typeof e==`string`){let t=e.trim();if(t===`auto`)return 2;if(t.endsWith(`fr`))return 3;if(t.endsWith(`%`))return 1;if(t.endsWith(`vw`)||t.endsWith(`vh`))return 4}return 0}function fa(e,t,n,r){if(typeof t==`string`){if(t.endsWith(`%`)&&n)switch(e){case`maxWidth`:case`minWidth`:return parseFloat(t)/100*n.width;case`maxHeight`:case`minHeight`:return parseFloat(t)/100*n.height;default:break}if(t.endsWith(`vh`)){if(!r)return pa(e);switch(e){case`maxWidth`:case`minWidth`:return parseFloat(t)/100*r.width;case`maxHeight`:case`minHeight`:return parseFloat(t)/100*r.height;default:break}}return parseFloat(t)}return t}function pa(e){switch(e){case`minWidth`:case`minHeight`:return-1/0;case`maxWidth`:case`maxHeight`:return 1/0;default:H(e,`unknown constraint key`)}}function ma(e,t,n,r){return t.minHeight&&(e=Math.max(fa(`minHeight`,t.minHeight,n,r),e)),t.maxHeight&&(e=Math.min(fa(`maxHeight`,t.maxHeight,n,r),e)),e}function ha(e,t,n,r){return t.minWidth&&(e=Math.max(fa(`minWidth`,t.minWidth,n,r),e)),t.maxWidth&&(e=Math.min(fa(`maxWidth`,t.maxWidth,n,r),e)),e}function ga(e,t,n,r,i){let a=ha(U(e)?e:Ey,n,r,i),o=ma(U(t)?t:Dy,n,r,i);return U(n.aspectRatio)&&n.aspectRatio>0&&(U(n.left)&&U(n.right)?o=a/n.aspectRatio:U(n.top)&&U(n.bottom)||n.widthType===0?a=o*n.aspectRatio:o=a/n.aspectRatio),{width:a,height:o}}function _a(e,t){return!U(e)||!U(t)?null:e+t}function va(e){return typeof e.right==`string`||typeof e.bottom==`string`||typeof e.left==`string`&&(!e.center||e.center===`y`)||typeof e.top==`string`&&(!e.center||e.center===`x`)}function ya(e){return!e._constraints||va(e)?!1:e._constraints.enabled}function ba(e){let{size:t}=e,{width:n,height:r}=e;return U(t)&&(n===void 0&&(n=t),r===void 0&&(r=t)),U(n)&&U(r)?{width:n,height:r}:null}function xa(e){let t=ba(e);if(t===null)return null;let{left:n,top:r}=e;return U(n)&&U(r)?{x:n,y:r,...t}:null}function Sa(e,t,n=!0){if(e.positionFixed||e.positionAbsolute)return null;let r=t===1||t===2;if(!ya(e)||r)return xa(e);let i=Ca(e),a=wa(t),o=a?{sizing:a,positioning:a,viewport:null}:null;return Ty.toRect(i,o,null,n,null)}function Ca(e){let{left:t,right:n,top:r,bottom:i,center:a,_constraints:o,size:s}=e,{width:c,height:l}=e;c===void 0&&(c=s),l===void 0&&(l=s);let{aspectRatio:u,autoSize:d}=o,f=wy.quickfix({left:U(t),right:U(n),top:U(r),bottom:U(i),widthType:da(c),heightType:da(l),aspectRatio:u||null,fixedSize:d===!0}),p=null,m=null,h=0,g=0;if(f.widthType!==0&&typeof c==`string`){let e=parseFloat(c);c.endsWith(`fr`)?(h=3,p=e):c===`auto`?h=2:(h=1,p=e/100)}else c!==void 0&&typeof c!=`string`&&(p=c);if(f.heightType!==0&&typeof l==`string`){let e=parseFloat(l);l.endsWith(`fr`)?(g=3,m=e):l===`auto`?g=2:(g=1,m=parseFloat(l)/100)}else l!==void 0&&typeof l!=`string`&&(m=l);let _=.5,v=.5;return(a===!0||a===`x`)&&(f.left=!1,typeof t==`string`&&(_=parseFloat(t)/100)),(a===!0||a===`y`)&&(f.top=!1,typeof r==`string`&&(v=parseFloat(r)/100)),{left:f.left?t:null,right:f.right?n:null,top:f.top?r:null,bottom:f.bottom?i:null,widthType:h,heightType:g,width:p,height:m,aspectRatio:f.aspectRatio||null,centerAnchorX:_,centerAnchorY:v,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth}}function wa(e){return e===0||e===1||e===2?null:e}function Ta(){return A.useContext(Oy).parentSize}function Ea(e){return typeof e==`object`}function Da(e){return Ea(e)?e.width:e}function Oa(e){return Ea(e)?e.height:e}function ka(e,t){return T(ky,{parentSize:t,children:e})}function Aa(e){return Sa(e,Ta(),!0)}function ja({width:e,height:t}){return e===`auto`||e===`min-content`||t===`auto`||t===`min-content`}function Ma(){return re===void 0?void 0:re}function Na(){let e=Ma();return e?jy.test(e.platform):!1}function Pa(){let e=Ma();return e?My.test(e.platform)?!0:Ny.test(e.platform)&&e.maxTouchPoints!=null&&e.maxTouchPoints>2:!1}function Fa(){return Na()||Pa()}function Ia(){let e=Ma();return e?Py.test(e.userAgent):!1}function La(){let e=Ma();return e?Fy.test(e.userAgent)&&Iy.test(e.vendor)&&!Ia():!1}function Ra(){let e=Ma();return e?Ly.test(e.userAgent)&&Ry.test(e.vendor):!1}function za(){let e=Ma();return e?zy.test(e.userAgent):!1}function Ba(){return typeof document==`object`}function Va(){let e=Ma();return e?By.test(e.userAgent):!1}function Ha(){return!1}function Ua(){let e=Ma();return e&&Vy.test(e.userAgent)?`tablet`:e&&Hy.test(e.userAgent)?`phone`:`desktop`}function Wa(){return Ua()===`desktop`}function Ga(e){return Fa()?e.metaKey:e.ctrlKey}function Ka(e,t,n=Wy){if(!(!e||n.has(e)||typeof document>`u`)){if(n.add(e),!t){if(!Gy){let e=document.createElement(`style`);if(e.setAttribute(`type`,`text/css`),e.setAttribute(`data-framer-css`,`true`),!document.head){console.warn(`not injecting CSS: the document is missing a element`);return}if(document.head.appendChild(e),e.sheet)Gy=e.sheet;else{console.warn(`not injecting CSS: injected