fumapress 0.1.12 → 0.1.13
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/dist/lib/cli/index.mjs +2 -2
- package/dist/waku/public/assets/{Combination-CZgu7LLo.js → Combination-DrcqRtGA.js} +1 -1
- package/dist/waku/public/assets/{_root-Cggak6CV.js → _root-UvrU8GwY.js} +2 -2
- package/dist/waku/public/assets/{algolia-BNaRObL_.js → algolia-C1zJb8Qk.js} +1 -1
- package/dist/waku/public/assets/check-BbfQleye.js +1 -0
- package/dist/waku/public/assets/{chevron-right-DJJuSbM1.js → chevron-right-DeeB6Siw.js} +1 -1
- package/dist/waku/public/assets/clerk-B6YS10Vt.js +1 -0
- package/dist/waku/public/assets/{client-Bo71EBGO.js → client-BSiZmHUR.js} +1 -1
- package/dist/waku/public/assets/{client-DQjBKg0B.js → client-DZrkaM4Z.js} +1 -1
- package/dist/waku/public/assets/{collapsible-CF1Cu_jt.js → collapsible-B44znGcA.js} +1 -1
- package/dist/waku/public/assets/{core-Cv3l1Zqy.js → core-Dj5ux1GM.js} +3 -3
- package/dist/waku/public/assets/{i18n-BolcaqTL.js → i18n-C-Z_Hjir.js} +1 -1
- package/dist/waku/public/assets/{i18n-DjlEdu4y.js → i18n-PxnJFz3u.js} +1 -1
- package/dist/waku/public/assets/{index-Bu4rAUmg.js → index-BHSCznho.js} +1 -1
- package/dist/waku/public/assets/{index-DX0XjS82.js → index-BJW5cYpx.js} +2 -2
- package/dist/waku/public/assets/{index-BkvRqZBU.js → index-BLK6p4I7.js} +1 -1
- package/dist/waku/public/assets/{index-CB9kk_3y.js → index-BNzds__a.js} +1 -1
- package/dist/waku/public/assets/{index-gGAeHuu7.js → index-BVWEvTtH.js} +1 -1
- package/dist/waku/public/assets/{index-gSxAaOnX.js → index-BWUz1Wzh.js} +1 -1
- package/dist/waku/public/assets/{index-Bfb33TOe.js → index-CKhdfY24.js} +1 -1
- package/dist/waku/public/assets/{index-04w9Knlq.js → index-CLyIGTiM.js} +15 -15
- package/dist/waku/public/assets/{index-DyrOoaEv.js → index-CU8t-3_R.js} +1 -1
- package/dist/waku/public/assets/index-Ckpsnspt.js +1 -0
- package/dist/waku/public/assets/index-Cq_2xCEj.js +1 -0
- package/dist/waku/public/assets/{index-CocCloJv.js → index-DhlSbsoh.js} +1 -1
- package/dist/waku/public/assets/{index-CiusCfWJ.js → index-DwAEwgq3.js} +2 -2
- package/dist/waku/public/assets/{index-BfvL1FIA.js → index-fYADC7x8.js} +1 -1
- package/dist/waku/public/assets/{index-v53j2ip6.js → index-wmToF8D3.js} +1 -1
- package/dist/waku/public/assets/{merge-refs-nGdaa77n.js → merge-refs-DdSaIw4w.js} +1 -1
- package/dist/waku/public/assets/{orama-cloud-Cb4vFuas.js → orama-cloud-B7ExjOsf.js} +1 -1
- package/dist/waku/public/assets/{orama-cloud-legacy-Ccbnfx92.js → orama-cloud-legacy-BYWQ8iUS.js} +1 -1
- package/dist/waku/public/assets/{orama-static-BFOJ0-9A.js → orama-static-BFn8xSUZ.js} +1 -1
- package/dist/waku/public/assets/{popover-b1EinR7C.js → popover-D1yTQ4pA.js} +1 -1
- package/dist/waku/public/assets/{proxy-CyO3tGnV.js → proxy-1YR77jQp.js} +1 -1
- package/dist/waku/public/assets/{scroll-area-GQGCCFVL.js → scroll-area-CHp-1KMj.js} +1 -1
- package/dist/waku/public/assets/{search-BkUFU0uD.js → search-BvoJUzZe.js} +1 -1
- package/dist/waku/public/assets/{search-default-ChkD4wjB.js → search-default-Cskx3A9x.js} +3 -3
- package/dist/waku/public/assets/{text-align-start-Bml65biG.js → text-align-start-77tc0bgj.js} +1 -1
- package/dist/waku/public/assets/{tree-CLDcGuhY.js → tree-DMBvckeu.js} +1 -1
- package/dist/waku/public/assets/{use-copy-button-BT9SM7ic.js → use-copy-button-BVfD1u7Q.js} +1 -1
- package/dist/waku/public/assets/{use-footer-items-kC7cCS_J.js → use-footer-items-DN1xdOWG.js} +1 -1
- package/dist/waku/public/assets/{x-B4zTGm-y.js → x-Bcn3Z-A2.js} +1 -1
- package/dist/waku/server/__vite_rsc_assets_manifest.js +214 -221
- package/dist/waku/server/assets/{_...slugs_-U66nFPoO.js → _...slugs_-G8fPO_O-.js} +11 -11
- package/dist/waku/server/assets/{_root-C-ADmyW4.js → _root-mEnnxZFG.js} +1 -1
- package/dist/waku/server/assets/{ai-oQoNuSGL.js → ai-Ciluqauj.js} +2 -2
- package/dist/waku/server/assets/{chat-DQKVfTcK.js → chat-DW_HKHrw.js} +4 -4
- package/dist/waku/server/assets/{image.webp-Dv0pfVuD.js → image.webp-DyPxyLsu.js} +1 -1
- package/dist/waku/server/assets/{img-B3_JeTtw.js → img-Ceur8Vbn.js} +1 -1
- package/dist/waku/server/assets/{index-C_0mV3uH.js → index-BG_LvuXY.js} +1 -1
- package/dist/waku/server/assets/{index-ZhQmL1Nf.js → index-BTS71z0Q.js} +6 -6
- package/dist/waku/server/assets/{index-Bcdbsymv.js → index-BhDWYJPg.js} +6 -6
- package/dist/waku/server/assets/{index-3ZfxoYob.js → index-BzelN9xZ.js} +1 -1
- package/dist/waku/server/assets/{index-gONfmTRy.js → index-Cid1T3pA.js} +1 -1
- package/dist/waku/server/assets/{index-WF3F0CwD.js → index-DHi_Q3em.js} +5 -5
- package/dist/waku/server/assets/{index-DnfZyte4.js → index-Dtz4Dikx.js} +1 -1
- package/dist/waku/server/assets/{index-Crq9hZR6.js → index-b51DeFey.js} +1 -1
- package/dist/waku/server/assets/{page-actions-BdnHpIXv.js → page-actions-CYA46ppC.js} +1 -1
- package/dist/waku/server/assets/{search-BY6tyCyl.js → search-Cyknzh3D.js} +2 -2
- package/dist/waku/server/assets/{server-entry-inner-DaRGKsnO.js → server-entry-inner-K3MndDA0.js} +7 -7
- package/dist/waku/server/assets/{token-Bs8f7pab.js → token-CITAv0Sw.js} +3 -3
- package/dist/waku/server/assets/{token-util-G_W-F6oG.js → token-util-BwI11_iA.js} +1 -1
- package/dist/waku/server/assets/{token-util-g3eKEgMS.js → token-util-D0330Bsl.js} +2 -2
- package/dist/waku/server/build.js +1 -1
- package/dist/waku/server/index.js +1 -1
- package/dist/waku/server/ssr/__vite_rsc_assets_manifest.js +214 -221
- package/dist/waku/server/ssr/assets/{clerk-CLtHkX25.js → clerk-CqspAh3n.js} +18 -8
- package/dist/waku/server/ssr/assets/{client-BEsotYsU.js → client-DEc-0Lxy.js} +1 -1
- package/dist/waku/server/ssr/assets/{collapsible-C-va3rUd.js → collapsible-DHCUbEAk.js} +2 -2
- package/dist/waku/server/ssr/assets/{core-Dqhuz4Gl.js → core-priwaMKI.js} +3 -4
- package/dist/waku/server/ssr/assets/{index-CXa1FGoE.js → index-1slu4Pvb.js} +2 -2
- package/dist/waku/server/ssr/assets/{index-DTxluAXt.js → index-B8vKMOfY.js} +3 -3
- package/dist/waku/server/ssr/assets/{index-Cndg6sEB.js → index-BX4HUXJp.js} +24 -20
- package/dist/waku/server/ssr/assets/{index-Dv1oyWqG.js → index-BaR9O1BS.js} +2 -2
- package/dist/waku/server/ssr/assets/{index-DsLtdhXt.js → index-J_nonhZE.js} +23 -19
- package/dist/waku/server/ssr/assets/{index-D1J6J-w6.js → index-Yktv2M6f.js} +3 -4
- package/dist/waku/server/ssr/assets/{index-DLec5OYs.js → index-tYLs9cMo.js} +1 -1
- package/dist/waku/server/ssr/assets/{scroll-area-dXxDy9uz.js → scroll-area-H0rLnYpQ.js} +1 -1
- package/dist/waku/server/ssr/index.js +10 -10
- package/package.json +3 -3
- package/dist/waku/public/assets/check-CO9o5HX9.js +0 -1
- package/dist/waku/public/assets/clerk-C-WekJQE.js +0 -1
- package/dist/waku/public/assets/index-DCb2T_K0.js +0 -1
- package/dist/waku/public/assets/index-DDaubXfQ.js +0 -1
- package/dist/waku/public/assets/link-BuR3Z_Xa.js +0 -1
- package/dist/waku/server/ssr/assets/link-Bito8baZ.js +0 -9
package/dist/lib/cli/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ async function runStart({ host, dirs, port: defaultPort = "8080" }) {
|
|
|
32
32
|
process.env.PORT = String(port);
|
|
33
33
|
process.env.ROOT_DIR = process.cwd();
|
|
34
34
|
if (!dirs || dirs.length === 0) dirs = [""];
|
|
35
|
-
process.env.
|
|
35
|
+
process.env.DEFAULT_PROJECT_DIR = JSON.stringify(dirs.map((v) => path.resolve(v)));
|
|
36
36
|
process.env.HOT_RELOAD = "1";
|
|
37
37
|
process.chdir(baseDir);
|
|
38
38
|
await import(serveFileUrl);
|
|
@@ -63,7 +63,7 @@ async function findConfigPath() {
|
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region package.json
|
|
66
|
-
var version = "0.1.
|
|
66
|
+
var version = "0.1.13";
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/cli/index.ts
|
|
69
69
|
program.command("init").description("create configuration file").action(async () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,j as J}from"./index-DX0XjS82.js";import{e as ee,P as te,a as H,i as Re}from"./index-CocCloJv.js";import{u as x}from"./index-gGAeHuu7.js";function Le(e,t=globalThis?.document){const n=x(e);c.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Te="DismissableLayer",Q="dismissableLayer.update",Ae="dismissableLayer.pointerDownOutside",ke="dismissableLayer.focusOutside",re,me=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),De=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:s,onDismiss:o,...S}=e,l=c.useContext(me),[f,h]=c.useState(null),v=f?.ownerDocument??globalThis?.document,[,y]=c.useState({}),C=ee(t,p=>h(p)),i=Array.from(l.layers),[d]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=i.indexOf(d),E=f?i.indexOf(f):-1,g=l.layersWithOutsidePointerEventsDisabled.size>0,b=E>=m,w=xe(p=>{const L=p.target,T=[...l.branches].some(F=>F.contains(L));!b||T||(a?.(p),s?.(p),p.defaultPrevented||o?.())},v),O=Me(p=>{const L=p.target;[...l.branches].some(F=>F.contains(L))||(u?.(p),s?.(p),p.defaultPrevented||o?.())},v);return Le(p=>{E===l.layers.size-1&&(r?.(p),!p.defaultPrevented&&o&&(p.preventDefault(),o()))},v),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(re=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),ae(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=re)}},[f,v,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),ae())},[f,l]),c.useEffect(()=>{const p=()=>y({});return document.addEventListener(Q,p),()=>document.removeEventListener(Q,p)},[]),J.jsx(te.div,{...S,ref:C,style:{pointerEvents:g?b?"auto":"none":void 0,...e.style},onFocusCapture:H(e.onFocusCapture,O.onFocusCapture),onBlurCapture:H(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,w.onPointerDownCapture)})});De.displayName=Te;var Ne="DismissableLayerBranch",Fe=c.forwardRef((e,t)=>{const n=c.useContext(me),r=c.useRef(null),a=ee(t,r);return c.useEffect(()=>{const u=r.current;if(u)return n.branches.add(u),()=>{n.branches.delete(u)}},[n.branches]),J.jsx(te.div,{...e,ref:a})});Fe.displayName=Ne;function xe(e,t=globalThis?.document){const n=x(e),r=c.useRef(!1),a=c.useRef(()=>{});return c.useEffect(()=>{const u=o=>{if(o.target&&!r.current){let S=function(){pe(Ae,n,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=S,t.addEventListener("click",a.current,{once:!0})):S()}else t.removeEventListener("click",a.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",u),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Me(e,t=globalThis?.document){const n=x(e),r=c.useRef(!1);return c.useEffect(()=>{const a=u=>{u.target&&!r.current&&pe(ke,n,{originalEvent:u},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ae(){const e=new CustomEvent(Q);document.dispatchEvent(e)}function pe(e,t,n,{discrete:r}){const a=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Re(a,u):a.dispatchEvent(u)}var V=0;function Ft(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oe()),document.body.insertAdjacentElement("beforeend",e[1]??oe()),V++,()=>{V===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),V--}},[])}function oe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var X="focusScope.autoFocusOnMount",Y="focusScope.autoFocusOnUnmount",ie={bubbles:!1,cancelable:!0},Ie="FocusScope",Be=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...s}=e,[o,S]=c.useState(null),l=x(a),f=x(u),h=c.useRef(null),v=ee(t,i=>S(i)),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let i=function(g){if(y.paused||!o)return;const b=g.target;o.contains(b)?h.current=b:R(h.current,{select:!0})},d=function(g){if(y.paused||!o)return;const b=g.relatedTarget;b!==null&&(o.contains(b)||R(h.current,{select:!0}))},m=function(g){if(document.activeElement===document.body)for(const w of g)w.removedNodes.length>0&&R(o)};document.addEventListener("focusin",i),document.addEventListener("focusout",d);const E=new MutationObserver(m);return o&&E.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",i),document.removeEventListener("focusout",d),E.disconnect()}}},[r,o,y.paused]),c.useEffect(()=>{if(o){ue.add(y);const i=document.activeElement;if(!o.contains(i)){const m=new CustomEvent(X,ie);o.addEventListener(X,l),o.dispatchEvent(m),m.defaultPrevented||(We(He(ye(o)),{select:!0}),document.activeElement===i&&R(o))}return()=>{o.removeEventListener(X,l),setTimeout(()=>{const m=new CustomEvent(Y,ie);o.addEventListener(Y,f),o.dispatchEvent(m),m.defaultPrevented||R(i??document.body,{select:!0}),o.removeEventListener(Y,f),ue.remove(y)},0)}}},[o,l,f,y]);const C=c.useCallback(i=>{if(!n&&!r||y.paused)return;const d=i.key==="Tab"&&!i.altKey&&!i.ctrlKey&&!i.metaKey,m=document.activeElement;if(d&&m){const E=i.currentTarget,[g,b]=Ue(E);g&&b?!i.shiftKey&&m===b?(i.preventDefault(),n&&R(g,{select:!0})):i.shiftKey&&m===g&&(i.preventDefault(),n&&R(b,{select:!0})):m===E&&i.preventDefault()}},[n,r,y.paused]);return J.jsx(te.div,{tabIndex:-1,...s,ref:v,onKeyDown:C})});Be.displayName=Ie;function We(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(R(r,{select:t}),document.activeElement!==n)return}function Ue(e){const t=ye(e),n=ce(t,e),r=ce(t.reverse(),e);return[n,r]}function ye(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ce(e,t){for(const n of e)if(!_e(n,{upTo:t}))return n}function _e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function je(e){return e instanceof HTMLInputElement&&"select"in e}function R(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&je(e)&&t&&e.select()}}var ue=Ke();function Ke(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=se(e,t),e.unshift(t)},remove(t){e=se(e,t),e[0]?.resume()}}}function se(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function He(e){return e.filter(t=>t.tagName!=="A")}var Ve=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},A=new WeakMap,I=new WeakMap,B={},z=0,Ee=function(e){return e&&(e.host||Ee(e.parentNode))},Xe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ee(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ye=function(e,t,n,r){var a=Xe(t,Array.isArray(e)?e:[e]);B[n]||(B[n]=new WeakMap);var u=B[n],s=[],o=new Set,S=new Set(a),l=function(h){!h||o.has(h)||(o.add(h),l(h.parentNode))};a.forEach(l);var f=function(h){!h||S.has(h)||Array.prototype.forEach.call(h.children,function(v){if(o.has(v))f(v);else try{var y=v.getAttribute(r),C=y!==null&&y!=="false",i=(A.get(v)||0)+1,d=(u.get(v)||0)+1;A.set(v,i),u.set(v,d),s.push(v),i===1&&C&&I.set(v,!0),d===1&&v.setAttribute(n,"true"),C||v.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",v,m)}})};return f(t),o.clear(),z++,function(){s.forEach(function(h){var v=A.get(h)-1,y=u.get(h)-1;A.set(h,v),u.set(h,y),v||(I.has(h)||h.removeAttribute(r),I.delete(h)),y||h.removeAttribute(n)}),z--,z||(A=new WeakMap,A=new WeakMap,I=new WeakMap,B={})}},xt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=Ve(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),Ye(r,a,n,"aria-hidden")):function(){return null}},P=function(){return P=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},P.apply(this,arguments)};function ge(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function ze(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,u;r<a;r++)(u||!(r in t))&&(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return e.concat(u||Array.prototype.slice.call(t))}var _="right-scroll-bar-position",j="width-before-scroll-bar",Ge="with-scroll-bars-hidden",Ze="--removed-body-scroll-bar-size";function G(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qe(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var Qe=typeof window<"u"?c.useLayoutEffect:c.useEffect,le=new WeakMap;function $e(e,t){var n=qe(null,function(r){return e.forEach(function(a){return G(a,r)})});return Qe(function(){var r=le.get(n);if(r){var a=new Set(r),u=new Set(e),s=n.current;a.forEach(function(o){u.has(o)||G(o,null)}),u.forEach(function(o){a.has(o)||G(o,s)})}le.set(n,e)},[e]),n}function Je(e){return e}function et(e,t){t===void 0&&(t=Je);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var s=t(u,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(u){for(r=!0;n.length;){var s=n;n=[],s.forEach(u)}n={push:function(o){return u(o)},filter:function(){return n}}},assignMedium:function(u){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(u),s=n}var S=function(){var f=s;s=[],f.forEach(u)},l=function(){return Promise.resolve().then(S)};l(),n={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),n}}}};return a}function tt(e){e===void 0&&(e={});var t=et(null);return t.options=P({async:!0,ssr:!1},e),t}var be=function(e){var t=e.sideCar,n=ge(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,P({},n))};be.isSideCarExport=!0;function nt(e,t){return e.useMedium(t),be}var Se=tt(),Z=function(){},K=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Z,onWheelCapture:Z,onTouchMoveCapture:Z}),a=r[0],u=r[1],s=e.forwardProps,o=e.children,S=e.className,l=e.removeScrollBar,f=e.enabled,h=e.shards,v=e.sideCar,y=e.noRelative,C=e.noIsolation,i=e.inert,d=e.allowPinchZoom,m=e.as,E=m===void 0?"div":m,g=e.gapMode,b=ge(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=v,O=$e([n,t]),p=P(P({},b),a);return c.createElement(c.Fragment,null,f&&c.createElement(w,{sideCar:Se,removeScrollBar:l,shards:h,noRelative:y,noIsolation:C,inert:i,setCallbacks:u,allowPinchZoom:!!d,lockRef:n,gapMode:g}),s?c.cloneElement(c.Children.only(o),P(P({},p),{ref:O})):c.createElement(E,P({},p,{className:S,ref:O}),o))});K.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};K.classNames={fullWidth:j,zeroRight:_};var rt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function at(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rt();return t&&e.setAttribute("nonce",t),e}function ot(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function it(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ct=function(){var e=0,t=null;return{add:function(n){e==0&&(t=at())&&(ot(t,n),it(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ut=function(){var e=ct();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},we=function(){var e=ut(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},st={left:0,top:0,right:0,gap:0},q=function(e){return parseInt(e||"",10)||0},lt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[q(n),q(r),q(a)]},dt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return st;var t=lt(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ft=we(),N="data-scroll-locked",vt=function(e,t,n,r){var a=e.left,u=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
import{r as c,j as J}from"./index-BJW5cYpx.js";import{e as ee,P as te,a as H,i as Re}from"./index-DhlSbsoh.js";import{u as x}from"./index-BVWEvTtH.js";function Le(e,t=globalThis?.document){const n=x(e);c.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Te="DismissableLayer",Q="dismissableLayer.update",Ae="dismissableLayer.pointerDownOutside",ke="dismissableLayer.focusOutside",re,me=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),De=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:s,onDismiss:o,...S}=e,l=c.useContext(me),[f,h]=c.useState(null),v=f?.ownerDocument??globalThis?.document,[,y]=c.useState({}),C=ee(t,p=>h(p)),i=Array.from(l.layers),[d]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),m=i.indexOf(d),E=f?i.indexOf(f):-1,g=l.layersWithOutsidePointerEventsDisabled.size>0,b=E>=m,w=xe(p=>{const L=p.target,T=[...l.branches].some(F=>F.contains(L));!b||T||(a?.(p),s?.(p),p.defaultPrevented||o?.())},v),O=Me(p=>{const L=p.target;[...l.branches].some(F=>F.contains(L))||(u?.(p),s?.(p),p.defaultPrevented||o?.())},v);return Le(p=>{E===l.layers.size-1&&(r?.(p),!p.defaultPrevented&&o&&(p.preventDefault(),o()))},v),c.useEffect(()=>{if(f)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(re=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),ae(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=re)}},[f,v,n,l]),c.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),ae())},[f,l]),c.useEffect(()=>{const p=()=>y({});return document.addEventListener(Q,p),()=>document.removeEventListener(Q,p)},[]),J.jsx(te.div,{...S,ref:C,style:{pointerEvents:g?b?"auto":"none":void 0,...e.style},onFocusCapture:H(e.onFocusCapture,O.onFocusCapture),onBlurCapture:H(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,w.onPointerDownCapture)})});De.displayName=Te;var Ne="DismissableLayerBranch",Fe=c.forwardRef((e,t)=>{const n=c.useContext(me),r=c.useRef(null),a=ee(t,r);return c.useEffect(()=>{const u=r.current;if(u)return n.branches.add(u),()=>{n.branches.delete(u)}},[n.branches]),J.jsx(te.div,{...e,ref:a})});Fe.displayName=Ne;function xe(e,t=globalThis?.document){const n=x(e),r=c.useRef(!1),a=c.useRef(()=>{});return c.useEffect(()=>{const u=o=>{if(o.target&&!r.current){let S=function(){pe(Ae,n,l,{discrete:!0})};const l={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=S,t.addEventListener("click",a.current,{once:!0})):S()}else t.removeEventListener("click",a.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",u),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Me(e,t=globalThis?.document){const n=x(e),r=c.useRef(!1);return c.useEffect(()=>{const a=u=>{u.target&&!r.current&&pe(ke,n,{originalEvent:u},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ae(){const e=new CustomEvent(Q);document.dispatchEvent(e)}function pe(e,t,n,{discrete:r}){const a=n.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Re(a,u):a.dispatchEvent(u)}var V=0;function Ft(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oe()),document.body.insertAdjacentElement("beforeend",e[1]??oe()),V++,()=>{V===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),V--}},[])}function oe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var X="focusScope.autoFocusOnMount",Y="focusScope.autoFocusOnUnmount",ie={bubbles:!1,cancelable:!0},Ie="FocusScope",Be=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...s}=e,[o,S]=c.useState(null),l=x(a),f=x(u),h=c.useRef(null),v=ee(t,i=>S(i)),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let i=function(g){if(y.paused||!o)return;const b=g.target;o.contains(b)?h.current=b:R(h.current,{select:!0})},d=function(g){if(y.paused||!o)return;const b=g.relatedTarget;b!==null&&(o.contains(b)||R(h.current,{select:!0}))},m=function(g){if(document.activeElement===document.body)for(const w of g)w.removedNodes.length>0&&R(o)};document.addEventListener("focusin",i),document.addEventListener("focusout",d);const E=new MutationObserver(m);return o&&E.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",i),document.removeEventListener("focusout",d),E.disconnect()}}},[r,o,y.paused]),c.useEffect(()=>{if(o){ue.add(y);const i=document.activeElement;if(!o.contains(i)){const m=new CustomEvent(X,ie);o.addEventListener(X,l),o.dispatchEvent(m),m.defaultPrevented||(We(He(ye(o)),{select:!0}),document.activeElement===i&&R(o))}return()=>{o.removeEventListener(X,l),setTimeout(()=>{const m=new CustomEvent(Y,ie);o.addEventListener(Y,f),o.dispatchEvent(m),m.defaultPrevented||R(i??document.body,{select:!0}),o.removeEventListener(Y,f),ue.remove(y)},0)}}},[o,l,f,y]);const C=c.useCallback(i=>{if(!n&&!r||y.paused)return;const d=i.key==="Tab"&&!i.altKey&&!i.ctrlKey&&!i.metaKey,m=document.activeElement;if(d&&m){const E=i.currentTarget,[g,b]=Ue(E);g&&b?!i.shiftKey&&m===b?(i.preventDefault(),n&&R(g,{select:!0})):i.shiftKey&&m===g&&(i.preventDefault(),n&&R(b,{select:!0})):m===E&&i.preventDefault()}},[n,r,y.paused]);return J.jsx(te.div,{tabIndex:-1,...s,ref:v,onKeyDown:C})});Be.displayName=Ie;function We(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(R(r,{select:t}),document.activeElement!==n)return}function Ue(e){const t=ye(e),n=ce(t,e),r=ce(t.reverse(),e);return[n,r]}function ye(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ce(e,t){for(const n of e)if(!_e(n,{upTo:t}))return n}function _e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function je(e){return e instanceof HTMLInputElement&&"select"in e}function R(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&je(e)&&t&&e.select()}}var ue=Ke();function Ke(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=se(e,t),e.unshift(t)},remove(t){e=se(e,t),e[0]?.resume()}}}function se(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function He(e){return e.filter(t=>t.tagName!=="A")}var Ve=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},A=new WeakMap,I=new WeakMap,B={},z=0,Ee=function(e){return e&&(e.host||Ee(e.parentNode))},Xe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ee(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ye=function(e,t,n,r){var a=Xe(t,Array.isArray(e)?e:[e]);B[n]||(B[n]=new WeakMap);var u=B[n],s=[],o=new Set,S=new Set(a),l=function(h){!h||o.has(h)||(o.add(h),l(h.parentNode))};a.forEach(l);var f=function(h){!h||S.has(h)||Array.prototype.forEach.call(h.children,function(v){if(o.has(v))f(v);else try{var y=v.getAttribute(r),C=y!==null&&y!=="false",i=(A.get(v)||0)+1,d=(u.get(v)||0)+1;A.set(v,i),u.set(v,d),s.push(v),i===1&&C&&I.set(v,!0),d===1&&v.setAttribute(n,"true"),C||v.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",v,m)}})};return f(t),o.clear(),z++,function(){s.forEach(function(h){var v=A.get(h)-1,y=u.get(h)-1;A.set(h,v),u.set(h,y),v||(I.has(h)||h.removeAttribute(r),I.delete(h)),y||h.removeAttribute(n)}),z--,z||(A=new WeakMap,A=new WeakMap,I=new WeakMap,B={})}},xt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=Ve(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),Ye(r,a,n,"aria-hidden")):function(){return null}},P=function(){return P=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(t[u]=n[u])}return t},P.apply(this,arguments)};function ge(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function ze(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,u;r<a;r++)(u||!(r in t))&&(u||(u=Array.prototype.slice.call(t,0,r)),u[r]=t[r]);return e.concat(u||Array.prototype.slice.call(t))}var _="right-scroll-bar-position",j="width-before-scroll-bar",Ge="with-scroll-bars-hidden",Ze="--removed-body-scroll-bar-size";function G(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function qe(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var Qe=typeof window<"u"?c.useLayoutEffect:c.useEffect,le=new WeakMap;function $e(e,t){var n=qe(null,function(r){return e.forEach(function(a){return G(a,r)})});return Qe(function(){var r=le.get(n);if(r){var a=new Set(r),u=new Set(e),s=n.current;a.forEach(function(o){u.has(o)||G(o,null)}),u.forEach(function(o){a.has(o)||G(o,s)})}le.set(n,e)},[e]),n}function Je(e){return e}function et(e,t){t===void 0&&(t=Je);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var s=t(u,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(u){for(r=!0;n.length;){var s=n;n=[],s.forEach(u)}n={push:function(o){return u(o)},filter:function(){return n}}},assignMedium:function(u){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(u),s=n}var S=function(){var f=s;s=[],f.forEach(u)},l=function(){return Promise.resolve().then(S)};l(),n={push:function(f){s.push(f),l()},filter:function(f){return s=s.filter(f),n}}}};return a}function tt(e){e===void 0&&(e={});var t=et(null);return t.options=P({async:!0,ssr:!1},e),t}var be=function(e){var t=e.sideCar,n=ge(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,P({},n))};be.isSideCarExport=!0;function nt(e,t){return e.useMedium(t),be}var Se=tt(),Z=function(){},K=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Z,onWheelCapture:Z,onTouchMoveCapture:Z}),a=r[0],u=r[1],s=e.forwardProps,o=e.children,S=e.className,l=e.removeScrollBar,f=e.enabled,h=e.shards,v=e.sideCar,y=e.noRelative,C=e.noIsolation,i=e.inert,d=e.allowPinchZoom,m=e.as,E=m===void 0?"div":m,g=e.gapMode,b=ge(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=v,O=$e([n,t]),p=P(P({},b),a);return c.createElement(c.Fragment,null,f&&c.createElement(w,{sideCar:Se,removeScrollBar:l,shards:h,noRelative:y,noIsolation:C,inert:i,setCallbacks:u,allowPinchZoom:!!d,lockRef:n,gapMode:g}),s?c.cloneElement(c.Children.only(o),P(P({},p),{ref:O})):c.createElement(E,P({},p,{className:S,ref:O}),o))});K.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};K.classNames={fullWidth:j,zeroRight:_};var rt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function at(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rt();return t&&e.setAttribute("nonce",t),e}function ot(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function it(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ct=function(){var e=0,t=null;return{add:function(n){e==0&&(t=at())&&(ot(t,n),it(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ut=function(){var e=ct();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},we=function(){var e=ut(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},st={left:0,top:0,right:0,gap:0},q=function(e){return parseInt(e||"",10)||0},lt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[q(n),q(r),q(a)]},dt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return st;var t=lt(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ft=we(),N="data-scroll-locked",vt=function(e,t,n,r){var a=e.left,u=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(Ge,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(o,"px ").concat(r,`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/search-default-
|
|
2
|
-
import{u as i,r as c,j as o,_ as m,L as f}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/search-default-Cskx3A9x.js","assets/i18n-C-Z_Hjir.js","assets/index-BJW5cYpx.js","assets/index-BHSCznho.js","assets/index-DhlSbsoh.js","assets/index-BVWEvTtH.js","assets/index-BWUz1Wzh.js","assets/Combination-DrcqRtGA.js","assets/index-BNzds__a.js","assets/search-BvoJUzZe.js","assets/chevron-right-DeeB6Siw.js","assets/index-CkdplsNl.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{u as i,r as c,j as o,_ as m,L as f}from"./index-BJW5cYpx.js";import{d as h,o as u,s as p,l}from"./schemas-BzqjMV9-.js";import{a as v}from"./i18n-C-Z_Hjir.js";import{S as x,J as P}from"./index-CU8t-3_R.js";import{D as b}from"./index-fYADC7x8.js";import{F as j}from"./index-BHSCznho.js";const k=u({type:l("clear-cache"),absolutePath:p()}),y=u({type:l("revalidate")}),g=h("type",[k,y]);function L(e){try{return g.safeParse(JSON.parse(e)).data}catch{return}}function R(){const e=i();return c.useEffect(()=>{const r=new URL("/_ws",window.location.href);r.protocol=r.protocol==="https"?"wss":"ws";const t=new WebSocket(r);return t.addEventListener("message",a=>{const s=L(a.data);s&&(console.log("Received:",s),s.type==="revalidate"&&e.reload())}),()=>{t.close()}},[]),o.jsx(o.Fragment,{})}const S=c.lazy(()=>m(()=>import("./search-default-Cskx3A9x.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])));function _({children:e,dir:r="ltr",theme:t={},search:a,i18n:s}){let n=e;return a?.enabled!==!1&&(n=o.jsx(x,{SearchDialog:S,...a,children:n})),t?.enabled!==!1&&(n=o.jsx(P,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,...t,children:n})),s&&(n=o.jsx(v,{...s,children:n})),o.jsx(b,{dir:r,children:n})}const d={usePathname(){const{path:e}=i();return e},useParams(){const{query:e}=i();return c.useMemo(()=>{const r=new URLSearchParams(e);return Object.fromEntries(Array.from(r.entries()).map(([t,a])=>[t,Array.isArray(a)?a[0]:a]))},[e])},useRouter(){const e=i();return c.useMemo(()=>({push(r){e.push(r)},refresh(){e.push(e.path)}}),[e])},Link({href:e,prefetch:r=!0,...t}){return o.jsx(f,{to:e,unstable_prefetchOnEnter:r,...t,children:t.children})}};function w({children:e,Link:r,Image:t}){return o.jsx(j,{...d,Link:r??d.Link,Image:t??d.Image,children:e})}function E({components:e,...r}){return o.jsx(w,{Link:e?.Link,Image:e?.Image,children:o.jsx(_,{...r,children:r.children})})}function I({children:e}){return o.jsx(E,{children:e})}const U={HotReload:R},W={Provider:I};export{U as export_607cd537d716,W as export_75b87872b5db};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u}from"./index-
|
|
1
|
+
import{c as u}from"./index-BLK6p4I7.js";import"./index-BNzds__a.js";import"./index-BJW5cYpx.js";function d(o){const e=[],n=new Set;for(const t of o)n.has(t.url)||(n.add(t.url),e.push({id:t.url,type:"page",breadcrumbs:t.breadcrumbs,url:t.url,content:t.title})),e.push({id:t.objectID,type:t.content===t.section?"heading":"text",url:t.section_id?`${t.url}#${t.section_id}`:t.url,content:t.content});return e}function f(o){const{indexName:e,onSearch:n,client:t,locale:c,tag:r}=o;return{deps:[e,t,c,r],async search(i){if(i.trim().length===0)return[];const a=n?await n(i,r,c):await t.searchForHits({requests:[{type:"default",indexName:e,query:i,distinct:5,hitsPerPage:10,filters:r?`tag:${r}`:void 0}]}),l=u(i);return d(a.results[0].hits).flatMap(s=>s.type==="page"?{...s,content:l.highlightMarkdown(s.content)}:[])}}}export{f as algoliaClient};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c}from"./index-DhlSbsoh.js";const e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],t=c("check",e);export{t as C};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o}from"./index-
|
|
1
|
+
import{c as o}from"./index-DhlSbsoh.js";const t=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],e=o("chevron-right",t);export{e as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as B,t as v}from"./index-DhlSbsoh.js";import{u as R}from"./i18n-C-Z_Hjir.js";import{m as y}from"./merge-refs-DdSaIw4w.js";import{r as c,j as s}from"./index-BJW5cYpx.js";import{e as z,u as $}from"./index-BWUz1Wzh.js";const F=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Z=B("chevron-left",F);function H(...e){return o=>{e.forEach(t=>{typeof t=="function"?t(o):t!=null&&(t.current=o)})}}const j=c.createContext([]),I=c.createContext({current:null});function L(){return c.useContext(j)[0]}function N(){return c.useContext(j)}function S({containerRef:e,children:o}){return s.jsx(I.Provider,{value:e,children:o})}function E({toc:e,single:o=!1,children:t}){const r=c.useMemo(()=>e.map(n=>n.url.split("#")[1]),[e]);return s.jsx(j.Provider,{value:q(r,o),children:t})}function C({ref:e,onActiveChange:o=()=>null,...t}){const r=c.useContext(I),n=c.useRef(!0),u=c.useRef(null),l=N().indexOf(t.href.slice(1)),a=l!==-1,f=l===0;return c.useEffect(()=>{const i=u.current,d=r.current;d&&i&&f&&z(i,{behavior:n.current?"instant":"smooth",block:"center",inline:"center",scrollMode:"always",boundary:d}),n.current=!1},[r,f]),$(a,o),s.jsx("a",{ref:H(u,e),"data-active":a,...t,children:t.children})}function q(e,o){const t=c.useRef(null),[r,n]=c.useState(()=>[]),u=c.useRef(null),l=c.useEffectEvent(a=>{u.current??={visible:new Set};const f=u.current;for(const i of a)i.isIntersecting?f.visible.add(i.target.id):f.visible.delete(i.target.id);if(f.visible.size===0){const i=a.length>0?a[0]?.rootBounds?.top??0:0;let d,p=-1;for(const g of e){const m=document.getElementById(g);if(!m)continue;const h=Math.abs(i-m.getBoundingClientRect().top);(p===-1||h<p)&&(d=m,p=h)}n(d?[d.id]:[])}else{const i=e.filter(d=>f.visible.has(d));n(o?i.slice(0,1):i)}});return c.useEffect(()=>{if(e.length===0)return;t.current||(t.current=new IntersectionObserver(l,{rootMargin:"0px",threshold:.98}));const a=t.current,f=e.flatMap(i=>document.getElementById(i)??[]);for(const i of f)a.observe(i);return()=>{for(const i of f)a.unobserve(i)}},[e]),c.useEffect(()=>()=>{t.current?.disconnect(),t.current=null},[]),r}const U=Object.freeze(Object.defineProperty({__proto__:null,AnchorProvider:E,ScrollProvider:S,TOCItem:C,useActiveAnchor:L,useActiveAnchors:N},Symbol.toStringTag,{value:"Module"})),M=c.createContext([]);function k(){return c.use(M)}const{useActiveAnchor:ee,useActiveAnchors:V}=U;function te({toc:e,children:o,...t}){return s.jsx(M,{value:e,children:s.jsx(E,{toc:e,...t,children:o})})}function re({ref:e,className:o,...t}){const r=c.useRef(null);return s.jsx("div",{ref:y(r,e),className:v("relative min-h-0 text-sm ms-px overflow-auto [scrollbar-width:none] mask-[linear-gradient(to_bottom,transparent,white_16px,white_calc(100%-16px),transparent)] py-3",o),...t,children:s.jsx(S,{containerRef:r,children:t.children})})}function P({containerRef:e,...o}){const t=c.useRef(null),r=V();function n(l){const a=t.current;a&&(a.style.setProperty("--fd-top",`${l[0]}px`),a.style.setProperty("--fd-height",`${l[1]}px`))}const u=c.useEffectEvent(()=>{e.current&&n(T(e.current,r))});return c.useEffect(()=>{if(!e.current)return;const l=e.current,a=new ResizeObserver(u);return a.observe(l),()=>{a.disconnect()}},[e]),$(r,()=>{e.current&&n(T(e.current,r))}),s.jsx("div",{ref:t,"data-hidden":r.length===0,...o})}function T(e,o){if(o.length===0||e.clientHeight===0)return[0,0];let t=Number.MAX_VALUE,r=0;for(const n of o){const u=e.querySelector(`a[href="#${n}"]`);if(!u)continue;const l=getComputedStyle(u);t=Math.min(t,u.offsetTop+parseFloat(l.paddingTop)),r=Math.max(r,u.offsetTop+u.clientHeight-parseFloat(l.paddingBottom))}return[t,r-t]}function ne({ref:e,className:o,...t}){const r=c.useRef(null),n=k(),{text:u}=R();return n.length===0?s.jsx("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:u.tocNoHeadings}):s.jsxs(s.Fragment,{children:[s.jsx(P,{containerRef:r,className:"absolute top-(--fd-top) h-(--fd-height) w-0.5 rounded-e-sm bg-fd-primary transition-[top,height] ease-linear"}),s.jsx("div",{ref:y(e,r),className:v("flex flex-col border-s border-fd-foreground/10",o),...t,children:n.map(l=>s.jsx(W,{item:l},l.url))})]})}function W({item:e}){return s.jsx(C,{href:e.url,className:v("prose py-1.5 text-sm text-fd-muted-foreground transition-colors wrap-anywhere first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",e.depth<=2&&"ps-3",e.depth===3&&"ps-6",e.depth>=4&&"ps-8"),children:e.title})}function se({ref:e,className:o,...t}){const r=c.useRef(null),n=k(),{text:u}=R(),[l,a]=c.useState();return c.useEffect(()=>{if(!r.current)return;const f=r.current;function i(){if(f.clientHeight===0)return;let p=0,g=0;const m=[];for(let h=0;h<n.length;h++){const x=f.querySelector(`a[href="#${n[h].url.slice(1)}"]`);if(!x)continue;const A=getComputedStyle(x),w=b(n[h].depth)+1,_=x.offsetTop+parseFloat(A.paddingTop),O=x.offsetTop+x.clientHeight-parseFloat(A.paddingBottom);p=Math.max(w,p),g=Math.max(g,O),m.push(`${h===0?"M":"L"}${w} ${_}`),m.push(`L${w} ${O}`)}a({path:m.join(" "),width:p+1,height:g})}const d=new ResizeObserver(i);return i(),d.observe(f),()=>{d.disconnect()}},[n]),n.length===0?s.jsx("div",{className:"rounded-lg border bg-fd-card p-3 text-xs text-fd-muted-foreground",children:u.tocNoHeadings}):s.jsxs(s.Fragment,{children:[l&&s.jsx("div",{className:"absolute start-0 top-0 rtl:-scale-x-100",style:{width:l.width,height:l.height,maskImage:`url("data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${l.width} ${l.height}"><path d="${l.path}" stroke="black" stroke-width="1" fill="none" /></svg>`)}")`},children:s.jsx(P,{containerRef:r,className:"absolute w-full top-(--fd-top) h-(--fd-height) bg-fd-primary transition-[top,height]"})}),s.jsx("div",{ref:y(r,e),className:v("flex flex-col",o),...t,children:n.map((f,i)=>s.jsx(D,{item:f,upper:n[i-1]?.depth,lower:n[i+1]?.depth},f.url))})]})}function X(e){return e<=2?14:e===3?26:36}function b(e){return e>=3?10:0}function D({item:e,upper:o=e.depth,lower:t=e.depth}){const r=b(e.depth),n=b(o),u=b(t);return s.jsxs(C,{href:e.url,style:{paddingInlineStart:X(e.depth)},className:"prose relative py-1.5 text-sm text-fd-muted-foreground hover:text-fd-accent-foreground transition-colors wrap-anywhere first:pt-0 last:pb-0 data-[active=true]:text-fd-primary",children:[r!==n&&s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",className:"absolute -top-1.5 start-0 size-4 rtl:-scale-x-100",children:s.jsx("line",{x1:n,y1:"0",x2:r,y2:"12",className:"stroke-fd-foreground/10",strokeWidth:"1"})}),s.jsx("div",{className:v("absolute inset-y-0 w-px bg-fd-foreground/10",r!==n&&"top-1.5",r!==u&&"bottom-1.5"),style:{insetInlineStart:r}}),e.title]})}export{Z as C,te as T,re as a,se as b,ne as c,ee as d,L as e,k as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as r,C as o,I as e,E as t}from"./index-
|
|
1
|
+
import{S as r,C as o,I as e,E as t}from"./index-BJW5cYpx.js";const n={Children:o,Slot:r},s={ErrorBoundary:t,INTERNAL_ServerRouter:e};export{n as export_34e4795b7fc5,s as export_6d786e16fc6b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as d}from"./index-CocCloJv.js";import{T as B}from"./tree-CLDcGuhY.js";import{r as x,j as e}from"./index-DX0XjS82.js";import{b as H,S as U,P as j,L as T,a as L,c as Y,d as G,e as J,f as K,g as Q,h as W,i as I,j as X,k as P,C as Z,l as ee,m as te,n as re,o as ae,u as w,p as se,q as ne,r as ie,s as de,t as oe,v as ce,w as le}from"./scroll-area-GQGCCFVL.js";import{b,c as me}from"./index-gGAeHuu7.js";import{m as fe,L as C}from"./merge-refs-nGdaa77n.js";import{P as ue,a as he,b as xe}from"./popover-b1EinR7C.js";import"./i18n-BolcaqTL.js";import"./index-DyrOoaEv.js";import{a as F}from"./index-Bu4rAUmg.js";import{C as pe}from"./check-CO9o5HX9.js";function ge({enabled:t=!0}){const[a,r]=x.useState();return x.useEffect(()=>{if(!t)return;const s=()=>{r(window.scrollY<10)};return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[t]),a}const k=me("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{link:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors",button:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"},highlight:{true:"data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:start-2.5"}}}),{useSidebar:D}=H;function be(t){return e.jsx(Y,{...t})}function ve({footer:t,banner:a,collapsible:r=!0,components:s,...n}){const{menuItems:l,slots:i,props:{tabs:o,nav:f,tabMode:g}}=S(),c=l.filter(m=>m.type==="icon"),p=e.jsxs(we,{children:[l.filter(m=>m.type!=="icon").map((m,h,y)=>e.jsx(Te,{item:m,className:d(h===y.length-1&&"mb-4")},h)),e.jsx(ke,{...s})]});return e.jsxs(e.Fragment,{children:[e.jsxs(Ne,{...n,children:[e.jsxs("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[e.jsxs("div",{className:"flex",children:[i.navTitle&&e.jsx(i.navTitle,{className:"inline-flex text-[0.9375rem] items-center gap-2.5 font-medium me-auto"}),f?.children,r&&e.jsx(je,{className:d(b({color:"ghost",size:"icon-sm",className:"mb-auto text-fd-muted-foreground"})),children:e.jsx(j,{})})]}),i.searchTrigger&&e.jsx(i.searchTrigger.full,{hideIfDisabled:!0}),o.length>0&&g==="auto"&&e.jsx(z,{tabs:o}),a]}),p,(i.languageSelect||c.length>0||i.themeSwitch||t)&&e.jsxs("div",{className:"flex flex-col border-t p-4 pt-2 empty:hidden",children:[e.jsxs("div",{className:"flex text-fd-muted-foreground items-center empty:hidden",children:[i.languageSelect&&e.jsx(i.languageSelect.root,{children:e.jsx(T,{className:"size-4.5"})}),c.map((m,h)=>e.jsx(L,{item:m,className:d(b({size:"icon-sm",color:"ghost"})),"aria-label":m.label,children:m.icon},h)),i.themeSwitch&&e.jsx(i.themeSwitch,{className:"ms-auto p-0"})]}),t]})]}),e.jsxs(Se,{children:[e.jsxs("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[e.jsxs("div",{className:"flex text-fd-muted-foreground items-center gap-1.5",children:[e.jsx("div",{className:"flex flex-1",children:c.map((m,h)=>e.jsx(L,{item:m,className:d(b({size:"icon-sm",color:"ghost",className:"p-2"})),"aria-label":m.label,children:m.icon},h))}),i.languageSelect&&e.jsxs(i.languageSelect.root,{children:[e.jsx(T,{className:"size-4.5"}),e.jsx(i.languageSelect.text,{})]}),i.themeSwitch&&e.jsx(i.themeSwitch,{className:"p-0"}),e.jsx(E,{className:d(b({color:"ghost",size:"icon-sm",className:"p-2"})),children:e.jsx(j,{})})]}),o.length>0&&e.jsx(z,{tabs:o}),a]}),p,e.jsx("div",{className:"flex flex-col border-t p-4 pt-2 empty:hidden",children:t})]})]})}function $(t){return e.jsx(re,{...t})}function je(t){return e.jsx(I,{...t})}function we(t){return e.jsx(G,{...t,className:d("min-h-0 flex-1",t.className),children:e.jsx(J,{className:"*:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain",style:{maskImage:"linear-gradient(to bottom, transparent, white 12px, white calc(100% - 12px), transparent)"},children:t.children})})}function E(t){return e.jsx(U,{...t})}function Ne({ref:t,className:a,children:r,...s}){const n=x.useRef(null);return e.jsx(W,{children:({collapsed:l,hovered:i,ref:o,...f})=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-sidebar-placeholder":"",className:"sticky top-(--fd-docs-row-1) z-20 [grid-area:sidebar] pointer-events-none *:pointer-events-auto h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] md:layout:[--fd-sidebar-width:268px] max-md:hidden",children:[l&&e.jsx("div",{className:"absolute start-0 inset-y-0 w-4",...f}),e.jsx("aside",{id:"nd-sidebar",ref:fe(n,t,o),"data-collapsed":l,"data-hovered":l&&i,className:d("absolute flex flex-col w-full start-0 inset-y-0 items-end bg-fd-card text-sm border-e duration-250 *:w-(--fd-sidebar-width)",l&&["inset-y-2 rounded-xl transition-transform border w-(--fd-sidebar-width)",i?"shadow-lg translate-x-2 rtl:-translate-x-2":"-translate-x-(--fd-sidebar-width) rtl:translate-x-full"],n.current&&n.current.getAttribute("data-collapsed")==="true"!==l&&"transition-[width,inset-block,translate,background-color]",a),...s,...f,children:r})]}),e.jsxs("div",{"data-sidebar-panel":"",className:d("fixed flex top-[calc(--spacing(4)+var(--fd-docs-row-3))] start-4 shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10",(!l||i)&&"pointer-events-none opacity-0"),children:[e.jsx(I,{className:d(b({color:"ghost",size:"icon-sm",className:"rounded-lg"})),children:e.jsx(j,{})}),e.jsx(X,{className:"rounded-lg",hideIfDisabled:!0})]})]})})}function Se({children:t,className:a,...r}){return e.jsxs(e.Fragment,{children:[e.jsx(ee,{className:"fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out"}),e.jsx(te,{className:d("fixed text-[0.9375rem] flex flex-col shadow-lg border-s end-0 inset-y-0 w-[85%] max-w-[380px] z-40 bg-fd-background data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out",a),...r,children:t})]})}function ye({className:t,style:a,children:r,...s}){const n=w();return e.jsx(de,{className:d("inline-flex items-center gap-2 mb-1 px-2 mt-6 empty:mb-0 [&_svg]:size-4 [&_svg]:shrink-0",n===0&&"first:mt-0",t),style:{paddingInlineStart:N(n),...a},...s,children:r})}function M({className:t,style:a,children:r,...s}){const n=w();return e.jsx(oe,{className:d(k({variant:"link",highlight:n>=1}),t),style:{paddingInlineStart:N(n),...a},...s,children:r})}function O({className:t,style:a,...r}){const{depth:s,collapsible:n}=ne();return e.jsx(ie,{className:d(k({variant:n?"button":null}),"w-full",t),style:{paddingInlineStart:N(s-1),...a},...r,children:r.children})}function R({className:t,style:a,...r}){const s=w();return e.jsx(se,{className:d(k({variant:"link",highlight:s>1}),"w-full",t),style:{paddingInlineStart:N(s-1),...a},...r,children:r.children})}function _({className:t,children:a,...r}){return e.jsx(ae,{className:d("relative flex flex-col gap-0.5 *:first:mt-0.5",w()===1&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5",t),...r,children:a})}function z({tabs:t,placeholder:a,...r}){const[s,n]=x.useState(!1),{closeOnRedirect:l}=D(),i=F(),o=x.useMemo(()=>t.findLast(c=>P(c,i)),[t,i]),f=()=>{l.current=!1,n(!1)},g=o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"size-9 shrink-0 empty:hidden md:size-5",children:o.icon}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:o.title}),e.jsx("p",{className:"text-sm text-fd-muted-foreground empty:hidden md:hidden",children:o.description})]})]}):a;return e.jsxs(ue,{open:s,onOpenChange:n,children:[g&&e.jsxs(he,{...r,className:d("flex items-center gap-2 rounded-lg p-2 border bg-fd-secondary/50 text-start text-fd-secondary-foreground transition-colors hover:bg-fd-accent data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",r.className),children:[g,e.jsx(Z,{className:"shrink-0 ms-auto size-4 text-fd-muted-foreground"})]}),e.jsx(xe,{className:"flex flex-col gap-1 w-(--radix-popover-trigger-width) p-1 fd-scroll-container",children:t.map(c=>{const p=o&&c.url===o.url;if(!(!p&&c.unlisted))return e.jsxs(C,{href:c.url,onClick:f,...c.props,className:d("flex items-center gap-2 rounded-lg p-1.5 hover:bg-fd-accent hover:text-fd-accent-foreground",c.props?.className),children:[e.jsx("div",{className:"shrink-0 size-9 md:mb-auto md:size-5 empty:hidden",children:c.icon}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium leading-none",children:c.title}),e.jsx("p",{className:"text-[0.8125rem] text-fd-muted-foreground mt-1 empty:hidden",children:c.description})]}),e.jsx(pe,{className:d("shrink-0 ms-auto size-3.5 text-fd-primary",!p&&"invisible")})]},c.url)})})]})}function N(t){return`calc(${2+3*t} * var(--spacing))`}const ke=Q({SidebarFolder:$,SidebarFolderContent:_,SidebarFolderLink:R,SidebarFolderTrigger:O,SidebarItem:M,SidebarSeparator:ye}),Te=K({SidebarFolder:$,SidebarFolderContent:_,SidebarFolderLink:R,SidebarFolderTrigger:O,SidebarItem:M});function Le(t){const{isNavTransparent:a,slots:r,props:{nav:s}}=S();return s?.component?s.component:e.jsxs("header",{id:"nd-subnav","data-transparent":a,...t,className:d("[grid-area:header] sticky top-(--fd-docs-row-1) z-30 flex items-center ps-4 pe-2.5 border-b transition-colors backdrop-blur-sm h-(--fd-header-height) md:hidden max-md:layout:[--fd-header-height:--spacing(14)] data-[transparent=false]:bg-fd-background/80",t.className),children:[r.navTitle&&e.jsx(r.navTitle,{className:"inline-flex items-center gap-2.5 font-semibold"}),e.jsx("div",{className:"flex-1",children:s?.children}),r.searchTrigger&&e.jsx(r.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),r.sidebar&&e.jsx(r.sidebar.trigger,{className:d(b({color:"ghost",size:"icon-sm",className:"p-2"})),children:e.jsx(j,{})})]})}function ze(t){const{slots:a}=S(),{collapsed:r}=a.sidebar?.useSidebar?.()??{};return e.jsx("div",{id:"nd-docs-layout","data-sidebar-collapsed":r,...t,style:{gridTemplate:`"sidebar sidebar header toc toc"
|
|
1
|
+
import{t as d}from"./index-DhlSbsoh.js";import{T as B}from"./tree-DMBvckeu.js";import{b as H,S as U,P as j,L as T,a as L,c as Y,d as G,e as J,f as K,g as Q,h as W,i as I,j as X,k as P,C as Z,l as ee,m as te,n as re,o as ae,u as w,p as se,q as ne,r as ie,s as de,t as oe,v as ce,w as le}from"./scroll-area-CHp-1KMj.js";import{r as x,j as e}from"./index-BJW5cYpx.js";import{b,c as me}from"./index-BVWEvTtH.js";import{m as fe,L as C}from"./merge-refs-DdSaIw4w.js";import{P as ue,a as he,b as xe}from"./popover-D1yTQ4pA.js";import"./i18n-C-Z_Hjir.js";import"./index-CU8t-3_R.js";import{a as F}from"./index-BHSCznho.js";import{C as pe}from"./check-BbfQleye.js";function ge({enabled:t=!0}){const[a,r]=x.useState();return x.useEffect(()=>{if(!t)return;const s=()=>{r(window.scrollY<10)};return s(),window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)}},[t]),a}const k=me("relative flex flex-row items-center gap-2 rounded-lg p-2 text-start text-fd-muted-foreground wrap-anywhere [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{link:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none data-[active=true]:bg-fd-primary/10 data-[active=true]:text-fd-primary data-[active=true]:hover:transition-colors",button:"transition-colors hover:bg-fd-accent/50 hover:text-fd-accent-foreground/80 hover:transition-none"},highlight:{true:"data-[active=true]:before:content-[''] data-[active=true]:before:bg-fd-primary data-[active=true]:before:absolute data-[active=true]:before:w-px data-[active=true]:before:inset-y-2.5 data-[active=true]:before:start-2.5"}}}),{useSidebar:D}=H;function be(t){return e.jsx(Y,{...t})}function ve({footer:t,banner:a,collapsible:r=!0,components:s,...n}){const{menuItems:l,slots:i,props:{tabs:o,nav:f,tabMode:g}}=S(),c=l.filter(m=>m.type==="icon"),p=e.jsxs(we,{children:[l.filter(m=>m.type!=="icon").map((m,h,y)=>e.jsx(Te,{item:m,className:d(h===y.length-1&&"mb-4")},h)),e.jsx(ke,{...s})]});return e.jsxs(e.Fragment,{children:[e.jsxs(Ne,{...n,children:[e.jsxs("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[e.jsxs("div",{className:"flex",children:[i.navTitle&&e.jsx(i.navTitle,{className:"inline-flex text-[0.9375rem] items-center gap-2.5 font-medium me-auto"}),f?.children,r&&e.jsx(je,{className:d(b({color:"ghost",size:"icon-sm",className:"mb-auto text-fd-muted-foreground"})),children:e.jsx(j,{})})]}),i.searchTrigger&&e.jsx(i.searchTrigger.full,{hideIfDisabled:!0}),o.length>0&&g==="auto"&&e.jsx(z,{tabs:o}),a]}),p,(i.languageSelect||c.length>0||i.themeSwitch||t)&&e.jsxs("div",{className:"flex flex-col border-t p-4 pt-2 empty:hidden",children:[e.jsxs("div",{className:"flex text-fd-muted-foreground items-center empty:hidden",children:[i.languageSelect&&e.jsx(i.languageSelect.root,{children:e.jsx(T,{className:"size-4.5"})}),c.map((m,h)=>e.jsx(L,{item:m,className:d(b({size:"icon-sm",color:"ghost"})),"aria-label":m.label,children:m.icon},h)),i.themeSwitch&&e.jsx(i.themeSwitch,{className:"ms-auto p-0"})]}),t]})]}),e.jsxs(Se,{children:[e.jsxs("div",{className:"flex flex-col gap-3 p-4 pb-2",children:[e.jsxs("div",{className:"flex text-fd-muted-foreground items-center gap-1.5",children:[e.jsx("div",{className:"flex flex-1",children:c.map((m,h)=>e.jsx(L,{item:m,className:d(b({size:"icon-sm",color:"ghost",className:"p-2"})),"aria-label":m.label,children:m.icon},h))}),i.languageSelect&&e.jsxs(i.languageSelect.root,{children:[e.jsx(T,{className:"size-4.5"}),e.jsx(i.languageSelect.text,{})]}),i.themeSwitch&&e.jsx(i.themeSwitch,{className:"p-0"}),e.jsx(E,{className:d(b({color:"ghost",size:"icon-sm",className:"p-2"})),children:e.jsx(j,{})})]}),o.length>0&&e.jsx(z,{tabs:o}),a]}),p,e.jsx("div",{className:"flex flex-col border-t p-4 pt-2 empty:hidden",children:t})]})]})}function $(t){return e.jsx(re,{...t})}function je(t){return e.jsx(I,{...t})}function we(t){return e.jsx(G,{...t,className:d("min-h-0 flex-1",t.className),children:e.jsx(J,{className:"*:flex! *:flex-col! *:gap-0.5! p-4 overscroll-contain",style:{maskImage:"linear-gradient(to bottom, transparent, white 12px, white calc(100% - 12px), transparent)"},children:t.children})})}function E(t){return e.jsx(U,{...t})}function Ne({ref:t,className:a,children:r,...s}){const n=x.useRef(null);return e.jsx(W,{children:({collapsed:l,hovered:i,ref:o,...f})=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{"data-sidebar-placeholder":"",className:"sticky top-(--fd-docs-row-1) z-20 [grid-area:sidebar] pointer-events-none *:pointer-events-auto h-[calc(var(--fd-docs-height)-var(--fd-docs-row-1))] md:layout:[--fd-sidebar-width:268px] max-md:hidden",children:[l&&e.jsx("div",{className:"absolute start-0 inset-y-0 w-4",...f}),e.jsx("aside",{id:"nd-sidebar",ref:fe(n,t,o),"data-collapsed":l,"data-hovered":l&&i,className:d("absolute flex flex-col w-full start-0 inset-y-0 items-end bg-fd-card text-sm border-e duration-250 *:w-(--fd-sidebar-width)",l&&["inset-y-2 rounded-xl transition-transform border w-(--fd-sidebar-width)",i?"shadow-lg translate-x-2 rtl:-translate-x-2":"-translate-x-(--fd-sidebar-width) rtl:translate-x-full"],n.current&&n.current.getAttribute("data-collapsed")==="true"!==l&&"transition-[width,inset-block,translate,background-color]",a),...s,...f,children:r})]}),e.jsxs("div",{"data-sidebar-panel":"",className:d("fixed flex top-[calc(--spacing(4)+var(--fd-docs-row-3))] start-4 shadow-lg transition-opacity rounded-xl p-0.5 border bg-fd-muted text-fd-muted-foreground z-10",(!l||i)&&"pointer-events-none opacity-0"),children:[e.jsx(I,{className:d(b({color:"ghost",size:"icon-sm",className:"rounded-lg"})),children:e.jsx(j,{})}),e.jsx(X,{className:"rounded-lg",hideIfDisabled:!0})]})]})})}function Se({children:t,className:a,...r}){return e.jsxs(e.Fragment,{children:[e.jsx(ee,{className:"fixed z-40 inset-0 backdrop-blur-xs data-[state=open]:animate-fd-fade-in data-[state=closed]:animate-fd-fade-out"}),e.jsx(te,{className:d("fixed text-[0.9375rem] flex flex-col shadow-lg border-s end-0 inset-y-0 w-[85%] max-w-[380px] z-40 bg-fd-background data-[state=open]:animate-fd-sidebar-in data-[state=closed]:animate-fd-sidebar-out",a),...r,children:t})]})}function ye({className:t,style:a,children:r,...s}){const n=w();return e.jsx(de,{className:d("inline-flex items-center gap-2 mb-1 px-2 mt-6 empty:mb-0 [&_svg]:size-4 [&_svg]:shrink-0",n===0&&"first:mt-0",t),style:{paddingInlineStart:N(n),...a},...s,children:r})}function M({className:t,style:a,children:r,...s}){const n=w();return e.jsx(oe,{className:d(k({variant:"link",highlight:n>=1}),t),style:{paddingInlineStart:N(n),...a},...s,children:r})}function O({className:t,style:a,...r}){const{depth:s,collapsible:n}=ne();return e.jsx(ie,{className:d(k({variant:n?"button":null}),"w-full",t),style:{paddingInlineStart:N(s-1),...a},...r,children:r.children})}function R({className:t,style:a,...r}){const s=w();return e.jsx(se,{className:d(k({variant:"link",highlight:s>1}),"w-full",t),style:{paddingInlineStart:N(s-1),...a},...r,children:r.children})}function _({className:t,children:a,...r}){return e.jsx(ae,{className:d("relative flex flex-col gap-0.5 *:first:mt-0.5",w()===1&&"before:content-[''] before:absolute before:w-px before:inset-y-1 before:bg-fd-border before:start-2.5",t),...r,children:a})}function z({tabs:t,placeholder:a,...r}){const[s,n]=x.useState(!1),{closeOnRedirect:l}=D(),i=F(),o=x.useMemo(()=>t.findLast(c=>P(c,i)),[t,i]),f=()=>{l.current=!1,n(!1)},g=o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"size-9 shrink-0 empty:hidden md:size-5",children:o.icon}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:o.title}),e.jsx("p",{className:"text-sm text-fd-muted-foreground empty:hidden md:hidden",children:o.description})]})]}):a;return e.jsxs(ue,{open:s,onOpenChange:n,children:[g&&e.jsxs(he,{...r,className:d("flex items-center gap-2 rounded-lg p-2 border bg-fd-secondary/50 text-start text-fd-secondary-foreground transition-colors hover:bg-fd-accent data-[state=open]:bg-fd-accent data-[state=open]:text-fd-accent-foreground",r.className),children:[g,e.jsx(Z,{className:"shrink-0 ms-auto size-4 text-fd-muted-foreground"})]}),e.jsx(xe,{className:"flex flex-col gap-1 w-(--radix-popover-trigger-width) p-1 fd-scroll-container",children:t.map(c=>{const p=o&&c.url===o.url;if(!(!p&&c.unlisted))return e.jsxs(C,{href:c.url,onClick:f,...c.props,className:d("flex items-center gap-2 rounded-lg p-1.5 hover:bg-fd-accent hover:text-fd-accent-foreground",c.props?.className),children:[e.jsx("div",{className:"shrink-0 size-9 md:mb-auto md:size-5 empty:hidden",children:c.icon}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium leading-none",children:c.title}),e.jsx("p",{className:"text-[0.8125rem] text-fd-muted-foreground mt-1 empty:hidden",children:c.description})]}),e.jsx(pe,{className:d("shrink-0 ms-auto size-3.5 text-fd-primary",!p&&"invisible")})]},c.url)})})]})}function N(t){return`calc(${2+3*t} * var(--spacing))`}const ke=Q({SidebarFolder:$,SidebarFolderContent:_,SidebarFolderLink:R,SidebarFolderTrigger:O,SidebarItem:M,SidebarSeparator:ye}),Te=K({SidebarFolder:$,SidebarFolderContent:_,SidebarFolderLink:R,SidebarFolderTrigger:O,SidebarItem:M});function Le(t){const{isNavTransparent:a,slots:r,props:{nav:s}}=S();return s?.component?s.component:e.jsxs("header",{id:"nd-subnav","data-transparent":a,...t,className:d("[grid-area:header] sticky top-(--fd-docs-row-1) z-30 flex items-center ps-4 pe-2.5 border-b transition-colors backdrop-blur-sm h-(--fd-header-height) md:hidden max-md:layout:[--fd-header-height:--spacing(14)] data-[transparent=false]:bg-fd-background/80",t.className),children:[r.navTitle&&e.jsx(r.navTitle,{className:"inline-flex items-center gap-2.5 font-semibold"}),e.jsx("div",{className:"flex-1",children:s?.children}),r.searchTrigger&&e.jsx(r.searchTrigger.sm,{hideIfDisabled:!0,className:"p-2"}),r.sidebar&&e.jsx(r.sidebar.trigger,{className:d(b({color:"ghost",size:"icon-sm",className:"p-2"})),children:e.jsx(j,{})})]})}function ze(t){const{slots:a}=S(),{collapsed:r}=a.sidebar?.useSidebar?.()??{};return e.jsx("div",{id:"nd-docs-layout","data-sidebar-collapsed":r,...t,style:{gridTemplate:`"sidebar sidebar header toc toc"
|
|
2
2
|
"sidebar sidebar toc-popover toc toc"
|
|
3
3
|
"sidebar sidebar main toc toc" 1fr / minmax(min-content, 1fr) var(--fd-sidebar-col) minmax(0, calc(var(--fd-layout-width,97rem) - var(--fd-sidebar-width) - var(--fd-toc-width))) var(--fd-toc-width) minmax(min-content, 1fr)`,"--fd-docs-row-1":"var(--fd-banner-height, 0px)","--fd-docs-row-2":"calc(var(--fd-docs-row-1) + var(--fd-header-height))","--fd-docs-row-3":"calc(var(--fd-docs-row-2) + var(--fd-toc-popover-height))","--fd-sidebar-col":r?"0px":"var(--fd-sidebar-width)",...t.style},className:d("grid transition-[grid-template-columns] overflow-x-clip min-h-(--fd-docs-height) [--fd-docs-height:100dvh] [--fd-header-height:0px] [--fd-toc-popover-height:0px] [--fd-sidebar-width:0px] [--fd-toc-width:0px]",t.className),children:t.children})}const{useProvider:Ie}=le({useProps(){return S().props}}),A=x.createContext(null);function S(){const t=x.use(A);if(!t)throw new Error("Please use <DocsPage /> (`fumadocs-ui/layouts/docs/page`) under <DocsLayout /> (`fumadocs-ui/layouts/docs`).");return t}function qe(t){const{nav:{enabled:a=!0,transparentMode:r="none"}={},sidebar:{defaultOpenLevel:s,prefetch:n,...l}={},slots:i,tabs:o,tabMode:f="auto",tree:g,containerProps:c,children:p}=t,m=ge({enabled:r==="top"})??!0,h=r==="top"?m:r==="always",{baseSlots:y,baseProps:V}=Ie(t),q=ce(t),u={...y,header:a?i?.header??Le:void 0,container:i?.container??ze,sidebar:i?.sidebar??{provider:be,root:ve,trigger:E,useSidebar:D}};let v=e.jsxs(e.Fragment,{children:[u.header&&e.jsx(u.header,{}),u.sidebar&&e.jsx(u.sidebar.root,{...l}),f==="top"&&o.length>0&&e.jsx(Pe,{tabs:o,className:"z-10 bg-fd-background border-b px-6 pt-3 xl:px-8 max-md:hidden"}),p]});return u.container&&(v=e.jsx(u.container,{...c,children:v})),u.sidebar&&(v=e.jsx(u.sidebar.provider,{defaultOpenLevel:s,prefetch:n,children:v})),e.jsx(B,{tree:g,children:e.jsx(A,{value:{props:{tabMode:f,tabs:o,...V},isNavTransparent:h,slots:u,...q},children:v})})}function Pe({tabs:t,...a}){const r=F(),s=x.useMemo(()=>t.findLast(n=>P(n,r)),[t,r]);return e.jsx("div",{...a,className:d("flex flex-row items-end gap-6 overflow-auto [grid-area:main]",a.className),children:t.map((n,l)=>e.jsx(C,{href:n.url,className:d("inline-flex border-b-2 border-transparent transition-colors items-center pb-1.5 font-medium gap-2 text-fd-muted-foreground text-sm text-nowrap hover:text-fd-accent-foreground",n.unlisted&&s!==n&&"hidden",s===n&&"border-fd-primary text-fd-primary"),children:n.title},l))})}export{qe as L,S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as g,a as M,u as S,b as $,d as D,e as O,f as L,g as k,t as F}from"./index-
|
|
1
|
+
import{P as g,a as M,u as S,b as $,d as D,e as O,f as L,g as k,t as F}from"./index-DhlSbsoh.js";import{r as n,j as r}from"./index-BJW5cYpx.js";function j(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function K(e,t,s=!1){return e=j(e),t=j(t),e===t||s&&t.startsWith(`${e}/`)}var f="Collapsible",[B]=k(f),[G,v]=B(f),A=n.forwardRef((e,t)=>{const{__scopeCollapsible:s,open:a,defaultOpen:o,disabled:c,onOpenChange:l,...b}=e,[p,d]=S({prop:a,defaultProp:o??!1,onChange:l,caller:f});return r.jsx(G,{scope:s,disabled:c,contentId:$(),open:p,onOpenToggle:n.useCallback(()=>d(C=>!C),[d]),children:r.jsx(g.div,{"data-state":N(p),"data-disabled":c?"":void 0,...b,ref:t})})});A.displayName=f;var I="CollapsibleTrigger",T=n.forwardRef((e,t)=>{const{__scopeCollapsible:s,...a}=e,o=v(I,s);return r.jsx(g.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":N(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...a,ref:t,onClick:M(e.onClick,o.onOpenToggle)})});T.displayName=I;var x="CollapsibleContent",R=n.forwardRef((e,t)=>{const{forceMount:s,...a}=e,o=v(x,e.__scopeCollapsible);return r.jsx(D,{present:s||o.open,children:({present:c})=>r.jsx(W,{...a,ref:t,present:c})})});R.displayName=x;var W=n.forwardRef((e,t)=>{const{__scopeCollapsible:s,present:a,children:o,...c}=e,l=v(x,s),[b,p]=n.useState(a),d=n.useRef(null),C=O(t,d),y=n.useRef(0),h=y.current,w=n.useRef(0),E=w.current,m=l.open||b,P=n.useRef(m),u=n.useRef(void 0);return n.useEffect(()=>{const i=requestAnimationFrame(()=>P.current=!1);return()=>cancelAnimationFrame(i)},[]),L(()=>{const i=d.current;if(i){u.current=u.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const _=i.getBoundingClientRect();y.current=_.height,w.current=_.width,P.current||(i.style.transitionDuration=u.current.transitionDuration,i.style.animationName=u.current.animationName),p(a)}},[l.open,a]),r.jsx(g.div,{"data-state":N(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!m,...c,ref:C,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:m&&o})});function N(e){return e?"open":"closed"}var q=A;const Q=q,U=T,z=n.forwardRef(({children:e,...t},s)=>{const[a,o]=n.useState(!1);return n.useEffect(()=>{o(!0)},[]),r.jsx(R,{ref:s,...t,className:F("overflow-hidden",a&&"data-[state=closed]:animate-fd-collapsible-up data-[state=open]:animate-fd-collapsible-down",t.className),children:e})});z.displayName=R.displayName;export{Q as C,U as a,z as b,K as i,j as n};
|