(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[4710],{85338:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>o});var a,r=t(30495),i=t(87982),d=t(91356);!function(e){e.handleLink="rendermime:handle-local-link"}(a||(a={}));const o={id:"@jupyterlab/rendermime-extension:plugin",requires:[d.ITranslator],optional:[r.IDocumentManager,i.ILatexTypesetter],provides:i.IRenderMimeRegistry,activate:function(e,n,t,r){const d=n.load("jupyterlab");return t&&e.commands.addCommand(a.handleLink,{label:d.__("Handle Local Link"),execute:e=>{const n=e.path,a=e.id;if(n)return t.services.contents.get(n,{content:!1}).then((()=>{const e=t.registry.defaultRenderedWidgetFactory(n),r=t.openOrReveal(n,e.name);r&&a&&r.setFragment(a)}))}}),new i.RenderMimeRegistry({initialFactories:i.standardRendererFactories,linkHandler:t?{handleLink:(n,t,r)=>{"A"===n.tagName&&n.hasAttribute("download")||e.commandLinker.connectNode(n,a.handleLink,{path:t,id:r})}}:void 0,latexTypesetter:null!=r?r:void 0,translator:n})},autoStart:!0}}}]);