import"./Bzak7iHL.js";import{i as f}from"./BF76IE5W.js";import{m as d,o as u,p as c,e as m,a as p,b as h,h as y,r as v,E as w}from"./D0ctIA8a.js";import{a as E}from"./C4aatTdL.js";import{p as b}from"./DqBKqUmK.js";function S(t,e,n,o,r){var s;d&&u();var i=(s=e.$$slots)==null?void 0:s[n],a=!1;i===!0&&(i=e.children,a=!0),i===void 0||i(t,a?()=>o:o)}function l(t,e="body"){let n;async function o(i){if(e=i,typeof e=="string"){if(n=document.querySelector(e),n===null&&(await w(),n=document.querySelector(e)),n===null)throw new Error(`No element found matching css selector: "${e}"`)}else if(e instanceof HTMLElement)n=e;else throw new TypeError(`Unknown portal target type: ${e===null?"null":typeof e}. Allowed types: string (CSS selector) or HTMLElement.`);n.appendChild(t),t.hidden=!1}function r(){t.parentNode&&t.parentNode.removeChild(t)}return o(e),{update:o,destroy:r}}var _=m("
");function x(t,e){c(e,!1);let n=b(e,"target",8,"body");f();var o=_(),r=y(o);S(r,e,"default",{}),v(o),E(o,(i,a)=>l==null?void 0:l(i,a),n),p(t,o),h()}export{x as P};