/*! Sentrize v3.0.0 · content.js · sentrize.com
 * Minified with terser/csso: local variable renaming and
 * whitespace/comment removal ONLY. No obfuscation, no control-flow flattening, no string encoding. */
self.MVC=self.MVC||{},function(){const e="__sentrize_ext_host__",t=document.getElementById(e);if(t){try{t.__close()}catch(e){t.remove()}return}function o(e){"workspace"!==e||"function"!=typeof self.MVC.initWorkspace?"function"!=typeof self.MVC.initClassic||self.MVC.initClassic():self.MVC.initWorkspace()}const r=e+"__prev__",n="__mv_bar_bridge__";function c(e){try{if(!e)return"dark";if(e.classList.contains("light"))return"light";const t=e.shadowRoot,o=t&&t.querySelector(".workspace-root");if(o&&"light"===o.dataset.theme)return"light"}catch(e){}return"dark"}if(self.MVC.pinBarBridge=function(e){self.MVC.unpinBarBridge();try{const t=e&&e.shadowRoot,o=t&&t.querySelector(".bar, .workspace-bar");if(!o)return;const r=o.getBoundingClientRect(),s="light"===c(e),a=document.createElement("div");a.id=n,a.setAttribute("aria-hidden","true"),a.style.cssText=["position:fixed","inset:auto 0 auto 0","top:"+Math.max(0,Math.round(r.top))+"px","left:0","right:0","width:auto","height:"+Math.max(1,Math.round(r.height))+"px","margin:0","padding:0","border:0","background:"+(s?"#eef0f3":"#161a23"),"box-shadow:"+(s?"0 2px 12px rgba(0,0,0,.15)":"0 2px 12px rgba(0,0,0,.45)"),"pointer-events:none","overflow:hidden"].join(";");const i="function"==typeof a.showPopover&&"popover"in HTMLElement.prototype;if(i&&a.setAttribute("popover","manual"),document.documentElement.appendChild(a),i)try{a.showPopover()}catch(e){}}catch(e){}},self.MVC.unpinBarBridge=function(){const e=document.getElementById(n);if(e){try{if("function"==typeof e.hidePopover&&e.hasAttribute("popover"))try{e.hidePopover()}catch(e){}}catch(e){}try{e.remove()}catch(e){}}},self.MVC.releaseFrozenChrome=function(){try{clearTimeout(self.MVC._chromeReleaseSafety)}catch(e){}self.MVC._chromeReleaseSafety=0;const t=document.getElementById(e);if(t&&t.shadowRoot){try{t.shadowRoot.querySelectorAll(".mv-chrome-ghost").forEach(e=>{e.classList.remove("mv-chrome-ghost")})}catch(e){}try{t.style.zIndex=""}catch(e){}}const o=document.getElementById(r);requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(o&&o.isConnected)try{const e=o.__mvController;e&&"function"==typeof e.destroy?e.destroy({reason:"switch"}):o.remove()}catch(e){try{o.remove()}catch(e){}}requestAnimationFrame(()=>{requestAnimationFrame(()=>{try{self.MVC.unpinBarBridge()}catch(e){}})})})})},self.MVC.switchMode=function(t){const n="workspace"===t?"workspace":"classic",s=document.getElementById(e);if(!s)return;const a=s.__mvController;self.MVC._pendingBarEnter=!0,self.MVC._pendingUiTheme=c(s);try{const e=a&&a.lang;e&&self.MV&&self.MV.I18N&&self.MV.I18N[e]&&(self.MVC._pendingLang=e)}catch(e){}try{a&&"function"==typeof a.flush&&a.flush()}catch(e){}if(s)try{!function(e){try{const t=e&&e.shadowRoot;if(!t)return;const o=t.querySelector(".bar, .workspace-bar");o&&(o.classList.remove("mv-bar-exiting"),Array.prototype.forEach.call(o.querySelectorAll(".mv-bar-exit"),e=>{e.classList.remove("mv-bar-exit");try{e.style.removeProperty("--mv-bar-i")}catch(e){}try{e.style.opacity=""}catch(e){}try{e.style.transform=""}catch(e){}try{e.style.animation=""}catch(e){}}));try{e.classList.remove("mv-mode-leaving")}catch(e){}const r=t.querySelector(".workspace-root");r&&r.classList.remove("mv-mode-leaving")}catch(e){}}(s),self.MVC.pinBarBridge(s),s.id=r,s.classList.add("mv-chrome-freeze"),s.style.pointerEvents="none",s.style.zIndex="2147483647";const e=s.shadowRoot;if(e){const t=e.querySelector(".workspace-root");t&&t.classList.add("mv-chrome-freeze");const o=e.querySelector(".topdock");o&&o.classList.remove("hidden")}if("function"==typeof s.showPopover&&s.hasAttribute("popover"))try{s.showPopover()}catch(e){}}catch(e){}self.MVC.setMode(n,()=>{o(n);const t=document.getElementById(e);if(t)try{t.style.zIndex="2147483646"}catch(e){}const c=document.getElementById(r);if(c&&"function"==typeof c.showPopover&&c.hasAttribute("popover"))try{c.showPopover()}catch(e){}try{clearTimeout(self.MVC._chromeReleaseSafety)}catch(e){}self.MVC._chromeReleaseSafety=setTimeout(()=>{"function"==typeof self.MVC.releaseFrozenChrome&&self.MVC.releaseFrozenChrome()},1600)})},!self.MVC._msgBound)try{chrome.runtime.onMessage.addListener(t=>{if(t&&t.type&&"pageUrlChanged"===t.type){const o=document.getElementById(e),r=o&&o.__mvController;r&&"function"==typeof r.onPageUrlChanged&&r.onPageUrlChanged(t.url||location.href)}}),self.MVC._msgBound=!0}catch(e){}"function"==typeof self.MVC.getMode?self.MVC.getMode(o):o("classic")}();
