"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[199],{6199:function(t,e,n){n.r(e),n.d(e,{mount:function(){return l}});var i=n(6555),o=n(1610);const r=function(t){if(!t.nextElementSibling)return;if(t.nextElementSibling.popperMounted)return;t.nextElementSibling.popperMounted=!0,(0,o.C)()||0!==t.tabIndex||t.addEventListener("mousedown",function(t){t.preventDefault()});const e=t.nextElementSibling,n=t.getBoundingClientRect(),i=e.getBoundingClientRect();let l=n.left>innerWidth/2?"left":"right",s=l;const u=parseFloat(getComputedStyle(e).getPropertyValue("--theme-submenu-inline-offset")||-20);if(i.width>innerWidth-n.left+u&&(s="left"),n.right-u-i.width<0&&(s="right"),n.left+i.width>innerWidth&&n.right-i.width<0){s=l;let t=0,i=20;"left"===s&&(t=innerWidth-n.right-i),"right"===s&&(t=n.left-i),t=Math.round(t),e.style.setProperty("--theme-submenu-inline-offset",-1*t+"px")}e.dataset.placement=s;const c=new MutationObserver(function(n){n.find(function(t){return"childList"===t.type&&[...t.removedNodes].find(function(t){return t===e})})&&(c.disconnect(),r(t))});c.observe(e.parentNode,{childList:!0})},l=function(t){Promise.all(ct_localizations.dynamic_styles_selectors.filter(function(e){return!!t.closest(e.selector)}).map(function(t){let{url:e}=t;return(0,i.MK)(e)})).then(function(){return r(t)})}}}]);