most-box 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/electron/main.js +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/__next.__PAGE__.txt +4 -4
- package/out/__next._full.txt +5 -5
- package/out/__next._head.txt +1 -1
- package/out/__next._index.txt +2 -2
- package/out/__next._tree.txt +3 -3
- package/out/_next/static/chunks/003jnm.v5tzw5.js +1 -0
- package/out/_next/static/chunks/00re8v.gbcywn.js +1 -0
- package/out/_next/static/chunks/012hi627qrdnn.js +1 -0
- package/out/_next/static/chunks/{11dalasm30arx.js → 02~o2nmo5pmy1.js} +1 -1
- package/out/_next/static/chunks/{0_-ccbcyh_o30.css → 07t.dhhokszz5.css} +1 -1
- package/out/_next/static/chunks/{0ibjp~7qzxfjv.js → 0ah8fihozo2_u.js} +3 -3
- package/out/_next/static/chunks/0gdluj423gso1.js +1 -0
- package/out/_next/static/chunks/0gmoiq06srjay.css +1 -0
- package/out/_next/static/chunks/{0_b839~4.q324.js → 0imkasy7kb67u.js} +1 -1
- package/out/_next/static/chunks/0jjc_b9q_ldi2.js +1 -0
- package/out/_next/static/chunks/0lqslm813wk_h.js +1 -0
- package/out/_next/static/chunks/{0ry.po.a~iu4p.js → 0q782fxxd0lx~.js} +1 -1
- package/out/_next/static/chunks/0tapzqc6hgvx-.js +1 -0
- package/out/_next/static/chunks/{0j9~17180dl8j.js → 0xsc7z5x8n7wg.js} +1 -1
- package/out/_next/static/chunks/{0_sna3wdypbzr.js → 0zm~gys2jwl0g.js} +1 -1
- package/out/_not-found/__next._full.txt +2 -2
- package/out/_not-found/__next._head.txt +1 -1
- package/out/_not-found/__next._index.txt +2 -2
- package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/out/_not-found/__next._not-found.txt +1 -1
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found/index.html +2 -2
- package/out/_not-found/index.txt +2 -2
- package/out/app/__next._full.txt +3 -3
- package/out/app/__next._head.txt +1 -1
- package/out/app/__next._index.txt +2 -2
- package/out/app/__next._tree.txt +1 -1
- package/out/app/__next.app.__PAGE__.txt +2 -2
- package/out/app/__next.app.txt +1 -1
- package/out/app/index.html +2 -2
- package/out/app/index.txt +3 -3
- package/out/changelog/__next._full.txt +4 -4
- package/out/changelog/__next._head.txt +1 -1
- package/out/changelog/__next._index.txt +2 -2
- package/out/changelog/__next._tree.txt +2 -2
- package/out/changelog/__next.changelog.__PAGE__.txt +3 -3
- package/out/changelog/__next.changelog.txt +1 -1
- package/out/changelog/index.html +2 -2
- package/out/changelog/index.txt +4 -4
- package/out/chat/__next._full.txt +3 -3
- package/out/chat/__next._head.txt +1 -1
- package/out/chat/__next._index.txt +2 -2
- package/out/chat/__next._tree.txt +1 -1
- package/out/chat/__next.chat.__PAGE__.txt +2 -2
- package/out/chat/__next.chat.txt +1 -1
- package/out/chat/index.html +2 -2
- package/out/chat/index.txt +3 -3
- package/out/docs/__next._full.txt +4 -4
- package/out/docs/__next._head.txt +1 -1
- package/out/docs/__next._index.txt +2 -2
- package/out/docs/__next._tree.txt +2 -2
- package/out/docs/__next.docs.__PAGE__.txt +3 -3
- package/out/docs/__next.docs.txt +1 -1
- package/out/docs/getting-started/__next._full.txt +4 -4
- package/out/docs/getting-started/__next._head.txt +1 -1
- package/out/docs/getting-started/__next._index.txt +2 -2
- package/out/docs/getting-started/__next._tree.txt +2 -2
- package/out/docs/getting-started/__next.docs.getting-started.__PAGE__.txt +3 -3
- package/out/docs/getting-started/__next.docs.getting-started.txt +1 -1
- package/out/docs/getting-started/__next.docs.txt +1 -1
- package/out/docs/getting-started/index.html +2 -2
- package/out/docs/getting-started/index.txt +4 -4
- package/out/docs/index.html +2 -2
- package/out/docs/index.txt +4 -4
- package/out/download/__next._full.txt +5 -5
- package/out/download/__next._head.txt +1 -1
- package/out/download/__next._index.txt +2 -2
- package/out/download/__next._tree.txt +2 -2
- package/out/download/__next.download.__PAGE__.txt +3 -3
- package/out/download/__next.download.txt +1 -1
- package/out/download/index.html +2 -2
- package/out/download/index.txt +5 -5
- package/out/index.html +2 -2
- package/out/index.txt +5 -5
- package/out/ping/__next._full.txt +4 -4
- package/out/ping/__next._head.txt +1 -1
- package/out/ping/__next._index.txt +2 -2
- package/out/ping/__next._tree.txt +2 -2
- package/out/ping/__next.ping.__PAGE__.txt +3 -3
- package/out/ping/__next.ping.txt +1 -1
- package/out/ping/index.html +2 -2
- package/out/ping/index.txt +4 -4
- package/out/web3/__next._full.txt +3 -3
- package/out/web3/__next._head.txt +1 -1
- package/out/web3/__next._index.txt +2 -2
- package/out/web3/__next._tree.txt +1 -1
- package/out/web3/__next.web3.__PAGE__.txt +2 -2
- package/out/web3/__next.web3.txt +1 -1
- package/out/web3/ed25519/__next._full.txt +2 -2
- package/out/web3/ed25519/__next._head.txt +1 -1
- package/out/web3/ed25519/__next._index.txt +2 -2
- package/out/web3/ed25519/__next._tree.txt +1 -1
- package/out/web3/ed25519/__next.web3.ed25519.__PAGE__.txt +1 -1
- package/out/web3/ed25519/__next.web3.ed25519.txt +1 -1
- package/out/web3/ed25519/__next.web3.txt +1 -1
- package/out/web3/ed25519/index.html +1 -1
- package/out/web3/ed25519/index.txt +2 -2
- package/out/web3/index.html +2 -2
- package/out/web3/index.txt +3 -3
- package/out/web3/tools/__next._full.txt +2 -2
- package/out/web3/tools/__next._head.txt +1 -1
- package/out/web3/tools/__next._index.txt +2 -2
- package/out/web3/tools/__next._tree.txt +1 -1
- package/out/web3/tools/__next.web3.tools.__PAGE__.txt +1 -1
- package/out/web3/tools/__next.web3.tools.txt +1 -1
- package/out/web3/tools/__next.web3.txt +1 -1
- package/out/web3/tools/index.html +1 -1
- package/out/web3/tools/index.txt +2 -2
- package/package.json +2 -1
- package/server/index.js +38 -6
- package/server/src/index.js +5 -3
- package/server/src/utils/mp.js +1 -13
- package/out/_next/static/chunks/02ou_44kkb5dz.js +0 -1
- package/out/_next/static/chunks/02pr2b_eos3~h.js +0 -1
- package/out/_next/static/chunks/07lsjkarm1p9f.css +0 -1
- package/out/_next/static/chunks/0byj66sc-9o0g.js +0 -1
- package/out/_next/static/chunks/0du450zbk4kq_.js +0 -1
- package/out/_next/static/chunks/0imvn_arv36xt.css +0 -1
- package/out/_next/static/chunks/0ji.28mehrvdp.js +0 -1
- package/out/_next/static/chunks/0nct0fubs64d-.js +0 -1
- package/out/_next/static/chunks/0q7ck9f.90_i9.js +0 -1
- package/out/_next/static/chunks/0rr4gwjp9z~9a.js +0 -1
- package/out/lottery/__next._full.txt +0 -21
- package/out/lottery/__next._head.txt +0 -5
- package/out/lottery/__next._index.txt +0 -7
- package/out/lottery/__next._tree.txt +0 -3
- package/out/lottery/__next.lottery.__PAGE__.txt +0 -9
- package/out/lottery/__next.lottery.txt +0 -6
- package/out/lottery/index.html +0 -15
- package/out/lottery/index.txt +0 -21
- /package/out/_next/static/{alUUgRz4oMlw4EtULOYfV → MKMAM_PgkfJypNTQAws_M}/_buildManifest.js +0 -0
- /package/out/_next/static/{alUUgRz4oMlw4EtULOYfV → MKMAM_PgkfJypNTQAws_M}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{alUUgRz4oMlw4EtULOYfV → MKMAM_PgkfJypNTQAws_M}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62368,e=>{"use strict";let t=(0,e.i(56420).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],62368)},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={formatUrl:function(){return i},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var o in s)Object.defineProperty(r,o,{enumerable:!0,get:s[o]});let a=e.r(90809)._(e.r(98183)),n=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,s=e.protocol||"",o=e.pathname||"",i=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(a.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return s&&!s.endsWith(":")&&(s+=":"),e.slashes||(!s||n.test(s))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${s}${c}${o}${u}${i}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return i(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let s=e.r(71645);function o(e,t){let r=(0,s.useRef)(null),o=(0,s.useRef)(null);return(0,s.useCallback)(s=>{if(null===s){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,s)),t&&(o.current=a(t,s))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let s=e.r(18967),o=e.r(52817);function a(e){if(!(0,s.isAbsoluteUrl)(e))return!0;try{let t=(0,s.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return s}});let s=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return g},useLinkStatus:function(){return w}};for(var o in s)Object.defineProperty(r,o,{enumerable:!0,get:s[o]});let a=e.r(90809),n=e.r(43476),i=a._(e.r(71645)),l=e.r(95057),c=e.r(8372),u=e.r(18581),h=e.r(18967),d=e.r(5550);e.r(33525);let p=e.r(88540),f=e.r(91949),m=e.r(73668),y=e.r(9396);function g(t){var r,s;let o,a,g,[w,x]=(0,i.useOptimistic)(f.IDLE_LINK_STATUS),v=(0,i.useRef)(null),{href:R,as:k,children:j,prefetch:T=null,passHref:P,replace:S,shallow:q,scroll:E,onClick:N,onMouseEnter:C,onTouchStart:O,legacyBehavior:A=!1,onNavigate:M,transitionTypes:L,ref:B,unstable_dynamicOnHover:U,...D}=t;o=j,A&&("string"==typeof o||"number"==typeof o)&&(o=(0,n.jsx)("a",{children:o}));let z=i.default.useContext(c.AppRouterContext),H=!1!==T,_=!1!==T?null===(s=T)||"auto"===s?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,$="string"==typeof(r=k||R)?r:(0,l.formatUrl)(r);if(A){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=i.default.Children.only(o)}let F=A?a&&"object"==typeof a&&a.ref:B,I=i.default.useCallback(e=>(null!==z&&(v.current=(0,f.mountLinkInstance)(e,$,z,_,H,x)),()=>{v.current&&((0,f.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,f.unmountPrefetchableInstance)(e)}),[H,$,z,_,x]),W={ref:(0,u.useMergedRef)(I,F),onClick(t){A||"function"!=typeof N||N(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!z||t.defaultPrevented||function(t,r,s,o,a,n,l){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),n){let e=!1;if(n({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:h}=e.r(99781);i.default.startTransition(()=>{h(r,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,s.current,l)})}}(t,$,v,S,E,M,L)},onMouseEnter(e){A||"function"!=typeof C||C(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),z&&H&&(0,f.onNavigationIntent)(e.currentTarget,!0===U)},onTouchStart:function(e){A||"function"!=typeof O||O(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),z&&H&&(0,f.onNavigationIntent)(e.currentTarget,!0===U)}};return(0,h.isAbsoluteUrl)($)?W.href=$:A&&!P&&("a"!==a.type||"href"in a.props)||(W.href=(0,d.addBasePath)($)),g=A?i.default.cloneElement(a,W):(0,n.jsx)("a",{...D,...W,children:o}),(0,n.jsx)(b.Provider,{value:w,children:g})}e.r(84508);let b=(0,i.createContext)(f.IDLE_LINK_STATUS),w=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},96661,e=>{"use strict";e.s(["mergeClasses",0,(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()])},71987,88973,e=>{"use strict";e.s(["default",0,{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}],71987),e.s(["hasA11yProp",0,e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1}],88973)},5014,e=>{"use strict";var t=e.i(71645),r=e.i(71987),s=e.i(88973),o=e.i(96661);let a=(0,t.createContext)({}),n=(0,t.forwardRef)(({color:e,size:n,strokeWidth:i,absoluteStrokeWidth:l,className:c="",children:u,iconNode:h,...d},p)=>{let{size:f=24,strokeWidth:m=2,absoluteStrokeWidth:y=!1,color:g="currentColor",className:b=""}=(0,t.useContext)(a)??{},w=l??y?24*Number(i??m)/Number(n??f):i??m;return(0,t.createElement)("svg",{ref:p,...r.default,width:n??f??r.default.width,height:n??f??r.default.height,stroke:e??g,strokeWidth:w,className:(0,o.mergeClasses)("lucide",b,c),...!u&&!(0,s.hasA11yProp)(d)&&{"aria-hidden":"true"},...d},[...h.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]])});e.s(["default",0,n],5014)},56420,e=>{"use strict";var t=e.i(71645),r=e.i(96661);let s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var o=e.i(5014);e.s(["default",0,(e,a)=>{let n=(0,t.forwardRef)(({className:n,...i},l)=>(0,t.createElement)(o.default,{ref:l,iconNode:a,className:(0,r.mergeClasses)(`lucide-${s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...i}));return n.displayName=s(e),n}],56420)},35965,96699,93583,e=>{"use strict";var t=e.i(56420);let r=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,r],35965);let s=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,s],96699);let o=(0,t.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,o],93583)},40983,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),o=e.i(35965),a=e.i(96699),n=e.i(93583);function i({size:e=24}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.4"}),(0,t.jsx)("rect",{x:"14",y:"2",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.7"}),(0,t.jsx)("rect",{x:"2",y:"14",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.7"}),(0,t.jsx)("rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",fill:"var(--accent)"})]})}let l=[{href:"/docs/getting-started/",label:"文档"},{href:"/changelog/",label:"更新日志"}];function c(){let[e,c]=(0,r.useState)(!1),[u,h]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=localStorage.getItem("theme"),t=window.matchMedia("(prefers-color-scheme: dark)").matches;("dark"===e||!e&&t)&&h(!0)},[]),(0,r.useEffect)(()=>{document.documentElement.setAttribute("data-theme",u?"dark":"light"),localStorage.setItem("theme",u?"dark":"light")},[u]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("nav",{className:"mkt-nav",children:(0,t.jsxs)("div",{className:"mkt-nav-inner",children:[(0,t.jsxs)(s.default,{href:"/",className:"mkt-nav-logo",children:[(0,t.jsx)(i,{}),"MOST PEOPLE"]}),(0,t.jsxs)("div",{className:`mkt-nav-links ${e?"open":""}`,children:[l.map(e=>(0,t.jsx)(s.default,{href:e.href,onClick:()=>c(!1),children:e.label},e.href)),(0,t.jsxs)("button",{className:"mkt-theme-toggle mkt-mobile-only",onClick:()=>{h(!u),c(!1)},"aria-label":"切换主题",children:[u?(0,t.jsx)(o.Sun,{size:16}):(0,t.jsx)(a.Moon,{size:16}),u?" 亮色模式":" 暗色模式"]})]}),(0,t.jsxs)("div",{className:"mkt-nav-cta",children:[(0,t.jsx)("button",{className:"mkt-theme-toggle mkt-desktop-only",onClick:()=>h(!u),"aria-label":"切换主题",children:u?(0,t.jsx)(o.Sun,{size:16}):(0,t.jsx)(a.Moon,{size:16})}),(0,t.jsx)(s.default,{href:"/app/",className:"mkt-btn-primary",children:"开始使用"}),(0,t.jsx)("button",{className:"mkt-nav-mobile-toggle",onClick:()=>c(!e),"aria-label":"菜单",children:(0,t.jsx)(n.Menu,{size:24})})]})]})})})}let u=[{href:"/",label:"关于"},{href:"/docs/getting-started/",label:"文档"},{href:"/changelog/",label:"更新日志"},{href:"/ping/",label:"网络"},{href:"https://github.com/most-people/most",label:"GitHub",external:!0}];function h(){return(0,t.jsx)("footer",{className:"mkt-footer",children:(0,t.jsx)("div",{className:"mkt-container",children:(0,t.jsxs)("div",{className:"mkt-footer-inner",children:[(0,t.jsx)("div",{className:"mkt-footer-links",children:u.map(e=>(0,t.jsx)(s.default,{href:e.href,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:e.label},e.href))}),(0,t.jsxs)("span",{className:"mkt-footer-copy",children:["© ",new Date().getFullYear()," MOST PEOPLE · MIT License"]})]})})})}e.s(["MarketingLayout",0,function({children:e}){return(0,t.jsxs)("div",{className:"mkt-layout",children:[(0,t.jsx)(c,{}),(0,t.jsx)("main",{className:"mkt-layout-main",children:e}),(0,t.jsx)(h,{})]})}],40983)},89664,e=>{"use strict";let t=(0,e.i(56420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],89664)},68590,e=>{"use strict";let t=(0,e.i(56420).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],68590)},68877,26913,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],68877);class r extends Error{name="KyError";get isKyError(){return!0}}class s extends r{name="HTTPError";response;request;options;data;constructor(e,t,r){const s=e.status||0===e.status?e.status:"",o=e.statusText??"",a=`${s} ${o}`.trim(),n=a?`status code ${a}`:"an unknown error";super(`Request failed with ${n}: ${t.method} ${t.url}`),this.response=e,this.request=t,this.options=r}}class o extends r{name="NetworkError";request;constructor(e,t){super(`Request failed due to a network error: ${e.method} ${e.url}`,t),this.request=e}}class a extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}}class n extends r{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new a(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}}class i extends Error{name="SchemaValidationError";issues;constructor(e){super("Response schema validation failed"),this.issues=e}}class l extends r{name="TimeoutError";request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.request=e}}let c=(()=>{let e=!1,t=!1,r="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),u="function"==typeof globalThis.AbortController,h="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,d="function"==typeof globalThis.ReadableStream,p="function"==typeof globalThis.FormData,f=["get","post","put","patch","head","delete"],m={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},y=Symbol("stop");class g{options;constructor(e){this.options=e}}let b=e=>new g(e),w={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},x={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},v=new TextEncoder,R=(e,t,r)=>{let s,o=0;return e.pipeThrough(new TransformStream({transform(e,a){if(a.enqueue(e),s){o+=s.byteLength;let e=0===t?0:o/t;e>=1&&(e=1-Number.EPSILON),r?.({percent:e,totalBytes:Math.max(t,o),transferredBytes:o},s)}s=e},flush(){s&&(o+=s.byteLength,r?.({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},s))}}))},k=e=>null!==e&&"object"==typeof e,j=Symbol("replaceOption"),T=e=>k(e)&&!0===e[j]?{isReplace:!0,value:e.value}:{isReplace:!1,value:e},P=(...e)=>{for(let t of e)if((!k(t)||Array.isArray(t))&&void 0!==t)throw TypeError("The `options` argument must be an object");return L({},...e)},S=(e={},t={})=>{let r=new globalThis.Headers(e),s=t instanceof globalThis.Headers;for(let[e,o]of new globalThis.Headers(t).entries())s&&"undefined"===o||void 0===o?r.delete(e):r.set(e,o);return r},q=e=>{if(!k(e)||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t},E=e=>{if(e instanceof URLSearchParams){let t=new URLSearchParams(e),r=e[A];return r&&(t[A]=new Set(r)),t}return e instanceof globalThis.Headers?new globalThis.Headers(e):Array.isArray(e)?[...e]:q(e)?{...e}:e},N=(e,t)=>q(e)&&q(t)?Object.fromEntries(Object.entries({...e,...t}).filter(e=>void 0!==e[1])):S(e,t);function C(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:L(e[r]??[],t[r]??[])}let O=(e={},t={})=>({init:C(e,t,"init"),beforeRequest:C(e,t,"beforeRequest"),beforeRetry:C(e,t,"beforeRetry"),beforeError:C(e,t,"beforeError"),afterResponse:C(e,t,"afterResponse")}),A=Symbol("deletedParameters"),M=(e,t)=>{let r=new URLSearchParams,s=new Set;for(let o of[e,t])if(void 0!==o)if(o instanceof URLSearchParams){for(let[e,t]of o.entries())r.append(e,t),s.delete(e);let e=o[A];if(e)for(let t of e)r.delete(t),s.add(t)}else if(Array.isArray(o))for(let e of o){if(!Array.isArray(e)||2!==e.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(e[0]),String(e[1])),s.delete(String(e[0]))}else if(k(o))for(let[e,t]of Object.entries(o))void 0===t?(r.delete(e),s.add(e)):(r.append(e,String(t)),s.delete(e));else for(let[e,t]of new URLSearchParams(o).entries())r.append(e,t),s.delete(e);return s.size>0&&(r[A]=s),r},L=(...e)=>{let t,r={},s={},o={},a=[];for(let n of e)if(Array.isArray(n))Array.isArray(r)||(r=[]),r=[...r,...n];else if(k(n)){for(let[e,s]of Object.entries(n)){if("signal"===e&&s instanceof globalThis.AbortSignal){a.push(s);continue}let o=T(s),{isReplace:n}=o;if(s=o.value,"context"===e){if(null!=s&&(!k(s)||Array.isArray(s)))throw TypeError("The `context` option must be an object");r={...r,context:null==s?{}:n?{...s}:{...r.context,...s}};continue}if("searchParams"===e){t=null==s?void 0:n||void 0===t?s:M(t,s);continue}k(s)&&!n&&e in r&&(s=L(r[e],s)),r={...r,[e]:s}}if(k(n.hooks)){let{value:e,isReplace:t}=T(n.hooks);o=t?O({},e):O(o,e),r.hooks=o}if(k(n.headers)){let{value:e,isReplace:t}=T(n.headers);s=t?E(e):N(s,e),r.headers=s}}return void 0!==t&&(r.searchParams=t),a.length>0&&(1===a.length?r.signal=a[0]:h?r.signal=AbortSignal.any(a):r.signal=a.at(-1)),r},B={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1};async function U(e,t,r,s){return new Promise((o,a)=>{let n=setTimeout(()=>{r&&r.abort(),a(new l(e))},s.timeout);s.fetch(e,t).then(o).catch(a).then(()=>{clearTimeout(n)})})}async function D(e,{signal:t}){return new Promise((r,s)=>{function o(){clearTimeout(a),s(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));let a=setTimeout(()=>{t?.removeEventListener("abort",o),r()},e)})}let z=Object.prototype.toString,H=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]),_=(e,t)=>e instanceof t||e?.name===t.name,$=Symbol("timedOutResponseData"),F="The `schema` argument must follow the Standard Schema specification",I=Object.prototype.toString,W=e=>e instanceof globalThis.Request||"[object Request]"===I.call(e),J=e=>e instanceof globalThis.Response||"[object Response]"===I.call(e),K=async(e,t)=>{if("object"!=typeof t&&"function"!=typeof t||null===t)throw TypeError(F);let r=t["~standard"];if("object"!=typeof r||null===r||"function"!=typeof r.validate)throw TypeError(F);let s=await r.validate(e);if(s.issues)throw new i(s.issues);return s.value};class V{static create(e,t){var r,o;let a,i=t.hooks?.init??[],l=i.length>0?(a={...t,json:E(t.json),context:E(t.context),headers:E(t.headers),searchParams:Array.isArray(r=t.searchParams)?r.map(e=>[...e]):E(r)},void 0!==t.retry&&(a.retry="object"!=typeof(o=t.retry)?o:{...o,...o.methods&&{methods:[...o.methods]},...o.statusCodes&&{statusCodes:[...o.statusCodes]},...o.afterStatusCodes&&{afterStatusCodes:[...o.afterStatusCodes]}}),a):t;for(let e of i)e(l);let c=new V(e,l),u=async()=>{if("number"==typeof c.#e.timeout&&c.#e.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");if("number"==typeof c.#e.totalTimeout&&c.#e.totalTimeout>0x7fffffff)throw RangeError("The `totalTimeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await c.#t(),t=e??await c.#r(async()=>c.#s()),r=void 0!==e||c.#o();for(;;){if(void 0===t)return t;if(J(t))try{t=await c.#a(t)}catch(s){if(!(s instanceof n))throw s;let e=await c.#n(s,async()=>c.#s());if(void 0===e)return e;t=e,r=c.#o();continue}let e=t;if(!e.ok&&"opaque"!==e.type&&("function"==typeof c.#e.throwHttpErrors?c.#e.throwHttpErrors(e.status):c.#e.throwHttpErrors)){let o=new s(e,c.#i(e),c.#l());if(o.data=await c.#c(e),r)throw o;let a=await c.#n(o,async()=>c.#s());if(void 0===a)return a;t=a,r=c.#o();continue}break}if(!J(t))return t;if(c.#u(t),c.#e.onDownloadProgress){if("function"!=typeof c.#e.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!d)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let e=t.clone();c.#h(t);var o=c.#e.onDownloadProgress;if(!e.body)return e;let r={status:e.status,statusText:e.statusText,headers:e.headers};if(204===e.status)return new Response(null,r);let s=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(R(e.body,s,o),r)}return t},h=(async()=>{try{return await u()}catch(t){if(!(t instanceof Error)||c.#d.has(t))throw t;let e=t;for(let t of c.#e.hooks.beforeError){let r=await t({request:c.request,options:c.#l(),error:e,retryCount:c.#p});r instanceof Error&&(e=r)}throw e}finally{let e=c.#f;c.#m(e?.body??void 0),c.request!==e&&c.#m(c.request.body??void 0)}})();for(let[e,t]of Object.entries(m))("bytes"!==e||"function"==typeof globalThis.Response?.prototype?.bytes)&&(h[e]=async r=>{c.request.headers.set("accept",c.request.headers.get("accept")||t);let s=await h;if("json"!==e)return s[e]();let o=await s.text();if(""===o)return void 0!==r?K(void 0,r):JSON.parse(o);let a=l.parseJson?await l.parseJson(o,{request:c.#i(s),response:s}):JSON.parse(o);return void 0===r?a:K(a,r)});return h}static #y(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#g;#p=0;#b;#e;#f;#w;#d=new WeakSet;#x;#v;#R=!1;#k=new WeakMap;constructor(e,t={}){if(this.#b=e,Object.hasOwn(t,"prefixUrl"))throw Error("The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl");if(this.#e={...t,headers:S(this.#b.headers,t.headers),hooks:O({},t.hooks),method:(e=>f.includes(e)?e.toUpperCase():e)(t.method??this.#b.method??"GET"),prefix:String(t.prefix||""),retry:((e={})=>{if("number"==typeof e)return{...B,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");let t=Object.fromEntries(Object.entries({...e,methods:e.methods?.map(e=>e.toLowerCase())}).filter(([,e])=>void 0!==e));return{...B,...t}})(t.retry),throwHttpErrors:t.throwHttpErrors??!0,timeout:t.timeout??1e4,totalTimeout:t.totalTimeout??!1,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},"string"!=typeof this.#b&&!(this.#b instanceof URL||this.#b instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if("string"==typeof this.#b){if(this.#e.prefix){const e=this.#e.prefix.replace(/\/+$/,""),t=this.#b.replace(/^\/+/,"");this.#b=`${e}/${t}`}if(this.#e.baseUrl){let e;try{e=new URL(this.#b)}catch{}e||(this.#b=new URL(this.#b,new Request(this.#e.baseUrl).url))}}u&&h&&(this.#w=this.#e.signal??this.#b.signal,this.#g=new globalThis.AbortController,this.#e.signal=this.#j()),c&&(this.#e.duplex="half"),void 0!==this.#e.json&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));const r=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#b instanceof globalThis.Request&&(p&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!r&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#b,this.#e),(e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0||!!e[A]?.size:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e))(this.#e.searchParams)){const e=new URL(this.request.url),t=this.#e.searchParams?.[A];if(t)for(const r of t)e.searchParams.delete(r);if("string"==typeof this.#e.searchParams){const t=this.#e.searchParams.replace(/^\?/,"");""!==t&&(e.search=e.search?`${e.search}&${t}`:`?${t}`)}else for(const[t,r]of new URLSearchParams(V.#y(this.#e.searchParams)).entries())e.searchParams.append(t,r);if(this.#e.searchParams&&"object"==typeof this.#e.searchParams&&!Array.isArray(this.#e.searchParams)&&!(this.#e.searchParams instanceof URLSearchParams))for(const[t,r]of Object.entries(this.#e.searchParams))void 0===r&&e.searchParams.delete(t);this.request=new globalThis.Request(e,this.#e)}if(this.#e.onUploadProgress&&"function"!=typeof this.#e.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");this.#v="number"==typeof this.#e.totalTimeout?this.#T():void 0}#P(){let e=this.#e.retry.delay(this.#p+1),t=e;return!0===this.#e.retry.jitter?t=Math.random()*e:"function"==typeof this.#e.retry.jitter&&(!Number.isFinite(t=this.#e.retry.jitter(e))||t<0)&&(t=e),Math.min(this.#e.retry.backoffLimit,t)}async #S(e){if(this.#p>=this.#e.retry.limit)throw e;let t=e instanceof Error?e:new a(e);if(t instanceof n)return t.customDelay??this.#P();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#e.retry.shouldRetry){let r=await this.#e.retry.shouldRetry({error:t,retryCount:this.#p+1});if(!1===r)throw e;if(!0===r)return this.#P()}if(_(e,l)){if(!this.#e.retry.retryOnTimeout)throw e;return this.#P()}if(_(e,s)){if(!this.#e.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#e.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);return(Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now()),Number.isFinite(e))?(e=Math.max(0,e),Math.min(this.#e.retry.maxRetryAfter,e)):Math.min(this.#e.retry.maxRetryAfter,this.#P())}if(413===e.response.status)throw e;return this.#P()}if(!_(e,o))throw e;return this.#P()}#u(e){let t=this.#i(e);return this.#e.parseJson&&(e.json=async()=>{let r=await e.text();return""===r?JSON.parse(r):this.#e.parseJson(r,{request:t,response:e})}),e}async #c(e){let t=await this.#q(e,this.#E());if(t===$)return void this.#N();if(!t)return;if(!this.#C(e.headers.get("content-type")??""))return t;let r=await this.#O(t,e,this.#E(),this.#i(e));return r===$?void this.#N():r}#E(){let e=!1===this.#e.timeout?1e4:this.#e.timeout,t=this.#A();if(void 0===t)return e;if(t<=0)throw new l(this.request);return Math.min(e,t)}#C(e){let t=(e.split(";",1)[0]??"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(t)}async #q(e,t){let r,{body:s}=e;if(!s)try{return await e.text()}catch{return}try{r=s.getReader()}catch{return}let o=(e=>{let t=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(e),r=t?.[1]??t?.[2];if(r)try{return new TextDecoder(r)}catch{}return new TextDecoder})(e.headers.get("content-type")??""),a=[],n=0,i=(async()=>{try{for(;;){let{done:e,value:t}=await r.read();if(e)break;if((n+=t.byteLength)>0xa00000)return void r.cancel().catch(()=>void 0);a.push(o.decode(t,{stream:!0}))}}catch{return}return a.push(o.decode()),a.join("")})(),l=new Promise(e=>{let r=setTimeout(()=>{e($)},t);i.finally(()=>{clearTimeout(r)})}),c=await Promise.race([i,l]);return c===$&&r.cancel().catch(()=>void 0),c}async #O(e,t,r,s){let o;try{return await Promise.race([Promise.resolve().then(()=>this.#e.parseJson?this.#e.parseJson(e,{request:s,response:t}):JSON.parse(e)),new Promise(e=>{o=setTimeout(()=>{e($)},r)})])}catch{return}finally{clearTimeout(o)}}#m(e){e&&e.cancel().catch(()=>void 0)}#h(e){this.#m(e.body??void 0)}#j(){return this.#w?AbortSignal.any([this.#w,this.#g.signal]):this.#g.signal}#N(){let e=this.#A();if(void 0!==e&&e<=0)throw new l(this.request)}async #t(){for(let e of this.#e.hooks.beforeRequest){let t=await e({request:this.request,options:this.#l(),retryCount:0});if(W(t))this.#M(t);else if(J(t))return t}}async #a(e){let t=this.#i(e);for(let r of this.#e.hooks.afterResponse){let s,o=this.#L(e.clone(),t);this.#u(o);try{s=await r({request:this.request,options:this.#l(),response:o,retryCount:this.#p})}catch(t){throw o!==e&&this.#h(o),this.#h(e),t}if(s instanceof g)throw o!==e&&this.#h(o),this.#h(e),new n(s.options);let a=J(s)?this.#L(s,t):e;o!==e&&o!==a&&o.body!==a.body&&this.#h(o),e!==a&&e.body!==a.body&&this.#h(e),e=a}return e}async #r(e){try{return await e()}catch(t){return this.#n(t,e)}}async #n(e,t){this.#R=!1;let r=Math.min(await this.#S(e),0x7fffffff),s={signal:this.#w},o=this.#A();if(void 0!==o){if(o<=0)throw new l(this.request);if(r>=o)throw await D(o,s),new l(this.request)}if(await D(r,s),this.#N(),e instanceof n&&e.customRequest){let t=new globalThis.Request(e.customRequest,this.#e.signal?{signal:this.#e.signal}:void 0);this.#M(t)}for(let t of this.#e.hooks.beforeRetry){let r;try{r=await t({request:this.request,options:this.#l(),error:e,retryCount:this.#p+1})}catch(t){throw t instanceof Error&&t!==e&&this.#d.add(t),t}if(W(r)){this.#M(r);break}if(J(r))return this.#R=!0,this.#p++,r;if(r===y)return}return this.#N(),this.#p++,this.#r(t)}#o(){let e=this.#R;return this.#R=!1,e}async #s(){this.#g?.signal.aborted&&(this.#g=new globalThis.AbortController,this.#e.signal=this.#j(),this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));let e=(e=>{let t={};for(let r in e)Object.hasOwn(e,r)&&(r in x||r in w||(t[r]=e[r]));return t})(this.#e),t=this.#e.retry.limit>0?this.request.clone():void 0,r=this.#B(this.request,this.#e.body??void 0);this.#f=r,t&&(this.request=t);try{let t=this.#A();if(void 0!==t&&t<=0)throw new l(this.request);let s=!1===this.#e.timeout?t:void 0===t?this.#e.timeout:Math.min(this.#e.timeout,t),o=void 0===s?await this.#e.fetch(r,e):await U(r,e,this.#g,{timeout:s,fetch:this.#e.fetch});return this.#L(o,r)}catch(e){if(function(e){if(!(e&&"[object Error]"===z.call(e)&&"TypeError"===e.name&&"string"==typeof e.message))return!1;let{message:t,stack:r}=e;return"Load failed"===t?void 0===r||"__sentry_captured__"in e:!!(t.startsWith("error sending request for url")||"Failed to fetch"===t||t.startsWith("Failed to fetch (")&&t.endsWith(")"))||H.has(t)}(e))throw new o(this.request,{cause:e});throw e}}#A(){if(void 0===this.#v)return;let e=this.#T()-this.#v;return Math.max(0,this.#e.totalTimeout-e)}#T(){return globalThis.performance?.now()??Date.now()}#l(){if(!this.#x){let{hooks:e,json:t,parseJson:r,stringifyJson:s,searchParams:o,timeout:a,totalTimeout:n,throwHttpErrors:i,fetch:l,...c}=this.#e;this.#x=Object.freeze(c)}return this.#x}#M(e){this.#x=void 0,this.request=e}#i(e){return this.#k.get(e)??this.request}#L(e,t){return this.#k.set(e,t),e}#B(e,t){return this.#e.onUploadProgress&&e.body&&c?((e,t,r)=>{if(!e.body)return e;let s=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[r,s]of e)t+=40,t+=v.encode(`Content-Disposition: form-data; name="${r}"`).byteLength,t+="string"==typeof s?v.encode(s).byteLength:s.size;return t}return e instanceof Blob?e.size:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:"string"==typeof e?v.encode(e).byteLength:e instanceof URLSearchParams?v.encode(e.toString()).byteLength:0})(r??e.body);return new Request(e,{duplex:"half",body:R(e.body,s,t)})})(e,this.#e.onUploadProgress,t??this.#e.body??void 0):e}}let G=e=>{let t=(t,r)=>V.create(t,P(e,r));for(let r of f)t[r]=(t,s)=>V.create(t,P(e,s,{method:r}));return t.create=e=>G(P(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),G(P(e,t))),t.stop=y,t.retry=b,t},X=G(),Z="mostbox_backend_url";function Q(){let e=localStorage.getItem(Z)||"";return X.create({prefix:e})}let Y=Q();async function ee(){try{return(await fetch("/api/node-id",{method:"GET",signal:AbortSignal.timeout(2e3)})).ok}catch{return!1}}async function et(){try{return(await fetch("http://localhost:1976/api/node-id",{method:"GET",signal:AbortSignal.timeout(2e3)})).ok}catch{return!1}}e.s(["api",()=>Y,"detectLocalhostBackend",0,et,"detectSameOriginBackend",0,ee,"setBackendUrl",0,function(e){let t=(e||"").trim().replace(/\/+$/,"");t?localStorage.setItem(Z,t):localStorage.removeItem(Z),Y=Q()}],26913)},70904,e=>{"use strict";let t=(0,e.i(56420).default)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);e.s(["Wallet",0,t],70904)},82022,e=>{"use strict";let t=(0,e.i(56420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],82022)},31713,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(22016),o=e.i(56420);let a=(0,o.default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);var n=e.i(68590),i=e.i(70904),l=e.i(68877);let c=(0,o.default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var u=e.i(89664),h=e.i(82022),d=e.i(62368),p=e.i(26913);let f=[{id:"app",title:"MostBox",subtitle:"P2P 文件分享",icon:(0,t.jsx)(a,{size:28}),path:"/app/",requiresBackend:!0,hero:"P2P 文件分享,无需注册",desc:"基于 Hyperswarm 的去中心化文件传输,让文件分享回归点对点。不限速、不限量、不追踪。",features:["无需注册,打开浏览器即用","Hyperswarm P2P 直连传输","GB 级大文件流式处理","相同文件 = 相同 CID,链接永久有效","频道加密聊天,实时通讯","MIT 开源,数据完全自主掌控"],steps:[{num:"1",title:"下载桌面客户端",desc:"支持 Windows、macOS 和 Linux。",link:"/download",linkText:"前往下载页"},{num:"2",title:"安装并运行",desc:"安装后打开应用,即可使用。"},{num:"3",title:"开始分享",desc:"上传文件,复制链接,发给朋友即可。"}]},{id:"chat",title:"P2P 聊天",subtitle:"频道加密通讯",icon:(0,t.jsx)(n.MessageSquare,{size:28}),path:"/chat/",requiresBackend:!0,hero:"去中心化频道聊天",desc:"基于 Hypercore 的 P2P 加密即时通讯。创建频道,邀请朋友,端到端加密,无需服务器中转。",features:["P2P 加密频道消息","匿名 / 实名身份切换","消息通过 Hyperswarm 网络同步","离线消息自动同步","无需注册即可使用"],steps:[{num:"1",title:"下载桌面客户端",desc:"支持 Windows、macOS 和 Linux。",link:"/download",linkText:"前往下载页"},{num:"2",title:"创建频道",desc:"输入任意频道名即可加入或创建。"},{num:"3",title:"开始聊天",desc:"发送消息,P2P 网络自动同步给所有在线节点。"}]},{id:"web3",title:"Web3",subtitle:"账户工具箱",icon:(0,t.jsx)(i.Wallet,{size:28}),path:"/web3/",requiresBackend:!1,hero:"确定性密钥派生工具箱",desc:"纯前端运行的 Web3 账户工具。输入用户名和密码,即可生成 Ed25519 / x25519 密钥对、助记词、以太坊地址,支持 PEM 导出和地址派生。",features:["纯前端运行,无需后端","Ed25519 / x25519 密钥对生成","BIP-39 助记词派生","以太坊地址与私钥导出","PEM 格式密钥导出","二维码展示地址与助记词"],steps:[{num:"1",title:"输入用户名",desc:"用户名 + 密码(可选)作为种子。"},{num:"2",title:"查看密钥",desc:"即时生成 Ed25519、x25519 公钥与 IPNS ID。"},{num:"3",title:"导出使用",desc:"复制地址、导出 PEM、派生子地址。"}]}];function m(){let[e,o]=(0,r.useState)("app"),[a,n]=(0,r.useState)(null),[i,m]=(0,r.useState)(!0);(0,r.useEffect)(()=>{!async function(){if(await (0,p.detectSameOriginBackend)()){(0,p.setBackendUrl)(""),n(!0),m(!1);return}if(await (0,p.detectLocalhostBackend)()){(0,p.setBackendUrl)("http://localhost:1976"),n(!0),m(!1);return}n(!1),m(!1)}()},[]);let y=f.find(t=>t.id===e)||f[0];return(0,t.jsxs)("div",{className:"portal-page",children:[(0,t.jsx)("section",{className:"portal-hero",children:(0,t.jsxs)("div",{className:"mkt-container",children:[(0,t.jsx)("h1",{className:"portal-hero-title",children:"MOST PEOPLE"}),(0,t.jsx)("p",{className:"portal-hero-subtitle",children:"去中心化 P2P 工具箱"})]})}),(0,t.jsx)("section",{className:"portal-cards-section",children:(0,t.jsx)("div",{className:"mkt-container",children:(0,t.jsx)("div",{className:"portal-cards",children:f.map(r=>{let n=e===r.id,l=r.requiresBackend,u=i?"checking":l?a?"connected":"disconnected":"none";return(0,t.jsxs)("button",{className:`portal-card ${n?"active":""}`,onClick:()=>o(r.id),children:[(0,t.jsx)(s.default,{href:r.path,className:"portal-card-open-btn",onClick:e=>e.stopPropagation(),title:`打开${r.title}`,children:(0,t.jsx)(c,{size:16})}),(0,t.jsx)("div",{className:"portal-card-icon",children:r.icon}),(0,t.jsx)("div",{className:"portal-card-title",children:r.title}),(0,t.jsx)("div",{className:"portal-card-subtitle",children:r.subtitle}),l?(0,t.jsxs)("div",{className:`portal-card-status ${u}`,children:["checking"===u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"status-dot checking"}),"检测中"]}),"connected"===u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"status-dot connected"}),"已连接"]}),"disconnected"===u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"status-dot disconnected"}),"需下载"]})]}):(0,t.jsxs)("div",{className:"portal-card-status ready",children:[(0,t.jsx)("span",{className:"status-dot ready"}),"已就绪"]})]},r.id)})})})}),(0,t.jsx)("section",{className:"portal-marketing",children:(0,t.jsx)("div",{className:"mkt-container",children:(0,t.jsx)("div",{className:"portal-marketing-inner",children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"portal-marketing-header",children:[(0,t.jsx)("h2",{children:y.hero}),(0,t.jsx)("p",{children:y.desc})]}),(0,t.jsx)("div",{className:"portal-marketing-features",children:y.features.map((e,r)=>(0,t.jsxs)("div",{className:"portal-feature-item",children:[(0,t.jsx)("span",{className:"portal-feature-icon",children:(0,t.jsx)(u.Check,{size:14,strokeWidth:3})}),(0,t.jsx)("span",{children:e})]},r))}),(0,t.jsx)("div",{className:"portal-marketing-steps",children:y.steps.map(e=>(0,t.jsxs)("div",{className:"portal-step",children:[(0,t.jsx)("span",{className:"portal-step-num",children:e.num}),(0,t.jsxs)("div",{className:"portal-step-content",children:[(0,t.jsx)("strong",{children:e.title}),(0,t.jsx)("p",{children:e.desc}),e.code&&(0,t.jsx)("code",{className:"portal-step-code",children:e.code}),e.link&&(0,t.jsx)("p",{className:"portal-step-link",children:(0,t.jsxs)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",children:[e.linkText," ",(0,t.jsx)(h.ExternalLink,{size:12})]})})]})]},e.num))}),(0,t.jsxs)("div",{className:"portal-actions",children:[(0,t.jsxs)(s.default,{href:y.path,className:"mkt-btn-primary",children:["进入 ",y.title,(0,t.jsx)(l.ArrowRight,{size:16})]}),y.requiresBackend&&!1===a&&(0,t.jsxs)(s.default,{href:"/download",className:"mkt-btn-secondary",children:[(0,t.jsx)(d.Download,{size:16}),"下载桌面客户端"]})]})]})})})})]})}var y=e.i(40983);e.s(["default",0,function(){return(0,t.jsx)(y.MarketingLayout,{children:(0,t.jsx)(m,{})})}],31713)}]);
|