import{a as n}from"https://app.framerstatic.com/chunk-F6ABH7PM.mjs";import{a as i}from"https://app.framerstatic.com/chunk-5EVFYJSQ.mjs";import"https://app.framerstatic.com/chunk-LQILWJHN.mjs";import"https://app.framerstatic.com/chunk-AHQIRSXG.mjs";async function l(){let e=window.deferredJsFiles;if(!e)return;let o=e.map(r=>new Promise((s,a)=>{let t=document.createElement("script");t.src=r,t.async=!1,t.defer=!0,t.onload=()=>s(),t.onerror=()=>a(),document.body.appendChild(t)}));await Promise.all(o)}async function m(){let e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",window.cssBundleURL);let o=new Promise((r,s)=>{e.onload=()=>r(),e.onerror=()=>s()});document.head.appendChild(e),await o}var u=["success","no-permission"];async function f(){let e=new URLSearchParams(window.location.search),o=e.get("framerSiteId"),r=e.get("source");if(!o||!r)return null;let s=e.get("features"),a={};try{s&&(a=JSON.parse(s))}catch{}Object.defineProperty(window,"editorBarFeatures",{value:Object.freeze(a),writable:!1});let t=await n(o),c=e.has("forceShow");if(i(r)&&!u.includes(t.status))if(c)console.log("[Framer Editor Bar] Available because site was opened with ?editSite once");else{console.log("[Framer Editor Bar] Unavailable because not on a `framer.app` subdomain and access status is",t.status);return}await Promise.all([l(),m()]);let{renderEditorBar:d}=await import("https://app.framerstatic.com/render-XDY2H3R5.mjs");await d(t,o)}f().catch(console.error); //# sourceMappingURL=https://app.framerstatic.com/editorbar.NDNFWH5H.mjs.map