@xopcai/xopc 0.0.408 → 0.0.409
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-B0em9Xfs.js → agent-avatar-dicebear-lMrejpsz.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-lXwR3Rff.js +1 -0
- package/dist/gateway/static/root/assets/agents-DFwBf95X.js +77 -0
- package/dist/gateway/static/root/assets/app-management-settings-panel-Cja3eV7H.js +1 -0
- package/dist/gateway/static/root/assets/appearance-settings-Dzhmj_ZO.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-C3xbCdYa.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-BjWaZIHe.js → archive-plugin-D4r4P5uG.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-IkrLEkMb.js → automations-page-BlNe3DXU.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-CWvHbJBK.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-DKy1DC62.js → binary-plugins-DuN5L6lm.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-4E-OdmNm.js → block-editor-DUSVn51h.js} +4 -4
- package/dist/gateway/static/root/assets/browser-automation-inputs-D8bZ9iz2.js +1 -0
- package/dist/gateway/static/root/assets/browser-automations-page-BtvOURHQ.js +3 -0
- package/dist/gateway/static/root/assets/browser-settings-page-C_OeE79S.js +3 -0
- package/dist/gateway/static/root/assets/button-aIC072nz.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-BKF6q_tC.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-B7qOaUZs.js +8 -0
- package/dist/gateway/static/root/assets/capability-header-actions-oBPqUlbj.js +1 -0
- package/dist/gateway/static/root/assets/channels-3M9-anCN.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-vb3kBSeI.js → chat-terminal-dock-BLs3NaOP.js} +2 -2
- package/dist/gateway/static/root/assets/computer-settings-page-LaekhDG6.js +1 -0
- package/dist/gateway/static/root/assets/connector-service-page-DJP1n1_n.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-DmQqMy6l.js +1 -0
- package/dist/gateway/static/root/assets/date-picker-DVlbwrYg.js +1 -0
- package/dist/gateway/static/root/assets/dependency-picker-BhElpD_6.js +1 -0
- package/dist/gateway/static/root/assets/{desktop-pet-Bb-s29ag.js → desktop-pet-ByvV-cDD.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-BBruQu-_.js +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-C3zOy8PO.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-CkGfC105.js → directory-picker-path-field-QZ0p-uNa.js} +1 -1
- package/dist/gateway/static/root/assets/dist-C3DSFZCi.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-Cm0F3rcI.js → extension-debug-page-DoVPUHu_.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-B72a-tnZ.js → extension-page-BNe8n3iJ.js} +1 -1
- package/dist/gateway/static/root/assets/extension-settings-page-DxNpjGJD.js +1 -0
- package/dist/gateway/static/root/assets/file-archive-DanfQJNe.js +1 -0
- package/dist/gateway/static/root/assets/file-braces-BoAMI_k9.js +1 -0
- package/dist/gateway/static/root/assets/file-image-CDUPkZvG.js +1 -0
- package/dist/gateway/static/root/assets/gateway-settings-CzrFZ0lB.js +1 -0
- package/dist/gateway/static/root/assets/globe-DSSGFWFn.js +1 -0
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-BWjkqT5j.js → highlighted-body-KQOG7T2V-DrZq5KTj.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-cXmd8x0S.js +2 -0
- package/dist/gateway/static/root/assets/image-generation-api-C6su4n9B.js +1 -0
- package/dist/gateway/static/root/assets/imports-page-CsXYryWS.js +1 -0
- package/dist/gateway/static/root/assets/index-BZlryZm8.css +1 -0
- package/dist/gateway/static/root/assets/index-uAJlrGvo.js +267 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Cf29ltoI.js → keyboard-shortcuts-settings-GYKLt0oF.js} +1 -1
- package/dist/gateway/static/root/assets/loader-circle-CifKLtgG.js +1 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-Dw-i6VkX.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-page-DslilwNE.js +1 -0
- package/dist/gateway/static/root/assets/logs-page-4N8bGPIE.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-CPmxI1k0.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-B35a4o1v.js → markdown-view-Ljt0bhfF.js} +6 -6
- package/dist/gateway/static/root/assets/{media-plugins-Bl1Xga_v.js → media-plugins-s6EqtAUQ.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-Ba-WQCki.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-CjTm5gxS.js +5 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-hbSbEEfN.js +1 -0
- package/dist/gateway/static/root/assets/notes-page-DkESStKc.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-eyzTNrCe.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-DZxbFQvF.js +1 -0
- package/dist/gateway/static/root/assets/personal-settings-panel-DzubCRqj.js +1 -0
- package/dist/gateway/static/root/assets/plugin-details-dialog-BjVLbxZM.js +1 -0
- package/dist/gateway/static/root/assets/popover-select-DGKUpVsz.js +1 -0
- package/dist/gateway/static/root/assets/{preview-open-alternatives-6XU-2lVI.js → preview-open-alternatives-7pUtUL4O.js} +1 -1
- package/dist/gateway/static/root/assets/product-open-page-BPWSqtRt.js +1 -0
- package/dist/gateway/static/root/assets/product-preview-content-COo4zwp9.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-CrIH6nEy.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-D4swvBmH.js +1 -0
- package/dist/gateway/static/root/assets/remote-access-hub-DltfIMtv.js +1 -0
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-CNCx2RnO.js +1 -0
- package/dist/gateway/static/root/assets/schema-form-nRDA2XfI.js +1 -0
- package/dist/gateway/static/root/assets/sessions-page-CfYU53aw.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BJBoWYbO.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-Cl0eF4hl.js → settings-form-section-_ALUREPr.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-1jcGeVtB.js → settings-page-29ptuMYZ.js} +1 -1
- package/dist/gateway/static/root/assets/settings-shell-dialog-layer-BU3UuiJr.js +1 -0
- package/dist/gateway/static/root/assets/setup-status-panel-DZgVMRXr.js +1 -0
- package/dist/gateway/static/root/assets/share-preview-page-C2LHd_Nl.js +2 -0
- package/dist/gateway/static/root/assets/shares-settings-C5MTc6t-.js +1 -0
- package/dist/gateway/static/root/assets/skeleton-BI5TyibZ.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-BxCyuPhf.js → skill-api-C-T0K7Oo.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-BcdA9ezU.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-BMw8XbKL.js +2 -0
- package/dist/gateway/static/root/assets/style-DR0-RKaL.js +7 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-C9ejxax1.js → system-settings-panel-2Kr9Y-FJ.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-7kPco8Ys.js +2 -0
- package/dist/gateway/static/root/assets/{task-expandable-content-BMCvE36l.js → task-expandable-content-4s_FTl-9.js} +1 -1
- package/dist/gateway/static/root/assets/tracing-settings-page-D53wxq60.js +1 -0
- package/dist/gateway/static/root/assets/tunnel-api-DcDUSAjv.js +1 -0
- package/dist/gateway/static/root/assets/usage-page-Hut0SDqn.js +1 -0
- package/dist/gateway/static/root/assets/use-autosave-C4TUlpsu.js +1 -0
- package/dist/gateway/static/root/assets/user-model-page-KRy50OBd.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-Bk947X8N.js → voice-api-key-field-CMdihbPb.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-Bd9HLsds.js +1 -0
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-xQUvtVUU.js → workflow-run-setup-panel-C9mAiHBd.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-CGg4GWwt.js +6 -0
- package/dist/gateway/static/root/assets/xopc-cloud-account-card-ClQKM2RA.js +1 -0
- package/dist/gateway/static/root/index.html +13 -7
- package/dist/package.js +1 -1
- package/dist/src/gateway/service.js +11 -11
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/providers/domestic-presets.d.ts +12 -5
- package/dist/src/providers/domestic-presets.js +27 -28
- package/dist/src/providers/presentation.js +7 -19
- package/dist/src/providers/setup/engine.js +2 -2
- package/package.json +8 -8
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CtE1h2xU.js +0 -1
- package/dist/gateway/static/root/assets/agents-DAgFeHEb.js +0 -77
- package/dist/gateway/static/root/assets/app-management-settings-panel-B1qR8ElB.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-GA819R2q.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-DZptDZ7h.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-qfEjk_ws.js +0 -6
- package/dist/gateway/static/root/assets/browser-automation-inputs-Bs-AkQ1q.js +0 -1
- package/dist/gateway/static/root/assets/browser-automations-page-D0Vbe1Q_.js +0 -3
- package/dist/gateway/static/root/assets/browser-settings-page-BXCNNpQd.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-page-DMtxaYgt.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BlWrMG6Z.js +0 -8
- package/dist/gateway/static/root/assets/capability-header-actions-BMffrHhT.js +0 -1
- package/dist/gateway/static/root/assets/channels-C96r2Rqq.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-75SDQxQW.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-DmJ9dIql.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-Bua_nhSH.js +0 -1
- package/dist/gateway/static/root/assets/date-picker-BEDH1AbM.js +0 -1
- package/dist/gateway/static/root/assets/dependency-picker-LwWL5fo8.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-Btt-DzyT.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-_UWo9-4N.js +0 -1
- package/dist/gateway/static/root/assets/ellipsis-0k4rZLoy.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-BEDAm_Ib.js +0 -1
- package/dist/gateway/static/root/assets/eye-CABVeTq0.js +0 -1
- package/dist/gateway/static/root/assets/files-Bw4SBGdM.js +0 -1
- package/dist/gateway/static/root/assets/folder-open-CyzJ19I9.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-BapgXAhB.js +0 -1
- package/dist/gateway/static/root/assets/home-page-DNGjF6h4.js +0 -2
- package/dist/gateway/static/root/assets/image-generation-api-Bi1-Hvtr.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-b4VDs6Bd.js +0 -1
- package/dist/gateway/static/root/assets/index-Cgd4fGVP.js +0 -267
- package/dist/gateway/static/root/assets/index-gYRNcY2Q.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-dgUxHhW8.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-page-D3k9GjgF.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-BUlU7t8l.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-2L7XFZXc.js +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-Bi62iXra.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-ogBu93h0.js +0 -5
- package/dist/gateway/static/root/assets/note-image-lightbox-Dxvo_WsE.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-CNdoxzIZ.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-Bq4Xpop5.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-7P2leCsB.js +0 -1
- package/dist/gateway/static/root/assets/personal-settings-panel-D6n6TObP.js +0 -1
- package/dist/gateway/static/root/assets/plugin-details-dialog-JTxDbMI4.js +0 -1
- package/dist/gateway/static/root/assets/product-open-page-BpB0klIl.js +0 -1
- package/dist/gateway/static/root/assets/product-preview-content-DxQaoQew.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-LilHE2OV.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-D4Jxhuhq.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-Cy71CCQq.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-CrbjrokA.js +0 -1
- package/dist/gateway/static/root/assets/schema-form-DITi2cne.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-D1THmRXE.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CjRLXfoo.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-CFhDHkyK.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-By4IKKgg.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-q2sa1VvF.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-CIHSQxr1.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-BQaej_2C.js +0 -2
- package/dist/gateway/static/root/assets/style-Dt_oHNvB.js +0 -7
- package/dist/gateway/static/root/assets/task-detail-page-SipLlGGk.js +0 -2
- package/dist/gateway/static/root/assets/tracing-settings-page-bn9vnLrf.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-BeTAD8BN.js +0 -1
- package/dist/gateway/static/root/assets/usage-page-BPuc6leN.js +0 -1
- package/dist/gateway/static/root/assets/use-autosave-DwcmmxWR.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-YWSqv_kR.js +0 -2
- package/dist/gateway/static/root/assets/work-discovery-overlay-mjj7w_wU.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-DbKRAEWP.js +0 -6
- package/dist/gateway/static/root/assets/xopc-cloud-account-card-C4jQM6Uo.js +0 -1
package/dist/gateway/static/root/assets/{markdown-view-B35a4o1v.js → markdown-view-Ljt0bhfF.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,i as n,n as r,t as i}from"./vendor-react-BOUWij0V.js";import{d as a,f as o}from"./chunk-KS7C4IRE-B2HK1psj.js";import{t as s}from"./createLucideIcon-DPHK1VkS.js";import{t as c}from"./download-Dk-ZjtO6.js";import{t as l}from"./plus-Q2yW6OE7.js";import{t as
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(e,t){return fe(e)||pe(e,t)||ge(e,t)||me()}function ge(e,t){if(e){if(typeof e==`string`)return de(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}var _e=Object.entries,E=Object.setPrototypeOf,ve=Object.isFrozen,ye=Object.getPrototypeOf,be=Object.getOwnPropertyDescriptor,xe=Object.freeze,Se=Object.seal,Ce=Object.create,we=typeof Reflect<`u`&&Reflect,Te=we.apply,Ee=we.construct;xe||=function(e){return e},Se||=function(e){return e},Te||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Ee||=function(e){return new e(...[...arguments].slice(1))};var De=D(Array.prototype.forEach),Oe=D(Array.prototype.lastIndexOf),ke=D(Array.prototype.pop),Ae=D(Array.prototype.push),je=D(Array.prototype.splice),Me=Array.isArray,Ne=D(String.prototype.toLowerCase),Pe=D(String.prototype.toString),Fe=D(String.prototype.match),Ie=D(String.prototype.replace),Le=D(String.prototype.indexOf),Re=D(String.prototype.trim),ze=D(Number.prototype.toString),Be=D(Boolean.prototype.toString),Ve=typeof BigInt>`u`?null:D(BigInt.prototype.toString),He=typeof Symbol>`u`?null:D(Symbol.prototype.toString),Ue=D(Object.prototype.hasOwnProperty),We=D(Object.prototype.toString),Ge=D(RegExp.prototype.test),Ke=qe(TypeError);function D(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Te(e,t,n)}}function qe(e){return function(){return Ee(e,[...arguments])}}function O(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ne;if(E&&E(e,null),!Me(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ve(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Je(e){for(let t=0;t<e.length;t++)Ue(e,t)||(e[t]=null);return e}function Ye(e){let t=Ce(null);for(let r of _e(e)){var n=he(r,2);let i=n[0],a=n[1];Ue(e,i)&&(Me(a)?t[i]=Je(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=Ye(a):t[i]=a)}return t}function Xe(e){switch(typeof e){case`string`:return e;case`number`:return ze(e);case`boolean`:return Be(e);case`bigint`:return Ve?Ve(e):`0`;case`symbol`:return He?He(e):`Symbol()`;case`undefined`:return We(e);case`function`:case`object`:{if(e===null)return We(e);let t=e,n=Ze(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:We(e)}return We(e)}default:return We(e)}}function Ze(e,t){for(;e!==null;){let n=be(e,t);if(n){if(n.get)return D(n.get);if(typeof n.value==`function`)return D(n.value)}e=ye(e)}function n(){return null}return n}function Qe(e){try{return Ge(e,``),!0}catch{return!1}}var $e=xe(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),et=xe(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),tt=xe([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),nt=xe([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),rt=xe(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),it=xe([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),at=xe([`#text`]),ot=xe(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),st=xe(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ct=xe(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),lt=xe([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),ut=Se(/{{[\w\W]*|^[\w\W]*}}/g),dt=Se(/<%[\w\W]*|^[\w\W]*%>/g),ft=Se(/\${[\w\W]*/g),pt=Se(/^data-[\-\w.\u00B7-\uFFFF]+$/),mt=Se(/^aria-[\-\w]+$/),ht=Se(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gt=Se(/^(?:\w+script|data):/i),_t=Se(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vt=Se(/^html$/i),yt=Se(/^[a-z][.\w]*(-[.\w]+)+$/i),bt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},xt=function(){return typeof window>`u`?null:window},St=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ct=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function wt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xt(),t=e=>wt(e);if(t.version=`3.4.7`,t.removed=[],!e||!e.document||e.document.nodeType!==bt.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Ze(d,`cloneNode`),p=Ze(d,`remove`),m=Ze(d,`nextSibling`),h=Ze(d,`childNodes`),g=Ze(d,`parentNode`),_=Ze(d,`shadowRoot`),v=Ze(d,`attributes`),y=o&&o.prototype?Ze(o.prototype,`nodeType`):null,b=o&&o.prototype?Ze(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C=n,ee=C.implementation,te=C.createNodeIterator,ne=C.createDocumentFragment,w=C.getElementsByTagName,re=r.importNode,T=Ct();t.isSupported=typeof _e==`function`&&typeof g==`function`&&ee&&ee.createHTMLDocument!==void 0;let ie=ut,ae=dt,oe=ft,se=pt,ce=mt,le=gt,ue=_t,de=yt,fe=ht,pe=null,me=O({},[...$e,...et,...tt,...rt,...at]),he=null,ge=O({},[...ot,...st,...ct,...lt]),E=Object.seal(Ce(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ye=null,be=Object.seal(Ce(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Se=!0,we=!0,Te=!1,Ee=!0,ze=!1,Be=!0,Ve=!1,He=!1,We=!1,D=!1,qe=!1,Je=!1,Tt=!0,Et=!1,Dt=`user-content-`,Ot=!0,kt=!1,k={},At=null,jt=O({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Mt=null,Nt=O({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Pt=null,Ft=O({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),It=`http://www.w3.org/1998/Math/MathML`,Lt=`http://www.w3.org/2000/svg`,Rt=`http://www.w3.org/1999/xhtml`,zt=Rt,Bt=!1,Vt=null,Ht=O({},[It,Lt,Rt],Pe),Ut=O({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Wt=O({},[`annotation-xml`]),Gt=O({},[`title`,`style`,`font`,`a`,`script`]),Kt=null,qt=[`application/xhtml+xml`,`text/html`],Jt=null,Yt=null,Xt=n.createElement(`form`),Zt=function(e){return e instanceof RegExp||e instanceof Function},Qt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Yt&&Yt===e)return;(!e||typeof e!=`object`)&&(e={}),e=Ye(e),Kt=qt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Jt=Kt===`application/xhtml+xml`?Pe:Ne,pe=Ue(e,`ALLOWED_TAGS`)&&Me(e.ALLOWED_TAGS)?O({},e.ALLOWED_TAGS,Jt):me,he=Ue(e,`ALLOWED_ATTR`)&&Me(e.ALLOWED_ATTR)?O({},e.ALLOWED_ATTR,Jt):ge,Vt=Ue(e,`ALLOWED_NAMESPACES`)&&Me(e.ALLOWED_NAMESPACES)?O({},e.ALLOWED_NAMESPACES,Pe):Ht,Pt=Ue(e,`ADD_URI_SAFE_ATTR`)&&Me(e.ADD_URI_SAFE_ATTR)?O(Ye(Ft),e.ADD_URI_SAFE_ATTR,Jt):Ft,Mt=Ue(e,`ADD_DATA_URI_TAGS`)&&Me(e.ADD_DATA_URI_TAGS)?O(Ye(Nt),e.ADD_DATA_URI_TAGS,Jt):Nt,At=Ue(e,`FORBID_CONTENTS`)&&Me(e.FORBID_CONTENTS)?O({},e.FORBID_CONTENTS,Jt):jt,ve=Ue(e,`FORBID_TAGS`)&&Me(e.FORBID_TAGS)?O({},e.FORBID_TAGS,Jt):Ye({}),ye=Ue(e,`FORBID_ATTR`)&&Me(e.FORBID_ATTR)?O({},e.FORBID_ATTR,Jt):Ye({}),k=Ue(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Ye(e.USE_PROFILES):e.USE_PROFILES:!1,Se=e.ALLOW_ARIA_ATTR!==!1,we=e.ALLOW_DATA_ATTR!==!1,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ze=e.SAFE_FOR_TEMPLATES||!1,Be=e.SAFE_FOR_XML!==!1,Ve=e.WHOLE_DOCUMENT||!1,D=e.RETURN_DOM||!1,qe=e.RETURN_DOM_FRAGMENT||!1,Je=e.RETURN_TRUSTED_TYPE||!1,We=e.FORCE_BODY||!1,Tt=e.SANITIZE_DOM!==!1,Et=e.SANITIZE_NAMED_PROPS||!1,Ot=e.KEEP_CONTENT!==!1,kt=e.IN_PLACE||!1,fe=Qe(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ht,zt=typeof e.NAMESPACE==`string`?e.NAMESPACE:Rt,Ut=Ue(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Ye(e.MATHML_TEXT_INTEGRATION_POINTS):O({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Wt=Ue(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Ye(e.HTML_INTEGRATION_POINTS):O({},[`annotation-xml`]);let t=Ue(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Ye(e.CUSTOM_ELEMENT_HANDLING):Ce(null);if(E=Ce(null),Ue(t,`tagNameCheck`)&&Zt(t.tagNameCheck)&&(E.tagNameCheck=t.tagNameCheck),Ue(t,`attributeNameCheck`)&&Zt(t.attributeNameCheck)&&(E.attributeNameCheck=t.attributeNameCheck),Ue(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(E.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),ze&&(we=!1),qe&&(D=!0),k&&(pe=O({},at),he=Ce(null),k.html===!0&&(O(pe,$e),O(he,ot)),k.svg===!0&&(O(pe,et),O(he,st),O(he,lt)),k.svgFilters===!0&&(O(pe,tt),O(he,st),O(he,lt)),k.mathMl===!0&&(O(pe,rt),O(he,ct),O(he,lt))),be.tagCheck=null,be.attributeCheck=null,Ue(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?be.tagCheck=e.ADD_TAGS:Me(e.ADD_TAGS)&&(pe===me&&(pe=Ye(pe)),O(pe,e.ADD_TAGS,Jt))),Ue(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?be.attributeCheck=e.ADD_ATTR:Me(e.ADD_ATTR)&&(he===ge&&(he=Ye(he)),O(he,e.ADD_ATTR,Jt))),Ue(e,`ADD_URI_SAFE_ATTR`)&&Me(e.ADD_URI_SAFE_ATTR)&&O(Pt,e.ADD_URI_SAFE_ATTR,Jt),Ue(e,`FORBID_CONTENTS`)&&Me(e.FORBID_CONTENTS)&&(At===jt&&(At=Ye(At)),O(At,e.FORBID_CONTENTS,Jt)),Ue(e,`ADD_FORBID_CONTENTS`)&&Me(e.ADD_FORBID_CONTENTS)&&(At===jt&&(At=Ye(At)),O(At,e.ADD_FORBID_CONTENTS,Jt)),Ot&&(pe[`#text`]=!0),Ve&&O(pe,[`html`,`head`,`body`]),pe.table&&(O(pe,[`tbody`]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ke(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ke(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);x=e.TRUSTED_TYPES_POLICY,S=x.createHTML(``)}else x===void 0&&(x=St(u,i)),x!==null&&typeof S==`string`&&(S=x.createHTML(``));(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&pe===me&&(pe=Ye(pe)),T.uponSanitizeAttribute.length>0&&he===ge&&(he=Ye(he)),xe&&xe(e),Yt=e},$t=O({},[...et,...tt,...nt]),en=O({},[...rt,...it]),tn=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:zt,tagName:`template`});let n=Ne(e.tagName),r=Ne(t.tagName);return Vt[e.namespaceURI]?e.namespaceURI===Lt?t.namespaceURI===Rt?n===`svg`:t.namespaceURI===It?n===`svg`&&(r===`annotation-xml`||Ut[r]):!!$t[n]:e.namespaceURI===It?t.namespaceURI===Rt?n===`math`:t.namespaceURI===Lt?n===`math`&&Wt[r]:!!en[n]:e.namespaceURI===Rt?t.namespaceURI===Lt&&!Wt[r]||t.namespaceURI===It&&!Ut[r]?!1:!en[n]&&(Gt[n]||!$t[n]):!!(Kt===`application/xhtml+xml`&&Vt[e.namespaceURI]):!1},nn=function(e){Ae(t.removed,{element:e});try{g(e).removeChild(e)}catch{p(e)}},rn=function(e,n){try{Ae(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Ae(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(D||qe)try{nn(n)}catch{}else try{n.setAttribute(e,``)}catch{}},an=function(e){let t=null,r=null;if(We)e=`<remove></remove>`+e;else{let t=Fe(e,/^[\r\n\t ]+/);r=t&&t[0]}Kt===`application/xhtml+xml`&&zt===Rt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?x.createHTML(e):e;if(zt===Rt)try{t=new l().parseFromString(i,Kt)}catch{}if(!t||!t.documentElement){t=ee.createDocument(zt,`template`,null);try{t.documentElement.innerHTML=Bt?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),zt===Rt?w.call(t,Ve?`html`:`body`)[0]:Ve?t.documentElement:a},on=function(e){return te.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},sn=function(e){e.normalize();let t=te.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;De([ie,ae,oe],t=>{e=Ie(e,t,` `)}),n.data=e,n=t.nextNode()}},cn=function(e){let t=b?b(e):null;return typeof t!=`string`||Jt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},ln=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===bt.documentFragment}catch{return!1}},un=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function dn(e,n,r){De(e,e=>{e.call(t,n,r,Yt)})}let fn=function(e){let n=null;if(dn(T.beforeSanitizeElements,e,null),cn(e))return nn(e),!0;let r=Jt(e.nodeName);if(dn(T.uponSanitizeElement,e,{tagName:r,allowedTags:pe}),Be&&e.hasChildNodes()&&!un(e.firstElementChild)&&Ge(/<[/\w!]/g,e.innerHTML)&&Ge(/<[/\w!]/g,e.textContent)||Be&&e.namespaceURI===Rt&&r===`style`&&un(e.firstElementChild)||e.nodeType===bt.progressingInstruction||Be&&e.nodeType===bt.comment&&Ge(/<[/\w]/g,e.data))return nn(e),!0;if(ve[r]||!(be.tagCheck instanceof Function&&be.tagCheck(r))&&!pe[r]){if(!ve[r]&&A(r)&&(E.tagNameCheck instanceof RegExp&&Ge(E.tagNameCheck,r)||E.tagNameCheck instanceof Function&&E.tagNameCheck(r)))return!1;if(Ot&&!At[r]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=f(n[i],!0);t.insertBefore(r,m(e))}}}return nn(e),!0}return(y?y(e):e.nodeType)===bt.element&&!tn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Ge(/<\/no(script|embed|frames)/i,e.innerHTML)?(nn(e),!0):(ze&&e.nodeType===bt.text&&(n=e.textContent,De([ie,ae,oe],e=>{n=Ie(n,e,` `)}),e.textContent!==n&&(Ae(t.removed,{element:e.cloneNode()}),e.textContent=n)),dn(T.afterSanitizeElements,e,null),!1)},pn=function(e,t,r){if(ye[t]||Tt&&(t===`id`||t===`name`)&&(r in n||r in Xt))return!1;let i=he[t]||be.attributeCheck instanceof Function&&be.attributeCheck(t,e);if(!(we&&!ye[t]&&Ge(se,t))&&!(Se&&Ge(ce,t))){if(!i||ye[t]){if(!(A(e)&&(E.tagNameCheck instanceof RegExp&&Ge(E.tagNameCheck,e)||E.tagNameCheck instanceof Function&&E.tagNameCheck(e))&&(E.attributeNameCheck instanceof RegExp&&Ge(E.attributeNameCheck,t)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(t,e))||t===`is`&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&Ge(E.tagNameCheck,r)||E.tagNameCheck instanceof Function&&E.tagNameCheck(r))))return!1}else if(!Pt[t]&&!Ge(fe,Ie(r,ue,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Le(r,`data:`)===0&&Mt[e])&&!(Te&&!Ge(le,Ie(r,ue,``)))&&r)return!1}return!0},mn=O({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),A=function(e){return!mn[Ne(e)]&&Ge(de,e)},hn=function(e){dn(T.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||cn(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:he,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=Jt(o),d=c,f=o===`value`?d:Re(d);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,dn(T.uponSanitizeAttribute,e,r),f=r.attrValue,Et&&(l===`id`||l===`name`)&&Le(f,Dt)!==0&&(rn(o,e),f=Dt+f),Be&&Ge(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){rn(o,e);continue}if(l===`attributename`&&Fe(f,`href`)){rn(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){rn(o,e);continue}if(!Ee&&Ge(/\/>/i,f)){rn(o,e);continue}ze&&De([ie,ae,oe],e=>{f=Ie(f,e,` `)});let p=Jt(e.nodeName);if(!pn(p,l,f)){rn(o,e);continue}if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!s)switch(u.getAttributeType(p,l)){case`TrustedHTML`:f=x.createHTML(f);break;case`TrustedScriptURL`:f=x.createScriptURL(f);break}if(f!==d)try{s?e.setAttributeNS(s,o,f):e.setAttribute(o,f),cn(e)?nn(e):ke(t.removed)}catch{rn(o,e)}}dn(T.afterSanitizeAttributes,e,null)},gn=function(e){let t=null,n=on(e);for(dn(T.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(dn(T.uponSanitizeShadowNode,t,null),fn(t),hn(t),ln(t.content)&&gn(t.content),(y?y(t):t.nodeType)===bt.element){let e=_?_(t):t.shadowRoot;ln(e)&&(_n(e),gn(e))}dn(T.afterSanitizeShadowDOM,e,null)},_n=function(e){let t=y?y(e):e.nodeType;if(t===bt.element){let t=_?_(e):e.shadowRoot;ln(t)&&(_n(t),gn(t))}let n=h?h(e):e.childNodes;if(!n)return;let r=[];De(n,e=>{Ae(r,e)});for(let e of r)_n(e);if(t===bt.element){let t=b?b(e):null;if(typeof t==`string`&&Jt(t)===`template`){let t=e.content;ln(t)&&_n(t)}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Bt=!e,Bt&&(e=`<!-->`),typeof e!=`string`&&!un(e)&&(e=Xe(e),typeof e!=`string`))throw Ke(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(He||Qt(n),t.removed=[],typeof e==`string`&&(kt=!1),kt){let t=b?b(e):e.nodeName;if(typeof t==`string`){let e=Jt(t);if(!pe[e]||ve[e])throw Ke(`root node is forbidden and cannot be sanitized in-place`)}if(cn(e))throw Ke(`root node is clobbered and cannot be sanitized in-place`);_n(e)}else if(un(e))i=an(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===bt.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),_n(a);else{if(!D&&!ze&&!Ve&&e.indexOf(`<`)===-1)return x&&Je?x.createHTML(e):e;if(i=an(e),!i)return D?null:Je?S:``}i&&We&&nn(i.firstChild);let c=on(kt?e:i);for(;o=c.nextNode();)fn(o),hn(o),ln(o.content)&&gn(o.content);if(kt)return ze&&sn(e),e;if(D){if(ze&&sn(i),qe)for(s=ne.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(he.shadowroot||he.shadowrootmode)&&(s=re.call(r,s,!0)),s}let l=Ve?i.outerHTML:i.innerHTML;return Ve&&pe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Ge(vt,i.ownerDocument.doctype.name)&&(l=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
3
|
-
`+l),ze&&De([ie,ae,oe],e=>{l=Ie(l,e,` `)}),x&&Je?x.createHTML(l):l},t.setConfig=function(){Qt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),He=!0},t.clearConfig=function(){Yt=null,He=!1},t.isValidAttribute=function(e,t,n){return Yt||Qt({}),pn(Jt(e),Jt(t),n)},t.addHook=function(e,t){typeof t==`function`&&Ae(T[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=Oe(T[e],t);return n===-1?void 0:je(T[e],n,1)[0]}return ke(T[e])},t.removeHooks=function(e){T[e]=[]},t.removeAllHooks=function(){T=Ct()},t}var Tt=wt(),Et=[`base`,`button`,`embed`,`form`,`iframe`,`input`,`link`,`meta`,`object`,`option`,`select`,`style`,`template`,`textarea`],Dt=[`action`,`formaction`,`id`,`name`,`srcdoc`,`style`];function Ot(e){return Tt.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:Et,FORBID_ATTR:Dt})}function kt(e){let t=e.replace(/@import\s+url\([^)]*\)\s*;?/gi,``);return Tt.sanitize(t,{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},FORBID_TAGS:[`foreignObject`,`script`],FORBID_ATTR:[`href`,`xlink:href`]})}var k=e(t(),1),At=e(n(),1),jt=r();function Mt(e){return e===`/personal`||e===`/chat`||e.startsWith(`/chat/`)}function Nt(e,t,n){let r=e?.trim();if(!r||!r.startsWith(`/`)||r.startsWith(`//`)||r.includes(`://`)||r.includes(`\\`))return t;let i=r.split(/[?#]/,1)[0]||`/`;return n.some(e=>i===e||i.startsWith(`${e}/`))?r:t}function Pt(e,t){let n=t?.trim();if(!n)return e;let r=e.indexOf(`#`),i=r>=0?e.slice(0,r):e,a=r>=0?e.slice(r):``;return`${i}${i.includes(`?`)?`&`:`?`}returnTo=${encodeURIComponent(n)}${a}`}var Ft=[`/notes/`,`/tasks/`,`/projects/`];function It(e,t){let n=e.split(/[?#]/,1)[0]??``;if(!Ft.some(e=>n.startsWith(e)))return e;let r=e.slice(n.length).split(`#`,1)[0];return new URLSearchParams(r.startsWith(`?`)?r.slice(1):r).has(`returnTo`)?e:Pt(e,t)}var Lt=`note`;function Rt(e,t){let n=new URLSearchParams(t);n.delete(Lt);let r=n.toString();return r?`${e}?${r}`:e}function zt(e,t){let[n,r=``]=e.split(`?`);if(!Mt(n))return It(`/notes/${encodeURIComponent(t)}`,e);let i=new URLSearchParams(r);return i.delete(`task`),i.delete(`preview`),i.set(Lt,t),`${n}?${i.toString()}`}function Bt(e,t){let n=/^\/notes\/([^/?#]+)(?:\?.*)?$/.exec(t);if(!n)return t;let r=new URLSearchParams(t.split(`?`)[1]??``);if(r.has(`edit`)||r.has(`action`))return t;try{return zt(e,decodeURIComponent(n[1]))}catch{return zt(e,n[1])}}var Vt=`task`;function Ht(e){return`/chat/task/${encodeURIComponent(e)}`}function Ut(e,t){let[n,r=``]=e.split(`?`),i=new URLSearchParams(r);return i.delete(`note`),i.delete(`preview`),i.set(Vt,t),`${n}?${i.toString()}`}function Wt(e,t){return e.split(`?`)[0]?.startsWith(`/tasks/`)?`/tasks/${encodeURIComponent(t)}`:Ut(e,t)}function Gt(e,t){let n=/^\/tasks\/([^/?#]+)/.exec(t);if(!n)return t;try{return Wt(e,decodeURIComponent(n[1]))}catch{return Wt(e,n[1])}}function Kt(e,t){let n=new URLSearchParams(t);n.delete(Vt);let r=n.toString();return r?`${e}?${r}`:e}var qt=`preview`;function Jt(e){if(!e.startsWith(`/`)||e.startsWith(`//`)||e.includes(`\\`)||e.includes(`#`))return null;let t=new URL(e,`https://xopc.local`);if([`edit`,`copy`,`action`,`draft`,`add`,`autogenerate`].some(e=>t.searchParams.has(e)))return null;let n,r,i;if(i=/^\/projects\/([^/]+)$/.exec(t.pathname))n=`project`,r=i[1];else if(i=/^\/workflows\/runs\/([^/]+)$/.exec(t.pathname))n=`workflow_run`,r=i[1];else if(i=/^\/workflows\/([^/]+)$/.exec(t.pathname))n=`workflow_definition`,r=i[1];else if(t.pathname===`/workflows`&&t.searchParams.get(`run`))n=`workflow_run`,r=encodeURIComponent(t.searchParams.get(`run`));else if(t.pathname===`/workflows`&&t.searchParams.get(`def`))n=`workflow_definition`,r=encodeURIComponent(t.searchParams.get(`def`));else if(t.pathname===`/automations`&&t.searchParams.get(`automation`))n=`automation`,r=encodeURIComponent(t.searchParams.get(`automation`));else if(i=/^\/local-apps\/([^/]+)$/.exec(t.pathname))n=`local_app`,r=i[1];else if(t.pathname===`/open`&&t.searchParams.get(`kind`)===`local_app`&&t.searchParams.get(`id`))n=`local_app`,r=encodeURIComponent(t.searchParams.get(`id`));else return null;let a;try{a=decodeURIComponent(r)}catch{return null}if(!a.trim()||n===`workflow_definition`&&a===`new`)return null;let o=t.searchParams.get(`agentId`)||t.searchParams.get(`agent`)||void 0,s=t.searchParams.get(`sourceHash`)||void 0,c=new URLSearchParams(t.searchParams);for(let e of[`run`,`def`,`agent`,`returnTo`])c.delete(e);o&&c.set(`agentId`,o);let l=n===`project`?`/projects/${encodeURIComponent(a)}`:n===`workflow_run`?`/workflows/runs/${encodeURIComponent(a)}`:n===`workflow_definition`?`/workflows/${encodeURIComponent(a)}`:n===`automation`?`/automations`:`/local-apps/${encodeURIComponent(a)}`;return n===`automation`&&c.set(`automation`,a),n===`local_app`&&(c.delete(`kind`),c.delete(`id`)),l+=c.size?`?${c.toString()}`:``,{kind:n,id:a,href:l,ownerAgentId:o,sourceHash:s}}function Yt(e,t){let n=new URLSearchParams(t);return n.delete(qt),`${e}${n.size?`?${n.toString()}`:``}`}function Xt(e,t){let[n,r=``]=e.split(`?`),i=Mt(n)?Jt(t):null;if(!i)return Bt(e,Gt(e,t));let a=new URLSearchParams(r);return a.delete(`note`),a.delete(`task`),a.set(qt,i.href),`${n}?${a.toString()}`}function Zt(){let e=(0,jt.c)(4),t=a(),n=o(),r;return e[0]!==t.pathname||e[1]!==t.search||e[2]!==n?(r=async e=>{let r=
|
|
1
|
+
import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,i as n,n as r,t as i}from"./vendor-react-BOUWij0V.js";import{d as a,f as o}from"./chunk-KS7C4IRE-B2HK1psj.js";import{t as s}from"./createLucideIcon-DPHK1VkS.js";import{t as c}from"./download-Dk-ZjtO6.js";import{t as l}from"./file-image-CDUPkZvG.js";import{t as u}from"./plus-Q2yW6OE7.js";import{t as d}from"./x-B_N4OPjy.js";import{t as f}from"./messages-D__oW2yE.js";import{t as p}from"./cn-0WouolD0.js";import{n as m}from"./locale-store-D_migb9R.js";import{a as h,n as g,o as _,r as v,s as y,t as b}from"./dist-BGTk37IG.js";import{n as x,r as S,t as C}from"./app-link-BV_eGr7l.js";import{t as ee}from"./copy-to-clipboard-HOJ79TWv.js";import{a as te,c as ne,i as re,l as w,n as T,o as ie,r as ae,s as oe,t as se}from"./xml-_d7dTN2Q.js";import{n as ce}from"./mermaid-render-604gISVe.js";var le=s(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),ue=s(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]);function de(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fe(e){if(Array.isArray(e))return e}function pe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function me(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(e,t){return fe(e)||pe(e,t)||ge(e,t)||me()}function ge(e,t){if(e){if(typeof e==`string`)return de(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}var _e=Object.entries,E=Object.setPrototypeOf,ve=Object.isFrozen,ye=Object.getPrototypeOf,be=Object.getOwnPropertyDescriptor,xe=Object.freeze,Se=Object.seal,Ce=Object.create,we=typeof Reflect<`u`&&Reflect,Te=we.apply,Ee=we.construct;xe||=function(e){return e},Se||=function(e){return e},Te||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Ee||=function(e){return new e(...[...arguments].slice(1))};var De=D(Array.prototype.forEach),Oe=D(Array.prototype.lastIndexOf),ke=D(Array.prototype.pop),Ae=D(Array.prototype.push),je=D(Array.prototype.splice),Me=Array.isArray,Ne=D(String.prototype.toLowerCase),Pe=D(String.prototype.toString),Fe=D(String.prototype.match),Ie=D(String.prototype.replace),Le=D(String.prototype.indexOf),Re=D(String.prototype.trim),ze=D(Number.prototype.toString),Be=D(Boolean.prototype.toString),Ve=typeof BigInt>`u`?null:D(BigInt.prototype.toString),He=typeof Symbol>`u`?null:D(Symbol.prototype.toString),Ue=D(Object.prototype.hasOwnProperty),We=D(Object.prototype.toString),Ge=D(RegExp.prototype.test),Ke=qe(TypeError);function D(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Te(e,t,n)}}function qe(e){return function(){return Ee(e,[...arguments])}}function O(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ne;if(E&&E(e,null),!Me(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ve(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Je(e){for(let t=0;t<e.length;t++)Ue(e,t)||(e[t]=null);return e}function Ye(e){let t=Ce(null);for(let r of _e(e)){var n=he(r,2);let i=n[0],a=n[1];Ue(e,i)&&(Me(a)?t[i]=Je(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=Ye(a):t[i]=a)}return t}function Xe(e){switch(typeof e){case`string`:return e;case`number`:return ze(e);case`boolean`:return Be(e);case`bigint`:return Ve?Ve(e):`0`;case`symbol`:return He?He(e):`Symbol()`;case`undefined`:return We(e);case`function`:case`object`:{if(e===null)return We(e);let t=e,n=Ze(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:We(e)}return We(e)}default:return We(e)}}function Ze(e,t){for(;e!==null;){let n=be(e,t);if(n){if(n.get)return D(n.get);if(typeof n.value==`function`)return D(n.value)}e=ye(e)}function n(){return null}return n}function Qe(e){try{return Ge(e,``),!0}catch{return!1}}var $e=xe(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),et=xe(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),tt=xe([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),nt=xe([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),rt=xe(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),it=xe([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),at=xe([`#text`]),ot=xe(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),st=xe(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ct=xe(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),lt=xe([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),ut=Se(/{{[\w\W]*|^[\w\W]*}}/g),dt=Se(/<%[\w\W]*|^[\w\W]*%>/g),ft=Se(/\${[\w\W]*/g),pt=Se(/^data-[\-\w.\u00B7-\uFFFF]+$/),mt=Se(/^aria-[\-\w]+$/),ht=Se(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gt=Se(/^(?:\w+script|data):/i),_t=Se(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vt=Se(/^html$/i),yt=Se(/^[a-z][.\w]*(-[.\w]+)+$/i),bt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},xt=function(){return typeof window>`u`?null:window},St=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ct=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function wt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xt(),t=e=>wt(e);if(t.version=`3.4.7`,t.removed=[],!e||!e.document||e.document.nodeType!==bt.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Ze(d,`cloneNode`),p=Ze(d,`remove`),m=Ze(d,`nextSibling`),h=Ze(d,`childNodes`),g=Ze(d,`parentNode`),_=Ze(d,`shadowRoot`),v=Ze(d,`attributes`),y=o&&o.prototype?Ze(o.prototype,`nodeType`):null,b=o&&o.prototype?Ze(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C=n,ee=C.implementation,te=C.createNodeIterator,ne=C.createDocumentFragment,re=C.getElementsByTagName,w=r.importNode,T=Ct();t.isSupported=typeof _e==`function`&&typeof g==`function`&&ee&&ee.createHTMLDocument!==void 0;let ie=ut,ae=dt,oe=ft,se=pt,ce=mt,le=gt,ue=_t,de=yt,fe=ht,pe=null,me=O({},[...$e,...et,...tt,...rt,...at]),he=null,ge=O({},[...ot,...st,...ct,...lt]),E=Object.seal(Ce(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ye=null,be=Object.seal(Ce(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Se=!0,we=!0,Te=!1,Ee=!0,ze=!1,Be=!0,Ve=!1,He=!1,We=!1,D=!1,qe=!1,Je=!1,Tt=!0,Et=!1,Dt=`user-content-`,Ot=!0,kt=!1,k={},At=null,jt=O({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Mt=null,Nt=O({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Pt=null,Ft=O({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),It=`http://www.w3.org/1998/Math/MathML`,Lt=`http://www.w3.org/2000/svg`,Rt=`http://www.w3.org/1999/xhtml`,zt=Rt,Bt=!1,Vt=null,Ht=O({},[It,Lt,Rt],Pe),Ut=O({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Wt=O({},[`annotation-xml`]),Gt=O({},[`title`,`style`,`font`,`a`,`script`]),Kt=null,qt=[`application/xhtml+xml`,`text/html`],Jt=null,Yt=null,Xt=n.createElement(`form`),Zt=function(e){return e instanceof RegExp||e instanceof Function},Qt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Yt&&Yt===e)return;(!e||typeof e!=`object`)&&(e={}),e=Ye(e),Kt=qt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Jt=Kt===`application/xhtml+xml`?Pe:Ne,pe=Ue(e,`ALLOWED_TAGS`)&&Me(e.ALLOWED_TAGS)?O({},e.ALLOWED_TAGS,Jt):me,he=Ue(e,`ALLOWED_ATTR`)&&Me(e.ALLOWED_ATTR)?O({},e.ALLOWED_ATTR,Jt):ge,Vt=Ue(e,`ALLOWED_NAMESPACES`)&&Me(e.ALLOWED_NAMESPACES)?O({},e.ALLOWED_NAMESPACES,Pe):Ht,Pt=Ue(e,`ADD_URI_SAFE_ATTR`)&&Me(e.ADD_URI_SAFE_ATTR)?O(Ye(Ft),e.ADD_URI_SAFE_ATTR,Jt):Ft,Mt=Ue(e,`ADD_DATA_URI_TAGS`)&&Me(e.ADD_DATA_URI_TAGS)?O(Ye(Nt),e.ADD_DATA_URI_TAGS,Jt):Nt,At=Ue(e,`FORBID_CONTENTS`)&&Me(e.FORBID_CONTENTS)?O({},e.FORBID_CONTENTS,Jt):jt,ve=Ue(e,`FORBID_TAGS`)&&Me(e.FORBID_TAGS)?O({},e.FORBID_TAGS,Jt):Ye({}),ye=Ue(e,`FORBID_ATTR`)&&Me(e.FORBID_ATTR)?O({},e.FORBID_ATTR,Jt):Ye({}),k=Ue(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Ye(e.USE_PROFILES):e.USE_PROFILES:!1,Se=e.ALLOW_ARIA_ATTR!==!1,we=e.ALLOW_DATA_ATTR!==!1,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ze=e.SAFE_FOR_TEMPLATES||!1,Be=e.SAFE_FOR_XML!==!1,Ve=e.WHOLE_DOCUMENT||!1,D=e.RETURN_DOM||!1,qe=e.RETURN_DOM_FRAGMENT||!1,Je=e.RETURN_TRUSTED_TYPE||!1,We=e.FORCE_BODY||!1,Tt=e.SANITIZE_DOM!==!1,Et=e.SANITIZE_NAMED_PROPS||!1,Ot=e.KEEP_CONTENT!==!1,kt=e.IN_PLACE||!1,fe=Qe(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ht,zt=typeof e.NAMESPACE==`string`?e.NAMESPACE:Rt,Ut=Ue(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Ye(e.MATHML_TEXT_INTEGRATION_POINTS):O({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Wt=Ue(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Ye(e.HTML_INTEGRATION_POINTS):O({},[`annotation-xml`]);let t=Ue(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Ye(e.CUSTOM_ELEMENT_HANDLING):Ce(null);if(E=Ce(null),Ue(t,`tagNameCheck`)&&Zt(t.tagNameCheck)&&(E.tagNameCheck=t.tagNameCheck),Ue(t,`attributeNameCheck`)&&Zt(t.attributeNameCheck)&&(E.attributeNameCheck=t.attributeNameCheck),Ue(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(E.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),ze&&(we=!1),qe&&(D=!0),k&&(pe=O({},at),he=Ce(null),k.html===!0&&(O(pe,$e),O(he,ot)),k.svg===!0&&(O(pe,et),O(he,st),O(he,lt)),k.svgFilters===!0&&(O(pe,tt),O(he,st),O(he,lt)),k.mathMl===!0&&(O(pe,rt),O(he,ct),O(he,lt))),be.tagCheck=null,be.attributeCheck=null,Ue(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?be.tagCheck=e.ADD_TAGS:Me(e.ADD_TAGS)&&(pe===me&&(pe=Ye(pe)),O(pe,e.ADD_TAGS,Jt))),Ue(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?be.attributeCheck=e.ADD_ATTR:Me(e.ADD_ATTR)&&(he===ge&&(he=Ye(he)),O(he,e.ADD_ATTR,Jt))),Ue(e,`ADD_URI_SAFE_ATTR`)&&Me(e.ADD_URI_SAFE_ATTR)&&O(Pt,e.ADD_URI_SAFE_ATTR,Jt),Ue(e,`FORBID_CONTENTS`)&&Me(e.FORBID_CONTENTS)&&(At===jt&&(At=Ye(At)),O(At,e.FORBID_CONTENTS,Jt)),Ue(e,`ADD_FORBID_CONTENTS`)&&Me(e.ADD_FORBID_CONTENTS)&&(At===jt&&(At=Ye(At)),O(At,e.ADD_FORBID_CONTENTS,Jt)),Ot&&(pe[`#text`]=!0),Ve&&O(pe,[`html`,`head`,`body`]),pe.table&&(O(pe,[`tbody`]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Ke(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Ke(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);x=e.TRUSTED_TYPES_POLICY,S=x.createHTML(``)}else x===void 0&&(x=St(u,i)),x!==null&&typeof S==`string`&&(S=x.createHTML(``));(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&pe===me&&(pe=Ye(pe)),T.uponSanitizeAttribute.length>0&&he===ge&&(he=Ye(he)),xe&&xe(e),Yt=e},$t=O({},[...et,...tt,...nt]),en=O({},[...rt,...it]),tn=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:zt,tagName:`template`});let n=Ne(e.tagName),r=Ne(t.tagName);return Vt[e.namespaceURI]?e.namespaceURI===Lt?t.namespaceURI===Rt?n===`svg`:t.namespaceURI===It?n===`svg`&&(r===`annotation-xml`||Ut[r]):!!$t[n]:e.namespaceURI===It?t.namespaceURI===Rt?n===`math`:t.namespaceURI===Lt?n===`math`&&Wt[r]:!!en[n]:e.namespaceURI===Rt?t.namespaceURI===Lt&&!Wt[r]||t.namespaceURI===It&&!Ut[r]?!1:!en[n]&&(Gt[n]||!$t[n]):!!(Kt===`application/xhtml+xml`&&Vt[e.namespaceURI]):!1},nn=function(e){Ae(t.removed,{element:e});try{g(e).removeChild(e)}catch{p(e)}},rn=function(e,n){try{Ae(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Ae(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(D||qe)try{nn(n)}catch{}else try{n.setAttribute(e,``)}catch{}},an=function(e){let t=null,r=null;if(We)e=`<remove></remove>`+e;else{let t=Fe(e,/^[\r\n\t ]+/);r=t&&t[0]}Kt===`application/xhtml+xml`&&zt===Rt&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?x.createHTML(e):e;if(zt===Rt)try{t=new l().parseFromString(i,Kt)}catch{}if(!t||!t.documentElement){t=ee.createDocument(zt,`template`,null);try{t.documentElement.innerHTML=Bt?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),zt===Rt?re.call(t,Ve?`html`:`body`)[0]:Ve?t.documentElement:a},on=function(e){return te.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},sn=function(e){e.normalize();let t=te.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;De([ie,ae,oe],t=>{e=Ie(e,t,` `)}),n.data=e,n=t.nextNode()}},cn=function(e){let t=b?b(e):null;return typeof t!=`string`||Jt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},ln=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===bt.documentFragment}catch{return!1}},un=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function dn(e,n,r){De(e,e=>{e.call(t,n,r,Yt)})}let fn=function(e){let n=null;if(dn(T.beforeSanitizeElements,e,null),cn(e))return nn(e),!0;let r=Jt(e.nodeName);if(dn(T.uponSanitizeElement,e,{tagName:r,allowedTags:pe}),Be&&e.hasChildNodes()&&!un(e.firstElementChild)&&Ge(/<[/\w!]/g,e.innerHTML)&&Ge(/<[/\w!]/g,e.textContent)||Be&&e.namespaceURI===Rt&&r===`style`&&un(e.firstElementChild)||e.nodeType===bt.progressingInstruction||Be&&e.nodeType===bt.comment&&Ge(/<[/\w]/g,e.data))return nn(e),!0;if(ve[r]||!(be.tagCheck instanceof Function&&be.tagCheck(r))&&!pe[r]){if(!ve[r]&&A(r)&&(E.tagNameCheck instanceof RegExp&&Ge(E.tagNameCheck,r)||E.tagNameCheck instanceof Function&&E.tagNameCheck(r)))return!1;if(Ot&&!At[r]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=f(n[i],!0);t.insertBefore(r,m(e))}}}return nn(e),!0}return(y?y(e):e.nodeType)===bt.element&&!tn(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Ge(/<\/no(script|embed|frames)/i,e.innerHTML)?(nn(e),!0):(ze&&e.nodeType===bt.text&&(n=e.textContent,De([ie,ae,oe],e=>{n=Ie(n,e,` `)}),e.textContent!==n&&(Ae(t.removed,{element:e.cloneNode()}),e.textContent=n)),dn(T.afterSanitizeElements,e,null),!1)},pn=function(e,t,r){if(ye[t]||Tt&&(t===`id`||t===`name`)&&(r in n||r in Xt))return!1;let i=he[t]||be.attributeCheck instanceof Function&&be.attributeCheck(t,e);if(!(we&&!ye[t]&&Ge(se,t))&&!(Se&&Ge(ce,t))){if(!i||ye[t]){if(!(A(e)&&(E.tagNameCheck instanceof RegExp&&Ge(E.tagNameCheck,e)||E.tagNameCheck instanceof Function&&E.tagNameCheck(e))&&(E.attributeNameCheck instanceof RegExp&&Ge(E.attributeNameCheck,t)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(t,e))||t===`is`&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&Ge(E.tagNameCheck,r)||E.tagNameCheck instanceof Function&&E.tagNameCheck(r))))return!1}else if(!Pt[t]&&!Ge(fe,Ie(r,ue,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Le(r,`data:`)===0&&Mt[e])&&!(Te&&!Ge(le,Ie(r,ue,``)))&&r)return!1}return!0},mn=O({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),A=function(e){return!mn[Ne(e)]&&Ge(de,e)},hn=function(e){dn(T.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||cn(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:he,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=Jt(o),d=c,f=o===`value`?d:Re(d);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,dn(T.uponSanitizeAttribute,e,r),f=r.attrValue,Et&&(l===`id`||l===`name`)&&Le(f,Dt)!==0&&(rn(o,e),f=Dt+f),Be&&Ge(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){rn(o,e);continue}if(l===`attributename`&&Fe(f,`href`)){rn(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){rn(o,e);continue}if(!Ee&&Ge(/\/>/i,f)){rn(o,e);continue}ze&&De([ie,ae,oe],e=>{f=Ie(f,e,` `)});let p=Jt(e.nodeName);if(!pn(p,l,f)){rn(o,e);continue}if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!s)switch(u.getAttributeType(p,l)){case`TrustedHTML`:f=x.createHTML(f);break;case`TrustedScriptURL`:f=x.createScriptURL(f);break}if(f!==d)try{s?e.setAttributeNS(s,o,f):e.setAttribute(o,f),cn(e)?nn(e):ke(t.removed)}catch{rn(o,e)}}dn(T.afterSanitizeAttributes,e,null)},gn=function(e){let t=null,n=on(e);for(dn(T.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(dn(T.uponSanitizeShadowNode,t,null),fn(t),hn(t),ln(t.content)&&gn(t.content),(y?y(t):t.nodeType)===bt.element){let e=_?_(t):t.shadowRoot;ln(e)&&(_n(e),gn(e))}dn(T.afterSanitizeShadowDOM,e,null)},_n=function(e){let t=y?y(e):e.nodeType;if(t===bt.element){let t=_?_(e):e.shadowRoot;ln(t)&&(_n(t),gn(t))}let n=h?h(e):e.childNodes;if(!n)return;let r=[];De(n,e=>{Ae(r,e)});for(let e of r)_n(e);if(t===bt.element){let t=b?b(e):null;if(typeof t==`string`&&Jt(t)===`template`){let t=e.content;ln(t)&&_n(t)}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Bt=!e,Bt&&(e=`<!-->`),typeof e!=`string`&&!un(e)&&(e=Xe(e),typeof e!=`string`))throw Ke(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(He||Qt(n),t.removed=[],typeof e==`string`&&(kt=!1),kt){let t=b?b(e):e.nodeName;if(typeof t==`string`){let e=Jt(t);if(!pe[e]||ve[e])throw Ke(`root node is forbidden and cannot be sanitized in-place`)}if(cn(e))throw Ke(`root node is clobbered and cannot be sanitized in-place`);_n(e)}else if(un(e))i=an(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===bt.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),_n(a);else{if(!D&&!ze&&!Ve&&e.indexOf(`<`)===-1)return x&&Je?x.createHTML(e):e;if(i=an(e),!i)return D?null:Je?S:``}i&&We&&nn(i.firstChild);let c=on(kt?e:i);for(;o=c.nextNode();)fn(o),hn(o),ln(o.content)&&gn(o.content);if(kt)return ze&&sn(e),e;if(D){if(ze&&sn(i),qe)for(s=ne.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(he.shadowroot||he.shadowrootmode)&&(s=w.call(r,s,!0)),s}let l=Ve?i.outerHTML:i.innerHTML;return Ve&&pe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Ge(vt,i.ownerDocument.doctype.name)&&(l=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
3
|
+
`+l),ze&&De([ie,ae,oe],e=>{l=Ie(l,e,` `)}),x&&Je?x.createHTML(l):l},t.setConfig=function(){Qt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),He=!0},t.clearConfig=function(){Yt=null,He=!1},t.isValidAttribute=function(e,t,n){return Yt||Qt({}),pn(Jt(e),Jt(t),n)},t.addHook=function(e,t){typeof t==`function`&&Ae(T[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=Oe(T[e],t);return n===-1?void 0:je(T[e],n,1)[0]}return ke(T[e])},t.removeHooks=function(e){T[e]=[]},t.removeAllHooks=function(){T=Ct()},t}var Tt=wt(),Et=[`base`,`button`,`embed`,`form`,`iframe`,`input`,`link`,`meta`,`object`,`option`,`select`,`style`,`template`,`textarea`],Dt=[`action`,`formaction`,`id`,`name`,`srcdoc`,`style`];function Ot(e){return Tt.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:Et,FORBID_ATTR:Dt})}function kt(e){let t=e.replace(/@import\s+url\([^)]*\)\s*;?/gi,``);return Tt.sanitize(t,{USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},FORBID_TAGS:[`foreignObject`,`script`],FORBID_ATTR:[`href`,`xlink:href`]})}var k=e(t(),1),At=e(n(),1),jt=r();function Mt(e){return e===`/personal`||e===`/chat`||e.startsWith(`/chat/`)}function Nt(e,t,n){let r=e?.trim();if(!r||!r.startsWith(`/`)||r.startsWith(`//`)||r.includes(`://`)||r.includes(`\\`))return t;let i=r.split(/[?#]/,1)[0]||`/`;return n.some(e=>i===e||i.startsWith(`${e}/`))?r:t}function Pt(e,t){let n=t?.trim();if(!n)return e;let r=e.indexOf(`#`),i=r>=0?e.slice(0,r):e,a=r>=0?e.slice(r):``;return`${i}${i.includes(`?`)?`&`:`?`}returnTo=${encodeURIComponent(n)}${a}`}var Ft=[`/notes/`,`/tasks/`,`/projects/`];function It(e,t){let n=e.split(/[?#]/,1)[0]??``;if(!Ft.some(e=>n.startsWith(e)))return e;let r=e.slice(n.length).split(`#`,1)[0];return new URLSearchParams(r.startsWith(`?`)?r.slice(1):r).has(`returnTo`)?e:Pt(e,t)}var Lt=`note`;function Rt(e,t){let n=new URLSearchParams(t);n.delete(Lt);let r=n.toString();return r?`${e}?${r}`:e}function zt(e,t){let[n,r=``]=e.split(`?`);if(!Mt(n))return It(`/notes/${encodeURIComponent(t)}`,e);let i=new URLSearchParams(r);return i.delete(`task`),i.delete(`preview`),i.set(Lt,t),`${n}?${i.toString()}`}function Bt(e,t){let n=/^\/notes\/([^/?#]+)(?:\?.*)?$/.exec(t);if(!n)return t;let r=new URLSearchParams(t.split(`?`)[1]??``);if(r.has(`edit`)||r.has(`action`))return t;try{return zt(e,decodeURIComponent(n[1]))}catch{return zt(e,n[1])}}var Vt=`task`;function Ht(e){return`/chat/task/${encodeURIComponent(e)}`}function Ut(e,t){let[n,r=``]=e.split(`?`),i=new URLSearchParams(r);return i.delete(`note`),i.delete(`preview`),i.set(Vt,t),`${n}?${i.toString()}`}function Wt(e,t){return e.split(`?`)[0]?.startsWith(`/tasks/`)?`/tasks/${encodeURIComponent(t)}`:Ut(e,t)}function Gt(e,t){let n=/^\/tasks\/([^/?#]+)/.exec(t);if(!n)return t;try{return Wt(e,decodeURIComponent(n[1]))}catch{return Wt(e,n[1])}}function Kt(e,t){let n=new URLSearchParams(t);n.delete(Vt);let r=n.toString();return r?`${e}?${r}`:e}var qt=`preview`;function Jt(e){if(!e.startsWith(`/`)||e.startsWith(`//`)||e.includes(`\\`)||e.includes(`#`))return null;let t=new URL(e,`https://xopc.local`);if([`edit`,`copy`,`action`,`draft`,`add`,`autogenerate`].some(e=>t.searchParams.has(e)))return null;let n,r,i;if(i=/^\/projects\/([^/]+)$/.exec(t.pathname))n=`project`,r=i[1];else if(i=/^\/workflows\/runs\/([^/]+)$/.exec(t.pathname))n=`workflow_run`,r=i[1];else if(i=/^\/workflows\/([^/]+)$/.exec(t.pathname))n=`workflow_definition`,r=i[1];else if(t.pathname===`/workflows`&&t.searchParams.get(`run`))n=`workflow_run`,r=encodeURIComponent(t.searchParams.get(`run`));else if(t.pathname===`/workflows`&&t.searchParams.get(`def`))n=`workflow_definition`,r=encodeURIComponent(t.searchParams.get(`def`));else if(t.pathname===`/automations`&&t.searchParams.get(`automation`))n=`automation`,r=encodeURIComponent(t.searchParams.get(`automation`));else if(i=/^\/local-apps\/([^/]+)$/.exec(t.pathname))n=`local_app`,r=i[1];else if(t.pathname===`/open`&&t.searchParams.get(`kind`)===`local_app`&&t.searchParams.get(`id`))n=`local_app`,r=encodeURIComponent(t.searchParams.get(`id`));else return null;let a;try{a=decodeURIComponent(r)}catch{return null}if(!a.trim()||n===`workflow_definition`&&a===`new`)return null;let o=t.searchParams.get(`agentId`)||t.searchParams.get(`agent`)||void 0,s=t.searchParams.get(`sourceHash`)||void 0,c=new URLSearchParams(t.searchParams);for(let e of[`run`,`def`,`agent`,`returnTo`])c.delete(e);o&&c.set(`agentId`,o);let l=n===`project`?`/projects/${encodeURIComponent(a)}`:n===`workflow_run`?`/workflows/runs/${encodeURIComponent(a)}`:n===`workflow_definition`?`/workflows/${encodeURIComponent(a)}`:n===`automation`?`/automations`:`/local-apps/${encodeURIComponent(a)}`;return n===`automation`&&c.set(`automation`,a),n===`local_app`&&(c.delete(`kind`),c.delete(`id`)),l+=c.size?`?${c.toString()}`:``,{kind:n,id:a,href:l,ownerAgentId:o,sourceHash:s}}function Yt(e,t){let n=new URLSearchParams(t);return n.delete(qt),`${e}${n.size?`?${n.toString()}`:``}`}function Xt(e,t){let[n,r=``]=e.split(`?`),i=Mt(n)?Jt(t):null;if(!i)return Bt(e,Gt(e,t));let a=new URLSearchParams(r);return a.delete(`note`),a.delete(`task`),a.set(qt,i.href),`${n}?${a.toString()}`}function Zt(){let e=(0,jt.c)(4),t=a(),n=o(),r;return e[0]!==t.pathname||e[1]!==t.search||e[2]!==n?(r=async e=>{let r=S(e);if(r.kind===`internal-route`){let e=`${t.pathname}${t.search}`;return n(It(Xt(e,r.route),e)),{ok:!0,kind:r.kind}}if(r.kind===`external-http`){let e=await x(r.url);return e.ok?{ok:!0,kind:r.kind}:e}return{ok:!1,error:`Unsupported link`}},e[0]=t.pathname,e[1]=t.search,e[2]=n,e[3]=r):r=e[3],r}function Qt(e,t){let n=0;for(;t>0&&e[--t]===`\\`;)n++;return n%2==1}function $t(e,t,n,r){let i=!1;for(let a=t;a<e.length;a++){if(e[a]===`
|
|
4
4
|
`||e[a]===`\r`){if(r)return-1;i=!1}if(!i){if(e[a]===`%`&&!Qt(e,a)){i=!0;continue}if(e.startsWith(n,a)&&!Qt(e,a))return a}}return-1}function en(e,t=0){if(Qt(e,t))return;let n=e.startsWith(`\\(`,t);if(!n&&(e[t]!==`$`||e[t+1]===`$`||e[t-1]===`$`))return;let r=n?2:1,i=t+r;if(n&&/^xopc:\/\//i.test(e.slice(i))||!n&&(!e[i]||/\s/.test(e[i])))return;let a=$t(e,i,n?`\\)`:`$`,!0);if(a===-1){if(!n)return;let r=e.slice(i).search(/[\r\n]/),a=r<0?e.length:i+r;return{raw:e.slice(t,a),latex:e.slice(i,a),display:!1,delimiter:`paren`,state:`pending`,range:{start:t,end:a}}}let o=e.slice(i,a);if(!n&&(!o||/\s$/.test(o)||/\d/.test(e[a+1]??``)||e[a+1]===`$`||/^[\d\s.,+\-€£¥¥]+$/.test(o)))return;let s=a+r;return{raw:e.slice(t,s),latex:o,display:!1,delimiter:n?`paren`:`dollar`,state:`complete`,range:{start:t,end:s}}}function tn(e,t=0){let n=/^( {0,3})(\\\[|\$\$)/.exec(e.slice(t));if(!n)return;let r=t+n[0].length,i=n[2]===`\\[`,a=$t(e,r,i?`\\]`:`$$`,!1);if(a>=0){let n=a+2,o=e.slice(n).match(/^[^\r\n]*/)?.[0]??``;return o.trim()?void 0:{raw:e.slice(t,n+o.length),latex:e.slice(r,a),display:!0,delimiter:i?`bracket`:`double-dollar`,state:`complete`,range:{start:t,end:n+o.length}}}if(!(!i&&/^\S.*\$\$/.test(e.slice(r).split(/\r?\n/,1)[0])))return{raw:e.slice(t),latex:e.slice(r),display:!0,delimiter:i?`bracket`:`double-dollar`,state:`pending`,range:{start:t,end:e.length}}}function nn(e,t,n=!0){return{raw:e,latex:t,display:!0,delimiter:`math-fence`,state:n?`complete`:`pending`,range:{start:0,end:e.length}}}function rn(e){let t=/^ {0,3}(`{3,}|~{3,})math[^\S\r\n]*(?:\r?\n|$)/.exec(e);if(!t)return;let n=t[1],r=t[0].length;for(;r<e.length;){let i=e.indexOf(`
|
|
5
5
|
`,r),a=i<0?e.length:i,o=e.slice(r,a).replace(/\r$/,``),s=/^ {0,3}(`{3,}|~{3,})\s*$/.exec(o);if(s&&s[1][0]===n[0]&&s[1].length>=n.length)return nn(e.slice(0,a),e.slice(t[0].length,r).replace(/\r?\n$/,``));if(i<0)break;r=i+1}return nn(e,e.slice(t[0].length),!1)}function an(e){return e.replace(/[&<>"']/g,e=>({"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`})[e])}function on(e){return encodeURIComponent(JSON.stringify(e))}function sn(e){try{let t=JSON.parse(decodeURIComponent(e));return typeof t.raw!=`string`||typeof t.latex!=`string`||typeof t.display!=`boolean`||![`pending`,`complete`].includes(t.state)||![`paren`,`dollar`,`bracket`,`double-dollar`,`math-fence`].includes(t.delimiter)?void 0:t}catch{return}}function cn(e){let t=`<code class="${e.display?`math-display`:`math-inline`}" data-xopc-math-source="${an(on(e))}">${an(e.raw)}</code>`;return e.display?`<pre>${t}</pre>\n`:t}var ln={walkTokens(e){if(e.type!==`image`)return;function t(e){e.type===`xopcMathInline`&&(e.type=`text`,e.text=e.source.raw,e.escaped=!1);for(let n of e.tokens??[])t(n)}for(let n of e.tokens??[])t(n)},extensions:[{name:`xopcMathBlock`,level:`block`,start:e=>{let t=e.search(/(?:^|\n) {0,3}(?:\\\[|\$\$)/);return t<0?void 0:t},tokenizer(e){let t=tn(e);if(t)return{type:`xopcMathBlock`,raw:t.raw,source:t}},renderer(e){return cn(e.source)}},{name:`xopcMathInline`,level:`inline`,start:e=>{let t=e.search(/\\\(|\$/);return t<0?void 0:t},tokenizer(e){let t=en(e);if(t)return{type:`xopcMathInline`,raw:t.raw,source:t}},renderer(e){return cn(e.source)}}]};function un(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var dn=un();function fn(e){dn=e}var pn={exec:()=>null};function mn(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function A(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(gn.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var hn=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),gn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:mn(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:mn(e=>RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:mn(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:mn(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:mn(e=>RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,`i`)),blockquoteBeginRegex:mn(e=>RegExp(`^ {0,${e}}>`))},_n=/^(?:[ \t]*(?:\n|$))+/,vn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,bn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Sn=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Cn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,wn=A(Cn).replace(/bull/g,Sn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Tn=A(Cn).replace(/bull/g,Sn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),En=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Dn=/^[^\n]+/,On=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kn=A(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,On).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),An=A(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Sn).getRegex(),jn=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Mn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Nn=A(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Mn).replace(`tag`,jn).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Pn=A(En).replace(`hr`,bn).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,jn).getRegex(),Fn={blockquote:A(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Pn).getRegex(),code:vn,def:kn,fences:yn,heading:xn,hr:bn,html:Nn,lheading:wn,list:An,newline:_n,paragraph:Pn,table:pn,text:Dn},In=A(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,bn).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,jn).getRegex(),Ln={...Fn,lheading:Tn,table:In,paragraph:A(En).replace(`hr`,bn).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,In).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,jn).getRegex()},Rn={...Fn,html:A(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Mn).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:pn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:A(En).replace(`hr`,bn).replace(`heading`,` *#{1,6} *[^
|
|
6
6
|
]`).replace(`lheading`,wn).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},zn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Bn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Vn=/^( {2,}|\\)\n(?!\s*$)/,Hn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Un=/[\p{P}\p{S}]/u,Wn=/[\s\p{P}\p{S}]/u,Gn=/[^\s\p{P}\p{S}]/u,Kn=A(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,Wn).getRegex(),qn=/(?!~)[\p{P}\p{S}]/u,Jn=/(?!~)[\s\p{P}\p{S}]/u,Yn=/(?:[^\s\p{P}\p{S}]|~)/u,Xn=A(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,hn?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Zn=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Qn=A(Zn,`u`).replace(/punct/g,Un).getRegex(),$n=A(Zn,`u`).replace(/punct/g,qn).getRegex(),er=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,tr=A(er,`gu`).replace(/notPunctSpace/g,Gn).replace(/punctSpace/g,Wn).replace(/punct/g,Un).getRegex(),nr=A(er,`gu`).replace(/notPunctSpace/g,Yn).replace(/punctSpace/g,Jn).replace(/punct/g,qn).getRegex(),rr=A(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,Gn).replace(/punctSpace/g,Wn).replace(/punct/g,Un).getRegex(),ir=A(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,Un).getRegex(),ar=A(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,Gn).replace(/punctSpace/g,Wn).replace(/punct/g,Un).getRegex(),or=A(/\\(punct)/,`gu`).replace(/punct/g,Un).getRegex(),sr=A(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),cr=A(Mn).replace(`(?:-->|$)`,`-->`).getRegex(),lr=A(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,cr).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ur=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,dr=A(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,ur).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),fr=A(/^!?\[(label)\]\[(ref)\]/).replace(`label`,ur).replace(`ref`,On).getRegex(),pr=A(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,On).getRegex(),mr=A(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,fr).replace(`nolink`,pr).getRegex(),hr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,gr={_backpedal:pn,anyPunctuation:or,autolink:sr,blockSkip:Xn,br:Vn,code:Bn,del:pn,delLDelim:pn,delRDelim:pn,emStrongLDelim:Qn,emStrongRDelimAst:tr,emStrongRDelimUnd:rr,escape:zn,link:dr,nolink:pr,punctuation:Kn,reflink:fr,reflinkSearch:mr,tag:lr,text:Hn,url:pn},_r={...gr,link:A(/^!?\[(label)\]\((.*?)\)/).replace(`label`,ur).getRegex(),reflink:A(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,ur).getRegex()},vr={...gr,emStrongRDelimAst:nr,emStrongLDelim:$n,delLDelim:ir,delRDelim:ar,url:A(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,hr).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:A(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,hr).getRegex()},yr={...vr,br:A(Vn).replace(`{2,}`,`*`).getRegex(),text:A(vr.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},br={normal:Fn,gfm:Ln,pedantic:Rn},xr={normal:gr,gfm:vr,breaks:yr,pedantic:_r},Sr={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Cr=e=>Sr[e];function wr(e,t){if(t){if(gn.escapeTest.test(e))return e.replace(gn.escapeReplace,Cr)}else if(gn.escapeTestNoEncode.test(e))return e.replace(gn.escapeReplaceNoEncode,Cr);return e}function Tr(e){try{e=encodeURI(e).replace(gn.percentDecode,`%`)}catch{return null}return e}function Er(e,t){let n=e.replace(gn.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(gn.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(gn.slashPipe,`|`);return n}function Dr(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Or(e){let t=e.split(`
|
|
@@ -65,7 +65,7 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
65
65
|
${e}</tr>
|
|
66
66
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
67
67
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${wr(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=Tr(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+wr(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Tr(e);if(i===null)return wr(n);e=i;let a=`<img src="${e}" alt="${wr(n)}"`;return t&&(a+=` title="${wr(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:wr(e.text)}},Ir=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},Lr=class e{options;renderer;textRenderer;constructor(e){this.options=e||dn,this.options.renderer=this.options.renderer||new Fr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ir}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Rr=class{options;block;constructor(e){this.options=e||dn}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Pr.lex:Pr.lexInline}provideParser(e=this.block){return e?Lr.parse:Lr.parseInline}},zr=class{defaults=un();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Lr;Renderer=Fr;TextRenderer=Ir;Lexer=Pr;Tokenizer=Nr;Hooks=Rr;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Fr(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Nr(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Rr;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];Rr.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&Rr.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Pr.lex(e,t??this.defaults)}parser(e,t){return Lr.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?Pr.lex:Pr.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?Lr.parse:Lr.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?Pr.lex:Pr.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?Lr.parse:Lr.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
|
|
68
|
-
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+wr(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Br=new zr;function j(e,t){return Br.parse(e,t)}j.options=j.setOptions=function(e){return Br.setOptions(e),j.defaults=Br.defaults,fn(j.defaults),j},j.getDefaults=un,j.defaults=dn,j.use=function(...e){return Br.use(...e),j.defaults=Br.defaults,fn(j.defaults),j},j.walkTokens=function(e,t){return Br.walkTokens(e,t)},j.parseInline=Br.parseInline,j.Parser=Lr,j.parser=Lr.parse,j.Renderer=Fr,j.TextRenderer=Ir,j.Lexer=Pr,j.lexer=Pr.lex,j.Tokenizer=Nr,j.Hooks=Rr,j.parse=j,j.options,j.setOptions,j.use,j.walkTokens,j.parseInline,Lr.parse,Pr.lex;function Vr(e){if(typeof e==`function`&&(e={highlight:e}),!e||typeof e.highlight!=`function`)throw Error(`Must provide highlight function`);return typeof e.langPrefix!=`string`&&(e.langPrefix=`language-`),typeof e.emptyLangClass!=`string`&&(e.emptyLangClass=``),{async:!!e.async,walkTokens(t){if(t.type!==`code`)return;let n=Hr(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||``)).then(Ur(t));let r=e.highlight(t.text,n,t.lang||``);if(r instanceof Promise)throw Error(`markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.`);Ur(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t==`object`&&(r=t.escaped,n=t.lang,t=t.text);let i=Hr(n),a=i?e.langPrefix+Xr(i):e.emptyLangClass,o=a?` class="${a}"`:``;return t=t.replace(/\n$/,``),`<pre><code${o}>${r?t:Xr(t,!0)}\n</code></pre>`}}}}function Hr(e){return(e||``).match(/\S*/)[0]}function Ur(e){return t=>{typeof t==`string`&&t!==e.text&&(e.escaped=!0,e.text=t)}}var Wr=/[&<>"']/,Gr=new RegExp(Wr.source,`g`),Kr=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,qr=new RegExp(Kr.source,`g`),Jr={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Yr=e=>Jr[e];function Xr(e,t){if(t){if(Wr.test(e))return e.replace(Gr,Yr)}else if(Kr.test(e))return e.replace(qr,Yr);return e}function Zr(e){return e.replace(/\\([\\_()[\]*])/g,`$1`).replace(/&(?:amp|#0*38|#x0*26);/gi,`&`)}var Qr={walkTokens(e){if(e.type!==`link`)return;let t=Zr(e.href);if(!/^xopc:\/\//i.test(t))return;let n=x(t,`https://xopc.local/`);n.kind===`internal-route`&&(e.href=`#${n.route}`)},extensions:[{name:`xopcLink`,level:`inline`,start(e){let t=e.search(/xopc:\/\/|\[[^\]\n]+\]\\\(xopc:\/\//i);return t<0?void 0:t},tokenizer(e){if(this.lexer.state.inLink)return;let t=/^\[([^\]\n]+)\]\\\((xopc:\/\/[^\s<>]+?)\\\)/i.exec(e),n=/^(?:xopc:\/\/)[^\s<>\[\]()"',。;!?、]+/i.exec(e),r=t?.[0]??n?.[0]?.replace(/[.,;!?]+$/,``);if(!r)return;let i=Zr(t?.[2]??r),a=Zr(t?.[1]??r);return{type:`link`,raw:r,href:i,text:a,title:null,tokens:[{type:`text`,raw:a,text:a.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}]}}}]};w.registerLanguage(`bash`,te),w.registerLanguage(`css`,ae),w.registerLanguage(`html`,oe),w.registerLanguage(`javascript`,T),w.registerLanguage(`json`,ee),w.registerLanguage(`markdown`,ne),w.registerLanguage(`md`,ne),w.registerLanguage(`plaintext`,ie),w.registerLanguage(`typescript`,re),w.registerLanguage(`xml`,oe),w.registerAliases([`js`,`jsx`],{languageName:`javascript`}),w.registerAliases([`ts`,`tsx`],{languageName:`typescript`}),w.registerAliases([`sh`,`shell`,`zsh`],{languageName:`bash`});function $r(e){return new zr(Qr,ln,Vr({emptyLangClass:`hljs`,langPrefix:`hljs language-`,highlight(e,t){if(t?.trim()===`math`||t?.trim()===`chart`)return e;let n=(t??``).trim()||`plaintext`,r=w.getLanguage(n)?n:`plaintext`;return w.highlight(e,{language:r}).value}}),{renderer:{code(t){if(e&&t.lang?.trim().split(/\s+/)[0]===`chart`)return e(t);if(t.lang?.trim()!==`math`)return!1;let n=rn(t.raw);return n?cn(n):!1},html({text:e}){return ni(e)}},extensions:[{name:`punctuationBoundStrong`,level:`inline`,start(e){let t=e.indexOf(`**`);return t>=0?t:void 0},tokenizer(e){return ai(e,e=>this.lexer.inlineTokens(e))}}]})}var ei=$r();function ti(e,t){let n=[];return{html:$r(e=>{let t=e.raw.trimEnd().split(/\r?\n/),r=t[0]?.match(/^ {0,3}(`{3,}|~{3,})[ \t]*chart(?:\s|$)/)?.[1],i=t.at(-1)?.match(/^ {0,3}(`{3,}|~{3,})[ \t]*$/)?.[1],a=!!(t.length>1&&r&&i&&r[0]===i[0]&&i.length>=r.length);return`<div data-md-chart="${n.push({source:e.text,closed:a})-1}"></div>`}).parse(e,{...oi,...t,async:!1}),charts:n}}function ni(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}var ri=/^\p{P}$/u;function ii(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function ai(e,t){if(!e.startsWith(`**`)||e.startsWith(`***`))return;let n=0;for(let r=2;r<e.length-1;){if(e[r]===`\\`){r+=2;continue}if(e[r]==="`"){let t=r+1;for(;e[t]==="`";)t+=1;let i=t-r;n===0?n=i:n===i&&(n=0),r=t;continue}if(n===0&&e.startsWith(`**`,r)&&e[r+2]!==`*`&&!ii(e,r)){let n=e.slice(2,r),i=Array.from(n)[0]??``,a=Array.from(n).at(-1)??``;return n.length>0&&!/^\s|\s$/u.test(n)&&(ri.test(i)||ri.test(a))?{type:`strong`,raw:e.slice(0,r+2),text:n,tokens:t(n)}:void 0}r+=1}}var oi={gfm:!0,breaks:!1,async:!1};function si(e,t){return ei.parse(e,{...oi,...t,async:!1})}var ci=new Map,li=new Set;function ui(){return typeof performance>`u`?Date.now():performance.now()}function di(e){return null}function fi(e){let t=di(e);t&&(t.active=!0,li.add(e))}function pi(e){let t=ci.get(e);t&&(t.active=!1,li.delete(e))}function mi(e,t){let n=di(e);n&&(n.deltaCount+=1,n.latestContentLength=t)}function hi(e,t){let n=di(e);if(!n)return;let r=ui();n.commitCount+=1,n.firstCommitAt??=r,n.lastCommitAt=r,n.latestContentLength=t}function gi(e,t){let n=di(e);n&&(n.parseCount+=1,n.totalParseMs+=t,n.latestParseMs=t,n.longestParseMs=Math.max(n.longestParseMs,t),n.parseSamples.push(t),n.parseSamples.length>200&&n.parseSamples.shift())}function _i(e){return ci.get(e)?.latestParseMs??0}var vi=`png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|csv|tsv|txt|md|json|html?|css|mjs?|cjs|jsx|js|tsx|ts|yaml|yml|toml|xml|zip|mp3|wav|ogg|m4a|mp4|mov|webm`,yi=String.raw`[\p{L}\p{N}_.()()【】-]`,bi=new RegExp(String.raw`((?:\.\/)?(?:${yi}+\/)+${yi}+\.(?:${vi})(?::\d+|#L\d+)?)`,`giu`),xi=new RegExp(String.raw`(\/(?:Users|usr|var|opt|tmp|home|root|System|private|dev|media|mnt|Volumes|data)\/[^\s"'<>()|*?\n]+?\.(?:${vi})(?::\d+|#L\d+)?)`,`gi`),Si=new RegExp(String.raw`([A-Za-z]:[\\/][^"'<>()\n|*?=]+?\.(?:${vi})(?::\d+|#L\d+)?)`,`gi`),Ci=new RegExp(String.raw`(${yi}+\.(?:${vi})(?::\d+|#L\d+)?)`,`giu`);function wi(e){try{let t=new URL(e);return t.protocol!==`xopc:`||t.hostname!==`workspace`||t.pathname!==`/file`||!t.searchParams.get(`path`)?.trim()?null:`/xopc/workspace/file${t.search}${t.hash}`}catch{return null}}function Ti(e,t=!0,n=!1){let r=String.raw`xopc:\/\/workspace\/file[^\s[\]()<>"']*`,i=new RegExp(r,`gi`),a=n?/\[([^\]\n]*)\]\(([^)\n]+)\)/g:/(?<!!)\[([^\]\n]*)\]\(([^)\n]+)\)/g;return(t?e.replace(a,(e,t,n)=>{let r=Ei(n.trim().replace(/^<|>$/g,``));if(!r)return e;let i=/^xopc:\/\//i.test(t.trim())?`Open in xopc`:t,a=new URLSearchParams({path:r.path});return r.line&&a.set(`line`,String(r.line)),`[${i}](/xopc/workspace/file?${a.toString()})`}):e).replace(i,e=>wi(e)??e)}function Ei(e){let t=e.trim();if(!t)return null;if(t.startsWith(`xopc://workspace/file`)||t.startsWith(`/xopc/workspace/file`))try{let e=t.startsWith(`/xopc/`)?new URL(t,`https://xopc.local`):new URL(t),n=e.searchParams.get(`path`)?.trim()??``;if(!n)return null;t=n;let r=Number(e.searchParams.get(`line`)??``),i=Number.isFinite(r)&&r>0?Math.floor(r):void 0,a=ki(t);return a?{...a,...i?{line:i}:{}}:Oi(t,i)}catch{return null}let n=Di(t);return n?(t=n,ki(t)||(/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith(`/`)||t.startsWith(`\\`)?null:Oi(t))):null}function Di(e){let t=e.trim();if(!t)return null;if(/^file:/i.test(t))try{let e=new URL(t);if(e.protocol!==`file:`||e.hostname&&e.hostname!==`localhost`)return null;t=decodeURIComponent(e.pathname),/^\/[A-Za-z]:\//.test(t)&&(t=t.slice(1)),e.hash&&(t+=e.hash)}catch{return null}else try{t=decodeURIComponent(t)}catch{}return t}function Oi(e,t){let n=e.trim().replace(/\\/g,`/`);if(!n)return null;let r=t,i=n.match(/#L(\d+)$/i);if(i?.[1])r=Number(i[1]),n=n.slice(0,-i[0].length);else{let e=n.match(/:(\d+)$/);e?.[1]&&(r=Number(e[1]),n=n.slice(0,-e[0].length))}return n=n.replace(/^\.\//,``),!n||n.startsWith(`/`)||/^[A-Za-z]:/.test(n)||!new RegExp(String.raw`\.(?:${vi})$`,`i`).test(n)?null:{path:n,line:Number.isFinite(r)&&r&&r>0?Math.floor(r):void 0,kind:`workspace-relative`}}function ki(e){let t=e.trim().replace(/\\/g,`/`);if(!t||/^[A-Za-z]:\/{2,}/.test(t)||!(t.startsWith(`~/`)||t.startsWith(`/`)||/^[A-Za-z]:\//.test(t)))return null;let n,r=t.match(/#L(\d+)$/i);if(r?.[1])n=Number(r[1]),t=t.slice(0,-r[0].length);else{let e=t.match(/:(\d+)$/);e?.[1]&&(n=Number(e[1]),t=t.slice(0,-e[0].length))}return new RegExp(String.raw`\.(?:${vi})$`,`i`).test(t)?{path:t,line:Number.isFinite(n)&&n&&n>0?Math.floor(n):void 0,kind:`absolute`}:null}function Ai(e){let t=[],n=[xi,Si,bi,Ci];for(let r of n){r.lastIndex=0;let n;for(;(n=r.exec(e))!==null;){let r=n[1];if(!r)continue;let i=n.index,a=i+r.length,o=e[i-1]??``;if(o===`:`||o===`@`)continue;let s=e[a]??``;if(s&&/[\p{L}\p{N}_]/u.test(s))continue;let c=Ei(r);c&&(c.kind===`workspace-relative`&&o===`/`||t.push({raw:r,start:i,end:a,target:c}))}}t.sort((e,t)=>e.start-t.start||t.end-e.end);let r=[],i=-1;for(let e of t)e.start<i||(r.push(e),i=e.end);return r}function ji(e){let t=e.parentElement;return t?!!t.closest(`a, code, pre, kbd, samp, textarea, script, style, [data-xopc-math], [data-xopc-inline-file]`):!0}function Mi(e){let t=e.ownerDocument,n=t.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(e){return!(e instanceof Text)||ji(e)?NodeFilter.FILTER_REJECT:Ai(e.data).length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r=[],i;for(;i=n.nextNode();)r.push(i);for(let e of r){let n=e.data,r=Ai(n);if(r.length===0)continue;let i=t.createDocumentFragment(),a=0;for(let e of r){e.start>a&&i.appendChild(t.createTextNode(n.slice(a,e.start)));let r=t.createElement(`a`);r.href=`#`,r.className=`markdown-file-link`,r.dataset.xopcFilePath=e.target.path,r.dataset.xopcFileKind=e.target.kind,e.target.line&&(r.dataset.xopcLine=String(e.target.line)),r.textContent=e.raw,i.appendChild(r),a=e.end}a!==0&&(a<n.length&&i.appendChild(t.createTextNode(n.slice(a))),e.parentNode?.replaceChild(i,e))}}var Ni=`#ffffff`,Pi=`#27272a`,Fi=`#2563eb`,Ii=`#d4d4d8`,Li=8192,Ri=32e6,zi=2;function Bi(e,t){return Number.isFinite(e)&&e>0?e:t}function Vi(e){let t=(e.getAttribute(`viewBox`)??``).trim().split(/[\s,]+/).map(Number);return t.length===4&&t.every(Number.isFinite)?{width:Bi(t[2],800),height:Bi(t[3],600)}:{width:Bi(Number.parseFloat(e.getAttribute(`width`)??``),800),height:Bi(Number.parseFloat(e.getAttribute(`height`)??``),600)}}function Hi(e,t,n){let r=document.createElement(`span`);r.setAttribute(`aria-hidden`,`true`),r.style.position=`absolute`,r.style.visibility=`hidden`,r.style.pointerEvents=`none`,r.style.color=`var(${t}, ${n})`,e.appendChild(r);let i=getComputedStyle(r).color.trim();return r.remove(),i&&!i.includes(`var(`)?i:n}function Ui(e){e.querySelectorAll(`script, foreignObject`).forEach(e=>e.remove()),e.querySelectorAll(`*`).forEach(e=>{e.removeAttribute(`href`),e.removeAttributeNS(`http://www.w3.org/1999/xlink`,`href`)}),e.querySelectorAll(`style`).forEach(e=>{e.textContent=(e.textContent??``).replace(/@import\s+url\([^)]*\)\s*;?/gi,``)})}function Wi(e,t){let{width:n,height:r}=Vi(e),i=Hi(t,`--color-surface-hover`,Ni),a=Hi(t,`--color-fg`,Pi),o=Hi(t,`--color-accent-fg`,Fi),s=Hi(t,`--color-edge`,Ii),c=e.cloneNode(!0);Ui(c),c.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),c.setAttribute(`width`,String(n)),c.setAttribute(`height`,String(r)),c.style.setProperty(`--bg`,i),c.style.setProperty(`--fg`,a),c.style.setProperty(`--accent`,o),c.style.setProperty(`--border`,s);let l=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`);return l.setAttribute(`width`,`100%`),l.setAttribute(`height`,`100%`),l.setAttribute(`fill`,i),l.setAttribute(`data-mermaid-export-background`,``),c.insertBefore(l,c.firstChild),{svg:new XMLSerializer().serializeToString(c),width:n,height:r,background:i}}function Gi(e,t,n=zi){let r=Bi(e,800),i=Bi(t,600),a=Bi(n,zi),o=Math.min(a,Li/r,Li/i,Math.sqrt(Ri/(r*i)));return{width:Math.max(1,Math.floor(r*o)),height:Math.max(1,Math.floor(i*o)),scale:o}}function Ki(e){return new Blob([e.svg],{type:`image/svg+xml;charset=utf-8`})}function qi(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),0)}function Ji(e){let t=URL.createObjectURL(e);return new Promise((e,n)=>{let r=new Image;r.onload=()=>e({image:r,url:t}),r.onerror=()=>{URL.revokeObjectURL(t),n(Error(`mermaid_svg_load_failed`))},r.src=t})}function Yi(e){return new Promise((t,n)=>{e.toBlob(e=>{e?t(e):n(Error(`mermaid_png_encode_failed`))},`image/png`)})}async function Xi(e){await document.fonts?.ready;let t=Gi(e.width,e.height),{image:n,url:r}=await Ji(Ki(e));try{let r=document.createElement(`canvas`);r.width=t.width,r.height=t.height;let i=r.getContext(`2d`);if(!i)throw Error(`mermaid_canvas_unavailable`);return i.fillStyle=e.background,i.fillRect(0,0,r.width,r.height),i.drawImage(n,0,0,r.width,r.height),await Yi(r)}finally{URL.revokeObjectURL(r)}}async function Zi(e,t){qi(await Xi(e),t)}function Qi(e,t){qi(Ki(e),t)}var $i=/^(?:(?:flowchart|graph)\s+(?:TD|TB|LR|BT|RL)\b|stateDiagram(?:-v2)?\b|sequenceDiagram\b|classDiagram\b|erDiagram\b|xychart(?:-beta)?\b)/i;function ea(e){let t=e.trimStart().split(/[\r\n;]/,1)[0]?.trim()??``;return $i.test(t)}var M=i(),ta=.25,na=4,ra=.25;function ia({preview:e,labels:t,onClose:n}){let r=(0,k.useRef)(null),[i,a]=(0,k.useState)(1),[o,s]=(0,k.useState)(1),[d,p]=(0,k.useState)(!0),[b,x]=(0,k.useState)(!1),[S,C]=(0,k.useState)(!1),ee=(0,k.useCallback)(()=>{let t=r.current,n=e?.snapshot;if(!t||!n)return;let i=Math.max(1,t.clientWidth-48),a=Math.max(1,t.clientHeight-48);s(Math.min(1,i/n.width,a/n.height))},[e]);(0,k.useEffect)(()=>{if(!e)return;a(1),p(!0),C(!1);let t=requestAnimationFrame(ee),n=r.current,i=typeof ResizeObserver>`u`?null:new ResizeObserver(ee);return n&&i?.observe(n),window.addEventListener(`resize`,ee),()=>{cancelAnimationFrame(t),i?.disconnect(),window.removeEventListener(`resize`,ee)}},[e,ee]);let te=e=>{a(Math.min(na,Math.max(ta,(d?o:i)+e))),p(!1)},ne=async()=>{if(!(!e||b)){x(!0),C(!1);try{await Zi(e.snapshot,`${e.baseName}.png`)}catch{C(!0)}finally{x(!1)}}},w=d?o:i,re=e?.snapshot;return(0,M.jsx)(y,{open:e!==null,onOpenChange:e=>{e||n()},children:(0,M.jsxs)(g,{children:[(0,M.jsx)(m,{className:`fixed inset-0 z-[90] bg-scrim/90 backdrop-blur-sm`}),(0,M.jsxs)(_,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[91] flex h-[min(92dvh,64rem)] w-[min(96vw,96rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-overlay outline-none`,children:[(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-edge px-3 py-2`,children:[(0,M.jsx)(v,{className:`min-w-0 flex-1 truncate text-sm font-semibold text-fg`,children:t.title}),(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>te(-.25),title:t.zoomOut,"aria-label":t.zoomOut,children:(0,M.jsx)(ue,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsxs)(`span`,{className:`mermaid-preview-secondary-action w-12 text-center text-xs tabular-nums text-fg-muted`,children:[Math.round(w*100),`%`]}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>te(ra),title:t.zoomIn,"aria-label":t.zoomIn,children:(0,M.jsx)(l,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(`button`,{type:`button`,className:f(`mermaid-preview-toolbar-button`,d&&`bg-surface-hover text-fg`),onClick:()=>p(!0),title:t.fit,"aria-label":t.fit,children:(0,M.jsx)(le,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(`span`,{className:`mermaid-preview-secondary-action mx-1 h-5 w-px bg-edge`,"aria-hidden":!0}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>void ne(),disabled:b,title:S?t.downloadFailed:t.downloadPng,"aria-label":S?t.downloadFailed:t.downloadPng,"aria-busy":b,children:(0,M.jsx)(c,{className:f(`size-4`,b&&`animate-bounce`),"aria-hidden":!0})}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button mermaid-preview-secondary-action`,onClick:()=>{e&&Qi(e.snapshot,`${e.baseName}.svg`)},title:t.downloadSvg,"aria-label":t.downloadSvg,children:(0,M.jsx)(ce,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(h,{asChild:!0,children:(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button ml-1`,title:t.close,"aria-label":t.close,children:(0,M.jsx)(u,{className:`size-4`,"aria-hidden":!0})})})]})]}),(0,M.jsx)(`div`,{ref:r,className:`min-h-0 flex-1 overflow-auto bg-surface-base`,children:re?(0,M.jsx)(`div`,{className:`min-h-full min-w-full p-6`,children:(0,M.jsx)(`div`,{className:`m-auto select-none overflow-hidden rounded-lg border border-edge bg-surface-hover shadow-sm [&>svg]:block [&>svg]:size-full [&>svg]:max-w-none`,style:{width:`${re.width*w}px`,height:`${re.height*w}px`},dangerouslySetInnerHTML:{__html:re.svg}})}):null})]})]})})}var aa=`xopc-math-v1`,N=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},oa=/([A-Z])/g,sa=e=>e.replace(oa,`-$1`).toLowerCase(),ca={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},la=/[&><"']/g,ua=e=>String(e).replace(la,e=>ca[e]),da=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?da(e.body[0]):e:e.type===`font`?da(e.body):e,fa=new Set([`mathord`,`textord`,`atom`]),pa=e=>fa.has(da(e).type),ma=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},ha={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function ga(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function _a(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:ga(Array.isArray(e.type)?e.type[0]:e.type)}function va(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?_a(r):a?a(i):i}var ya=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(ha)){var n=ha[t];n&&va(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=ma(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},ba=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return ka[Aa[this.id]]}sub(){return ka[ja[this.id]]}fracNum(){return ka[Ma[this.id]]}fracDen(){return ka[Na[this.id]]}cramp(){return ka[Pa[this.id]]}text(){return ka[Fa[this.id]]}isTight(){return this.size>=2}},xa=0,Sa=1,Ca=2,wa=3,Ta=4,Ea=5,Da=6,Oa=7,ka=[new ba(xa,0,!1),new ba(Sa,0,!0),new ba(Ca,1,!1),new ba(wa,1,!0),new ba(Ta,2,!1),new ba(Ea,2,!0),new ba(Da,3,!1),new ba(Oa,3,!0)],Aa=[Ta,Ea,Ta,Ea,Da,Oa,Da,Oa],ja=[Ea,Ea,Ea,Ea,Oa,Oa,Oa,Oa],Ma=[Ca,wa,Ta,Ea,Da,Oa,Da,Oa],Na=[wa,wa,Ea,Ea,Oa,Oa,Oa,Oa],Pa=[Sa,Sa,wa,wa,Ea,Ea,Oa,Oa],Fa=[xa,Sa,Ca,wa,Ca,wa,Ca,wa],P={DISPLAY:ka[xa],TEXT:ka[Ca],SCRIPT:ka[Ta],SCRIPTSCRIPT:ka[Da]},Ia=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function La(e){for(var t=0;t<Ia.length;t++)for(var n=Ia[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Ra=[];Ia.forEach(e=>e.blocks.forEach(e=>Ra.push(...e)));function za(e){for(var t=0;t<Ra.length;t+=2)if(e>=Ra[t]&&e<=Ra[t+1])return!0;return!1}var Ba=e=>e+` `+e,Va=80,Ha=function(e,t){return`M95,`+(622+e+t)+`
|
|
68
|
+
Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+wr(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}},Br=new zr;function j(e,t){return Br.parse(e,t)}j.options=j.setOptions=function(e){return Br.setOptions(e),j.defaults=Br.defaults,fn(j.defaults),j},j.getDefaults=un,j.defaults=dn,j.use=function(...e){return Br.use(...e),j.defaults=Br.defaults,fn(j.defaults),j},j.walkTokens=function(e,t){return Br.walkTokens(e,t)},j.parseInline=Br.parseInline,j.Parser=Lr,j.parser=Lr.parse,j.Renderer=Fr,j.TextRenderer=Ir,j.Lexer=Pr,j.lexer=Pr.lex,j.Tokenizer=Nr,j.Hooks=Rr,j.parse=j,j.options,j.setOptions,j.use,j.walkTokens,j.parseInline,Lr.parse,Pr.lex;function Vr(e){if(typeof e==`function`&&(e={highlight:e}),!e||typeof e.highlight!=`function`)throw Error(`Must provide highlight function`);return typeof e.langPrefix!=`string`&&(e.langPrefix=`language-`),typeof e.emptyLangClass!=`string`&&(e.emptyLangClass=``),{async:!!e.async,walkTokens(t){if(t.type!==`code`)return;let n=Hr(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||``)).then(Ur(t));let r=e.highlight(t.text,n,t.lang||``);if(r instanceof Promise)throw Error(`markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.`);Ur(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t==`object`&&(r=t.escaped,n=t.lang,t=t.text);let i=Hr(n),a=i?e.langPrefix+Xr(i):e.emptyLangClass,o=a?` class="${a}"`:``;return t=t.replace(/\n$/,``),`<pre><code${o}>${r?t:Xr(t,!0)}\n</code></pre>`}}}}function Hr(e){return(e||``).match(/\S*/)[0]}function Ur(e){return t=>{typeof t==`string`&&t!==e.text&&(e.escaped=!0,e.text=t)}}var Wr=/[&<>"']/,Gr=new RegExp(Wr.source,`g`),Kr=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,qr=new RegExp(Kr.source,`g`),Jr={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`},Yr=e=>Jr[e];function Xr(e,t){if(t){if(Wr.test(e))return e.replace(Gr,Yr)}else if(Kr.test(e))return e.replace(qr,Yr);return e}function Zr(e){return e.replace(/\\([\\_()[\]*])/g,`$1`).replace(/&(?:amp|#0*38|#x0*26);/gi,`&`)}var Qr={walkTokens(e){if(e.type!==`link`)return;let t=Zr(e.href);if(!/^xopc:\/\//i.test(t))return;let n=S(t,`https://xopc.local/`);n.kind===`internal-route`&&(e.href=`#${n.route}`)},extensions:[{name:`xopcLink`,level:`inline`,start(e){let t=e.search(/xopc:\/\/|\[[^\]\n]+\]\\\(xopc:\/\//i);return t<0?void 0:t},tokenizer(e){if(this.lexer.state.inLink)return;let t=/^\[([^\]\n]+)\]\\\((xopc:\/\/[^\s<>]+?)\\\)/i.exec(e),n=/^(?:xopc:\/\/)[^\s<>\[\]()"',。;!?、]+/i.exec(e),r=t?.[0]??n?.[0]?.replace(/[.,;!?]+$/,``);if(!r)return;let i=Zr(t?.[2]??r),a=Zr(t?.[1]??r);return{type:`link`,raw:r,href:i,text:a,title:null,tokens:[{type:`text`,raw:a,text:a.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}]}}}]};w.registerLanguage(`bash`,ne),w.registerLanguage(`css`,oe),w.registerLanguage(`html`,se),w.registerLanguage(`javascript`,ie),w.registerLanguage(`json`,te),w.registerLanguage(`markdown`,re),w.registerLanguage(`md`,re),w.registerLanguage(`plaintext`,ae),w.registerLanguage(`typescript`,T),w.registerLanguage(`xml`,se),w.registerAliases([`js`,`jsx`],{languageName:`javascript`}),w.registerAliases([`ts`,`tsx`],{languageName:`typescript`}),w.registerAliases([`sh`,`shell`,`zsh`],{languageName:`bash`});function $r(e){return new zr(Qr,ln,Vr({emptyLangClass:`hljs`,langPrefix:`hljs language-`,highlight(e,t){if(t?.trim()===`math`||t?.trim()===`chart`)return e;let n=(t??``).trim()||`plaintext`,r=w.getLanguage(n)?n:`plaintext`;return w.highlight(e,{language:r}).value}}),{renderer:{code(t){if(e&&t.lang?.trim().split(/\s+/)[0]===`chart`)return e(t);if(t.lang?.trim()!==`math`)return!1;let n=rn(t.raw);return n?cn(n):!1},html({text:e}){return ni(e)}},extensions:[{name:`punctuationBoundStrong`,level:`inline`,start(e){let t=e.indexOf(`**`);return t>=0?t:void 0},tokenizer(e){return ai(e,e=>this.lexer.inlineTokens(e))}}]})}var ei=$r();function ti(e,t){let n=[];return{html:$r(e=>{let t=e.raw.trimEnd().split(/\r?\n/),r=t[0]?.match(/^ {0,3}(`{3,}|~{3,})[ \t]*chart(?:\s|$)/)?.[1],i=t.at(-1)?.match(/^ {0,3}(`{3,}|~{3,})[ \t]*$/)?.[1],a=!!(t.length>1&&r&&i&&r[0]===i[0]&&i.length>=r.length);return`<div data-md-chart="${n.push({source:e.text,closed:a})-1}"></div>`}).parse(e,{...oi,...t,async:!1}),charts:n}}function ni(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}var ri=/^\p{P}$/u;function ii(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function ai(e,t){if(!e.startsWith(`**`)||e.startsWith(`***`))return;let n=0;for(let r=2;r<e.length-1;){if(e[r]===`\\`){r+=2;continue}if(e[r]==="`"){let t=r+1;for(;e[t]==="`";)t+=1;let i=t-r;n===0?n=i:n===i&&(n=0),r=t;continue}if(n===0&&e.startsWith(`**`,r)&&e[r+2]!==`*`&&!ii(e,r)){let n=e.slice(2,r),i=Array.from(n)[0]??``,a=Array.from(n).at(-1)??``;return n.length>0&&!/^\s|\s$/u.test(n)&&(ri.test(i)||ri.test(a))?{type:`strong`,raw:e.slice(0,r+2),text:n,tokens:t(n)}:void 0}r+=1}}var oi={gfm:!0,breaks:!1,async:!1};function si(e,t){return ei.parse(e,{...oi,...t,async:!1})}var ci=new Map,li=new Set;function ui(){return typeof performance>`u`?Date.now():performance.now()}function di(e){return null}function fi(e){let t=di(e);t&&(t.active=!0,li.add(e))}function pi(e){let t=ci.get(e);t&&(t.active=!1,li.delete(e))}function mi(e,t){let n=di(e);n&&(n.deltaCount+=1,n.latestContentLength=t)}function hi(e,t){let n=di(e);if(!n)return;let r=ui();n.commitCount+=1,n.firstCommitAt??=r,n.lastCommitAt=r,n.latestContentLength=t}function gi(e,t){let n=di(e);n&&(n.parseCount+=1,n.totalParseMs+=t,n.latestParseMs=t,n.longestParseMs=Math.max(n.longestParseMs,t),n.parseSamples.push(t),n.parseSamples.length>200&&n.parseSamples.shift())}function _i(e){return ci.get(e)?.latestParseMs??0}var vi=`png|jpe?g|gif|webp|bmp|svg|pdf|docx?|xlsx?|pptx?|csv|tsv|txt|md|json|html?|css|mjs?|cjs|jsx|js|tsx|ts|yaml|yml|toml|xml|zip|mp3|wav|ogg|m4a|mp4|mov|webm`,yi=String.raw`[\p{L}\p{N}_.()()【】-]`,bi=new RegExp(String.raw`((?:\.\/)?(?:${yi}+\/)+${yi}+\.(?:${vi})(?::\d+|#L\d+)?)`,`giu`),xi=new RegExp(String.raw`(\/(?:Users|usr|var|opt|tmp|home|root|System|private|dev|media|mnt|Volumes|data)\/[^\s"'<>()|*?\n]+?\.(?:${vi})(?::\d+|#L\d+)?)`,`gi`),Si=new RegExp(String.raw`([A-Za-z]:[\\/][^"'<>()\n|*?=]+?\.(?:${vi})(?::\d+|#L\d+)?)`,`gi`),Ci=new RegExp(String.raw`(${yi}+\.(?:${vi})(?::\d+|#L\d+)?)`,`giu`);function wi(e){try{let t=new URL(e);return t.protocol!==`xopc:`||t.hostname!==`workspace`||t.pathname!==`/file`||!t.searchParams.get(`path`)?.trim()?null:`/xopc/workspace/file${t.search}${t.hash}`}catch{return null}}function Ti(e,t=!0,n=!1){let r=String.raw`xopc:\/\/workspace\/file[^\s[\]()<>"']*`,i=new RegExp(r,`gi`),a=n?/\[([^\]\n]*)\]\(([^)\n]+)\)/g:/(?<!!)\[([^\]\n]*)\]\(([^)\n]+)\)/g;return(t?e.replace(a,(e,t,n)=>{let r=Ei(n.trim().replace(/^<|>$/g,``));if(!r)return e;let i=/^xopc:\/\//i.test(t.trim())?`Open in xopc`:t,a=new URLSearchParams({path:r.path});return r.line&&a.set(`line`,String(r.line)),`[${i}](/xopc/workspace/file?${a.toString()})`}):e).replace(i,e=>wi(e)??e)}function Ei(e){let t=e.trim();if(!t)return null;if(t.startsWith(`xopc://workspace/file`)||t.startsWith(`/xopc/workspace/file`))try{let e=t.startsWith(`/xopc/`)?new URL(t,`https://xopc.local`):new URL(t),n=e.searchParams.get(`path`)?.trim()??``;if(!n)return null;t=n;let r=Number(e.searchParams.get(`line`)??``),i=Number.isFinite(r)&&r>0?Math.floor(r):void 0,a=ki(t);return a?{...a,...i?{line:i}:{}}:Oi(t,i)}catch{return null}let n=Di(t);return n?(t=n,ki(t)||(/^[a-z][a-z0-9+.-]*:/i.test(t)||t.startsWith(`/`)||t.startsWith(`\\`)?null:Oi(t))):null}function Di(e){let t=e.trim();if(!t)return null;if(/^file:/i.test(t))try{let e=new URL(t);if(e.protocol!==`file:`||e.hostname&&e.hostname!==`localhost`)return null;t=decodeURIComponent(e.pathname),/^\/[A-Za-z]:\//.test(t)&&(t=t.slice(1)),e.hash&&(t+=e.hash)}catch{return null}else try{t=decodeURIComponent(t)}catch{}return t}function Oi(e,t){let n=e.trim().replace(/\\/g,`/`);if(!n)return null;let r=t,i=n.match(/#L(\d+)$/i);if(i?.[1])r=Number(i[1]),n=n.slice(0,-i[0].length);else{let e=n.match(/:(\d+)$/);e?.[1]&&(r=Number(e[1]),n=n.slice(0,-e[0].length))}return n=n.replace(/^\.\//,``),!n||n.startsWith(`/`)||/^[A-Za-z]:/.test(n)||!new RegExp(String.raw`\.(?:${vi})$`,`i`).test(n)?null:{path:n,line:Number.isFinite(r)&&r&&r>0?Math.floor(r):void 0,kind:`workspace-relative`}}function ki(e){let t=e.trim().replace(/\\/g,`/`);if(!t||/^[A-Za-z]:\/{2,}/.test(t)||!(t.startsWith(`~/`)||t.startsWith(`/`)||/^[A-Za-z]:\//.test(t)))return null;let n,r=t.match(/#L(\d+)$/i);if(r?.[1])n=Number(r[1]),t=t.slice(0,-r[0].length);else{let e=t.match(/:(\d+)$/);e?.[1]&&(n=Number(e[1]),t=t.slice(0,-e[0].length))}return new RegExp(String.raw`\.(?:${vi})$`,`i`).test(t)?{path:t,line:Number.isFinite(n)&&n&&n>0?Math.floor(n):void 0,kind:`absolute`}:null}function Ai(e){let t=[],n=[xi,Si,bi,Ci];for(let r of n){r.lastIndex=0;let n;for(;(n=r.exec(e))!==null;){let r=n[1];if(!r)continue;let i=n.index,a=i+r.length,o=e[i-1]??``;if(o===`:`||o===`@`)continue;let s=e[a]??``;if(s&&/[\p{L}\p{N}_]/u.test(s))continue;let c=Ei(r);c&&(c.kind===`workspace-relative`&&o===`/`||t.push({raw:r,start:i,end:a,target:c}))}}t.sort((e,t)=>e.start-t.start||t.end-e.end);let r=[],i=-1;for(let e of t)e.start<i||(r.push(e),i=e.end);return r}function ji(e){let t=e.parentElement;return t?!!t.closest(`a, code, pre, kbd, samp, textarea, script, style, [data-xopc-math], [data-xopc-inline-file]`):!0}function Mi(e){let t=e.ownerDocument,n=t.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(e){return!(e instanceof Text)||ji(e)?NodeFilter.FILTER_REJECT:Ai(e.data).length>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r=[],i;for(;i=n.nextNode();)r.push(i);for(let e of r){let n=e.data,r=Ai(n);if(r.length===0)continue;let i=t.createDocumentFragment(),a=0;for(let e of r){e.start>a&&i.appendChild(t.createTextNode(n.slice(a,e.start)));let r=t.createElement(`a`);r.href=`#`,r.className=`markdown-file-link`,r.dataset.xopcFilePath=e.target.path,r.dataset.xopcFileKind=e.target.kind,e.target.line&&(r.dataset.xopcLine=String(e.target.line)),r.textContent=e.raw,i.appendChild(r),a=e.end}a!==0&&(a<n.length&&i.appendChild(t.createTextNode(n.slice(a))),e.parentNode?.replaceChild(i,e))}}var Ni=`#ffffff`,Pi=`#27272a`,Fi=`#2563eb`,Ii=`#d4d4d8`,Li=8192,Ri=32e6,zi=2;function Bi(e,t){return Number.isFinite(e)&&e>0?e:t}function Vi(e){let t=(e.getAttribute(`viewBox`)??``).trim().split(/[\s,]+/).map(Number);return t.length===4&&t.every(Number.isFinite)?{width:Bi(t[2],800),height:Bi(t[3],600)}:{width:Bi(Number.parseFloat(e.getAttribute(`width`)??``),800),height:Bi(Number.parseFloat(e.getAttribute(`height`)??``),600)}}function Hi(e,t,n){let r=document.createElement(`span`);r.setAttribute(`aria-hidden`,`true`),r.style.position=`absolute`,r.style.visibility=`hidden`,r.style.pointerEvents=`none`,r.style.color=`var(${t}, ${n})`,e.appendChild(r);let i=getComputedStyle(r).color.trim();return r.remove(),i&&!i.includes(`var(`)?i:n}function Ui(e){e.querySelectorAll(`script, foreignObject`).forEach(e=>e.remove()),e.querySelectorAll(`*`).forEach(e=>{e.removeAttribute(`href`),e.removeAttributeNS(`http://www.w3.org/1999/xlink`,`href`)}),e.querySelectorAll(`style`).forEach(e=>{e.textContent=(e.textContent??``).replace(/@import\s+url\([^)]*\)\s*;?/gi,``)})}function Wi(e,t){let{width:n,height:r}=Vi(e),i=Hi(t,`--color-surface-hover`,Ni),a=Hi(t,`--color-fg`,Pi),o=Hi(t,`--color-accent-fg`,Fi),s=Hi(t,`--color-edge`,Ii),c=e.cloneNode(!0);Ui(c),c.setAttribute(`xmlns`,`http://www.w3.org/2000/svg`),c.setAttribute(`width`,String(n)),c.setAttribute(`height`,String(r)),c.style.setProperty(`--bg`,i),c.style.setProperty(`--fg`,a),c.style.setProperty(`--accent`,o),c.style.setProperty(`--border`,s);let l=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`);return l.setAttribute(`width`,`100%`),l.setAttribute(`height`,`100%`),l.setAttribute(`fill`,i),l.setAttribute(`data-mermaid-export-background`,``),c.insertBefore(l,c.firstChild),{svg:new XMLSerializer().serializeToString(c),width:n,height:r,background:i}}function Gi(e,t,n=zi){let r=Bi(e,800),i=Bi(t,600),a=Bi(n,zi),o=Math.min(a,Li/r,Li/i,Math.sqrt(Ri/(r*i)));return{width:Math.max(1,Math.floor(r*o)),height:Math.max(1,Math.floor(i*o)),scale:o}}function Ki(e){return new Blob([e.svg],{type:`image/svg+xml;charset=utf-8`})}function qi(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),0)}function Ji(e){let t=URL.createObjectURL(e);return new Promise((e,n)=>{let r=new Image;r.onload=()=>e({image:r,url:t}),r.onerror=()=>{URL.revokeObjectURL(t),n(Error(`mermaid_svg_load_failed`))},r.src=t})}function Yi(e){return new Promise((t,n)=>{e.toBlob(e=>{e?t(e):n(Error(`mermaid_png_encode_failed`))},`image/png`)})}async function Xi(e){await document.fonts?.ready;let t=Gi(e.width,e.height),{image:n,url:r}=await Ji(Ki(e));try{let r=document.createElement(`canvas`);r.width=t.width,r.height=t.height;let i=r.getContext(`2d`);if(!i)throw Error(`mermaid_canvas_unavailable`);return i.fillStyle=e.background,i.fillRect(0,0,r.width,r.height),i.drawImage(n,0,0,r.width,r.height),await Yi(r)}finally{URL.revokeObjectURL(r)}}async function Zi(e,t){qi(await Xi(e),t)}function Qi(e,t){qi(Ki(e),t)}var $i=/^(?:(?:flowchart|graph)\s+(?:TD|TB|LR|BT|RL)\b|stateDiagram(?:-v2)?\b|sequenceDiagram\b|classDiagram\b|erDiagram\b|xychart(?:-beta)?\b)/i;function ea(e){let t=e.trimStart().split(/[\r\n;]/,1)[0]?.trim()??``;return $i.test(t)}var M=i(),ta=.25,na=4,ra=.25;function ia({preview:e,labels:t,onClose:n}){let r=(0,k.useRef)(null),[i,a]=(0,k.useState)(1),[o,s]=(0,k.useState)(1),[f,m]=(0,k.useState)(!0),[x,S]=(0,k.useState)(!1),[C,ee]=(0,k.useState)(!1),te=(0,k.useCallback)(()=>{let t=r.current,n=e?.snapshot;if(!t||!n)return;let i=Math.max(1,t.clientWidth-48),a=Math.max(1,t.clientHeight-48);s(Math.min(1,i/n.width,a/n.height))},[e]);(0,k.useEffect)(()=>{if(!e)return;a(1),m(!0),ee(!1);let t=requestAnimationFrame(te),n=r.current,i=typeof ResizeObserver>`u`?null:new ResizeObserver(te);return n&&i?.observe(n),window.addEventListener(`resize`,te),()=>{cancelAnimationFrame(t),i?.disconnect(),window.removeEventListener(`resize`,te)}},[e,te]);let ne=e=>{a(Math.min(na,Math.max(ta,(f?o:i)+e))),m(!1)},re=async()=>{if(!(!e||x)){S(!0),ee(!1);try{await Zi(e.snapshot,`${e.baseName}.png`)}catch{ee(!0)}finally{S(!1)}}},w=f?o:i,T=e?.snapshot;return(0,M.jsx)(b,{open:e!==null,onOpenChange:e=>{e||n()},children:(0,M.jsxs)(_,{children:[(0,M.jsx)(h,{className:`fixed inset-0 z-[90] bg-scrim/90 backdrop-blur-sm`}),(0,M.jsxs)(v,{className:`xopc-dialog-content fixed left-1/2 top-1/2 z-[91] flex h-[min(92dvh,64rem)] w-[min(96vw,96rem)] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-overlay outline-none`,children:[(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 border-b border-edge px-3 py-2`,children:[(0,M.jsx)(y,{className:`min-w-0 flex-1 truncate text-sm font-semibold text-fg`,children:t.title}),(0,M.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>ne(-.25),title:t.zoomOut,"aria-label":t.zoomOut,children:(0,M.jsx)(ue,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsxs)(`span`,{className:`mermaid-preview-secondary-action w-12 text-center text-xs tabular-nums text-fg-muted`,children:[Math.round(w*100),`%`]}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>ne(ra),title:t.zoomIn,"aria-label":t.zoomIn,children:(0,M.jsx)(u,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(`button`,{type:`button`,className:p(`mermaid-preview-toolbar-button`,f&&`bg-surface-hover text-fg`),onClick:()=>m(!0),title:t.fit,"aria-label":t.fit,children:(0,M.jsx)(le,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(`span`,{className:`mermaid-preview-secondary-action mx-1 h-5 w-px bg-edge`,"aria-hidden":!0}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button`,onClick:()=>void re(),disabled:x,title:C?t.downloadFailed:t.downloadPng,"aria-label":C?t.downloadFailed:t.downloadPng,"aria-busy":x,children:(0,M.jsx)(c,{className:p(`size-4`,x&&`animate-bounce`),"aria-hidden":!0})}),(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button mermaid-preview-secondary-action`,onClick:()=>{e&&Qi(e.snapshot,`${e.baseName}.svg`)},title:t.downloadSvg,"aria-label":t.downloadSvg,children:(0,M.jsx)(l,{className:`size-4`,"aria-hidden":!0})}),(0,M.jsx)(g,{asChild:!0,children:(0,M.jsx)(`button`,{type:`button`,className:`mermaid-preview-toolbar-button ml-1`,title:t.close,"aria-label":t.close,children:(0,M.jsx)(d,{className:`size-4`,"aria-hidden":!0})})})]})]}),(0,M.jsx)(`div`,{ref:r,className:`min-h-0 flex-1 overflow-auto bg-surface-base`,children:T?(0,M.jsx)(`div`,{className:`min-h-full min-w-full p-6`,children:(0,M.jsx)(`div`,{className:`m-auto select-none overflow-hidden rounded-lg border border-edge bg-surface-hover shadow-sm [&>svg]:block [&>svg]:size-full [&>svg]:max-w-none`,style:{width:`${T.width*w}px`,height:`${T.height*w}px`},dangerouslySetInnerHTML:{__html:T.svg}})}):null})]})]})})}var aa=`xopc-math-v1`,N=class e extends Error{constructor(t,n){var r=`KaTeX parse error: `+t,i,a,o=n&&n.loc;if(o&&o.start<=o.end){var s=o.lexer.input;i=o.start,a=o.end,i===s.length?r+=` at end of input: `:r+=` at position `+(i+1)+`: `;var c=s.slice(i,a).replace(/[^]/g,`$&̲`),l=i>15?`…`+s.slice(i-15,i):s.slice(0,i),u=a+15<s.length?s.slice(a,a+15)+`…`:s.slice(a);r+=l+c+u}super(r),this.name=`ParseError`,this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,e.prototype),this.position=i,i!=null&&a!=null&&(this.length=a-i),this.rawMessage=t}},oa=/([A-Z])/g,sa=e=>e.replace(oa,`-$1`).toLowerCase(),ca={"&":`&`,">":`>`,"<":`<`,'"':`"`,"'":`'`},la=/[&><"']/g,ua=e=>String(e).replace(la,e=>ca[e]),da=e=>e.type===`ordgroup`||e.type===`color`?e.body.length===1?da(e.body[0]):e:e.type===`font`?da(e.body):e,fa=new Set([`mathord`,`textord`,`atom`]),pa=e=>fa.has(da(e).type),ma=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==`:`||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():`_relative`},ha={displayMode:{type:`boolean`,description:`Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.`,cli:`-d, --display-mode`},output:{type:{enum:[`htmlAndMathml`,`html`,`mathml`]},description:`Determines the markup language of the output.`,cli:`-F, --format <type>`},leqno:{type:`boolean`,description:`Render display math in leqno style (left-justified tags).`},fleqn:{type:`boolean`,description:`Render display math flush left.`},throwOnError:{type:`boolean`,default:!0,cli:`-t, --no-throw-on-error`,cliDescription:`Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error.`},errorColor:{type:`string`,default:`#cc0000`,cli:`-c, --error-color <color>`,cliDescription:`A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.`,cliProcessor:e=>`#`+e},macros:{type:`object`,cli:`-m, --macro <def>`,cliDescription:`Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).`,cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:`number`,description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:`--min-rule-thickness <size>`,cliProcessor:parseFloat},colorIsTextColor:{type:`boolean`,description:`Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.`,cli:`-b, --color-is-text-color`},strict:{type:[{enum:[`warn`,`ignore`,`error`]},`boolean`,`function`],description:`Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.`,cli:`-S, --strict`,cliDefault:!1},trust:{type:[`boolean`,`function`],description:`Trust the input, enabling all HTML features such as \\url.`,cli:`-T, --trust`},maxSize:{type:`number`,default:1/0,description:`If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large`,processor:e=>Math.max(0,e),cli:`-s, --max-size <n>`,cliProcessor:parseInt},maxExpand:{type:`number`,default:1e3,description:`Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.`,processor:e=>Math.max(0,e),cli:`-e, --max-expand <n>`,cliProcessor:e=>e===`Infinity`?1/0:parseInt(e)},globalGroup:{type:`boolean`,cli:!1}};function ga(e){if(typeof e!=`string`)return e.enum[0];switch(e){case`boolean`:return!1;case`string`:return``;case`number`:return 0;case`object`:return{};default:throw Error(`Unexpected schema type; settings must declare an explicit default.`)}}function _a(e){return Object.prototype.hasOwnProperty.call(e,`default`)&&e.default!==void 0?e.default:ga(Array.isArray(e.type)?e.type[0]:e.type)}function va(e,t,n,r){var i=Object.prototype.hasOwnProperty.call(n,t)?n[t]:void 0,a=Object.prototype.hasOwnProperty.call(r,`processor`)?r.processor:void 0;e[t]=i===void 0?_a(r):a?a(i):i}var ya=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e||={};for(var t of Object.keys(ha)){var n=ha[t];n&&va(this,t,e,n)}}isTrusted(e){if(`url`in e&&e.url&&!e.protocol){var t=ma(e.url);if(t==null)return!1;e.protocol=t}return!!(typeof this.trust==`function`?this.trust(e):this.trust)}},ba=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return ka[Aa[this.id]]}sub(){return ka[ja[this.id]]}fracNum(){return ka[Ma[this.id]]}fracDen(){return ka[Na[this.id]]}cramp(){return ka[Pa[this.id]]}text(){return ka[Fa[this.id]]}isTight(){return this.size>=2}},xa=0,Sa=1,Ca=2,wa=3,Ta=4,Ea=5,Da=6,Oa=7,ka=[new ba(xa,0,!1),new ba(Sa,0,!0),new ba(Ca,1,!1),new ba(wa,1,!0),new ba(Ta,2,!1),new ba(Ea,2,!0),new ba(Da,3,!1),new ba(Oa,3,!0)],Aa=[Ta,Ea,Ta,Ea,Da,Oa,Da,Oa],ja=[Ea,Ea,Ea,Ea,Oa,Oa,Oa,Oa],Ma=[Ca,wa,Ta,Ea,Da,Oa,Da,Oa],Na=[wa,wa,Ea,Ea,Oa,Oa,Oa,Oa],Pa=[Sa,Sa,wa,wa,Ea,Ea,Oa,Oa],Fa=[xa,Sa,Ca,wa,Ca,wa,Ca,wa],P={DISPLAY:ka[xa],TEXT:ka[Ca],SCRIPT:ka[Ta],SCRIPTSCRIPT:ka[Da]},Ia=[{name:`latin`,blocks:[[256,591],[768,879]]},{name:`cyrillic`,blocks:[[1024,1279]]},{name:`armenian`,blocks:[[1328,1423]]},{name:`brahmic`,blocks:[[2304,4255]]},{name:`georgian`,blocks:[[4256,4351]]},{name:`cjk`,blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:`hangul`,blocks:[[44032,55215]]}];function La(e){for(var t=0;t<Ia.length;t++)for(var n=Ia[t],r=0;r<n.blocks.length;r++){var i=n.blocks[r];if(e>=i[0]&&e<=i[1])return n.name}return null}var Ra=[];Ia.forEach(e=>e.blocks.forEach(e=>Ra.push(...e)));function za(e){for(var t=0;t<Ra.length;t+=2)if(e>=Ra[t]&&e<=Ra[t+1])return!0;return!1}var Ba=e=>e+` `+e,Va=80,Ha=function(e,t){return`M95,`+(622+e+t)+`
|
|
69
69
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
70
70
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
71
71
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
@@ -316,9 +316,9 @@ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
|
316
316
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
317
317
|
l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
318
318
|
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error(`Unknown stretchy delimiter.`)}};function $a(e){return`toText`in e}var eo=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e=``,t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>{if($a(e))return e.toText();throw Error(`Expected MathDomNode with toText, got `+e.constructor.name)}).join(``)}},to={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},no={ex:!0,em:!0,mu:!0},ro=function(e){return typeof e!=`string`&&(e=e.unit),e in to||e in no||e===`ex`},io=function(e,t){var n;if(e.unit in to)n=to[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit===`mu`)n=t.fontMetrics().cssEmPerMu;else{var r=t.style.isTight()?t.havingStyle(t.style.text()):t;if(e.unit===`ex`)n=r.fontMetrics().xHeight;else if(e.unit===`em`)n=r.fontMetrics().quad;else throw new N(`Invalid unit: '`+e.unit+`'`);r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},F=function(e){return+e.toFixed(4)+`em`},ao=function(e){return e.filter(e=>e).join(` `)},oo=function(e){var t=``;for(var n of Object.keys(e)){var r=e[n];r!==void 0&&(t+=sa(n)+`:`+r+`;`)}return t},so=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push(`mtight`);var r=t.getColor();r&&(this.style.color=r)}},co=function(e){var t=document.createElement(e);t.className=ao(this.classes),Object.assign(t.style,this.style);for(var n of Object.keys(this.attributes))t.setAttribute(n,this.attributes[n]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},lo=/[\s"'>/=\x00-\x1f]/,uo=function(e){var t=`<`+e;this.classes.length&&(t+=` class="`+ua(ao(this.classes))+`"`);var n=oo(this.style);n&&(t+=` style="`+ua(n)+`"`);for(var r of Object.keys(this.attributes)){if(lo.test(r))throw new N(`Invalid attribute name '`+r+`'`);t+=` `+r+`="`+ua(this.attributes[r])+`"`}t+=`>`;for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+=`</`+e+`>`,t},fo=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,so.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return co.call(this,`span`)}toMarkup(){return uo.call(this,`span`)}},po=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,so.call(this,t,r),this.children=n||[],this.setAttribute(`href`,e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return co.call(this,`a`)}toMarkup(){return uo.call(this,`a`)}},mo=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=[`mord`],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement(`img`);return e.src=this.src,e.alt=this.alt,e.className=`mord`,Object.assign(e.style,this.style),e}toMarkup(){var e=`<img src="`+ua(this.src)+`"`+(` alt="`+ua(this.alt)+`"`),t=oo(this.style);return t&&(e+=` style="`+ua(t)+`"`),e+=`'/>`,e}},ho={î:`ı̂`,ï:`ı̈`,í:`ı́`,ì:`ı̀`},go=class{constructor(e,t,n,r,i,a,o,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=i||0,this.width=a||0,this.classes=o||[],this.style=s||{},this.maxFontSize=0;var c=La(this.text.charCodeAt(0));c&&this.classes.push(c+`_fallback`),/[îïíì]/.test(this.text)&&(this.text=ho[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;return this.italic>0&&(t=document.createElement(`span`),t.style.marginRight=F(this.italic)),this.classes.length>0&&(t||=document.createElement(`span`),t.className=ao(this.classes)),Object.keys(this.style).length>0&&(t||=document.createElement(`span`),Object.assign(t.style,this.style)),t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t=`<span`;this.classes.length&&(e=!0,t+=` class="`,t+=ua(ao(this.classes)),t+=`"`);var n=``;this.italic>0&&(n+=`margin-right:`+F(this.italic)+`;`),n+=oo(this.style),n&&(e=!0,t+=` style="`+ua(n)+`"`);var r=ua(this.text);return e?(t+=`>`,t+=r,t+=`</span>`,t):r}},_o=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`svg`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e=`<svg xmlns="http://www.w3.org/2000/svg"`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+ua(this.attributes[t])+`"`;e+=`>`;for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+=`</svg>`,e}},vo=class{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`path`);return this.alternate?e.setAttribute(`d`,this.alternate):e.setAttribute(`d`,Za[this.pathName]),e}toMarkup(){return this.alternate?`<path d="`+ua(this.alternate)+`"/>`:`<path d="`+ua(Za[this.pathName])+`"/>`}},yo=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS(`http://www.w3.org/2000/svg`,`line`);for(var t of Object.keys(this.attributes))e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e=`<line`;for(var t of Object.keys(this.attributes))e+=` `+t+`="`+ua(this.attributes[t])+`"`;return e+=`/>`,e}};function bo(e){if(e instanceof go)return e;throw Error(`Expected symbolNode but got `+String(e)+`.`)}function xo(e){if(e instanceof fo)return e;throw Error(`Expected span<HtmlDomNode> but got `+String(e)+`.`)}var So=e=>e instanceof fo||e instanceof po||e instanceof eo,Co={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},wo={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},To={Å:`A`,Ð:`D`,Þ:`o`,å:`a`,ð:`d`,þ:`o`,А:`A`,Б:`B`,В:`B`,Г:`F`,Д:`A`,Е:`E`,Ж:`K`,З:`3`,И:`N`,Й:`N`,К:`K`,Л:`N`,М:`M`,Н:`H`,О:`O`,П:`N`,Р:`P`,С:`C`,Т:`T`,У:`y`,Ф:`O`,Х:`X`,Ц:`U`,Ч:`h`,Ш:`W`,Щ:`W`,Ъ:`B`,Ы:`X`,Ь:`B`,Э:`3`,Ю:`X`,Я:`R`,а:`a`,б:`b`,в:`a`,г:`r`,д:`y`,е:`e`,ж:`m`,з:`e`,и:`n`,й:`n`,к:`n`,л:`n`,м:`m`,н:`n`,о:`o`,п:`n`,р:`p`,с:`c`,т:`o`,у:`y`,ф:`b`,х:`x`,ц:`n`,ч:`n`,ш:`w`,щ:`w`,ъ:`a`,ы:`m`,ь:`a`,э:`e`,ю:`m`,я:`r`};function Eo(e,t){Co[e]=t}function Do(e,t,n){if(!Co[t])throw Error(`Font metrics not found for font: `+t+`.`);var r=e.charCodeAt(0),i=Co[t][r];if(!i&&e[0]in To&&(r=To[e[0]].charCodeAt(0),i=Co[t][r]),!i&&n===`text`&&za(r)&&(i=Co[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Oo={};function ko(e){var t=e>=5?0:e>=3?1:2;if(!Oo[t]){var n=Oo[t]={cssEmPerMu:wo.quad[t]/18};for(var r of Object.keys(wo))n[r]=wo[r][t]}return Oo[t]}var Ao={math:{},text:{}};function I(e,t,n,r,i,a){Ao[e][i]={font:t,group:n,replace:r},a&&r&&(Ao[e][r]=Ao[e][i])}var L=`math`,R=`text`,z=`main`,B=`ams`,jo=`accent-token`,V=`bin`,Mo=`close`,No=`inner`,H=`mathord`,Po=`op-token`,Fo=`open`,Io=`punct`,U=`rel`,Lo=`spacing`,W=`textord`;I(L,z,U,`≡`,`\\equiv`,!0),I(L,z,U,`≺`,`\\prec`,!0),I(L,z,U,`≻`,`\\succ`,!0),I(L,z,U,`∼`,`\\sim`,!0),I(L,z,U,`⊥`,`\\perp`),I(L,z,U,`⪯`,`\\preceq`,!0),I(L,z,U,`⪰`,`\\succeq`,!0),I(L,z,U,`≃`,`\\simeq`,!0),I(L,z,U,`∣`,`\\mid`,!0),I(L,z,U,`≪`,`\\ll`,!0),I(L,z,U,`≫`,`\\gg`,!0),I(L,z,U,`≍`,`\\asymp`,!0),I(L,z,U,`∥`,`\\parallel`),I(L,z,U,`⋈`,`\\bowtie`,!0),I(L,z,U,`⌣`,`\\smile`,!0),I(L,z,U,`⊑`,`\\sqsubseteq`,!0),I(L,z,U,`⊒`,`\\sqsupseteq`,!0),I(L,z,U,`≐`,`\\doteq`,!0),I(L,z,U,`⌢`,`\\frown`,!0),I(L,z,U,`∋`,`\\ni`,!0),I(L,z,U,`∝`,`\\propto`,!0),I(L,z,U,`⊢`,`\\vdash`,!0),I(L,z,U,`⊣`,`\\dashv`,!0),I(L,z,U,`∋`,`\\owns`),I(L,z,Io,`.`,`\\ldotp`),I(L,z,Io,`⋅`,`\\cdotp`),I(L,z,Io,`⋅`,`·`),I(R,z,W,`⋅`,`·`),I(L,z,W,`#`,`\\#`),I(R,z,W,`#`,`\\#`),I(L,z,W,`&`,`\\&`),I(R,z,W,`&`,`\\&`),I(L,z,W,`ℵ`,`\\aleph`,!0),I(L,z,W,`∀`,`\\forall`,!0),I(L,z,W,`ℏ`,`\\hbar`,!0),I(L,z,W,`∃`,`\\exists`,!0),I(L,z,W,`∇`,`\\nabla`,!0),I(L,z,W,`♭`,`\\flat`,!0),I(L,z,W,`ℓ`,`\\ell`,!0),I(L,z,W,`♮`,`\\natural`,!0),I(L,z,W,`♣`,`\\clubsuit`,!0),I(L,z,W,`℘`,`\\wp`,!0),I(L,z,W,`♯`,`\\sharp`,!0),I(L,z,W,`♢`,`\\diamondsuit`,!0),I(L,z,W,`ℜ`,`\\Re`,!0),I(L,z,W,`♡`,`\\heartsuit`,!0),I(L,z,W,`ℑ`,`\\Im`,!0),I(L,z,W,`♠`,`\\spadesuit`,!0),I(L,z,W,`§`,`\\S`,!0),I(R,z,W,`§`,`\\S`),I(L,z,W,`¶`,`\\P`,!0),I(R,z,W,`¶`,`\\P`),I(L,z,W,`†`,`\\dag`),I(R,z,W,`†`,`\\dag`),I(R,z,W,`†`,`\\textdagger`),I(L,z,W,`‡`,`\\ddag`),I(R,z,W,`‡`,`\\ddag`),I(R,z,W,`‡`,`\\textdaggerdbl`),I(L,z,Mo,`⎱`,`\\rmoustache`,!0),I(L,z,Fo,`⎰`,`\\lmoustache`,!0),I(L,z,Mo,`⟯`,`\\rgroup`,!0),I(L,z,Fo,`⟮`,`\\lgroup`,!0),I(L,z,V,`∓`,`\\mp`,!0),I(L,z,V,`⊖`,`\\ominus`,!0),I(L,z,V,`⊎`,`\\uplus`,!0),I(L,z,V,`⊓`,`\\sqcap`,!0),I(L,z,V,`∗`,`\\ast`),I(L,z,V,`⊔`,`\\sqcup`,!0),I(L,z,V,`◯`,`\\bigcirc`,!0),I(L,z,V,`∙`,`\\bullet`,!0),I(L,z,V,`‡`,`\\ddagger`),I(L,z,V,`≀`,`\\wr`,!0),I(L,z,V,`⨿`,`\\amalg`),I(L,z,V,`&`,`\\And`),I(L,z,U,`⟵`,`\\longleftarrow`,!0),I(L,z,U,`⇐`,`\\Leftarrow`,!0),I(L,z,U,`⟸`,`\\Longleftarrow`,!0),I(L,z,U,`⟶`,`\\longrightarrow`,!0),I(L,z,U,`⇒`,`\\Rightarrow`,!0),I(L,z,U,`⟹`,`\\Longrightarrow`,!0),I(L,z,U,`↔`,`\\leftrightarrow`,!0),I(L,z,U,`⟷`,`\\longleftrightarrow`,!0),I(L,z,U,`⇔`,`\\Leftrightarrow`,!0),I(L,z,U,`⟺`,`\\Longleftrightarrow`,!0),I(L,z,U,`↦`,`\\mapsto`,!0),I(L,z,U,`⟼`,`\\longmapsto`,!0),I(L,z,U,`↗`,`\\nearrow`,!0),I(L,z,U,`↩`,`\\hookleftarrow`,!0),I(L,z,U,`↪`,`\\hookrightarrow`,!0),I(L,z,U,`↘`,`\\searrow`,!0),I(L,z,U,`↼`,`\\leftharpoonup`,!0),I(L,z,U,`⇀`,`\\rightharpoonup`,!0),I(L,z,U,`↙`,`\\swarrow`,!0),I(L,z,U,`↽`,`\\leftharpoondown`,!0),I(L,z,U,`⇁`,`\\rightharpoondown`,!0),I(L,z,U,`↖`,`\\nwarrow`,!0),I(L,z,U,`⇌`,`\\rightleftharpoons`,!0),I(L,B,U,`≮`,`\\nless`,!0),I(L,B,U,``,`\\@nleqslant`),I(L,B,U,``,`\\@nleqq`),I(L,B,U,`⪇`,`\\lneq`,!0),I(L,B,U,`≨`,`\\lneqq`,!0),I(L,B,U,``,`\\@lvertneqq`),I(L,B,U,`⋦`,`\\lnsim`,!0),I(L,B,U,`⪉`,`\\lnapprox`,!0),I(L,B,U,`⊀`,`\\nprec`,!0),I(L,B,U,`⋠`,`\\npreceq`,!0),I(L,B,U,`⋨`,`\\precnsim`,!0),I(L,B,U,`⪹`,`\\precnapprox`,!0),I(L,B,U,`≁`,`\\nsim`,!0),I(L,B,U,``,`\\@nshortmid`),I(L,B,U,`∤`,`\\nmid`,!0),I(L,B,U,`⊬`,`\\nvdash`,!0),I(L,B,U,`⊭`,`\\nvDash`,!0),I(L,B,U,`⋪`,`\\ntriangleleft`),I(L,B,U,`⋬`,`\\ntrianglelefteq`,!0),I(L,B,U,`⊊`,`\\subsetneq`,!0),I(L,B,U,``,`\\@varsubsetneq`),I(L,B,U,`⫋`,`\\subsetneqq`,!0),I(L,B,U,``,`\\@varsubsetneqq`),I(L,B,U,`≯`,`\\ngtr`,!0),I(L,B,U,``,`\\@ngeqslant`),I(L,B,U,``,`\\@ngeqq`),I(L,B,U,`⪈`,`\\gneq`,!0),I(L,B,U,`≩`,`\\gneqq`,!0),I(L,B,U,``,`\\@gvertneqq`),I(L,B,U,`⋧`,`\\gnsim`,!0),I(L,B,U,`⪊`,`\\gnapprox`,!0),I(L,B,U,`⊁`,`\\nsucc`,!0),I(L,B,U,`⋡`,`\\nsucceq`,!0),I(L,B,U,`⋩`,`\\succnsim`,!0),I(L,B,U,`⪺`,`\\succnapprox`,!0),I(L,B,U,`≆`,`\\ncong`,!0),I(L,B,U,``,`\\@nshortparallel`),I(L,B,U,`∦`,`\\nparallel`,!0),I(L,B,U,`⊯`,`\\nVDash`,!0),I(L,B,U,`⋫`,`\\ntriangleright`),I(L,B,U,`⋭`,`\\ntrianglerighteq`,!0),I(L,B,U,``,`\\@nsupseteqq`),I(L,B,U,`⊋`,`\\supsetneq`,!0),I(L,B,U,``,`\\@varsupsetneq`),I(L,B,U,`⫌`,`\\supsetneqq`,!0),I(L,B,U,``,`\\@varsupsetneqq`),I(L,B,U,`⊮`,`\\nVdash`,!0),I(L,B,U,`⪵`,`\\precneqq`,!0),I(L,B,U,`⪶`,`\\succneqq`,!0),I(L,B,U,``,`\\@nsubseteqq`),I(L,B,V,`⊴`,`\\unlhd`),I(L,B,V,`⊵`,`\\unrhd`),I(L,B,U,`↚`,`\\nleftarrow`,!0),I(L,B,U,`↛`,`\\nrightarrow`,!0),I(L,B,U,`⇍`,`\\nLeftarrow`,!0),I(L,B,U,`⇏`,`\\nRightarrow`,!0),I(L,B,U,`↮`,`\\nleftrightarrow`,!0),I(L,B,U,`⇎`,`\\nLeftrightarrow`,!0),I(L,B,U,`△`,`\\vartriangle`),I(L,B,W,`ℏ`,`\\hslash`),I(L,B,W,`▽`,`\\triangledown`),I(L,B,W,`◊`,`\\lozenge`),I(L,B,W,`Ⓢ`,`\\circledS`),I(L,B,W,`®`,`\\circledR`),I(R,B,W,`®`,`\\circledR`),I(L,B,W,`∡`,`\\measuredangle`,!0),I(L,B,W,`∄`,`\\nexists`),I(L,B,W,`℧`,`\\mho`),I(L,B,W,`Ⅎ`,`\\Finv`,!0),I(L,B,W,`⅁`,`\\Game`,!0),I(L,B,W,`‵`,`\\backprime`),I(L,B,W,`▲`,`\\blacktriangle`),I(L,B,W,`▼`,`\\blacktriangledown`),I(L,B,W,`■`,`\\blacksquare`),I(L,B,W,`⧫`,`\\blacklozenge`),I(L,B,W,`★`,`\\bigstar`),I(L,B,W,`∢`,`\\sphericalangle`,!0),I(L,B,W,`∁`,`\\complement`,!0),I(L,B,W,`ð`,`\\eth`,!0),I(R,z,W,`ð`,`ð`),I(L,B,W,`╱`,`\\diagup`),I(L,B,W,`╲`,`\\diagdown`),I(L,B,W,`□`,`\\square`),I(L,B,W,`□`,`\\Box`),I(L,B,W,`◊`,`\\Diamond`),I(L,B,W,`¥`,`\\yen`,!0),I(R,B,W,`¥`,`\\yen`,!0),I(L,B,W,`✓`,`\\checkmark`,!0),I(R,B,W,`✓`,`\\checkmark`),I(L,B,W,`ℶ`,`\\beth`,!0),I(L,B,W,`ℸ`,`\\daleth`,!0),I(L,B,W,`ℷ`,`\\gimel`,!0),I(L,B,W,`ϝ`,`\\digamma`,!0),I(L,B,W,`ϰ`,`\\varkappa`),I(L,B,Fo,`┌`,`\\@ulcorner`,!0),I(L,B,Mo,`┐`,`\\@urcorner`,!0),I(L,B,Fo,`└`,`\\@llcorner`,!0),I(L,B,Mo,`┘`,`\\@lrcorner`,!0),I(L,B,U,`≦`,`\\leqq`,!0),I(L,B,U,`⩽`,`\\leqslant`,!0),I(L,B,U,`⪕`,`\\eqslantless`,!0),I(L,B,U,`≲`,`\\lesssim`,!0),I(L,B,U,`⪅`,`\\lessapprox`,!0),I(L,B,U,`≊`,`\\approxeq`,!0),I(L,B,V,`⋖`,`\\lessdot`),I(L,B,U,`⋘`,`\\lll`,!0),I(L,B,U,`≶`,`\\lessgtr`,!0),I(L,B,U,`⋚`,`\\lesseqgtr`,!0),I(L,B,U,`⪋`,`\\lesseqqgtr`,!0),I(L,B,U,`≑`,`\\doteqdot`),I(L,B,U,`≓`,`\\risingdotseq`,!0),I(L,B,U,`≒`,`\\fallingdotseq`,!0),I(L,B,U,`∽`,`\\backsim`,!0),I(L,B,U,`⋍`,`\\backsimeq`,!0),I(L,B,U,`⫅`,`\\subseteqq`,!0),I(L,B,U,`⋐`,`\\Subset`,!0),I(L,B,U,`⊏`,`\\sqsubset`,!0),I(L,B,U,`≼`,`\\preccurlyeq`,!0),I(L,B,U,`⋞`,`\\curlyeqprec`,!0),I(L,B,U,`≾`,`\\precsim`,!0),I(L,B,U,`⪷`,`\\precapprox`,!0),I(L,B,U,`⊲`,`\\vartriangleleft`),I(L,B,U,`⊴`,`\\trianglelefteq`),I(L,B,U,`⊨`,`\\vDash`,!0),I(L,B,U,`⊪`,`\\Vvdash`,!0),I(L,B,U,`⌣`,`\\smallsmile`),I(L,B,U,`⌢`,`\\smallfrown`),I(L,B,U,`≏`,`\\bumpeq`,!0),I(L,B,U,`≎`,`\\Bumpeq`,!0),I(L,B,U,`≧`,`\\geqq`,!0),I(L,B,U,`⩾`,`\\geqslant`,!0),I(L,B,U,`⪖`,`\\eqslantgtr`,!0),I(L,B,U,`≳`,`\\gtrsim`,!0),I(L,B,U,`⪆`,`\\gtrapprox`,!0),I(L,B,V,`⋗`,`\\gtrdot`),I(L,B,U,`⋙`,`\\ggg`,!0),I(L,B,U,`≷`,`\\gtrless`,!0),I(L,B,U,`⋛`,`\\gtreqless`,!0),I(L,B,U,`⪌`,`\\gtreqqless`,!0),I(L,B,U,`≖`,`\\eqcirc`,!0),I(L,B,U,`≗`,`\\circeq`,!0),I(L,B,U,`≜`,`\\triangleq`,!0),I(L,B,U,`∼`,`\\thicksim`),I(L,B,U,`≈`,`\\thickapprox`),I(L,B,U,`⫆`,`\\supseteqq`,!0),I(L,B,U,`⋑`,`\\Supset`,!0),I(L,B,U,`⊐`,`\\sqsupset`,!0),I(L,B,U,`≽`,`\\succcurlyeq`,!0),I(L,B,U,`⋟`,`\\curlyeqsucc`,!0),I(L,B,U,`≿`,`\\succsim`,!0),I(L,B,U,`⪸`,`\\succapprox`,!0),I(L,B,U,`⊳`,`\\vartriangleright`),I(L,B,U,`⊵`,`\\trianglerighteq`),I(L,B,U,`⊩`,`\\Vdash`,!0),I(L,B,U,`∣`,`\\shortmid`),I(L,B,U,`∥`,`\\shortparallel`),I(L,B,U,`≬`,`\\between`,!0),I(L,B,U,`⋔`,`\\pitchfork`,!0),I(L,B,U,`∝`,`\\varpropto`),I(L,B,U,`◀`,`\\blacktriangleleft`),I(L,B,U,`∴`,`\\therefore`,!0),I(L,B,U,`∍`,`\\backepsilon`),I(L,B,U,`▶`,`\\blacktriangleright`),I(L,B,U,`∵`,`\\because`,!0),I(L,B,U,`⋘`,`\\llless`),I(L,B,U,`⋙`,`\\gggtr`),I(L,B,V,`⊲`,`\\lhd`),I(L,B,V,`⊳`,`\\rhd`),I(L,B,U,`≂`,`\\eqsim`,!0),I(L,z,U,`⋈`,`\\Join`),I(L,B,U,`≑`,`\\Doteq`,!0),I(L,B,V,`∔`,`\\dotplus`,!0),I(L,B,V,`∖`,`\\smallsetminus`),I(L,B,V,`⋒`,`\\Cap`,!0),I(L,B,V,`⋓`,`\\Cup`,!0),I(L,B,V,`⩞`,`\\doublebarwedge`,!0),I(L,B,V,`⊟`,`\\boxminus`,!0),I(L,B,V,`⊞`,`\\boxplus`,!0),I(L,B,V,`⋇`,`\\divideontimes`,!0),I(L,B,V,`⋉`,`\\ltimes`,!0),I(L,B,V,`⋊`,`\\rtimes`,!0),I(L,B,V,`⋋`,`\\leftthreetimes`,!0),I(L,B,V,`⋌`,`\\rightthreetimes`,!0),I(L,B,V,`⋏`,`\\curlywedge`,!0),I(L,B,V,`⋎`,`\\curlyvee`,!0),I(L,B,V,`⊝`,`\\circleddash`,!0),I(L,B,V,`⊛`,`\\circledast`,!0),I(L,B,V,`⋅`,`\\centerdot`),I(L,B,V,`⊺`,`\\intercal`,!0),I(L,B,V,`⋒`,`\\doublecap`),I(L,B,V,`⋓`,`\\doublecup`),I(L,B,V,`⊠`,`\\boxtimes`,!0),I(L,B,U,`⇢`,`\\dashrightarrow`,!0),I(L,B,U,`⇠`,`\\dashleftarrow`,!0),I(L,B,U,`⇇`,`\\leftleftarrows`,!0),I(L,B,U,`⇆`,`\\leftrightarrows`,!0),I(L,B,U,`⇚`,`\\Lleftarrow`,!0),I(L,B,U,`↞`,`\\twoheadleftarrow`,!0),I(L,B,U,`↢`,`\\leftarrowtail`,!0),I(L,B,U,`↫`,`\\looparrowleft`,!0),I(L,B,U,`⇋`,`\\leftrightharpoons`,!0),I(L,B,U,`↶`,`\\curvearrowleft`,!0),I(L,B,U,`↺`,`\\circlearrowleft`,!0),I(L,B,U,`↰`,`\\Lsh`,!0),I(L,B,U,`⇈`,`\\upuparrows`,!0),I(L,B,U,`↿`,`\\upharpoonleft`,!0),I(L,B,U,`⇃`,`\\downharpoonleft`,!0),I(L,z,U,`⊶`,`\\origof`,!0),I(L,z,U,`⊷`,`\\imageof`,!0),I(L,B,U,`⊸`,`\\multimap`,!0),I(L,B,U,`↭`,`\\leftrightsquigarrow`,!0),I(L,B,U,`⇉`,`\\rightrightarrows`,!0),I(L,B,U,`⇄`,`\\rightleftarrows`,!0),I(L,B,U,`↠`,`\\twoheadrightarrow`,!0),I(L,B,U,`↣`,`\\rightarrowtail`,!0),I(L,B,U,`↬`,`\\looparrowright`,!0),I(L,B,U,`↷`,`\\curvearrowright`,!0),I(L,B,U,`↻`,`\\circlearrowright`,!0),I(L,B,U,`↱`,`\\Rsh`,!0),I(L,B,U,`⇊`,`\\downdownarrows`,!0),I(L,B,U,`↾`,`\\upharpoonright`,!0),I(L,B,U,`⇂`,`\\downharpoonright`,!0),I(L,B,U,`⇝`,`\\rightsquigarrow`,!0),I(L,B,U,`⇝`,`\\leadsto`),I(L,B,U,`⇛`,`\\Rrightarrow`,!0),I(L,B,U,`↾`,`\\restriction`),I(L,z,W,`‘`,"`"),I(L,z,W,`$`,`\\$`),I(R,z,W,`$`,`\\$`),I(R,z,W,`$`,`\\textdollar`),I(L,z,W,`%`,`\\%`),I(R,z,W,`%`,`\\%`),I(L,z,W,`_`,`\\_`),I(R,z,W,`_`,`\\_`),I(R,z,W,`_`,`\\textunderscore`),I(L,z,W,`∠`,`\\angle`,!0),I(L,z,W,`∞`,`\\infty`,!0),I(L,z,W,`′`,`\\prime`),I(L,z,W,`△`,`\\triangle`),I(L,z,W,`Γ`,`\\Gamma`,!0),I(L,z,W,`Δ`,`\\Delta`,!0),I(L,z,W,`Θ`,`\\Theta`,!0),I(L,z,W,`Λ`,`\\Lambda`,!0),I(L,z,W,`Ξ`,`\\Xi`,!0),I(L,z,W,`Π`,`\\Pi`,!0),I(L,z,W,`Σ`,`\\Sigma`,!0),I(L,z,W,`Υ`,`\\Upsilon`,!0),I(L,z,W,`Φ`,`\\Phi`,!0),I(L,z,W,`Ψ`,`\\Psi`,!0),I(L,z,W,`Ω`,`\\Omega`,!0),I(L,z,W,`A`,`Α`),I(L,z,W,`B`,`Β`),I(L,z,W,`E`,`Ε`),I(L,z,W,`Z`,`Ζ`),I(L,z,W,`H`,`Η`),I(L,z,W,`I`,`Ι`),I(L,z,W,`K`,`Κ`),I(L,z,W,`M`,`Μ`),I(L,z,W,`N`,`Ν`),I(L,z,W,`O`,`Ο`),I(L,z,W,`P`,`Ρ`),I(L,z,W,`T`,`Τ`),I(L,z,W,`X`,`Χ`),I(L,z,W,`¬`,`\\neg`,!0),I(L,z,W,`¬`,`\\lnot`),I(L,z,W,`⊤`,`\\top`),I(L,z,W,`⊥`,`\\bot`),I(L,z,W,`∅`,`\\emptyset`),I(L,B,W,`∅`,`\\varnothing`),I(L,z,H,`α`,`\\alpha`,!0),I(L,z,H,`β`,`\\beta`,!0),I(L,z,H,`γ`,`\\gamma`,!0),I(L,z,H,`δ`,`\\delta`,!0),I(L,z,H,`ϵ`,`\\epsilon`,!0),I(L,z,H,`ζ`,`\\zeta`,!0),I(L,z,H,`η`,`\\eta`,!0),I(L,z,H,`θ`,`\\theta`,!0),I(L,z,H,`ι`,`\\iota`,!0),I(L,z,H,`κ`,`\\kappa`,!0),I(L,z,H,`λ`,`\\lambda`,!0),I(L,z,H,`μ`,`\\mu`,!0),I(L,z,H,`ν`,`\\nu`,!0),I(L,z,H,`ξ`,`\\xi`,!0),I(L,z,H,`ο`,`\\omicron`,!0),I(L,z,H,`π`,`\\pi`,!0),I(L,z,H,`ρ`,`\\rho`,!0),I(L,z,H,`σ`,`\\sigma`,!0),I(L,z,H,`τ`,`\\tau`,!0),I(L,z,H,`υ`,`\\upsilon`,!0),I(L,z,H,`ϕ`,`\\phi`,!0),I(L,z,H,`χ`,`\\chi`,!0),I(L,z,H,`ψ`,`\\psi`,!0),I(L,z,H,`ω`,`\\omega`,!0),I(L,z,H,`ε`,`\\varepsilon`,!0),I(L,z,H,`ϑ`,`\\vartheta`,!0),I(L,z,H,`ϖ`,`\\varpi`,!0),I(L,z,H,`ϱ`,`\\varrho`,!0),I(L,z,H,`ς`,`\\varsigma`,!0),I(L,z,H,`φ`,`\\varphi`,!0),I(L,z,V,`∗`,`*`,!0),I(L,z,V,`+`,`+`),I(L,z,V,`−`,`-`,!0),I(L,z,V,`⋅`,`\\cdot`,!0),I(L,z,V,`∘`,`\\circ`,!0),I(L,z,V,`÷`,`\\div`,!0),I(L,z,V,`±`,`\\pm`,!0),I(L,z,V,`×`,`\\times`,!0),I(L,z,V,`∩`,`\\cap`,!0),I(L,z,V,`∪`,`\\cup`,!0),I(L,z,V,`∖`,`\\setminus`,!0),I(L,z,V,`∧`,`\\land`),I(L,z,V,`∨`,`\\lor`),I(L,z,V,`∧`,`\\wedge`,!0),I(L,z,V,`∨`,`\\vee`,!0),I(L,z,W,`√`,`\\surd`),I(L,z,Fo,`⟨`,`\\langle`,!0),I(L,z,Fo,`∣`,`\\lvert`),I(L,z,Fo,`∥`,`\\lVert`),I(L,z,Mo,`?`,`?`),I(L,z,Mo,`!`,`!`),I(L,z,Mo,`⟩`,`\\rangle`,!0),I(L,z,Mo,`∣`,`\\rvert`),I(L,z,Mo,`∥`,`\\rVert`),I(L,z,U,`=`,`=`),I(L,z,U,`:`,`:`),I(L,z,U,`≈`,`\\approx`,!0),I(L,z,U,`≅`,`\\cong`,!0),I(L,z,U,`≥`,`\\ge`),I(L,z,U,`≥`,`\\geq`,!0),I(L,z,U,`←`,`\\gets`),I(L,z,U,`>`,`\\gt`,!0),I(L,z,U,`∈`,`\\in`,!0),I(L,z,U,``,`\\@not`),I(L,z,U,`⊂`,`\\subset`,!0),I(L,z,U,`⊃`,`\\supset`,!0),I(L,z,U,`⊆`,`\\subseteq`,!0),I(L,z,U,`⊇`,`\\supseteq`,!0),I(L,B,U,`⊈`,`\\nsubseteq`,!0),I(L,B,U,`⊉`,`\\nsupseteq`,!0),I(L,z,U,`⊨`,`\\models`),I(L,z,U,`←`,`\\leftarrow`,!0),I(L,z,U,`≤`,`\\le`),I(L,z,U,`≤`,`\\leq`,!0),I(L,z,U,`<`,`\\lt`,!0),I(L,z,U,`→`,`\\rightarrow`,!0),I(L,z,U,`→`,`\\to`),I(L,B,U,`≱`,`\\ngeq`,!0),I(L,B,U,`≰`,`\\nleq`,!0),I(L,z,Lo,`\xA0`,`\\ `),I(L,z,Lo,`\xA0`,`\\space`),I(L,z,Lo,`\xA0`,`\\nobreakspace`),I(R,z,Lo,`\xA0`,`\\ `),I(R,z,Lo,`\xA0`,` `),I(R,z,Lo,`\xA0`,`\\space`),I(R,z,Lo,`\xA0`,`\\nobreakspace`),I(L,z,Lo,``,`\\nobreak`),I(L,z,Lo,``,`\\allowbreak`),I(L,z,Io,`,`,`,`),I(L,z,Io,`;`,`;`),I(L,B,V,`⊼`,`\\barwedge`,!0),I(L,B,V,`⊻`,`\\veebar`,!0),I(L,z,V,`⊙`,`\\odot`,!0),I(L,z,V,`⊕`,`\\oplus`,!0),I(L,z,V,`⊗`,`\\otimes`,!0),I(L,z,W,`∂`,`\\partial`,!0),I(L,z,V,`⊘`,`\\oslash`,!0),I(L,B,V,`⊚`,`\\circledcirc`,!0),I(L,B,V,`⊡`,`\\boxdot`,!0),I(L,z,V,`△`,`\\bigtriangleup`),I(L,z,V,`▽`,`\\bigtriangledown`),I(L,z,V,`†`,`\\dagger`),I(L,z,V,`⋄`,`\\diamond`),I(L,z,V,`⋆`,`\\star`),I(L,z,V,`◃`,`\\triangleleft`),I(L,z,V,`▹`,`\\triangleright`),I(L,z,Fo,`{`,`\\{`),I(R,z,W,`{`,`\\{`),I(R,z,W,`{`,`\\textbraceleft`),I(L,z,Mo,`}`,`\\}`),I(R,z,W,`}`,`\\}`),I(R,z,W,`}`,`\\textbraceright`),I(L,z,Fo,`{`,`\\lbrace`),I(L,z,Mo,`}`,`\\rbrace`),I(L,z,Fo,`[`,`\\lbrack`,!0),I(R,z,W,`[`,`\\lbrack`,!0),I(L,z,Mo,`]`,`\\rbrack`,!0),I(R,z,W,`]`,`\\rbrack`,!0),I(L,z,Fo,`(`,`\\lparen`,!0),I(L,z,Mo,`)`,`\\rparen`,!0),I(R,z,W,`<`,`\\textless`,!0),I(R,z,W,`>`,`\\textgreater`,!0),I(L,z,Fo,`⌊`,`\\lfloor`,!0),I(L,z,Mo,`⌋`,`\\rfloor`,!0),I(L,z,Fo,`⌈`,`\\lceil`,!0),I(L,z,Mo,`⌉`,`\\rceil`,!0),I(L,z,W,`\\`,`\\backslash`),I(L,z,W,`∣`,`|`),I(L,z,W,`∣`,`\\vert`),I(R,z,W,`|`,`\\textbar`,!0),I(L,z,W,`∥`,`\\|`),I(L,z,W,`∥`,`\\Vert`),I(R,z,W,`∥`,`\\textbardbl`),I(R,z,W,`~`,`\\textasciitilde`),I(R,z,W,`\\`,`\\textbackslash`),I(R,z,W,`^`,`\\textasciicircum`),I(L,z,U,`↑`,`\\uparrow`,!0),I(L,z,U,`⇑`,`\\Uparrow`,!0),I(L,z,U,`↓`,`\\downarrow`,!0),I(L,z,U,`⇓`,`\\Downarrow`,!0),I(L,z,U,`↕`,`\\updownarrow`,!0),I(L,z,U,`⇕`,`\\Updownarrow`,!0),I(L,z,Po,`∐`,`\\coprod`),I(L,z,Po,`⋁`,`\\bigvee`),I(L,z,Po,`⋀`,`\\bigwedge`),I(L,z,Po,`⨄`,`\\biguplus`),I(L,z,Po,`⋂`,`\\bigcap`),I(L,z,Po,`⋃`,`\\bigcup`),I(L,z,Po,`∫`,`\\int`),I(L,z,Po,`∫`,`\\intop`),I(L,z,Po,`∬`,`\\iint`),I(L,z,Po,`∭`,`\\iiint`),I(L,z,Po,`∏`,`\\prod`),I(L,z,Po,`∑`,`\\sum`),I(L,z,Po,`⨂`,`\\bigotimes`),I(L,z,Po,`⨁`,`\\bigoplus`),I(L,z,Po,`⨀`,`\\bigodot`),I(L,z,Po,`∮`,`\\oint`),I(L,z,Po,`∯`,`\\oiint`),I(L,z,Po,`∰`,`\\oiiint`),I(L,z,Po,`⨆`,`\\bigsqcup`),I(L,z,Po,`∫`,`\\smallint`),I(R,z,No,`…`,`\\textellipsis`),I(L,z,No,`…`,`\\mathellipsis`),I(R,z,No,`…`,`\\ldots`,!0),I(L,z,No,`…`,`\\ldots`,!0),I(L,z,No,`⋯`,`\\@cdots`,!0),I(L,z,No,`⋱`,`\\ddots`,!0),I(L,z,W,`⋮`,`\\varvdots`),I(R,z,W,`⋮`,`\\varvdots`),I(L,z,jo,`ˊ`,`\\acute`),I(L,z,jo,`ˋ`,`\\grave`),I(L,z,jo,`¨`,`\\ddot`),I(L,z,jo,`~`,`\\tilde`),I(L,z,jo,`ˉ`,`\\bar`),I(L,z,jo,`˘`,`\\breve`),I(L,z,jo,`ˇ`,`\\check`),I(L,z,jo,`^`,`\\hat`),I(L,z,jo,`⃗`,`\\vec`),I(L,z,jo,`˙`,`\\dot`),I(L,z,jo,`˚`,`\\mathring`),I(L,z,H,``,`\\@imath`),I(L,z,H,``,`\\@jmath`),I(L,z,W,`ı`,`ı`),I(L,z,W,`ȷ`,`ȷ`),I(R,z,W,`ı`,`\\i`,!0),I(R,z,W,`ȷ`,`\\j`,!0),I(R,z,W,`ß`,`\\ss`,!0),I(R,z,W,`æ`,`\\ae`,!0),I(R,z,W,`œ`,`\\oe`,!0),I(R,z,W,`ø`,`\\o`,!0),I(R,z,W,`Æ`,`\\AE`,!0),I(R,z,W,`Œ`,`\\OE`,!0),I(R,z,W,`Ø`,`\\O`,!0),I(R,z,jo,`ˊ`,`\\'`),I(R,z,jo,`ˋ`,"\\`"),I(R,z,jo,`ˆ`,`\\^`),I(R,z,jo,`˜`,`\\~`),I(R,z,jo,`ˉ`,`\\=`),I(R,z,jo,`˘`,`\\u`),I(R,z,jo,`˙`,`\\.`),I(R,z,jo,`¸`,`\\c`),I(R,z,jo,`˚`,`\\r`),I(R,z,jo,`ˇ`,`\\v`),I(R,z,jo,`¨`,`\\"`),I(R,z,jo,`˝`,`\\H`),I(R,z,jo,`◯`,`\\textcircled`);var Ro={"--":!0,"---":!0,"``":!0,"''":!0};I(R,z,W,`–`,`--`,!0),I(R,z,W,`–`,`\\textendash`),I(R,z,W,`—`,`---`,!0),I(R,z,W,`—`,`\\textemdash`),I(R,z,W,`‘`,"`",!0),I(R,z,W,`‘`,`\\textquoteleft`),I(R,z,W,`’`,`'`,!0),I(R,z,W,`’`,`\\textquoteright`),I(R,z,W,`“`,"``",!0),I(R,z,W,`“`,`\\textquotedblleft`),I(R,z,W,`”`,`''`,!0),I(R,z,W,`”`,`\\textquotedblright`),I(L,z,W,`°`,`\\degree`,!0),I(R,z,W,`°`,`\\degree`),I(R,z,W,`°`,`\\textdegree`,!0),I(L,z,W,`£`,`\\pounds`),I(L,z,W,`£`,`\\mathsterling`,!0),I(R,z,W,`£`,`\\pounds`),I(R,z,W,`£`,`\\textsterling`,!0),I(L,B,W,`✠`,`\\maltese`),I(R,B,W,`✠`,`\\maltese`);for(var zo=`0123456789/@."`,Bo=0;Bo<zo.length;Bo++){var Vo=zo.charAt(Bo);I(L,z,W,Vo,Vo)}for(var Ho=`0123456789!@*()-=+";:?/.,`,Uo=0;Uo<Ho.length;Uo++){var Wo=Ho.charAt(Uo);I(R,z,W,Wo,Wo)}for(var Go=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz`,Ko=0;Ko<Go.length;Ko++){var qo=Go.charAt(Ko);I(L,z,H,qo,qo),I(R,z,W,qo,qo)}I(L,B,W,`C`,`ℂ`),I(R,B,W,`C`,`ℂ`),I(L,B,W,`H`,`ℍ`),I(R,B,W,`H`,`ℍ`),I(L,B,W,`N`,`ℕ`),I(R,B,W,`N`,`ℕ`),I(L,B,W,`P`,`ℙ`),I(R,B,W,`P`,`ℙ`),I(L,B,W,`Q`,`ℚ`),I(R,B,W,`Q`,`ℚ`),I(L,B,W,`R`,`ℝ`),I(R,B,W,`R`,`ℝ`),I(L,B,W,`Z`,`ℤ`),I(R,B,W,`Z`,`ℤ`),I(L,z,H,`h`,`ℎ`),I(R,z,H,`h`,`ℎ`);for(var G,Jo=0;Jo<Go.length;Jo++){var Yo=Go.charAt(Jo);G=String.fromCharCode(55349,56320+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),G=String.fromCharCode(55349,56372+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),G=String.fromCharCode(55349,56424+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),G=String.fromCharCode(55349,56580+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),G=String.fromCharCode(55349,56684+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),G=String.fromCharCode(55349,56736+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),G=String.fromCharCode(55349,56788+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),G=String.fromCharCode(55349,56840+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),G=String.fromCharCode(55349,56944+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),Jo<26&&(G=String.fromCharCode(55349,56632+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G),G=String.fromCharCode(55349,56476+Jo),I(L,z,H,Yo,G),I(R,z,W,Yo,G))}G=String.fromCharCode(55349,56668),I(L,z,H,`k`,G),I(R,z,W,`k`,G);for(var Xo=0;Xo<10;Xo++){var Zo=Xo.toString();G=String.fromCharCode(55349,57294+Xo),I(L,z,H,Zo,G),I(R,z,W,Zo,G),G=String.fromCharCode(55349,57314+Xo),I(L,z,H,Zo,G),I(R,z,W,Zo,G),G=String.fromCharCode(55349,57324+Xo),I(L,z,H,Zo,G),I(R,z,W,Zo,G),G=String.fromCharCode(55349,57334+Xo),I(L,z,H,Zo,G),I(R,z,W,Zo,G)}for(var Qo=`ÐÞþ`,$o=0;$o<Qo.length;$o++){var es=Qo.charAt($o);I(L,z,H,es,es),I(R,z,W,es,es)}var ts={mathClass:`mathbf`,textClass:`textbf`,font:`Main-Bold`},ns={mathClass:`mathnormal`,textClass:`textit`,font:`Math-Italic`},rs={mathClass:`boldsymbol`,textClass:`boldsymbol`,font:`Main-BoldItalic`},is={mathClass:`mathscr`,textClass:`textscr`,font:`Script-Regular`},as={mathClass:``,textClass:``,font:``},os={mathClass:`mathfrak`,textClass:`textfrak`,font:`Fraktur-Regular`},ss={mathClass:`mathbb`,textClass:`textbb`,font:`AMS-Regular`},cs={mathClass:`mathboldfrak`,textClass:`textboldfrak`,font:`Fraktur-Regular`},ls={mathClass:`mathsf`,textClass:`textsf`,font:`SansSerif-Regular`},us={mathClass:`mathboldsf`,textClass:`textboldsf`,font:`SansSerif-Bold`},ds={mathClass:`mathitsf`,textClass:`textitsf`,font:`SansSerif-Italic`},fs={mathClass:`mathtt`,textClass:`texttt`,font:`Typewriter-Regular`},ps=[ts,ts,ns,ns,rs,rs,is,as,as,as,os,os,ss,ss,cs,cs,ls,ls,us,us,ds,ds,as,as,fs,fs],ms=[ts,as,ls,us,fs],hs=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),r=(t-55296)*1024+(n-56320)+65536;if(119808<=r&&r<120484)return ps[Math.floor((r-119808)/26)];if(120782<=r&&r<=120831)return ms[Math.floor((r-120782)/10)];if(r===120485||r===120486)return ps[0];if(120486<r&&r<120782)return as;throw new N(`Unsupported character: `+e)};function gs(e){var t=e.strict,n=e.errorCode,r=e.errorMsg,i=e.token,a=e.report,o=t;if(typeof t==`function`)if(a)o=t(n,r,i);else try{o=t(n,r,i)}catch{o=`error`}switch(o){case!0:case`error`:if(a)throw new N(`LaTeX-incompatible input and strict mode is set to 'error': `+(r+` [`+n+`]`),i);return!0;case!1:case`ignore`:if(!a)return!1;break;default:if(typeof console<`u`&&console.warn(`LaTeX-incompatible input and strict mode is set to 'warn': `+(r+` [`+n+`]`)),!a)return!1;break}}var _s=function(e,t,n){if(Ao[n][e]){var r=Ao[n][e].replace;r&&(e=r)}return{value:e,metrics:Do(e,t,n)}},vs=function(e,t,n,r,i){var a=_s(e,t,n),o=a.metrics;e=a.value;var s;if(o){var c=o.italic;(n===`text`||r&&r.font===`mathit`)&&(c=0),s=new go(e,o.height,o.depth,c,o.skew,o.width,i)}else gs({strict:r.strict,errorCode:`symbolNotInFont`,errorMsg:`No character metrics for '`+e+`' in style '`+t+`' and mode '`+n+`'`,report:!0}),s=new go(e,0,0,0,0,0,i);s.maxFontSize=r.sizeMultiplier,r.style.isTight()&&s.classes.push(`mtight`);var l=r.getColor();return l&&(s.style.color=l),s},ys=function(e,t,n,r){return r===void 0&&(r=[]),n.font===`boldsymbol`&&_s(e,`Main-Bold`,t).metrics?vs(e,`Main-Bold`,t,n,r.concat([`mathbf`])):e===`\\`||Ao[t][e].font===`main`?vs(e,`Main-Regular`,t,n,r):vs(e,`AMS-Regular`,t,n,r.concat([`amsrm`]))},bs=function(e,t,n){return n!==`textord`&&_s(e,`Math-BoldItalic`,t).metrics?{fontName:`Math-BoldItalic`,fontClass:`boldsymbol`}:{fontName:`Main-Bold`,fontClass:`mathbf`}},xs=function(e,t){var n=e.type===`mathord`?`mathord`:`textord`,r=e.mode,i=e.text,a=[`mord`],o=t.font,s=t.fontFamily,c=t.fontWeight,l=t.fontShape,u=r===`math`||r===`text`&&!!o,d=u?o:s,f=``,p=``;if(i.charCodeAt(0)===55349){var m=hs(i);f=m.font,p=m[r+`Class`]}if(f)return vs(i,f,r,t,a.concat(p));if(d){var h,g;if(d===`boldsymbol`){var _=bs(i,r,n);h=_.fontName,g=[_.fontClass]}else u?(h=Ns[o].fontName,g=[o]):(h=Ms(s,c,l),g=[s,c,l]);if(_s(i,h,r).metrics)return vs(i,h,r,t,a.concat(g));if(Object.prototype.hasOwnProperty.call(Ro,i)&&h.slice(0,10)===`Typewriter`){for(var v=[],y=0;y<i.length;y++)v.push(vs(i[y],h,r,t,a.concat(g)));return Os(v)}}if(n===`mathord`)return vs(i,`Math-Italic`,r,t,a.concat([`mathnormal`]));if(n===`textord`){var b=Ao[r][i]&&Ao[r][i].font;if(b===`ams`)return vs(i,Ms(`amsrm`,c,l),r,t,a.concat(`amsrm`,c,l));if(b===`main`||!b)return vs(i,Ms(`textrm`,c,l),r,t,a.concat(c,l));var x=Ms(b,c,l);return vs(i,x,r,t,a.concat(x,c,l))}else throw Error(`unexpected type: `+n+` in makeOrd`)},Ss=(e,t)=>{if(ao(e.classes)!==ao(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass(`mathnormal`))return!1;if(e.classes.length===1){var n=e.classes[0];if(n===`mbin`||n===`mord`)return!1}for(var r of Object.keys(e.style))if(e.style[r]!==t.style[r])return!1;for(var i of Object.keys(t.style))if(e.style[i]!==t.style[i])return!1;return!0},Cs=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof go&&r instanceof go&&Ss(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e},ws=function(e){for(var t=0,n=0,r=0,i=0;i<e.children.length;i++){var a=e.children[i];a.height>t&&(t=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>r&&(r=a.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},K=function(e,t,n,r){var i=new fo(e,t,n,r);return ws(i),i},Ts=(e,t,n,r)=>new fo(e,t,n,r),Es=function(e,t,n){var r=K([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=F(r.height),r.maxFontSize=1,r},Ds=function(e,t,n,r){var i=new po(e,t,n,r);return ws(i),i},Os=function(e){var t=new eo(e);return ws(t),t},ks=function(e,t){return e instanceof eo?K([],[e],t):e},As=function(e){if(e.positionType===`individualShift`){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,i=r,a=1;a<t.length;a++){var o=-t[a].shift-i-t[a].elem.depth,s=o-(t[a-1].elem.height+t[a-1].elem.depth);i+=o,n.push({type:`kern`,size:s}),n.push(t[a])}return{children:n,depth:r}}var c;if(e.positionType===`top`){for(var l=e.positionData,u=0;u<e.children.length;u++){var d=e.children[u];l-=d.type===`kern`?d.size:d.elem.height+d.elem.depth}c=l}else if(e.positionType===`bottom`)c=-e.positionData;else{var f=e.children[0];if(f.type!==`elem`)throw Error(`First child must have type "elem".`);if(e.positionType===`shift`)c=-f.elem.depth-e.positionData;else if(e.positionType===`firstBaseline`)c=-f.elem.depth;else throw Error(`Invalid positionType `+e.positionType+`.`)}return{children:e.children,depth:c}},q=function(e,t){for(var n=As(e),r=n.children,i=n.depth,a=0,o=0;o<r.length;o++){var s=r[o];if(s.type===`elem`){var c=s.elem;a=Math.max(a,c.maxFontSize,c.height)}}a+=2;var l=K([`pstrut`],[]);l.style.height=F(a);for(var u=[],d=i,f=i,p=i,m=0;m<r.length;m++){var h=r[m];if(h.type===`kern`)p+=h.size;else{var g=h.elem,_=h.wrapperClasses||[],v=h.wrapperStyle||{},y=K(_,[l,g],void 0,v);y.style.top=F(-a-p-g.depth),h.marginLeft&&(y.style.marginLeft=h.marginLeft),h.marginRight&&(y.style.marginRight=h.marginRight),u.push(y),p+=g.height+g.depth}d=Math.min(d,p),f=Math.max(f,p)}var b=K([`vlist`],u);b.style.height=F(f);var x;if(d<0){var S=K([`vlist`],[K([],[])]);S.style.height=F(-d),x=[K([`vlist-r`],[b,K([`vlist-s`],[new go(``)])]),K([`vlist-r`],[S])]}else x=[K([`vlist-r`],[b])];var C=K([`vlist-t`],x);return x.length===2&&C.classes.push(`vlist-t2`),C.height=f,C.depth=-d,C},js=(e,t)=>{var n=K([`mspace`],[],t),r=io(e,t);return n.style.marginRight=F(r),n},Ms=(e,t,n)=>{var r,i;switch(e){case`amsrm`:r=`AMS`;break;case`textrm`:r=`Main`;break;case`textsf`:r=`SansSerif`;break;case`texttt`:r=`Typewriter`;break;default:r=e}return i=t===`textbf`&&n===`textit`?`BoldItalic`:t===`textbf`?`Bold`:n===`textit`?`Italic`:`Regular`,r+`-`+i},Ns={mathbf:{variant:`bold`,fontName:`Main-Bold`},mathrm:{variant:`normal`,fontName:`Main-Regular`},textit:{variant:`italic`,fontName:`Main-Italic`},mathit:{variant:`italic`,fontName:`Main-Italic`},mathnormal:{variant:`italic`,fontName:`Math-Italic`},mathsfit:{variant:`sans-serif-italic`,fontName:`SansSerif-Italic`},mathbb:{variant:`double-struck`,fontName:`AMS-Regular`},mathcal:{variant:`script`,fontName:`Caligraphic-Regular`},mathfrak:{variant:`fraktur`,fontName:`Fraktur-Regular`},mathscr:{variant:`script`,fontName:`Script-Regular`},mathsf:{variant:`sans-serif`,fontName:`SansSerif-Regular`},mathtt:{variant:`monospace`,fontName:`Typewriter-Regular`}},Ps={vec:[`vec`,.471,.714],oiintSize1:[`oiintSize1`,.957,.499],oiintSize2:[`oiintSize2`,1.472,.659],oiiintSize1:[`oiiintSize1`,1.304,.499],oiiintSize2:[`oiiintSize2`,1.98,.659]},Fs=function(e,t){var n=Ps[e],r=n[0],i=n[1],a=n[2],o=Ts([`katex-overlay`],[new _o([new vo(r)],{width:F(i),height:F(a),style:`width:`+F(i),viewBox:`0 0 `+1e3*i+` `+1e3*a,preserveAspectRatio:`xMinYMin`})],t);return o.height=a,o.style.height=F(a),o.style.width=F(i),o},Is={number:3,unit:`mu`},Ls={number:4,unit:`mu`},Rs={number:5,unit:`mu`},zs={mord:{mop:Is,mbin:Ls,mrel:Rs,minner:Is},mop:{mord:Is,mop:Is,mrel:Rs,minner:Is},mbin:{mord:Ls,mop:Ls,mopen:Ls,minner:Ls},mrel:{mord:Rs,mop:Rs,mopen:Rs,minner:Rs},mopen:{},mclose:{mop:Is,mbin:Ls,mrel:Rs,minner:Is},mpunct:{mord:Is,mop:Is,mrel:Rs,mopen:Is,mclose:Is,mpunct:Is,minner:Is},minner:{mord:Is,mop:Is,mbin:Ls,mrel:Rs,mopen:Is,mpunct:Is,minner:Is}},Bs={mord:{mop:Is},mop:{mord:Is,mop:Is},mbin:{},mrel:{},mopen:{},mclose:{mop:Is},mpunct:{},minner:{mop:Is}},Vs={},Hs={},Us={};function J(e){for(var t=e.type,n=e.names,r=e.htmlBuilder,i=e.mathmlBuilder,a=0;a<n.length;++a)Vs[n[a]]=e;t&&(r&&(Hs[t]=r),i&&(Us[t]=i))}function Ws(e){var t=e.type,n=e.htmlBuilder,r=e.mathmlBuilder;n&&(Hs[t]=n),r&&(Us[t]=r)}var Gs=function(e){return e.type===`ordgroup`&&e.body.length===1?e.body[0]:e},Ks=function(e){return e.type===`ordgroup`?e.body:[e]},qs=new Set([`leftmost`,`mbin`,`mopen`,`mrel`,`mop`,`mpunct`]),Js=new Set([`rightmost`,`mrel`,`mclose`,`mpunct`]),Ys={display:P.DISPLAY,text:P.TEXT,script:P.SCRIPT,scriptscript:P.SCRIPTSCRIPT},Xs={mord:`mord`,mop:`mop`,mbin:`mbin`,mrel:`mrel`,mopen:`mopen`,mclose:`mclose`,mpunct:`mpunct`,minner:`minner`},Zs=function(e,t,n,r){r===void 0&&(r=[null,null]);for(var i=[],a=0;a<e.length;a++){var o=Y(e[a],t);if(o instanceof eo){var s=o.children;i.push(...s)}else i.push(o)}if(Cs(i),!n)return i;var c=t;if(e.length===1){var l=e[0];l.type===`sizing`?c=t.havingSize(l.size):l.type===`styling`&&(c=t.havingStyle(Ys[l.style]))}var u=K([r[0]||`leftmost`],[],t),d=K([r[1]||`rightmost`],[],t),f=n===`root`;return Qs(i,(e,t)=>{var n=t.classes[0],r=e.classes[0];n===`mbin`&&Js.has(r)?t.classes[0]=`mord`:r===`mbin`&&qs.has(n)&&(e.classes[0]=`mord`)},{node:u},d,f),Qs(i,(e,t)=>{var n=tc(t),r=tc(e),i=n&&r?e.hasClass(`mtight`)?Bs[n]?.[r]:zs[n]?.[r]:null;if(i)return js(i,c)},{node:u},d,f),i},Qs=function(e,t,n,r,i){r&&e.push(r);for(var a=0;a<e.length;a++){var o=e[a],s=$s(o);if(s){Qs(s.children,t,n,null,i);continue}var c=!o.hasClass(`mspace`);if(c){var l=t(o,n.node);l&&(n.insertAfter?n.insertAfter(l):(e.unshift(l),a++))}c?n.node=o:i&&o.hasClass(`katex-newline`)&&(n.node=K([`leftmost`])),n.insertAfter=(t=>n=>{e.splice(t+1,0,n),a++})(a)}r&&e.pop()},$s=function(e){return e instanceof eo||e instanceof po||e instanceof fo&&e.hasClass(`enclosing`)?e:null},ec=function(e,t){var n=$s(e);if(n){var r=n.children;if(r.length){if(t===`right`)return ec(r[r.length-1],`right`);if(t===`left`)return ec(r[0],`left`)}}return e},tc=function(e,t){return e?(t&&(e=ec(e,t)),Xs[e.classes[0]]||null):null},nc=function(e,t){var n=[`nulldelimiter`].concat(e.baseSizingClasses());return K(t.concat(n))},Y=function(e,t,n){if(!e)return K();if(Hs[e.type]){var r=Hs[e.type](e,t);if(n&&t.size!==n.size){r=K(t.sizingClasses(n),[r],t);var i=t.sizeMultiplier/n.sizeMultiplier;r.height*=i,r.depth*=i}return r}else throw new N(`Got group of unknown type: '`+e.type+`'`)};function rc(e,t){var n=K([`katex-base`],e,t),r=K([`katex-strut`]);return r.style.height=F(n.height+n.depth),n.depth&&(r.style.verticalAlign=F(-n.depth)),n.children.unshift(r),n}function ic(e,t){var n=null;e.length===1&&e[0].type===`tag`&&(n=e[0].tag,e=e[0].body);var r=Zs(e,t,`root`),i;r.length===2&&r[1].hasClass(`katex-tag`)&&(i=r.pop());for(var a=[],o=[],s=0;s<r.length;s++)if(o.push(r[s]),r[s].hasClass(`mbin`)||r[s].hasClass(`mrel`)||r[s].hasClass(`allowbreak`)){for(var c=!1;s<r.length-1&&r[s+1].hasClass(`mspace`)&&!r[s+1].hasClass(`katex-newline`);)s++,o.push(r[s]),r[s].hasClass(`nobreak`)&&(c=!0);c||(a.push(rc(o,t)),o=[])}else r[s].hasClass(`katex-newline`)&&(o.pop(),o.length>0&&(a.push(rc(o,t)),o=[]),a.push(r[s]));o.length>0&&a.push(rc(o,t));var l;n?(l=rc(Zs(n,t,!0),t),l.classes=[`katex-tag`],a.push(l)):i&&a.push(i);var u=K([`katex-html`],a);if(u.setAttribute(`aria-hidden`,`true`),l){var d=l.children[0];d.style.height=F(u.height+u.depth),u.depth&&(d.style.verticalAlign=F(-u.depth))}return u}function ac(e){return new eo(e)}var X=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,this.type);for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e.setAttribute(n,r)}this.classes.length>0&&(e.className=ao(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof oc&&this.children[i+1]instanceof oc){for(var a=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof oc;)a+=this.children[++i].toText();e.appendChild(new oc(a).toNode())}else e.appendChild(this.children[i].toNode());return e}toMarkup(){var e=`<`+this.type;for(var t of Object.entries(this.attributes)){var n=t[0],r=t[1];e+=` `+n+`="`,e+=ua(r),e+=`"`}this.classes.length>0&&(e+=` class ="`+ua(ao(this.classes))+`"`),e+=`>`;for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+=`</`+this.type+`>`,e}toText(){return this.children.map(e=>e.toText()).join(``)}},oc=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ua(this.toText())}toText(){return this.text}},sc=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=` `:e>=.1666&&e<=.1667?this.character=` `:e>=.2222&&e<=.2223?this.character=` `:e>=.2777&&e<=.2778?this.character=` `:e>=-.05556&&e<=-.05555?this.character=` `:e>=-.1667&&e<=-.1666?this.character=` `:e>=-.2223&&e<=-.2222?this.character=` `:e>=-.2778&&e<=-.2777?this.character=` `:this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`mspace`);return e.setAttribute(`width`,F(this.width)),e}toMarkup(){return this.character?`<mtext>`+this.character+`</mtext>`:`<mspace width="`+F(this.width)+`"/>`}toText(){return this.character?this.character:` `}},cc=new Set([`\\imath`,`\\jmath`]),lc=new Set([`mrow`,`mtable`]),uc=function(e,t,n){var r,i;return Ao[t][e]&&Ao[t][e].replace&&e.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(Ro,e)&&((n==null||(r=n.fontFamily)==null?void 0:r.slice(4,6))===`tt`||(n==null||(i=n.font)==null?void 0:i.slice(4,6))===`tt`))&&(e=Ao[t][e].replace),new oc(e)},dc=function(e){return e.length===1?e[0]:new X(`mrow`,e)},fc={mathit:`italic`,boldsymbol:e=>e.type===`textord`?`bold`:`bold-italic`,mathbf:`bold`,mathbb:`double-struck`,mathsfit:`sans-serif-italic`,mathfrak:`fraktur`,mathscr:`script`,mathcal:`script`,mathsf:`sans-serif`,mathtt:`monospace`},pc=(e,t)=>{if(e.mode===`text`){if(t.fontFamily===`texttt`)return`monospace`;if(t.fontFamily===`textsf`)return t.fontShape===`textit`&&t.fontWeight===`textbf`?`sans-serif-bold-italic`:t.fontShape===`textit`?`sans-serif-italic`:t.fontWeight===`textbf`?`bold-sans-serif`:`sans-serif`;if(t.fontShape===`textit`&&t.fontWeight===`textbf`)return`bold-italic`;if(t.fontShape===`textit`)return`italic`;if(t.fontWeight===`textbf`)return`bold`}var n=t.font;if(!n||n===`mathnormal`)return null;var r=e.mode,i=fc[n];if(i)return typeof i==`function`?i(e):i;var a=e.text;if(cc.has(a))return null;if(Ao[r][a]){var o=Ao[r][a].replace;o&&(a=o)}var s=Ns[n].fontName;return Do(a,s,r)?Ns[n].variant:null};function mc(e){if(!e)return!1;if(e.type===`mi`&&e.children.length===1){var t=e.children[0];return t instanceof oc&&t.text===`.`}else if(e.type===`mo`&&e.children.length===1&&e.getAttribute(`separator`)===`true`&&e.getAttribute(`lspace`)===`0em`&&e.getAttribute(`rspace`)===`0em`){var n=e.children[0];return n instanceof oc&&n.text===`,`}else return!1}var hc=function(e,t,n){if(e.length===1){var r=Z(e[0],t);return n&&r instanceof X&&r.type===`mo`&&(r.setAttribute(`lspace`,`0em`),r.setAttribute(`rspace`,`0em`)),[r]}for(var i=[],a,o=0;o<e.length;o++){var s=Z(e[o],t);if(s instanceof X&&a instanceof X){if(s.type===`mtext`&&a.type===`mtext`&&s.getAttribute(`mathvariant`)===a.getAttribute(`mathvariant`)){a.children.push(...s.children);continue}else if(s.type===`mn`&&a.type===`mn`){a.children.push(...s.children);continue}else if(mc(s)&&a.type===`mn`){a.children.push(...s.children);continue}else if(s.type===`mn`&&mc(a))s.children=[...a.children,...s.children],i.pop();else if((s.type===`msup`||s.type===`msub`)&&s.children.length>=1&&(a.type===`mn`||mc(a))){var c=s.children[0];c instanceof X&&c.type===`mn`&&(c.children=[...a.children,...c.children],i.pop())}else if(a.type===`mi`&&a.children.length===1){var l=a.children[0];if(l instanceof oc&&l.text===`̸`&&(s.type===`mo`||s.type===`mi`||s.type===`mn`)){var u=s.children[0];u instanceof oc&&u.text.length>0&&(u.text=u.text.slice(0,1)+`̸`+u.text.slice(1),i.pop())}}}i.push(s),a=s}return i},gc=function(e,t,n){return dc(hc(e,t,n))},Z=function(e,t){if(!e)return new X(`mrow`);if(Us[e.type])return Us[e.type](e,t);throw new N(`Got group of unknown type: '`+e.type+`'`)};function _c(e,t,n,r,i){var a=hc(e,n),o=a.length===1&&a[0]instanceof X&&lc.has(a[0].type)?a[0]:new X(`mrow`,a),s=new X(`annotation`,[new oc(t)]);s.setAttribute(`encoding`,`application/x-tex`);var c=new X(`math`,[new X(`semantics`,[o,s])]);return c.setAttribute(`xmlns`,`http://www.w3.org/1998/Math/MathML`),r&&c.setAttribute(`display`,`block`),K([i?`katex`:`katex-mathml`],[c])}var vc=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],yc=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],bc=function(e,t){return t.size<2?e:vc[e-1][t.size-1]},xc=class e{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||``,this.fontFamily=t.fontFamily||``,this.fontWeight=t.fontWeight||``,this.fontShape=t.fontShape||``,this.sizeMultiplier=yc[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this.strict=t.strict,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(n,t),new e(n)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:bc(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:yc[e-1]})}havingBaseStyle(t){t||=this.style.text();var n=bc(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:``})}withTextFontWeight(e){return this.extend({fontWeight:e,font:``})}withTextFontShape(e){return this.extend({fontShape:e,font:``})}sizingClasses(e){return e.size===this.size?[]:[`katex-sizing`,`reset-size`+e.size,`size`+this.size]}baseSizingClasses(){return this.size===e.BASESIZE?[]:[`katex-sizing`,`reset-size`+this.size,`size`+e.BASESIZE]}fontMetrics(){return this._fontMetrics||=ko(this.size),this._fontMetrics}getColor(){return this.phantom?`transparent`:this.color}};xc.BASESIZE=6;var Sc=e=>new xc({style:e.displayMode?P.DISPLAY:P.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),Cc=function(e,t){if(t.displayMode){var n=[`katex-display`];t.leqno&&n.push(`leqno`),t.fleqn&&n.push(`fleqn`),e=K(n,[e])}return e},wc=function(e,t,n){var r=Sc(n),i;return n.output===`mathml`?_c(e,t,r,n.displayMode,!0):(i=n.output===`html`?K([`katex`],[ic(e,r)]):K([`katex`],[_c(e,t,r,n.displayMode,!1),ic(e,r)]),Cc(i,n))},Tc=function(e,t){return Cc(K([`katex`],[ic(e,Sc(t))]),t)},Ec={widehat:`^`,widecheck:`ˇ`,widetilde:`~`,utilde:`~`,overleftarrow:`←`,underleftarrow:`←`,xleftarrow:`←`,overrightarrow:`→`,underrightarrow:`→`,xrightarrow:`→`,underbrace:`⏟`,overbrace:`⏞`,underbracket:`⎵`,overbracket:`⎴`,overgroup:`⏠`,undergroup:`⏡`,overleftrightarrow:`↔`,underleftrightarrow:`↔`,xleftrightarrow:`↔`,Overrightarrow:`⇒`,xRightarrow:`⇒`,overleftharpoon:`↼`,xleftharpoonup:`↼`,overrightharpoon:`⇀`,xrightharpoonup:`⇀`,xLeftarrow:`⇐`,xLeftrightarrow:`⇔`,xhookleftarrow:`↩`,xhookrightarrow:`↪`,xmapsto:`↦`,xrightharpoondown:`⇁`,xleftharpoondown:`↽`,xrightleftharpoons:`⇌`,xleftrightharpoons:`⇋`,xtwoheadleftarrow:`↞`,xtwoheadrightarrow:`↠`,xlongequal:`=`,xtofrom:`⇄`,xrightleftarrows:`⇄`,xrightequilibrium:`⇌`,xleftequilibrium:`⇋`,"\\cdrightarrow":`→`,"\\cdleftarrow":`←`,"\\cdlongequal":`=`},Dc=function(e){var t=new X(`mo`,[new oc(Ec[e.replace(/^\\/,``)])]);return t.setAttribute(`stretchy`,`true`),t},Oc={overrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],overleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],underrightarrow:[[`rightarrow`],.888,522,`xMaxYMin`],underleftarrow:[[`leftarrow`],.888,522,`xMinYMin`],xrightarrow:[[`rightarrow`],1.469,522,`xMaxYMin`],"\\cdrightarrow":[[`rightarrow`],3,522,`xMaxYMin`],xleftarrow:[[`leftarrow`],1.469,522,`xMinYMin`],"\\cdleftarrow":[[`leftarrow`],3,522,`xMinYMin`],Overrightarrow:[[`doublerightarrow`],.888,560,`xMaxYMin`],xRightarrow:[[`doublerightarrow`],1.526,560,`xMaxYMin`],xLeftarrow:[[`doubleleftarrow`],1.526,560,`xMinYMin`],overleftharpoon:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoonup:[[`leftharpoon`],.888,522,`xMinYMin`],xleftharpoondown:[[`leftharpoondown`],.888,522,`xMinYMin`],overrightharpoon:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoonup:[[`rightharpoon`],.888,522,`xMaxYMin`],xrightharpoondown:[[`rightharpoondown`],.888,522,`xMaxYMin`],xlongequal:[[`longequal`],.888,334,`xMinYMin`],"\\cdlongequal":[[`longequal`],3,334,`xMinYMin`],xtwoheadleftarrow:[[`twoheadleftarrow`],.888,334,`xMinYMin`],xtwoheadrightarrow:[[`twoheadrightarrow`],.888,334,`xMaxYMin`],overleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],overbrace:[[`leftbrace`,`midbrace`,`rightbrace`],1.6,548],underbrace:[[`leftbraceunder`,`midbraceunder`,`rightbraceunder`],1.6,548],underleftrightarrow:[[`leftarrow`,`rightarrow`],.888,522],xleftrightarrow:[[`leftarrow`,`rightarrow`],1.75,522],xLeftrightarrow:[[`doubleleftarrow`,`doublerightarrow`],1.75,560],xrightleftharpoons:[[`leftharpoondownplus`,`rightharpoonplus`],1.75,716],xleftrightharpoons:[[`leftharpoonplus`,`rightharpoondownplus`],1.75,716],xhookleftarrow:[[`leftarrow`,`righthook`],1.08,522],xhookrightarrow:[[`lefthook`,`rightarrow`],1.08,522],overlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],underlinesegment:[[`leftlinesegment`,`rightlinesegment`],.888,522],overbracket:[[`leftbracketover`,`rightbracketover`],1.6,440],underbracket:[[`leftbracketunder`,`rightbracketunder`],1.6,410],overgroup:[[`leftgroup`,`rightgroup`],.888,342],undergroup:[[`leftgroupunder`,`rightgroupunder`],.888,342],xmapsto:[[`leftmapsto`,`rightarrow`],1.5,522],xtofrom:[[`leftToFrom`,`rightToFrom`],1.75,528],xrightleftarrows:[[`baraboveleftarrow`,`rightarrowabovebar`],1.75,901],xrightequilibrium:[[`baraboveshortleftharpoon`,`rightharpoonaboveshortbar`],1.75,716],xleftequilibrium:[[`shortbaraboveleftharpoon`,`shortrightharpoonabovebar`],1.75,716]},kc=new Set([`widehat`,`widecheck`,`widetilde`,`utilde`]),Ac=function(e,t){function n(){var n=4e5,r=e.label.slice(1);if(kc.has(r)&&`base`in e){var i=e.base.type===`ordgroup`?e.base.body.length:1,a,o,s;if(i>5)r===`widehat`||r===`widecheck`?(a=420,n=2364,s=.42,o=r+`4`):(a=312,n=2340,s=.34,o=`tilde4`);else{var c=[1,1,2,2,3,3][i];r===`widehat`||r===`widecheck`?(n=[0,1062,2364,2364,2364][c],a=[0,239,300,360,420][c],s=[0,.24,.3,.3,.36,.42][c],o=r+c):(n=[0,600,1033,2339,2340][c],a=[0,260,286,306,312][c],s=[0,.26,.286,.3,.306,.34][c],o=`tilde`+c)}return{span:Ts([],[new _o([new vo(o)],{width:`100%`,height:F(s),viewBox:`0 0 `+n+` `+a,preserveAspectRatio:`none`})],t),minWidth:0,height:s}}else{var l=[],u=Oc[r];if(!u)throw Error(`No SVG data for "`+r+`".`);var d=u[0],f=u[1],p=u[2],m=p/1e3,h=d.length,g,_;if(h===1){if(u.length!==4)throw Error(`Expected 4-tuple for single-path SVG data "`+r+`".`);g=[`hide-tail`],_=[u[3]]}else if(h===2)g=[`halfarrow-left`,`halfarrow-right`],_=[`xMinYMin`,`xMaxYMin`];else if(h===3)g=[`brace-left`,`brace-center`,`brace-right`],_=[`xMinYMin`,`xMidYMin`,`xMaxYMin`];else throw Error(`Correct katexImagesData or update code here to support
|
|
319
|
-
`+h+` children.`);for(var v=0;v<h;v++){var y=new _o([new vo(d[v])],{width:`400em`,height:F(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=Ts([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=F(m),l.push(b)}return{span:K([`katex-stretchy`],l,t),minWidth:f,height:m}}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=F(o),a>0&&(i.style.minWidth=F(a)),i},jc=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=K([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new yo({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new yo({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=Ts([],[new _o(c,{width:`100%`,height:F(o)})],i)}return a.height=o,a.style.height=F(o),a},Mc=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],Nc=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],Pc=new Set(Mc),Fc=new Set(Nc);function Ic(e){return Pc.has(e)}function Q(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function Lc(e){var t=Rc(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Rc(e){return e.type===`atom`||Fc.has(e.type)?e:null}function zc(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new N(t,e);return r}var Bc=e=>{if(e instanceof go)return e;if(So(e)&&e.children.length===1)return Bc(e.children[0])},Vc=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Q(e.base,`accent`),n=r.base,e.base=n,i=xo(Y(e,t)),e.base=r):(r=Q(e,`accent`),n=r.base);var a=Y(n,t.havingCrampedStyle()),o=r.isShifty&&pa(n),s=0;o&&(s=Bc(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=Ac(r,t),u=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+F(2*s)+`)`,marginLeft:F(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=Fs(`vec`,t),f=Ps.vec[1]):(d=xs({type:`textord`,mode:r.mode,text:r.label},t),d=bo(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=K([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=F(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=K([`mord`,`katex-accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},Hc=(e,t)=>{var n=e.isStretchy?Dc(e.label):new X(`mo`,[uc(e.label,e.mode)]),r=new X(`mover`,[Z(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},Uc=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));J({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=Gs(t[0]),r=!Uc.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Vc,mathmlBuilder:Hc}),J({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(gs({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),J({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Y(e.base,t),r=Ac(e,t),i=e.label===`\\utilde`?.12:0;return K([`mord`,`accentunder`],[q({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Dc(e.label),r=new X(`munder`,[Z(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var Wc=e=>{var t=new X(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};J({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=ks(Y(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=ks(Y(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=Ac(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=q({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=q({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return K([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=Dc(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Wc(Z(e.body,t));r=e.below?new X(`munderover`,[n,Wc(Z(e.below,t)),i]):new X(`mover`,[n,i])}else e.below?r=new X(`munder`,[n,Wc(Z(e.below,t))]):(r=Wc(),r=new X(`mover`,[n,r]));return r}});function Gc(e,t){var n=Zs(e.body,t,!0);return K([e.mclass],n,t)}function Kc(e,t){var n,r=hc(e.body,t);return e.mclass===`minner`?n=new X(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}J({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:Ks(i),isCharacterBox:pa(i)}},htmlBuilder:Gc,mathmlBuilder:Kc});var qc=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};J({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:qc(t[0]),body:Ks(t[1]),isCharacterBox:pa(t[1])}}}),J({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:qc(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Ks(i)},c=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:pa(c)}}}),J({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:qc(t[0]),body:Ks(t[0])}},htmlBuilder(e,t){var n=Zs(e.body,t,!0),r=K([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new X(`mstyle`,hc(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var Jc={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Yc=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),Xc=e=>e.type===`textord`&&e.text===`@`,Zc=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function Qc(e,t,n){var r=Jc[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function $c(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new N(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=Yc(),c=0;c<o.length;c++)if(!Xc(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=Lc(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(Zc(o[p],l)){f=!1,c=p;break}if(Xc(o[p]))throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new N(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[Qc(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=Yc()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}J({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=ks(Y(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=F(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new X(`mrow`,[Z(e.label,t)]);return n=new X(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),J({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=ks(Y(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X(`mrow`,[Z(e.fragment,t)])}}),J({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=zc(Q(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new N(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new N(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),J({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=Q(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Ks(i)}},htmlBuilder:(e,t)=>Os(Zs(e.body,t.withColor(e.color),!1)),mathmlBuilder:(e,t)=>{var n=new X(`mstyle`,hc(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n}}),J({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=Q(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),J({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!gs({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&Q(n,`size`).value}},htmlBuilder(e,t){var n=K([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=F(io(e.size,t)))),n},mathmlBuilder(e,t){var n=new X(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,F(io(e.size,t)))),n}});var el={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},tl=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new N(`Expected a control sequence`,e);return t},nl=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},rl=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};J({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(el[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=el[r.text]),Q(t.parseFunction(),`internal`);throw new N(`Invalid token after macro prefix`,r)}}),J({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new N(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new N(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new N(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new N(`Expected a macro definition`);else s[a].push(r.text);var c=t.gullet.consumeArg().tokens;return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===el[n]),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=tl(t.gullet.popToken());return t.gullet.consumeSpaces(),rl(t,r,nl(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=tl(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return rl(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var il=function(e,t,n){var r=Do(Ao.math[e]&&Ao.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},al=function(e,t,n,r){var i=n.havingBaseStyle(t),a=K(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},ol=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=F(i),e.height-=i,e.depth+=i},sl=function(e,t,n,r,i,a){var o=al(vs(e,`Main-Regular`,i,r),t,r,a);return n&&ol(o,r,t),o},cl=function(e,t,n,r){return vs(e,`Size`+t+`-Regular`,n,r)},ll=function(e,t,n,r,i,a){var o=cl(e,t,i,r),s=al(K([`delimsizing`,`size`+t],[o],r),P.TEXT,r,a);return n&&ol(s,r,P.TEXT),s},ul=function(e,t,n,r){return{type:`elem`,elem:K([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[K([],[vs(e,t,n,r)])])}},dl=function(e,t,n){var r=Co[`Size4-Regular`][e.charCodeAt(0)]?Co[`Size4-Regular`][e.charCodeAt(0)][4]:Co[`Size1-Regular`][e.charCodeAt(0)][4],i=Ts([],[new _o([new vo(`inner`,Xa(e,Math.round(1e3*t)))],{width:F(r),height:F(t),style:`width:`+F(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=F(t),i.style.width=F(r),{type:`elem`,elem:i}},fl=.008,pl={type:`kern`,size:-1*fl},ml=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),hl=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),gl=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):ml.has(e)?(c=`∣`,u=`vert`,d=333):hl.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=il(o,f,i),m=p.height+p.depth,h=il(c,f,i),g=h.height+h.depth,_=il(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=il(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,ee=r.fontMetrics().axisHeight;n&&(ee*=r.sizeMultiplier);var te=C/2-ee,ne=[];if(u.length>0){var w=C-m-v,re=Math.round(C*1e3),T=Qa(u,Math.round(w*1e3)),ie=new vo(u,T),ae=F(d/1e3),oe=F(re/1e3),se=Ts([],[new _o([ie],{width:ae,height:oe,viewBox:`0 0 `+d+` `+re})],r);se.height=re/1e3,se.style.width=ae,se.style.height=oe,ne.push({type:`elem`,elem:se})}else{if(ne.push(ul(l,f,i,r)),ne.push(pl),s===null){var ce=C-m-v+2*fl;ne.push(dl(c,ce,r))}else{var le=(C-m-v-y)/2+2*fl;ne.push(dl(c,le,r)),ne.push(pl),ne.push(ul(s,f,i,r)),ne.push(pl),ne.push(dl(c,le,r))}ne.push(pl),ne.push(ul(o,f,i,r))}var ue=r.havingBaseStyle(P.TEXT);return al(K([`delimsizing`,`mult`],[q({positionType:`bottom`,positionData:te,children:ne})],ue),P.TEXT,r,a)},_l=80,vl=.08,yl=function(e,t,n,r,i){return Ts([`hide-tail`],[new _o([new vo(e,Ya(e,r,n))],{width:`400em`,height:F(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},bl=function(e,t){var n=t.havingBaseSizing(),r=Al(`\\surd`,e*n.sizeMultiplier,Ol,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+_l,e<1?i=1:e<1.4&&(i=.7),s=(1+a+vl)/i,c=(1+a)/i,o=yl(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+_l)*wl[r.size],c=(wl[r.size]+a)/i,s=(wl[r.size]+a+vl)/i,o=yl(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+vl,c=e+a,l=Math.floor(1e3*e+a)+_l,o=yl(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=F(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},xl=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Sl=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Cl=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),wl=[0,1.2,1.8,2.4,3],Tl=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),xl.has(e)||Cl.has(e))return ll(e,t,!1,n,r,i);if(Sl.has(e))return gl(e,wl[t],!1,n,r,i);throw new N(`Illegal delimiter: '`+e+`'`)},El=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Dl=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`stack`}],Ol=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],kl=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Al=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=il(e,kl(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},jl=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Cl.has(e)?El:xl.has(e)?Ol:Dl,s=Al(e,t,o,r);return s.type===`small`?sl(e,s.style,n,r,i,a):s.type===`large`?ll(e,s.size,n,r,i,a):gl(e,t,n,r,i,a)},Ml=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return jl(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},Nl={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},Pl=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function Fl(e){return`isMiddle`in e}function Il(e,t){var n=Rc(e);if(n&&Pl.has(n.text))return n;throw n?new N(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new N(`Invalid delimiter type '`+e.type+`'`,e)}J({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=Il(Gs(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:Nl[e.funcName].size,mclass:Nl[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?K([e.mclass]):Tl(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(uc(e.delim,e.mode));var n=new X(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=F(wl[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function Ll(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}J({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new N(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Il(t[0],e).text,color:n}}}),J({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Il(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Q(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Ll(e);for(var n=Zs(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];Fl(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?nc(t,[`mopen`]):Ml(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(Fl(u)){var d=u.isMiddle;n[l]=Ml(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=nc(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=Ml(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),K([`minner`],n,t)},mathmlBuilder:(e,t)=>{Ll(e);var n=hc(e.body,t);if(e.left!==`.`){var r=new X(`mo`,[uc(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X(`mo`,[uc(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return dc(n)}}),J({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Il(t[0],e);if(!e.parser.leftrightDepth)throw new N(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=nc(t,[]):(n=Tl(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new X(`mo`,[e.delim===`\\vert`||e.delim===`|`?uc(`|`,`text`):uc(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}}),J({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:(e,t)=>{var n=ks(Y(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=pa(e.body);if(r===`sout`)a=K([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=io({number:.6,unit:`pt`},t),l=io({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=F(d/2+c);var f=Math.floor(1e3*d*i);a=Ts([`hide-tail`],[new _o([new vo(`phase`,qa(f))],{width:`400em`,height:F(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=F(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=jc(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=F(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=F(h),a.style.borderRightWidth=F(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=q({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=q({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?K([`mord`,`cancel-lap`],[g],t):K([`mord`],[g],t)},mathmlBuilder:(e,t)=>{var n,r=new X(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Z(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+F(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r}}),J({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=Q(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),J({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),J({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),J({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&gs({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),J({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}});var Rl={};function zl(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)Rl[n[c]]=s;a&&(Hs[t]=a),o&&(Us[t]=o)}var Bl={};function $(e,t){Bl[e]=t}var Vl=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Hl=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Vl.range(this,t))}};function Ul(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var Wl=e=>{if(!e.parser.settings.displayMode)throw new N(`{`+e.envName+`} can be used only in display mode.`)},Gl=new Set([`gather`,`gather*`]);function Kl(e){if(!e.includes(`ed`))return!e.includes(`*`)}function ql(e,t,n){var r=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,o=t.arraystretch,s=t.colSeparationType,c=t.autoTag,l=t.singleRow,u=t.emptySingleRow,d=t.maxNumCols,f=t.leqno;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new N(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new Hl(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Ul(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new N(`Too many tab characters: &`,e.nextToken);gs({strict:e.settings.strict,errorCode:`textEnv`,errorMsg:`Too few columns specified in the {array} column argument.`,report:!0})}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&!Array.isArray(v?.[v.length-1])&&!(c&&v?.[v.length-1]===!0)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var ee=void 0;e.gullet.future().text!==` `&&(ee=e.parseSizeGroup(!0)),g.push(ee?ee.value:null),b(),_.push(Ul(e)),m=[],h.push(m),y()}else throw new N(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function Jl(e){return e.slice(0,1)===`d`?`display`:`text`}var Yl=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(P.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?io({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=Y(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var ee=e.rowGaps[n],te=0;ee&&(te=io(ee,t),te>0&&(te+=g,x<te&&(x=te),te=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+te,s[n]=S,v(a[n+1])}var ne=_/2+t.fontMetrics().axisHeight,w=e.cols||[],re=[],T,ie,ae=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var oe=s[n],se=oe.pos-ne,ce=e.tags[n],le=void 0;le=ce===!0?K([`eqn-num`],[],t):ce===!1?K([],[],t):K([],Zs(ce,t,!0),t),le.depth=oe.depth,le.height=oe.height,ae.push({type:`elem`,elem:le,shift:se})}for(r=0,ie=0;r<o||ie<w.length;++r,++ie){for(var ue=w[ie],de=!0;(fe=ue)?.type===`separator`;){var fe;if(de||(T=K([`arraycolsep`],[]),T.style.width=F(t.fontMetrics().doubleRuleSep),re.push(T)),ue.separator===`|`||ue.separator===`:`){var pe=ue.separator===`|`?`solid`:`dashed`,me=K([`vertical-separator`],[],t);me.style.height=F(_),me.style.borderRightWidth=F(l),me.style.borderRightStyle=pe,me.style.margin=`0 `+F(-l/2);var he=_-ne;he&&(me.style.verticalAlign=F(-he)),re.push(me)}else throw new N(`Invalid separator type: `+ue.separator);ie++,ue=w[ie],de=!1}if(!(r>=o)){var ge=void 0;(r>0||e.hskipBeforeAndAfter)&&(ge=ue?.pregap??d,ge!==0&&(T=K([`arraycolsep`],[]),T.style.width=F(ge),re.push(T)));var _e=[];for(n=0;n<i;++n){var E=s[n],ve=E.cells[r];if(ve){var ye=E.pos-ne;ve.depth=E.depth,ve.height=E.height,_e.push({type:`elem`,elem:ve,shift:ye})}}var be=q({positionType:`individualShift`,children:_e}),xe=K([`col-align-`+(ue?.align||`c`)],[be]);re.push(xe),(r<o-1||e.hskipBeforeAndAfter)&&(ge=ue?.postgap??d,ge!==0&&(T=K([`arraycolsep`],[]),T.style.width=F(ge),re.push(T)))}}var Se=K([`mtable`],re);if(c.length>0){for(var Ce=Es(`katex-hline`,t,l),we=Es(`katex-hdashline`,t,l),Te=[{type:`elem`,elem:Se,shift:0}];c.length>0;){var Ee=c.pop(),De=Ee.pos-ne;Ee.isDashed?Te.push({type:`elem`,elem:we,shift:De}):Te.push({type:`elem`,elem:Ce,shift:De})}Se=q({positionType:`individualShift`,children:Te})}if(ae.length===0)return K([`mord`],[Se],t);var Oe=K([`katex-tag`],[q({positionType:`individualShift`,children:ae})],t);return Os([Se,Oe])},Xl={c:`center `,l:`left `,r:`right `},Zl=function(e,t){for(var n=[],r=new X(`mtd`,[],[`mtr-glue`]),i=new X(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new X(`mtd`,[Z(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new X(`mtr`,s))}var l=new X(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,F(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=Xl[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,ee=e.hLinesBeforeRow;d+=ee[0].length>0?`left `:``,d+=ee[ee.length-1].length>0?`right `:``;for(var te=1;te<ee.length-1;te++)C+=ee[te].length===0?`none `:ee[te][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new X(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new X(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Ql=function(e,t){e.envName.includes(`ed`)||Wl(e);var n=[],r=e.envName===`split`,i=ql(e.parser,{cols:n,addJot:!0,autoTag:r?void 0:Kl(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes(`at`)?`alignat`:`align`,maxNumCols:r?2:void 0,leqno:e.parser.settings.leqno},`display`),a=0,o=0,s={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){var c=`Number of columns should be a positive integer`,l=zc(t[0],c);if(!/^[0-9]+$/.test(l)||Number(l)<1)throw new N(c,t[0]);a=Number(l),o=a*2}var u=!o;i.body.forEach(function(e){for(var t=1;t<e.length;t+=2)Q(Q(e[t],`styling`).body[0],`ordgroup`).body.unshift(s);if(u)o<e.length&&(o=e.length);else{var n=e.length/2;if(a<n)throw new N(`Too many math in a row: `+(`expected `+a+`, but got `+n),e[0])}});for(var d=0;d<o;++d){var f=`r`,p=0;d%2==1?f=`l`:d>0&&u&&(p=1),n[d]={type:`align`,align:f,pregap:p,postgap:0}}return i.colSeparationType=u?`align`:`alignat`,i};zl({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Rc(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=Lc(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new N(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return ql(e.parser,r,Jl(e.envName))},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new N(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=ql(e.parser,r,Jl(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=ql(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Rc(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=Lc(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new N(`Unknown column alignment: `+t,e)});if(n.length>1)throw new N(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=ql(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new N(`{subarray} can contain only one column`);return i},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=ql(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Jl(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Ql,htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Gl.has(e.envName)&&Wl(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Kl(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ql(e.parser,t,`display`)},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Ql,htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Wl(e);var t={autoTag:Kl(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ql(e.parser,t,`display`)},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Wl(e),$c(e.parser)},htmlBuilder:Yl,mathmlBuilder:Zl}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),J({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new N(e.funcName+` valid only within array environment`)}});var $l=Rl;J({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new N(`Invalid environment name`,i);var a=zc(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call($l,a))throw new N(`No such environment: `+a,i);var o=$l[a],s=n.parseArguments(`\\begin{`+a+`}`,o),c=s.args,l=s.optArgs,u={mode:n.mode,envName:a,parser:n},d=o.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=Q(n.parseFunction(),`environment`);if(p.name!==a)throw new N(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var eu=(e,t)=>{var n=e.font,r=t.withFont(n);return Y(e.body,r)},tu=(e,t)=>{var n=e.font,r=t.withFont(n);return Z(e.body,r)},nu={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};J({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=Gs(t[0]),a=r in nu?nu[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:eu,mathmlBuilder:tu}),J({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:qc(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:pa(r)}}}),J({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}});var ru=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Y(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=Y(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=io(e.barSize,t),u=Es(`frac-line`,t,d)):u=Es(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===P.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=q({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=q({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===P.DISPLAY.size?t.fontMetrics().delim1:n.size===P.SCRIPTSCRIPT.size?t.havingStyle(P.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?nc(t,[`mopen`]):jl(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?K([]):e.rightDelim==null?nc(t,[`mclose`]):jl(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return K([`mord`].concat(a.sizingClasses(t)),[x,K([`mfrac`],[g]),S],t)},iu=(e,t)=>{var n=new X(`mfrac`,[Z(e.numer,t),Z(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=io(e.barSize,t);n.setAttribute(`linethickness`,F(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new X(`mo`,[new oc(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new X(`mo`,[new oc(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return dc(i)}return n},au=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;J({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),au({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:ru,mathmlBuilder:iu}),J({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var ou=[`display`,`text`,`script`,`scriptscript`],su=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};J({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=Gs(t[0]),o=a.type===`atom`&&a.family===`open`?su(a.text):null,s=Gs(t[1]),c=s.type===`atom`&&s.family===`close`?su(s.text):null,l=Q(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=Q(p.body[0],`textord`);f=ou[Number(m.text)]}}else p=Q(p,`textord`),f=ou[Number(p.text)];return au({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),J({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Q(t[0],`size`).value,token:r}}}),J({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=Q(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var cu=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Y(e.sup,t.havingStyle(n.sup()),t):Y(e.sub,t.havingStyle(n.sub()),t),i=Q(e.base,`horizBrace`)):i=Q(e,`horizBrace`);var a=Y(i.base,t.havingBaseStyle(P.DISPLAY)),o=Ac(i,t),s=i.isOver?q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):q({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=K([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?q({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):q({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return K([`minner`,i.isOver?`mover`:`munder`],[s],t)};J({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:cu,mathmlBuilder:(e,t)=>{var n=Dc(e.label);return new X(e.isOver?`mover`:`munder`,[Z(e.base,t),n])}}),J({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=Q(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Ks(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Zs(e.body,t,!1);return Ds(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=gc(e.body,t);return n instanceof X||(n=new X(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),J({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=Q(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:Ks(s)}}}),J({type:`hbox`,names:[`\\hbox`],numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0,handler(e,t){return{type:`hbox`,mode:e.parser.mode,body:Ks(t[0])}},htmlBuilder(e,t){return Os(Zs(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new X(`mrow`,hc(e.body,t.withFont(``)))}}),J({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName;e.token;var i=Q(t[0],`raw`).string,a=t[1];n.settings.strict&&gs({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var c=`{,}`,l=[],u=``,d=0;d<i.length;d++)i.startsWith(c,d)?(u+=`,`,d+=c.length-1):i[d]===`,`?(l.push(u),u=``):u+=i[d];l.push(u);for(var f=0;f<l.length;f++){var p=l[f],m=p.indexOf(`=`);if(m<0)throw new N(`\\htmlData key/value '`+p+`' missing equals sign`);var h=p.slice(0,m),g=p.slice(m+1);s[`data-`+h.trim()]=g}o={command:`\\htmlData`,attributes:s};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(o)?{type:`html`,mode:n.mode,attributes:s,body:Ks(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Zs(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=K(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>gc(e.body,t)}),J({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:Ks(t[0]),mathml:Ks(t[1])}),htmlBuilder:(e,t)=>Os(Zs(e.html,t,!1)),mathmlBuilder:(e,t)=>gc(e.mathml,t)});var lu=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new N(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!ro(n))throw new N(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};J({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=Q(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=lu(d);break;case`height`:a=lu(d);break;case`totalheight`:o=lu(d);break;default:throw new N(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=Q(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=io(e.height,t),r=0;e.totalheight.number>0&&(r=io(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=io(e.width,t));var a={height:F(n+r)};i>0&&(a.width=F(i)),r>0&&(a.verticalAlign=F(-r));var o=new mo(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new X(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=io(e.height,t),i=0;if(e.totalheight.number>0&&(i=io(e.totalheight,t)-r,n.setAttribute(`valign`,F(-i))),n.setAttribute(`height`,F(r+i)),e.width.number>0){var a=io(e.width,t);n.setAttribute(`width`,F(a))}return n.setAttribute(`src`,e.src),n}}),J({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=Q(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||gs({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&gs({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&gs({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return js(e.dimension,t)},mathmlBuilder(e,t){return new sc(io(e.dimension,t))}}),J({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=K([],[Y(e.body,t)]),n=K([`katex-inner`],[n],t)):n=K([`katex-inner`],[Y(e.body,t)]);var r=K([`katex-fix`],[]),i=K([e.alignment],[n,r],t),a=K([`katex-strut`]);return a.style.height=F(i.height+i.depth),i.depth&&(a.style.verticalAlign=F(-i.depth)),i.children.unshift(a),i=K([`katex-thinbox`],[i],t),K([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Z(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),J({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),J({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new N(`Mismatched `+e.funcName)}});var uu=(e,t)=>{switch(t.style.size){case P.DISPLAY.size:return e.display;case P.TEXT.size:return e.text;case P.SCRIPT.size:return e.script;case P.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};J({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:Ks(t[0]),text:Ks(t[1]),script:Ks(t[2]),scriptscript:Ks(t[3])}),htmlBuilder:(e,t)=>Os(Zs(uu(e,t),t,!1)),mathmlBuilder:(e,t)=>gc(uu(e,t),t)});var du=(e,t,n,r,i,a,o)=>{e=K([],[e]);var s=n&&pa(n),c,l;if(t){var u=Y(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Y(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=q({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=q({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=q({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=K([`mspace`],[],r);m.style.marginRight=F(a),p.unshift(m)}return K([`mop`,`op-limits`],p,r)},fu=new Set([`\\smallint`]),pu=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`op`),i=!0):a=Q(e,`op`);var o=t.style,s=!1;o.size===P.DISPLAY.size&&a.symbol&&!fu.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=vs(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=Fs(d+`Size`+(s?`2`:`1`),t);c=q({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=Zs(a.body,t,!0);p.length===1&&p[0]instanceof go?(c=p[0],c.classes[0]=`mop`):c=K([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(ys(a.name[h],a.mode,t));c=K([`mop`],m,t)}var g=0,_=0;return(c instanceof go||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?du(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=F(g)),c)},mu=(e,t)=>{var n;if(e.symbol)n=new X(`mo`,[uc(e.name,e.mode)]),fu.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new X(`mo`,hc(e.body,t));else{n=new X(`mi`,[new oc(e.name.slice(1))]);var r=new X(`mo`,[uc(``,`text`)]);n=e.parentIsSupSub?new X(`mrow`,[n,r]):ac([n,r])}return n},hu={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};J({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=hu[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:pu,mathmlBuilder:mu}),J({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ks(r)}}});var gu={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};J({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),J({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),J({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=gu[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var _u=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`operatorname`),i=!0):a=Q(e,`operatorname`);var o;if(a.body.length>0){for(var s=Zs(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof go&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=K([`mop`],s,t)}else o=K([`mop`],[],t);return i?du(o,n,r,t,t.style,0,0):o};J({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:Ks(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:_u,mathmlBuilder:(e,t)=>{for(var n=hc(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof sc))if(a instanceof X)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof oc?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new oc(n.map(e=>e.toText()).join(``))]);var s=new X(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new X(`mo`,[uc(``,`text`)]);return e.parentIsSupSub?new X(`mrow`,[s,c]):ac([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Ws({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Os(Zs(e.body,t,!1)):K([`mord`],Zs(e.body,t,!0),t)},mathmlBuilder(e,t){return gc(e.body,t,!0)}}),J({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle()),r=Es(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`katex-overline`],[q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new oc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`mover`,[Z(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),J({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:Ks(r)}},htmlBuilder:(e,t)=>Os(Zs(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new X(`mphantom`,hc(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),J({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>K([`mord`,`rlap`],[K([`katex-inner`],[Y(e.body,t.withPhantom())]),K([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[new X(`mphantom`,hc(Ks(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),J({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=Q(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Y(e.body,t);return q({positionType:`shift`,positionData:-io(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new X(`mpadded`,[Z(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}});var vu=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]});J({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:vu,htmlBuilder(e,t){return K([`mord`,`reflectbox`],[Y(e.body,t)],t)},mathmlBuilder(e,t){return Z(e.body,t)}}),J({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:vu}),J({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),J({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=Q(t[0],`size`),o=Q(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Q(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=K([`mord`,`katex-rule`],[],t),r=io(e.width,t),i=io(e.height,t),a=e.shift?io(e.shift,t):0;return n.style.borderRightWidth=F(r),n.style.borderTopWidth=F(i),n.style.bottom=F(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=io(e.width,t),r=io(e.height,t),i=e.shift?io(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,F(n)),o.setAttribute(`height`,F(r));var s=new X(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,F(i)):(s.setAttribute(`height`,F(i)),s.setAttribute(`depth`,F(-i))),s.setAttribute(`voffset`,F(i)),s}});function yu(e,t,n){for(var r=Zs(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`katex-sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return Os(r)}var bu=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];J({type:`sizing`,names:bu,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:bu.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return yu(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new X(`mstyle`,hc(e.body,n));return r.setAttribute(`mathsize`,F(n.sizeMultiplier)),r}}),J({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&Q(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=Lc(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=K([],[Y(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return K([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return K([`mord`],[q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Z(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),J({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=ks(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<P.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,o=bl(n.height+n.depth+a+r,t),s=o.span,c=o.ruleWidth,l=o.advanceWidth,u=s.height-c;u>n.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=s.height-n.height-a-c;n.style.paddingLeft=F(l);var f=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:s},{type:`kern`,size:c}]});if(e.index){var p=t.havingStyle(P.SCRIPTSCRIPT),m=Y(e.index,p,t);return K([`mord`,`sqrt`],[K([`katex-root`],[q({positionType:`shift`,positionData:-(.6*(f.height-f.depth)),children:[{type:`elem`,elem:m}]})]),f],t)}else return K([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new X(`mroot`,[Z(n,t),Z(r,t)]):new X(`msqrt`,[Z(n,t)])}});var xu={display:P.DISPLAY,text:P.TEXT,script:P.SCRIPT,scriptscript:P.SCRIPTSCRIPT};function Su(e){return e in xu}J({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Su(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=xu[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),yu(e.body,r,t)},mathmlBuilder(e,t){var n=xu[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new X(`mstyle`,hc(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var Cu=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===P.DISPLAY.size||n.alwaysHandleSupSub)?pu:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===P.DISPLAY.size||n.limits)?_u:null:n.type===`accent`?pa(n.base)?Vc:null:n.type===`horizBrace`&&!e.sub===n.isOver?cu:null:null};Ws({type:`supsub`,htmlBuilder(e,t){var n=Cu(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=Y(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&pa(r);if(i){var p=t.havingStyle(t.style.sup());s=Y(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Y(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===P.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=F(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof go||y)&&(v=F(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=q({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=q({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=q({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return K([tc(o,`right`)||`mord`],[o,K([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Z(e.base,t)];e.sub&&a.push(Z(e.sub,t)),e.sup&&a.push(Z(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===P.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===P.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===P.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===P.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===P.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===P.DISPLAY)?`munder`:`msub`}return new X(o,a)}}),Ws({type:`atom`,htmlBuilder(e,t){return ys(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X(`mo`,[uc(e.text,e.mode)]);if(e.family===`bin`){var r=pc(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var wu={mi:`italic`,mn:`normal`,mtext:`normal`};Ws({type:`mathord`,htmlBuilder(e,t){return xs(e,t)},mathmlBuilder(e,t){var n=new X(`mi`,[uc(e.text,e.mode,t)]),r=pc(e,t)||`italic`;return r!==wu[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Ws({type:`textord`,htmlBuilder(e,t){return xs(e,t)},mathmlBuilder(e,t){var n=uc(e.text,e.mode,t),r=pc(e,t)||`normal`,i=e.mode===`text`?new X(`mtext`,[n]):/[0-9]/.test(e.text)?new X(`mn`,[n]):e.text===`\\prime`?new X(`mo`,[n]):new X(`mi`,[n]);return r!==wu[i.type]&&i.setAttribute(`mathvariant`,r),i}});var Tu=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),Eu=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]);Ws({type:`spacing`,htmlBuilder(e,t){var n=Eu.get(e.text),r=Tu.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=xs(e,t);return a.classes.push(i),a}else return K([`mspace`,i],[ys(e.text,e.mode,t)],t)}else if(r)return K([`mspace`,r],[],t);else throw new N(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Eu.has(e.text))n=new X(`mtext`,[new oc(`\xA0`)]);else if(Tu.has(e.text))return new X(`mspace`);else throw new N(`Unknown type of space "`+e.text+`"`);return n}});var Du=()=>{var e=new X(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Ws({type:`tag`,mathmlBuilder(e,t){var n=new X(`mtable`,[new X(`mtr`,[Du(),new X(`mtd`,[gc(e.body,t)]),Du(),new X(`mtd`,[gc(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Ou={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},ku={"\\textbf":`textbf`,"\\textmd":`textmd`},Au={"\\textit":`textit`,"\\textup":`textup`},ju=(e,t)=>{var n=e.font;return n?Ou[n]?t.withTextFontFamily(Ou[n]):ku[n]?t.withTextFontWeight(ku[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Au[n]):t};J({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:Ks(i),font:r}},htmlBuilder(e,t){var n=ju(e,t);return K([`mord`,`text`],Zs(e.body,n,!0),n)},mathmlBuilder(e,t){var n=ju(e,t);return gc(e.body,n)}}),J({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=Es(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`katex-underline`],[q({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new oc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`munder`,[Z(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),J({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=t.fontMetrics().axisHeight;return q({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new X(`mrow`,[new X(`mpadded`,[Z(e.body,t)],[`vcenter`])])}}),J({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new N(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Mu(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(vs(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return K([`mord`,`text`].concat(i.sizingClasses(t)),Cs(r),i)},mathmlBuilder(e,t){var n=new X(`mtext`,[new oc(Mu(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var Mu=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),Nu=Vs,Pu=`[ \r
|
|
319
|
+
`+h+` children.`);for(var v=0;v<h;v++){var y=new _o([new vo(d[v])],{width:`400em`,height:F(m),viewBox:`0 0 `+n+` `+p,preserveAspectRatio:_[v]+` slice`}),b=Ts([g[v]],[y],t);if(h===1)return{span:b,minWidth:f,height:m};b.style.height=F(m),l.push(b)}return{span:K([`katex-stretchy`],l,t),minWidth:f,height:m}}}var r=n(),i=r.span,a=r.minWidth,o=r.height;return i.height=o,i.style.height=F(o),a>0&&(i.style.minWidth=F(a)),i},jc=function(e,t,n,r,i){var a,o=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(a=K([`katex-stretchy`,t],[],i),t===`fbox`){var s=i.color&&i.getColor();s&&(a.style.borderColor=s)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new yo({x1:`0`,y1:`0`,x2:`100%`,y2:`100%`,"stroke-width":`0.046em`})),/^x?cancel$/.test(t)&&c.push(new yo({x1:`0`,y1:`100%`,x2:`100%`,y2:`0`,"stroke-width":`0.046em`})),a=Ts([],[new _o(c,{width:`100%`,height:F(o)})],i)}return a.height=o,a.style.height=F(o),a},Mc=[`bin`,`close`,`inner`,`open`,`punct`,`rel`],Nc=[`accent-token`,`mathord`,`op-token`,`spacing`,`textord`],Pc=new Set(Mc),Fc=new Set(Nc);function Ic(e){return Pc.has(e)}function Q(e,t){if(!e||e.type!==t)throw Error(`Expected node of type `+t+`, but got `+(e?`node of type `+e.type:String(e)));return e}function Lc(e){var t=Rc(e);if(!t)throw Error(`Expected node of symbol group type, but got `+(e?`node of type `+e.type:String(e)));return t}function Rc(e){return e.type===`atom`||Fc.has(e.type)?e:null}function zc(e,t,n){var r=``;for(var i of e.body)if(i.type===`textord`)r+=i.text;else if(n&&i.type===`spacing`&&i.text===` `)r+=` `;else throw new N(t,e);return r}var Bc=e=>{if(e instanceof go)return e;if(So(e)&&e.children.length===1)return Bc(e.children[0])},Vc=(e,t)=>{var n,r,i;e&&e.type===`supsub`?(r=Q(e.base,`accent`),n=r.base,e.base=n,i=xo(Y(e,t)),e.base=r):(r=Q(e,`accent`),n=r.base);var a=Y(n,t.havingCrampedStyle()),o=r.isShifty&&pa(n),s=0;o&&(s=Bc(a)?.skew??0);var c=r.label===`\\c`,l=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),u;if(r.isStretchy)u=Ac(r,t),u=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`elem`,elem:u,wrapperClasses:[`svg-align`],wrapperStyle:s>0?{width:`calc(100% - `+F(2*s)+`)`,marginLeft:F(2*s)}:void 0}]});else{var d,f;r.label===`\\vec`?(d=Fs(`vec`,t),f=Ps.vec[1]):(d=xs({type:`textord`,mode:r.mode,text:r.label},t),d=bo(d),d.italic=0,f=d.width,c&&(l+=d.depth)),u=K([`accent-body`],[d]);var p=r.label===`\\textcircled`;p&&(u.classes.push(`accent-full`),l=a.height);var m=s;p||(m-=f/2),u.style.left=F(m),r.label===`\\textcircled`&&(u.style.top=`.2em`),u=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:-l},{type:`elem`,elem:u}]})}var h=K([`mord`,`katex-accent`],[u],t);return i?(i.children[0]=h,i.height=Math.max(h.height,i.height),i.classes[0]=`mord`,i):h},Hc=(e,t)=>{var n=e.isStretchy?Dc(e.label):new X(`mo`,[uc(e.label,e.mode)]),r=new X(`mover`,[Z(e.base,t),n]);return r.setAttribute(`accent`,`true`),r},Uc=new RegExp([`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`].map(e=>`\\`+e).join(`|`));J({type:`accent`,names:[`\\acute`,`\\grave`,`\\ddot`,`\\tilde`,`\\bar`,`\\breve`,`\\check`,`\\hat`,`\\vec`,`\\dot`,`\\mathring`,`\\widecheck`,`\\widehat`,`\\widetilde`,`\\overrightarrow`,`\\overleftarrow`,`\\Overrightarrow`,`\\overleftrightarrow`,`\\overgroup`,`\\overlinesegment`,`\\overleftharpoon`,`\\overrightharpoon`],numArgs:1,handler:(e,t)=>{var n=Gs(t[0]),r=!Uc.test(e.funcName),i=!r||e.funcName===`\\widehat`||e.funcName===`\\widetilde`||e.funcName===`\\widecheck`;return{type:`accent`,mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:Vc,mathmlBuilder:Hc}),J({type:`accent`,names:[`\\'`,"\\`",`\\^`,`\\~`,`\\=`,`\\u`,`\\.`,`\\"`,`\\c`,`\\r`,`\\H`,`\\v`,`\\textcircled`],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`primitive`],handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r===`math`&&(gs({strict:e.parser.settings.strict,errorCode:`mathVsTextAccents`,errorMsg:`LaTeX's accent `+e.funcName+` works only in text mode`,report:!0}),r=`text`),{type:`accent`,mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}}}),J({type:`accentUnder`,names:[`\\underleftarrow`,`\\underrightarrow`,`\\underleftrightarrow`,`\\undergroup`,`\\underlinesegment`,`\\utilde`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`accentUnder`,mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Y(e.base,t),r=Ac(e,t),i=e.label===`\\utilde`?.12:0;return K([`mord`,`accentunder`],[q({positionType:`top`,positionData:n.height,children:[{type:`elem`,elem:r,wrapperClasses:[`svg-align`]},{type:`kern`,size:i},{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=Dc(e.label),r=new X(`munder`,[Z(e.base,t),n]);return r.setAttribute(`accentunder`,`true`),r}});var Wc=e=>{var t=new X(`mpadded`,e?[e]:[]);return t.setAttribute(`width`,`+0.6em`),t.setAttribute(`lspace`,`0.3em`),t};J({type:`xArrow`,names:[`\\xleftarrow`,`\\xrightarrow`,`\\xLeftarrow`,`\\xRightarrow`,`\\xleftrightarrow`,`\\xLeftrightarrow`,`\\xhookleftarrow`,`\\xhookrightarrow`,`\\xmapsto`,`\\xrightharpoondown`,`\\xrightharpoonup`,`\\xleftharpoondown`,`\\xleftharpoonup`,`\\xrightleftharpoons`,`\\xleftrightharpoons`,`\\xlongequal`,`\\xtwoheadrightarrow`,`\\xtwoheadleftarrow`,`\\xtofrom`,`\\xrightleftarrows`,`\\xrightequilibrium`,`\\xleftequilibrium`,`\\\\cdrightarrow`,`\\\\cdleftarrow`,`\\\\cdlongequal`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=e.funcName;return{type:`xArrow`,mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=ks(Y(e.body,r,t),t),a=e.label.slice(0,2)===`\\x`?`x`:`cd`;i.classes.push(a+`-arrow-pad`);var o;e.below&&(r=t.havingStyle(n.sub()),o=ks(Y(e.below,r,t),t),o.classes.push(a+`-arrow-pad`));var s=Ac(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;(i.depth>.25||e.label===`\\xleftequilibrium`)&&(l-=i.depth);var u;if(o){var d=-t.fontMetrics().axisHeight+o.height+.5*s.height+.111;u=q({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]},{type:`elem`,elem:o,shift:d}]})}else u=q({positionType:`individualShift`,children:[{type:`elem`,elem:i,shift:l},{type:`elem`,elem:s,shift:c,wrapperClasses:[`svg-align`]}]});return K([`mrel`,`x-arrow`],[u],t)},mathmlBuilder(e,t){var n=Dc(e.label);n.setAttribute(`minsize`,e.label.charAt(0)===`x`?`1.75em`:`3.0em`);var r;if(e.body){var i=Wc(Z(e.body,t));r=e.below?new X(`munderover`,[n,Wc(Z(e.below,t)),i]):new X(`mover`,[n,i])}else e.below?r=new X(`munder`,[n,Wc(Z(e.below,t))]):(r=Wc(),r=new X(`mover`,[n,r]));return r}});function Gc(e,t){var n=Zs(e.body,t,!0);return K([e.mclass],n,t)}function Kc(e,t){var n,r=hc(e.body,t);return e.mclass===`minner`?n=new X(`mpadded`,r):e.mclass===`mord`?e.isCharacterBox?(n=r[0],n.type=`mi`):n=new X(`mi`,r):(e.isCharacterBox?(n=r[0],n.type=`mo`):n=new X(`mo`,r),e.mclass===`mbin`?(n.attributes.lspace=`0.22em`,n.attributes.rspace=`0.22em`):e.mclass===`mpunct`?(n.attributes.lspace=`0em`,n.attributes.rspace=`0.17em`):(e.mclass===`mopen`||e.mclass===`mclose`)&&(n.attributes.lspace=`0em`,n.attributes.rspace=`0em`)),n}J({type:`mclass`,names:[`\\mathord`,`\\mathbin`,`\\mathrel`,`\\mathopen`,`\\mathclose`,`\\mathpunct`,`\\mathinner`],numArgs:1,primitive:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`mclass`,mode:n.mode,mclass:`m`+r.slice(5),body:Ks(i),isCharacterBox:pa(i)}},htmlBuilder:Gc,mathmlBuilder:Kc});var qc=e=>{var t=e.type===`ordgroup`&&e.body.length?e.body[0]:e;return t.type===`atom`&&(t.family===`bin`||t.family===`rel`)?`m`+t.family:`mord`};J({type:`mclass`,names:[`\\@binrel`],numArgs:2,handler(e,t){return{type:`mclass`,mode:e.parser.mode,mclass:qc(t[0]),body:Ks(t[1]),isCharacterBox:pa(t[1])}}}),J({type:`mclass`,names:[`\\stackrel`,`\\overset`,`\\underset`],numArgs:2,handler(e,t){var n=e.parser,r=e.funcName,i=t[1],a=t[0],o=r===`\\stackrel`?`mrel`:qc(i),s={type:`op`,mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!==`\\stackrel`,body:Ks(i)},c=r===`\\underset`?{type:`supsub`,mode:a.mode,base:s,sub:a}:{type:`supsub`,mode:a.mode,base:s,sup:a};return{type:`mclass`,mode:n.mode,mclass:o,body:[c],isCharacterBox:pa(c)}}}),J({type:`pmb`,names:[`\\pmb`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`pmb`,mode:e.parser.mode,mclass:qc(t[0]),body:Ks(t[0])}},htmlBuilder(e,t){var n=Zs(e.body,t,!0),r=K([e.mclass],n,t);return r.style.textShadow=`0.02em 0.01em 0.04px`,r},mathmlBuilder(e,t){var n=new X(`mstyle`,hc(e.body,t));return n.setAttribute(`style`,`text-shadow: 0.02em 0.01em 0.04px`),n}});var Jc={">":`\\\\cdrightarrow`,"<":`\\\\cdleftarrow`,"=":`\\\\cdlongequal`,A:`\\uparrow`,V:`\\downarrow`,"|":`\\Vert`,".":`no arrow`},Yc=()=>({type:`styling`,body:[],mode:`math`,style:`display`,resetFont:!0}),Xc=e=>e.type===`textord`&&e.text===`@`,Zc=(e,t)=>(e.type===`mathord`||e.type===`atom`)&&e.text===t;function Qc(e,t,n){var r=Jc[e];switch(r){case`\\\\cdrightarrow`:case`\\\\cdleftarrow`:return n.callFunction(r,[t[0]],[t[1]]);case`\\uparrow`:case`\\downarrow`:var i=n.callFunction(`\\\\cdleft`,[t[0]],[]),a={type:`atom`,text:r,mode:`math`,family:`rel`},o={type:`ordgroup`,mode:`math`,body:[i,n.callFunction(`\\Big`,[a],[]),n.callFunction(`\\\\cdright`,[t[1]],[])]};return n.callFunction(`\\\\cdparent`,[o],[]);case`\\\\cdlongequal`:return n.callFunction(`\\\\cdlongequal`,[],[]);case`\\Vert`:return n.callFunction(`\\Big`,[{type:`textord`,text:`\\Vert`,mode:`math`}],[]);default:return{type:`textord`,text:` `,mode:`math`}}}function $c(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set(`\\cr`,`\\\\\\relax`),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,`\\\\`)),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n===`&`||n===`\\\\`)e.consume();else if(n===`\\end`){t[t.length-1].length===0&&t.pop();break}else throw new N(`Expected \\\\ or \\cr or \\end`,e.nextToken)}for(var r=[],i=[r],a=0;a<t.length;a++){for(var o=t[a],s=Yc(),c=0;c<o.length;c++)if(!Xc(o[c]))s.body.push(o[c]);else{r.push(s),c+=1;var l=Lc(o[c]).text,u=[,,];if(u[0]={type:`ordgroup`,mode:`math`,body:[]},u[1]={type:`ordgroup`,mode:`math`,body:[]},!`=|.`.includes(l))if(`<>AV`.includes(l))for(var d=0;d<2;d++){for(var f=!0,p=c+1;p<o.length;p++){if(Zc(o[p],l)){f=!1,c=p;break}if(Xc(o[p]))throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[p]);u[d].body.push(o[p])}if(f)throw new N(`Missing a `+l+` character to complete a CD arrow.`,o[c])}else throw new N(`Expected one of "<>AV=|." after @`,o[c]);var m={type:`styling`,body:[Qc(l,u,e)],mode:`math`,style:`display`,resetFont:!0};r.push(m),s=Yc()}a%2==0?r.push(s):r.shift(),r=[],i.push(r)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:`math`,body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:Array(i[0].length).fill({type:`align`,align:`c`,pregap:.25,postgap:.25}),colSeparationType:`CD`,hLinesBeforeRow:Array(i.length+1).fill([])}}J({type:`cdlabel`,names:[`\\\\cdleft`,`\\\\cdright`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`cdlabel`,mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=ks(Y(e.label,n,t),t);return r.classes.push(`cd-label-`+e.side),r.style.bottom=F(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new X(`mrow`,[Z(e.label,t)]);return n=new X(`mpadded`,[n]),n.setAttribute(`width`,`0`),e.side===`left`&&n.setAttribute(`lspace`,`-1width`),n.setAttribute(`voffset`,`0.7em`),n=new X(`mstyle`,[n]),n.setAttribute(`displaystyle`,`false`),n.setAttribute(`scriptlevel`,`1`),n}}),J({type:`cdlabelparent`,names:[`\\\\cdparent`],numArgs:1,handler(e,t){return{type:`cdlabelparent`,mode:e.parser.mode,fragment:t[0]}},htmlBuilder(e,t){var n=ks(Y(e.fragment,t),t);return n.classes.push(`cd-vert-arrow`),n},mathmlBuilder(e,t){return new X(`mrow`,[Z(e.fragment,t)])}}),J({type:`textord`,names:[`\\@char`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=zc(Q(t[0],`ordgroup`),`\\@char has non-numeric argument`),i=parseInt(r),a;if(isNaN(i))throw new N(`\\@char has non-numeric argument `+r);if(i<0||i>1114111)throw new N(`\\@char with invalid code point `+r);return i<=65535?a=String.fromCharCode(i):(i-=65536,a=String.fromCharCode((i>>10)+55296,(i&1023)+56320)),{type:`textord`,mode:n.mode,text:a}}}),J({type:`color`,names:[`\\textcolor`],numArgs:2,allowedInText:!0,argTypes:[`color`,`original`],handler(e,t){var n=e.parser,r=Q(t[0],`color-token`).color,i=t[1];return{type:`color`,mode:n.mode,color:r,body:Ks(i)}},htmlBuilder:(e,t)=>Os(Zs(e.body,t.withColor(e.color),!1)),mathmlBuilder:(e,t)=>{var n=new X(`mstyle`,hc(e.body,t.withColor(e.color)));return n.setAttribute(`mathcolor`,e.color),n}}),J({type:`color`,names:[`\\color`],numArgs:1,allowedInText:!0,argTypes:[`color`],handler(e,t){var n=e.parser,r=e.breakOnTokenText,i=Q(t[0],`color-token`).color;n.gullet.macros.set(`\\current@color`,i);var a=n.parseExpression(!0,r);return{type:`color`,mode:n.mode,color:i,body:a}}}),J({type:`cr`,names:[`\\\\`],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=t.gullet.future().text===`[`?t.parseSizeGroup(!0):null,r=!t.settings.displayMode||!gs({strict:t.settings.strict,errorCode:`newLineInDisplayMode`,errorMsg:`In LaTeX, \\\\ or \\newline does nothing in display mode`,report:!1});return{type:`cr`,mode:t.mode,newLine:r,size:n&&Q(n,`size`).value}},htmlBuilder(e,t){var n=K([`mspace`],[],t);return e.newLine&&(n.classes.push(`katex-newline`),e.size&&(n.style.marginTop=F(io(e.size,t)))),n},mathmlBuilder(e,t){var n=new X(`mspace`);return e.newLine&&(n.setAttribute(`linebreak`,`newline`),e.size&&n.setAttribute(`height`,F(io(e.size,t)))),n}});var el={"\\global":`\\global`,"\\long":`\\\\globallong`,"\\\\globallong":`\\\\globallong`,"\\def":`\\gdef`,"\\gdef":`\\gdef`,"\\edef":`\\xdef`,"\\xdef":`\\xdef`,"\\let":`\\\\globallet`,"\\futurelet":`\\\\globalfuture`},tl=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new N(`Expected a control sequence`,e);return t},nl=e=>{var t=e.gullet.popToken();return t.text===`=`&&(t=e.gullet.popToken(),t.text===` `&&(t=e.gullet.popToken())),t},rl=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i??=(n.noexpand=!0,{tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};J({type:`internal`,names:[`\\global`,`\\long`,`\\\\globallong`],numArgs:0,allowedInText:!0,handler(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var r=t.fetch();if(el[r.text])return(n===`\\global`||n===`\\\\globallong`)&&(r.text=el[r.text]),Q(t.parseFunction(),`internal`);throw new N(`Invalid token after macro prefix`,r)}}),J({type:`internal`,names:[`\\def`,`\\gdef`,`\\edef`,`\\xdef`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new N(`Expected a control sequence`,r);for(var a=0,o,s=[[]];t.gullet.future().text!==`{`;)if(r=t.gullet.popToken(),r.text===`#`){if(t.gullet.future().text===`{`){o=t.gullet.future(),s[a].push(`{`);break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new N(`Invalid argument number "`+r.text+`"`);if(parseInt(r.text)!==a+1)throw new N(`Argument number "`+r.text+`" out of order`);a++,s.push([])}else if(r.text===`EOF`)throw new N(`Expected a macro definition`);else s[a].push(r.text);var c=t.gullet.consumeArg().tokens;return o&&c.unshift(o),(n===`\\edef`||n===`\\xdef`)&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(i,{tokens:c,numArgs:a,delimiters:s},n===el[n]),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\let`,`\\\\globallet`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=tl(t.gullet.popToken());return t.gullet.consumeSpaces(),rl(t,r,nl(t),n===`\\\\globallet`),{type:`internal`,mode:t.mode}}}),J({type:`internal`,names:[`\\futurelet`,`\\\\globalfuture`],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var t=e.parser,n=e.funcName,r=tl(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return rl(t,r,a,n===`\\\\globalfuture`),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:`internal`,mode:t.mode}}});var il=function(e,t,n){var r=Do(Ao.math[e]&&Ao.math[e].replace||e,t,n);if(!r)throw Error(`Unsupported symbol `+e+` and font size `+t+`.`);return r},al=function(e,t,n,r){var i=n.havingBaseStyle(t),a=K(r.concat(i.sizingClasses(n)),[e],n),o=i.sizeMultiplier/n.sizeMultiplier;return a.height*=o,a.depth*=o,a.maxFontSize=i.sizeMultiplier,a},ol=function(e,t,n){var r=t.havingBaseStyle(n),i=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push(`delimcenter`),e.style.top=F(i),e.height-=i,e.depth+=i},sl=function(e,t,n,r,i,a){var o=al(vs(e,`Main-Regular`,i,r),t,r,a);return n&&ol(o,r,t),o},cl=function(e,t,n,r){return vs(e,`Size`+t+`-Regular`,n,r)},ll=function(e,t,n,r,i,a){var o=cl(e,t,i,r),s=al(K([`delimsizing`,`size`+t],[o],r),P.TEXT,r,a);return n&&ol(s,r,P.TEXT),s},ul=function(e,t,n,r){return{type:`elem`,elem:K([`delimsizinginner`,t===`Size1-Regular`?`delim-size1`:`delim-size4`],[K([],[vs(e,t,n,r)])])}},dl=function(e,t,n){var r=Co[`Size4-Regular`][e.charCodeAt(0)]?Co[`Size4-Regular`][e.charCodeAt(0)][4]:Co[`Size1-Regular`][e.charCodeAt(0)][4],i=Ts([],[new _o([new vo(`inner`,Xa(e,Math.round(1e3*t)))],{width:F(r),height:F(t),style:`width:`+F(r),viewBox:`0 0 `+1e3*r+` `+Math.round(1e3*t),preserveAspectRatio:`xMinYMin`})],n);return i.height=t,i.style.height=F(t),i.style.width=F(r),{type:`elem`,elem:i}},fl=.008,pl={type:`kern`,size:-1*fl},ml=new Set([`|`,`\\lvert`,`\\rvert`,`\\vert`]),hl=new Set([`\\|`,`\\lVert`,`\\rVert`,`\\Vert`]),gl=function(e,t,n,r,i,a){var o,s,c,l,u=``,d=0;o=c=l=e,s=null;var f=`Size1-Regular`;e===`\\uparrow`?c=l=`⏐`:e===`\\Uparrow`?c=l=`‖`:e===`\\downarrow`?o=c=`⏐`:e===`\\Downarrow`?o=c=`‖`:e===`\\updownarrow`?(o=`\\uparrow`,c=`⏐`,l=`\\downarrow`):e===`\\Updownarrow`?(o=`\\Uparrow`,c=`‖`,l=`\\Downarrow`):ml.has(e)?(c=`∣`,u=`vert`,d=333):hl.has(e)?(c=`∥`,u=`doublevert`,d=556):e===`[`||e===`\\lbrack`?(o=`⎡`,c=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lbrack`,d=667):e===`]`||e===`\\rbrack`?(o=`⎤`,c=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rbrack`,d=667):e===`\\lfloor`||e===`⌊`?(c=o=`⎢`,l=`⎣`,f=`Size4-Regular`,u=`lfloor`,d=667):e===`\\lceil`||e===`⌈`?(o=`⎡`,c=l=`⎢`,f=`Size4-Regular`,u=`lceil`,d=667):e===`\\rfloor`||e===`⌋`?(c=o=`⎥`,l=`⎦`,f=`Size4-Regular`,u=`rfloor`,d=667):e===`\\rceil`||e===`⌉`?(o=`⎤`,c=l=`⎥`,f=`Size4-Regular`,u=`rceil`,d=667):e===`(`||e===`\\lparen`?(o=`⎛`,c=`⎜`,l=`⎝`,f=`Size4-Regular`,u=`lparen`,d=875):e===`)`||e===`\\rparen`?(o=`⎞`,c=`⎟`,l=`⎠`,f=`Size4-Regular`,u=`rparen`,d=875):e===`\\{`||e===`\\lbrace`?(o=`⎧`,s=`⎨`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\}`||e===`\\rbrace`?(o=`⎫`,s=`⎬`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lgroup`||e===`⟮`?(o=`⎧`,l=`⎩`,c=`⎪`,f=`Size4-Regular`):e===`\\rgroup`||e===`⟯`?(o=`⎫`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):e===`\\lmoustache`||e===`⎰`?(o=`⎧`,l=`⎭`,c=`⎪`,f=`Size4-Regular`):(e===`\\rmoustache`||e===`⎱`)&&(o=`⎫`,l=`⎩`,c=`⎪`,f=`Size4-Regular`);var p=il(o,f,i),m=p.height+p.depth,h=il(c,f,i),g=h.height+h.depth,_=il(l,f,i),v=_.height+_.depth,y=0,b=1;if(s!==null){var x=il(s,f,i);y=x.height+x.depth,b=2}var S=m+v+y,C=S+Math.max(0,Math.ceil((t-S)/(b*g)))*b*g,ee=r.fontMetrics().axisHeight;n&&(ee*=r.sizeMultiplier);var te=C/2-ee,ne=[];if(u.length>0){var re=C-m-v,w=Math.round(C*1e3),T=Qa(u,Math.round(re*1e3)),ie=new vo(u,T),ae=F(d/1e3),oe=F(w/1e3),se=Ts([],[new _o([ie],{width:ae,height:oe,viewBox:`0 0 `+d+` `+w})],r);se.height=w/1e3,se.style.width=ae,se.style.height=oe,ne.push({type:`elem`,elem:se})}else{if(ne.push(ul(l,f,i,r)),ne.push(pl),s===null){var ce=C-m-v+2*fl;ne.push(dl(c,ce,r))}else{var le=(C-m-v-y)/2+2*fl;ne.push(dl(c,le,r)),ne.push(pl),ne.push(ul(s,f,i,r)),ne.push(pl),ne.push(dl(c,le,r))}ne.push(pl),ne.push(ul(o,f,i,r))}var ue=r.havingBaseStyle(P.TEXT);return al(K([`delimsizing`,`mult`],[q({positionType:`bottom`,positionData:te,children:ne})],ue),P.TEXT,r,a)},_l=80,vl=.08,yl=function(e,t,n,r,i){return Ts([`hide-tail`],[new _o([new vo(e,Ya(e,r,n))],{width:`400em`,height:F(t),viewBox:`0 0 400000 `+n,preserveAspectRatio:`xMinYMin slice`})],i)},bl=function(e,t){var n=t.havingBaseSizing(),r=Al(`\\surd`,e*n.sizeMultiplier,Ol,n),i=n.sizeMultiplier,a=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),o,s,c,l,u;return r.type===`small`?(l=1e3+1e3*a+_l,e<1?i=1:e<1.4&&(i=.7),s=(1+a+vl)/i,c=(1+a)/i,o=yl(`sqrtMain`,s,l,a,t),o.style.minWidth=`0.853em`,u=.833/i):r.type===`large`?(l=(1e3+_l)*wl[r.size],c=(wl[r.size]+a)/i,s=(wl[r.size]+a+vl)/i,o=yl(`sqrtSize`+r.size,s,l,a,t),o.style.minWidth=`1.02em`,u=1/i):(s=e+a+vl,c=e+a,l=Math.floor(1e3*e+a)+_l,o=yl(`sqrtTall`,s,l,a,t),o.style.minWidth=`0.742em`,u=1.056),o.height=c,o.style.height=F(s),{span:o,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+a)*i}},xl=new Set([`(`,`\\lparen`,`)`,`\\rparen`,`[`,`\\lbrack`,`]`,`\\rbrack`,`\\{`,`\\lbrace`,`\\}`,`\\rbrace`,`\\lfloor`,`\\rfloor`,`⌊`,`⌋`,`\\lceil`,`\\rceil`,`⌈`,`⌉`,`\\surd`]),Sl=new Set([`\\uparrow`,`\\downarrow`,`\\updownarrow`,`\\Uparrow`,`\\Downarrow`,`\\Updownarrow`,`|`,`\\|`,`\\vert`,`\\Vert`,`\\lvert`,`\\rvert`,`\\lVert`,`\\rVert`,`\\lgroup`,`\\rgroup`,`⟮`,`⟯`,`\\lmoustache`,`\\rmoustache`,`⎰`,`⎱`]),Cl=new Set([`<`,`>`,`\\langle`,`\\rangle`,`/`,`\\backslash`,`\\lt`,`\\gt`]),wl=[0,1.2,1.8,2.4,3],Tl=function(e,t,n,r,i){if(e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`),xl.has(e)||Cl.has(e))return ll(e,t,!1,n,r,i);if(Sl.has(e))return gl(e,wl[t],!1,n,r,i);throw new N(`Illegal delimiter: '`+e+`'`)},El=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4}],Dl=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`stack`}],Ol=[{type:`small`,style:P.SCRIPTSCRIPT},{type:`small`,style:P.SCRIPT},{type:`small`,style:P.TEXT},{type:`large`,size:1},{type:`large`,size:2},{type:`large`,size:3},{type:`large`,size:4},{type:`stack`}],kl=function(e){if(e.type===`small`)return`Main-Regular`;if(e.type===`large`)return`Size`+e.size+`-Regular`;if(e.type===`stack`)return`Size4-Regular`;var t=e.type;throw Error(`Add support for delim type '`+t+`' here.`)},Al=function(e,t,n,r){for(var i=Math.min(2,3-r.style.size);i<n.length;i++){var a=n[i];if(a.type===`stack`)break;var o=il(e,kl(a),`math`),s=o.height+o.depth;if(a.type===`small`){var c=r.havingBaseStyle(a.style);s*=c.sizeMultiplier}if(s>t)return a}return n[n.length-1]},jl=function(e,t,n,r,i,a){e===`<`||e===`\\lt`||e===`⟨`?e=`\\langle`:(e===`>`||e===`\\gt`||e===`⟩`)&&(e=`\\rangle`);var o=Cl.has(e)?El:xl.has(e)?Ol:Dl,s=Al(e,t,o,r);return s.type===`small`?sl(e,s.style,n,r,i,a):s.type===`large`?ll(e,s.size,n,r,i,a):gl(e,t,n,r,i,a)},Ml=function(e,t,n,r,i,a){var o=r.fontMetrics().axisHeight*r.sizeMultiplier,s=901,c=5/r.fontMetrics().ptPerEm,l=Math.max(t-o,n+o);return jl(e,Math.max(l/500*s,2*l-c),!0,r,i,a)},Nl={"\\bigl":{mclass:`mopen`,size:1},"\\Bigl":{mclass:`mopen`,size:2},"\\biggl":{mclass:`mopen`,size:3},"\\Biggl":{mclass:`mopen`,size:4},"\\bigr":{mclass:`mclose`,size:1},"\\Bigr":{mclass:`mclose`,size:2},"\\biggr":{mclass:`mclose`,size:3},"\\Biggr":{mclass:`mclose`,size:4},"\\bigm":{mclass:`mrel`,size:1},"\\Bigm":{mclass:`mrel`,size:2},"\\biggm":{mclass:`mrel`,size:3},"\\Biggm":{mclass:`mrel`,size:4},"\\big":{mclass:`mord`,size:1},"\\Big":{mclass:`mord`,size:2},"\\bigg":{mclass:`mord`,size:3},"\\Bigg":{mclass:`mord`,size:4}},Pl=new Set(`(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.`.split(`,`));function Fl(e){return`isMiddle`in e}function Il(e,t){var n=Rc(e);if(n&&Pl.has(n.text))return n;throw n?new N(`Invalid delimiter '`+n.text+`' after '`+t.funcName+`'`,e):new N(`Invalid delimiter type '`+e.type+`'`,e)}J({type:`delimsizing`,names:[`\\bigl`,`\\Bigl`,`\\biggl`,`\\Biggl`,`\\bigr`,`\\Bigr`,`\\biggr`,`\\Biggr`,`\\bigm`,`\\Bigm`,`\\biggm`,`\\Biggm`,`\\big`,`\\Big`,`\\bigg`,`\\Bigg`],numArgs:1,argTypes:[`primitive`],handler:(e,t)=>{var n=Il(Gs(t[0]),e);return{type:`delimsizing`,mode:e.parser.mode,size:Nl[e.funcName].size,mclass:Nl[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim===`.`?K([e.mclass]):Tl(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!==`.`&&t.push(uc(e.delim,e.mode));var n=new X(`mo`,t);e.mclass===`mopen`||e.mclass===`mclose`?n.setAttribute(`fence`,`true`):n.setAttribute(`fence`,`false`),n.setAttribute(`stretchy`,`true`);var r=F(wl[e.size]);return n.setAttribute(`minsize`,r),n.setAttribute(`maxsize`,r),n}});function Ll(e){if(!e.body)throw Error(`Bug: The leftright ParseNode wasn't fully parsed.`)}J({type:`leftright-right`,names:[`\\right`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser.gullet.macros.get(`\\current@color`);if(n&&typeof n!=`string`)throw new N(`\\current@color set to non-string in \\right`);return{type:`leftright-right`,mode:e.parser.mode,delim:Il(t[0],e).text,color:n}}}),J({type:`leftright`,names:[`\\left`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Il(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect(`\\right`,!1);var a=Q(r.parseFunction(),`leftright-right`);return{type:`leftright`,mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Ll(e);for(var n=Zs(e.body,t,!0,[`mopen`,`mclose`]),r=0,i=0,a=!1,o=0;o<n.length;o++){var s=n[o];Fl(s)?a=!0:(r=Math.max(n[o].height,r),i=Math.max(n[o].depth,i))}r*=t.sizeMultiplier,i*=t.sizeMultiplier;var c=e.left===`.`?nc(t,[`mopen`]):Ml(e.left,r,i,t,e.mode,[`mopen`]);if(n.unshift(c),a)for(var l=1;l<n.length;l++){var u=n[l];if(Fl(u)){var d=u.isMiddle;n[l]=Ml(d.delim,r,i,d.options,e.mode,[])}}var f;if(e.right===`.`)f=nc(t,[`mclose`]);else{var p=e.rightColor?t.withColor(e.rightColor):t;f=Ml(e.right,r,i,p,e.mode,[`mclose`])}return n.push(f),K([`minner`],n,t)},mathmlBuilder:(e,t)=>{Ll(e);var n=hc(e.body,t);if(e.left!==`.`){var r=new X(`mo`,[uc(e.left,e.mode)]);r.setAttribute(`fence`,`true`),n.unshift(r)}if(e.right!==`.`){var i=new X(`mo`,[uc(e.right,e.mode)]);i.setAttribute(`fence`,`true`),e.rightColor&&i.setAttribute(`mathcolor`,e.rightColor),n.push(i)}return dc(n)}}),J({type:`middle`,names:[`\\middle`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=Il(t[0],e);if(!e.parser.leftrightDepth)throw new N(`\\middle without preceding \\left`,n);return{type:`middle`,mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim===`.`?n=nc(t,[]):(n=Tl(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=new X(`mo`,[e.delim===`\\vert`||e.delim===`|`?uc(`|`,`text`):uc(e.delim,e.mode)]);return n.setAttribute(`fence`,`true`),n.setAttribute(`lspace`,`0.05em`),n.setAttribute(`rspace`,`0.05em`),n}}),J({type:`enclose`,names:[`\\colorbox`],numArgs:2,allowedInText:!0,argTypes:[`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=t[1];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:a,body:o}},htmlBuilder:(e,t)=>{var n=ks(Y(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,o,s=pa(e.body);if(r===`sout`)a=K([`katex-stretchy`,`katex-sout`]),a.height=t.fontMetrics().defaultRuleThickness/i,o=-.5*t.fontMetrics().xHeight;else if(r===`phase`){var c=io({number:.6,unit:`pt`},t),l=io({number:.35,unit:`ex`},t),u=t.havingBaseSizing();i/=u.sizeMultiplier;var d=n.height+n.depth+c+l;n.style.paddingLeft=F(d/2+c);var f=Math.floor(1e3*d*i);a=Ts([`hide-tail`],[new _o([new vo(`phase`,qa(f))],{width:`400em`,height:F(f/1e3),viewBox:`0 0 400000 `+f,preserveAspectRatio:`xMinYMin slice`})],t),a.style.height=F(d),o=n.depth+c+l}else{/cancel/.test(r)?s||n.classes.push(`cancel-pad`):r===`angl`?n.classes.push(`anglpad`):n.classes.push(`boxpad`);var p,m,h=0;/box/.test(r)?(h=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),p=t.fontMetrics().fboxsep+(r===`colorbox`?0:h),m=p):r===`angl`?(h=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),p=4*h,m=Math.max(0,.25-n.depth)):(p=s?.2:0,m=p),a=jc(n,r,p,m,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle=`solid`,a.style.borderWidth=F(h)):r===`angl`&&h!==.049&&(a.style.borderTopWidth=F(h),a.style.borderRightWidth=F(h)),o=n.depth+m,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var g;if(e.backgroundColor)g=q({positionType:`individualShift`,children:[{type:`elem`,elem:a,shift:o},{type:`elem`,elem:n,shift:0}]});else{var _=/cancel|phase/.test(r)?[`svg-align`]:[];g=q({positionType:`individualShift`,children:[{type:`elem`,elem:n,shift:0},{type:`elem`,elem:a,shift:o,wrapperClasses:_}]})}return/cancel/.test(r)&&(g.height=n.height,g.depth=n.depth),/cancel/.test(r)&&!s?K([`mord`,`cancel-lap`],[g],t):K([`mord`],[g],t)},mathmlBuilder:(e,t)=>{var n,r=new X(e.label.includes(`colorbox`)?`mpadded`:`menclose`,[Z(e.body,t)]);switch(e.label){case`\\cancel`:r.setAttribute(`notation`,`updiagonalstrike`);break;case`\\bcancel`:r.setAttribute(`notation`,`downdiagonalstrike`);break;case`\\phase`:r.setAttribute(`notation`,`phasorangle`);break;case`\\sout`:r.setAttribute(`notation`,`horizontalstrike`);break;case`\\fbox`:r.setAttribute(`notation`,`box`);break;case`\\angl`:r.setAttribute(`notation`,`actuarial`);break;case`\\fcolorbox`:case`\\colorbox`:if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute(`width`,`+`+2*n+`pt`),r.setAttribute(`height`,`+`+2*n+`pt`),r.setAttribute(`lspace`,n+`pt`),r.setAttribute(`voffset`,n+`pt`),e.label===`\\fcolorbox`){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute(`style`,`border: `+F(i)+` solid `+e.borderColor)}break;case`\\xcancel`:r.setAttribute(`notation`,`updiagonalstrike downdiagonalstrike`);break}return e.backgroundColor&&r.setAttribute(`mathbackground`,e.backgroundColor),r}}),J({type:`enclose`,names:[`\\fcolorbox`],numArgs:3,allowedInText:!0,argTypes:[`color`,`color`,`hbox`],handler(e,t,n){var r=e.parser,i=e.funcName,a=Q(t[0],`color-token`).color,o=Q(t[1],`color-token`).color,s=t[2];return{type:`enclose`,mode:r.mode,label:i,backgroundColor:o,borderColor:a,body:s}}}),J({type:`enclose`,names:[`\\fbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\fbox`,body:t[0]}}}),J({type:`enclose`,names:[`\\cancel`,`\\bcancel`,`\\xcancel`,`\\phase`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),J({type:`enclose`,names:[`\\sout`],numArgs:1,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName;n.mode===`math`&&gs({strict:n.settings.strict,errorCode:`mathVsSout`,errorMsg:`LaTeX's \\sout works only in text mode`,report:!0});var i=t[0];return{type:`enclose`,mode:n.mode,label:r,body:i}}}),J({type:`enclose`,names:[`\\angl`],numArgs:1,argTypes:[`hbox`],allowedInText:!1,handler(e,t){return{type:`enclose`,mode:e.parser.mode,label:`\\angl`,body:t[0]}}});var Rl={};function zl(e){for(var t=e.type,n=e.names,r=e.props,i=e.handler,a=e.htmlBuilder,o=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},c=0;c<n.length;++c)Rl[n[c]]=s;a&&(Hs[t]=a),o&&(Us[t]=o)}var Bl={};function $(e,t){Bl[e]=t}var Vl=class e{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new e(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}},Hl=class e{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(t,n){return new e(n,Vl.range(this,t))}};function Ul(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n===`\\relax`&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n===`\\hline`||n===`\\hdashline`;)e.consume(),t.push(n===`\\hdashline`),e.consumeSpaces(),n=e.fetch().text;return t}var Wl=e=>{if(!e.parser.settings.displayMode)throw new N(`{`+e.envName+`} can be used only in display mode.`)},Gl=new Set([`gather`,`gather*`]);function Kl(e){if(!e.includes(`ed`))return!e.includes(`*`)}function ql(e,t,n){var r=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,o=t.arraystretch,s=t.colSeparationType,c=t.autoTag,l=t.singleRow,u=t.emptySingleRow,d=t.maxNumCols,f=t.leqno;if(e.gullet.beginGroup(),l||e.gullet.macros.set(`\\cr`,`\\\\\\relax`),!o){var p=e.gullet.expandMacroAsText(`\\arraystretch`);if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new N(`Invalid \\arraystretch: `+p)}e.gullet.beginGroup();var m=[],h=[m],g=[],_=[],v=c==null?void 0:[];function y(){c&&e.gullet.macros.set(`\\@eqnsw`,`1`,!0)}function b(){v&&(e.gullet.macros.get(`\\df@tag`)?(v.push(e.subparse([new Hl(`\\df@tag`)])),e.gullet.macros.set(`\\df@tag`,void 0,!0)):v.push(!!c&&e.gullet.macros.get(`\\@eqnsw`)===`1`))}for(y(),_.push(Ul(e));;){var x=e.parseExpression(!1,l?`\\end`:`\\\\`);e.gullet.endGroup(),e.gullet.beginGroup();var S={type:`ordgroup`,mode:e.mode,body:x};n&&(S={type:`styling`,mode:e.mode,style:n,resetFont:!0,body:[S]}),m.push(S);var C=e.fetch().text;if(C===`&`){if(d&&m.length===d){if(l||s)throw new N(`Too many tab characters: &`,e.nextToken);gs({strict:e.settings.strict,errorCode:`textEnv`,errorMsg:`Too few columns specified in the {array} column argument.`,report:!0})}e.consume()}else if(C===`\\end`){b(),m.length===1&&S.type===`styling`&&S.body.length===1&&S.body[0].type===`ordgroup`&&S.body[0].body.length===0&&(h.length>1||!u)&&!Array.isArray(v?.[v.length-1])&&!(c&&v?.[v.length-1]===!0)&&h.pop(),_.length<h.length+1&&_.push([]);break}else if(C===`\\\\`){e.consume();var ee=void 0;e.gullet.future().text!==` `&&(ee=e.parseSizeGroup(!0)),g.push(ee?ee.value:null),b(),_.push(Ul(e)),m=[],h.push(m),y()}else throw new N(`Expected & or \\\\ or \\cr or \\end`,e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:`array`,mode:e.mode,addJot:i,arraystretch:o,body:h,cols:a,rowGaps:g,hskipBeforeAndAfter:r,hLinesBeforeRow:_,colSeparationType:s,tags:v,leqno:f}}function Jl(e){return e.slice(0,1)===`d`?`display`:`text`}var Yl=function(e,t){var n,r,i=e.body.length,a=e.hLinesBeforeRow,o=0,s=Array(i),c=[],l=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),u=1/t.fontMetrics().ptPerEm,d=5*u;e.colSeparationType&&e.colSeparationType===`small`&&(d=.2778*(t.havingStyle(P.SCRIPT).sizeMultiplier/t.sizeMultiplier));var f=e.colSeparationType===`CD`?io({number:3,unit:`ex`},t):12*u,p=3*u,m=e.arraystretch*f,h=.7*m,g=.3*m,_=0;function v(e){for(var t=0;t<e.length;++t)t>0&&(_+=.25),c.push({pos:_,isDashed:e[t]})}for(v(a[0]),n=0;n<e.body.length;++n){var y=e.body[n],b=h,x=g;o<y.length&&(o=y.length);var S={cells:Array(y.length),height:0,depth:0,pos:0};for(r=0;r<y.length;++r){var C=Y(y[r],t);x<C.depth&&(x=C.depth),b<C.height&&(b=C.height),S.cells[r]=C}var ee=e.rowGaps[n],te=0;ee&&(te=io(ee,t),te>0&&(te+=g,x<te&&(x=te),te=0)),e.addJot&&n<e.body.length-1&&(x+=p),S.height=b,S.depth=x,_+=b,S.pos=_,_+=x+te,s[n]=S,v(a[n+1])}var ne=_/2+t.fontMetrics().axisHeight,re=e.cols||[],w=[],T,ie,ae=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<i;++n){var oe=s[n],se=oe.pos-ne,ce=e.tags[n],le=void 0;le=ce===!0?K([`eqn-num`],[],t):ce===!1?K([],[],t):K([],Zs(ce,t,!0),t),le.depth=oe.depth,le.height=oe.height,ae.push({type:`elem`,elem:le,shift:se})}for(r=0,ie=0;r<o||ie<re.length;++r,++ie){for(var ue=re[ie],de=!0;(fe=ue)?.type===`separator`;){var fe;if(de||(T=K([`arraycolsep`],[]),T.style.width=F(t.fontMetrics().doubleRuleSep),w.push(T)),ue.separator===`|`||ue.separator===`:`){var pe=ue.separator===`|`?`solid`:`dashed`,me=K([`vertical-separator`],[],t);me.style.height=F(_),me.style.borderRightWidth=F(l),me.style.borderRightStyle=pe,me.style.margin=`0 `+F(-l/2);var he=_-ne;he&&(me.style.verticalAlign=F(-he)),w.push(me)}else throw new N(`Invalid separator type: `+ue.separator);ie++,ue=re[ie],de=!1}if(!(r>=o)){var ge=void 0;(r>0||e.hskipBeforeAndAfter)&&(ge=ue?.pregap??d,ge!==0&&(T=K([`arraycolsep`],[]),T.style.width=F(ge),w.push(T)));var _e=[];for(n=0;n<i;++n){var E=s[n],ve=E.cells[r];if(ve){var ye=E.pos-ne;ve.depth=E.depth,ve.height=E.height,_e.push({type:`elem`,elem:ve,shift:ye})}}var be=q({positionType:`individualShift`,children:_e}),xe=K([`col-align-`+(ue?.align||`c`)],[be]);w.push(xe),(r<o-1||e.hskipBeforeAndAfter)&&(ge=ue?.postgap??d,ge!==0&&(T=K([`arraycolsep`],[]),T.style.width=F(ge),w.push(T)))}}var Se=K([`mtable`],w);if(c.length>0){for(var Ce=Es(`katex-hline`,t,l),we=Es(`katex-hdashline`,t,l),Te=[{type:`elem`,elem:Se,shift:0}];c.length>0;){var Ee=c.pop(),De=Ee.pos-ne;Ee.isDashed?Te.push({type:`elem`,elem:we,shift:De}):Te.push({type:`elem`,elem:Ce,shift:De})}Se=q({positionType:`individualShift`,children:Te})}if(ae.length===0)return K([`mord`],[Se],t);var Oe=K([`katex-tag`],[q({positionType:`individualShift`,children:ae})],t);return Os([Se,Oe])},Xl={c:`center `,l:`left `,r:`right `},Zl=function(e,t){for(var n=[],r=new X(`mtd`,[],[`mtr-glue`]),i=new X(`mtd`,[],[`mml-eqn-num`]),a=0;a<e.body.length;a++){for(var o=e.body[a],s=[],c=0;c<o.length;c++)s.push(new X(`mtd`,[Z(o[c],t)]));e.tags&&e.tags[a]&&(s.unshift(r),s.push(r),e.leqno?s.unshift(i):s.push(i)),n.push(new X(`mtr`,s))}var l=new X(`mtable`,n),u=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);l.setAttribute(`rowspacing`,F(u));var d=``,f=``;if(e.cols&&e.cols.length>0){var p=e.cols,m=``,h=!1,g=0,_=p.length;p[0].type===`separator`&&(d+=`top `,g=1),p[p.length-1].type===`separator`&&(d+=`bottom `,--_);for(var v=g;v<_;v++){var y=p[v];y.type===`align`?(f+=Xl[y.align],h&&(m+=`none `),h=!0):y.type===`separator`&&(h&&=(m+=y.separator===`|`?`solid `:`dashed `,!1))}l.setAttribute(`columnalign`,f.trim()),/[sd]/.test(m)&&l.setAttribute(`columnlines`,m.trim())}if(e.colSeparationType===`align`){for(var b=e.cols||[],x=``,S=1;S<b.length;S++)x+=S%2?`0em `:`1em `;l.setAttribute(`columnspacing`,x.trim())}else e.colSeparationType===`alignat`||e.colSeparationType===`gather`?l.setAttribute(`columnspacing`,`0em`):e.colSeparationType===`small`?l.setAttribute(`columnspacing`,`0.2778em`):e.colSeparationType===`CD`?l.setAttribute(`columnspacing`,`0.5em`):l.setAttribute(`columnspacing`,`1em`);var C=``,ee=e.hLinesBeforeRow;d+=ee[0].length>0?`left `:``,d+=ee[ee.length-1].length>0?`right `:``;for(var te=1;te<ee.length-1;te++)C+=ee[te].length===0?`none `:ee[te][0]?`dashed `:`solid `;return/[sd]/.test(C)&&l.setAttribute(`rowlines`,C.trim()),d!==``&&(l=new X(`menclose`,[l]),l.setAttribute(`notation`,d.trim())),e.arraystretch&&e.arraystretch<1&&(l=new X(`mstyle`,[l]),l.setAttribute(`scriptlevel`,`1`)),l},Ql=function(e,t){e.envName.includes(`ed`)||Wl(e);var n=[],r=e.envName===`split`,i=ql(e.parser,{cols:n,addJot:!0,autoTag:r?void 0:Kl(e.envName),emptySingleRow:!0,colSeparationType:e.envName.includes(`at`)?`alignat`:`align`,maxNumCols:r?2:void 0,leqno:e.parser.settings.leqno},`display`),a=0,o=0,s={type:`ordgroup`,mode:e.mode,body:[]};if(t[0]&&t[0].type===`ordgroup`){var c=`Number of columns should be a positive integer`,l=zc(t[0],c);if(!/^[0-9]+$/.test(l)||Number(l)<1)throw new N(c,t[0]);a=Number(l),o=a*2}var u=!o;i.body.forEach(function(e){for(var t=1;t<e.length;t+=2)Q(Q(e[t],`styling`).body[0],`ordgroup`).body.unshift(s);if(u)o<e.length&&(o=e.length);else{var n=e.length/2;if(a<n)throw new N(`Too many math in a row: `+(`expected `+a+`, but got `+n),e[0])}});for(var d=0;d<o;++d){var f=`r`,p=0;d%2==1?f=`l`:d>0&&u&&(p=1),n[d]={type:`align`,align:f,pregap:p,postgap:0}}return i.colSeparationType=u?`align`:`alignat`,i};zl({type:`array`,names:[`array`,`darray`],props:{numArgs:1},handler(e,t){var n=(Rc(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=Lc(e).text;if(`lcr`.includes(t))return{type:`align`,align:t};if(t===`|`)return{type:`separator`,separator:`|`};if(t===`:`)return{type:`separator`,separator:`:`};throw new N(`Unknown column alignment: `+t,e)}),r={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return ql(e.parser,r,Jl(e.envName))},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`matrix`,`pmatrix`,`bmatrix`,`Bmatrix`,`vmatrix`,`Vmatrix`,`matrix*`,`pmatrix*`,`bmatrix*`,`Bmatrix*`,`vmatrix*`,`Vmatrix*`],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:[`(`,`)`],bmatrix:[`[`,`]`],Bmatrix:[`\\{`,`\\}`],vmatrix:[`|`,`|`],Vmatrix:[`\\Vert`,`\\Vert`]}[e.envName.replace(`*`,``)],n=`c`,r={hskipBeforeAndAfter:!1,cols:[{type:`align`,align:n}]};if(e.envName.charAt(e.envName.length-1)===`*`){var i=e.parser;if(i.consumeSpaces(),i.fetch().text===`[`){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,!`lcr`.includes(n))throw new N(`Expected l or c or r`,i.nextToken);i.consume(),i.consumeSpaces(),i.expect(`]`),i.consume(),r.cols=[{type:`align`,align:n}]}}var a=ql(e.parser,r,Jl(e.envName)),o=Math.max(0,...a.body.map(e=>e.length));return a.cols=Array(o).fill({type:`align`,align:n}),t?{type:`leftright`,mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`smallmatrix`],props:{numArgs:0},handler(e){var t=ql(e.parser,{arraystretch:.5},`script`);return t.colSeparationType=`small`,t},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`subarray`],props:{numArgs:1},handler(e,t){var n=(Rc(t[0])?[t[0]]:Q(t[0],`ordgroup`).body).map(function(e){var t=Lc(e).text;if(`lc`.includes(t))return{type:`align`,align:t};throw new N(`Unknown column alignment: `+t,e)});if(n.length>1)throw new N(`{subarray} can contain only one column`);var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=ql(e.parser,r,`script`);if(i.body.length>0&&i.body[0].length>1)throw new N(`{subarray} can contain only one column`);return i},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`cases`,`dcases`,`rcases`,`drcases`],props:{numArgs:0},handler(e){var t=ql(e.parser,{arraystretch:1.2,cols:[{type:`align`,align:`l`,pregap:0,postgap:1},{type:`align`,align:`l`,pregap:0,postgap:0}]},Jl(e.envName));return{type:`leftright`,mode:e.mode,body:[t],left:e.envName.includes(`r`)?`.`:`\\{`,right:e.envName.includes(`r`)?`\\}`:`.`,rightColor:void 0}},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`align`,`align*`,`aligned`,`split`],props:{numArgs:0},handler:Ql,htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`gathered`,`gather`,`gather*`],props:{numArgs:0},handler(e){Gl.has(e.envName)&&Wl(e);var t={cols:[{type:`align`,align:`c`}],addJot:!0,colSeparationType:`gather`,autoTag:Kl(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ql(e.parser,t,`display`)},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`alignat`,`alignat*`,`alignedat`],props:{numArgs:1},handler:Ql,htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`equation`,`equation*`],props:{numArgs:0},handler(e){Wl(e);var t={autoTag:Kl(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ql(e.parser,t,`display`)},htmlBuilder:Yl,mathmlBuilder:Zl}),zl({type:`array`,names:[`CD`],props:{numArgs:0},handler(e){return Wl(e),$c(e.parser)},htmlBuilder:Yl,mathmlBuilder:Zl}),$(`\\nonumber`,`\\gdef\\@eqnsw{0}`),$(`\\notag`,`\\nonumber`),J({type:`text`,names:[`\\hline`,`\\hdashline`],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,t){throw new N(e.funcName+` valid only within array environment`)}});var $l=Rl;J({type:`environment`,names:[`\\begin`,`\\end`],numArgs:1,argTypes:[`text`],handler(e,t){var n=e.parser,r=e.funcName,i=t[0];if(i.type!==`ordgroup`)throw new N(`Invalid environment name`,i);var a=zc(i,`Environment name should contain only text characters and spaces`,!0);if(r===`\\begin`){if(!Object.prototype.hasOwnProperty.call($l,a))throw new N(`No such environment: `+a,i);var o=$l[a],s=n.parseArguments(`\\begin{`+a+`}`,o),c=s.args,l=s.optArgs,u={mode:n.mode,envName:a,parser:n},d=o.handler(u,c,l);n.expect(`\\end`,!1);var f=n.nextToken,p=Q(n.parseFunction(),`environment`);if(p.name!==a)throw new N(`Mismatch: \\begin{`+a+`} matched by \\end{`+p.name+`}`,f);return d}return{type:`environment`,mode:n.mode,name:a,nameGroup:i}}});var eu=(e,t)=>{var n=e.font,r=t.withFont(n);return Y(e.body,r)},tu=(e,t)=>{var n=e.font,r=t.withFont(n);return Z(e.body,r)},nu={"\\Bbb":`\\mathbb`,"\\bold":`\\mathbf`,"\\frak":`\\mathfrak`};J({type:`font`,names:[`\\mathrm`,`\\mathit`,`\\mathbf`,`\\mathnormal`,`\\mathsfit`,`\\mathbb`,`\\mathcal`,`\\mathfrak`,`\\mathscr`,`\\mathsf`,`\\mathtt`,`\\Bbb`,`\\bold`,`\\frak`],numArgs:1,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=Gs(t[0]),a=r in nu?nu[r]:r;return{type:`font`,mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:eu,mathmlBuilder:tu}),J({type:`mclass`,names:[`\\boldsymbol`,`\\bm`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`mclass`,mode:n.mode,mclass:qc(r),body:[{type:`font`,mode:n.mode,font:`boldsymbol`,body:r}],isCharacterBox:pa(r)}}}),J({type:`font`,names:[`\\rm`,`\\sf`,`\\tt`,`\\bf`,`\\it`,`\\cal`],numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=e.breakOnTokenText,a=n.mode,o=n.parseExpression(!0,i);return{type:`font`,mode:a,font:`math`+r.slice(1),body:{type:`ordgroup`,mode:n.mode,body:o}}}});var ru=(e,t)=>{var n=t.style,r=n.fracNum(),i=n.fracDen(),a=t.havingStyle(r),o=Y(e.numer,a,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;o.height=o.height<s?s:o.height,o.depth=o.depth<c?c:o.depth}a=t.havingStyle(i);var l=Y(e.denom,a,t),u,d,f;e.hasBarLine?(e.barSize?(d=io(e.barSize,t),u=Es(`frac-line`,t,d)):u=Es(`frac-line`,t),d=u.height,f=u.height):(u=null,d=0,f=t.fontMetrics().defaultRuleThickness);var p,m,h;n.size===P.DISPLAY.size?(p=t.fontMetrics().num1,m=d>0?3*f:7*f,h=t.fontMetrics().denom1):(d>0?(p=t.fontMetrics().num2,m=f):(p=t.fontMetrics().num3,m=3*f),h=t.fontMetrics().denom2);var g;if(u){var _=t.fontMetrics().axisHeight;p-o.depth-(_+.5*d)<m&&(p+=m-(p-o.depth-(_+.5*d))),_-.5*d-(l.height-h)<m&&(h+=m-(_-.5*d-(l.height-h)));var v=-(_-.5*d);g=q({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:u,shift:v},{type:`elem`,elem:o,shift:-p}]})}else{var y=p-o.depth-(l.height-h);y<m&&(p+=.5*(m-y),h+=.5*(m-y)),g=q({positionType:`individualShift`,children:[{type:`elem`,elem:l,shift:h},{type:`elem`,elem:o,shift:-p}]})}a=t.havingStyle(n),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var b=n.size===P.DISPLAY.size?t.fontMetrics().delim1:n.size===P.SCRIPTSCRIPT.size?t.havingStyle(P.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,x=e.leftDelim==null?nc(t,[`mopen`]):jl(e.leftDelim,b,!0,t.havingStyle(n),e.mode,[`mopen`]),S=e.continued?K([]):e.rightDelim==null?nc(t,[`mclose`]):jl(e.rightDelim,b,!0,t.havingStyle(n),e.mode,[`mclose`]);return K([`mord`].concat(a.sizingClasses(t)),[x,K([`mfrac`],[g]),S],t)},iu=(e,t)=>{var n=new X(`mfrac`,[Z(e.numer,t),Z(e.denom,t)]);if(!e.hasBarLine)n.setAttribute(`linethickness`,`0px`);else if(e.barSize){var r=io(e.barSize,t);n.setAttribute(`linethickness`,F(r))}if(e.leftDelim!=null||e.rightDelim!=null){var i=[];if(e.leftDelim!=null){var a=new X(`mo`,[new oc(e.leftDelim.replace(`\\`,``))]);a.setAttribute(`fence`,`true`),i.push(a)}if(i.push(n),e.rightDelim!=null){var o=new X(`mo`,[new oc(e.rightDelim.replace(`\\`,``))]);o.setAttribute(`fence`,`true`),i.push(o)}return dc(i)}return n},au=(e,t)=>t?{type:`styling`,mode:e.mode,style:t,body:[e]}:e;J({type:`genfrac`,names:[`\\cfrac`,`\\dfrac`,`\\frac`,`\\tfrac`,`\\dbinom`,`\\binom`,`\\tbinom`,`\\\\atopfrac`,`\\\\bracefrac`,`\\\\brackfrac`],numArgs:2,allowedInArgument:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0],a=t[1],o,s=null,c=null;switch(r){case`\\cfrac`:case`\\dfrac`:case`\\frac`:case`\\tfrac`:o=!0;break;case`\\\\atopfrac`:o=!1;break;case`\\dbinom`:case`\\binom`:case`\\tbinom`:o=!1,s=`(`,c=`)`;break;case`\\\\bracefrac`:o=!1,s=`\\{`,c=`\\}`;break;case`\\\\brackfrac`:o=!1,s=`[`,c=`]`;break;default:throw Error(`Unrecognized genfrac command`)}var l=r===`\\cfrac`,u=null;return l||r.startsWith(`\\d`)?u=`display`:r.startsWith(`\\t`)&&(u=`text`),au({type:`genfrac`,mode:n.mode,numer:i,denom:a,continued:l,hasBarLine:o,leftDelim:s,rightDelim:c,barSize:null},u)},htmlBuilder:ru,mathmlBuilder:iu}),J({type:`infix`,names:[`\\over`,`\\choose`,`\\atop`,`\\brace`,`\\brack`],numArgs:0,infix:!0,handler(e){var t=e.parser,n=e.funcName,r=e.token,i;switch(n){case`\\over`:i=`\\frac`;break;case`\\choose`:i=`\\binom`;break;case`\\atop`:i=`\\\\atopfrac`;break;case`\\brace`:i=`\\\\bracefrac`;break;case`\\brack`:i=`\\\\brackfrac`;break;default:throw Error(`Unrecognized infix genfrac command`)}return{type:`infix`,mode:t.mode,replaceWith:i,token:r}}});var ou=[`display`,`text`,`script`,`scriptscript`],su=function(e){var t=null;return e.length>0&&(t=e,t=t===`.`?null:t),t};J({type:`genfrac`,names:[`\\genfrac`],numArgs:6,allowedInArgument:!0,argTypes:[`math`,`math`,`size`,`text`,`math`,`math`],handler(e,t){var n=e.parser,r=t[4],i=t[5],a=Gs(t[0]),o=a.type===`atom`&&a.family===`open`?su(a.text):null,s=Gs(t[1]),c=s.type===`atom`&&s.family===`close`?su(s.text):null,l=Q(t[2],`size`),u,d=null;l.isBlank?u=!0:(d=l.value,u=d.number>0);var f=null,p=t[3];if(p.type===`ordgroup`){if(p.body.length>0){var m=Q(p.body[0],`textord`);f=ou[Number(m.text)]}}else p=Q(p,`textord`),f=ou[Number(p.text)];return au({type:`genfrac`,mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:u,barSize:d,leftDelim:o,rightDelim:c},f)}}),J({type:`infix`,names:[`\\above`],numArgs:1,argTypes:[`size`],infix:!0,handler(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:`infix`,mode:n.mode,replaceWith:`\\\\abovefrac`,size:Q(t[0],`size`).value,token:r}}}),J({type:`genfrac`,names:[`\\\\abovefrac`],numArgs:3,argTypes:[`math`,`size`,`math`],handler:(e,t)=>{var n=e.parser;e.funcName;var r=t[0],i=Q(t[1],`infix`).size;if(!i)throw Error(`\\\\abovefrac expected size, but got `+String(i));var a=t[2],o=i.number>0;return{type:`genfrac`,mode:n.mode,numer:r,denom:a,continued:!1,hasBarLine:o,barSize:i,leftDelim:null,rightDelim:null}}});var cu=(e,t)=>{var n=t.style,r,i;e.type===`supsub`?(r=e.sup?Y(e.sup,t.havingStyle(n.sup()),t):Y(e.sub,t.havingStyle(n.sub()),t),i=Q(e.base,`horizBrace`)):i=Q(e,`horizBrace`);var a=Y(i.base,t.havingBaseStyle(P.DISPLAY)),o=Ac(i,t),s=i.isOver?q({positionType:`firstBaseline`,children:[{type:`elem`,elem:a},{type:`kern`,size:.1},{type:`elem`,elem:o,wrapperClasses:[`svg-align`]}]}):q({positionType:`bottom`,positionData:a.depth+.1+o.height,children:[{type:`elem`,elem:o,wrapperClasses:[`svg-align`]},{type:`kern`,size:.1},{type:`elem`,elem:a}]});if(r){var c=K([`minner`,i.isOver?`mover`:`munder`],[s],t);s=i.isOver?q({positionType:`firstBaseline`,children:[{type:`elem`,elem:c},{type:`kern`,size:.2},{type:`elem`,elem:r}]}):q({positionType:`bottom`,positionData:c.depth+.2+r.height+r.depth,children:[{type:`elem`,elem:r},{type:`kern`,size:.2},{type:`elem`,elem:c}]})}return K([`minner`,i.isOver?`mover`:`munder`],[s],t)};J({type:`horizBrace`,names:[`\\overbrace`,`\\underbrace`,`\\overbracket`,`\\underbracket`],numArgs:1,handler(e,t){var n=e.parser,r=e.funcName;return{type:`horizBrace`,mode:n.mode,label:r,isOver:r.includes(`\\over`),base:t[0]}},htmlBuilder:cu,mathmlBuilder:(e,t)=>{var n=Dc(e.label);return new X(e.isOver?`mover`:`munder`,[Z(e.base,t),n])}}),J({type:`href`,names:[`\\href`],numArgs:2,argTypes:[`url`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[1],i=Q(t[0],`url`).url;return n.settings.isTrusted({command:`\\href`,url:i})?{type:`href`,mode:n.mode,href:i,body:Ks(r)}:n.formatUnsupportedCmd(`\\href`)},htmlBuilder:(e,t)=>{var n=Zs(e.body,t,!1);return Ds(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=gc(e.body,t);return n instanceof X||(n=new X(`mrow`,[n])),n.setAttribute(`href`,e.href),n}}),J({type:`href`,names:[`\\url`],numArgs:1,argTypes:[`url`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=Q(t[0],`url`).url;if(!n.settings.isTrusted({command:`\\url`,url:r}))return n.formatUnsupportedCmd(`\\url`);for(var i=[],a=0;a<r.length;a++){var o=r[a];o===`~`&&(o=`\\textasciitilde`),i.push({type:`textord`,mode:`text`,text:o})}var s={type:`text`,mode:n.mode,font:`\\texttt`,body:i};return{type:`href`,mode:n.mode,href:r,body:Ks(s)}}}),J({type:`hbox`,names:[`\\hbox`],numArgs:1,argTypes:[`text`],allowedInText:!0,primitive:!0,handler(e,t){return{type:`hbox`,mode:e.parser.mode,body:Ks(t[0])}},htmlBuilder(e,t){return Os(Zs(e.body,t.withFont(``),!1))},mathmlBuilder(e,t){return new X(`mrow`,hc(e.body,t.withFont(``)))}}),J({type:`html`,names:[`\\htmlClass`,`\\htmlId`,`\\htmlStyle`,`\\htmlData`],numArgs:2,argTypes:[`raw`,`original`],allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName;e.token;var i=Q(t[0],`raw`).string,a=t[1];n.settings.strict&&gs({strict:n.settings.strict,errorCode:`htmlExtension`,errorMsg:`HTML extension is disabled on strict mode`,report:!0});var o,s={};switch(r){case`\\htmlClass`:s.class=i,o={command:`\\htmlClass`,class:i};break;case`\\htmlId`:s.id=i,o={command:`\\htmlId`,id:i};break;case`\\htmlStyle`:s.style=i,o={command:`\\htmlStyle`,style:i};break;case`\\htmlData`:for(var c=`{,}`,l=[],u=``,d=0;d<i.length;d++)i.startsWith(c,d)?(u+=`,`,d+=c.length-1):i[d]===`,`?(l.push(u),u=``):u+=i[d];l.push(u);for(var f=0;f<l.length;f++){var p=l[f],m=p.indexOf(`=`);if(m<0)throw new N(`\\htmlData key/value '`+p+`' missing equals sign`);var h=p.slice(0,m),g=p.slice(m+1);s[`data-`+h.trim()]=g}o={command:`\\htmlData`,attributes:s};break;default:throw Error(`Unrecognized html command`)}return n.settings.isTrusted(o)?{type:`html`,mode:n.mode,attributes:s,body:Ks(a)}:n.formatUnsupportedCmd(r)},htmlBuilder:(e,t)=>{var n=Zs(e.body,t,!1),r=[`enclosing`];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=K(r,n,t);for(var a of Object.entries(e.attributes)){var o=a[0],s=a[1];o!==`class`&&i.setAttribute(o,s)}return i},mathmlBuilder:(e,t)=>gc(e.body,t)}),J({type:`htmlmathml`,names:[`\\html@mathml`],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,t)=>({type:`htmlmathml`,mode:e.parser.mode,html:Ks(t[0]),mathml:Ks(t[1])}),htmlBuilder:(e,t)=>Os(Zs(e.html,t,!1)),mathmlBuilder:(e,t)=>gc(e.mathml,t)});var lu=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:`bp`};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new N(`Invalid size: '`+e+`' in \\includegraphics`);var n={number:+(t[1]+t[2]),unit:t[3]};if(!ro(n))throw new N(`Invalid unit: '`+n.unit+`' in \\includegraphics.`);return n};J({type:`includegraphics`,names:[`\\includegraphics`],numArgs:1,numOptionalArgs:1,argTypes:[`raw`,`url`],allowedInText:!1,handler:(e,t,n)=>{var r=e.parser,i={number:0,unit:`em`},a={number:.9,unit:`em`},o={number:0,unit:`em`},s=``;if(n[0])for(var c=Q(n[0],`raw`).string.split(`,`),l=0;l<c.length;l++){var u=c[l].split(`=`);if(u.length===2){var d=u[1].trim();switch(u[0].trim()){case`alt`:s=d;break;case`width`:i=lu(d);break;case`height`:a=lu(d);break;case`totalheight`:o=lu(d);break;default:throw new N(`Invalid key: '`+u[0]+`' in \\includegraphics.`)}}}var f=Q(t[0],`url`).url;return s===``&&(s=f,s=s.replace(/^.*[\\/]/,``),s=s.substring(0,s.lastIndexOf(`.`))),r.settings.isTrusted({command:`\\includegraphics`,url:f})?{type:`includegraphics`,mode:r.mode,alt:s,width:i,height:a,totalheight:o,src:f}:r.formatUnsupportedCmd(`\\includegraphics`)},htmlBuilder:(e,t)=>{var n=io(e.height,t),r=0;e.totalheight.number>0&&(r=io(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=io(e.width,t));var a={height:F(n+r)};i>0&&(a.width=F(i)),r>0&&(a.verticalAlign=F(-r));var o=new mo(e.src,e.alt,a);return o.height=n,o.depth=r,o},mathmlBuilder:(e,t)=>{var n=new X(`mglyph`,[]);n.setAttribute(`alt`,e.alt);var r=io(e.height,t),i=0;if(e.totalheight.number>0&&(i=io(e.totalheight,t)-r,n.setAttribute(`valign`,F(-i))),n.setAttribute(`height`,F(r+i)),e.width.number>0){var a=io(e.width,t);n.setAttribute(`width`,F(a))}return n.setAttribute(`src`,e.src),n}}),J({type:`kern`,names:[`\\kern`,`\\mkern`,`\\hskip`,`\\mskip`],numArgs:1,argTypes:[`size`],primitive:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=Q(t[0],`size`);if(n.settings.strict){var a=r[1]===`m`,o=i.value.unit===`mu`;a?(o||gs({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` supports only mu units, `+(`not `+i.value.unit+` units`),report:!0}),n.mode!==`math`&&gs({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` works only in math mode`,report:!0})):o&&gs({strict:n.settings.strict,errorCode:`mathVsTextUnits`,errorMsg:`LaTeX's `+r+` doesn't support mu units`,report:!0})}return{type:`kern`,mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return js(e.dimension,t)},mathmlBuilder(e,t){return new sc(io(e.dimension,t))}}),J({type:`lap`,names:[`\\mathllap`,`\\mathrlap`,`\\mathclap`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`lap`,mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment===`clap`?(n=K([],[Y(e.body,t)]),n=K([`katex-inner`],[n],t)):n=K([`katex-inner`],[Y(e.body,t)]);var r=K([`katex-fix`],[]),i=K([e.alignment],[n,r],t),a=K([`katex-strut`]);return a.style.height=F(i.height+i.depth),i.depth&&(a.style.verticalAlign=F(-i.depth)),i.children.unshift(a),i=K([`katex-thinbox`],[i],t),K([`mord`,`katex-vbox`],[i],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Z(e.body,t)]);if(e.alignment!==`rlap`){var r=e.alignment===`llap`?`-1`:`-0.5`;n.setAttribute(`lspace`,r+`width`)}return n.setAttribute(`width`,`0px`),n}}),J({type:`styling`,names:[`\\(`,`$`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){var n=e.funcName,r=e.parser,i=r.mode;r.switchMode(`math`);var a=n===`\\(`?`\\)`:`$`,o=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:`styling`,mode:r.mode,style:`text`,resetFont:!0,body:o}}}),J({type:`text`,names:[`\\)`,`\\]`],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,t){throw new N(`Mismatched `+e.funcName)}});var uu=(e,t)=>{switch(t.style.size){case P.DISPLAY.size:return e.display;case P.TEXT.size:return e.text;case P.SCRIPT.size:return e.script;case P.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};J({type:`mathchoice`,names:[`\\mathchoice`],numArgs:4,primitive:!0,handler:(e,t)=>({type:`mathchoice`,mode:e.parser.mode,display:Ks(t[0]),text:Ks(t[1]),script:Ks(t[2]),scriptscript:Ks(t[3])}),htmlBuilder:(e,t)=>Os(Zs(uu(e,t),t,!1)),mathmlBuilder:(e,t)=>gc(uu(e,t),t)});var du=(e,t,n,r,i,a,o)=>{e=K([],[e]);var s=n&&pa(n),c,l;if(t){var u=Y(t,r.havingStyle(i.sup()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-u.depth)}}if(n){var d=Y(n,r.havingStyle(i.sub()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var f;if(l&&c)f=q({positionType:`bottom`,positionData:r.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else if(c)f=q({positionType:`top`,positionData:e.height-o,children:[{type:`kern`,size:r.fontMetrics().bigOpSpacing5},{type:`elem`,elem:c.elem,marginLeft:F(-a)},{type:`kern`,size:c.kern},{type:`elem`,elem:e}]});else if(l)f=q({positionType:`bottom`,positionData:e.depth+o,children:[{type:`elem`,elem:e},{type:`kern`,size:l.kern},{type:`elem`,elem:l.elem,marginLeft:F(a)},{type:`kern`,size:r.fontMetrics().bigOpSpacing5}]});else return e;var p=[f];if(c&&a!==0&&!s){var m=K([`mspace`],[],r);m.style.marginRight=F(a),p.unshift(m)}return K([`mop`,`op-limits`],p,r)},fu=new Set([`\\smallint`]),pu=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`op`),i=!0):a=Q(e,`op`);var o=t.style,s=!1;o.size===P.DISPLAY.size&&a.symbol&&!fu.has(a.name)&&(s=!0);var c,l;if(a.symbol){var u=s?`Size2-Regular`:`Size1-Regular`,d=``;if((a.name===`\\oiint`||a.name===`\\oiiint`)&&(d=a.name.slice(1),a.name=d===`oiint`?`\\iint`:`\\iiint`),c=vs(a.name,u,`math`,t,[`mop`,`op-symbol`,s?`large-op`:`small-op`]),l=c.italic,d.length>0){var f=Fs(d+`Size`+(s?`2`:`1`),t);c=q({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:0},{type:`elem`,elem:f,shift:s?.08:0}]}),a.name=`\\`+d,c.classes.unshift(`mop`),c.italic=l}}else if(a.body){var p=Zs(a.body,t,!0);p.length===1&&p[0]instanceof go?(c=p[0],c.classes[0]=`mop`):c=K([`mop`],p,t)}else{for(var m=[],h=1;h<a.name.length;h++)m.push(ys(a.name[h],a.mode,t));c=K([`mop`],m,t)}var g=0,_=0;return(c instanceof go||a.name===`\\oiint`||a.name===`\\oiiint`)&&!a.suppressBaseShift&&(g=(c.height-c.depth)/2-t.fontMetrics().axisHeight,_=c.italic??0),i?du(c,n,r,t,o,_,g):(g&&(c.style.position=`relative`,c.style.top=F(g)),c)},mu=(e,t)=>{var n;if(e.symbol)n=new X(`mo`,[uc(e.name,e.mode)]),fu.has(e.name)&&n.setAttribute(`largeop`,`false`);else if(e.body)n=new X(`mo`,hc(e.body,t));else{n=new X(`mi`,[new oc(e.name.slice(1))]);var r=new X(`mo`,[uc(``,`text`)]);n=e.parentIsSupSub?new X(`mrow`,[n,r]):ac([n,r])}return n},hu={"∏":`\\prod`,"∐":`\\coprod`,"∑":`\\sum`,"⋀":`\\bigwedge`,"⋁":`\\bigvee`,"⋂":`\\bigcap`,"⋃":`\\bigcup`,"⨀":`\\bigodot`,"⨁":`\\bigoplus`,"⨂":`\\bigotimes`,"⨄":`\\biguplus`,"⨆":`\\bigsqcup`};J({type:`op`,names:`\\coprod.\\bigvee.\\bigwedge.\\biguplus.\\bigcap.\\bigcup.\\intop.\\prod.\\sum.\\bigotimes.\\bigoplus.\\bigodot.\\bigsqcup.\\smallint.∏.∐.∑.⋀.⋁.⋂.⋃.⨀.⨁.⨂.⨄.⨆`.split(`.`),numArgs:0,handler:(e,t)=>{var n=e.parser,r=e.funcName;return r.length===1&&(r=hu[r]),{type:`op`,mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:pu,mathmlBuilder:mu}),J({type:`op`,names:[`\\mathop`],numArgs:1,primitive:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`op`,mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ks(r)}}});var gu={"∫":`\\int`,"∬":`\\iint`,"∭":`\\iiint`,"∮":`\\oint`,"∯":`\\oiint`,"∰":`\\oiiint`};J({type:`op`,names:`\\arcsin.\\arccos.\\arctan.\\arctg.\\arcctg.\\arg.\\ch.\\cos.\\cosec.\\cosh.\\cot.\\cotg.\\coth.\\csc.\\ctg.\\cth.\\deg.\\dim.\\exp.\\hom.\\ker.\\lg.\\ln.\\log.\\sec.\\sin.\\sinh.\\sh.\\tan.\\tanh.\\tg.\\th`.split(`.`),numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}}}),J({type:`op`,names:[`\\det`,`\\gcd`,`\\inf`,`\\lim`,`\\max`,`\\min`,`\\Pr`,`\\sup`],numArgs:0,handler(e){var t=e.parser,n=e.funcName;return{type:`op`,mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}}}),J({type:`op`,names:[`\\int`,`\\iint`,`\\iiint`,`\\oint`,`\\oiint`,`\\oiiint`,`∫`,`∬`,`∭`,`∮`,`∯`,`∰`],numArgs:0,allowedInArgument:!0,handler(e){var t=e.parser,n=e.funcName;return n.length===1&&(n=gu[n]),{type:`op`,mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}}});var _u=(e,t)=>{var n,r,i=!1,a;e.type===`supsub`?(n=e.sup,r=e.sub,a=Q(e.base,`operatorname`),i=!0):a=Q(e,`operatorname`);var o;if(a.body.length>0){for(var s=Zs(a.body.map(e=>{var t=`text`in e?e.text:void 0;return typeof t==`string`?{type:`textord`,mode:e.mode,text:t}:e}),t.withFont(`mathrm`),!0),c=0;c<s.length;c++){var l=s[c];l instanceof go&&(l.text=l.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`))}o=K([`mop`],s,t)}else o=K([`mop`],[],t);return i?du(o,n,r,t,t.style,0,0):o};J({type:`operatorname`,names:[`\\operatorname@`,`\\operatornamewithlimits`],numArgs:1,handler:(e,t)=>{var n=e.parser,r=e.funcName,i=t[0];return{type:`operatorname`,mode:n.mode,body:Ks(i),alwaysHandleSupSub:r===`\\operatornamewithlimits`,limits:!1,parentIsSupSub:!1}},htmlBuilder:_u,mathmlBuilder:(e,t)=>{for(var n=hc(e.body,t.withFont(`mathrm`)),r=!0,i=0;i<n.length;i++){var a=n[i];if(!(a instanceof sc))if(a instanceof X)switch(a.type){case`mi`:case`mn`:case`mspace`:case`mtext`:break;case`mo`:var o=a.children[0];a.children.length===1&&o instanceof oc?o.text=o.text.replace(/\u2212/,`-`).replace(/\u2217/,`*`):r=!1;break;default:r=!1}else r=!1}r&&(n=[new oc(n.map(e=>e.toText()).join(``))]);var s=new X(`mi`,n);s.setAttribute(`mathvariant`,`normal`);var c=new X(`mo`,[uc(``,`text`)]);return e.parentIsSupSub?new X(`mrow`,[s,c]):ac([s,c])}}),$(`\\operatorname`,`\\@ifstar\\operatornamewithlimits\\operatorname@`),Ws({type:`ordgroup`,htmlBuilder(e,t){return e.semisimple?Os(Zs(e.body,t,!1)):K([`mord`],Zs(e.body,t,!0),t)},mathmlBuilder(e,t){return gc(e.body,t,!0)}}),J({type:`overline`,names:[`\\overline`],numArgs:1,handler(e,t){var n=e.parser,r=t[0];return{type:`overline`,mode:n.mode,body:r}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle()),r=Es(`overline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`katex-overline`],[q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n},{type:`kern`,size:3*i},{type:`elem`,elem:r},{type:`kern`,size:i}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new oc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`mover`,[Z(e.body,t),n]);return r.setAttribute(`accent`,`true`),r}}),J({type:`phantom`,names:[`\\phantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`phantom`,mode:n.mode,body:Ks(r)}},htmlBuilder:(e,t)=>Os(Zs(e.body,t.withPhantom(),!1)),mathmlBuilder:(e,t)=>new X(`mphantom`,hc(e.body,t))}),$(`\\hphantom`,`\\smash{\\phantom{#1}}`),J({type:`vphantom`,names:[`\\vphantom`],numArgs:1,allowedInText:!0,handler:(e,t)=>{var n=e.parser,r=t[0];return{type:`vphantom`,mode:n.mode,body:r}},htmlBuilder:(e,t)=>K([`mord`,`rlap`],[K([`katex-inner`],[Y(e.body,t.withPhantom())]),K([`katex-fix`],[])],t),mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[new X(`mphantom`,hc(Ks(e.body),t))]);return n.setAttribute(`width`,`0px`),n}}),J({type:`raisebox`,names:[`\\raisebox`],numArgs:2,argTypes:[`size`,`hbox`],allowedInText:!0,handler(e,t){var n=e.parser,r=Q(t[0],`size`).value,i=t[1];return{type:`raisebox`,mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Y(e.body,t);return q({positionType:`shift`,positionData:-io(e.dy,t),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){var n=new X(`mpadded`,[Z(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute(`voffset`,r),n}});var vu=(e,t)=>({type:`reflectbox`,mode:e.parser.mode,body:t[0]});J({type:`reflectbox`,names:[`\\reflectbox`],numArgs:1,argTypes:[`hbox`],allowedInText:!0,handler:vu,htmlBuilder(e,t){return K([`mord`,`reflectbox`],[Y(e.body,t)],t)},mathmlBuilder(e,t){return Z(e.body,t)}}),J({type:`reflectbox`,names:[`\\mathreflectbox`],numArgs:1,argTypes:[`math`],handler:vu}),J({type:`internal`,names:[`\\relax`],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){return{type:`internal`,mode:e.parser.mode}}}),J({type:`rule`,names:[`\\rule`],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:[`size`,`size`,`size`],handler(e,t,n){var r=e.parser,i=n[0],a=Q(t[0],`size`),o=Q(t[1],`size`);return{type:`rule`,mode:r.mode,shift:i&&Q(i,`size`).value,width:a.value,height:o.value}},htmlBuilder(e,t){var n=K([`mord`,`katex-rule`],[],t),r=io(e.width,t),i=io(e.height,t),a=e.shift?io(e.shift,t):0;return n.style.borderRightWidth=F(r),n.style.borderTopWidth=F(i),n.style.bottom=F(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=io(e.width,t),r=io(e.height,t),i=e.shift?io(e.shift,t):0,a=t.color&&t.getColor()||`black`,o=new X(`mspace`);o.setAttribute(`mathbackground`,a),o.setAttribute(`width`,F(n)),o.setAttribute(`height`,F(r));var s=new X(`mpadded`,[o]);return i>=0?s.setAttribute(`height`,F(i)):(s.setAttribute(`height`,F(i)),s.setAttribute(`depth`,F(-i))),s.setAttribute(`voffset`,F(i)),s}});function yu(e,t,n){for(var r=Zs(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a<r.length;a++){var o=r[a].classes.indexOf(`katex-sizing`);o<0?Array.prototype.push.apply(r[a].classes,t.sizingClasses(n)):r[a].classes[o+1]===`reset-size`+t.size&&(r[a].classes[o+1]=`reset-size`+n.size),r[a].height*=i,r[a].depth*=i}return Os(r)}var bu=[`\\tiny`,`\\sixptsize`,`\\scriptsize`,`\\footnotesize`,`\\small`,`\\normalsize`,`\\large`,`\\Large`,`\\LARGE`,`\\huge`,`\\Huge`];J({type:`sizing`,names:bu,numArgs:0,allowedInText:!0,handler:(e,t)=>{var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!1,n);return{type:`sizing`,mode:i.mode,size:bu.indexOf(r)+1,body:a}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return yu(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=new X(`mstyle`,hc(e.body,n));return r.setAttribute(`mathsize`,F(n.sizeMultiplier)),r}}),J({type:`smash`,names:[`\\smash`],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,t,n)=>{var r=e.parser,i=!1,a=!1,o=n[0]&&Q(n[0],`ordgroup`);if(o)for(var s,c=0;c<o.body.length;++c){var l=o.body[c];if(s=Lc(l).text,s===`t`)i=!0;else if(s===`b`)a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var u=t[0];return{type:`smash`,mode:r.mode,body:u,smashHeight:i,smashDepth:a}},htmlBuilder:(e,t)=>{var n=K([],[Y(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return K([`mord`,`katex-smash`],[n],t);if(n.children)for(var r=0;r<n.children.length;r++)e.smashHeight&&(n.children[r].height=0),e.smashDepth&&(n.children[r].depth=0);return K([`mord`],[q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n}]})],t)},mathmlBuilder:(e,t)=>{var n=new X(`mpadded`,[Z(e.body,t)]);return e.smashHeight&&n.setAttribute(`height`,`0px`),e.smashDepth&&n.setAttribute(`depth`,`0px`),n}}),J({type:`sqrt`,names:[`\\sqrt`],numArgs:1,numOptionalArgs:1,handler(e,t,n){var r=e.parser,i=n[0],a=t[0];return{type:`sqrt`,mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Y(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=ks(n,t);var r=t.fontMetrics().defaultRuleThickness,i=r;t.style.id<P.TEXT.id&&(i=t.fontMetrics().xHeight);var a=r+i/4,o=bl(n.height+n.depth+a+r,t),s=o.span,c=o.ruleWidth,l=o.advanceWidth,u=s.height-c;u>n.height+n.depth+a&&(a=(a+u-n.height-n.depth)/2);var d=s.height-n.height-a-c;n.style.paddingLeft=F(l);var f=q({positionType:`firstBaseline`,children:[{type:`elem`,elem:n,wrapperClasses:[`svg-align`]},{type:`kern`,size:-(n.height+d)},{type:`elem`,elem:s},{type:`kern`,size:c}]});if(e.index){var p=t.havingStyle(P.SCRIPTSCRIPT),m=Y(e.index,p,t);return K([`mord`,`sqrt`],[K([`katex-root`],[q({positionType:`shift`,positionData:-(.6*(f.height-f.depth)),children:[{type:`elem`,elem:m}]})]),f],t)}else return K([`mord`,`sqrt`],[f],t)},mathmlBuilder(e,t){var n=e.body,r=e.index;return r?new X(`mroot`,[Z(n,t),Z(r,t)]):new X(`msqrt`,[Z(n,t)])}});var xu={display:P.DISPLAY,text:P.TEXT,script:P.SCRIPT,scriptscript:P.SCRIPTSCRIPT};function Su(e){return e in xu}J({type:`styling`,names:[`\\displaystyle`,`\\textstyle`,`\\scriptstyle`,`\\scriptscriptstyle`],numArgs:0,allowedInText:!0,primitive:!0,handler(e,t){var n=e.breakOnTokenText,r=e.funcName,i=e.parser,a=i.parseExpression(!0,n),o=r.slice(1,r.length-5);if(!Su(o))throw Error(`Unknown style: `+o);return{type:`styling`,mode:i.mode,style:o,body:a}},htmlBuilder(e,t){var n=xu[e.style],r=t.havingStyle(n);return e.resetFont&&(r=r.withFont(``)),yu(e.body,r,t)},mathmlBuilder(e,t){var n=xu[e.style],r=t.havingStyle(n);e.resetFont&&(r=r.withFont(``));var i=new X(`mstyle`,hc(e.body,r)),a={display:[`0`,`true`],text:[`0`,`false`],script:[`1`,`false`],scriptscript:[`2`,`false`]}[e.style];return i.setAttribute(`scriptlevel`,a[0]),i.setAttribute(`displaystyle`,a[1]),i}});var Cu=function(e,t){var n=e.base;return n?n.type===`op`?n.limits&&(t.style.size===P.DISPLAY.size||n.alwaysHandleSupSub)?pu:null:n.type===`operatorname`?n.alwaysHandleSupSub&&(t.style.size===P.DISPLAY.size||n.limits)?_u:null:n.type===`accent`?pa(n.base)?Vc:null:n.type===`horizBrace`&&!e.sub===n.isOver?cu:null:null};Ws({type:`supsub`,htmlBuilder(e,t){var n=Cu(e,t);if(n)return n(e,t);var r=e.base,i=e.sup,a=e.sub,o=Y(r,t),s,c,l=t.fontMetrics(),u=0,d=0,f=r&&pa(r);if(i){var p=t.havingStyle(t.style.sup());s=Y(i,p,t),f||(u=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(a){var m=t.havingStyle(t.style.sub());c=Y(a,m,t),f||(d=o.depth+m.fontMetrics().subDrop*m.sizeMultiplier/t.sizeMultiplier)}var h=t.style===P.DISPLAY?l.sup1:t.style.cramped?l.sup3:l.sup2,g=t.sizeMultiplier,_=F(.5/l.ptPerEm/g),v=null;if(c){var y=e.base&&e.base.type===`op`&&e.base.name&&(e.base.name===`\\oiint`||e.base.name===`\\oiiint`);(o instanceof go||y)&&(v=F(-(o.italic??0)))}var b;if(s&&c){u=Math.max(u,h,s.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var x=4*l.defaultRuleThickness;if(u-s.depth-(c.height-d)<x){d=x-(u-s.depth)+c.height;var S=.8*l.xHeight-(u-s.depth);S>0&&(u+=S,d-=S)}b=q({positionType:`individualShift`,children:[{type:`elem`,elem:c,shift:d,marginRight:_,marginLeft:v},{type:`elem`,elem:s,shift:-u,marginRight:_}]})}else if(c)d=Math.max(d,l.sub1,c.height-.8*l.xHeight),b=q({positionType:`shift`,positionData:d,children:[{type:`elem`,elem:c,marginLeft:v,marginRight:_}]});else if(s)u=Math.max(u,h,s.depth+.25*l.xHeight),b=q({positionType:`shift`,positionData:-u,children:[{type:`elem`,elem:s,marginRight:_}]});else throw Error(`supsub must have either sup or sub.`);return K([tc(o,`right`)||`mord`],[o,K([`msupsub`],[b])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type===`horizBrace`&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type===`op`||e.base.type===`operatorname`)&&(e.base.parentIsSupSub=!0);var a=[Z(e.base,t)];e.sub&&a.push(Z(e.sub,t)),e.sup&&a.push(Z(e.sup,t));var o;if(n)o=r?`mover`:`munder`;else if(!e.sub){var s=e.base;o=s&&s.type===`op`&&s.limits&&(t.style===P.DISPLAY||s.alwaysHandleSupSub)||s&&s.type===`operatorname`&&s.alwaysHandleSupSub&&(s.limits||t.style===P.DISPLAY)?`mover`:`msup`}else if(e.sup){var c=e.base;o=c&&c.type===`op`&&c.limits&&t.style===P.DISPLAY||c&&c.type===`operatorname`&&c.alwaysHandleSupSub&&(t.style===P.DISPLAY||c.limits)?`munderover`:`msubsup`}else{var l=e.base;o=l&&l.type===`op`&&l.limits&&(t.style===P.DISPLAY||l.alwaysHandleSupSub)||l&&l.type===`operatorname`&&l.alwaysHandleSupSub&&(l.limits||t.style===P.DISPLAY)?`munder`:`msub`}return new X(o,a)}}),Ws({type:`atom`,htmlBuilder(e,t){return ys(e.text,e.mode,t,[`m`+e.family])},mathmlBuilder(e,t){var n=new X(`mo`,[uc(e.text,e.mode)]);if(e.family===`bin`){var r=pc(e,t);r===`bold-italic`&&n.setAttribute(`mathvariant`,r)}else e.family===`punct`?n.setAttribute(`separator`,`true`):(e.family===`open`||e.family===`close`)&&n.setAttribute(`stretchy`,`false`);return n}});var wu={mi:`italic`,mn:`normal`,mtext:`normal`};Ws({type:`mathord`,htmlBuilder(e,t){return xs(e,t)},mathmlBuilder(e,t){var n=new X(`mi`,[uc(e.text,e.mode,t)]),r=pc(e,t)||`italic`;return r!==wu[n.type]&&n.setAttribute(`mathvariant`,r),n}}),Ws({type:`textord`,htmlBuilder(e,t){return xs(e,t)},mathmlBuilder(e,t){var n=uc(e.text,e.mode,t),r=pc(e,t)||`normal`,i=e.mode===`text`?new X(`mtext`,[n]):/[0-9]/.test(e.text)?new X(`mn`,[n]):e.text===`\\prime`?new X(`mo`,[n]):new X(`mi`,[n]);return r!==wu[i.type]&&i.setAttribute(`mathvariant`,r),i}});var Tu=new Map([[`\\nobreak`,`nobreak`],[`\\allowbreak`,`allowbreak`]]),Eu=new Map([[` `,{}],[`\\ `,{}],[`~`,{className:`nobreak`}],[`\\space`,{}],[`\\nobreakspace`,{className:`nobreak`}]]);Ws({type:`spacing`,htmlBuilder(e,t){var n=Eu.get(e.text),r=Tu.get(e.text);if(n){var i=n.className||``;if(e.mode===`text`){var a=xs(e,t);return a.classes.push(i),a}else return K([`mspace`,i],[ys(e.text,e.mode,t)],t)}else if(r)return K([`mspace`,r],[],t);else throw new N(`Unknown type of space "`+e.text+`"`)},mathmlBuilder(e,t){var n;if(Eu.has(e.text))n=new X(`mtext`,[new oc(`\xA0`)]);else if(Tu.has(e.text))return new X(`mspace`);else throw new N(`Unknown type of space "`+e.text+`"`);return n}});var Du=()=>{var e=new X(`mtd`,[]);return e.setAttribute(`width`,`50%`),e};Ws({type:`tag`,mathmlBuilder(e,t){var n=new X(`mtable`,[new X(`mtr`,[Du(),new X(`mtd`,[gc(e.body,t)]),Du(),new X(`mtd`,[gc(e.tag,t)])])]);return n.setAttribute(`width`,`100%`),n}});var Ou={"\\text":void 0,"\\textrm":`textrm`,"\\textsf":`textsf`,"\\texttt":`texttt`,"\\textnormal":`textrm`},ku={"\\textbf":`textbf`,"\\textmd":`textmd`},Au={"\\textit":`textit`,"\\textup":`textup`},ju=(e,t)=>{var n=e.font;return n?Ou[n]?t.withTextFontFamily(Ou[n]):ku[n]?t.withTextFontWeight(ku[n]):n===`\\emph`?t.fontShape===`textit`?t.withTextFontShape(`textup`):t.withTextFontShape(`textit`):t.withTextFontShape(Au[n]):t};J({type:`text`,names:[`\\text`,`\\textrm`,`\\textsf`,`\\texttt`,`\\textnormal`,`\\textbf`,`\\textmd`,`\\textit`,`\\textup`,`\\emph`],numArgs:1,argTypes:[`text`],allowedInArgument:!0,allowedInText:!0,handler(e,t){var n=e.parser,r=e.funcName,i=t[0];return{type:`text`,mode:n.mode,body:Ks(i),font:r}},htmlBuilder(e,t){var n=ju(e,t);return K([`mord`,`text`],Zs(e.body,n,!0),n)},mathmlBuilder(e,t){var n=ju(e,t);return gc(e.body,n)}}),J({type:`underline`,names:[`\\underline`],numArgs:1,allowedInText:!0,handler(e,t){return{type:`underline`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=Es(`underline-line`,t),i=t.fontMetrics().defaultRuleThickness;return K([`mord`,`katex-underline`],[q({positionType:`top`,positionData:n.height,children:[{type:`kern`,size:i},{type:`elem`,elem:r},{type:`kern`,size:3*i},{type:`elem`,elem:n}]})],t)},mathmlBuilder(e,t){var n=new X(`mo`,[new oc(`‾`)]);n.setAttribute(`stretchy`,`true`);var r=new X(`munder`,[Z(e.body,t),n]);return r.setAttribute(`accentunder`,`true`),r}}),J({type:`vcenter`,names:[`\\vcenter`],numArgs:1,argTypes:[`original`],allowedInText:!1,handler(e,t){return{type:`vcenter`,mode:e.parser.mode,body:t[0]}},htmlBuilder(e,t){var n=Y(e.body,t),r=t.fontMetrics().axisHeight;return q({positionType:`shift`,positionData:.5*(n.height-r-(n.depth+r)),children:[{type:`elem`,elem:n}]})},mathmlBuilder(e,t){return new X(`mrow`,[new X(`mpadded`,[Z(e.body,t)],[`vcenter`])])}}),J({type:`verb`,names:[`\\verb`],numArgs:0,allowedInText:!0,handler(e,t,n){throw new N(`\\verb ended by end of line instead of matching delimiter`)},htmlBuilder(e,t){for(var n=Mu(e),r=[],i=t.havingStyle(t.style.text()),a=0;a<n.length;a++){var o=n[a];o===`~`&&(o=`\\textasciitilde`),r.push(vs(o,`Typewriter-Regular`,e.mode,i,[`mord`,`texttt`]))}return K([`mord`,`text`].concat(i.sizingClasses(t)),Cs(r),i)},mathmlBuilder(e,t){var n=new X(`mtext`,[new oc(Mu(e))]);return n.setAttribute(`mathvariant`,`monospace`),n}});var Mu=e=>e.body.replace(/ /g,e.star?`␣`:`\xA0`),Nu=Vs,Pu=`[ \r
|
|
320
320
|
]`,Fu=`\\\\[a-zA-Z@]+`,Iu=`\\\\[^\ud800-\udfff]`,Lu=`(`+Fu+`)`+Pu+`*`,Ru=`\\\\(
|
|
321
321
|
|[ \r ]+
|
|
322
322
|
?)[ \r ]*`,zu=`[̀-ͯ]`,Bu=RegExp(zu+`+$`),Vu=`(`+Pu+`+)|`+(Ru+`|`)+`([!-\\[\\]-‧-豈-]`+(zu+`*`)+`|[\ud800-\udbff][\udc00-\udfff]`+(zu+`*`)+`|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5`+(`|`+Lu)+(`|`+Iu+`)`),Hu=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(Vu,`g`),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Hl(`EOF`,new Vl(this,t,t));var n=this.tokenRegex.exec(e);if(n===null||n.index!==t)throw new N(`Unexpected character: '`+e[t]+`'`,new Hl(e[t],new Vl(this,t,t+1)));var r=n[6]||n[3]||(n[2]?`\\ `:` `);if(this.catcodes[r]===14){var i=e.indexOf(`
|
|
323
323
|
`,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=e.length,gs({strict:this.settings.strict,errorCode:`commentAtEnd`,errorMsg:`% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)`,report:!0})):this.tokenRegex.lastIndex=i+1,this.lex()}return new Hl(r,new Vl(this,t,this.tokenRegex.lastIndex))}},Uu=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new N(`Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug`);var e=this.undefStack.pop();for(var t of Object.keys(e))e[t]===void 0?delete this.current[t]:this.current[t]=e[t]}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e]}set(e,t,n){if(n===void 0&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var i=this.undefStack[this.undefStack.length-1];i&&!Object.prototype.hasOwnProperty.call(i,e)&&(i[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0)}t==null?delete this.current[e]:this.current[e]=t}},Wu=Bl;$(`\\noexpand`,function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),$(`\\expandafter`,function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),$(`\\@firstoftwo`,function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),$(`\\@secondoftwo`,function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),$(`\\@ifnextchar`,function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),$(`\\@ifstar`,`\\@ifnextchar *{\\@firstoftwo{#1}}`),$(`\\TextOrMath`,function(e){var t=e.consumeArgs(2);return e.mode===`text`?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Gu={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};$(`\\char`,function(e){var t=e.popToken(),n,r=0;if(t.text===`'`)n=8,t=e.popToken();else if(t.text===`"`)n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]===`\\`)r=t.text.charCodeAt(1);else if(t.text===`EOF`)throw new N("\\char` missing argument");else r=t.text.charCodeAt(0);else n=10;if(n){if(r=Gu[t.text],r==null||r>=n)throw new N(`Invalid base-`+n+` digit `+t.text);for(var i;(i=Gu[e.future().text])!=null&&i<n;)r*=n,r+=i,e.popToken()}return`\\@char{`+r+`}`});var Ku=(e,t,n,r)=>{var i=e.consumeArg().tokens;if(i.length!==1)throw new N(`\\newcommand's first argument must be a macro name`);var a=i[0].text,o=e.isDefined(a);if(o&&!t)throw new N(`\\newcommand{`+a+`} attempting to redefine `+(a+`; use \\renewcommand`));if(!o&&!n)throw new N(`\\renewcommand{`+a+`} when command `+a+` does not yet exist; use \\newcommand`);var s=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text===`[`){for(var c=``,l=e.expandNextToken();l.text!==`]`&&l.text!==`EOF`;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new N(`Invalid number of arguments: `+c);s=parseInt(c),i=e.consumeArg().tokens}return o&&r||e.macros.set(a,{tokens:i,numArgs:s}),``};$(`\\newcommand`,e=>Ku(e,!1,!0,!1)),$(`\\renewcommand`,e=>Ku(e,!0,!1,!1)),$(`\\providecommand`,e=>Ku(e,!0,!0,!0)),$(`\\message`,e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(e=>e.text).join(``)),``}),$(`\\errmessage`,e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(e=>e.text).join(``)),``}),$(`\\show`,e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Nu[n],Ao.math[n],Ao.text[n]),``}),$(`\\bgroup`,`{`),$(`\\egroup`,`}`),$(`~`,`\\nobreakspace`),$(`\\lq`,"`"),$(`\\rq`,`'`),$(`\\aa`,`\\r a`),$(`\\AA`,`\\r A`),$(`\\textcopyright`,"\\html@mathml{\\textcircled{c}}{\\char`©}"),$(`\\copyright`,`\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}`),$(`\\textregistered`,"\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),$(`ℬ`,`\\mathscr{B}`),$(`ℰ`,`\\mathscr{E}`),$(`ℱ`,`\\mathscr{F}`),$(`ℋ`,`\\mathscr{H}`),$(`ℐ`,`\\mathscr{I}`),$(`ℒ`,`\\mathscr{L}`),$(`ℳ`,`\\mathscr{M}`),$(`ℛ`,`\\mathscr{R}`),$(`ℭ`,`\\mathfrak{C}`),$(`ℌ`,`\\mathfrak{H}`),$(`ℨ`,`\\mathfrak{Z}`),$(`\\Bbbk`,`\\Bbb{k}`),$(`\\llap`,`\\mathllap{\\textrm{#1}}`),$(`\\rlap`,`\\mathrlap{\\textrm{#1}}`),$(`\\clap`,`\\mathclap{\\textrm{#1}}`),$(`\\mathstrut`,`\\vphantom{(}`),$(`\\underbar`,`\\underline{\\text{#1}}`),$(`\\not`,`\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}`),$(`\\neq`,"\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),$(`\\ne`,`\\neq`),$(`≠`,`\\neq`),$(`\\notin`,"\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),$(`∉`,`\\notin`),$(`≘`,"\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),$(`≙`,"\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),$(`≚`,"\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),$(`≛`,"\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),$(`≝`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),$(`≞`,"\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),$(`≟`,"\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),$(`⟂`,`\\perp`),$(`‼`,`\\mathclose{!\\mkern-0.8mu!}`),$(`∌`,`\\notni`),$(`⌜`,`\\ulcorner`),$(`⌝`,`\\urcorner`),$(`⌞`,`\\llcorner`),$(`⌟`,`\\lrcorner`),$(`©`,`\\copyright`),$(`®`,`\\textregistered`),$(`\\ulcorner`,`\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}`),$(`\\urcorner`,`\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}`),$(`\\llcorner`,`\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}`),$(`\\lrcorner`,`\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}`),$(`\\vdots`,`{\\varvdots\\rule{0pt}{15pt}}`),$(`⋮`,`\\vdots`),$(`\\varGamma`,`\\mathit{\\Gamma}`),$(`\\varDelta`,`\\mathit{\\Delta}`),$(`\\varTheta`,`\\mathit{\\Theta}`),$(`\\varLambda`,`\\mathit{\\Lambda}`),$(`\\varXi`,`\\mathit{\\Xi}`),$(`\\varPi`,`\\mathit{\\Pi}`),$(`\\varSigma`,`\\mathit{\\Sigma}`),$(`\\varUpsilon`,`\\mathit{\\Upsilon}`),$(`\\varPhi`,`\\mathit{\\Phi}`),$(`\\varPsi`,`\\mathit{\\Psi}`),$(`\\varOmega`,`\\mathit{\\Omega}`),$(`\\substack`,`\\begin{subarray}{c}#1\\end{subarray}`),$(`\\colon`,`\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax`),$(`\\boxed`,`\\fbox{$\\displaystyle{#1}$}`),$(`\\iff`,`\\DOTSB\\;\\Longleftrightarrow\\;`),$(`\\implies`,`\\DOTSB\\;\\Longrightarrow\\;`),$(`\\impliedby`,`\\DOTSB\\;\\Longleftarrow\\;`),$(`\\dddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}`),$(`\\ddddot`,`{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}`);var qu={",":`\\dotsc`,"\\not":`\\dotsb`,"+":`\\dotsb`,"=":`\\dotsb`,"<":`\\dotsb`,">":`\\dotsb`,"-":`\\dotsb`,"*":`\\dotsb`,":":`\\dotsb`,"\\DOTSB":`\\dotsb`,"\\coprod":`\\dotsb`,"\\bigvee":`\\dotsb`,"\\bigwedge":`\\dotsb`,"\\biguplus":`\\dotsb`,"\\bigcap":`\\dotsb`,"\\bigcup":`\\dotsb`,"\\prod":`\\dotsb`,"\\sum":`\\dotsb`,"\\bigotimes":`\\dotsb`,"\\bigoplus":`\\dotsb`,"\\bigodot":`\\dotsb`,"\\bigsqcup":`\\dotsb`,"\\And":`\\dotsb`,"\\longrightarrow":`\\dotsb`,"\\Longrightarrow":`\\dotsb`,"\\longleftarrow":`\\dotsb`,"\\Longleftarrow":`\\dotsb`,"\\longleftrightarrow":`\\dotsb`,"\\Longleftrightarrow":`\\dotsb`,"\\mapsto":`\\dotsb`,"\\longmapsto":`\\dotsb`,"\\hookrightarrow":`\\dotsb`,"\\doteq":`\\dotsb`,"\\mathbin":`\\dotsb`,"\\mathrel":`\\dotsb`,"\\relbar":`\\dotsb`,"\\Relbar":`\\dotsb`,"\\xrightarrow":`\\dotsb`,"\\xleftarrow":`\\dotsb`,"\\DOTSI":`\\dotsi`,"\\int":`\\dotsi`,"\\oint":`\\dotsi`,"\\iint":`\\dotsi`,"\\iiint":`\\dotsi`,"\\iiiint":`\\dotsi`,"\\idotsint":`\\dotsi`,"\\DOTSX":`\\dotsx`},Ju=new Set([`bin`,`rel`]);$(`\\dots`,function(e){var t=`\\dotso`,n=e.expandAfterFuture().text;return n in qu?t=qu[n]:(n.slice(0,4)===`\\not`||n in Ao.math&&Ju.has(Ao.math[n].group))&&(t=`\\dotsb`),t});var Yu={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};$(`\\dotso`,function(e){return e.future().text in Yu?`\\ldots\\,`:`\\ldots`}),$(`\\dotsc`,function(e){var t=e.future().text;return t in Yu&&t!==`,`?`\\ldots\\,`:`\\ldots`}),$(`\\cdots`,function(e){return e.future().text in Yu?`\\@cdots\\,`:`\\@cdots`}),$(`\\dotsb`,`\\cdots`),$(`\\dotsm`,`\\cdots`),$(`\\dotsi`,`\\!\\cdots`),$(`\\dotsx`,`\\ldots\\,`),$(`\\DOTSI`,`\\relax`),$(`\\DOTSB`,`\\relax`),$(`\\DOTSX`,`\\relax`),$(`\\tmspace`,`\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax`),$(`\\,`,`\\tmspace+{3mu}{.1667em}`),$(`\\thinspace`,`\\,`),$(`\\>`,`\\mskip{4mu}`),$(`\\:`,`\\tmspace+{4mu}{.2222em}`),$(`\\medspace`,`\\:`),$(`\\;`,`\\tmspace+{5mu}{.2777em}`),$(`\\thickspace`,`\\;`),$(`\\!`,`\\tmspace-{3mu}{.1667em}`),$(`\\negthinspace`,`\\!`),$(`\\negmedspace`,`\\tmspace-{4mu}{.2222em}`),$(`\\negthickspace`,`\\tmspace-{5mu}{.277em}`),$(`\\enspace`,`\\kern.5em `),$(`\\enskip`,`\\hskip.5em\\relax`),$(`\\quad`,`\\hskip1em\\relax`),$(`\\qquad`,`\\hskip2em\\relax`),$(`\\tag`,`\\@ifstar\\tag@literal\\tag@paren`),$(`\\tag@paren`,`\\tag@literal{({#1})}`),$(`\\tag@literal`,e=>{if(e.macros.get(`\\df@tag`))throw new N(`Multiple \\tag`);return`\\gdef\\df@tag{\\text{#1}}`}),$(`\\bmod`,`\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}`),$(`\\pod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)`),$(`\\pmod`,`\\pod{{\\rm mod}\\mkern6mu#1}`),$(`\\mod`,`\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1`),$(`\\newline`,`\\\\\\relax`),$(`\\TeX`,`\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}`);var Xu=F(Co[`Main-Regular`][84][1]-.7*Co[`Main-Regular`][65][1]);$(`\\LaTeX`,`\\textrm{\\html@mathml{`+(`L\\kern-.36em\\raisebox{`+Xu+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{LaTeX}}`),$(`\\KaTeX`,`\\textrm{\\html@mathml{`+(`K\\kern-.17em\\raisebox{`+Xu+`}{\\scriptstyle A}`)+`\\kern-.15em\\TeX}{KaTeX}}`),$(`\\hspace`,`\\@ifstar\\@hspacer\\@hspace`),$(`\\@hspace`,`\\hskip #1\\relax`),$(`\\@hspacer`,`\\rule{0pt}{0pt}\\hskip #1\\relax`),$(`\\ordinarycolon`,`:`),$(`\\vcentcolon`,`\\mathrel{\\mathop\\ordinarycolon}`),$(`\\dblcolon`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}`),$(`\\coloneqq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}`),$(`\\Coloneqq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}`),$(`\\coloneq`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}`),$(`\\Coloneq`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}`),$(`\\eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}`),$(`\\Eqqcolon`,`\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}`),$(`\\eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}`),$(`\\Eqcolon`,`\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}`),$(`\\colonapprox`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}`),$(`\\Colonapprox`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}`),$(`\\colonsim`,`\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}`),$(`\\Colonsim`,`\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}`),$(`∷`,`\\dblcolon`),$(`∹`,`\\eqcolon`),$(`≔`,`\\coloneqq`),$(`≕`,`\\eqqcolon`),$(`⩴`,`\\Coloneqq`),$(`\\ratio`,`\\vcentcolon`),$(`\\coloncolon`,`\\dblcolon`),$(`\\colonequals`,`\\coloneqq`),$(`\\coloncolonequals`,`\\Coloneqq`),$(`\\equalscolon`,`\\eqqcolon`),$(`\\equalscoloncolon`,`\\Eqqcolon`),$(`\\colonminus`,`\\coloneq`),$(`\\coloncolonminus`,`\\Coloneq`),$(`\\minuscolon`,`\\eqcolon`),$(`\\minuscoloncolon`,`\\Eqcolon`),$(`\\coloncolonapprox`,`\\Colonapprox`),$(`\\coloncolonsim`,`\\Colonsim`),$(`\\simcolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\simcoloncolon`,`\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\approxcolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}`),$(`\\approxcoloncolon`,`\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}`),$(`\\notni`,"\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),$(`\\limsup`,`\\DOTSB\\operatorname*{lim\\,sup}`),$(`\\liminf`,`\\DOTSB\\operatorname*{lim\\,inf}`),$(`\\injlim`,`\\DOTSB\\operatorname*{inj\\,lim}`),$(`\\projlim`,`\\DOTSB\\operatorname*{proj\\,lim}`),$(`\\varlimsup`,`\\DOTSB\\operatorname*{\\overline{lim}}`),$(`\\varliminf`,`\\DOTSB\\operatorname*{\\underline{lim}}`),$(`\\varinjlim`,`\\DOTSB\\operatorname*{\\underrightarrow{lim}}`),$(`\\varprojlim`,`\\DOTSB\\operatorname*{\\underleftarrow{lim}}`),$(`\\gvertneqq`,`\\html@mathml{\\@gvertneqq}{≩}`),$(`\\lvertneqq`,`\\html@mathml{\\@lvertneqq}{≨}`),$(`\\ngeqq`,`\\html@mathml{\\@ngeqq}{≱}`),$(`\\ngeqslant`,`\\html@mathml{\\@ngeqslant}{≱}`),$(`\\nleqq`,`\\html@mathml{\\@nleqq}{≰}`),$(`\\nleqslant`,`\\html@mathml{\\@nleqslant}{≰}`),$(`\\nshortmid`,`\\html@mathml{\\@nshortmid}{∤}`),$(`\\nshortparallel`,`\\html@mathml{\\@nshortparallel}{∦}`),$(`\\nsubseteqq`,`\\html@mathml{\\@nsubseteqq}{⊈}`),$(`\\nsupseteqq`,`\\html@mathml{\\@nsupseteqq}{⊉}`),$(`\\varsubsetneq`,`\\html@mathml{\\@varsubsetneq}{⊊}`),$(`\\varsubsetneqq`,`\\html@mathml{\\@varsubsetneqq}{⫋}`),$(`\\varsupsetneq`,`\\html@mathml{\\@varsupsetneq}{⊋}`),$(`\\varsupsetneqq`,`\\html@mathml{\\@varsupsetneqq}{⫌}`),$(`\\imath`,`\\html@mathml{\\@imath}{ı}`),$(`\\jmath`,`\\html@mathml{\\@jmath}{ȷ}`),$(`\\llbracket`,"\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),$(`\\rrbracket`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),$(`⟦`,`\\llbracket`),$(`⟧`,`\\rrbracket`),$(`\\lBrace`,"\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),$(`\\rBrace`,"\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),$(`↤`,`\\mapsfrom`),$(`\\mapsfrom`,"\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}"),$(`⦃`,`\\lBrace`),$(`⦄`,`\\rBrace`),$(`\\minuso`,"\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),$(`⦵`,`\\minuso`),$(`\\darr`,`\\downarrow`),$(`\\dArr`,`\\Downarrow`),$(`\\Darr`,`\\Downarrow`),$(`\\lang`,`\\langle`),$(`\\rang`,`\\rangle`),$(`\\uarr`,`\\uparrow`),$(`\\uArr`,`\\Uparrow`),$(`\\Uarr`,`\\Uparrow`),$(`\\N`,`\\mathbb{N}`),$(`\\R`,`\\mathbb{R}`),$(`\\Z`,`\\mathbb{Z}`),$(`\\alef`,`\\aleph`),$(`\\alefsym`,`\\aleph`),$(`\\Alpha`,`\\mathrm{A}`),$(`\\Beta`,`\\mathrm{B}`),$(`\\bull`,`\\bullet`),$(`\\Chi`,`\\mathrm{X}`),$(`\\clubs`,`\\clubsuit`),$(`\\cnums`,`\\mathbb{C}`),$(`\\Complex`,`\\mathbb{C}`),$(`\\Dagger`,`\\ddagger`),$(`\\diamonds`,`\\diamondsuit`),$(`\\empty`,`\\emptyset`),$(`\\Epsilon`,`\\mathrm{E}`),$(`\\Eta`,`\\mathrm{H}`),$(`\\exist`,`\\exists`),$(`\\harr`,`\\leftrightarrow`),$(`\\hArr`,`\\Leftrightarrow`),$(`\\Harr`,`\\Leftrightarrow`),$(`\\hearts`,`\\heartsuit`),$(`\\image`,`\\Im`),$(`\\infin`,`\\infty`),$(`\\Iota`,`\\mathrm{I}`),$(`\\isin`,`\\in`),$(`\\Kappa`,`\\mathrm{K}`),$(`\\larr`,`\\leftarrow`),$(`\\lArr`,`\\Leftarrow`),$(`\\Larr`,`\\Leftarrow`),$(`\\lrarr`,`\\leftrightarrow`),$(`\\lrArr`,`\\Leftrightarrow`),$(`\\Lrarr`,`\\Leftrightarrow`),$(`\\Mu`,`\\mathrm{M}`),$(`\\natnums`,`\\mathbb{N}`),$(`\\Nu`,`\\mathrm{N}`),$(`\\Omicron`,`\\mathrm{O}`),$(`\\plusmn`,`\\pm`),$(`\\rarr`,`\\rightarrow`),$(`\\rArr`,`\\Rightarrow`),$(`\\Rarr`,`\\Rightarrow`),$(`\\real`,`\\Re`),$(`\\reals`,`\\mathbb{R}`),$(`\\Reals`,`\\mathbb{R}`),$(`\\Rho`,`\\mathrm{P}`),$(`\\sdot`,`\\cdot`),$(`\\sect`,`\\S`),$(`\\spades`,`\\spadesuit`),$(`\\sub`,`\\subset`),$(`\\sube`,`\\subseteq`),$(`\\supe`,`\\supseteq`),$(`\\Tau`,`\\mathrm{T}`),$(`\\thetasym`,`\\vartheta`),$(`\\weierp`,`\\wp`),$(`\\Zeta`,`\\mathrm{Z}`),$(`\\argmin`,`\\DOTSB\\operatorname*{arg\\,min}`),$(`\\argmax`,`\\DOTSB\\operatorname*{arg\\,max}`),$(`\\plim`,`\\DOTSB\\mathop{\\operatorname{plim}}\\limits`),$(`\\bra`,`\\mathinner{\\langle{#1}|}`),$(`\\ket`,`\\mathinner{|{#1}\\rangle}`),$(`\\braket`,`\\mathinner{\\langle{#1}\\rangle}`),$(`\\Bra`,`\\left\\langle#1\\right|`),$(`\\Ket`,`\\left|#1\\right\\rangle`);var Zu=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.macros.get(`|`),s=t.macros.get(`\\|`);t.macros.beginGroup();var c=t=>n=>{e&&(n.macros.set(`|`,o),i.length&&n.macros.set(`\\|`,s));var a=t;return!t&&i.length&&n.future().text===`|`&&(n.popToken(),a=!0),{tokens:a?i:r,numArgs:0}};t.macros.set(`|`,c(!1)),i.length&&t.macros.set(`\\|`,c(!0));var l=t.consumeArg().tokens,u=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:u.reverse(),numArgs:0}};$(`\\bra@ket`,Zu(!1)),$(`\\bra@set`,Zu(!0)),$(`\\Braket`,`\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}`),$(`\\Set`,`\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}`),$(`\\set`,`\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}`),$(`\\angln`,`{\\angl n}`),$(`\\blue`,`\\textcolor{##6495ed}{#1}`),$(`\\orange`,`\\textcolor{##ffa500}{#1}`),$(`\\pink`,`\\textcolor{##ff00af}{#1}`),$(`\\red`,`\\textcolor{##df0030}{#1}`),$(`\\green`,`\\textcolor{##28ae7b}{#1}`),$(`\\gray`,`\\textcolor{gray}{#1}`),$(`\\purple`,`\\textcolor{##9d38bd}{#1}`),$(`\\blueA`,`\\textcolor{##ccfaff}{#1}`),$(`\\blueB`,`\\textcolor{##80f6ff}{#1}`),$(`\\blueC`,`\\textcolor{##63d9ea}{#1}`),$(`\\blueD`,`\\textcolor{##11accd}{#1}`),$(`\\blueE`,`\\textcolor{##0c7f99}{#1}`),$(`\\tealA`,`\\textcolor{##94fff5}{#1}`),$(`\\tealB`,`\\textcolor{##26edd5}{#1}`),$(`\\tealC`,`\\textcolor{##01d1c1}{#1}`),$(`\\tealD`,`\\textcolor{##01a995}{#1}`),$(`\\tealE`,`\\textcolor{##208170}{#1}`),$(`\\greenA`,`\\textcolor{##b6ffb0}{#1}`),$(`\\greenB`,`\\textcolor{##8af281}{#1}`),$(`\\greenC`,`\\textcolor{##74cf70}{#1}`),$(`\\greenD`,`\\textcolor{##1fab54}{#1}`),$(`\\greenE`,`\\textcolor{##0d923f}{#1}`),$(`\\goldA`,`\\textcolor{##ffd0a9}{#1}`),$(`\\goldB`,`\\textcolor{##ffbb71}{#1}`),$(`\\goldC`,`\\textcolor{##ff9c39}{#1}`),$(`\\goldD`,`\\textcolor{##e07d10}{#1}`),$(`\\goldE`,`\\textcolor{##a75a05}{#1}`),$(`\\redA`,`\\textcolor{##fca9a9}{#1}`),$(`\\redB`,`\\textcolor{##ff8482}{#1}`),$(`\\redC`,`\\textcolor{##f9685d}{#1}`),$(`\\redD`,`\\textcolor{##e84d39}{#1}`),$(`\\redE`,`\\textcolor{##bc2612}{#1}`),$(`\\maroonA`,`\\textcolor{##ffbde0}{#1}`),$(`\\maroonB`,`\\textcolor{##ff92c6}{#1}`),$(`\\maroonC`,`\\textcolor{##ed5fa6}{#1}`),$(`\\maroonD`,`\\textcolor{##ca337c}{#1}`),$(`\\maroonE`,`\\textcolor{##9e034e}{#1}`),$(`\\purpleA`,`\\textcolor{##ddd7ff}{#1}`),$(`\\purpleB`,`\\textcolor{##c6b9fc}{#1}`),$(`\\purpleC`,`\\textcolor{##aa87ff}{#1}`),$(`\\purpleD`,`\\textcolor{##7854ab}{#1}`),$(`\\purpleE`,`\\textcolor{##543b78}{#1}`),$(`\\mintA`,`\\textcolor{##f5f9e8}{#1}`),$(`\\mintB`,`\\textcolor{##edf2df}{#1}`),$(`\\mintC`,`\\textcolor{##e0e5cc}{#1}`),$(`\\grayA`,`\\textcolor{##f6f7f7}{#1}`),$(`\\grayB`,`\\textcolor{##f0f1f2}{#1}`),$(`\\grayC`,`\\textcolor{##e3e5e6}{#1}`),$(`\\grayD`,`\\textcolor{##d6d8da}{#1}`),$(`\\grayE`,`\\textcolor{##babec2}{#1}`),$(`\\grayF`,`\\textcolor{##888d93}{#1}`),$(`\\grayG`,`\\textcolor{##626569}{#1}`),$(`\\grayH`,`\\textcolor{##3b3e40}{#1}`),$(`\\grayI`,`\\textcolor{##21242c}{#1}`),$(`\\kaBlue`,`\\textcolor{##314453}{#1}`),$(`\\kaGreen`,`\\textcolor{##71B307}{#1}`);var Qu={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},$u=class{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Uu(Wu,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new Hu(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,r;if(e){if(this.consumeSpaces(),this.future().text!==`[`)return null;t=this.popToken();var i=this.consumeArg([`]`]);r=i.tokens,n=i.end}else{var a=this.consumeArg();r=a.tokens,t=a.start,n=a.end}return this.pushToken(new Hl(`EOF`,n.loc)),this.pushTokens(r),new Hl(``,Vl.range(t,n))}consumeSpaces(){for(;this.future().text===` `;)this.stack.pop()}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var r=this.future(),i,a=0,o=0;do{if(i=this.popToken(),t.push(i),i.text===`{`)++a;else if(i.text===`}`){if(--a,a===-1)throw new N(`Extra }`,i)}else if(i.text===`EOF`)throw new N(`Unexpected end of input in a macro argument, expected '`+(e&&n?e[o]:`}`)+`'`,i);if(e&&n)if((a===0||a===1&&e[o]===`{`)&&i.text===e[o]){if(++o,o===e.length){t.splice(-o,o);break}}else o=0}while(a!==0||n);return r.text===`{`&&t[t.length-1].text===`}`&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:r,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new N(`The length of delimiters doesn't match the number of args!`);for(var n=t[0],r=0;r<n.length;r++){var i=this.popToken();if(n[r]!==i.text)throw new N(`Use of the macro doesn't match its definition`,i)}}for(var a=[],o=0;o<e;o++)a.push(this.consumeArg(t&&t[o+1]).tokens);return a}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new N(`Too many expansions: infinite loop or need to increase maxExpand setting`)}expandOnce(e){var t=this.popToken(),n=t.text,r=t.noexpand?null:this._getExpansion(n);if(r==null||e&&r.unexpandable){if(e&&r==null&&n[0]===`\\`&&!this.isDefined(n))throw new N(`Undefined control sequence: `+n);return this.pushToken(t),!1}this.countExpansion(1);var i=r.tokens,a=this.consumeArgs(r.numArgs,r.delimiters);if(r.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var s=i[o];if(s.text===`#`){if(o===0)throw new N(`Incomplete placeholder at end of macro body`,s);if(s=i[--o],s.text===`#`)i.splice(o+1,1);else if(/^[1-9]$/.test(s.text))i.splice(o,2,...a[s.text-1]);else throw new N(`Not a valid argument number`,s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text=`\\relax`),e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Hl(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var r=this.stack.pop();r.treatAsRelax&&=(r.noexpand=!1,!1),t.push(r)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join(``)}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var r=typeof t==`function`?t(this):t;if(typeof r==`string`){var i=0;if(r.includes(`#`))for(var a=r.replace(/##/g,``);a.includes(`#`+(i+1));)++i;for(var o=new Hu(r,this.settings),s=[],c=o.lex();c.text!==`EOF`;)s.push(c),c=o.lex();return s.reverse(),{tokens:s,numArgs:i}}return r}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(Nu,e)||Object.prototype.hasOwnProperty.call(Ao.math,e)||Object.prototype.hasOwnProperty.call(Ao.text,e)||Object.prototype.hasOwnProperty.call(Qu,e)}isExpandable(e){var t=this.macros.get(e);return t==null?Object.prototype.hasOwnProperty.call(Nu,e)&&!Nu[e].primitive:typeof t==`string`||typeof t==`function`||!t.unexpandable}},ed=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,td=Object.freeze({"₊":`+`,"₋":`-`,"₌":`=`,"₍":`(`,"₎":`)`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,ₐ:`a`,ₑ:`e`,ₕ:`h`,ᵢ:`i`,ⱼ:`j`,ₖ:`k`,ₗ:`l`,ₘ:`m`,ₙ:`n`,ₒ:`o`,ₚ:`p`,ᵣ:`r`,ₛ:`s`,ₜ:`t`,ᵤ:`u`,ᵥ:`v`,ₓ:`x`,ᵦ:`β`,ᵧ:`γ`,ᵨ:`ρ`,ᵩ:`ϕ`,ᵪ:`χ`,"⁺":`+`,"⁻":`-`,"⁼":`=`,"⁽":`(`,"⁾":`)`,"⁰":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,ᴬ:`A`,ᴮ:`B`,ᴰ:`D`,ᴱ:`E`,ᴳ:`G`,ᴴ:`H`,ᴵ:`I`,ᴶ:`J`,ᴷ:`K`,ᴸ:`L`,ᴹ:`M`,ᴺ:`N`,ᴼ:`O`,ᴾ:`P`,ᴿ:`R`,ᵀ:`T`,ᵁ:`U`,ⱽ:`V`,ᵂ:`W`,ᵃ:`a`,ᵇ:`b`,ᶜ:`c`,ᵈ:`d`,ᵉ:`e`,ᶠ:`f`,ᵍ:`g`,ʰ:`h`,ⁱ:`i`,ʲ:`j`,ᵏ:`k`,ˡ:`l`,ᵐ:`m`,ⁿ:`n`,ᵒ:`o`,ᵖ:`p`,ʳ:`r`,ˢ:`s`,ᵗ:`t`,ᵘ:`u`,ᵛ:`v`,ʷ:`w`,ˣ:`x`,ʸ:`y`,ᶻ:`z`,ᵝ:`β`,ᵞ:`γ`,ᵟ:`δ`,ᵠ:`ϕ`,ᵡ:`χ`,ᶿ:`θ`}),nd={"́":{text:`\\'`,math:`\\acute`},"̀":{text:"\\`",math:`\\grave`},"̈":{text:`\\"`,math:`\\ddot`},"̃":{text:`\\~`,math:`\\tilde`},"̄":{text:`\\=`,math:`\\bar`},"̆":{text:`\\u`,math:`\\breve`},"̌":{text:`\\v`,math:`\\check`},"̂":{text:`\\^`,math:`\\hat`},"̇":{text:`\\.`,math:`\\dot`},"̊":{text:`\\r`,math:`\\mathring`},"̋":{text:`\\H`},"̧":{text:`\\c`}},rd={á:`á`,à:`à`,ä:`ä`,ǟ:`ǟ`,ã:`ã`,ā:`ā`,ă:`ă`,ắ:`ắ`,ằ:`ằ`,ẵ:`ẵ`,ǎ:`ǎ`,â:`â`,ấ:`ấ`,ầ:`ầ`,ẫ:`ẫ`,ȧ:`ȧ`,ǡ:`ǡ`,å:`å`,ǻ:`ǻ`,ḃ:`ḃ`,ć:`ć`,ḉ:`ḉ`,č:`č`,ĉ:`ĉ`,ċ:`ċ`,ç:`ç`,ď:`ď`,ḋ:`ḋ`,ḑ:`ḑ`,é:`é`,è:`è`,ë:`ë`,ẽ:`ẽ`,ē:`ē`,ḗ:`ḗ`,ḕ:`ḕ`,ĕ:`ĕ`,ḝ:`ḝ`,ě:`ě`,ê:`ê`,ế:`ế`,ề:`ề`,ễ:`ễ`,ė:`ė`,ȩ:`ȩ`,ḟ:`ḟ`,ǵ:`ǵ`,ḡ:`ḡ`,ğ:`ğ`,ǧ:`ǧ`,ĝ:`ĝ`,ġ:`ġ`,ģ:`ģ`,ḧ:`ḧ`,ȟ:`ȟ`,ĥ:`ĥ`,ḣ:`ḣ`,ḩ:`ḩ`,í:`í`,ì:`ì`,ï:`ï`,ḯ:`ḯ`,ĩ:`ĩ`,ī:`ī`,ĭ:`ĭ`,ǐ:`ǐ`,î:`î`,ǰ:`ǰ`,ĵ:`ĵ`,ḱ:`ḱ`,ǩ:`ǩ`,ķ:`ķ`,ĺ:`ĺ`,ľ:`ľ`,ļ:`ļ`,ḿ:`ḿ`,ṁ:`ṁ`,ń:`ń`,ǹ:`ǹ`,ñ:`ñ`,ň:`ň`,ṅ:`ṅ`,ņ:`ņ`,ó:`ó`,ò:`ò`,ö:`ö`,ȫ:`ȫ`,õ:`õ`,ṍ:`ṍ`,ṏ:`ṏ`,ȭ:`ȭ`,ō:`ō`,ṓ:`ṓ`,ṑ:`ṑ`,ŏ:`ŏ`,ǒ:`ǒ`,ô:`ô`,ố:`ố`,ồ:`ồ`,ỗ:`ỗ`,ȯ:`ȯ`,ȱ:`ȱ`,ő:`ő`,ṕ:`ṕ`,ṗ:`ṗ`,ŕ:`ŕ`,ř:`ř`,ṙ:`ṙ`,ŗ:`ŗ`,ś:`ś`,ṥ:`ṥ`,š:`š`,ṧ:`ṧ`,ŝ:`ŝ`,ṡ:`ṡ`,ş:`ş`,ẗ:`ẗ`,ť:`ť`,ṫ:`ṫ`,ţ:`ţ`,ú:`ú`,ù:`ù`,ü:`ü`,ǘ:`ǘ`,ǜ:`ǜ`,ǖ:`ǖ`,ǚ:`ǚ`,ũ:`ũ`,ṹ:`ṹ`,ū:`ū`,ṻ:`ṻ`,ŭ:`ŭ`,ǔ:`ǔ`,û:`û`,ů:`ů`,ű:`ű`,ṽ:`ṽ`,ẃ:`ẃ`,ẁ:`ẁ`,ẅ:`ẅ`,ŵ:`ŵ`,ẇ:`ẇ`,ẘ:`ẘ`,ẍ:`ẍ`,ẋ:`ẋ`,ý:`ý`,ỳ:`ỳ`,ÿ:`ÿ`,ỹ:`ỹ`,ȳ:`ȳ`,ŷ:`ŷ`,ẏ:`ẏ`,ẙ:`ẙ`,ź:`ź`,ž:`ž`,ẑ:`ẑ`,ż:`ż`,Á:`Á`,À:`À`,Ä:`Ä`,Ǟ:`Ǟ`,Ã:`Ã`,Ā:`Ā`,Ă:`Ă`,Ắ:`Ắ`,Ằ:`Ằ`,Ẵ:`Ẵ`,Ǎ:`Ǎ`,Â:`Â`,Ấ:`Ấ`,Ầ:`Ầ`,Ẫ:`Ẫ`,Ȧ:`Ȧ`,Ǡ:`Ǡ`,Å:`Å`,Ǻ:`Ǻ`,Ḃ:`Ḃ`,Ć:`Ć`,Ḉ:`Ḉ`,Č:`Č`,Ĉ:`Ĉ`,Ċ:`Ċ`,Ç:`Ç`,Ď:`Ď`,Ḋ:`Ḋ`,Ḑ:`Ḑ`,É:`É`,È:`È`,Ë:`Ë`,Ẽ:`Ẽ`,Ē:`Ē`,Ḗ:`Ḗ`,Ḕ:`Ḕ`,Ĕ:`Ĕ`,Ḝ:`Ḝ`,Ě:`Ě`,Ê:`Ê`,Ế:`Ế`,Ề:`Ề`,Ễ:`Ễ`,Ė:`Ė`,Ȩ:`Ȩ`,Ḟ:`Ḟ`,Ǵ:`Ǵ`,Ḡ:`Ḡ`,Ğ:`Ğ`,Ǧ:`Ǧ`,Ĝ:`Ĝ`,Ġ:`Ġ`,Ģ:`Ģ`,Ḧ:`Ḧ`,Ȟ:`Ȟ`,Ĥ:`Ĥ`,Ḣ:`Ḣ`,Ḩ:`Ḩ`,Í:`Í`,Ì:`Ì`,Ï:`Ï`,Ḯ:`Ḯ`,Ĩ:`Ĩ`,Ī:`Ī`,Ĭ:`Ĭ`,Ǐ:`Ǐ`,Î:`Î`,İ:`İ`,Ĵ:`Ĵ`,Ḱ:`Ḱ`,Ǩ:`Ǩ`,Ķ:`Ķ`,Ĺ:`Ĺ`,Ľ:`Ľ`,Ļ:`Ļ`,Ḿ:`Ḿ`,Ṁ:`Ṁ`,Ń:`Ń`,Ǹ:`Ǹ`,Ñ:`Ñ`,Ň:`Ň`,Ṅ:`Ṅ`,Ņ:`Ņ`,Ó:`Ó`,Ò:`Ò`,Ö:`Ö`,Ȫ:`Ȫ`,Õ:`Õ`,Ṍ:`Ṍ`,Ṏ:`Ṏ`,Ȭ:`Ȭ`,Ō:`Ō`,Ṓ:`Ṓ`,Ṑ:`Ṑ`,Ŏ:`Ŏ`,Ǒ:`Ǒ`,Ô:`Ô`,Ố:`Ố`,Ồ:`Ồ`,Ỗ:`Ỗ`,Ȯ:`Ȯ`,Ȱ:`Ȱ`,Ő:`Ő`,Ṕ:`Ṕ`,Ṗ:`Ṗ`,Ŕ:`Ŕ`,Ř:`Ř`,Ṙ:`Ṙ`,Ŗ:`Ŗ`,Ś:`Ś`,Ṥ:`Ṥ`,Š:`Š`,Ṧ:`Ṧ`,Ŝ:`Ŝ`,Ṡ:`Ṡ`,Ş:`Ş`,Ť:`Ť`,Ṫ:`Ṫ`,Ţ:`Ţ`,Ú:`Ú`,Ù:`Ù`,Ü:`Ü`,Ǘ:`Ǘ`,Ǜ:`Ǜ`,Ǖ:`Ǖ`,Ǚ:`Ǚ`,Ũ:`Ũ`,Ṹ:`Ṹ`,Ū:`Ū`,Ṻ:`Ṻ`,Ŭ:`Ŭ`,Ǔ:`Ǔ`,Û:`Û`,Ů:`Ů`,Ű:`Ű`,Ṽ:`Ṽ`,Ẃ:`Ẃ`,Ẁ:`Ẁ`,Ẅ:`Ẅ`,Ŵ:`Ŵ`,Ẇ:`Ẇ`,Ẍ:`Ẍ`,Ẋ:`Ẋ`,Ý:`Ý`,Ỳ:`Ỳ`,Ÿ:`Ÿ`,Ỹ:`Ỹ`,Ȳ:`Ȳ`,Ŷ:`Ŷ`,Ẏ:`Ẏ`,Ź:`Ź`,Ž:`Ž`,Ẑ:`Ẑ`,Ż:`Ż`,ά:`ά`,ὰ:`ὰ`,ᾱ:`ᾱ`,ᾰ:`ᾰ`,έ:`έ`,ὲ:`ὲ`,ή:`ή`,ὴ:`ὴ`,ί:`ί`,ὶ:`ὶ`,ϊ:`ϊ`,ΐ:`ΐ`,ῒ:`ῒ`,ῑ:`ῑ`,ῐ:`ῐ`,ό:`ό`,ὸ:`ὸ`,ύ:`ύ`,ὺ:`ὺ`,ϋ:`ϋ`,ΰ:`ΰ`,ῢ:`ῢ`,ῡ:`ῡ`,ῠ:`ῠ`,ώ:`ώ`,ὼ:`ὼ`,Ύ:`Ύ`,Ὺ:`Ὺ`,Ϋ:`Ϋ`,Ῡ:`Ῡ`,Ῠ:`Ῠ`,Ώ:`Ώ`,Ὼ:`Ὼ`},id=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode=`math`,this.gullet=new $u(e,t,this.mode),this.settings=t,this.leftrightDepth=0,this.nextToken=null}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new N(`Expected '`+e+`', got '`+this.fetch().text+`'`,this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken??=this.gullet.expandNextToken(),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set(`\\color`,`\\textcolor`);try{var e=this.parseExpression(!1);return this.expect(`EOF`),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Hl(`}`)),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect(`}`),this.nextToken=t,n}parseExpression(t,n){for(var r=[];;){this.mode===`math`&&this.consumeSpaces();var i=this.fetch();if(e.endOfExpression.has(i.text)||n&&i.text===n||t&&Nu[i.text]&&Nu[i.text].infix)break;var a=this.parseAtom(n);if(!a)break;a.type!==`internal`&&r.push(a)}return this.mode===`text`&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,n,r=0;r<e.length;r++){var i=e[r];if(i.type===`infix`){if(t!==-1)throw new N(`only one infix operator per group`,i.token);t=r,n=i.replaceWith}}if(t!==-1&&n){var a,o,s=e.slice(0,t),c=e.slice(t+1);return a=s.length===1&&s[0].type===`ordgroup`?s[0]:{type:`ordgroup`,mode:this.mode,body:s},o=c.length===1&&c[0].type===`ordgroup`?c[0]:{type:`ordgroup`,mode:this.mode,body:c},[n===`\\\\abovefrac`?this.callFunction(n,[a,e[t],o],[]):this.callFunction(n,[a,o],[])]}else return e}handleSupSubscript(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var r;do r=this.parseGroup(e);while(r?.type===`internal`);if(!r)throw new N(`Expected group after '`+n+`'`,t);return r}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:`textord`,mode:`text`,text:e[n]});var r={type:`text`,mode:this.mode,body:t};return{type:`color`,mode:this.mode,color:this.settings.errorColor,body:[r]}}parseAtom(e){var t=this.parseGroup(`atom`,e);if(t?.type===`internal`||this.mode===`text`)return t;for(var n,r;;){this.consumeSpaces();var i=this.fetch();if(i.text===`\\limits`||i.text===`\\nolimits`){if(t&&t.type===`op`)t.limits=i.text===`\\limits`,t.alwaysHandleSupSub=!0;else if(t&&t.type===`operatorname`)t.alwaysHandleSupSub&&(t.limits=i.text===`\\limits`);else throw new N(`Limit controls must follow a math operator`,i);this.consume()}else if(i.text===`^`){if(n)throw new N(`Double superscript`,i);n=this.handleSupSubscript(`superscript`)}else if(i.text===`_`){if(r)throw new N(`Double subscript`,i);r=this.handleSupSubscript(`subscript`)}else if(i.text===`'`){if(n)throw new N(`Double superscript`,i);var a={type:`textord`,mode:this.mode,text:`\\prime`},o=[a];for(this.consume();this.fetch().text===`'`;)o.push(a),this.consume();this.fetch().text===`^`&&o.push(this.handleSupSubscript(`superscript`)),n={type:`ordgroup`,mode:this.mode,body:o}}else if(td[i.text]){var s=ed.test(i.text),c=[];for(c.push(new Hl(td[i.text])),this.consume();;){var l=this.fetch().text;if(!td[l]||ed.test(l)!==s)break;c.unshift(new Hl(td[l])),this.consume()}var u=this.subparse(c);s?r={type:`ordgroup`,mode:`math`,body:u}:n={type:`ordgroup`,mode:`math`,body:u}}else break}return n&&r?{type:`supsub`,mode:this.mode,base:t,sup:n,sub:r}:n?{type:`supsub`,mode:this.mode,base:t,sup:n}:r?{type:`supsub`,mode:this.mode,base:t,sub:r}:t}parseFunction(e,t){var n=this.fetch(),r=n.text,i=Nu[r];if(!i)return null;if(this.consume(),t&&t!==`atom`&&!i.allowedInArgument)throw new N(`Got function '`+r+`' with no arguments`+(t?` as `+t:``),n);if(this.mode===`text`&&!i.allowedInText)throw new N(`Can't use function '`+r+`' in text mode`,n);if(this.mode===`math`&&i.allowedInMath===!1)throw new N(`Can't use function '`+r+`' in math mode`,n);var a=this.parseArguments(r,i),o=a.args,s=a.optArgs;return this.callFunction(r,o,s,n,e)}callFunction(e,t,n,r,i){var a={funcName:e,parser:this,token:r,breakOnTokenText:i},o=Nu[e];if(o&&o.handler)return o.handler(a,t,n);throw new N(`No function handler for `+e)}parseArguments(e,t){var n=t.numOptionalArgs??0,r=t.numArgs+n;if(r===0)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<r;o++){var s=t.argTypes?.[o],c=o<n;(`primitive`in t&&t.primitive&&s==null||t.type===`sqrt`&&o===1&&a[0]==null)&&(s=`primitive`);var l=this.parseGroupOfType(`argument to '`+e+`'`,s,c);if(c)a.push(l);else if(l!=null)i.push(l);else throw new N(`Null argument, please report this as a bug`)}return{args:i,optArgs:a}}parseGroupOfType(e,t,n){switch(t){case`color`:return this.parseColorGroup(n);case`size`:return this.parseSizeGroup(n);case`url`:return this.parseUrlGroup(n);case`math`:case`text`:return this.parseArgumentGroup(n,t);case`hbox`:var r=this.parseArgumentGroup(n,`text`);return r==null?null:{type:`styling`,mode:r.mode,body:[r],style:`text`,resetFont:!0};case`raw`:var i=this.parseStringGroup(n);return i==null?null:{type:`raw`,mode:`text`,string:i.text};case`primitive`:if(n)throw new N(`A primitive argument cannot be optional`);var a=this.parseGroup(e);if(a==null)throw new N(`Expected group as `+e,this.fetch());return a;case`original`:case void 0:return this.parseArgumentGroup(n);default:throw new N(`Unknown group type as `+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===` `;)this.consume()}parseStringGroup(e){var t=this.gullet.scanArgument(e);if(t==null)return null;for(var n=``,r;(r=this.fetch()).text!==`EOF`;)n+=r.text,this.consume();return this.consume(),t.text=n,t}parseRegexGroup(e,t){for(var n=this.fetch(),r=n,i=``,a;(a=this.fetch()).text!==`EOF`&&e.test(i+a.text);)r=a,i+=r.text,this.consume();if(i===``)throw new N(`Invalid `+t+`: '`+n.text+`'`,n);return n.range(r,i)}parseColorGroup(e){var t=this.parseStringGroup(e);if(t==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new N(`Invalid color: '`+t.text+`'`,t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r=`#`+r),{type:`color-token`,mode:this.mode,color:r}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),t=!e&&this.gullet.future().text!==`{`?this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,`size`):this.parseStringGroup(e),!t)return null;!e&&t.text.length===0&&(t.text=`0pt`,n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new N(`Invalid size: '`+t.text+`'`,t);var i={number:+(r[1]+r[2]),unit:r[3]};if(!ro(i))throw new N(`Invalid unit: '`+i.unit+`'`,t);return{type:`size`,mode:this.mode,value:i,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode(`%`,13),this.gullet.lexer.setCatcode(`~`,12);var t=this.parseStringGroup(e);if(this.gullet.lexer.setCatcode(`%`,14),this.gullet.lexer.setCatcode(`~`,13),t==null)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,`$1`);return{type:`url`,mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);if(n==null)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var i=this.parseExpression(!1,`EOF`);this.expect(`EOF`),this.gullet.endGroup();var a={type:`ordgroup`,mode:this.mode,loc:n.loc,body:i};return t&&this.switchMode(r),a}parseGroup(e,t){var n=this.fetch(),r=n.text,i;if(r===`{`||r===`\\begingroup`){this.consume();var a=r===`{`?`}`:`\\endgroup`;this.gullet.beginGroup();var o=this.parseExpression(!1,a),s=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:`ordgroup`,mode:this.mode,loc:Vl.range(n,s),body:o,semisimple:r===`\\begingroup`||void 0}}else if(i=this.parseFunction(t,e)||this.parseSymbol(),i==null&&r[0]===`\\`&&!Object.prototype.hasOwnProperty.call(Qu,r)){if(this.settings.throwOnError)throw new N(`Undefined control sequence: `+r,n);i=this.formatUnsupportedCmd(r),this.consume()}return i}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n];if(r.type===`textord`){var i=r.text,a=e[n+1];if(!(!a||a.type!==`textord`)){if(i===`-`&&a.text===`-`){var o=e[n+2];n+1<t&&o&&o.type===`textord`&&o.text===`-`?(e.splice(n,3,{type:`textord`,mode:`text`,loc:Vl.range(r,o),text:`---`}),t-=2):(e.splice(n,2,{type:`textord`,mode:`text`,loc:Vl.range(r,a),text:`--`}),--t)}(i===`'`||i==="`")&&a.text===i&&(e.splice(n,2,{type:`textord`,mode:`text`,loc:Vl.range(r,a),text:i+i}),--t)}}}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r=n.charAt(0)===`*`;if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new N(`\\verb assertion failed --
|
|
324
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Object.prototype.hasOwnProperty.call(rd,t[0])&&!Ao[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&gs({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Accented Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}),t=rd[t[0]]+t.slice(1));var i=Bu.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(Ao[this.mode][t]){this.settings.strict&&this.mode===`math`&&Qo.includes(t)&&gs({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e});var o=Ao[this.mode][t].group,s=Vl.range(e);a=Ic(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(za(t.charCodeAt(0))?this.mode===`math`&&gs({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):gs({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:Vl.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!nd[l])throw new N(`Unknown accent ' `+l+`'`,e);var u=nd[l][this.mode]||nd[l].text;if(!u)throw new N(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:Vl.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};id.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var ad=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new id(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new N(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new Hl(`\\df@tag`)])}]}return r},od=function(e,t,n){t.textContent=``;var r=ud(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),od=function(){throw new N(`KaTeX doesn't work in quirks mode.`)});var sd=function(e,t){return ud(e,t).toMarkup()},cd=function(e,t){return ad(e,new ya(t))},ld=function(e,t,n){if(n.throwOnError||!(e instanceof N))throw e;var r=K([`katex-error`],[new go(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},ud=function(e,t){var n=new ya(t);try{return wc(ad(e,n),e,n)}catch(t){return ld(t,e,n)}},dd={version:`0.19.0`,render:od,renderToString:sd,ParseError:N,SETTINGS_SCHEMA:ha,__parse:cd,__renderToDomTree:ud,__renderToHTMLTree:function(e,t){var n=new ya(t);try{return Tc(ad(e,n),n)}catch(t){return ld(t,e,n)}},__setFontMetrics:Eo,__defineSymbol:I,__defineFunction:J,__defineMacro:$,__domTree:{Span:fo,Anchor:po,SymbolNode:go,SvgNode:_o,PathNode:vo,LineNode:yo}},fd=new Map,pd=0;function md(e,t={streaming:!1}){if(e.latex.length>16384)return{status:`fallback`,reason:`limit`,source:e.raw};if(e.state===`pending`)return t.streaming?{status:`pending`}:{status:`fallback`,reason:`invalid`,source:e.raw};let n=`${dd.version}:${aa}:${e.display}:${e.latex}`,r=fd.get(n);if(r)return fd.delete(n),fd.set(n,r),r.result.status===`fallback`?{...r.result,source:e.raw}:r.result;let i;try{i={status:`ready`,html:dd.renderToString(e.latex,{displayMode:e.display,output:`htmlAndMathml`,trust:!1,throwOnError:!0,strict:`ignore`,maxExpand:1e3,maxSize:20,globalGroup:!1,macros:{}})}}catch{i={status:`fallback`,reason:`invalid`,source:e.raw}}let a=(n.length+(i.status===`ready`?i.html.length:e.raw.length))*2;if(a<=2097152){for(;fd.size>=256||pd+a>2097152;){let e=fd.keys().next().value;pd-=fd.get(e).bytes,fd.delete(e)}fd.set(n,{result:i,bytes:a}),pd+=a}return i}function hd(e,t={streaming:!1},n=!1){let r=n?{status:`fallback`,reason:`limit`,source:e.raw}:md(e,t),i=e.display?`div`:`span`,a=r.status===`ready`?r.html:`<span class="markdown-math-source">${an(e.raw)}</span>`;return`<${i} class="markdown-math ${e.display?`markdown-math-display`:`markdown-math-inline`}" data-xopc-math="${r.status}" data-xopc-math-source="${an(on(e))}">${a}</${i}>`}var gd=e=>`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`,_d={latex:gd(`<rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>`),markdown:gd(`<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"/><path d="M14 2v6h6M10 12l-2 2 2 2M14 12l2 2-2 2"/>`),copied:gd(`<path d="m20 6-11 11-5-5"/>`)};function vd(e,t,n){let r=e.querySelectorAll(`code[data-xopc-math-source]`),i=0;for(let e of r){let r=sn(e.dataset.xopcMathSource??``);if(!r)continue;let a=document.createElement(`template`);a.innerHTML=hd(r,{streaming:t},++i>256);let o=a.content.firstElementChild;if(o.dataset.xopcMath===`pending`&&(o.title=n.mathPending),o.dataset.xopcMath===`fallback`&&(o.title=n.mathFailed),r.display){let e=document.createElement(`span`);e.className=`markdown-math-actions`;for(let[t,i,a]of[[n.mathCopyLatex,r.latex,_d.latex],[n.mathCopyMarkdown,r.raw,_d.markdown]]){let r=document.createElement(`button`);r.type=`button`,r.title=t,r.setAttribute(`aria-label`,t),r.innerHTML=a;let o;r.addEventListener(`click`,()=>{C(i).then(e=>{!e||!r.isConnected||(r.innerHTML=_d.copied,r.title=n.messageCopied,window.clearTimeout(o),o=window.setTimeout(()=>{r.isConnected&&(r.innerHTML=a,r.title=t)},2e3))})}),e.appendChild(r)}o.appendChild(e)}(e.parentElement?.tagName===`PRE`?e.parentElement:e).replaceWith(o)}}var yd=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,bd=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>`,xd=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,Sd=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/></svg>`;function Cd(e){return e.querySelector(`code`)?.textContent??e.textContent??``}function wd(e){let t=e.querySelector(`code`);if(!t?.className)return`plaintext`;for(let e of t.className.split(/\s+/))if(e.startsWith(`language-`))return e.slice(9).trim()||`plaintext`;return`plaintext`}function Td(e){let t=document.createDocumentFragment(),n=document.createElement(`span`);return n.className=`markdown-code-copy-inner`,n.innerHTML=e===`idle`?yd:bd,t.appendChild(n),t}function Ed(e){e.querySelectorAll(`[data-md-code-block]`).forEach(e=>{if(e.closest(`[data-md-chart]`))return;let t=e.querySelector(`:scope > pre`),n=e.parentNode;t&&n&&(n.insertBefore(t,e),e.remove())})}function Dd(e,t){let n=e.querySelectorAll(`.markdown-body pre`),r=[];for(let e of n){if(e.closest(`[data-md-chart]`)||e.closest(`[data-md-code-block]`))continue;let n=e.parentNode;if(!n)continue;let i=document.createElement(`div`);i.className=`markdown-code-block`,i.setAttribute(`data-md-code-block`,``);let a=document.createElement(`div`);a.className=`markdown-code-block-header`;let o=document.createElement(`span`);o.className=`markdown-code-block-lang`,o.textContent=wd(e);let s=document.createElement(`button`);s.type=`button`,s.className=`markdown-code-copy-btn`,s.dataset.mdCodeCopy=``,s.title=t.copy,s.setAttribute(`aria-label`,t.copy),s.replaceChildren(Td(`idle`));let c=n=>{n.preventDefault(),n.stopPropagation(),C(Cd(e)).then(e=>{!e||!s.isConnected||(s.replaceChildren(Td(`copied`)),s.title=t.copied,s.setAttribute(`aria-label`,t.copied),window.setTimeout(()=>{s.isConnected&&(s.replaceChildren(Td(`idle`)),s.title=t.copy,s.setAttribute(`aria-label`,t.copy))},2e3))})};s.addEventListener(`click`,c),a.appendChild(o),a.appendChild(s),i.appendChild(a),n.insertBefore(i,e),i.appendChild(e),r.push(()=>{s.removeEventListener(`click`,c);let t=e.parentElement;t?.matches(`[data-md-code-block]`)&&t.parentNode&&(t.parentNode.insertBefore(e,t),t.remove())})}return()=>{for(let e of r)e()}}function Od(e){return e.classList.contains(`language-mermaid`)?!0:Array.from(e.classList).some(e=>e.startsWith(`language-`))?!1:ea(e.textContent??``)}function kd(e){return Array.from(e.querySelectorAll(`pre code`)).filter(e=>!e.closest(`[data-md-chart]`)&&Od(e))}function Ad(e){let t=e.closest(`pre`);if(!t?.parentNode)return null;let n=t.closest(`[data-md-code-block]`),r=n??document.createElement(`div`);return n||(t.parentNode.insertBefore(r,t),r.appendChild(t)),r.classList.add(`markdown-mermaid-shell`),r}function jd(e,t){e.replaceChildren(t),e.className=`markdown-mermaid markdown-mermaid-shell`,e.removeAttribute(`data-md-code-block`),e.setAttribute(`data-mermaid-diagram`,``)}function Md(e,t,n){let r=document.createElement(`div`);r.className=`markdown-mermaid-error-message`,r.setAttribute(`role`,`alert`),r.textContent=t,n instanceof Error&&n.message&&(r.title=n.message),e.replaceChildren(r),e.className=`markdown-mermaid markdown-mermaid-error markdown-mermaid-shell`,e.removeAttribute(`data-md-code-block`),e.setAttribute(`data-mermaid-error`,``)}function Nd(e,t,n){let r=document.createElement(`button`);return r.type=`button`,r.className=`markdown-mermaid-action-button`,r.title=e,r.setAttribute(`aria-label`,e),r.dataset.mermaidAction=n,r.innerHTML=t,r}function Pd(e,t,n,r){let i=e.querySelector(`svg`);if(!i)return()=>{};let a=`mermaid-diagram-${t+1}`,o=document.createElement(`div`);o.className=`markdown-mermaid-actions`;let s=Nd(n.downloadPng,xd,`download-png`),c=Nd(n.preview,Sd,`preview`);o.append(s,c),e.appendChild(o),e.classList.add(`markdown-mermaid-interactive`);let l=()=>({snapshot:Wi(i,e),baseName:a}),u=()=>r(l()),d=e=>{e.preventDefault(),e.stopPropagation(),u()},f=e=>{e.preventDefault(),e.stopPropagation(),!s.disabled&&(s.disabled=!0,s.title=n.downloadPng,s.setAttribute(`aria-label`,n.downloadPng),s.setAttribute(`aria-busy`,`true`),Zi(l().snapshot,`${a}.png`).catch(()=>{s.title=n.downloadFailed,s.setAttribute(`aria-label`,n.downloadFailed)}).finally(()=>{s.isConnected&&(s.disabled=!1,s.removeAttribute(`aria-busy`))}))},p=e=>{let t=e.target instanceof Element?e.target:null;t?.closest(`svg`)&&!t.closest(`.markdown-mermaid-actions`)&&u()};return c.addEventListener(`click`,d),s.addEventListener(`click`,f),e.addEventListener(`click`,p),()=>{c.removeEventListener(`click`,d),s.removeEventListener(`click`,f),e.removeEventListener(`click`,p),o.remove(),e.classList.remove(`markdown-mermaid-interactive`)}}function Fd({content:e,compact:t=!1,breaks:n=!1,className:r,codeCopy:i=!0,onWorkspaceFileOpen:a,onWorkspaceImageLoad:o,renderMermaid:s=!0,mermaidActions:c=!1,streamingMetricsKey:l,streaming:u=!1,renderChart:f}){let m=Zt(),h=p(e=>e.language),g=(0,k.useMemo)(()=>{let e=d(h).chat;return{...e,copy:e.codeBlockCopy,copied:e.messageCopied,links:e.contentLinks,mermaidRenderError:e.mermaidRenderError,mermaidInline:{preview:e.mermaidPreview,downloadPng:e.mermaidDownloadPng,downloadFailed:e.mermaidDownloadFailed},mermaidPreview:{title:e.mermaidPreviewTitle,close:e.mermaidPreviewClose,zoomIn:e.mermaidZoomIn,zoomOut:e.mermaidZoomOut,fit:e.mermaidFit,downloadPng:e.mermaidDownloadPng,downloadSvg:e.mermaidDownloadSvg,downloadFailed:e.mermaidDownloadFailed}}},[h]),_=(0,k.useMemo)(()=>{if(!e.trim())return{html:``,charts:[]};let t=l?performance.now():0,r=Ti(e,!!a,!!o),i=n?{breaks:!0}:void 0,s=f?ti(r,i):{html:si(r,i),charts:[]},c=Ot(s.html);return l&&gi(l,performance.now()-t),{html:c+(c.includes(`data-xopc-math-source`)?`<!--math-context:${u}:${h}-->`:``),charts:s.charts}},[e,n,a,o,l,u,h,f]),v=_.html,y=(0,k.useMemo)(()=>({__html:v}),[v]),b=(0,k.useRef)(null),[x,C]=(0,k.useState)(null);(0,k.useLayoutEffect)(()=>{let e=f?Array.from(b.current?.querySelectorAll(`[data-md-chart]`)??[]):[];C(e.length?{html:v,nodes:e}:null)},[v,f]);let[ee,te]=(0,k.useState)(null),[ne,w]=(0,k.useState)(!1),re=(0,k.useCallback)(e=>{te(e)},[]);return(0,k.useEffect)(()=>{te(null),w(!1)},[v]),(0,k.useEffect)(()=>{let e=b.current;if(!e||!o)return;let t=!1,n=[];for(let r of e.querySelectorAll(`img`)){let e=r.dataset.xopcImageSource??r.getAttribute(`src`)??``,i=Ei(e);i&&(r.dataset.xopcImageSource=e,o(i).then(e=>{if(t)return;let i=URL.createObjectURL(e);n.push(i),r.src=i}).catch(()=>{}))}return()=>{t=!0;for(let e of n)URL.revokeObjectURL(e)}},[v,o]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(e&&(Ed(e),vd(e,u,g),a&&Mi(e),!(!i||!v)))return Dd(e,g)},[i,v,g,a,u]),(0,k.useLayoutEffect)(()=>{let e=b.current;e&&S(e,g.links,e=>!!(a&&(e.dataset.xopcFilePath||Ei(e.getAttribute(`href`)??``))))},[v,g.links,a]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(!e||!v||!s)return;let t=kd(e);if(t.length===0)return;let n=t.map(e=>({code:e,shell:Ad(e)})).filter(e=>e.shell!==null);for(let{code:e,shell:t}of n)try{let n=document.createElement(`template`);n.innerHTML=kt(se(e.textContent??``)).trim();let r=n.content.firstElementChild;if(!(r instanceof SVGElement))throw Error(`Mermaid renderer returned invalid SVG`);jd(t,r)}catch(e){console.error(`[markdown:mermaid] render failed`,e),Md(t,g.mermaidRenderError,e)}},[g.mermaidRenderError,s,v]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(!e||!c)return;let t=Array.from(e.querySelectorAll(`[data-mermaid-diagram]`),(e,t)=>Pd(e,t,g.mermaidInline,re));return()=>{for(let e of t)e()}},[g.mermaidInline,c,re,s,v]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(!e)return;let t=t=>{let n=(t.target instanceof Element?t.target:null)?.closest(`a[href]`);if(!n||!e.contains(n))return;let r=n.dataset.xopcFilePath;if(r&&a){t.preventDefault();let e=Number(n.dataset.xopcLine??``);a({path:r,line:Number.isFinite(e)&&e>0?Math.floor(e):void 0,kind:n.dataset.xopcFileKind===`absolute`?`absolute`:`workspace-relative`});return}let i=n.getAttribute(`href`)??``,o=a?Ei(i):null;if(o&&a){t.preventDefault(),a(o);return}t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),w(!1),m(i).then(e=>w(!e.ok)).catch(()=>w(!0)))};return e.addEventListener(`click`,t),()=>e.removeEventListener(`click`,t)},[a,m]),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{ref:b,className:`markdown-render-boundary`,children:(0,M.jsx)(`div`,{className:[`markdown-body`,t?`markdown-compact`:``,r??``].filter(Boolean).join(` `),dangerouslySetInnerHTML:y})}),f&&x?.html===v?x.nodes.map(e=>{let t=Number(e.dataset.mdChart),n=_.charts[t];return n?(0,At.createPortal)(f(n),e,String(t)):null}):null,ne?(0,M.jsx)(`p`,{role:`alert`,className:`mt-2 text-sm text-danger`,children:g.links.failed}):null,c?(0,M.jsx)(ia,{preview:ee,labels:g.mermaidPreview,onClose:()=>te(null)}):null]})}var Id=(0,k.memo)(Fd);Id.displayName=`MarkdownView`;export{Vt as A,It as B,en as C,Xt as D,qt as E,Ut as F,ue as G,Mt as H,Lt as I,le as K,Rt as L,Gt as M,Ht as N,Yt as O,Wt as P,zt as R,tn as S,Zt as T,kt as U,Pt as V,Tt as W,sn as _,ea as a,nn as b,Ai as c,_i as d,hi as f,j as g,fi as h,ia as i,Kt as j,Jt as k,Ei as l,gi as m,_d as n,Wi as o,mi as p,ce as q,hd as r,Zi as s,Id as t,pi as u,on as v,rn as w,cn as x,Qt as y,Nt as z};
|
|
324
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:`verb`,mode:`text`,body:n,star:r}}Object.prototype.hasOwnProperty.call(rd,t[0])&&!Ao[this.mode][t[0]]&&(this.settings.strict&&this.mode===`math`&&gs({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Accented Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}),t=rd[t[0]]+t.slice(1));var i=Bu.exec(t);i&&(t=t.substring(0,i.index),t===`i`?t=`ı`:t===`j`&&(t=`ȷ`));var a;if(Ao[this.mode][t]){this.settings.strict&&this.mode===`math`&&Qo.includes(t)&&gs({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Latin-1/Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e});var o=Ao[this.mode][t].group,s=Vl.range(e);a=Ic(o)?{type:`atom`,mode:this.mode,family:o,loc:s,text:t}:{type:o,mode:this.mode,loc:s,text:t}}else if(t.charCodeAt(0)>=128)this.settings.strict&&(za(t.charCodeAt(0))?this.mode===`math`&&gs({strict:this.settings.strict,errorCode:`unicodeTextInMathMode`,errorMsg:`Unicode text character "`+t[0]+`" used in math mode`,report:!0,token:e}):gs({strict:this.settings.strict,errorCode:`unknownSymbol`,errorMsg:`Unrecognized Unicode character "`+t[0]+`"`+(` (`+t.charCodeAt(0)+`)`),report:!0,token:e})),a={type:`textord`,mode:`text`,loc:Vl.range(e),text:t};else return null;if(this.consume(),i)for(var c=0;c<i[0].length;c++){var l=i[0][c];if(!nd[l])throw new N(`Unknown accent ' `+l+`'`,e);var u=nd[l][this.mode]||nd[l].text;if(!u)throw new N(`Accent `+l+` unsupported in `+this.mode+` mode`,e);a={type:`accent`,mode:this.mode,loc:Vl.range(e),label:u,isStretchy:!1,isShifty:!0,base:a}}return a}};id.endOfExpression=new Set([`}`,`\\endgroup`,`\\end`,`\\right`,`&`]);var ad=function(e,t){if(!(typeof e==`string`||e instanceof String))throw TypeError(`KaTeX can only parse string typed expression`);var n=new id(e,t);delete n.gullet.macros.current[`\\df@tag`];var r=n.parse();if(delete n.gullet.macros.current[`\\current@color`],delete n.gullet.macros.current[`\\color`],n.gullet.macros.get(`\\df@tag`)){if(!t.displayMode)throw new N(`\\tag works only in display equations`);r=[{type:`tag`,mode:`text`,body:r,tag:n.subparse([new Hl(`\\df@tag`)])}]}return r},od=function(e,t,n){t.textContent=``;var r=ud(e,n).toNode();t.appendChild(r)};typeof document<`u`&&document.compatMode!==`CSS1Compat`&&(typeof console<`u`&&console.warn(`Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype.`),od=function(){throw new N(`KaTeX doesn't work in quirks mode.`)});var sd=function(e,t){return ud(e,t).toMarkup()},cd=function(e,t){return ad(e,new ya(t))},ld=function(e,t,n){if(n.throwOnError||!(e instanceof N))throw e;var r=K([`katex-error`],[new go(t)]);return r.setAttribute(`title`,e.toString()),r.setAttribute(`style`,`color:`+n.errorColor),r},ud=function(e,t){var n=new ya(t);try{return wc(ad(e,n),e,n)}catch(t){return ld(t,e,n)}},dd={version:`0.19.0`,render:od,renderToString:sd,ParseError:N,SETTINGS_SCHEMA:ha,__parse:cd,__renderToDomTree:ud,__renderToHTMLTree:function(e,t){var n=new ya(t);try{return Tc(ad(e,n),n)}catch(t){return ld(t,e,n)}},__setFontMetrics:Eo,__defineSymbol:I,__defineFunction:J,__defineMacro:$,__domTree:{Span:fo,Anchor:po,SymbolNode:go,SvgNode:_o,PathNode:vo,LineNode:yo}},fd=new Map,pd=0;function md(e,t={streaming:!1}){if(e.latex.length>16384)return{status:`fallback`,reason:`limit`,source:e.raw};if(e.state===`pending`)return t.streaming?{status:`pending`}:{status:`fallback`,reason:`invalid`,source:e.raw};let n=`${dd.version}:${aa}:${e.display}:${e.latex}`,r=fd.get(n);if(r)return fd.delete(n),fd.set(n,r),r.result.status===`fallback`?{...r.result,source:e.raw}:r.result;let i;try{i={status:`ready`,html:dd.renderToString(e.latex,{displayMode:e.display,output:`htmlAndMathml`,trust:!1,throwOnError:!0,strict:`ignore`,maxExpand:1e3,maxSize:20,globalGroup:!1,macros:{}})}}catch{i={status:`fallback`,reason:`invalid`,source:e.raw}}let a=(n.length+(i.status===`ready`?i.html.length:e.raw.length))*2;if(a<=2097152){for(;fd.size>=256||pd+a>2097152;){let e=fd.keys().next().value;pd-=fd.get(e).bytes,fd.delete(e)}fd.set(n,{result:i,bytes:a}),pd+=a}return i}function hd(e,t={streaming:!1},n=!1){let r=n?{status:`fallback`,reason:`limit`,source:e.raw}:md(e,t),i=e.display?`div`:`span`,a=r.status===`ready`?r.html:`<span class="markdown-math-source">${an(e.raw)}</span>`;return`<${i} class="markdown-math ${e.display?`markdown-math-display`:`markdown-math-inline`}" data-xopc-math="${r.status}" data-xopc-math-source="${an(on(e))}">${a}</${i}>`}var gd=e=>`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">${e}</svg>`,_d={latex:gd(`<rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>`),markdown:gd(`<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z"/><path d="M14 2v6h6M10 12l-2 2 2 2M14 12l2 2-2 2"/>`),copied:gd(`<path d="m20 6-11 11-5-5"/>`)};function vd(e,t,n){let r=e.querySelectorAll(`code[data-xopc-math-source]`),i=0;for(let e of r){let r=sn(e.dataset.xopcMathSource??``);if(!r)continue;let a=document.createElement(`template`);a.innerHTML=hd(r,{streaming:t},++i>256);let o=a.content.firstElementChild;if(o.dataset.xopcMath===`pending`&&(o.title=n.mathPending),o.dataset.xopcMath===`fallback`&&(o.title=n.mathFailed),r.display){let e=document.createElement(`span`);e.className=`markdown-math-actions`;for(let[t,i,a]of[[n.mathCopyLatex,r.latex,_d.latex],[n.mathCopyMarkdown,r.raw,_d.markdown]]){let r=document.createElement(`button`);r.type=`button`,r.title=t,r.setAttribute(`aria-label`,t),r.innerHTML=a;let o;r.addEventListener(`click`,()=>{ee(i).then(e=>{!e||!r.isConnected||(r.innerHTML=_d.copied,r.title=n.messageCopied,window.clearTimeout(o),o=window.setTimeout(()=>{r.isConnected&&(r.innerHTML=a,r.title=t)},2e3))})}),e.appendChild(r)}o.appendChild(e)}(e.parentElement?.tagName===`PRE`?e.parentElement:e).replaceWith(o)}}var yd=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`,bd=`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>`,xd=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/></svg>`,Sd=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" x2="14" y1="3" y2="10"/><line x1="3" x2="10" y1="21" y2="14"/></svg>`;function Cd(e){return e.querySelector(`code`)?.textContent??e.textContent??``}function wd(e){let t=e.querySelector(`code`);if(!t?.className)return`plaintext`;for(let e of t.className.split(/\s+/))if(e.startsWith(`language-`))return e.slice(9).trim()||`plaintext`;return`plaintext`}function Td(e){let t=document.createDocumentFragment(),n=document.createElement(`span`);return n.className=`markdown-code-copy-inner`,n.innerHTML=e===`idle`?yd:bd,t.appendChild(n),t}function Ed(e){e.querySelectorAll(`[data-md-code-block]`).forEach(e=>{if(e.closest(`[data-md-chart]`))return;let t=e.querySelector(`:scope > pre`),n=e.parentNode;t&&n&&(n.insertBefore(t,e),e.remove())})}function Dd(e,t){let n=e.querySelectorAll(`.markdown-body pre`),r=[];for(let e of n){if(e.closest(`[data-md-chart]`)||e.closest(`[data-md-code-block]`))continue;let n=e.parentNode;if(!n)continue;let i=document.createElement(`div`);i.className=`markdown-code-block`,i.setAttribute(`data-md-code-block`,``);let a=document.createElement(`div`);a.className=`markdown-code-block-header`;let o=document.createElement(`span`);o.className=`markdown-code-block-lang`,o.textContent=wd(e);let s=document.createElement(`button`);s.type=`button`,s.className=`markdown-code-copy-btn`,s.dataset.mdCodeCopy=``,s.title=t.copy,s.setAttribute(`aria-label`,t.copy),s.replaceChildren(Td(`idle`));let c=n=>{n.preventDefault(),n.stopPropagation(),ee(Cd(e)).then(e=>{!e||!s.isConnected||(s.replaceChildren(Td(`copied`)),s.title=t.copied,s.setAttribute(`aria-label`,t.copied),window.setTimeout(()=>{s.isConnected&&(s.replaceChildren(Td(`idle`)),s.title=t.copy,s.setAttribute(`aria-label`,t.copy))},2e3))})};s.addEventListener(`click`,c),a.appendChild(o),a.appendChild(s),i.appendChild(a),n.insertBefore(i,e),i.appendChild(e),r.push(()=>{s.removeEventListener(`click`,c);let t=e.parentElement;t?.matches(`[data-md-code-block]`)&&t.parentNode&&(t.parentNode.insertBefore(e,t),t.remove())})}return()=>{for(let e of r)e()}}function Od(e){return e.classList.contains(`language-mermaid`)?!0:Array.from(e.classList).some(e=>e.startsWith(`language-`))?!1:ea(e.textContent??``)}function kd(e){return Array.from(e.querySelectorAll(`pre code`)).filter(e=>!e.closest(`[data-md-chart]`)&&Od(e))}function Ad(e){let t=e.closest(`pre`);if(!t?.parentNode)return null;let n=t.closest(`[data-md-code-block]`),r=n??document.createElement(`div`);return n||(t.parentNode.insertBefore(r,t),r.appendChild(t)),r.classList.add(`markdown-mermaid-shell`),r}function jd(e,t){e.replaceChildren(t),e.className=`markdown-mermaid markdown-mermaid-shell`,e.removeAttribute(`data-md-code-block`),e.setAttribute(`data-mermaid-diagram`,``)}function Md(e,t,n){let r=document.createElement(`div`);r.className=`markdown-mermaid-error-message`,r.setAttribute(`role`,`alert`),r.textContent=t,n instanceof Error&&n.message&&(r.title=n.message),e.replaceChildren(r),e.className=`markdown-mermaid markdown-mermaid-error markdown-mermaid-shell`,e.removeAttribute(`data-md-code-block`),e.setAttribute(`data-mermaid-error`,``)}function Nd(e,t,n){let r=document.createElement(`button`);return r.type=`button`,r.className=`markdown-mermaid-action-button`,r.title=e,r.setAttribute(`aria-label`,e),r.dataset.mermaidAction=n,r.innerHTML=t,r}function Pd(e,t,n,r){let i=e.querySelector(`svg`);if(!i)return()=>{};let a=`mermaid-diagram-${t+1}`,o=document.createElement(`div`);o.className=`markdown-mermaid-actions`;let s=Nd(n.downloadPng,xd,`download-png`),c=Nd(n.preview,Sd,`preview`);o.append(s,c),e.appendChild(o),e.classList.add(`markdown-mermaid-interactive`);let l=()=>({snapshot:Wi(i,e),baseName:a}),u=()=>r(l()),d=e=>{e.preventDefault(),e.stopPropagation(),u()},f=e=>{e.preventDefault(),e.stopPropagation(),!s.disabled&&(s.disabled=!0,s.title=n.downloadPng,s.setAttribute(`aria-label`,n.downloadPng),s.setAttribute(`aria-busy`,`true`),Zi(l().snapshot,`${a}.png`).catch(()=>{s.title=n.downloadFailed,s.setAttribute(`aria-label`,n.downloadFailed)}).finally(()=>{s.isConnected&&(s.disabled=!1,s.removeAttribute(`aria-busy`))}))},p=e=>{let t=e.target instanceof Element?e.target:null;t?.closest(`svg`)&&!t.closest(`.markdown-mermaid-actions`)&&u()};return c.addEventListener(`click`,d),s.addEventListener(`click`,f),e.addEventListener(`click`,p),()=>{c.removeEventListener(`click`,d),s.removeEventListener(`click`,f),e.removeEventListener(`click`,p),o.remove(),e.classList.remove(`markdown-mermaid-interactive`)}}function Fd({content:e,compact:t=!1,breaks:n=!1,className:r,codeCopy:i=!0,onWorkspaceFileOpen:a,onWorkspaceImageLoad:o,renderMermaid:s=!0,mermaidActions:c=!1,streamingMetricsKey:l,streaming:u=!1,renderChart:d}){let p=Zt(),h=m(e=>e.language),g=(0,k.useMemo)(()=>{let e=f(h).chat;return{...e,copy:e.codeBlockCopy,copied:e.messageCopied,links:e.contentLinks,mermaidRenderError:e.mermaidRenderError,mermaidInline:{preview:e.mermaidPreview,downloadPng:e.mermaidDownloadPng,downloadFailed:e.mermaidDownloadFailed},mermaidPreview:{title:e.mermaidPreviewTitle,close:e.mermaidPreviewClose,zoomIn:e.mermaidZoomIn,zoomOut:e.mermaidZoomOut,fit:e.mermaidFit,downloadPng:e.mermaidDownloadPng,downloadSvg:e.mermaidDownloadSvg,downloadFailed:e.mermaidDownloadFailed}}},[h]),_=(0,k.useMemo)(()=>{if(!e.trim())return{html:``,charts:[]};let t=l?performance.now():0,r=Ti(e,!!a,!!o),i=n?{breaks:!0}:void 0,s=d?ti(r,i):{html:si(r,i),charts:[]},c=Ot(s.html);return l&&gi(l,performance.now()-t),{html:c+(c.includes(`data-xopc-math-source`)?`<!--math-context:${u}:${h}-->`:``),charts:s.charts}},[e,n,a,o,l,u,h,d]),v=_.html,y=(0,k.useMemo)(()=>({__html:v}),[v]),b=(0,k.useRef)(null),[x,S]=(0,k.useState)(null);(0,k.useLayoutEffect)(()=>{let e=d?Array.from(b.current?.querySelectorAll(`[data-md-chart]`)??[]):[];S(e.length?{html:v,nodes:e}:null)},[v,d]);let[ee,te]=(0,k.useState)(null),[ne,re]=(0,k.useState)(!1),w=(0,k.useCallback)(e=>{te(e)},[]);return(0,k.useEffect)(()=>{te(null),re(!1)},[v]),(0,k.useEffect)(()=>{let e=b.current;if(!e||!o)return;let t=!1,n=[];for(let r of e.querySelectorAll(`img`)){let e=r.dataset.xopcImageSource??r.getAttribute(`src`)??``,i=Ei(e);i&&(r.dataset.xopcImageSource=e,o(i).then(e=>{if(t)return;let i=URL.createObjectURL(e);n.push(i),r.src=i}).catch(()=>{}))}return()=>{t=!0;for(let e of n)URL.revokeObjectURL(e)}},[v,o]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(e&&(Ed(e),vd(e,u,g),a&&Mi(e),!(!i||!v)))return Dd(e,g)},[i,v,g,a,u]),(0,k.useLayoutEffect)(()=>{let e=b.current;e&&C(e,g.links,e=>!!(a&&(e.dataset.xopcFilePath||Ei(e.getAttribute(`href`)??``))))},[v,g.links,a]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(!e||!v||!s)return;let t=kd(e);if(t.length===0)return;let n=t.map(e=>({code:e,shell:Ad(e)})).filter(e=>e.shell!==null);for(let{code:e,shell:t}of n)try{let n=document.createElement(`template`);n.innerHTML=kt(ce(e.textContent??``)).trim();let r=n.content.firstElementChild;if(!(r instanceof SVGElement))throw Error(`Mermaid renderer returned invalid SVG`);jd(t,r)}catch(e){console.error(`[markdown:mermaid] render failed`,e),Md(t,g.mermaidRenderError,e)}},[g.mermaidRenderError,s,v]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(!e||!c)return;let t=Array.from(e.querySelectorAll(`[data-mermaid-diagram]`),(e,t)=>Pd(e,t,g.mermaidInline,w));return()=>{for(let e of t)e()}},[g.mermaidInline,c,w,s,v]),(0,k.useLayoutEffect)(()=>{let e=b.current;if(!e)return;let t=t=>{let n=(t.target instanceof Element?t.target:null)?.closest(`a[href]`);if(!n||!e.contains(n))return;let r=n.dataset.xopcFilePath;if(r&&a){t.preventDefault();let e=Number(n.dataset.xopcLine??``);a({path:r,line:Number.isFinite(e)&&e>0?Math.floor(e):void 0,kind:n.dataset.xopcFileKind===`absolute`?`absolute`:`workspace-relative`});return}let i=n.getAttribute(`href`)??``,o=a?Ei(i):null;if(o&&a){t.preventDefault(),a(o);return}t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),re(!1),p(i).then(e=>re(!e.ok)).catch(()=>re(!0)))};return e.addEventListener(`click`,t),()=>e.removeEventListener(`click`,t)},[a,p]),(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`div`,{ref:b,className:`markdown-render-boundary`,children:(0,M.jsx)(`div`,{className:[`markdown-body`,t?`markdown-compact`:``,r??``].filter(Boolean).join(` `),dangerouslySetInnerHTML:y})}),d&&x?.html===v?x.nodes.map(e=>{let t=Number(e.dataset.mdChart),n=_.charts[t];return n?(0,At.createPortal)(d(n),e,String(t)):null}):null,ne?(0,M.jsx)(`p`,{role:`alert`,className:`mt-2 text-sm text-danger`,children:g.links.failed}):null,c?(0,M.jsx)(ia,{preview:ee,labels:g.mermaidPreview,onClose:()=>te(null)}):null]})}var Id=(0,k.memo)(Fd);Id.displayName=`MarkdownView`;export{Vt as A,It as B,en as C,Xt as D,qt as E,Ut as F,ue as G,Mt as H,Lt as I,le as K,Rt as L,Gt as M,Ht as N,Yt as O,Wt as P,zt as R,tn as S,Zt as T,kt as U,Pt as V,Tt as W,sn as _,ea as a,nn as b,Ai as c,_i as d,hi as f,j as g,fi as h,ia as i,Kt as j,Jt as k,Ei as l,gi as m,_d as n,Wi as o,mi as p,hd as r,Zi as s,Id as t,pi as u,on as v,rn as w,cn as x,Qt as y,Nt as z};
|