var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{Q:()=>c});const r=document,o=r.querySelectorAll.bind(r),i=window.jQuery,d=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function n(){o(".arve p:not(.arve-error p), .arve .video-wrap, .arve .fluid-width-video-wrapper, .arve .fluid-vids").forEach(e=>{a(e)}),o(".ast-oembed-container, .video-container").forEach(e=>{e.querySelector(".arve")&&a(e)}),o(".arve-iframe, .arve-video").forEach(e=>{e.removeAttribute("width"),e.removeAttribute("height"),e.removeAttribute("style")})}function a(e){const t=e.parentNode;if(!(t instanceof Node))throw new Error("Element has no parent node");for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function c(e){void 0!==r&&("complete"!==r.readyState&&"interactive"!==r.readyState?r.addEventListener("DOMContentLoaded",e):e())}"html"!==r.documentElement.id&&(r.documentElement.id?r.body.id||(r.body.id="html"):r.documentElement.id="html"),c(()=>{n(),d&&document.querySelectorAll("video").forEach(e=>{if(!e.poster){const t=e.src||e.querySelector("source")?.src;t&&!t.includes("#t=")&&(e.src=t+"#t=0.001")}})}),i&&void 0!==i.fn.fitVids&&i(r).ready(()=>{setTimeout(()=>{n()},1)});const l=t.Q;export{l as domReady};