PageSourceSearch

https://app.triplebooks.com/_next/static/chunks/3kipx-qk3pr5a.js?dpl=dpl_7RAwMMrGbS6V2SVZk55kmXYGFCAA

js triplebooks.com collected 2026-10-09 22:58:28 UTC 64,567 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,729007,104207,378656,686290,870538,e=>{"use strict";let t,n,r;var o,a,i,l,s,c,u,d,f,m=e.i(205646),p=e.i(396521),h=e.i(469647),v=e.i(813035),g=/[\\\/_+.#"@\[\(\{&]/,x=/[\\\/_+.#"@\[\(\{&]/g,b=/[\s-]/,y=/[\s-]/g;function w(e){return e.toLowerCase().replace(y," ")}function E(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function k(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function N(...e){return t=>{let n=!1,r=e.map(e=>{let r=k(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():k(e[t],null)}}}}function j(...e){return p.useCallback(N(...e),e)}"u">typeof window&&window.document&&window.document.createElement;var C=globalThis?.document?p.useLayoutEffect:()=>{},S=p[" useId ".trim().toString()]||(()=>void 0),R=0;function I(e){let[t,n]=p.useState(S());return C(()=>{e||n(e=>e??String(R++))},[e]),e||(t?`radix-${t}`:"")}p[" useEffectEvent ".trim().toString()],p[" useInsertionEffect ".trim().toString()];var M=p[" useInsertionEffect ".trim().toString()]||C;Symbol("RADIX:SYNC_STATE");var A=e.i(500963);function L(e){var t;let n,r=(t=e,(n=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){var o;let e,a,i=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==p.Fragment&&(l.ref=t?N(t,i):i),p.cloneElement(n,l)}return p.Children.count(n)>1?p.Children.only(null):null})).displayName=`${t}.SlotClone`,n),o=p.forwardRef((e,t)=>{let{children:n,...o}=e,a=p.Children.toArray(n),i=a.find(D);if(i){let e=i.props.children,n=a.map(t=>t!==i?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,m.jsx)(r,{...o,ref:t,children:p.isValidElement(e)?p.cloneElement(e,void 0,n):null})}return(0,m.jsx)(r,{...o,ref:t,children:n})});return o.displayName=`${e}.Slot`,o}var P=Symbol("radix.slottable");function D(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===P}var O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=L(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function T(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}var z="dismissableLayer.update",F=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_=p.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...s}=e,c=p.useContext(F),[u,f]=p.useState(null),h=u?.ownerDocument??globalThis?.document,[,v]=p.useState({}),g=j(t,e=>f(e)),x=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=x.indexOf(b),w=u?x.indexOf(u):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,N=w>=y,C=function(e,t=globalThis?.document){let n=T(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){H("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...c.branches].some(e=>e.contains(t));N&&!n&&(o?.(e),i?.(e),e.defaultPrevented||l?.())},h),S=function(e,t=globalThis?.document){let n=T(e),r=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!r.current&&H("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...c.branches].some(e=>e.contains(t))&&(a?.(e),i?.(e),e.defaultPrevented||l?.())},h);return!function(e,t=globalThis?.document){let n=T(e);p.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{w===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),p.useEffect(()=>{if(u)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(d=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),$(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=d)}},[u,h,n,c]),p.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),$())},[u,c]),p.useEffect(()=>{let e=()=>v({});return document.addEventListener(z,e),()=>document.removeEventListener(z,e)},[]),(0,m.jsx)(O.div,{...s,ref:g,style:{pointerEvents:k?N?"auto":"none":void 0,...e.style},onFocusCapture:E(e.onFocusCapture,S.onFocusCapture),onBlurCapture:E(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:E(e.onPointerDownCapture,C.onPointerDownCapture)})});function $(){let e=new CustomEvent(z);document.dispatchEvent(e)}function H(e,t,n,{discrete:r}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&o.addEventListener(e,t,{once:!0}),r)o&&A.flushSync(()=>o.dispatchEvent(a));else o.dispatchEvent(a)}_.displayName="DismissableLayer",p.forwardRef((e,t)=>
1{let n=p.useContext(F),r=p.useRef(null),o=j(t,r);return p.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(O.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var W="focusScope.autoFocusOnMount",G="focusScope.autoFocusOnUnmount",B={bubbles:!1,cancelable:!0},V=p.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,s]=p.useState(null),c=T(o),u=T(a),d=p.useRef(null),f=j(t,e=>s(e)),h=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?d.current=t:Z(d.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||Z(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Z(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,h.paused]),p.useEffect(()=>{if(l){q.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(W,B);l.addEventListener(W,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Z(r,{select:t}),document.activeElement!==n)return}(K(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&Z(l))}return()=>{l.removeEventListener(W,c),setTimeout(()=>{let t=new CustomEvent(G,B);l.addEventListener(G,u),l.dispatchEvent(t),t.defaultPrevented||Z(e??document.body,{select:!0}),l.removeEventListener(G,u),q.remove(h)},0)}}},[l,c,u,h]);let v=p.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var a;let t,r=e.currentTarget,[i,l]=[U(t=K(a=r),a),U(t.reverse(),a)];i&&l?e.shiftKey||o!==l?e.shiftKey&&o===i&&(e.preventDefault(),n&&Z(l,{select:!0})):(e.preventDefault(),n&&Z(i,{select:!0})):o===r&&e.preventDefault()}},[n,r,h.paused]);return(0,m.jsx)(O.div,{tabIndex:-1,...i,ref:f,onKeyDown:v})});function K(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function U(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function Z(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}V.displayName="FocusScope";var q=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=X(r,e)).unshift(e)},remove(e){r=X(r,e),r[0]?.resume()}});function X(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var Y=p.forwardRef((e,t)=>{let{container:n,...r}=e,[o,a]=p.useState(!1);C(()=>a(!0),[]);let i=n||o&&globalThis?.document?.body;return i?A.default.createPortal((0,m.jsx)(O.div,{...r,ref:t}),i):null});Y.displayName="Portal";var J=e=>{var t;let n,r,{present:o,children:a}=e,i=function(e){var t,n;let[r,o]=p.useState(),a=p.useRef(null),i=p.useRef(e),l=p.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},p.useReducer((e,t)=>n[e][t]??e,t));return p.useEffect(()=>{let e=Q(a.current);l.current="mounted"===s?e:"none"},[s]),C(()=>{let t=a.current,n=i.current;if(n!==e){let r=l.current,o=Q(t);e?c("MOUNT"):"none"===o||t?.display==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),i.current=e}},[e,c]),C(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let o=Q(a.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(c("ANIMATION_END"),!i.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},o=e=>{e.target===r&&(l.current=Q(a.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:p.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(o),l="function"==typeof a?a({present:i.isPresent}):p.Children.only(a),s=j(i.ref,(t=l,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof a||i.isPresent?p.cloneElement(l,{ref:s}):null};function Q(e){return e?.animationName||"none"}J.displayName="Presence";var ee=0;function et(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}var en=function(){return(en=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function er(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var eo=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),ea="width-before-scroll-bar";function ei(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var el="u">typeof window?p.useLayoutEffect:p.useEffect,es=new WeakMap,ec=(void 0===o&&(o={}),(void 0===a&&(a=function(e){return e}),i=[],l=!1,s={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=a(e,l);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){l=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=en({async:!0,ssr:!1},o),s),eu=function(){},ed=p.forwardRef(function(e,t){var n,r,o,a,i=p.useRef(null),l=p.useState({onScrollCapture:eu,onWheelCapture:eu,onTouchMoveCapture:eu}),s=l[0],c=l[1],u=e.forwardProps,d=e.children,f=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,g=e.sideCar,x=e.noRelative,b=e.noIsolation,y=e.inert,w=e.allowPinchZoom,E=e.as,k=e.gapMode,N=er(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=(n=[i,t],r=function(e){return n.forEach(function(t){return ei(t,e)})},(o=(0,p.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,el(function(){var e=es.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||ei(e,null)}),r.forEach(function(e){t.has(e)||ei(e,o)})}es.set(a,n)},[n]),a),C=en(en({},N),s);return p.createElement(p.Fragment,null,h&&p.createElement(g,{sideCar:ec,removeScrollBar:m,shards:v,noRelative:x,noIsolation:b,inert:y,setCallbacks:c,allowPinchZoom:!!w,lockRef:i,gapMode:k}),u?p.cloneElement(p.Children.only(d),en(en({},C),{ref:j})):p.createElement(void 0===E?"div":E,en({},C,{className:f,ref:j}),d))});ed.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ed.classNames={fullWidth:ea,zeroRight:eo};var ef=function(e){var t=e.sideCar,n=er(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return p.createElement(r,en({},n))};ef.isSideCarExport=!0;var em=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=f||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ep=function(){var e=em();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eh=function(){var e=ep();return function(t){return e(t.styles,t.dynamic),null}},ev={left:0,top:0,right:0,gap:0},eg=function(e){return parseInt(e||"",10)||0},ex=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[eg(n),eg(r),eg(o)]},eb=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return ev;var t=ex(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])}},ey=eh(),ew="data-scroll-locked",eE=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(ew,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(eo," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(ea," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(eo," .").concat(eo," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(ea," .").concat(ea," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(ew,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},ek=function(){var e=parseInt(document.body.getAttribute(ew)||"0",10);return isFinite(e)?e:0},eN=function(){p.useEffect(function(){return document.body.setAttribute(ew,(ek()+1).toString()),function(){var e=ek()-1;e<=0?document.body.removeAttribute(ew):document.body.setAttribute(ew,e.toString())}},[])},ej=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;eN();var a=p.useMemo(function(){return eb(o)},[o]);return p.createElement(ey,{styles:eE(a,!t,o,n?"":"!important")})},eC=!1;if("u">typeof window)try{var eS=Object.defineProperty({},"passive",{get:function(){return eC=!0,!0}});window.addEventListener("test",eS,eS),window.removeEventListener("test",eS,eS)}catch(e){eC=!1}var eR=!!eC&&{passive:!1},eI=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eM=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eA(e,r)){var o=eL(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},eA=function(e,t){return"v"===e?eI(t,"overflowY"):eI(t,"overflowX")},eL=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eP=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,s=n.target,c=t.contains(s),u=!1,d=l>0,f=0,m=0;do{if(!s)break;var p=eL(e,s),h=p[0],v=p[1]-p[2]-i*h;(h||v)&&eA(e,s)&&(f+=v,m+=h);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s))return d&&(o&&1>Math.abs(f)||!o&&l>f)?u=!0:!d&&(o&&1>Math.abs(m)||!o&&-l>m)&&(u=!0),u},eD=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eO=function(e){return[e.deltaX,e.deltaY]},eT=function(e){return e&&"current"in e?e.current:e},ez=0,eF=[];let e_=(c=function(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(ez++)[0],a=p.useState(eh)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eT),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=p.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=eD(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-a[0],c="deltaY"in e?e.deltaY:l[1]-a[1],u=e.target,d=Math.abs(s)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),m=f&&f.anchorNode;if(m&&(m===u||m.contains(u)))return!1;var p=eM(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=eM(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(s||c)&&(r.current=o),!o)return!0;var h=r.current||o;return eP(h,t,e,"h"===h?s:c,!0)},[]),s=p.useCallback(function(e){if(eF.length&&eF[eF.length-1]===a){var n="deltaY"in e?eO(e):eD(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}
1if(!r){var o=(i.current.shards||[]).map(eT).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=p.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=p.useCallback(function(e){n.current=eD(e),r.current=void 0},[]),d=p.useCallback(function(t){c(t.type,eO(t),t.target,l(t,e.lockRef.current))},[]),f=p.useCallback(function(t){c(t.type,eD(t),t.target,l(t,e.lockRef.current))},[]);p.useEffect(function(){return eF.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,eR),document.addEventListener("touchmove",s,eR),document.addEventListener("touchstart",u,eR),function(){eF=eF.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,eR),document.removeEventListener("touchmove",s,eR),document.removeEventListener("touchstart",u,eR)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?p.createElement(ej,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ec.useMedium(c),ef);var e$=p.forwardRef(function(e,t){return p.createElement(ed,en({},e,{ref:t,sideCar:e_}))});e$.classNames=ed.classNames;var eH=new WeakMap,eW=new WeakMap,eG={},eB=0,eV=function(e){return e&&(e.host||eV(e.parentNode))},eK=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eV(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eG[n]||(eG[n]=new WeakMap);var a=eG[n],i=[],l=new Set,s=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(eH.get(e)||0)+1,c=(a.get(e)||0)+1;eH.set(e,s),a.set(e,c),i.push(e),1===s&&o&&eW.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),l.clear(),eB++,function(){i.forEach(function(e){var t=eH.get(e)-1,o=a.get(e)-1;eH.set(e,t),a.set(e,o),t||(eW.has(e)||e.removeAttribute(r),eW.delete(e)),o||e.removeAttribute(n)}),--eB||(eH=new WeakMap,eH=new WeakMap,eW=new WeakMap,eG={})}},eU=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),eK(r,o,n,"aria-hidden")):function(){return null}},eZ="Dialog",[eq,eX]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=p.createContext(r),a=n.length;n=[...n,r];let i=t=>{let{scope:n,children:r,...i}=t,l=n?.[e]?.[a]||o,s=p.useMemo(()=>i,Object.values(i));return(0,m.jsx)(l.Provider,{value:s,children:r})};return i.displayName=t+"Provider",[i,function(n,i){let l=i?.[e]?.[a]||o,s=p.useContext(l);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eZ),[eY,eJ]=eq(eZ),eQ=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=p.useRef(null),s=p.useRef(null),[c,u]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,a,i]=function({defaultProp:e,onChange:t}){let[n,r]=p.useState(e),o=p.useRef(n),a=p.useRef(t);return M(()=>{a.current=t},[t]),p.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:o;{let t=p.useRef(void 0!==e);p.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[s,p.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&i.current?.(n)}else a(t)},[l,e,a,i])]}({prop:r,defaultProp:o??!1,onChange:a,caller:eZ});return(0,m.jsx)(eY,{scope:t,triggerRef:l,contentRef:s,contentId:I(),titleId:I(),descriptionId:I(),open:c,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(e=>!e),[u]),modal:i,children:n})};eQ.displayName=eZ;var e0="DialogTrigger";p.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,o=eJ(e0,n),a=j(t,o.triggerRef);return(0,m.jsx)(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tl(o.open),...r,ref:a,onClick:E(e.onClick,o.onOpenToggle)})}).displayName=e0;var e1="DialogPortal",[e5,e2]=eq(e1,{forceMount:void 0}),e7=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=eJ(e1,t);return(0,m.jsx)(e5,{scope:t,forceMount:n,children:p.Children.map(r,e=>(0,m.jsx)(J,{present:n||a.open,children:(0,m.jsx)(Y,{asChild:!0,container:o,children:e})}))})};e7.displayName=e1;var e4="DialogOverlay",e3=p.forwardRef((e,t)=>{let n=e2(e4,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=eJ(e4,e.__scopeDialog);return a.modal?(0,m.jsx)(J,{present:r||a.open,children:(0,m.jsx)(e8,{...o,ref:t})}):null});e3.displayName=e4;var e6=L("DialogOverlay.RemoveScroll"),e8=p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eJ(e4,n);return(0,m.jsx)(e$,{as:e6,allowPinchZoom:!0,shards:[o.contentRef],children:(0,m.jsx)(O.div,{"data-state":tl(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),e9="DialogContent",te=p.forwardRef((e,t)=>{let n=e2(e9,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=eJ(e9,e.__scopeDialog);return(0,m.jsx)(J,{present:r||a.open,children:a.modal?(0,m.jsx)(tt,{...o,ref:t}):(0,m.jsx)(tn,{...o,ref:t})})});te.displayName=e9;var tt=p.forwardRef((e,t)=>{let n=eJ(e9,e.__scopeDialog),r=p.useRef(null),o=j(t,n.contentRef,r);return p.useEffect(()=>{let e=r.current;if(e)return eU(e)},[]),(0,m.jsx)(tr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:E(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:E(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:E(e.onFocusOutside,e=>e.preventDefault())})}),tn=p.forwardRef((e,t)=>{let n=eJ(e9,e.__scopeDialog),r=p.useRef(!1),o=p.useRef(!1);return(0,m.jsx)(tr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),tr=p.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=eJ(e9,n),s=p.useRef(null),c=j(t,s);return p.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??et()),document.body.insertAdjacentElement("beforeend",e[1]??et()),ee++,()=>{1===ee&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ee--}},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(V,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,m.jsx)(_,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":tl(l.open),...i,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(td,{titleId:l.titleId}),(0,m.jsx)(tf,{contentRef:s,descriptionId:l.descriptionId})]})]})}),to="DialogTitle";p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eJ(to,n);return(0,m.jsx)(O.h2,{id:o.titleId,...r,ref:t})}).displayName=to;var ta="DialogDescription";p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eJ(ta,n);return(0,m.jsx)(O.p,{id:o.descriptionId,...r,ref:t})}).displayName=ta;var ti="DialogClose";function tl(e){return e?"open":"closed"}p.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eJ(ti,n);return(0,m.jsx)(O.button,{type:"button",...r,ref:t,onClick:E(e.onClick,()=>o.onOpenChange(!1))})}).displayName=ti;var ts="DialogTitleWarning",[tc,tu]=(u={contentName:e9,titleName:to,docsSlug:"dialog"},t=p.createContext(u),(n=e=>{let{children:n,...r}=e,o=p.useMemo(()=>r,Object.values(r));return(0,m.jsx)(t.Provider,{value:o,children:n})}).displayName=ts+"Provider",[n,function(e){let n=p.useContext(t);if(n)return n;if(void 0!==u)return u;throw Error(`\`${e}\` must be used within \`${ts}\``)}]),td=({titleId:e})=>{let t=tu(ts),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},tf=({contentRef:e,descriptionId:t})=>{let n=tu("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return p.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tm='[cmdk-group=""]',tp='[cmdk-group-items=""]',th='[cmdk-item=""]',tv=`${th}
5:not([aria-disabled="true"])`,tg="cmdk-item-select",tx="data-value",tb=(e,t,n)=>{var r;return r=e,function e(t,n,r,o,a,i,l){if(i===n.length)return a===t.length?1:.99;var s=`${a},${i}`;if(void 0!==l[s])return l[s];for(var c,u,d,f,m=o.charAt(i),p=r.indexOf(m,a),h=0;p>=0;)(c=e(t,n,r,o,p+1,i+1,l))>h&&(p===a?c*=1:g.test(t.charAt(p-1))?(c*=.8,(d=t.slice(a,p-1).match(x))&&a>0&&(c*=Math.pow(.999,d.length))):b.test(t.charAt(p-1))?(c*=.9,(f=t.slice(a,p-1).match(y))&&a>0&&(c*=Math.pow(.999,f.length))):(c*=.17,a>0&&(c*=Math.pow(.999,p-a))),t.charAt(p)!==n.charAt(i)&&(c*=.9999)),(c<.1&&r.charAt(p-1)===o.charAt(i+1)||o.charAt(i+1)===o.charAt(i)&&r.charAt(p-1)!==o.charAt(i))&&.1*(u=e(t,n,r,o,p+1,i+2,l))>c&&(c=.1*u),c>h&&(h=c),p=r.indexOf(m,p+1);return l[s]=h,h}(r=n&&n.length>0?`${r+" "+n.join(" ")}`:r,t,w(r),w(t),0,0,{})},ty=p.createContext(void 0),tw=p.createContext(void 0),tE=p.createContext(void 0),tk=p.forwardRef((e,t)=>{let n=tP(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=tP(()=>new Set),o=tP(()=>new Map),a=tP(()=>new Map),i=tP(()=>new Set),l=tA(e),{label:s,children:c,value:u,onValueChange:d,filter:f,shouldFilter:m,loop:h,disablePointerSelection:v=!1,vimBindings:g=!0,...x}=e,b=I(),y=I(),w=I(),E=p.useRef(null),k=tT();tL(()=>{if(void 0!==u){let e=u.trim();n.current.value=e,N.emit()}},[u]),tL(()=>{k(6,A)},[]);let N=p.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,a,i,s;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)M(),S(),k(1,R);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(w);e?e.focus():null==(o=document.getElementById(b))||o.focus()}if(k(7,()=>{var e;n.current.selectedItemId=null==(e=L())?void 0:e.id,N.emit()}),r||k(5,A),(null==(a=l.current)?void 0:a.value)!==void 0){null==(s=(i=l.current).onValueChange)||s.call(i,null!=t?t:"");return}}N.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),j=p.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=a.current.get(e))?void 0:o.value)&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,C(t,r)),k(2,()=>{S(),N.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),k(3,()=>{M(),S(),n.current.value||R(),N.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=L();k(4,()=>{M(),(null==t?void 0:t.getAttribute("id"))===e&&R(),N.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{a.current.delete(e),o.current.delete(e)}),filter:()=>l.current.shouldFilter,label:s||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:w,labelId:y,listInnerRef:E}),[]);function C(e,t){var r,o;let a=null!=(o=null==(r=l.current)?void 0:r.filter)?o:tb;return e?a(e,n.current.search,t):0}function S(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),a=0;r.forEach(t=>{a=Math.max(e.get(t),a)}),t.push([n,a])});let r=E.current;P().sort((t,n)=>{var r,o;let a=t.getAttribute("id"),i=n.getAttribute("id");return(null!=(r=e.get(i))?r:0)-(null!=(o=e.get(a))?o:0)}).forEach(e=>{let t=e.closest(tp);t?t.appendChild(e.parentElement===t?e:e.closest(`${tp} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${tp} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=E.current)?void 0:t.querySelector(`${tm}[${tx}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function R(){let e=P().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(tx);N.setState("value",t||void 0)}function M(){var e,t,i,s;if(!n.current.search||!1===l.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=C(null!=(t=null==(e=a.current.get(o))?void 0:e.value)?t:"",null!=(s=null==(i=a.current.get(o))?void 0:i.keywords)?s:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function A(){var e,t,n;let r=L();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(tm))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function L(){var e;return null==(e=E.current)?void 0:e.querySelector(`${th}[aria-selected="true"]`)}function P(){var e;return Array.from((null==(e=E.current)?void 0:e.querySelectorAll(tv))||[])}function D(e){let t=P()[e];t&&N.setState("value",t.getAttribute(tx))}function T(e){var t;let n=L(),r=P(),o=r.findIndex(e=>e===n),a=r[o+e];null!=(t=l.current)&&t.loop&&(a=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),a&&N.setState("value",a.getAttribute(tx))}function z(e){let t=L(),n=null==t?void 0:t.closest(tm),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,tm):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,tm))?void 0:n.querySelector(tv);r?N.setState("value",r.getAttribute(tx)):T(e)}let F=()=>
5D(P().length-1),_=e=>{e.preventDefault(),e.metaKey?F():e.altKey?z(1):T(1)},$=e=>{e.preventDefault(),e.metaKey?D(0):e.altKey?z(-1):T(-1)};return p.createElement(O.div,{ref:t,tabIndex:-1,...x,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=x.onKeyDown)||t.call(x,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":g&&e.ctrlKey&&_(e);break;case"ArrowDown":_(e);break;case"p":case"k":g&&e.ctrlKey&&$(e);break;case"ArrowUp":$(e);break;case"Home":e.preventDefault(),D(0);break;case"End":e.preventDefault(),F();break;case"Enter":{e.preventDefault();let t=L();if(t){let e=new Event(tg);t.dispatchEvent(e)}}}}},p.createElement("label",{"cmdk-label":"",htmlFor:j.inputId,id:j.labelId,style:tF},s),tz(e,e=>p.createElement(tw.Provider,{value:N},p.createElement(ty.Provider,{value:j},e))))}),tN=p.forwardRef((e,t)=>{var n,r;let o=I(),a=p.useRef(null),i=p.useContext(tE),l=p.useContext(ty),s=tA(e),c=null!=(r=null==(n=s.current)?void 0:n.forceMount)?r:null==i?void 0:i.forceMount;tL(()=>{if(!c)return l.item(o,null==i?void 0:i.id)},[c]);let u=tO(o,a,[e.value,e.children,a],e.keywords),d=p.useContext(tw),f=tD(e=>e.value&&e.value===u.current),m=tD(e=>!!c||!1===l.filter()||!e.search||e.filtered.items.get(o)>0);function h(){var e,t;v(),null==(t=(e=s.current).onSelect)||t.call(e,u.current)}function v(){d.setState("value",u.current,!0)}if(p.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(tg,h),()=>t.removeEventListener(tg,h)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:g,value:x,onSelect:b,forceMount:y,keywords:w,...E}=e;return p.createElement(O.div,{ref:N(a,t),...E,id:o,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!f,"data-disabled":!!g,"data-selected":!!f,onPointerMove:g||l.getDisablePointerSelection()?void 0:v,onClick:g?void 0:h},e.children)}),tj=p.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...a}=e,i=I(),l=p.useRef(null),s=p.useRef(null),c=I(),u=p.useContext(ty),d=tD(e=>!!o||!1===u.filter()||!e.search||e.filtered.groups.has(i));tL(()=>u.group(i),[]),tO(i,l,[e.value,e.heading,s]);let f=p.useMemo(()=>({id:i,forceMount:o}),[o]);return p.createElement(O.div,{ref:N(l,t),...a,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&p.createElement("div",{ref:s,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),tz(e,e=>p.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},p.createElement(tE.Provider,{value:f},e))))}),tC=p.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=p.useRef(null),a=tD(e=>!e.search);return n||a?p.createElement(O.div,{ref:N(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),tS=p.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,a=p.useContext(tw),i=tD(e=>e.search),l=tD(e=>e.selectedItemId),s=p.useContext(ty);return p.useEffect(()=>{null!=e.value&&a.setState("search",e.value)},[e.value]),p.createElement(O.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":s.listId,"aria-labelledby":s.labelId,"aria-activedescendant":l,id:s.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||a.setState("search",e.target.value),null==n||n(e.target.value)}})}),tR=p.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,a=p.useRef(null),i=p.useRef(null),l=tD(e=>e.selectedItemId),s=p.useContext(ty);return p.useEffect(()=>{if(i.current&&a.current){let e=i.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),p.createElement(O.div,{ref:N(a,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":r,id:s.listId},tz(e,e=>p.createElement("div",{ref:N(i,s.listInnerRef),"cmdk-list-sizer":""},e)))}),tI=p.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:a,container:i,...l}=e;return p.createElement(eQ,{open:n,onOpenChange:r},p.createElement(e7,{container:i},p.createElement(e3,{"cmdk-overlay":"",className:o}),p.createElement(te,{"aria-label":e.label,"cmdk-dialog":"",className:a},p.createElement(tk,{ref:t,...l}))))}),tM=Object.assign(tk,{List:tR,Item:tN,Input:tS,Group:tj,Separator:tC,Dialog:tI,Empty:p.forwardRef((e,t)=>
5tD(e=>0===e.filtered.count)?p.createElement(O.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:p.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...a}=e;return p.createElement(O.div,{ref:t,...a,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},tz(e,e=>p.createElement("div",{"aria-hidden":!0},e)))})});function tA(e){let t=p.useRef(e);return tL(()=>{t.current=e}),t}var tL="u"<typeof window?p.useEffect:p.useLayoutEffect;function tP(e){let t=p.useRef();return void 0===t.current&&(t.current=e()),t}function tD(e){let t=p.useContext(tw),n=()=>e(t.snapshot());return p.useSyncExternalStore(t.subscribe,n,n)}function tO(e,t,n,r=[]){let o=p.useRef(),a=p.useContext(ty);return tL(()=>{var i;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),s=r.map(e=>e.trim());a.value(e,l,s),null==(i=t.current)||i.setAttribute(tx,l),o.current=l}),o}var tT=()=>{let[e,t]=p.useState(),n=tP(()=>new Map);return tL(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function tz({asChild:e,children:t},n){let r;return e&&p.isValidElement(t)?p.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var tF={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};e.s(["Command",0,tM],104207);var t_=e.i(662618),t$=e.i(683574),tH=e.i(29658),tW=e.i(417210),tG=e.i(579975),tB=e.i(854438),tV=e.i(936220),tK=e.i(227038),tU=e.i(543416),tZ=e.i(826768);function tq(e){let t=e.href.replace(/^\//,"").replace(/[/?.=&]/g," ");return e.moduleHome?`${e.group} ${e.group} ${e.label} ${t} module app home dashboard`:`${e.group} ${e.label} ${t} module app page`}function tX(e,t){let n=t.trim().toLowerCase();if(!n)return 1;let r=e.toLowerCase(),o=r.split(/\s+/);return o[0]===n||o[1]===n?1:r.startsWith(`${n} `)?.95:o.includes(n)?.85:.4*!!r.includes(n)}function tY(e,t){let n=t.trim().toLowerCase(),r=e=>[...e].sort((e,t)=>e.moduleHome&&!t.moduleHome?-1:t.moduleHome&&!e.moduleHome?1:0);if(!n)return new Map([...e.entries()].map(([e,t])=>[e,r(t)]));let o=e=>{let t=e.toLowerCase();return t===n?100:t.startsWith(n)?50:25*!!t.includes(n)};return new Map([...e.entries()].sort((e,t)=>o(t[0])-o(e[0])).map(([e,t])=>[e,r(t)]))}e.s(["paletteCmdkFilter",0,tX,"paletteItemCmdkValue",0,tq,"sortPaletteGroupsForSearch",0,tY],378656);var tJ=e.i(323288),tQ=e.i(861111),t0=e.i(255179),t1=e.i(106819);function t5(){let{status:e}=(0,tJ.useSession)(),{selectedEntity:t,features:n}=(0,t_.useEntity)(),r=t?.type,o=t?.subType,a=t?.role,i=t?.id,[l,s]=(0,p.useState)(()=>new Set),[c,u]=(0,p.useState)(!1);(0,p.useEffect)(()=>{if("unauthenticated"===e){s(new Set),u(!0);return}if("authenticated"!==e)return;if(!i){s(new Set),u(!0);return}let t=!1;u(!1);let n=new URLSearchParams({entityId:i});return fetch(`/api/workspace/hub-surface-visibility?${n}`).then(e=>e.ok?e.json():{disabledHrefs:[]}).then(e=>{t||(s(new Set(e.disabledHrefs??[])),u(!0))}).catch(()=>{t||u(!0)}),()=>{t=!0}},[e,i]);let d=(0,p.useMemo)(()=>(0,tQ.getHubSurfacesForEntity)(r,o,{industry:t?.industry,naicsCode:t?.naicsCode},{expandProductSurface:t?.expandProductSurface===!0}),[r,o,t?.industry,t?.naicsCode,t?.expandProductSurface]),f=(0,p.useMemo)(()=>(0,t1.getHubCatalogHrefsForEntity)(r,o,{expandProductSurface:t?.expandProductSurface===!0}),[r,o,t?.expandProductSurface]),m=(0,p.useMemo)(()=>({entityType:r,userRole:a,features:n}),[r,a,n]),h=(0,p.useMemo)(()=>d.filter(e=>!l.has(e.href)&&(!e.rule||(0,t0.checkNavVisibility)(m,e.rule))),[l,d,m]),v=(0,p.useMemo)(()=>new Set(h.map(e=>e.href)),[h]);return{loaded:c,visibleSurfaces:h,visibleHubHrefSet:v,catalogHrefs:f,disabledHubHrefs:l}}e.s(["useHubSurfaceVisibility",0,t5],686290);var t2=e.i(771292),t7=e.i(145053),t4=e.i(21650),t3=e.i(577891),t6=e.i(355715),t8=e.i(118772);let t9="flex items-center gap-3 px-3 py-2 text-sm rounded-lg cursor-pointer transition-colors text-zinc-700 dark:text-zinc-300 data-[selected=true]:bg-zinc-200 data-[selected=true]:text-zinc-900 dark:data-[selected=true]:bg-zinc-800 dark:data-[selected=true]:text-zinc-100",ne="[&_[cmdk-group-heading]]:text-[10px] [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-wider [&_[cmdk-group-heading]]:text-zinc-500 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium";function nt({folderItems:e,fileItems:t,onSelect:n,showAllNav:r=!0}){let o=r?e:e.filter(e=>"folder"===e.kind);return(0,m.jsxs)(m.Fragment,{children:[o.length>0?(0,m.jsx)(tM.Group,{heading:"Folders",className:ne,children:o.map(e=>(0,m.jsxs)(tM.Item,{value:e.searchValue,onSelect:()=>n(e),className:t9,children:["all"===e.kind?(0,m.jsx)(t3.FolderOpen,{className:"h-4 w-4 shrink-0 text-zinc-500"}):(0,m.jsx)(t4.Folder,{className:"h-4 w-4 shrink-0 text-sky-600 dark:text-sky-400"}),(0,m.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,m.jsx)("div",{className:"truncate",children:"document"===e.kind?e.filename:e.name}),"folder"===e.kind?(0,m.jsx)("div",{className:"truncate text-xs text-zinc-500",children:e.pathLabel}):null]})]},e.id))}):null,t.length>0?(0,m.jsx)(tM.Group,{heading:"Files",className:ne,children:t.map(e=>(0,m.jsxs)(tM.Item,{value:"document"===e.kind?e.searchValue:e.id,onSelect:()=>n(e),className:t9,children:[(0,m.jsx)(t7.FileText,{className:"h-4 w-4 shrink-0 text-zinc-500"}),(0,m.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,m.jsx)("div",{className:"truncate",children:"document"===e.kind?e.filename:e.name}),(0,m.jsx)("div",{className:"truncate text-xs text-zinc-500",children:e.pathLabel})]})]},e.id))}):null]})}function nn({items:e,onSelect:t,onOpenDocumentsFolder:n,visibleFolderIds:r}){return 0===e.length?null:(0,m.jsx)(tM.Group,{heading:"Data rooms",className:ne,children:e.map(e=>{let o=null!=n&&r?.has(e.documentsFolderId);return(0,m.jsxs)(tM.Item,{value:e.searchValue,onSelect:()=>t(e.id),className:t9,children:[(0,m.jsx)("svg",{className:"h-4 w-4 shrink-0 text-violet-600 dar
5k:text-violet-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":!0,children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"})}),(0,m.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,m.jsxs)("div",{className:"flex items-center gap-2 truncate",children:[(0,m.jsx)("span",{className:"truncate",children:e.roundName}),e.requireNda?(0,m.jsx)("span",{className:"shrink-0 rounded bg-amber-100 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-amber-800 dark:bg-amber-950/60 dark:text-amber-200",children:"NDA"}):null]}),(0,m.jsx)("div",{className:"truncate text-xs text-zinc-500",children:e.pathLabel})]}),o?(0,m.jsx)("button",{type:"button",title:"Open documents folder",className:"shrink-0 rounded px-1.5 py-0.5 text-[10px] text-zinc-500 hover:bg-zinc-200 hover:text-zinc-800 dark:hover:bg-zinc-700 dark:hover:text-zinc-200",onClick:t=>{t.preventDefault(),t.stopPropagation(),n(e.documentsFolderId)},children:"Files"}):null]},e.id)})})}function nr({item:e,onSelect:t}){let n="company"===e.kind?t2.Building2:"vendor"===e.kind?t6.Truck:t8.User,r="company"===e.kind?"text-sky-600 dark:text-sky-400":"vendor"===e.kind?"text-amber-600 dark:text-amber-400":"text-violet-600 dark:text-violet-400";return(0,m.jsxs)(tM.Item,{value:e.searchValue,onSelect:()=>t(e),className:t9,children:[(0,m.jsx)(n,{className:`h-4 w-4 shrink-0 ${r}`,"aria-hidden":!0}),(0,m.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,m.jsx)("div",{className:"truncate",children:e.label}),e.subtitle?(0,m.jsx)("div",{className:"truncate text-xs text-zinc-500",children:e.subt
5itle}):null]})]},`${e.kind}:${e.id}`)}function no({contacts:e,companies:t,vendors:n,loading:r,onSelect:o}){return r&&0===e.length&&0===t.length&&0===n.length?(0,m.jsx)(tM.Group,{heading:"CRM",className:ne,children:(0,m.jsx)(tM.Item,{disabled:!0,value:"__loading_crm__",className:t9,children:"Searching contacts and companies…"})}):(0,m.jsxs)(m.Fragment,{children:[t.length>0?(0,m.jsx)(tM.Group,{heading:"Companies",className:ne,children:t.map(e=>(0,m.jsx)(nr,{item:e,onSelect:o},`company:${e.id}`))}):null,e.length>0?(0,m.jsx)(tM.Group,{heading:"Contacts",className:ne,children:e.map(e=>(0,m.jsx)(nr,{item:e,onSelect:o},`contact:${e.id}`))}):null,n.length>0?(0,m.jsx)(tM.Group,{heading:"Vendors",className:ne,children:n.map(e=>(0,m.jsx)(nr,{item:e,onSelect:o},`vendor:${e.id}`))}):null]})}function na(){return(0,m.jsx)("svg",{className:"h-4 w-4 shrink-0 text-zinc-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":!0,children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})})}function ni({groups:e,onSelect:t}){return(0,m.jsx)(m.Fragment,{children:[...e.entries()].map(([e,n])=>(0,m.jsx)(tM.Group,{heading:e,className:ne,children:n.map(e=>(0,m.jsxs)(tM.Item,{value:tq(e),onSelect:()=>t(e.href),className:t9,children:[(0,m.jsx)(na,{}),(0,m.jsx)("span",{className:"min-w-0 truncate",children:e.moduleHome?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("span",{className:"font-medium",children:e.label}),(0,m.jsx)("span",{className:"text-zinc-500 dark:text-zinc-400",children:" — Dashboard"})]}):e.label})]},`${e.href}:${e.label}:${e.moduleHome?"home":"page"}`))},e))})}function nl({surfaces:e,onSelect:t}){return 0===e.length?null:(0,m.jsx)(tM.Group,{heading:"Apps",className:ne,children:e.map(({href:e,label:n,description:r,icon:o})=>(0,m.jsxs)(tM.Item,{value:`${n} ${n} ${r} app module home dashboard`,onSelect:()=>t(e),className:t9,children:[(0,m.jsx)(o,{className:"h-4 w-4 shrink-0 text-zinc-500","aria-hidden":!0}),(0,m.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,m.jsx)("div",{className:"truncate",children:n}),(0,m.jsx)("div",{className:"truncate text-xs text-zinc-500",children:r})]})]},e))})}function ns({open:e,setOpen:t,initialQuery:n="",onOpenShortcutHelp:r}){let o=(0,v.useRouter)(),a=(0,v.usePathname)(),{activeEntities:i,selectedEntity:l,setSelectedEntityId:s,features:c}=(0,t_.useEntity)(),{resolved:u,setMode:d}=(0,t$.useTheme)(),[f,h]=(0,p.useState)(""),g=(0,p.useRef)(null),x=l?.id,b=l?.type,y=l?.subType;l?.role;let w=(0,p.useMemo)(()=>(0,t0.buildNavVisibilityContext)({selectedEntity:l,activeEntities:i,features:c}),[l,i,c]),{loaded:E,visibleSurfaces:k,visibleHubHrefSet:N,catalogHrefs:j}=t5(),C=E?N.has("/documents"):(0,tU.canAccessHubHref)(w,"/documents"),S=E?N.has("/fundraising"):(0,tU.canAccessHubHref)(w,"/fundraising"),R=E?N.has("/crm"):(0,tU.canAccessHubHref)(w,"/crm"),I=E?N.has("/purchasing"):(0,tU.canAccessHubHref)(w,"/purchasing"),M=(0,tH.useDocumentsPaletteIndex)({entityId:x,enabled:e&&C}),A=(0,tW.useFundraisingDataRoomsPalette)({entityId:x,enabled:e&&S}),L=(0,tG.useCrmPaletteSearch)({entityId:x,enabled:e&&(R||I),query:f,crmAccess:R,purchasingAccess:I});(0,p.useEffect)(()=>{e&&(h(n),setTimeout(()=>g.current?.focus(),0))},[e,n]),(0,p.useEffect)(()=>{if(e)return document.addEventListener("keydown",n,!0),()=>document.removeEventListener("keydown",n,!0);function n(e){"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),t(!1))}},[e,t]),(0,p.useEffect)(()=>{t(!1)},[a,t]);let P=(0,p.useCallback)(e=>{t(!1),e()},[t]),D=(0,p.useCallback)(e=>{P(()=>o.push((0,tB.documentsPaletteItemHref)(e,M.visibleFolderIds)))},[M.visibleFolderIds,o,P]),O=(0,p.useCallback)(e=>{P(()=>o.push((0,tV.fundraisingDataRoomHref)(e)))},[o,P]),T=(0,p.useCallback)(e=>{P(()=>o.push(`/documents?folder=${encodeURIComponent(e)}`))},[o,P]),z=(0,p.useCallback)(e=>{P(()=>
5o.push(e.href))},[o,P]),F=(0,p.useMemo)(()=>M.items.filter(e=>"folder"===e.kind||"all"===e.kind),[M.items]),_=(0,p.useMemo)(()=>M.items.filter(e=>"document"===e.kind),[M.items]),$=C&&!M.forbidden&&M.items.length>0,H=S&&!A.forbidden&&A.items.length>0,W=L.searchActive&&!L.crmForbidden&&!L.purchasingForbidden&&(L.contacts.length>0||L.companies.length>0||L.vendors.length>0||L.loading),G=(0,p.useMemo)(()=>({catalogHrefs:j,visibleHubHrefs:E?N:new Set}),[j,N,E]),B=(0,p.useMemo)(()=>tY((0,tZ.getVisibleCommandPalettePageGroups)(b,G,w,y),f),[b,y,G,w,f]);return e?(0,m.jsxs)("div",{className:"fixed inset-0 z-[100]",children:[(0,m.jsx)("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm dark:bg-black/60",onClick:()=>t(!1),"aria-hidden":!0}),(0,m.jsx)("div",{className:"pointer-events-none relative flex items-start justify-center pt-[12vh]",children:(0,m.jsxs)(tM,{className:"pointer-events-auto scheme-light dark:scheme-dark w-full max-w-xl overflow-hidden rounded-xl border border-zinc-200 bg-white shadow-2xl dark:border-zinc-700 dark:bg-zinc-900",shouldFilter:!0,filter:tX,loop:!0,children:[(0,m.jsxs)("div",{className:"flex items-center gap-3 border-b border-zinc-200 px-4 dark:border-zinc-800",children:[(0,m.jsx)("svg",{className:"w-4 h-4 shrink-0 text-zinc-400 dark:text-zinc-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})}),(0,m.jsx)(tM.Input,{ref:g,value:f,onValueChange:h,placeholder:"Search apps, pages, contacts, companies, vendors…",className:"flex-1 bg-transparent py-3 text-sm text-zinc-900 outline-none placeholder:text-zinc-400 dark:text-zinc-100 dark:placeholder:text-zinc-500"}),(0,m.jsx)("kbd",{className:"rounded border border-zinc-200 px-1.5 py-0.5 font-mono text-[10px] text-zinc-500 dark:border-zinc-700",children:"ESC"})]}),(0,m.jsxs)(tM.List,{className:"cmdk-list-scroll max-h-[360px] overflow-y-auto bg-zinc-50 p-2 dark:bg-zinc-900",children:[(0,m.jsx)(tM.Empty,{className:"px-4 py-8 text-center text-sm text-zinc-500",children:"No results found."}),E&&k.length>0?(0,m.jsx)(nl,{surfaces:k,onSelect:e=>P(()=>o.push(e))}):null,(0,m.jsx)(ni,{groups:B,onSelect:e=>P(()=>o.push(e))}),W?(0,m.jsx)(no,{contacts:L.contacts,companies:L.companies,vendors:L.vendors,loading:L.loading,onSelect:z}):null,H?(0,m.jsx)(m.Fragment,{children:A.loading?(0,m.jsx)(tM.Group,{heading:"Data rooms",className:ne,children:(0,m.jsx)(tM.Item,{disabled:!0,value:"__loading_data_rooms__",className:t9,children:"Loading data rooms…"})}):(0,m.jsx)(nn,{items:A.items,onSelect:O,onOpenDocumentsFolder:C&&!M.forbidden?T:void 0,visibleFolderIds:M.visibleFolderIds})}):null,$?(0,m.jsx)(m.Fragment,{children:M.loading?(0,m.jsx)(tM.Group,{heading:"Folders",className:ne,children:(0,m.jsx)(tM.Item,{disabled:!0,value:"__loading_documents__",className:t9,children:"Loading documents…"})}):(0,m.jsx)(nt,{folderItems:F,fileItems:_,onSelect:D,showAllNav:!1})}):null,i.length>0&&(0,m.jsx)(tM.Group,{heading:"Entities",className:ne,children:i.map(e=>{let t=(0,tK.entitySwitcherLabel)(e,i);return(0,m.jsxs)(tM.Item,{value:`Switch to ${t}`,onSelect:()=>P(()=>s(e.id)),className:t9,children:[(0,m.jsx)(nc,{}),"Switch to ",t]},e.id)})}),(0,m.jsxs)(tM.Group,{heading:"Actions",className:ne,children:[(0,m.jsxs)(tM.Item,{value:"Toggle theme dark light mode",onSelect:()=>P(()=>d("dark"===u?"light":"dark")),className:t9,children:[(0,m.jsx)(nu,{}),"Toggle theme (","dark"===u?"switch to light":"switch to dark",")"]}),(0,m.jsxs)(tM.Item,{value:"Keyboard shortcuts help",onSelect:()=>P(()=>r()),className:t9,children:[(0,m.jsx)(nd,{}),"Keyboard shortcuts"]})]})]}),(0,m.jsxs)("div",{className:"flex items-center gap-4 border-t border-zinc-200 px-4 py-2 text-[10px] text-zinc-500 dark:border-zinc-800",children:[(0,m.jsxs)("span",{className:"flex items-center gap-1",children:[(0,m.jsx)("kbd",{className:"rounded border border-zinc-200 px-1 py-0.5 font-mono dark:border-zinc-700",children:"↑↓"}),"navigate"]}),(0,m.jsxs)("span",{className:"flex items-center gap-1",children:[(0,m.jsx)("kbd",{className:"rounded border border-zinc-200 px-1 py-0.5 font-mono dark:border-zinc-700",children:"↵"}),"select"]}),(0,m.jsxs)("span",{className:"flex items-center gap-1",children:[(0,m.jsx)("kbd",{className:"rounded border border-zinc-200 px-1 py-0.5 font-mono dark:border-zinc-700",children:"esc"}),"close"]}),$||H||W?(0,m.jsx)("span",{className:"ml-auto text-zinc-400",children:"Only items you can access"}):null]})]})})]}):null}function nc(){return(0,m.jsx)("svg",{className:"w-4 h-4 text-zinc-500 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 21h19.5m-18-18v18m10.5-18v18m6-13.5V21M6.75 6.75h.75m-.75 3h.75m-.75 3h.75m3-6h.75m-.75 3h.75m-.75 3h.75M6.75 21v-3.375c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21M3 3h12m-.75 4.5H2
51m-3.75 3.75h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Zm0 3h.008v.008h-.008v-.008Z"})})}function nu(){return(0,m.jsx)("svg",{className:"w-4 h-4 text-zinc-500 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"})})}function nd(){return(0,m.jsx)("svg",{className:"w-4 h-4 text-zinc-500 shrink-0",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 7.5h16.5m-16.5 9h16.5M4.5 4.5h15a2.25 2.25 0 0 1 2.25 2.25v10.5a2.25 2.25 0 0 1-2.25 2.25h-15A2.25 2.25 0 0 1 2.25 17.25V6.75A2.25 2.25 0 0 1 4.5 4.5Zm1.5 6h.008v.008H6v-.008Zm3 0h.008v.008H9v-.008Zm3 0h.008v.008H12v-.008Zm3 0h.008v.008H15v-.008Zm3 0h.008v.008H18v-.008Z"})})}e.s(["CommandPalettePageGroups",0,ni,"CrmPaletteCmdkGroups",0,no,"DocumentsPaletteCmdkGroups",0,nt,"FundraisingDataRoomsCmdkGroup",0,nn,"HubAppsCmdkGroup",0,nl,"cmdkGroupHeadingClass",0,ne,"cmdkItemRowClass",0,t9],870538);var nf=e.i(843843);let nm=[{title:"Global",shortcuts:[{keys:["⌘","K"],description:"Open command palette"},{keys:["?"],description:"Show this help"}]},{title:"Navigation (press G, then…)",shortcuts:[{keys:["G","D"],description:"Go to Home"},{keys:["G","A"],description:"Go to Admin (Team)"},{keys:["G","R"],description:"Go to Reports"},{keys:["G","T"],description:"Go to Treasury"},{keys:["G","S"],description:"Go to Settings"},{keys:["G","J"],description:"Go to Journal"},{keys:["G","E"],description:"Go to Events"},{keys:["G","L"],description:"Go to Luca"}]},{title:"Actions (press N, then…)",shortcuts:[{keys:["N","E"],description:"New event"},{keys:["N","J"],description:"New journal entry"}]}];function np({open:e,setOpen:t}){let n=(0,p.useRef)(null);return((0,p.useEffect)(()=>{if(e)return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n);function n(e){"Escape"===e.key&&t(!1)}},[e,t]),e)?(0,m.jsxs)("div",{className:"fixed inset-0 z-[100]",children:[(0,m.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>t(!1)}),(0,m.jsx)("div",{className:"relative flex items-start justify-center pt-[15vh]",children:(0,m.jsxs)("div",{ref:n,className:"w-full max-w-md bg-zinc-900 border border-zinc-700 rounded-xl shadow-2xl overflow-hidden",children:[(0,m.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-zinc-200 dark:border-zinc-800",children:[(0,m.jsx)("h2",{className:"text-sm font-semibold text-zinc-900 dark:text-zinc-100",children:"Keyboard shortcuts"}),(0,m.jsx)("button",{onClick:()=>t(!1),className:"p-1 text-zinc-500 hover:text-zinc-800 dark:text-zinc-200 transition-colors",children:(0,m.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,m.jsx)("div",{className:"px-5 py-4 space-y-5 max-h-[60vh] overflow-y-auto",children:nm.map(e=>(0,m.jsxs)("div",{children:[(0,m.jsx)("h3",{className:"text-[10px] uppercase tracking-wider text-zinc-500 font-medium mb-2",children:e.title}),(0,m.jsx)("div",{className:"space-y-1.5",children:e.shortcuts.map(e=>(0,m.jsxs)("div",{className:"flex items-center justify-between py-1",children:[(0,m.jsx)("span",{className:"text-sm text-zinc-700 dark:text-zinc-300",children:e.description}),(0,m.jsx)("div",{className:"flex items-center gap-1",children:e.keys.map((e,t)=>(0,m.jsxs)("span",{children:[t>0&&(0,m.jsx)("span",{className:"text-zinc-600 text-xs mx-0.5",children:"+"}),(0,m.jsx)("kbd",{className:"inline-block min-w-[22px] text-center text-[11px] font-mono text-zinc-400 border border-zinc-700 bg-zinc-800/50 rounded px-1.5 py-0.5",children:e})]},t))})]},e.description))})]},e.title))}),(0,m.jsx)("div",{className:"px-5 py-2.5 border-t border-zinc-200 dark:border-zinc-800",children:(0,m.jsxs)("p",{className:"text-[10px] text-zinc-500 text-center",children:["Press ",(0,m.jsx)("kbd",{className:"border border-zinc-700 rounded px-1 py-0.5 font-mono text-[10px]",children:"ESC"})," to close"]})})]})})]}):null}let nh="axiomatic:toggle-documents-palette";e.s(["GlobalCommandPaletteProvider",0,function({children:e}){let t=(0,v.useRouter)(),n=(0,v.usePathname)(),[r,o]=(0,p.useState)(!1),[a,i]=(0,p.useState)(""),[l,s]=(0,p.useState)(!1),c=(0,p.useCallback)(e=>{i(e?.query??""),o(!0)},[]),u=(0,p.useRef)(null),d=(0,p.useRef)(null),f=(0,p.useCallback)(()=>{u.current=null,d.current&&clearTimeout(d.current)},[]);return(0,p.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key)return(e.preventDefault(),f(),"/documents"===n||n.startsWith("/documents/"))?void window.dispatchEvent(new CustomEvent(nh)):(i(""),void o(e=>!e));if(r||l||function(){let e=document.activeElement;if(!e)return!1;let t=e.tagName;return"INPUT"===t||"TEXTAREA"===t||"SELECT"===t||!!e.isContentEditable}())return;if("?"===e.key&&!e.metaKey&&!e.ctrlKey&&!e.altKey){e.preventDefault(),s(!0),f();return}let a=e.key.toLowerCase();if("g"===u.current){f(),e.preventDefault();let n={d:"/",a:"/admin/team",r:"/accounting/reports",t:"/treasury",s:"/settings/profile",j:"/accounting/journal",e:"/accounting/events",l:h.LUCA_MODULE_HREF};
5n[a]&&t.push(n[a]);return}if("n"===u.current){f(),e.preventDefault();let n={e:"/accounting/events?new=1",j:"/accounting/journal?new=1"};n[a]&&t.push(n[a]);return}("g"===a||"n"===a)&&(u.current=a,d.current=setTimeout(f,800))}return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[n,r,l,t,f]),(0,m.jsxs)(nf.CommandPaletteProvider,{onOpen:c,children:[e,(0,m.jsx)(ns,{open:r,setOpen:o,initialQuery:a,onOpenShortcutHelp:()=>{o(!1),s(!0)}}),(0,m.jsx)(np,{open:l,setOpen:s})]})},"TOGGLE_DOCUMENTS_PALETTE_EVENT",0,nh],729007)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.