1import{g as f}from"./utils.DVhNACgq.js";import"./lodash.NslEEZXB.js";import"./_commonjsHelpers.Cpj98o6Y.js";function m(t=document){y(t),T(t),A(t)}function y(t){const e=t.querySelector(".pricing-table");if(!e||e.dataset.switcherBound==="true")return;e.dataset.switcherBound="true";const n=e.querySelector(".switcher-button-popover"),a=t.querySelectorAll("[data-switcher-plan]"),s=t.querySelector(".switcher-button summary span"),i=f(n);n?.addEventListener("click",c=>{[...i].includes(c.target)&&n?.closest("details")?.removeAttribute("open")});function u(c){for(let l of a)l.classList.toggle("is-active",c===l)}a.forEach(c=>{c.addEventListener("click",l=>{const d=l.target,o=d.dataset.switcherPlan;u(d),e?.setAttribute("data-view-plan",o),s&&(s.innerHTML=o)})})}let b=!1;const g="#pricing-table",E="See full feature comparison",v="Hide feature comparison";function w(t,e){const n=t.querySelector("span:not(.icon-wrapper)")??t;n.textContent=e}function h(t,e){const n=()=>t.scrollIntoView?.({behavior:e,block:"start"});typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(n):n()}function B(){const t=window.location.hash;if(t.length<2)return null;const e=t.slice(1);let n=e;try{n=decodeURIComponent(e)}catch{}return document.getElementById(n)}function T(t){const e=t.querySelector("#show-pricing-table"),n=t.querySelector("#pricing-table-container"),a=t.querySelector("#pricing-subNav-features");function s(){return document.getElementById("pricing-table-container")?.getAttribute("data-collapsed")!=="false"}function i(){const o=document.getElementById("pricing-table-container"),r=document.getElementById("show-pricing-table");o&&(o.setAttribute("data-collapsed","false"),r&&(w(r,v),r.setAttribute("aria-expanded","true")))}function u(){const o=document.getElementById("pricing-table-container"),r=document.getElementById("show-pricing-table");o&&(o.setAttribute("data-collapsed","true"),r&&(w(r,E),r.setAttribute("aria-expanded","false")))}function c(){const o=document.getElementById("pricing-table-container");if(!o)return null;if(window.location.hash===g)return o;const r=B();return r&&o.contains(r)?r:null}function l(o){const r=c();if(!r)return!1;const p=s();return i(),p&&h(r,o),!0}function d(o){l(o)||u()}e&&e.dataset.collapseToggleBound!=="true"&&(e.dataset.collapseToggleBound="true",e.addEventListener("click",o=>{if(o.preventDefault(),n?.getAttribute("data-collapsed")==="true"){i(),window.location.hash!==g&&window.history.pushState(null,"",g);const p=document.getElementById("pricing-table-container");p&&h(p,"smooth")}else u(),window.history.pushState(null,"",`${window.location.pathname}${window.location.search}`)})),a&&a.dataset.collapseToggleBound!=="true"&&(a.dataset.collapseToggleBound="true",a.addEventListener("click",()=>{if(n?.getAttribute("data-collapsed")==="true"){i(),window.history.pushState(null,"",g);const r=document.getElementById("pricing-table-container");r&&h(r,"smooth")}})),l("instant"),b||(b=!0,window.addEventListener("hashchange",()=>d("smooth")),window.addEventListener("popstate",()=>d("smooth")))}function A(t){const e=t.querySelector('[data-table-size="wide"]'),n=t.querySelector('[data-table-size="narrow"]'),a=(s,i)=>document.documentElement.style.setProperty(s,`${i.getBoundingClientRect().height}px`);e&&e.dataset.resizeObserverBound!=="true"&&(e.dataset.resizeObserverBound="true",a("--pricing-wide-header-height",e),new ResizeObserver(([i])=>{document.documentElement.style.setProperty("--pricing-wide-header-height",`${i.contentRect.height}px`)}).observe(e)),n&&n.dataset.resizeObserverBound!=="true"&&(n.dataset.resizeObserverBound="true",a("--pricing-narrow-header-height",n),new ResizeObserver(([i])=>{document.documentElement.style.setProperty("--pricing-narrow-header-height",`${i.contentRect.height}px`)}).observe(n))}document.addEventListener("astro:page-load",()=>m());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.