import"./p-dcc98162.js";import{I as e,c as a}from"./p-3a41fc0a.js";import"./p-9ec80349.js";import"./p-8b5d3a52.js";const t=[{payloadKey:"IS_WAITFORVEGA_METHOD_CALLED",payloadDescription:"Indicate if the method waitForVega of public API WaitForVegaHandler is called",canAccept:(e,a)=>"WaitForVegaHandler"===e&&"handle"===a,payloadValue:()=>!0}];class o{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=a(o,["handle"],t)}async handle(){return await Promise.all(Array.from(document.querySelectorAll("*:not(.hydrated)")).filter((e=>e.tagName.startsWith("VEGA"))).map((e=>{var a;return null===(a=e.componentOnReady)||void 0===a?void 0:a.call(e)})))}}!function(e,a,t,o){var c,r=arguments.length,i=r<3?a:null===o?o=Object.getOwnPropertyDescriptor(a,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,a,t,o);else for(var n=e.length-1;n>=0;n--)(c=e[n])&&(i=(r<3?c(i):r>3?c(a,t,i):c(a,t))||i);r>3&&i&&Object.defineProperty(a,t,i)}([e()],o.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const c=new o,r=async()=>c.handle();export{r as waitForVega}