mirror of
https://github.com/bspeice/speice.io
synced 2024-11-14 22:18:10 -05:00
4 lines
27 KiB
JavaScript
4 lines
27 KiB
JavaScript
(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["2519"],{7594:function(e,t){function n(e){let t,n=[];for(let r of e.split(",").map(e=>e.trim()))if(/^-?\d+$/.test(r))n.push(parseInt(r,10));else if(t=r.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,r,l,s]=t;if(r&&s){r=parseInt(r);let e=r<(s=parseInt(s))?1:-1;("-"===l||".."===l||"\u2025"===l)&&(s+=e);for(let t=r;t!==s;t+=e)n.push(t)}}return n}t.default=n,e.exports=n},5094:function(e,t,n){"use strict";n.d(t,{Z:()=>k});var r=n("5893"),l=n("7294"),s=n("7026"),a=n("6025"),o=n("4681");let i={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function c(e){let{type:t,className:n,children:l}=e;return(0,r.jsx)("div",{className:(0,s.Z)(o.k.common.admonition,o.k.common.admonitionType(t),i.admonition,n),children:l})}function d(e){let{icon:t,title:n}=e;return(0,r.jsxs)("div",{className:i.admonitionHeading,children:[(0,r.jsx)("span",{className:i.admonitionIcon,children:t}),n]})}function u(e){let{children:t}=e;return t?(0,r.jsx)("div",{className:i.admonitionContent,children:t}):null}function m(e){let{type:t,icon:n,title:l,children:s,className:a}=e;return(0,r.jsxs)(c,{type:t,className:a,children:[l||n?(0,r.jsx)(d,{title:l,icon:n}):null,(0,r.jsx)(u,{children:s})]})}let h={icon:(0,r.jsx)(function(e){return(0,r.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})},{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function p(e){return(0,r.jsx)(m,{...h,...e,className:(0,s.Z)("alert alert--secondary",e.className),children:e.children})}let f={icon:(0,r.jsx)(function(e){return(0,r.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})},{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function g(e){return(0,r.jsx)(m,{...f,...e,className:(0,s.Z)("alert alert--success",e.className),children:e.children})}let x={icon:(0,r.jsx)(function(e){return(0,r.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})},{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function j(e){return(0,r.jsx)(m,{...x,...e,className:(0,s.Z)("alert alert--info",e.className),children:e.children})}function b(e){return(0,r.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}let v={icon:(0,r.jsx)(b,{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})},y={icon:(0,r.jsx)(function(e){return(0,r.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})},{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})},N={icon:(0,r.jsx)(b,{}),title:(0,r.jsx)(a.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})},w={note:p,tip:g,info:j,warning:function(e){return(0,r.jsx)(m,{...v,...e,className:(0,s.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,r.jsx)(m,{...y,...e,className:(0,s.Z)("alert alert--danger",e.className),children:e.children})},secondary:e=>(0,r.jsx)(p,{title:"secondary",...e}),important:e=>(0,r.jsx)(j,{title:"important",...e}),success:e=>(0,r.jsx)(g,{title:"success",...e}),caution:function(e){return(0,r.jsx)(m,{...N,...e,className:(0,s.Z)("alert alert--warning",e.className),children:e.children})}};function k(e){let t=function(e){let{mdxAdmonitionTitle:t,rest:n}=function(e){let t=l.Children.toArray(e),n=t.find(e=>l.isValidElement(e)&&"mdxAdmonitionTitle"===e.type),s=t.filter(e=>e!==n);return{mdxAdmonitionTitle:n?.props.children,rest:s.length>0?(0,r.jsx)(r.Fragment,{children:s}):null}}(e.children),s=e.title??t;return{...e,...s&&{title:s},children:n}}(e),n=function(e){let t=w[e];return t?t:(console.warn(`No admonition component found for admonition type "${e}". Using Info as fallback.`),w.info)}(t.type);return(0,r.jsx)(n,{...t})}},2553:function(e,t,n){"use strict";n.d(t,{Z:()=>eO});var r=n("5893"),l=n("7294"),s=n("7026"),a=n("4183");function o(e){let{children:t,className:n}=e;return(0,r.jsx)("article",{className:n,children:t})}var i=n("3012");let c="title_f1Hy";function d(e){let{className:t}=e,{metadata:n,isBlogPostPage:l}=(0,a.nO)(),{permalink:o,title:d}=n;return(0,r.jsx)(l?"h1":"h2",{className:(0,s.Z)(c,t),children:l?d:(0,r.jsx)(i.Z,{to:o,children:d})})}var u=n("6025"),m=n("2933");let h=["zero","one","two","few","many","other"];function p(e){return h.filter(t=>e.includes(t))}let f={locale:"en",pluralForms:p(["one","other"]),select:e=>1===e?"one":"other"};var g=n("1437");let x="container_mt6G";function j(e){let{readingTime:t}=e,n=function(){let{selectMessage:e}=function(){let e=function(){let{i18n:{currentLocale:e}}=(0,m.Z)();return(0,l.useMemo)(()=>{try{return function(e){let t=new Intl.PluralRules(e);return{locale:e,pluralForms:p(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".
|
|
Docusaurus will fallback to the default (English) implementation.
|
|
Error: ${t.message}
|
|
`),f}},[e])}();return{selectMessage:(t,n)=>(function(e,t,n){let r=e.split("|");if(1===r.length)return r[0];r.length>n.pluralForms.length&&console.error(`For locale=${n.locale}, a maximum of ${n.pluralForms.length} plural forms are expected (${n.pluralForms.join(",")}), but the message contains ${r.length}: ${e}`);let l=n.select(t);return r[Math.min(n.pluralForms.indexOf(l),r.length-1)]})(n,t,e)}}();return t=>{let n=Math.ceil(t);return e(n,(0,u.I)({id:"theme.blog.post.readingTime.plurals",description:'Pluralized label for "{readingTime} min read". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One min read|{readingTime} min read"},{readingTime:n}))}}();return(0,r.jsx)(r.Fragment,{children:n(t)})}function b(e){let{date:t,formattedDate:n}=e;return(0,r.jsx)("time",{dateTime:t,children:n})}function v(){return(0,r.jsx)(r.Fragment,{children:" \xb7 "})}function y(e){let t,{className:n}=e,{metadata:l}=(0,a.nO)(),{date:o,readingTime:i}=l,c=(0,g.P)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,r.jsxs)("div",{className:(0,s.Z)(x,"margin-vert--md",n),children:[(0,r.jsx)(b,{date:o,formattedDate:(t=o,c.format(new Date(t)))}),void 0!==i&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{}),(0,r.jsx)(j,{readingTime:i})]})]})}var N=n("1389");let w={authorCol:"authorCol_Hf19",imageOnlyAuthorRow:"imageOnlyAuthorRow_pa_O",imageOnlyAuthorCol:"imageOnlyAuthorCol_G86a"};function k(e){let{className:t}=e,{metadata:{authors:n},assets:l}=(0,a.nO)();if(0===n.length)return null;let o=n.every(e=>{let{name:t}=e;return!t}),i=1===n.length;return(0,r.jsx)("div",{className:(0,s.Z)("margin-top--md margin-bottom--sm",o?w.imageOnlyAuthorRow:"row",t),children:n.map((e,t)=>(0,r.jsx)("div",{className:(0,s.Z)(!o&&(i?"col col--12":"col col--6"),o?w.imageOnlyAuthorCol:w.authorCol),children:(0,r.jsx)(N.Z,{author:{...e,imageURL:l.authorsImageUrls[t]??e.imageURL}})},t))})}function C(){return(0,r.jsxs)("header",{children:[(0,r.jsx)(d,{}),(0,r.jsx)(y,{}),(0,r.jsx)(k,{})]})}var Z=n("8365"),B=n("65"),_=n("4819"),T=n("7227"),E=n("4239"),L=n("140");function A(){let{prism:e}=(0,L.L)(),{colorMode:t}=(0,E.I)(),n=e.theme,r=e.darkTheme||n;return"dark"===t?r:n}var I=n("4681"),M=n("7594"),R=n.n(M);let S=/title=(?<quote>["'])(?<title>.*?)\1/,z=/\{(?<range>[\d,-]+)\}/,H={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},O={...H,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:""}},U=Object.keys(H);function $(e,t){let n=e.map(e=>{let{start:n,end:r}=O[e];return`(?:${n}\\s*(${t.flatMap(e=>[e.line,e.block?.start,e.block?.end].filter(Boolean)).join("|")})\\s*${r})`}).join("|");return RegExp(`^\\s*(?:${n})\\s*$`)}let F="codeBlockContainer_Ckt0";function V(e){let{as:t,...n}=e,l=function(e){let t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach(e=>{let[r,l]=e,s=t[r];s&&"string"==typeof l&&(n[s]=l)}),n}(A());return(0,r.jsx)(t,{...n,style:l,className:(0,s.Z)(n.className,F,I.k.common.codeBlock)})}let D={codeBlockContent:"codeBlockContent_biex",codeBlockTitle:"codeBlockTitle_Ktv7",codeBlock:"codeBlock_bY9V",codeBlockStandalone:"codeBlockStandalone_MEMb",codeBlockLines:"codeBlockLines_e6Vv",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_o6Pm",buttonGroup:"buttonGroup__atx"};function P(e){let{children:t,className:n}=e;return(0,r.jsx)(V,{as:"pre",tabIndex:0,className:(0,s.Z)(D.codeBlockStandalone,"thin-scrollbar",n),children:(0,r.jsx)("code",{className:D.codeBlockLines,children:t})})}var W=n("5346");let q={attributes:!0,characterData:!0,childList:!0,subtree:!0};var G=n("3229");let J={codeLine:"codeLine_lJS_",codeLineNumber:"codeLineNumber_Tfdd",codeLineContent:"codeLineContent_feaV"};function Q(e){let{line:t,classNames:n,showLineNumbers:l,getLineProps:a,getTokenProps:o}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");let i=a({line:t,className:(0,s.Z)(n,l&&J.codeLine)}),c=t.map((e,t)=>(0,r.jsx)("span",{...o({token:e})},t));return(0,r.jsxs)("span",{...i,children:[l?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:J.codeLineNumber}),(0,r.jsx)("span",{className:J.codeLineContent,children:c})]}):c,(0,r.jsx)("br",{})]})}function X(e){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.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"})})}function Y(e){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}let K={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function ee(e){let{code:t,className:n}=e,[a,o]=(0,l.useState)(!1),i=(0,l.useRef)(void 0),c=(0,l.useCallback)(()=>{!function(e){let{target:t=document.body}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);let n=document.createElement("textarea"),r=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";let l=document.getSelection(),s=l.rangeCount>0&&l.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let a=!1;try{a=document.execCommand("copy")}catch{}n.remove(),s&&(l.removeAllRanges(),l.addRange(s)),r&&r.focus()}(t),o(!0),i.current=window.setTimeout(()=>{o(!1)},1e3)},[t]);return(0,l.useEffect)(()=>()=>window.clearTimeout(i.current),[]),(0,r.jsx)("button",{type:"button","aria-label":a?(0,u.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,u.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,u.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,s.Z)("clean-btn",n,K.copyButton,a&&K.copyButtonCopied),onClick:c,children:(0,r.jsxs)("span",{className:K.copyButtonIcons,"aria-hidden":"true",children:[(0,r.jsx)(X,{className:K.copyButtonIcon}),(0,r.jsx)(Y,{className:K.copyButtonSuccessIcon})]})})}function et(e){return(0,r.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,r.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"})})}let en={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function er(e){let{className:t,onClick:n,isEnabled:l}=e,a=(0,u.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,r.jsx)("button",{type:"button",onClick:n,className:(0,s.Z)("clean-btn",t,l&&en.wordWrapButtonEnabled),"aria-label":a,title:a,children:(0,r.jsx)(et,{className:en.wordWrapButtonIcon,"aria-hidden":"true"})})}function el(e){var t,n,a;let{children:o,className:i="",metastring:c,title:d,showLineNumbers:u,language:m}=e,{prism:{defaultLanguage:h,magicComments:p}}=(0,L.L)();let f=(t=m??function(e){let t=e.split(" ").find(e=>e.startsWith("language-"));return t?.replace(/language-/,"")}(i)??h,t?.toLowerCase()),g=A(),x=function(){let[e,t]=(0,l.useState)(!1),[n,r]=(0,l.useState)(!1),s=(0,l.useRef)(null),a=(0,l.useCallback)(()=>{let n=s.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t(e=>!e)},[s,e]),o=(0,l.useCallback)(()=>{let{scrollWidth:e,clientWidth:t}=s.current;r(e>t||s.current.querySelector("code").hasAttribute("style"))},[s]);return!function(e,t){let[n,r]=(0,l.useState)(),s=(0,l.useCallback)(()=>{r(e.current?.closest("[role=tabpanel][hidden]"))},[e,r]);(0,l.useEffect)(()=>{s()},[s]),!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=(0,W.zX)(t),s=(0,W.Ql)(n);(0,l.useEffect)(()=>{let t=new MutationObserver(r);return e&&t.observe(e,s),()=>t.disconnect()},[e,r,s])}(n,e=>{e.forEach(e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),s())})},{attributes:!0,characterData:!1,childList:!1,subtree:!1})}(s,o),(0,l.useEffect)(()=>{o()},[e,o]),(0,l.useEffect)(()=>(window.addEventListener("resize",o,{passive:!0}),()=>{window.removeEventListener("resize",o)}),[o]),{codeBlockRef:s,isEnabled:e,isCodeScrollable:n,toggle:a}}();let j=(n=c,(n?.match(S)?.groups.title??"")||d),{lineClassNames:b,code:v}=function(e,t){let n=e.replace(/\n$/,""),{language:r,magicComments:l,metastring:s}=t;if(s&&z.test(s)){let e=s.match(z).groups.range;if(0===l.length)throw Error(`A highlight range has been given in code block's metastring (\`\`\` ${s}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);let t=l[0].className;return{lineClassNames:Object.fromEntries(R()(e).filter(e=>e>0).map(e=>[e-1,[t]])),code:n}}if(void 0===r)return{lineClassNames:{},code:n};let a=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return $(["js","jsBlock"],t);case"jsx":case"tsx":return $(["js","jsBlock","jsx"],t);case"html":return $(["js","jsBlock","html"],t);case"python":case"py":case"bash":return $(["bash"],t);case"markdown":case"md":return $(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return $(["tex"],t);case"lua":case"haskell":case"sql":return $(["lua"],t);case"wasm":return $(["wasm"],t);case"vb":case"vba":case"visual-basic":return $(["vb","rem"],t);case"vbnet":return $(["vbnet","rem"],t);case"batch":return $(["rem"],t);case"basic":return $(["rem","f90"],t);case"fsharp":return $(["js","ml"],t);case"ocaml":case"sml":return $(["ml"],t);case"fortran":return $(["f90"],t);case"cobol":return $(["cobol"],t);default:return $(U,t)}}(r,l),o=n.split("\n"),i=Object.fromEntries(l.map(e=>[e.className,{start:0,range:""}])),c=Object.fromEntries(l.filter(e=>e.line).map(e=>{let{className:t,line:n}=e;return[n,t]})),d=Object.fromEntries(l.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.start,t]})),u=Object.fromEntries(l.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.end,t]}));for(let e=0;e<o.length;){let t=o[e].match(a);if(!t){e+=1;continue}let n=t.slice(1).find(e=>void 0!==e);c[n]?i[c[n]].range+=`${e},`:d[n]?i[d[n]].start=e:u[n]&&(i[u[n]].range+=`${i[u[n]].start}-${e-1},`),o.splice(e,1)}n=o.join("\n");let m={};return Object.entries(i).forEach(e=>{let[t,{range:n}]=e;R()(n).forEach(e=>{m[e]??=[],m[e].push(t)})}),{lineClassNames:m,code:n}}(o,{metastring:c,language:f,magicComments:p});let y=u??(a=c,!!a?.includes("showLineNumbers"));return(0,r.jsxs)(V,{as:"div",className:(0,s.Z)(i,f&&!i.includes(`language-${f}`)&&`language-${f}`),children:[j&&(0,r.jsx)("div",{className:D.codeBlockTitle,children:j}),(0,r.jsxs)("div",{className:D.codeBlockContent,children:[(0,r.jsx)(G.y$,{theme:g,code:v,language:f??"text",children:e=>{let{className:t,style:n,tokens:l,getLineProps:a,getTokenProps:o}=e;return(0,r.jsx)("pre",{tabIndex:0,ref:x.codeBlockRef,className:(0,s.Z)(t,D.codeBlock,"thin-scrollbar"),style:n,children:(0,r.jsx)("code",{className:(0,s.Z)(D.codeBlockLines,y&&D.codeBlockLinesWithNumbering),children:l.map((e,t)=>(0,r.jsx)(Q,{line:e,getLineProps:a,getTokenProps:o,classNames:b[t],showLineNumbers:y},t))})})}}),(0,r.jsxs)("div",{className:D.buttonGroup,children:[(x.isEnabled||x.isCodeScrollable)&&(0,r.jsx)(er,{className:D.codeButton,onClick:()=>x.toggle(),isEnabled:x.isEnabled}),(0,r.jsx)(ee,{className:D.codeButton,code:v})]})]})]})}function es(e){var t;let{children:n,...s}=e,a=(0,T.Z)();let o=(t=n,l.Children.toArray(t).some(e=>(0,l.isValidElement)(e))?t:Array.isArray(t)?t.join(""):t);return(0,r.jsx)("string"==typeof o?el:P,{...s,children:o},String(a))}function ea(e){return(0,r.jsx)("code",{...e})}var eo=n("1065"),ei=n("1276");let ec={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function ed(e){return!!e&&("SUMMARY"===e.tagName||ed(e.parentElement))}function eu(e){let{summary:t,children:n,...a}=e;(0,eo.Z)().collectAnchor(a.id);let o=(0,T.Z)(),i=(0,l.useRef)(null),{collapsed:c,setCollapsed:d}=(0,ei.u)({initialState:!a.open}),[u,m]=(0,l.useState)(a.open),h=l.isValidElement(t)?t:(0,r.jsx)("summary",{children:t??"Details"});return(0,r.jsxs)("details",{...a,ref:i,open:u,"data-collapsed":c,className:(0,s.Z)(ec.details,o&&ec.isBrowser,a.className),onMouseDown:e=>{ed(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();let t=e.target;if(!!(ed(t)&&function e(t,n){return!!t&&(t===n||e(t.parentElement,n))}(t,i.current)))e.preventDefault(),c?(d(!1),m(!0)):d(!0)},children:[h,(0,r.jsx)(ei.z,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{d(e),m(!e)},children:(0,r.jsx)("div",{className:ec.collapsibleContent,children:n})})]})}let em="details_b_Ee";function eh(e){let{...t}=e;return(0,r.jsx)(eu,{...t,className:(0,s.Z)("alert alert--info",em,t.className)})}function ep(e){let t=l.Children.toArray(e.children),n=t.find(e=>l.isValidElement(e)&&"summary"===e.type),s=(0,r.jsx)(r.Fragment,{children:t.filter(e=>e!==n)});return(0,r.jsx)(eh,{...e,summary:n,children:s})}var ef=n("4403");function eg(e){return(0,r.jsx)(ef.Z,{...e})}let ex={containsTaskList:"containsTaskList_mC6p"},ej="img_ev3q";var eb=n("5094");let ev={Head:_.Z,details:ep,Details:ep,code:function(e){var t;return void 0!==(t=e).children&&l.Children.toArray(t.children).every(e=>"string"==typeof e&&!e.includes("\n"))?(0,r.jsx)(ea,{...e}):(0,r.jsx)(es,{...e})},a:function(e){return(0,r.jsx)(i.Z,{...e})},pre:function(e){return(0,r.jsx)(r.Fragment,{children:e.children})},ul:function(e){return(0,r.jsx)("ul",{...e,className:function(e){if(void 0!==e)return(0,s.Z)(e,e?.includes("contains-task-list")&&ex.containsTaskList)}(e.className)})},li:function(e){return(0,eo.Z)().collectAnchor(e.id),(0,r.jsx)("li",{...e})},img:function(e){var t;return(0,r.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(t=e.className,(0,s.Z)(t,ej))})},h1:e=>(0,r.jsx)(eg,{as:"h1",...e}),h2:e=>(0,r.jsx)(eg,{as:"h2",...e}),h3:e=>(0,r.jsx)(eg,{as:"h3",...e}),h4:e=>(0,r.jsx)(eg,{as:"h4",...e}),h5:e=>(0,r.jsx)(eg,{as:"h5",...e}),h6:e=>(0,r.jsx)(eg,{as:"h6",...e}),admonition:eb.Z,mermaid:()=>null};function ey(e){let{children:t}=e;return(0,r.jsx)(B.Z,{components:ev,children:t})}function eN(e){let{children:t,className:n}=e,{isBlogPostPage:l}=(0,a.nO)();return(0,r.jsx)("div",{id:l?Z.blogPostContainerID:void 0,className:(0,s.Z)("markdown",n),children:(0,r.jsx)(ey,{children:t})})}let ew="iconEdit_Z9Sw";function ek(e){let{className:t,...n}=e;return(0,r.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,s.Z)(ew,t),"aria-hidden":"true",...n,children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}function eC(e){let{editUrl:t}=e;return(0,r.jsxs)(i.Z,{to:t,className:I.k.common.editThisPage,children:[(0,r.jsx)(ek,{}),(0,r.jsx)(u.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}function eZ(e){let{lastUpdatedAt:t}=e,n=new Date(t),l=(0,g.P)({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(n);return(0,r.jsx)(u.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,r.jsx)("b",{children:(0,r.jsx)("time",{dateTime:n.toISOString(),itemProp:"dateModified",children:l})})},children:" on {date}"})}function eB(e){let{lastUpdatedBy:t}=e;return(0,r.jsx)(u.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,r.jsx)("b",{children:t})},children:" by {user}"})}function e_(e){let{lastUpdatedAt:t,lastUpdatedBy:n}=e;return(0,r.jsxs)("span",{className:I.k.common.lastUpdated,children:[(0,r.jsx)(u.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t?(0,r.jsx)(eZ,{lastUpdatedAt:t}):"",byUser:n?(0,r.jsx)(eB,{lastUpdatedBy:n}):""},children:"Last updated{atDate}{byUser}"}),!1]})}let eT="lastUpdated_JAkA";function eE(e){let{className:t,editUrl:n,lastUpdatedAt:l,lastUpdatedBy:a}=e;return(0,r.jsxs)("div",{className:(0,s.Z)("row",t),children:[(0,r.jsx)("div",{className:"col",children:n&&(0,r.jsx)(eC,{editUrl:n})}),(0,r.jsx)("div",{className:(0,s.Z)("col",eT),children:(l||a)&&(0,r.jsx)(e_,{lastUpdatedAt:l,lastUpdatedBy:a})})]})}let eL={tag:"tag_zVej",tagRegular:"tagRegular_sFm0",tagWithCount:"tagWithCount_h2kH"};function eA(e){let{permalink:t,label:n,count:l,description:a}=e;return(0,r.jsxs)(i.Z,{href:t,title:a,className:(0,s.Z)(eL.tag,l?eL.tagWithCount:eL.tagRegular),children:[n,l&&(0,r.jsx)("span",{children:l})]})}let eI="tags_jXut",eM="tag_QGVx";function eR(e){let{tags:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("b",{children:(0,r.jsx)(u.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,r.jsx)("ul",{className:(0,s.Z)(eI,"padding--none","margin-left--sm"),children:t.map(e=>(0,r.jsx)("li",{className:eM,children:(0,r.jsx)(eA,{...e})},e.permalink))})]})}function eS(){return(0,r.jsx)("b",{children:(0,r.jsx)(u.Z,{id:"theme.blog.post.readMore",description:"The label used in blog post item excerpts to link to full blog posts",children:"Read more"})})}function ez(e){let{blogPostTitle:t,...n}=e;return(0,r.jsx)(i.Z,{"aria-label":(0,u.I)({message:"Read more about {title}",id:"theme.blog.post.readMoreLabel",description:"The ARIA label for the link to full blog posts from excerpts"},{title:t}),...n,children:(0,r.jsx)(eS,{})})}function eH(){let{metadata:e,isBlogPostPage:t}=(0,a.nO)(),{tags:n,title:l,editUrl:o,hasTruncateMarker:i,lastUpdatedBy:c,lastUpdatedAt:d}=e,u=!t&&i,m=n.length>0;if(!(m||u||o))return null;if(!t)return(0,r.jsxs)("footer",{className:"row docusaurus-mt-lg",children:[m&&(0,r.jsx)("div",{className:(0,s.Z)("col",{"col--9":u}),children:(0,r.jsx)(eR,{tags:n})}),u&&(0,r.jsx)("div",{className:(0,s.Z)("col text--right",{"col--3":m}),children:(0,r.jsx)(ez,{blogPostTitle:l,to:e.permalink})})]});{let e=!!(o||d||c);return(0,r.jsxs)("footer",{className:"docusaurus-mt-lg",children:[m&&(0,r.jsx)("div",{className:(0,s.Z)("row","margin-top--sm",I.k.blog.blogFooterEditMetaRow),children:(0,r.jsx)("div",{className:"col",children:(0,r.jsx)(eR,{tags:n})})}),e&&(0,r.jsx)(eE,{className:(0,s.Z)("margin-top--sm",I.k.blog.blogFooterEditMetaRow),editUrl:o,lastUpdatedAt:d,lastUpdatedBy:c})]})}}function eO(e){let{children:t,className:n}=e,l=function(){let{isBlogPostPage:e}=(0,a.nO)();return e?void 0:"margin-bottom--xl"}();return(0,r.jsxs)(o,{className:(0,s.Z)(l,n),children:[(0,r.jsx)(C,{}),(0,r.jsx)(eN,{children:t}),(0,r.jsx)(eH,{})]})}},790:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(5893);n(7294);var l=n(7026),s=n(3012);function a(e){let{permalink:t,title:n,subLabel:a,isNext:o}=e;return(0,r.jsxs)(s.Z,{className:(0,l.Z)("pagination-nav__link",o?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[a&&(0,r.jsx)("div",{className:"pagination-nav__sublabel",children:a}),(0,r.jsx)("div",{className:"pagination-nav__label",children:n})]})}},1437:function(e,t,n){"use strict";n.d(t,{P:function(){return l}});var r=n(2933);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{i18n:{currentLocale:t}}=(0,r.Z)(),n=function(){let{i18n:{currentLocale:e,localeConfigs:t}}=(0,r.Z)();return t[e].calendar}();return new Intl.DateTimeFormat(t,{calendar:n,...e})}},65:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},a:function(){return a}});var r=n(7294);let l={},s=r.createContext(l);function a(e){let t=r.useContext(s);return r.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:a(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); |