mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 16:37:07 +02:00
1 line
No EOL
42 KiB
JavaScript
1 line
No EOL
42 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["86216"],{13313:function(e,n,t){t.d(n,{Z:function(){return r}});let r="/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport type {SidebarsConfig} from '@docusaurus/plugin-content-docs';\n\nconst sidebars: SidebarsConfig = {\n docs: [\n 'introduction',\n {\n type: 'category',\n label: 'Getting Started',\n link: {\n type: 'generated-index',\n },\n collapsed: false,\n items: [\n 'installation',\n 'configuration',\n 'playground',\n 'typescript-support',\n ],\n },\n {\n type: 'category',\n label: 'Guides',\n link: {\n type: 'generated-index',\n title: 'Docusaurus Guides',\n description:\n \"Let's learn about the most important Docusaurus concepts!\",\n keywords: ['guides'],\n image: '/img/docusaurus.png',\n },\n items: [\n 'guides/creating-pages',\n {\n type: 'category',\n label: 'Docs',\n link: {\n type: 'doc',\n id: 'guides/docs/introduction',\n },\n items: [\n 'guides/docs/create-doc',\n {\n type: 'category',\n label: 'Sidebar',\n link: {\n type: 'doc',\n id: 'guides/docs/sidebar/index',\n },\n items: [\n 'guides/docs/sidebar/items',\n 'guides/docs/sidebar/autogenerated',\n 'guides/docs/sidebar/multiple-sidebars',\n ],\n },\n 'guides/docs/versioning',\n 'guides/docs/multi-instance',\n ],\n },\n 'blog',\n {\n type: 'category',\n label: 'Markdown Features',\n link: {\n type: 'doc',\n id: 'guides/markdown-features/introduction',\n },\n items: [\n 'guides/markdown-features/react',\n 'guides/markdown-features/tabs',\n 'guides/markdown-features/code-blocks',\n 'guides/markdown-features/admonitions',\n 'guides/markdown-features/toc',\n 'guides/markdown-features/assets',\n 'guides/markdown-features/links',\n 'guides/markdown-features/plugins',\n 'guides/markdown-features/math-equations',\n 'guides/markdown-features/diagrams',\n 'guides/markdown-features/head-metadata',\n ],\n },\n 'styling-layout',\n 'swizzling',\n 'static-assets',\n 'search',\n 'browser-support',\n 'seo',\n 'using-plugins',\n 'deployment',\n {\n type: 'category',\n label: 'Internationalization',\n link: {type: 'doc', id: 'i18n/introduction'},\n items: [\n {\n type: 'doc',\n id: 'i18n/tutorial',\n label: 'Tutorial',\n },\n {\n type: 'doc',\n id: 'i18n/git',\n label: 'Using Git',\n },\n {\n type: 'doc',\n id: 'i18n/crowdin',\n label: 'Using Crowdin',\n },\n ],\n },\n 'guides/whats-next',\n ],\n },\n {\n type: 'category',\n label: 'Advanced Guides',\n link: {type: 'doc', id: 'advanced/index'},\n items: [\n 'advanced/architecture',\n 'advanced/plugins',\n 'advanced/routing',\n 'advanced/ssg',\n 'advanced/client',\n ],\n },\n {\n type: 'category',\n label: 'Upgrading',\n link: {\n type: 'doc',\n id: 'migration/index',\n },\n items: [\n 'migration/v3',\n // TODO do we want to keep upgrade docs for older Docusaurus versions?\n // It contains links to docs of current version :/\n {\n type: 'category',\n label: 'To Docusaurus v2',\n items: [\n 'migration/v2/migration-overview',\n 'migration/v2/migration-automated',\n 'migration/v2/migration-manual',\n 'migration/v2/migration-versioned-sites',\n 'migration/v2/migration-translated-sites',\n ],\n },\n ],\n },\n ],\n api: [\n 'cli',\n 'docusaurus-core',\n {\n type: 'autogenerated',\n dirName: 'api',\n },\n ],\n};\n\nexport default sidebars;\n"},67014:function(e,n,t){t.r(n),t.d(n,{metadata:()=>r,contentTitle:()=>l,default:()=>p,assets:()=>u,toc:()=>d,frontMatter:()=>c});var r=JSON.parse('{"id":"guides/docs/sidebar/index","title":"Sidebar","description":"Creating a sidebar is useful to:","source":"@site/docs/guides/docs/sidebar/index.mdx","sourceDirName":"guides/docs/sidebar","slug":"/sidebar","permalink":"/docs/sidebar","draft":false,"unlisted":false,"editUrl":"https://github.com/facebook/docusaurus/edit/main/website/docs/guides/docs/sidebar/index.mdx","tags":[],"version":"current","lastUpdatedBy":"S\xe9bastien Lorber","lastUpdatedAt":1729593657000,"frontMatter":{"slug":"/sidebar"},"sidebar":"docs","previous":{"title":"Create a doc","permalink":"/docs/create-doc"},"next":{"title":"Sidebar items","permalink":"/docs/sidebar/items"}}'),o=t("24246"),i=t("80980"),s=t("78042"),a=t("95998");let c={slug:"/sidebar"},l="Sidebar",u={},d=[{value:"Default sidebar",id:"default-sidebar",level:2},{value:"Sidebar object",id:"sidebar-object",level:2},{value:"Theme configuration",id:"theme-configuration",level:2},{value:"Hideable sidebar",id:"hideable-sidebar",level:3},{value:"Auto-collapse sidebar categories",id:"auto-collapse-sidebar-categories",level:3},{value:"Passing custom props",id:"passing-custom-props",level:2},{value:"Sidebar Breadcrumbs",id:"sidebar-breadcrumbs",level:2},{value:"Complex sidebars example",id:"complex-sidebars-example",level:2}];function b(e){let n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"sidebar",children:"Sidebar"})}),"\n",(0,o.jsx)(n.p,{children:"Creating a sidebar is useful to:"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["Group multiple ",(0,o.jsx)(n.strong,{children:"related documents"})]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"Display a sidebar"})," on each of those documents"]}),"\n",(0,o.jsxs)(n.li,{children:["Provide ",(0,o.jsx)(n.strong,{children:"paginated navigation"}),", with next/previous button"]}),"\n"]}),"\n",(0,o.jsx)(n.p,{children:"To use sidebars on your Docusaurus site:"}),"\n",(0,o.jsxs)(n.ol,{children:["\n",(0,o.jsxs)(n.li,{children:["Define a file that exports a dictionary of ",(0,o.jsx)(n.a,{href:"#sidebar-object",children:"sidebar objects"}),"."]}),"\n",(0,o.jsxs)(n.li,{children:["Pass this object into the ",(0,o.jsx)(n.code,{children:"@docusaurus/plugin-docs"})," plugin directly or via ",(0,o.jsx)(n.code,{children:"@docusaurus/preset-classic"}),"."]}),"\n"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:'title="docusaurus.config.js"',children:"export default {\n presets: [\n [\n '@docusaurus/preset-classic',\n {\n docs: {\n // highlight-next-line\n sidebarPath: './sidebars.js',\n },\n },\n ],\n ],\n};\n"})}),"\n",(0,o.jsx)(n.p,{children:"This section serves as an overview of miscellaneous features of the doc sidebar. In the following sections, we will more systematically introduce the following concepts:"}),"\n","\n",(0,o.jsx)(s.Z,{}),"\n",(0,o.jsx)(n.h2,{id:"default-sidebar",children:"Default sidebar"}),"\n",(0,o.jsxs)(n.p,{children:["If the ",(0,o.jsx)(n.code,{children:"sidebarPath"})," is unspecified, Docusaurus ",(0,o.jsx)(n.a,{href:"/docs/sidebar/autogenerated",children:"automatically generates a sidebar"})," for you, by using the filesystem structure of the ",(0,o.jsx)(n.code,{children:"docs"})," folder:"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:'title="sidebars.js"',children:"export default {\n mySidebar: [\n {\n type: 'autogenerated',\n dirName: '.', // generate sidebar from the docs folder (or versioned_docs/<version>)\n },\n ],\n};\n"})}),"\n",(0,o.jsx)(n.p,{children:"You can also define your sidebars explicitly."}),"\n",(0,o.jsx)(n.h2,{id:"sidebar-object",children:"Sidebar object"}),"\n",(0,o.jsx)(n.p,{children:"A sidebar at its crux is a hierarchy of categories, doc links, and other hyperlinks."}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:"type Sidebar =\n // Normal syntax\n | SidebarItem[]\n // Shorthand syntax\n | {[categoryLabel: string]: SidebarItem[]};\n"})}),"\n",(0,o.jsx)(n.p,{children:"For example:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:'title="sidebars.js"',children:"export default {\n mySidebar: [\n {\n type: 'category',\n label: 'Getting Started',\n items: [\n {\n type: 'doc',\n id: 'doc1',\n },\n ],\n },\n {\n type: 'category',\n label: 'Docusaurus',\n items: [\n {\n type: 'doc',\n id: 'doc2',\n },\n {\n type: 'doc',\n id: 'doc3',\n },\n ],\n },\n {\n type: 'link',\n label: 'Learn more',\n href: 'https://example.com',\n },\n ],\n};\n"})}),"\n",(0,o.jsxs)(n.p,{children:["This is a sidebars file that exports one sidebar, called ",(0,o.jsx)(n.code,{children:"mySidebar"}),". It has three top-level items: two categories and one external link. Within each category, there are a few doc links."]}),"\n",(0,o.jsxs)(n.p,{children:["A sidebars file can contain ",(0,o.jsx)(n.a,{href:"/docs/sidebar/multiple-sidebars",children:(0,o.jsx)(n.strong,{children:"multiple sidebar objects"})}),", identified by their object keys."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:"type SidebarsFile = {\n [sidebarID: string]: Sidebar;\n};\n"})}),"\n",(0,o.jsx)(n.h2,{id:"theme-configuration",children:"Theme configuration"}),"\n",(0,o.jsx)(n.h3,{id:"hideable-sidebar",children:"Hideable sidebar"}),"\n",(0,o.jsxs)(n.p,{children:["By enabling the ",(0,o.jsx)(n.code,{children:"themeConfig.docs.sidebar.hideable"})," option, you can make the entire sidebar hideable, allowing users to better focus on the content. This is especially useful when content is consumed on medium-sized screens (e.g. tablets)."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:'title="docusaurus.config.js"',children:"export default {\n themeConfig: {\n // highlight-start\n docs: {\n sidebar: {\n hideable: true,\n },\n },\n // highlight-end\n },\n};\n"})}),"\n",(0,o.jsx)(n.h3,{id:"auto-collapse-sidebar-categories",children:"Auto-collapse sidebar categories"}),"\n",(0,o.jsxs)(n.p,{children:["The ",(0,o.jsx)(n.code,{children:"themeConfig.docs.sidebar.autoCollapseCategories"})," option would collapse all sibling categories when expanding one category. This saves the user from having too many categories open and helps them focus on the selected section."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:'title="docusaurus.config.js"',children:"export default {\n themeConfig: {\n // highlight-start\n docs: {\n sidebar: {\n autoCollapseCategories: true,\n },\n },\n // highlight-end\n },\n};\n"})}),"\n",(0,o.jsx)(n.h2,{id:"passing-custom-props",children:"Passing custom props"}),"\n",(0,o.jsxs)(n.p,{children:["To pass in custom props to a sidebar item, add the optional ",(0,o.jsx)(n.code,{children:"customProps"})," object to any of the items. This is useful to apply site customizations by swizzling React components rendering sidebar items."]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"{\n type: 'doc',\n id: 'doc1',\n // highlight-start\n customProps: {\n badges: ['new', 'green'],\n featured: true,\n },\n // highlight-end\n};\n"})}),"\n",(0,o.jsx)(n.h2,{id:"sidebar-breadcrumbs",children:"Sidebar Breadcrumbs"}),"\n",(0,o.jsx)(n.p,{children:'By default, breadcrumbs are rendered at the top, using the "sidebar path" of the current page.'}),"\n",(0,o.jsx)(n.p,{children:"This behavior can be disabled with plugin options:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",metastring:'title="docusaurus.config.js"',children:"export default {\n presets: [\n [\n '@docusaurus/preset-classic',\n {\n docs: {\n // highlight-next-line\n breadcrumbs: false,\n },\n },\n ],\n ],\n};\n"})}),"\n",(0,o.jsx)(n.h2,{id:"complex-sidebars-example",children:"Complex sidebars example"}),"\n",(0,o.jsx)(n.p,{children:"A real-world example from the Docusaurus site:"}),"\n","\n",(0,o.jsx)(a.Z,{language:"js",title:"sidebars.js",children:t(13313).Z.split("\n").map(e=>!["//","/*","*"].some(n=>e.trim().startsWith(n))&&e).filter(Boolean).join("\n")})]})}function p(e={}){let{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(b,{...e})}):b(e)}},78042:function(e,n,t){t.d(n,{Z:()=>y});var r=t("24246");t("27378");var o=t("90496"),i=t("85921"),s=t("35363"),a=t("11660"),c=t("82095"),l=t("77827"),u=t("57922");let d={cardContainer:"cardContainer_Uewx",cardTitle:"cardTitle_dwRT",cardDescription:"cardDescription_mCBT"};function b(e){var n=e.href,t=e.children;return(0,r.jsx)(s.Z,{href:n,className:(0,o.Z)("card padding--lg",d.cardContainer),children:t})}function p(e){var n=e.href,t=e.icon,i=e.title,s=e.description;return(0,r.jsxs)(b,{href:n,children:[(0,r.jsxs)(u.Z,{as:"h2",className:(0,o.Z)("text--truncate",d.cardTitle),title:i,children:[t," ",i]}),s&&(0,r.jsx)("p",{className:(0,o.Z)("text--truncate",d.cardDescription),title:s,children:s})]})}function f(e){var n,t,o=e.item,s=(0,i.LM)(o);var c=(n=(0,a.c)().selectMessage,function(e){return n(e,(0,l.I)({message:"1 item|{count} items",id:"theme.docs.DocCard.categoryDescription.plurals",description:"The default description for a category card in the generated index about how many items this category includes"},{count:e}))});return s?(0,r.jsx)(p,{href:s,icon:"\uD83D\uDDC3\uFE0F",title:o.label,description:null!==(t=o.description)&&void 0!==t?t:c(o.items.length)}):null}function g(e){var n,t,o=e.item,s=(0,c.Z)(o.href)?"\uD83D\uDCC4\uFE0F":"\uD83D\uDD17",a=(0,i.xz)(null!==(n=o.docId)&&void 0!==n?n:void 0);return(0,r.jsx)(p,{href:o.href,icon:s,title:o.label,description:null!==(t=o.description)&&void 0!==t?t:null==a?void 0:a.description})}function m(e){var n=e.item;switch(n.type){case"link":return(0,r.jsx)(g,{item:n});case"category":return(0,r.jsx)(f,{item:n});default:throw Error("unknown item type ".concat(JSON.stringify(n)))}}function h(e){var n=e.className,t=(0,i.jA)();return(0,r.jsx)(y,{items:t.items,className:n})}function y(e){var n=e.items,t=e.className;if(!n)return(0,r.jsx)(h,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({},e));var s=(0,i.MN)(n);return(0,r.jsx)("section",{className:(0,o.Z)("row",t),children:s.map(function(e,n){return(0,r.jsx)("article",{className:"col col--6 margin-bottom--lg",children:(0,r.jsx)(m,{item:e})},n)})})}},11660:function(e,n,t){t.d(n,{c:function(){return c}});var r=t(27378),o=t(8156),i=["zero","one","two","few","many","other"];function s(e){return i.filter(function(n){return e.includes(n)})}var a={locale:"en",pluralForms:s(["one","other"]),select:function(e){return 1===e?"one":"other"}};function c(){var e,n=(e=(0,o.Z)().i18n.currentLocale,(0,r.useMemo)(function(){try{var n,t;return n=e,t=new Intl.PluralRules(n),{locale:n,pluralForms:s(t.resolvedOptions().pluralCategories),select:function(e){return t.select(e)}}}catch(n){return console.error('Failed to use Intl.PluralRules for locale "'.concat(e,'".\nDocusaurus will fallback to the default (English) implementation.\nError: ').concat(n.message,"\n")),a}},[e]));return{selectMessage:function(e,t){return function(e,n,t){var r=e.split("|");if(1===r.length)return r[0];r.length>t.pluralForms.length&&console.error("For locale=".concat(t.locale,", a maximum of ").concat(t.pluralForms.length," plural forms are expected (").concat(t.pluralForms.join(","),"), but the message contains ").concat(r.length,": ").concat(e));var o=t.select(n);return r[Math.min(t.pluralForms.indexOf(o),r.length-1)]}(t,e,n)}}}},56497:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(24246);t(27378);var o=t(71607);function i(e){var n=e.children,t=e.fallback;return(0,o.Z)()?(0,r.jsx)(r.Fragment,{children:null==n?void 0:n()}):null!=t?t:null}},95998:function(e,n,t){t.d(n,{Z:()=>eh});var r,o,i,s={};t.r(s),t.d(s,{ButtonExample:()=>T});var a=t("24246"),c=t("27378"),l=t("90496"),u=t("71607"),d=t("10075"),b=t("77827"),p=t("8156"),f=t("56497"),g=t("85108"),m=t("45245"),h=t("26378");function y(){var e=(0,h.L)().prism,n=(0,m.I)().colorMode,t=e.theme,r=e.darkTheme||t;return"dark"===n?r:t}var j=t("67490");let v="playgroundContainer_6Ior",O="playgroundHeader_Tvsk",x="playgroundEditor_TySg",w="playgroundPreview_mApW";function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}function P(e){var n=e.children;return(0,a.jsx)("div",{className:(0,l.Z)(O),children:n})}function S(){return(0,a.jsx)("div",{children:"Loading..."})}function C(){return(0,a.jsx)(f.Z,{fallback:(0,a.jsx)(S,{}),children:function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.Z,{fallback:function(e){return(0,a.jsx)(g.Ac,k({},e))},children:(0,a.jsx)(d.i5,{})}),(0,a.jsx)(d.IF,{})]})}})}function N(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{children:(0,a.jsx)(b.Z,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,a.jsx)("div",{className:w,children:(0,a.jsx)(C,{})})]})}function D(){var e=(0,u.Z)();return(0,a.jsx)(d.uz,{className:x},String(e))}function B(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{children:(0,a.jsx)(b.Z,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,a.jsx)(D,{})]})}var E=function(e){return"".concat(e,";")};function I(e){var n,t,r,o,i=e.children,s=e.transformCode,c=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],!(n.indexOf(t)>=0)&&(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++){if(t=i[r],!(n.indexOf(t)>=0))Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}}return o}(e,["children","transformCode"]),l=(0,p.Z)().siteConfig.themeConfig.liveCodeBlock.playgroundPosition,u=y(),b=null!==(o=null===(r=c.metastring)||void 0===r?void 0:r.includes("noInline"))&&void 0!==o&&o;return(0,a.jsx)("div",{className:v,children:(0,a.jsx)(d.nu,(n=k({code:null==i?void 0:i.replace(/\n$/,""),noInline:b,transformCode:null!=s?s:E,theme:u},c),t=(t={children:"top"===l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N,{}),(0,a.jsx)(B,{})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(B,{}),(0,a.jsx)(N,{})]})},t),Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))})}function L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}function T(e){var n,t;return(0,a.jsx)("button",(n=L({type:"button"},e),t=(t={style:L({backgroundColor:"white",color:"black",border:"solid red",borderRadius:20,padding:10,cursor:"pointer"},e.style)},t),Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}let A=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({React:c},c,s);var Z=t("55951"),_=t("6324"),F=t.n(_);function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function R(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],s=!0,a=!1;try{for(o=o.call(e);!(s=(t=o.next()).done)&&(i.push(t.value),!n||i.length!==n);s=!0);}catch(e){a=!0,r=e}finally{try{!s&&null!=o.return&&o.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return M(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return M(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var W=RegExp("title=(?<quote>[\"'])(?<title>.*?)\\1"),z=RegExp("\\{(?<range>[\\d,-]+)\\}"),H={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}};var G=(r=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({},H),o=(o={lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},o),Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r),U=Object.keys(H);function V(e,n){var t=e.map(function(e){var t=G[e],r=t.start,o=t.end;return"(?:".concat(r,"\\s*(").concat(n.flatMap(function(e){var n,t;return[e.line,null===(n=e.block)||void 0===n?void 0:n.start,null===(t=e.block)||void 0===t?void 0:t.end].filter(Boolean)}).join("|"),")\\s*").concat(o,")")}).join("|");return new RegExp("^\\s*(?:".concat(t,")\\s*$"))}let q="codeBlockContainer_jDV4";function $(e){var n,t,r,o,i=e.as,s=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],!(n.indexOf(t)>=0)&&(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++){if(t=i[r],!(n.indexOf(t)>=0))Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}}return o}(e,["as"]);var c=(n={color:"--prism-color",backgroundColor:"--prism-background-color"},t={},Object.entries(y().plain).forEach(function(e){var r=R(e,2),o=r[0],i=r[1],s=n[o];s&&"string"==typeof i&&(t[s]=i)}),t);return(0,a.jsx)(i,(r=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({},s),o=(o={style:c,className:(0,l.Z)(s.className,q,Z.k.common.codeBlock)},o),Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(o)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}),r))}let J={codeBlockContent:"codeBlockContent_vx7S",codeBlockTitle:"codeBlockTitle_bdru",codeBlock:"codeBlock_Gebt",codeBlockStandalone:"codeBlockStandalone_i_cY",codeBlockLines:"codeBlockLines_FJaf",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_FU9Q",buttonGroup:"buttonGroup_cUGO"};function Q(e){var n=e.children,t=e.className;return(0,a.jsx)($,{as:"pre",tabIndex:0,className:(0,l.Z)(J.codeBlockStandalone,"thin-scrollbar",t),children:(0,a.jsx)("code",{className:J.codeBlockLines,children:n})})}var X=t("50923"),Y={attributes:!0,characterData:!0,childList:!0,subtree:!0};function K(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function ee(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],s=!0,a=!1;try{for(o=o.call(e);!(s=(t=o.next()).done)&&(i.push(t.value),!n||i.length!==n);s=!0);}catch(e){a=!0,r=e}finally{try{!s&&null!=o.return&&o.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return K(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var en=t("7316");let et={codeLine:"codeLine_qRmp",codeLineNumber:"codeLineNumber_dS_J",codeLineContent:"codeLineContent_XF5l"};function er(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}function eo(e){var n,t,r=e.line,o=e.classNames,i=e.showLineNumbers,s=e.getLineProps,c=e.getTokenProps;1===r.length&&"\n"===r[0].content&&(r[0].content="");var u=s({line:r,className:(0,l.Z)(o,i&&et.codeLine)}),d=r.map(function(e,n){return(0,a.jsx)("span",er({},c({token:e})),n)});return(0,a.jsxs)("span",(n=er({},u),t=(t={children:[i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:et.codeLineNumber}),(0,a.jsx)("span",{className:et.codeLineContent,children:d})]}):d,(0,a.jsx)("br",{})]},t),Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}var ei=t("44771");function es(e){var n,t;return(0,a.jsx)("svg",(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({viewBox:"0 0 24 24"},e),t=(t={children:(0,a.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})},t),Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}function ea(e){var n,t;return(0,a.jsx)("svg",(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({viewBox:"0 0 24 24"},e),t=(t={children:(0,a.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})},t),Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}let ec={copyButtonCopied:"copyButtonCopied_OkN_",copyButtonIcons:"copyButtonIcons_OqsO",copyButtonIcon:"copyButtonIcon_PgCn",copyButtonSuccessIcon:"copyButtonSuccessIcon_bsQG"};function el(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function eu(e){var n,t,r=e.code,o=e.className;var i=(n=(0,c.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],s=!0,a=!1;try{for(o=o.call(e);!(s=(t=o.next()).done)&&(i.push(t.value),!n||i.length!==n);s=!0);}catch(e){a=!0,r=e}finally{try{!s&&null!=o.return&&o.return()}finally{if(a)throw r}}return i}}(n,2)||function(e,n){if(e){if("string"==typeof e)return el(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return el(e,n)}}(n,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=i[0],u=i[1],d=(0,c.useRef)(void 0),p=(0,c.useCallback)(function(){(0,ei.Z)(r),u(!0),d.current=window.setTimeout(function(){u(!1)},1e3)},[r]);return(0,c.useEffect)(function(){return function(){return window.clearTimeout(d.current)}},[]),(0,a.jsx)("button",{type:"button","aria-label":s?(0,b.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,b.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,b.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,l.Z)("clean-btn",o,ec.copyButton,s&&ec.copyButtonCopied),onClick:p,children:(0,a.jsxs)("span",{className:ec.copyButtonIcons,"aria-hidden":"true",children:[(0,a.jsx)(es,{className:ec.copyButtonIcon}),(0,a.jsx)(ea,{className:ec.copyButtonSuccessIcon})]})})}function ed(e){var n,t;return(0,a.jsx)("svg",(n=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({viewBox:"0 0 24 24"},e),t=(t={children:(0,a.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})},t),Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}),n))}let eb={wordWrapButtonIcon:"wordWrapButtonIcon_MQXS",wordWrapButtonEnabled:"wordWrapButtonEnabled_TBIH"};function ep(e){var n=e.className,t=e.onClick,r=e.isEnabled,o=(0,b.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,a.jsx)("button",{type:"button",onClick:t,className:(0,l.Z)("clean-btn",n,r&&eb.wordWrapButtonEnabled),"aria-label":o,title:o,children:(0,a.jsx)(ed,{className:eb.wordWrapButtonIcon,"aria-hidden":"true"})})}function ef(e){var n,t,r,o,i,s,u,d,b,p,f,g,m,j,v,O,x,w,k,P,S,C,N=e.children,D=e.className,B=void 0===D?"":D,E=e.metastring,I=e.title,L=e.showLineNumbers,T=e.language,A=(0,h.L)().prism,Z=A.defaultLanguage,_=A.magicComments;var M=null==(t=null!==(C=null!=T?T:null==(n=B.split(" ").find(function(e){return e.startsWith("language-")}))?void 0:n.replace(/language-/,""))&&void 0!==C?C:Z)?void 0:t.toLowerCase(),H=y();var G=(o=(r=ee((0,c.useState)(!1),2))[0],i=r[1],u=(s=ee((0,c.useState)(!1),2))[0],d=s[1],b=(0,c.useRef)(null),p=(0,c.useCallback)(function(){var e=b.current.querySelector("code");o?e.removeAttribute("style"):(e.style.whiteSpace="pre-wrap",e.style.overflowWrap="anywhere"),i(function(e){return!e})},[b,o]),f=(0,c.useCallback)(function(){var e=b.current;d(e.scrollWidth>e.clientWidth||b.current.querySelector("code").hasAttribute("style"))},[b]),g=b,m=f,v=(j=ee((0,c.useState)(),2))[0],O=j[1],x=(0,c.useCallback)(function(){var e;O(null===(e=g.current)||void 0===e?void 0:e.closest("[role=tabpanel][hidden]"))},[g,O]),(0,c.useEffect)(function(){x()},[x]),function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y,r=(0,X.zX)(n),o=(0,X.Ql)(t);(0,c.useEffect)(function(){var n=new MutationObserver(r);return e&&n.observe(e,o),function(){return n.disconnect()}},[e,r,o])}(v,function(e){e.forEach(function(e){"attributes"===e.type&&"hidden"===e.attributeName&&(m(),x())})},{attributes:!0,characterData:!1,childList:!1,subtree:!1}),(0,c.useEffect)(function(){f()},[o,f]),(0,c.useEffect)(function(){return window.addEventListener("resize",f,{passive:!0}),function(){window.removeEventListener("resize",f)}},[f]),{codeBlockRef:b,isEnabled:o,isCodeScrollable:u,toggle:p});var q=(null!==(P=null==(w=E)?void 0:null===(k=w.match(W))||void 0===k?void 0:k.groups.title)&&void 0!==P?P:"")||I,Q=function(e,n){var t=e.replace(/\n$/,""),r=n.language,o=n.magicComments,i=n.metastring;if(i&&z.test(i)){var s=i.match(z).groups.range;if(0===o.length)throw Error("A highlight range has been given in code block's metastring (``` ".concat(i,"), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges."));var a=o[0].className;return{lineClassNames:Object.fromEntries(F()(s).filter(function(e){return e>0}).map(function(e){return[e-1,[a]]})),code:t}}if(void 0===r)return{lineClassNames:{},code:t};for(var c=function(e,n){switch(e){case"js":case"javascript":case"ts":case"typescript":return V(["js","jsBlock"],n);case"jsx":case"tsx":return V(["js","jsBlock","jsx"],n);case"html":return V(["js","jsBlock","html"],n);case"python":case"py":case"bash":return V(["bash"],n);case"markdown":case"md":return V(["html","jsx","bash"],n);case"tex":case"latex":case"matlab":return V(["tex"],n);case"lua":case"haskell":case"sql":return V(["lua"],n);case"wasm":return V(["wasm"],n);case"vb":case"vba":case"visual-basic":return V(["vb","rem"],n);case"vbnet":return V(["vbnet","rem"],n);case"batch":return V(["rem"],n);case"basic":return V(["rem","f90"],n);case"fsharp":return V(["js","ml"],n);case"ocaml":case"sml":return V(["ml"],n);case"fortran":return V(["f90"],n);case"cobol":return V(["cobol"],n);default:return V(U,n)}}(r,o),l=t.split("\n"),u=Object.fromEntries(o.map(function(e){return[e.className,{start:0,range:""}]})),d=Object.fromEntries(o.filter(function(e){return e.line}).map(function(e){var n=e.className;return[e.line,n]})),b=Object.fromEntries(o.filter(function(e){return e.block}).map(function(e){var n=e.className;return[e.block.start,n]})),p=Object.fromEntries(o.filter(function(e){return e.block}).map(function(e){var n=e.className;return[e.block.end,n]})),f=0;f<l.length;){var g=l[f].match(c);if(!g){f+=1;continue}var m=g.slice(1).find(function(e){return void 0!==e});d[m]?u[d[m]].range+="".concat(f,","):b[m]?u[b[m]].start=f:p[m]&&(u[p[m]].range+="".concat(u[p[m]].start,"-").concat(f-1,",")),l.splice(f,1)}t=l.join("\n");var h={};return Object.entries(u).forEach(function(e){var n=R(e,2),t=n[0],r=n[1].range;F()(r).forEach(function(e){var n;null!==(n=h[e])&&void 0!==n||(h[e]=[]),h[e].push(t)})}),{lineClassNames:h,code:t}}(N,{metastring:E,language:M,magicComments:_}),K=Q.lineClassNames,et=Q.code;var er=null!=L?L:!!(null==(S=E)?void 0:S.includes("showLineNumbers"));return(0,a.jsxs)($,{as:"div",className:(0,l.Z)(B,M&&!B.includes("language-".concat(M))&&"language-".concat(M)),children:[q&&(0,a.jsx)("div",{className:J.codeBlockTitle,children:q}),(0,a.jsxs)("div",{className:J.codeBlockContent,children:[(0,a.jsx)(en.y$,{theme:H,code:et,language:null!=M?M:"text",children:function(e){var n=e.className,t=e.style,r=e.tokens,o=e.getLineProps,i=e.getTokenProps;return(0,a.jsx)("pre",{tabIndex:0,ref:G.codeBlockRef,className:(0,l.Z)(n,J.codeBlock,"thin-scrollbar"),style:t,children:(0,a.jsx)("code",{className:(0,l.Z)(J.codeBlockLines,er&&J.codeBlockLinesWithNumbering),children:r.map(function(e,n){return(0,a.jsx)(eo,{line:e,getLineProps:o,getTokenProps:i,classNames:K[n],showLineNumbers:er},n)})})})}}),(0,a.jsxs)("div",{className:J.buttonGroup,children:[(G.isEnabled||G.isCodeScrollable)&&(0,a.jsx)(ep,{className:J.codeButton,onClick:function(){return G.toggle()},isEnabled:G.isEnabled}),(0,a.jsx)(eu,{className:J.codeButton,code:et})]})]})]})}function eg(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}let em=(i=function(e){var n,t,r,o=e.children,i=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],!(n.indexOf(t)>=0)&&(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++){if(t=i[r],!(n.indexOf(t)>=0))Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}}return o}(e,["children"]),s=(0,u.Z)();var l=(n=o,c.Children.toArray(n).some(function(e){return(0,c.isValidElement)(e)})?n:Array.isArray(n)?n.join(""):n),d="string"==typeof l?ef:Q;return(0,a.jsx)(d,(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({},i),r=(r={children:l},r),Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),String(s))},function(e){return e.live?(0,a.jsx)(I,eg({scope:A},e)):(0,a.jsx)(i,eg({},e))});function eh(e){return(0,a.jsx)(em,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r,o,i;r=e,o=n,i=t[n],o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i})}return e}({},e))}}}]); |