"use strict";(self.webpackChunkjupyterlab_codex_sidebar=self.webpackChunkjupyterlab_codex_sidebar||[]).push([[124],{8124(e,n,t){t.r(n),t.d(n,{default:()=>s});var r=t(4502);const a=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:？！。，：]|$)/,i=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1/,l=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;function s(e={}){return{extensions:[d(e,o(e,!1)),(n=o(e,!0),{name:"blockKatex",level:"block",tokenizer(e,n){const t=e.match(l);if(t)return{type:"blockKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:n})]};var n}function o(e,n){return t=>r.default.renderToString(t.text,{...e,displayMode:t.displayMode})+(n?"\n":"")}function d(e,n){const t=e&&e.nonStandard,r=t?i:a;return{name:"inlineKatex",level:"inline",start(e){let n,a=e;for(;a;){if(n=a.indexOf("$"),-1===n)return;if((t?n>-1:0===n||" "===a.charAt(n-1))&&a.substring(n).match(r))return n;a=a.substring(n+1).replace(/^\$+/,"")}},tokenizer(e,n){const t=e.match(r);if(t)return{type:"inlineKatex",raw:t[0],text:t[2].trim(),displayMode:2===t[1].length}},renderer:n}}}}]);