mirror of
https://github.com/bspeice/speice.io
synced 2024-12-22 16:48:10 -05:00
4 lines
17 KiB
JavaScript
4 lines
17 KiB
JavaScript
|
"use strict";(self.webpackChunkspeice_io=self.webpackChunkspeice_io||[]).push([["1122"],{75094:function(e,n,t){t.d(n,{Z:()=>w});var i=t("85893"),l=t("67294"),a=t("67026"),r=t("96025"),s=t("84681");let o={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};function c(e){let{type:n,className:t,children:l}=e;return(0,i.jsx)("div",{className:(0,a.Z)(s.k.common.admonition,s.k.common.admonitionType(n),o.admonition,t),children:l})}function d(e){let{icon:n,title:t}=e;return(0,i.jsxs)("div",{className:o.admonitionHeading,children:[(0,i.jsx)("span",{className:o.admonitionIcon,children:n}),t]})}function u(e){let{children:n}=e;return n?(0,i.jsx)("div",{className:o.admonitionContent,children:n}):null}function m(e){let{type:n,icon:t,title:l,children:a,className:r}=e;return(0,i.jsxs)(c,{type:n,className:r,children:[l||t?(0,i.jsx)(d,{title:l,icon:t}):null,(0,i.jsx)(u,{children:a})]})}let h={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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,i.jsx)(r.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function x(e){return(0,i.jsx)(m,{...h,...e,className:(0,a.Z)("alert alert--secondary",e.className),children:e.children})}let f={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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,i.jsx)(r.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function g(e){return(0,i.jsx)(m,{...f,...e,className:(0,a.Z)("alert alert--success",e.className),children:e.children})}let j={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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,i.jsx)(r.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function p(e){return(0,i.jsx)(m,{...j,...e,className:(0,a.Z)("alert alert--info",e.className),children:e.children})}function v(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.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 Z={icon:(0,i.jsx)(v,{}),title:(0,i.jsx)(r.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})},b={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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.
|
||
|
Docusaurus will fallback to the default (English) implementation.
|
||
|
Error: ${n.message}
|
||
|
`),f}},[e])}();return{selectMessage:(n,t)=>(function(e,n,t){let i=e.split("|");if(1===i.length)return i[0];i.length>t.pluralForms.length&&console.error(`For locale=${t.locale}, a maximum of ${t.pluralForms.length} plural forms are expected (${t.pluralForms.join(",")}), but the message contains ${i.length}: ${e}`);let l=t.select(n);return i[Math.min(t.pluralForms.indexOf(l),i.length-1)]})(t,n,e)}}();return n=>{let t=Math.ceil(n);return e(t,(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:t}))}}();return(0,i.jsx)(i.Fragment,{children:t(n)})}function v(e){let{date:n,formattedDate:t}=e;return(0,i.jsx)("time",{dateTime:n,children:t})}function Z(){return(0,i.jsx)(i.Fragment,{children:" \xb7 "})}function b(e){let n,{className:t}=e,{metadata:l}=(0,r.nO)(),{date:s,readingTime:o}=l,c=(0,g.P)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,i.jsxs)("div",{className:(0,a.Z)(j,"margin-vert--md",t),children:[(0,i.jsx)(v,{date:s,formattedDate:(n=s,c.format(new Date(n)))}),void 0!==o&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Z,{}),(0,i.jsx)(p,{readingTime:o})]})]})}var N=t("21389");let y={authorCol:"authorCol_Hf19",imageOnlyAuthorRow:"imageOnlyAuthorRow_pa_O",imageOnlyAuthorCol:"imageOnlyAuthorCol_G86a"};function w(e){let{className:n}=e,{metadata:{authors:t},assets:l}=(0,r.nO)();if(0===t.length)return null;let s=t.every(e=>{let{name:n}=e;return!n}),o=1===t.length;return(0,i.jsx)("div",{className:(0,a.Z)("margin-top--md margin-bottom--sm",s?y.imageOnlyAuthorRow:"row",n),children:t.map((e,n)=>(0,i.jsx)("div",{className:(0,a.Z)(!s&&(o?"col col--12":"col col--6"),s?y.imageOnlyAuthorCol:y.authorCol),children:(0,i.jsx)(N.Z,{author:{...e,imageURL:l.authorsImageUrls[n]??e.imageURL}})},n))})}function _(){return(0,i.jsxs)("header",{children:[(0,i.jsx)(d,{}),(0,i.jsx)(b,{}),(0,i.jsx)(w,{})]})}var C=t("8365"),T=t("50065"),k=t("94819"),U=t("67");function R(e){return(0,i.jsx)("code",{...e})}var z=t("41065"),A=t("7227"),M=t("21276");let F={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function O(e){return!!e&&("SUMMARY"===e.tagName||O(e.parentElement))}function D(e){let{summary:n,children:t,...r}=e;(0,z.Z)().collectAnchor(r.id);let s=(0,A.Z)(),o=(0,l.useRef)(null),{collapsed:c,setCollapsed:d}=(0,M.u)({initialState:!r.open}),[u,m]=(0,l.useState)(r.open),h=l.isValidElement(n)?n:(0,i.jsx)("summary",{children:n??"Details"});return(0,i.jsxs)("details",{...r,ref:o,open:u,"data-collapsed":c,className:(0,a.Z)(F.details,s&&F.isBrowser,r.className),onMouseDown:e=>{O(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();let n=e.target;if(!!(O(n)&&function e(n,t){return!!n&&(n===t||e(n.parentElement,t))}(n,o.current)))e.preventDefault(),c?(d(!1),m(!0)):d(!0)},children:[h,(0,i.jsx)(M.z,{lazy:!1,collapsed:c,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{d(e),m(!e)},children:(0,i.jsx)("div",{className:F.collapsibleContent,children:t})})]})}let B="details_b_Ee";function H(e){let{...n}=e;return(0,i.jsx)(D,{...n,className:(0,a.Z)("alert alert--info",B,n.className)})}function I(e){let n=l.Children.toArray(e.children),t=n.find(e=>l.isValidElement(e)&&"summary"===e.type),a=(0,i.jsx)(i.Fragment,{children:n.filter(e=>e!==t)});return(0,i.jsx)(H,{...e,summary:t,children:a})}var E=t("34403");function L(e){return(0,i.jsx)(E.Z,{...e})}let P={containsTaskList:"containsTaskList_mC6p"},S="img_ev3q";var V=t("75094");let $={Head:k.Z,details:I,Details:I,code:function(e){var n;return void 0!==(n=e).children&&l.Children.toArray(n.children).every(e=>"string"==typeof e&&!e.includes("\n"))?(0,i.jsx)(R,{...e}):(0,i.jsx)(U.Z,{...e})},a:function(e){return(0,i.jsx)(o.Z,{...e})},pre:function(e){return(0,i.jsx)(i.Fragment,{children:e.children})},ul:function(e){return(0,i.jsx)("ul",{...e,className:function(e){if(void 0!==e)r
|