| 3281 | return { ...t, ...(i ? { patch: i } : {}), ...(r ? { config: r } : {}) }; |
| 3282 | } |
| 3283 | async function Ln(e, t = {}) { |
| 3284 | const n = document.createElement("div"); |
| 3285 | n.classList.add("vega-embed-wrapper"); |
| 3286 | const r = document.createElement("div"); |
| 3287 | n.appendChild(r); |
| 3288 | const i = |
| 3289 | !0 === t.actions || !1 === t.actions |
| 3290 | ? t.actions |
| 3291 | : { export: !0, source: !1, compiled: !0, editor: !0, ...t.actions }, |
| 3292 | o = await In(r, e, { actions: i, ...t }); |
| 3293 | return ((n.value = o.view), n); |
| 3294 | } |
| 3295 | const Nn = (...t) => { |
| 3296 | return t.length > 1 && |
| 3297 | ((e.isString(t[0]) && |