const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./jquery.module-C-kFMK_z.js","./jquery.module-z0Ig-8vR.js","./chunk-CNMia1zD.js","./bootstrap.rtl-BYgCuaBI.css","./bootstrap-DpRzsTW8.css","./mobile-uwX16IH4.js","./preload-helper-DXCjA0eP.js","./content_renderer-CoENEE63.js","./options-CDt8ZGCW.js","./utils-BakkG8Vx.js","./src-BFy5RBR8.js","./dayjs.min-BlRU_WWw.js","./isoWeek-oFTBaQAT.js","./math-BjY8tSx6.js","./katex-CTfMVfAW.js","./math-DEHKHNYx.css","./color-name-DhY1PQ7o.js","./purify.es-DDgBMZop.js","./src-DGRfvqTF.js","./hooks.module-5xe-uC6c.js","./jsxRuntime.module--xb8gfv5.js","./content_renderer-DiuF2PcB.css","./note_autocomplete-CXZAuuiO.js","./glob-haLui6ra.js","./jquery.bundler-require-wrapper-DYgKDrkl.js","./__vite-browser-external-yQedxin0.js","./print-BPdLARyh.js","./NoteList-DSkThDng.js","./hooks-CSTgmcXO.js","./mark-FptWalr3.js","./compat.module-PCbCX7TU.js","./NoteList-xSzBouqX.css","./desktop-CgYiWgoQ.js"])))=>i.map(i=>d[i]);
import{n as e}from"./theme-CWieNL7r.js";import{t}from"./preload-helper-DXCjA0eP.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();async function n(){d(),await i(),await Promise.all([r(),a()]),s(),c(),l(),await u(),f()}async function r(){let e=(await t(async()=>{let{default:e}=await import(`./jquery.module-C-kFMK_z.js`);return{default:e}},__vite__mapDeps([0,1,2]),import.meta.url)).default;window.$=e,window.jQuery=e,e.isArray=Array.isArray,e.isFunction=function(e){return typeof e==`function`},e.isPlainObject=function(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n===Object}}async function i(){let t=await(await fetch(`./bootstrap${window.location.search}`)).json();window.global=globalThis,window.glob={...t,activeDialog:null},window.glob.getThemeStyle=e}async function a(){glob.isRtl?await t(()=>Promise.resolve({}),__vite__mapDeps([3]),import.meta.url):await t(()=>Promise.resolve({}),__vite__mapDeps([4]),import.meta.url)}function o(e,t,n){return t===`auto`?[{href:`${e}/theme-dark.css`,media:`(prefers-color-scheme: dark)`}]:t===`dark`?[{href:`${e}/theme-dark.css`}]:t===`next`?[{href:`${e}/theme-next-light.css`},{href:`${e}/theme-next-dark.css`,media:`(prefers-color-scheme: dark)`}]:t===`next-light`?[{href:`${e}/theme-next-light.css`}]:t===`next-dark`?[{href:`${e}/theme-next-dark.css`}]:t!==`light`&&n?[{href:n}]:[]}function s(){let{device:e,assetPath:t,theme:n,themeBase:r,customThemeCssUrl:i}=window.glob,a=`${t}/stylesheets`,s=[];e!==`print`&&(s.push({href:`${a}/ckeditor-theme.css`}),s.push({href:`api/fonts`}),s.push({href:`${a}/theme-light.css`}),s.push(...o(a,n,i)),r&&s.push(...o(a,r)),s.push({href:`${a}/style.css`}));for(let{href:e,media:t}of s){let n=document.createElement(`link`);n.href=e,n.rel=`stylesheet`,t&&(n.media=t),document.head.appendChild(n)}}function c(){let e=document.createElement(`style`);e.innerText=window.glob.iconPackCss,document.head.appendChild(e)}function l(){let{device:e,headingStyle:t,layoutOrientation:n,platform:r,isElectron:i,hasNativeTitleBar:a,hasBackgroundEffects:o,currentLocale:s}=window.glob,c=[e,`heading-style-${t}`,`layout-${n}`,`platform-${r}`,i&&`electron`,a&&`native-titlebar`,o&&`background-effects`].filter(Boolean);for(let e of c)document.body.classList.add(e);document.body.lang=s.id,document.body.dir=s.rtl?`rtl`:`ltr`}async function u(){switch(glob.device){case`mobile`:await t(()=>import(`./mobile-uwX16IH4.js`),__vite__mapDeps([5,6,7,2,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,1,25]),import.meta.url);break;case`print`:await t(()=>import(`./print-BPdLARyh.js`),__vite__mapDeps([26,6,7,2,8,9,10,11,12,13,14,15,16,17,18,19,20,21,27,28,29,30,31]),import.meta.url);break;default:await t(()=>import(`./desktop-CgYiWgoQ.js`),__vite__mapDeps([32,6,7,2,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,1,25]),import.meta.url);break}}function d(){document.body.style.display=`none`}function f(){document.body.style.display=`block`}n();