"use strict";(self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[9380],{19380:(e,t,o)=>{o.r(t),o.d(t,{default:()=>p});var a=o(23450),n=o(38356),l=o(98836),r=o(92969),s=o(78156);const u=[{text:"About Jupyter",url:"https://jupyter.org"},{text:"Markdown Reference",url:"https://commonmark.org/help/"}];var c;!function(e){e.open="help:open",e.shortcuts="help:shortcuts",e.about="help:about"}(c||(c={}));const m={id:"@jupyter-notebook/help-extension:open",autoStart:!0,activate:e=>{const{commands:t}=e;t.addCommand(c.open,{label:e=>e.text,execute:e=>{const t=e.url;window.open(t)}})}},b={id:"@jupyter-notebook/help-extension:about",autoStart:!0,requires:[l.ITranslator],optional:[n.IMainMenu,a.ICommandPalette],activate:(e,t,o,n)=>{const{commands:l}=e,m=t.load("notebook"),b=m.__("Help");l.addCommand(c.about,{label:m.__("About %1",e.name),execute:()=>{const t=s.createElement(s.Fragment,null,s.createElement("span",{className:"jp-AboutNotebook-header"},s.createElement(r.jupyterIcon.react,{width:"196px",height:"auto"}))),o=m.__("JUPYTER NOTEBOOK ON GITHUB"),n=m.__("CONTRIBUTOR LIST"),l=s.createElement("span",null,s.createElement("a",{href:"https://github.com/jupyter/notebook",target:"_blank",rel:"noopener noreferrer",className:"jp-Button-flat jp-AboutNotebook-about-externalLinks"},o),s.createElement("a",{href:"https://github.com/jupyter/notebook/pulse",target:"_blank",rel:"noopener noreferrer",className:"jp-Button-flat jp-AboutNotebook-about-externalLinks"},n)),u=m.__("Version: %1",e.version),c=m.__("© 2021-2023 Jupyter Notebook Contributors"),b=s.createElement(s.Fragment,null,s.createElement("span",{className:"jp-AboutNotebook-version"},u),s.createElement("div",null,l),s.createElement("span",{className:"jp-AboutNotebook-about-copyright"},c)),p=new a.Dialog({title:t,body:b,buttons:[a.Dialog.createButton({label:m.__("Dismiss"),className:"jp-AboutNotebook-about-button jp-mod-reject jp-mod-styled"})]});p.addClass("jp-AboutNotebook"),p.launch()}}),n&&n.addItem({command:c.about,category:b});const p=u.map((e=>({args:e,command:c.open})));o&&o.helpMenu.addGroup(p,30)}},p=[m,{id:"@jupyter-notebook/help-extension:shortcuts",autoStart:!0,requires:[l.ITranslator],optional:[a.ICommandPalette],activate:(e,t,o)=>{const{commands:n}=e,l=t.load("notebook"),r=l.__("Help");n.addCommand(c.shortcuts,{label:l.__("Keyboard Shortcuts"),execute:()=>{const e=s.createElement("span",{className:"jp-AboutNotebook-about-header"},s.createElement("div",{className:"jp-AboutNotebook-about-header-info"},l.__("Keyboard Shortcuts"))),t=s.createElement("table",{className:"jp-AboutNotebook-shortcuts"},s.createElement("thead",null,s.createElement("tr",null,s.createElement("th",null,l.__("Name")),s.createElement("th",null,l.__("Shortcut")))),s.createElement("tbody",null,n.keyBindings.filter((e=>n.isEnabled(e.command))).map(((e,t)=>s.createElement("tr",{key:t},s.createElement("td",null,n.label(e.command)),s.createElement("td",null,s.createElement("pre",null,e.keys.join(", "))))))));return(0,a.showDialog)({title:e,body:t,buttons:[a.Dialog.createButton({label:l.__("Dismiss"),className:"jp-AboutNotebook-about-button jp-mod-reject jp-mod-styled"})]})}}),o&&o.addItem({command:c.shortcuts,category:r})}},b]}}]);