1 line
32 KiB
JavaScript
1 line
32 KiB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39882,e=>{"use strict";var t=e.i(61974);e.s(["useMediaQuery",()=>t.default])},13235,e=>{"use strict";e.i(47167);var t=e.i(71645),r=e.i(7670),o=e.i(95669),l=e.i(40799),i=e.i(94425),n=e.i(98051),a=e.i(95761);function s(e){return(0,a.default)("MuiCardMedia",e)}(0,n.default)("MuiCardMedia",["root","media","img"]);var d=e.i(43476);let c=(0,l.styled)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{isMediaComponent:o,isImageComponent:l}=r;return[t.root,o&&t.media,l&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),u=["video","audio","picture","iframe","img"],p=["picture","img"],h=t.forwardRef(function(e,t){let l=(0,i.useDefaultProps)({props:e,name:"MuiCardMedia"}),{children:n,className:a,component:h="div",image:f,src:m,style:x,...y}=l,v=u.includes(h),b=!v&&f?{backgroundImage:`url("${f}")`,...x}:x,g={...l,component:h,isMediaComponent:v,isImageComponent:p.includes(h)},w=(e=>{let{classes:t,isMediaComponent:r,isImageComponent:l}=e;return(0,o.default)({root:["root",r&&"media",l&&"img"]},s,t)})(g);return(0,d.jsx)(c,{className:(0,r.default)(w.root,a),as:h,role:!v&&f?"img":void 0,ref:t,style:b,ownerState:g,src:v?f||m:void 0,...y,children:n})});e.s(["CardMedia",0,h],13235)},11180,e=>{"use strict";e.i(71645);var t=e.i(54624),r=e.i(43476);let o=(0,t.default)((0,r.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");e.s(["default",0,o])},74811,e=>{"use strict";var t=e.i(54624),r=e.i(43476);let o=(0,t.default)((0,r.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code");e.s(["default",0,o])},13607,e=>{"use strict";var t=e.i(4896);e.s(["Card",()=>t.default])},4896,e=>{"use strict";e.i(47167);var t=e.i(71645),r=e.i(7670),o=e.i(95669),l=e.i(40799),i=e.i(94425),n=e.i(67719),a=e.i(98051),s=e.i(95761);function d(e){return(0,s.default)("MuiCard",e)}(0,a.default)("MuiCard",["root"]);var c=e.i(43476);let u=(0,l.styled)(n.default,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),p=t.forwardRef(function(e,t){let l=(0,i.useDefaultProps)({props:e,name:"MuiCard"}),{className:n,raised:a=!1,...s}=l,p={...l,raised:a},h=(e=>{let{classes:t}=e;return(0,o.default)({root:["root"]},d,t)})(p);return(0,c.jsx)(u,{className:(0,r.default)(h.root,n),elevation:a?8:void 0,ref:t,ownerState:p,...s})});e.s(["default",0,p],4896)},61974,e=>{"use strict";e.i(47167);var t=e.i(71645),r=e.i(55777),o=e.i(94231),o=o,l=e.i(86931);let i={...t}.useSyncExternalStore;function n(e={}){let{themeId:a}=e;return function(e,n={}){let s=(0,l.default)();s&&a&&(s=s[a]||s);let d="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:c=!1,matchMedia:u=d?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:h=!1}=(0,o.default)({name:"MuiUseMediaQuery",props:n,theme:s}),f="function"==typeof e?e(s):e;return(f=f.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(void 0!==i?function(e,r,o,l,n){let a=t.useCallback(()=>r,[r]),s=t.useMemo(()=>{if(n&&o)return()=>o(e).matches;if(null!==l){let{matches:t}=l(e);return()=>t}return a},[a,e,l,n,o]),[d,c]=t.useMemo(()=>{if(null===o)return[a,()=>()=>{}];let t=o(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[a,o,e]);return i(c,d,s)}:function(e,o,l,i,n){let[a,s]=t.useState(()=>n&&l?l(e).matches:i?i(e).matches:o);return(0,r.default)(()=>{if(!l)return;let t=l(e),r=()=>{s(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e,l]),a})(f,c,u,p,h)}}n();let a=n({themeId:e.i(2001).default});e.s(["default",0,a],61974)},54624,e=>{"use strict";e.i(47167);var t=e.i(71645),r=e.i(7670),o=e.i(95669),l=e.i(42196),i=e.i(40799),n=e.i(75149),a=e.i(94425),s=e.i(98051),d=e.i(95761);function c(e){return(0,d.default)("MuiSvgIcon",e)}(0,s.default)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var u=e.i(43476);let p=(0,i.styled)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${(0,l.default)(r.color)}`],t[`fontSize${(0,l.default)(r.fontSize)}`]]}})((0,n.default)(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),h=t.forwardRef(function(e,i){let n=(0,a.useDefaultProps)({props:e,name:"MuiSvgIcon"}),{children:s,className:d,color:h="inherit",component:f="svg",fontSize:m="medium",htmlColor:x,inheritViewBox:y=!1,titleAccess:v,viewBox:b="0 0 24 24",...g}=n,w=t.isValidElement(s)&&"svg"===s.type,S={...n,color:h,component:f,fontSize:m,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:b,hasSvgAsChild:w},j={};y||(j.viewBox=b);let B=(e=>{let{color:t,fontSize:r,classes:i}=e,n={root:["root","inherit"!==t&&`color${(0,l.default)(t)}`,`fontSize${(0,l.default)(r)}`]};return(0,o.default)(n,c,i)})(S);return(0,u.jsxs)(p,{as:f,className:(0,r.default)(B.root,d),focusable:"false",color:x,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:i,...j,...g,...w&&s.props,ownerState:S,children:[w?s.props.children:s,v?(0,u.jsx)("title",{children:v}):null]})});function f(e,r){function o(t,r){return(0,u.jsx)(h,{"data-testid":void 0,ref:r,...t,children:e})}return o.muiName=h.muiName,t.memo(t.forwardRef(o))}h.muiName="SvgIcon",e.s(["default",()=>f],54624)},76552,e=>{"use strict";var t=e.i(19646);e.s(["Box",()=>t.default])},91882,e=>{"use strict";var t=e.i(52057);e.s(["Container",()=>t.default])},66796,34251,e=>{"use strict";var t=e.i(26863);e.s(["Typography",()=>t.default],66796);var r=e.i(36807);e.s(["Button",()=>r.default],34251)},71494,e=>{"use strict";var t=e.i(54624),r=e.i(43476);let o=(0,t.default)((0,r.jsx)("path",{d:"M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99M17 19H7V5h10z"}),"Smartphone");e.s(["default",0,o])},25139,e=>{"use strict";var t=e.i(43476),r=e.i(76552),o=e.i(91882),l=e.i(66796),i=e.i(13607),n=e.i(13235),a=e.i(34251),s=e.i(39882),d=e.i(10557);e.i(47167);var c=e.i(71645),u=e.i(7670),p=e.i(95669),h=e.i(68308),f=e.i(35189),m=e.i(40799),x=e.i(75149),y=e.i(94425),v=e.i(91783);function b(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var g=e.i(99064),w=e.i(43612),w=w;let S={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var j=e.i(54624);let B=(0,j.default)((0,t.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),C=(0,j.default)((0,t.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");var M=e.i(54033),z=e.i(98051),T=e.i(95761);function I(e){return(0,T.default)("MuiTabScrollButton",e)}let P=(0,z.default)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),R=(0,m.styled)(M.default,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${P.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),W=c.forwardRef(function(e,r){let o=(0,y.useDefaultProps)({props:e,name:"MuiTabScrollButton"}),{className:l,slots:i={},slotProps:n={},direction:a,orientation:s,disabled:d,...c}=o,m=(0,h.useRtl)(),x={isRtl:m,...o},v=(e=>{let{classes:t,orientation:r,disabled:o}=e;return(0,p.default)({root:["root",r,o&&"disabled"]},I,t)})(x),b=i.StartScrollButtonIcon??B,g=i.EndScrollButtonIcon??C,w=(0,f.default)({elementType:b,externalSlotProps:n.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),S=(0,f.default)({elementType:g,externalSlotProps:n.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return(0,t.jsx)(R,{component:"div",className:(0,u.default)(v.root,l),ref:r,role:null,ownerState:x,tabIndex:null,...c,style:{...c.style,..."vertical"===s&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:"left"===a?(0,t.jsx)(b,{...w}):(0,t.jsx)(g,{...S})})});var L=e.i(82793);function k(e){return(0,T.default)("MuiTabs",e)}let E=(0,z.default)("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var A=e.i(88195),H=e.i(28351),$=e.i(48106);let D=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,N=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,X=(e,t,r)=>{let o=!1,l=r(e,t);for(;l;){if(l===e.firstChild){if(o)return;o=!0}let t=l.disabled||"true"===l.getAttribute("aria-disabled");if(l.hasAttribute("tabindex")&&!t)return void l.focus();l=r(e,l)}},F=(0,m.styled)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${E.scrollButtons}`]:t.scrollButtons},{[`& .${E.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})((0,x.default)(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${E.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),V=(0,m.styled)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),O=(0,m.styled)("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.list,t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),Y=(0,m.styled)("span",{name:"MuiTabs",slot:"Indicator"})((0,x.default)(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),K=(0,m.styled)(function(e){let{onChange:r,...o}=e,l=c.useRef(),i=c.useRef(null),n=()=>{l.current=i.current.offsetHeight-i.current.clientHeight};return(0,w.default)(()=>{let e=(0,v.default)(()=>{let e=l.current;n(),e!==l.current&&r(l.current)}),t=(0,g.ownerWindow)(i.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[r]),c.useEffect(()=>{n(),r(l.current)},[r]),(0,t.jsx)("div",{style:S,...o,ref:i})})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),G={},U=c.forwardRef(function(e,r){let o,l,i=(0,y.useDefaultProps)({props:e,name:"MuiTabs"}),n=(0,d.useTheme)(),a=(0,h.useRtl)(),{"aria-label":s,"aria-labelledby":m,action:x,centered:g=!1,children:w,className:S,component:j="div",allowScrollButtonsMobile:B=!1,indicatorColor:C="primary",onChange:M,orientation:z="horizontal",ScrollButtonComponent:T,scrollButtons:I="auto",selectionFollowsFocus:P,slots:R={},slotProps:E={},TabIndicatorProps:U={},TabScrollButtonProps:q={},textColor:Q="primary",value:_,variant:J="standard",visibleScrollbar:Z=!1,...ee}=i,et="scrollable"===J,er="vertical"===z,eo=er?"scrollTop":"scrollLeft",el=er?"top":"left",ei=er?"bottom":"right",en=er?"clientHeight":"clientWidth",ea=er?"height":"width",es={...i,component:j,allowScrollButtonsMobile:B,indicatorColor:C,orientation:z,vertical:er,scrollButtons:I,textColor:Q,variant:J,visibleScrollbar:Z,fixed:!et,hideScrollbar:et&&!Z,scrollableX:et&&!er,scrollableY:et&&er,centered:g&&!et,scrollButtonsHideMobile:!B},ed=(e=>{let{vertical:t,fixed:r,hideScrollbar:o,scrollableX:l,scrollableY:i,centered:n,scrollButtonsHideMobile:a,classes:s}=e;return(0,p.default)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",o&&"hideScrollbar",l&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",n&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[l&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},k,s)})(es),ec=(0,f.default)({elementType:R.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:es}),eu=(0,f.default)({elementType:R.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:es}),[ep,eh]=c.useState(!1),[ef,em]=c.useState(G),[ex,ey]=c.useState(!1),[ev,eb]=c.useState(!1),[eg,ew]=c.useState(!1),[eS,ej]=c.useState({overflow:"hidden",scrollbarWidth:0}),eB=new Map,eC=c.useRef(null),eM=c.useRef(null),ez={slots:R,slotProps:{indicator:U,scrollButton:q,...E}},eT=()=>{let e,t,r=eC.current;if(r){let t=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollWidth:r.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(r&&!1!==_){let e=eM.current.children;if(e.length>0){let r=e[eB.get(_)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},eI=(0,L.default)(()=>{let e,{tabsMeta:t,tabMeta:r}=eT(),o=0;er?(e="top",r&&t&&(o=r.top-t.top+t.scrollTop)):(e=a?"right":"left",r&&t&&(o=(a?-1:1)*(r[e]-t[e]+t.scrollLeft)));let l={[e]:o,[ea]:r?r[ea]:0};if("number"!=typeof ef[e]||"number"!=typeof ef[ea])em(l);else{let t=Math.abs(ef[e]-l[e]),r=Math.abs(ef[ea]-l[ea]);(t>=1||r>=1)&&em(l)}}),eP=(e,{animation:t=!0}={})=>{t?function(e,t,r,o={},l=()=>{}){let{ease:i=b,duration:n=300}=o,a=null,s=t[e],d=!1,c=o=>{if(d)return void l(Error("Animation cancelled"));null===a&&(a=o);let u=Math.min(1,(o-a)/n);(t[e]=i(u)*(r-s)+s,u>=1)?requestAnimationFrame(()=>{l(null)}):requestAnimationFrame(c)};s===r?l(Error("Element already at target position")):requestAnimationFrame(c)}(eo,eC.current,e,{duration:n.transitions.duration.standard}):eC.current[eo]=e},eR=e=>{let t=eC.current[eo];er?t+=e:t+=e*(a?-1:1),eP(t)},eW=()=>{let e=eC.current[en],t=0,r=Array.from(eM.current.children);for(let o=0;o<r.length;o+=1){let l=r[o];if(t+l[en]>e){0===o&&(t=e);break}t+=l[en]}return t},[eL,{onChange:ek,...eE}]=(0,$.default)("scrollbar",{className:(0,u.default)(ed.scrollableX,ed.hideScrollbar),elementType:K,shouldForwardComponentProp:!0,externalForwardedProps:ez,ownerState:es}),eA=c.useCallback(e=>{ek?.(e),ej({overflow:null,scrollbarWidth:e})},[ek]),[eH,e$]=(0,$.default)("scrollButtons",{className:(0,u.default)(ed.scrollButtons,q.className),elementType:W,externalForwardedProps:ez,ownerState:es,additionalProps:{orientation:z,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:ec,endScrollButtonIcon:eu}}}),eD=(0,L.default)(e=>{let{tabsMeta:t,tabMeta:r}=eT();r&&t&&(r[el]<t[el]?eP(t[eo]+(r[el]-t[el]),{animation:e}):r[ei]>t[ei]&&eP(t[eo]+(r[ei]-t[ei]),{animation:e}))}),eN=(0,L.default)(()=>{et&&!1!==I&&ew(!eg)});c.useEffect(()=>{let e,t,r=(0,v.default)(()=>{eC.current&&eI()}),o=(0,H.default)(eC.current);return o.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(eM.current.children).forEach(t=>{e.observe(t)})),"undefined"!=typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{e?.unobserve(t)}),t.addedNodes.forEach(t=>{e?.observe(t)})}),r(),eN()})).observe(eM.current,{childList:!0}),()=>{r.clear(),o.removeEventListener("resize",r),t?.disconnect(),e?.disconnect()}},[eI,eN]),c.useEffect(()=>{let e=Array.from(eM.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&et&&!1!==I){let r=e[0],o=e[t-1],l={root:eC.current,threshold:.99},i=new IntersectionObserver(e=>{ey(!e[0].isIntersecting)},l);i.observe(r);let n=new IntersectionObserver(e=>{eb(!e[0].isIntersecting)},l);return n.observe(o),()=>{i.disconnect(),n.disconnect()}}},[et,I,eg,w?.length]),c.useEffect(()=>{eh(!0)},[]),c.useEffect(()=>{eI()}),c.useEffect(()=>{eD(G!==ef)},[eD,ef]),c.useImperativeHandle(x,()=>({updateIndicator:eI,updateScrollButtons:eN}),[eI,eN]);let[eX,eF]=(0,$.default)("indicator",{className:(0,u.default)(ed.indicator,U.className),elementType:Y,externalForwardedProps:ez,ownerState:es,additionalProps:{style:ef}}),eV=(0,t.jsx)(eX,{...eF}),eO=0,eY=c.Children.map(w,e=>{if(!c.isValidElement(e))return null;let t=void 0===e.props.value?eO:e.props.value;eB.set(t,eO);let r=t===_;return eO+=1,c.cloneElement(e,{fullWidth:"fullWidth"===J,indicator:r&&!ep&&eV,selected:r,selectionFollowsFocus:P,onChange:M,textColor:Q,value:t,...1===eO&&!1===_&&!e.props.tabIndex?{tabIndex:0}:{}})}),eK=((o={}).scrollbarSizeListener=et?(0,t.jsx)(eL,{...eE,onChange:eA}):null,o.scrollButtonStart=(l=et&&("auto"===I&&(ex||ev)||!0===I))?(0,t.jsx)(eH,{direction:a?"right":"left",onClick:()=>{eR(-1*eW())},disabled:!ex,...e$}):null,o.scrollButtonEnd=l?(0,t.jsx)(eH,{direction:a?"left":"right",onClick:()=>{eR(eW())},disabled:!ev,...e$}):null,o),[eG,eU]=(0,$.default)("root",{ref:r,className:(0,u.default)(ed.root,S),elementType:F,externalForwardedProps:{...ez,...ee,component:j},ownerState:es}),[eq,eQ]=(0,$.default)("scroller",{ref:eC,className:ed.scroller,elementType:V,externalForwardedProps:ez,ownerState:es,additionalProps:{style:{overflow:eS.overflow,[er?`margin${a?"Left":"Right"}`:"marginBottom"]:Z?void 0:-eS.scrollbarWidth}}}),[e_,eJ]=(0,$.default)("list",{ref:eM,className:(0,u.default)(ed.list,ed.flexContainer),elementType:O,externalForwardedProps:ez,ownerState:es,getSlotProps:e=>({...e,onKeyDown:t=>{(e=>{if(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)return;let t=eM.current,r=(0,A.default)(t).activeElement;if("tab"!==r.getAttribute("role"))return;let o="horizontal"===z?"ArrowLeft":"ArrowUp",l="horizontal"===z?"ArrowRight":"ArrowDown";switch("horizontal"===z&&a&&(o="ArrowRight",l="ArrowLeft"),e.key){case o:e.preventDefault(),X(t,r,N);break;case l:e.preventDefault(),X(t,r,D);break;case"Home":e.preventDefault(),X(t,null,D);break;case"End":e.preventDefault(),X(t,null,N)}})(t),e.onKeyDown?.(t)}})});return(0,t.jsxs)(eG,{...eU,children:[eK.scrollButtonStart,eK.scrollbarSizeListener,(0,t.jsxs)(eq,{...eQ,children:[(0,t.jsx)(e_,{"aria-label":s,"aria-labelledby":m,"aria-orientation":"vertical"===z?"vertical":null,role:"tablist",...eJ,children:eY}),ep&&eV]}),eK.scrollButtonEnd]})});var q=e.i(42196);function Q(e){return(0,T.default)("MuiTab",e)}let _=(0,z.default)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),J=(0,m.styled)(M.default,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${(0,q.default)(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped,{[`& .${_.iconWrapper}`]:t.iconWrapper},{[`& .${_.icon}`]:t.icon}]}})((0,x.default)(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&("top"===e.iconPosition||"bottom"===e.iconPosition),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&"top"!==e.iconPosition&&"bottom"!==e.iconPosition,style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"top"===t,style:{[`& > .${_.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"bottom"===t,style:{[`& > .${_.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"start"===t,style:{[`& > .${_.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&"end"===t,style:{[`& > .${_.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${_.selected}`]:{opacity:1},[`&.${_.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${_.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${_.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${_.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${_.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),Z=c.forwardRef(function(e,r){let o=(0,y.useDefaultProps)({props:e,name:"MuiTab"}),{className:l,disabled:i=!1,disableFocusRipple:n=!1,fullWidth:a,icon:s,iconPosition:d="top",indicator:h,label:f,onChange:m,onClick:x,onFocus:v,selected:b,selectionFollowsFocus:g,textColor:w="inherit",value:S,wrapped:j=!1,...B}=o,C={...o,disabled:i,disableFocusRipple:n,selected:b,icon:!!s,iconPosition:d,label:!!f,fullWidth:a,textColor:w,wrapped:j},M=(e=>{let{classes:t,textColor:r,fullWidth:o,wrapped:l,icon:i,label:n,selected:a,disabled:s}=e,d={root:["root",i&&n&&"labelIcon",`textColor${(0,q.default)(r)}`,o&&"fullWidth",l&&"wrapped",a&&"selected",s&&"disabled"],icon:["iconWrapper","icon"]};return(0,p.default)(d,Q,t)})(C),z=s&&f&&c.isValidElement(s)?c.cloneElement(s,{className:(0,u.default)(M.icon,s.props.className)}):s;return(0,t.jsxs)(J,{focusRipple:!n,className:(0,u.default)(M.root,l),ref:r,role:"tab","aria-selected":b,disabled:i,onClick:e=>{!b&&m&&m(e,S),x&&x(e)},onFocus:e=>{g&&!b&&m&&m(e,S),v&&v(e)},ownerState:C,tabIndex:b?0:-1,...B,children:["top"===d||"start"===d?(0,t.jsxs)(c.Fragment,{children:[z,f]}):(0,t.jsxs)(c.Fragment,{children:[f,z]}),h]})});var ee=e.i(74811);let et=(0,j.default)((0,t.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),er=(0,j.default)((0,t.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download");var eo=e.i(11180);let el=(0,j.default)((0,t.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h3l-1 1v2h12v-2l-1-1h3c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 13H4V5h16z"}),"Monitor");var ei=e.i(71494);let en=(0,j.default)((0,t.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"Storage");function ea(){let e=(0,d.useTheme)(),u=(0,s.useMediaQuery)(e.breakpoints.down("sm"));(0,s.useMediaQuery)(e.breakpoints.down("md"));let[p,h]=(0,c.useState)(0),f=["/projects/leonpan/img1.png","/projects/leonpan/img2.png","/projects/leonpan/img3.png"],m=[{icon:(0,t.jsx)(el,{color:"primary",style:{fontSize:u?24:32}}),title:"Web支持",description:"无需安装任何客户端就可以快速使用"},{icon:(0,t.jsx)(ei.default,{color:"primary",style:{fontSize:u?24:32}}),title:"PC客户端",description:"完美适配Windows 10以上的系统"},{icon:(0,t.jsx)(en,{color:"primary",style:{fontSize:u?24:32}}),title:"精美设计",description:"提供简洁而专业的用户界面,操作方便"},{icon:(0,t.jsx)(ee.default,{color:"primary",style:{fontSize:u?24:32}}),title:"开源可定制",description:"基于GPLv3协议开源,可自由修改和定制"}];return(0,t.jsxs)(r.Box,{sx:{minHeight:"100vh",bgcolor:"background.default"},children:[(0,t.jsx)(r.Box,{sx:{bgcolor:"primary.main",color:"white",py:u?8:12,px:2,textAlign:"center",position:"relative",overflow:"hidden","&::after":{content:'""',position:"absolute",bottom:-50,right:-50,width:200,height:200,borderRadius:"50%",bgcolor:"rgba(255,255,255,0.1)"}},children:(0,t.jsxs)(o.Container,{maxWidth:"md",sx:{position:"relative",zIndex:1},children:[(0,t.jsx)(l.Typography,{variant:u?"h3":"h2",component:"h1",gutterBottom:!0,fontWeight:"bold",children:"LeonPan"}),(0,t.jsx)(l.Typography,{variant:"body1",paragraph:!0,sx:{maxWidth:600,mx:"auto",opacity:.9},children:"LeonPan是一个开源项目,改编自Cloudreve开源项目,使用GPLv3协议开源。提供强大的文件管理功能。"}),(0,t.jsxs)(r.Box,{sx:{mt:4,display:"flex",flexWrap:"wrap",gap:2,justifyContent:"center"},children:[(0,t.jsx)(a.Button,{variant:"contained",color:"secondary",size:u?"small":"medium",startIcon:(0,t.jsx)(eo.default,{}),sx:{px:3},onClick:()=>window.open("http://leonmmcoset.jjxmm.win:2000/leonmmcoset/leonpan","_blank"),children:"Git仓库"}),(0,t.jsx)(a.Button,{variant:"outlined",color:"inherit",size:u?"small":"medium",startIcon:(0,t.jsx)(er,{}),sx:{px:3,borderColor:"white",color:"white","&:hover":{borderColor:"rgba(255,255,255,0.8)"}},onClick:()=>window.open("http://leonmmcoset.jjxmm.win:5212/","_blank"),children:"进入LeonAPP"})]})]})}),(0,t.jsx)(r.Box,{sx:{py:u?6:10,px:2},children:(0,t.jsx)(o.Container,{maxWidth:"lg",children:(0,t.jsxs)(r.Box,{sx:{display:"flex",flexDirection:u?"column":"row",gap:u?4:6,alignItems:"center",width:"100%"},children:[(0,t.jsxs)(r.Box,{sx:{width:"100%"},children:[(0,t.jsx)(l.Typography,{variant:u?"h4":"h3",component:"h2",gutterBottom:!0,fontWeight:"bold",children:"项目概述"}),(0,t.jsx)(l.Typography,{variant:"body1",paragraph:!0,sx:{mb:3,color:"text.secondary"},children:"LeonPan是基于Cloudreve开发的文件管理系统,提供了丰富的功能和友好的用户界面。 它支持多种存储方式,包括本地存储、对象存储等,可以满足不同用户的需求。"}),(0,t.jsx)(l.Typography,{variant:"body1",paragraph:!0,sx:{mb:3,color:"text.secondary"},children:"项目致力于提供安全、稳定、高效的文件管理解决方案,适用于个人用户和团队协作场景。"}),(0,t.jsxs)(r.Box,{sx:{display:"flex",alignItems:"center",gap:2,mt:4},children:[(0,t.jsxs)(r.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,t.jsx)(et,{color:"secondary",fontSize:"small",style:{fontSize:16}}),(0,t.jsx)(l.Typography,{variant:"body2",children:"开源免费"})]}),(0,t.jsxs)(r.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,t.jsx)(ee.default,{color:"primary",fontSize:"small",style:{fontSize:16}}),(0,t.jsx)(l.Typography,{variant:"body2",children:"GPLv3协议"})]})]})]}),(0,t.jsx)(r.Box,{sx:{width:"100%"},children:(0,t.jsx)(i.Card,{sx:{boxShadow:4,borderRadius:2,overflow:"hidden"},children:(0,t.jsx)(n.CardMedia,{component:"img",height:u?200:300,image:f[0],alt:"LeonPan 截图",sx:{objectFit:"cover"}})})})]})})}),(0,t.jsx)(r.Box,{sx:{py:u?6:10,px:2,bgcolor:"grey.50"},children:(0,t.jsxs)(o.Container,{maxWidth:"lg",children:[(0,t.jsx)(l.Typography,{variant:u?"h4":"h3",component:"h2",align:"center",gutterBottom:!0,fontWeight:"bold",children:"功能特点"}),(0,t.jsx)(l.Typography,{variant:"body1",align:"center",paragraph:!0,sx:{mb:8,maxWidth:600,mx:"auto",color:"text.secondary"},children:"LeonPan提供丰富的功能,满足您的文件管理需求"}),(0,t.jsx)(r.Box,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:u?3:4,width:"100%"},children:m.map((e,o)=>(0,t.jsx)(r.Box,{sx:{width:u?"100%":"calc(50% - 16px)",key:o},children:(0,t.jsxs)(i.Card,{sx:{height:"100%",display:"flex",flexDirection:"row",alignItems:"center",padding:3,boxShadow:2,borderRadius:2,transition:"transform 0.3s, box-shadow 0.3s","&:hover":{transform:"translateY(-3px)",boxShadow:4}},children:[(0,t.jsx)(r.Box,{sx:{mr:3,display:"flex",alignItems:"center",justifyContent:"center",minWidth:60},children:e.icon}),(0,t.jsxs)(r.Box,{children:[(0,t.jsx)(l.Typography,{variant:"h6",component:"h3",gutterBottom:!0,fontWeight:"bold",children:e.title}),(0,t.jsx)(l.Typography,{variant:"body2",color:"text.secondary",children:e.description})]})]})}))})]})}),(0,t.jsx)(r.Box,{sx:{py:u?6:10,px:2},children:(0,t.jsxs)(o.Container,{maxWidth:"lg",children:[(0,t.jsx)(l.Typography,{variant:u?"h4":"h3",component:"h2",align:"center",gutterBottom:!0,fontWeight:"bold",children:"界面展示"}),(0,t.jsx)(l.Typography,{variant:"body1",align:"center",paragraph:!0,sx:{mb:8,maxWidth:600,mx:"auto",color:"text.secondary"},children:"查看LeonPan的精美界面"}),!u&&(0,t.jsx)(r.Box,{sx:{mb:4,display:"flex",justifyContent:"center"},children:(0,t.jsx)(U,{value:p,onChange:(e,t)=>h(t),variant:"scrollable",scrollButtons:"auto",indicatorColor:"primary",textColor:"primary",children:f.map((e,r)=>(0,t.jsx)(Z,{label:`截图 ${r+1}`},r))})}),(0,t.jsx)(r.Box,{sx:{textAlign:"center"},children:(0,t.jsx)(i.Card,{sx:{display:"inline-block",boxShadow:5,borderRadius:2,overflow:"hidden",maxWidth:"100%"},children:(0,t.jsx)(n.CardMedia,{component:"img",height:u?250:400,image:f[p],alt:`LeonPan 截图 ${p+1}`,sx:{objectFit:"contain",maxWidth:"100%"}})})}),u&&(0,t.jsx)(r.Box,{sx:{mt:4,display:"flex",gap:2,justifyContent:"center",overflowX:"auto",pb:2},children:f.map((e,r)=>(0,t.jsx)(a.Button,{variant:p===r?"contained":"outlined",size:"small",onClick:()=>h(r),sx:{minWidth:60,height:60,p:1,border:+(p!==r)},children:(0,t.jsx)("img",{src:e,alt:`缩略图 ${r+1}`,style:{width:"100%",height:"100%",objectFit:"cover"}})},r))})]})}),(0,t.jsx)(r.Box,{sx:{py:u?8:12,px:2,bgcolor:"primary.main",color:"white",textAlign:"center"},children:(0,t.jsxs)(o.Container,{maxWidth:"md",children:[(0,t.jsx)(l.Typography,{variant:u?"h4":"h3",component:"h2",gutterBottom:!0,fontWeight:"bold",children:"开始使用 LeonPan"}),(0,t.jsx)(l.Typography,{variant:"body1",paragraph:!0,sx:{mb:6,opacity:.9},children:"立即体验LeonPan带来的高效文件管理体验,开源免费,功能强大"}),(0,t.jsxs)(r.Box,{sx:{display:"flex",flexWrap:"wrap",gap:3,justifyContent:"center"},children:[(0,t.jsx)(a.Button,{variant:"contained",color:"secondary",size:u?"small":"large",startIcon:(0,t.jsx)(eo.default,{}),sx:{px:4,py:1.5},onClick:()=>window.open("http://leonmmcoset.jjxmm.win:2000/leonmmcoset/leonpan","_blank"),children:"访问Git仓库"}),(0,t.jsx)(a.Button,{variant:"outlined",color:"inherit",size:u?"small":"large",startIcon:(0,t.jsx)(er,{}),sx:{px:4,py:1.5,borderColor:"white",color:"white","&:hover":{borderColor:"rgba(255,255,255,0.8)"}},onClick:()=>window.open("http://leonmmcoset.jjxmm.win:5212/","_blank"),children:"立即访问LeonAPP"})]})]})})]})}e.s(["default",()=>ea],25139)}]); |