function w(e){return new Worker(""+new URL("../workers/editor.worker-DX6ApQqM.js",import.meta.url).href,{name:e==null?void 0:e.name})}function h(e){return new Worker(""+new URL("../workers/css.worker-BRIrhzkG.js",import.meta.url).href,{name:e==null?void 0:e.name})}function p(e){return new Worker(""+new URL("../workers/html.worker-CBI4EQBP.js",import.meta.url).href,{name:e==null?void 0:e.name})}function W(e){return new Worker(""+new URL("../workers/json.worker-CIZWV9vN.js",import.meta.url).href,{name:e==null?void 0:e.name})}function C(e){return new Worker(""+new URL("../workers/ts.worker-Ds4I2Msu.js",import.meta.url).href,{name:e==null?void 0:e.name})}function L(){if(typeof window>"u")return;const e=window.MonacoEnvironment;e!=null&&e.getWorker||(window.MonacoEnvironment={...e,getWorker:function(s,r){return r==="json"?new W:r==="css"||r==="scss"||r==="less"?new h:r==="html"||r==="handlebars"||r==="razor"?new p:r==="typescript"||r==="javascript"?new C:new w}})}function F(e,s){const r=s.createDecorationsCollection();function g(){const a=s.getModel();if(!a)return;const i=[],l=a.getLineCount();for(let t=1;t<=l;t++){const u=a.getLineContent(t),d=/^(#+)\s/.exec(u);if(d){const n=d[1].length;let o="prompt-heading-3";n===1?o="prompt-heading-1":n===2&&(o="prompt-heading-2"),i.push({range:new e.Range(t,1,t,u.length+1),options:{isWholeLine:!0,inlineClassName:o}})}for(let n=1;n<=u.length;n++){const o=u[n-1];(o==="#"||o==="*")&&i.push({range:new e.Range(t,n,t,n+1),options:{inlineClassName:"prompt-symbol"}})}const c=u.match(/^(\s+)(\d+(?:\.\d+)+\.?)(?=[\s)]|$)/);if(c){const n=c[1],o=c[2],m=n.length+1,D=m+o.length;i.push({range:new e.Range(t,m,t,D),options:{inlineClassName:"prompt-subnumber"}})}}r.set(i)}function k(){r.clear()}return{update:g,dispose:k}}const B={base:"vs-dark",inherit:!0,rules:[{token:"",foreground:"DDDDDD"},{token:"string.md",foreground:"DDDDDD"},{token:"keyword.md",foreground:"767676"},{token:"strong.md",foreground:"DDDDDD",fontStyle:"bold"},{token:"string.target.md",foreground:"00B58A"},{token:"tag.md",foreground:"CE9178"},{token:"string.link.md",foreground:"569cd6",fontStyle:"underline"}],colors:{"editor.background":"#1D1D1D","editor.foreground":"#AFAFAF","editorLineNumber.foreground":"#636363","editorLineNumber.activeForeground":"#767676","editorCursor.foreground":"#DDDDDD","editor.selectionBackground":"#4B5563D0","editor.inactiveSelectionBackground":"#4B5563A0","editor.lineHighlightBackground":"#FFFFFF08","editorLineNumber.background":"#1D1D1D"}};let f=!1;function R(e){f||(e.editor.defineTheme("bosun-dark",B),f=!0)}export{R as a,F as c,L as e};
