import{s as i}from"./chunk-LvLJmgfZ.js";import{t as a}from"./react-Bj1aDYRI.js";import{t as p}from"./compiler-runtime-B3qBwwSJ.js";import{t as s}from"./jsx-runtime-Blw4afVn.js";import"./vega-loader.browser-Dun7Qe4B.js";import{n}from"./react-vega-BLc5RhC7.js";import"./defaultLocale-DOVIEEPN.js";import"./defaultLocale-BUCH2FMc.js";import{t as e}from"./utils-CCTAhdFi.js";import{t as f}from"./use-vega-container-remeasure-C52OJt1l.js";var c=p(),l=i(a(),1),u=i(s(),1);function x(r){let t=(0,c.c)(2),m=(0,l.useRef)(null);f(m,e(r.spec)==="container");let o;return t[0]===r?o=t[1]:(o=(0,u.jsx)(n,{ref:m,...r}),t[0]=r,t[1]=o),o}export{x as VegaEmbedContainer};
