export default async e=>{if("undefined"!=typeof jQuery){if("ResizeObserver"in window==0){const e=await import("@juggle/resize-observer");window.ResizeObserver=e.ResizeObserver}var t=new ResizeObserver((e=>{for(let t of e){const e=t.contentRect;jQuery(t.target).find(".plyr__menu__container").css({maxHeight:`${Math.max(e.height-48,200)}px`})}}));e?.elements?.container?.getRootNode()?.firstChild&&(t.observe(e?.elements?.container?.getRootNode()?.firstChild),e&&e.on("playing",(()=>{const t=e?.elements?.container?.getRootNode().firstChild.getBoundingClientRect();jQuery(e?.elements?.container?.getRootNode()).find(".plyr__menu__container").css({maxHeight:`${Math.max(t.height-48,200)}px`})})))}};