PageSourceSearch

https://kopern.ai/_next/static/chunks/dd87cd4c8cee6be6.js?dpl=dpl_5Fg45TmRWFQkKW9jZ15jgdRrEv9E

js kopern.ai collected 2026-10-05 12:24:03 UTC 41,181 bytes, 6 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,910876,755146,79244,e=>{"use strict";var t=e.i(843476),r=e.i(618566),n=e.i(874394),a=e.i(519455),o=e.i(475254);let s=(0,o.default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);e.i(678784),e.i(246349),(0,o.default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var i=e.i(271645),l=e.i(981140),d=e.i(820783),c=e.i(30030),u=e.i(369340),p=e.i(248425),m=e.i(75830),h=e.i(586318),f=e.i(726330),x=e.i(303536),g=e.i(765491),v=e.i(610772),b=e.i(853660),w=e.i(774606),j=e.i(296626),y=e.i(842727),N=e.i(991918),k=e.i(30207),C=e.i(186312),D=e.i(985369),M=["Enter"," "],R=["ArrowUp","PageDown","End"],S=["ArrowDown","PageUp","Home",...R],L={ltr:[...M,"ArrowRight"],rtl:[...M,"ArrowLeft"]},I={ltr:["ArrowLeft"],rtl:["ArrowRight"]},E="Menu",[_,P,z]=(0,m.createCollection)(E),[T,O]=(0,c.createContextScope)(E,[z,b.createPopperScope,y.createRovingFocusGroupScope]),B=(0,b.createPopperScope)(),H=(0,y.createRovingFocusGroupScope)(),[A,F]=T(E),[K,G]=T(E),U=e=>{let{__scopeMenu:r,open:n=!1,children:a,dir:o,onOpenChange:s,modal:l=!0}=e,d=B(r),[c,u]=i.useState(null),p=i.useRef(!1),m=(0,k.useCallbackRef)(s),f=(0,h.useDirection)(o);return i.useEffect(()=>{let e=()=>{p.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>p.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,t.jsx)(b.Root,{...d,children:(0,t.jsx)(A,{scope:r,open:n,onOpenChange:m,content:c,onContentChange:u,children:(0,t.jsx)(K,{scope:r,onClose:i.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:f,modal:l,children:a})})})};U.displayName=E;var V=i.forwardRef((e,r)=>{let{__scopeMenu:n,...a}=e,o=B(n);return(0,t.jsx)(b.Anchor,{...o,...a,ref:r})});V.displayName="MenuAnchor";var $="MenuPortal",[X,Y]=T($,{forceMount:void 0}),q=e=>{let{__scopeMenu:r,forceMount:n,children:a,container:o}=e,s=F($,r);return(0,t.jsx)(X,{scope:r,forceMount:n,children:(0,t.jsx)(j.Presence,{present:n||s.open,children:(0,t.jsx)(w.Portal,{asChild:!0,container:o,children:a})})})};q.displayName=$;var W="MenuContent",[J,Z]=T(W),Q=i.forwardRef((e,r)=>{let n=Y(W,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,s=F(W,e.__scopeMenu),i=G(W,e.__scopeMenu);return(0,t.jsx)(_.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(j.Presence,{present:a||s.open,children:(0,t.jsx)(_.Slot,{scope:e.__scopeMenu,children:i.modal?(0,t.jsx)(ee,{...o,ref:r}):(0,t.jsx)(et,{...o,ref:r})})})})}),ee=i.forwardRef((e,r)=>{let n=F(W,e.__scopeMenu),a=i.useRef(null),o=(0,d.useComposedRefs)(r,a);return i.useEffect(()=>{let e=a.current;if(e)return(0,C.hideOthers)(e)},[]),(0,t.jsx)(en,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,l.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),et=i.forwardRef((e,r)=>{let n=F(W,e.__scopeMenu);return(0,t.jsx)(en,{...e,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),er=(0,N.createSlot)("MenuContent.ScrollLock"),en=i.forwardRef((e,r)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:w,onDismiss:j,disableOutsideScroll:N,...k}=e,C=F(W,n),M=G(W,n),L=B(n),I=H(n),E=P(n),[_,z]=i.useState(null),T=i.useRef(null),O=(0,d.useComposedRefs)(r,T,C.onContentChange),A=i.useRef(0),K=i.useRef(""),U=i.useRef(0),V=i.useRef(null),$=i.useRef("right"),X=i.useRef(0),Y=N?D.RemoveScroll:i.Fragment;i.useEffect(()=>()=>window.clearTimeout(A.current),[]),(0,x.useFocusGuards)();let q=i.useCallback(e=>{var t,r;return $.current===V.current?.side&&(t=e,!!(r=V.current?.area)&&function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e],i=t[o],l=s.x,d=s.y,c=i.x,u=i.y;d>n!=u>n&&r<(c-l)*(n-d)/(u-d)+l&&(a=!a)}return a}({x:t.clientX,y:t.clientY},r))},[]);return(0,t.jsx)(J,{scope:n,searchRef:K,onItemEnter:i.useCallback(e=>{q(e)&&e.preventDefault()},[q]),onItemLeave:i.useCallback(e=>{q(e)||(T.current?.focus(),z(null))},[q]),onTriggerLeave:i.useCallback(e=>{q(e)&&e.preventDefault()},[q]),pointerGraceTimerRef:U,onPointerGraceIntentChange:i.useCallback(e=>{V.current=e},[]),children:(0,t.jsx)(Y,{...N?{as:er,allowPinchZoom:!0}:void 0,children:(0,t.jsx)(g.FocusScope,{asChild:!0,trapped:o,onMountAutoFocus:(0,l.composeEventHandlers)(s,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,t.jsx)(f.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:w,onDismiss:j,children:(0,t.jsx)(y.Root,{asChild:!0,...I,dir:M.dir,orientation:"vertical",loop:a,currentTabStopId:_,onCurrentTabStopIdChange:z,onEntryFocus:(0,l.composeEventHandlers)(p,e=>{M.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,t.jsx)(b.Content,{role:"menu","aria-orientation":"vertical","data-state":eI(C.open
1),"data-radix-menu-content":"",dir:M.dir,...L,...k,ref:O,style:{outline:"none",...k.style},onKeyDown:(0,l.composeEventHandlers)(k.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;if(t){var a;let t,o,s,i,l,d;"Tab"===e.key&&e.preventDefault(),!r&&n&&(a=e.key,t=K.current+a,o=E().filter(e=>!e.disabled),s=document.activeElement,i=o.find(e=>e.ref.current===s)?.textValue,l=function(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,s=(n=Math.max(o,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(s=s.filter(e=>e!==r));let i=s.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return i!==r?i:void 0}(o.map(e=>e.textValue),t,i),d=o.find(e=>e.textValue===l)?.ref.current,function e(t){K.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout(()=>e(""),1e3))}(t),d&&setTimeout(()=>d.focus()))}let o=T.current;if(e.target!==o||!S.includes(e.key))return;e.preventDefault();let s=E().filter(e=>!e.disabled).map(e=>e.ref.current);R.includes(e.key)&&s.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(s)}),onBlur:(0,l.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),K.current="")}),onPointerMove:(0,l.composeEventHandlers)(e.onPointerMove,eP(e=>{let t=e.target,r=X.current!==e.clientX;e.currentTarget.contains(t)&&r&&($.current=e.clientX>X.current?"right":"left",X.current=e.clientX)}))})})})})})})});Q.displayName=W;var ea=i.forwardRef((e,r)=>{let{__scopeMenu:n,...a}=e;return(0,t.jsx)(p.Primitive.div,{role:"group",...a,ref:r})});ea.displayName="MenuGroup";var eo=i.forwardRef((e,r)=>{let{__scopeMenu:n,...a}=e;return(0,t.jsx)(p.Primitive.div,{...a,ref:r})});eo.displayName="MenuLabel";var es="MenuItem",ei="menu.itemSelect",el=i.forwardRef((e,r)=>{let{disabled:n=!1,onSelect:a,...o}=e,s=i.useRef(null),c=G(es,e.__scopeMenu),u=Z(es,e.__scopeMenu),m=(0,d.useComposedRefs)(r,s),h=i.useRef(!1);return(0,t.jsx)(ed,{...o,ref:m,disabled:n,onClick:(0,l.composeEventHandlers)(e.onClick,()=>{let e=s.current;if(!n&&e){let t=new CustomEvent(ei,{bubbles:!0,cancelable:!0});e.addEventListener(ei,e=>a?.(e),{once:!0}),(0,p.dispatchDiscreteCustomEvent)(e,t),t.defaultPrevented?h.current=!1:c.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),h.current=!0},onPointerUp:(0,l.composeEventHandlers)(e.onPointerUp,e=>{h.current||e.currentTarget?.click()}),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{let t=""!==u.searchRef.current;n||t&&" "===e.key||M.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});el.displayName=es;var ed=i.forwardRef((e,r)=>{let{__scopeMenu:n,disabled:a=!1,textValue:o,...s}=e,c=Z(es,n),u=H(n),m=i.useRef(null),h=(0,d.useComposedRefs)(r,m),[f,x]=i.useState(!1),[g,v]=i.useState("");return i.useEffect(()=>{let e=m.current;e&&v((e.textContent??"").trim())},[s.children]),(0,t.jsx)(_.ItemSlot,{scope:n,disabled:a,textValue:o??g,children:(0,t.jsx)(y.Item,{asChild:!0,...u,focusable:!a,children:(0,t.jsx)(p.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:h,onPointerMove:(0,l.composeEventHandlers)(e.onPointerMove,eP(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,l.composeEventHandlers)(e.onPointerLeave,eP(e=>c.onItemLeave(e))),onFocus:(0,l.composeEventHandlers)(e.onFocus,()=>x(!0)),onBlur:(0,l.composeEventHandlers)(e.onBlur,()=>x(!1))})})})}),ec=i.forwardRef((e,r)=>{let{checked:n=!1,onCheckedChange:a,...o}=e;return(0,t.jsx)(ev,{scope:e.__scopeMenu,checked:n,children:(0,t.jsx)(el,{role:"menuitemcheckbox","aria-checked":eE(n)?"mixed":n,...o,ref:r,"data-state":e_(n),onSelect:(0,l.composeEventHandlers)(o.onSelect,()=>a?.(!!eE(n)||!n),{checkForDefaultPrevented:!1})})})});ec.displayName="MenuCheckboxItem";var eu="MenuRadioGroup",[ep,em]=T(eu,{value:void 0,onValueChange:()=>{}}),eh=i.forwardRef((e,r)=>{let{value:n,onValueChange:a,...o}=e,s=(0,k.useCallbackRef)(a);return(0,t.jsx)(ep,{scope:e.__scopeMenu,value:n,onValueChange:s,children:(0,t.jsx)(ea,{...o,ref:r})})});eh.displayName=eu;var ef="MenuRadioItem",ex=i.forwardRef((e,r)=>{let{value:n,...a}=e,o=em(ef,e.__scopeMenu),s=n===o.value;return(0,t.jsx)(ev,{scope:e.__scopeMenu,checked:s,children:(0,t.jsx)(el,{role:"menuitemradio","aria-checked":s,...a,ref:r,"data-state":e_(s),onSelect:(0,l.composeEventHandlers)(a.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ex.displayName=ef;var eg="MenuItemIndicator",[ev,eb]=T(eg,{checked:!1}
1),ew=i.forwardRef((e,r)=>{let{__scopeMenu:n,forceMount:a,...o}=e,s=eb(eg,n);return(0,t.jsx)(j.Presence,{present:a||eE(s.checked)||!0===s.checked,children:(0,t.jsx)(p.Primitive.span,{...o,ref:r,"data-state":e_(s.checked)})})});ew.displayName=eg;var ej=i.forwardRef((e,r)=>{let{__scopeMenu:n,...a}=e;return(0,t.jsx)(p.Primitive.div,{role:"separator","aria-orientation":"horizontal",...a,ref:r})});ej.displayName="MenuSeparator";var ey=i.forwardRef((e,r)=>{let{__scopeMenu:n,...a}=e,o=B(n);return(0,t.jsx)(b.Arrow,{...o,...a,ref:r})});ey.displayName="MenuArrow";var eN="MenuSub",[ek,eC]=T(eN),eD=e=>{let{__scopeMenu:r,children:n,open:a=!1,onOpenChange:o}=e,s=F(eN,r),l=B(r),[d,c]=i.useState(null),[u,p]=i.useState(null),m=(0,k.useCallbackRef)(o);return i.useEffect(()=>(!1===s.open&&m(!1),()=>m(!1)),[s.open,m]),(0,t.jsx)(b.Root,{...l,children:(0,t.jsx)(A,{scope:r,open:a,onOpenChange:m,content:u,onContentChange:p,children:(0,t.jsx)(ek,{scope:r,contentId:(0,v.useId)(),triggerId:(0,v.useId)(),trigger:d,onTriggerChange:c,children:n})})})};eD.displayName=eN;var eM="MenuSubTrigger",eR=i.forwardRef((e,r)=>{let n=F(eM,e.__scopeMenu),a=G(eM,e.__scopeMenu),o=eC(eM,e.__scopeMenu),s=Z(eM,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:p}=s,m={__scopeMenu:e.__scopeMenu},h=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>h,[h]),i.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),p(null)}},[u,p]),(0,t.jsx)(V,{asChild:!0,...m,children:(0,t.jsx)(ed,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":eI(n.open),...e,ref:(0,d.composeRefs)(r,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,l.composeEventHandlers)(e.onPointerMove,eP(t=>{s.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||c.current||(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100)))})),onPointerLeave:(0,l.composeEventHandlers)(e.onPointerLeave,eP(e=>{h();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,a="right"===r,o=t[a?"left":"right"],i=t[a?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:o,y:t.top},{x:i,y:t.top},{x:i,y:t.bottom},{x:o,y:t.bottom}],side:r}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,t=>{let r=""!==s.searchRef.current;e.disabled||r&&" "===t.key||L[a.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});eR.displayName=eM;var eS="MenuSubContent",eL=i.forwardRef((e,r)=>{let n=Y(W,e.__scopeMenu),{forceMount:a=n.forceMount,...o}=e,s=F(W,e.__scopeMenu),c=G(W,e.__scopeMenu),u=eC(eS,e.__scopeMenu),p=i.useRef(null),m=(0,d.useComposedRefs)(r,p);return(0,t.jsx)(_.Provider,{scope:e.__scopeMenu,children:(0,t.jsx)(j.Presence,{present:a||s.open,children:(0,t.jsx)(_.Slot,{scope:e.__scopeMenu,children:(0,t.jsx)(en,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:m,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{c.isUsingKeyboardRef.current&&p.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,l.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==u.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,l.composeEventHandlers)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=I[c.dir].includes(e.key);t&&r&&(s.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function eI(e){return e?"open":"closed"}function eE(e){return"indeterminate"===e}function e_(e){return eE(e)?"indeterminate":e?"checked":"unchecked"}function eP(e){return t=>"mouse"===t.pointerType?e(t):void 0}eL.displayName=eS;var ez="DropdownMenu",[eT,eO]=(0,c.createContextScope)(ez,[O]),eB=O(),[eH,eA]=eT(ez),eF=e=>{let{__scopeDropdownMenu:r,children:n,dir:a,open:o,defaultOpen:s,onOpenChange:l,modal:d=!0}=e,c=eB(r),p=i.useRef(null),[m,h]=(0,u.useControllableState)({prop:o,defaultProp:s??!1,onChange:l,caller:ez});return(0,t.jsx)(eH,{scope:r,triggerId:(0,v.useId)(),triggerRef:p,contentId:(0,v.useId)(),open:m,onOpenChange:h,onOpenToggle:i.useCallback(()=>h(e=>!e),[h]),modal:d,children:(0,t.jsx)(U,{...c,open:m,onOpenChange:h,dir:a,modal:d,children:n})})};eF.displayName=ez;var eK="DropdownMenuTrigger",eG=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,disabled:a=!1,...o}=e,s=eA(eK,n),i=eB(n);return(0,t.jsx)(V,{asChild:!0,...i,children:(0,t.jsx)(p.Primitive.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...o,ref:(0,d.composeRefs)(r,s.triggerRef),onPointerDown:(0,l.composeEventHandlers)(e.onPointerDown,e=>{!a&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,l.composeEventHandlers)(e.onKeyDown,e=>
1{!a&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eG.displayName=eK;var eU=e=>{let{__scopeDropdownMenu:r,...n}=e,a=eB(r);return(0,t.jsx)(q,{...a,...n})};eU.displayName="DropdownMenuPortal";var eV="DropdownMenuContent",e$=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eA(eV,n),s=eB(n),d=i.useRef(!1);return(0,t.jsx)(Q,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...a,ref:r,onCloseAutoFocus:(0,l.composeEventHandlers)(e.onCloseAutoFocus,e=>{d.current||o.triggerRef.current?.focus(),d.current=!1,e.preventDefault()}),onInteractOutside:(0,l.composeEventHandlers)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e$.displayName=eV;var eX=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(ea,{...o,...a,ref:r})});eX.displayName="DropdownMenuGroup";var eY=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(eo,{...o,...a,ref:r})});eY.displayName="DropdownMenuLabel";var eq=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(el,{...o,...a,ref:r})});eq.displayName="DropdownMenuItem";var eW=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(ec,{...o,...a,ref:r})});eW.displayName="DropdownMenuCheckboxItem";var eJ=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(eh,{...o,...a,ref:r})});eJ.displayName="DropdownMenuRadioGroup";var eZ=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(ex,{...o,...a,ref:r})});eZ.displayName="DropdownMenuRadioItem";var eQ=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(ew,{...o,...a,ref:r})});eQ.displayName="DropdownMenuItemIndicator";var e0=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(ej,{...o,...a,ref:r})});e0.displayName="DropdownMenuSeparator";var e1=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(ey,{...o,...a,ref:r})});e1.displayName="DropdownMenuArrow";var e4=e=>{let{__scopeDropdownMenu:r,children:n,open:a,onOpenChange:o,defaultOpen:s}=e,i=eB(r),[l,d]=(0,u.useControllableState)({prop:a,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return(0,t.jsx)(eD,{...i,open:l,onOpenChange:d,children:n})},e2=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(eR,{...o,...a,ref:r})});e2.displayName="DropdownMenuSubTrigger";var e5=i.forwardRef((e,r)=>{let{__scopeDropdownMenu:n,...a}=e,o=eB(n);return(0,t.jsx)(eL,{...o,...a,ref:r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e5.displayName="DropdownMenuSubContent",e.s(["Arrow",()=>e1,"CheckboxItem",()=>eW,"Content",()=>e$,"DropdownMenu",()=>eF,"DropdownMenuArrow",()=>e1,"DropdownMenuCheckboxItem",()=>eW,"DropdownMenuContent",()=>e$,"DropdownMenuGroup",()=>eX,"DropdownMenuItem",()=>eq,"DropdownMenuItemIndicator",()=>eQ,"DropdownMenuLabel",()=>eY,"DropdownMenuPortal",()=>eU,"DropdownMenuRadioGroup",()=>eJ,"DropdownMenuRadioItem",()=>eZ,"DropdownMenuSeparator",()=>e0,"DropdownMenuSub",()=>e4,"DropdownMenuSubContent",()=>e5,"DropdownMenuSubTrigger",()=>e2,"DropdownMenuTrigger",()=>eG,"Group",()=>eX,"Item",()=>eq,"ItemIndicator",()=>eQ,"Label",()=>eY,"Portal",()=>eU,"RadioGroup",()=>eJ,"RadioItem",()=>eZ,"Root",()=>eF,"Separator",()=>e0,"Sub",()=>e4,"SubContent",()=>e5,"SubTrigger",()=>e2,"Trigger",()=>eG,"createDropdownMenuScope",()=>eO],540666);var e6=e.i(540666),e6=e6,e3=e.i(975157);function e9({...e}){return(0,t.jsx)(e6.Root,{"data-slot":"dropdown-menu",...e})}function e8({...e}){return(0,t.jsx)(e6.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function e7({className:e,sideOffset:r=4,...n}){return(0,t.jsx)(e6.Portal,{children:(0,t.jsx)(e6.Content,{"data-slot":"dropdown-menu-content",sideOffset:r,className:(0,e3.cn)("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",e),...n})})}function te({className:e,inset:r,variant:n="default",...a}){return(0,t.jsx)(e6.Item,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":n,className:(0,e3.cn)("relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",e),...a})}function tt({className:e,...r}){return(0,t.jsx)(e6.Separator,{"data-slot":"dropdown-menu-separator",className:(0,e3.cn)("-mx-1 my-1 h-px bg-border",e),...r})}e.s(["DropdownMenu",()=>e9,"DropdownMenuContent",()=>e7,"DropdownMenuItem",()=>te,"DropdownMenuSeparator",()=>tt,"DropdownMenuTrigger",()=>e8],755146);let tr={en:"English",fr:"Français"};function tn(){let e=(0,n.useLocale)(),o=(0,r.usePathname)(),i=(0,r.useRouter)();return(0,t.jsxs)(e9,{children:[(0,t.jsx)(e8,{asChild:!0,children:(0,t.jsx)(a.Button,{variant:"ghost",size:"icon",className:"hover:!bg-transparent dark:hover:!bg-transparent border border-transparent hover:border-primary/50",children:(0,t.jsx)(s,{className:"h-4 w-4"})})}),(0,t.jsx)(e7,{align:"end",children:Object.entries(tr).map(([r,n])=>(0,t.jsx)(te,{onClick:()=>{let e,t;return(e=o.split("/"))[1]=r,t=e.join("/"),void(Object.assign(document,{cookie:`NEXT_LOCALE=${r};path=/;max-age=31536000`}),i.push(t))},className:e===r?"bg-accent":"",children:n},r))})]})}e.s(["LocaleSwitcher",()=>tn],910876);var ta=e.i(754338),to=e.i(710289),ts=e.i(350682),ti=e.i(878894),tl=e.i(63209),td=e.i(952571),tc=e.i(531278),tu=e.i(595468),tp=e.i(776639),tm=e.i(624687),th=e.i(793479),tf=e.i(487486);let tx={low:{icon:td.Info,color:"text-blue-500",badgeClass:"border-blue-500/30 bg-blue-500/10 text-blue-600 dark:text-blue-400"},medium:{icon:ti.AlertTriangle,color:"text-yellow-500",badgeClass:"border-yellow-500/30 bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"},high:{icon:tl.AlertCircle,color:"text-red-500",badgeClass:"border-red-500/30 bg-red-500/10 text-red-600 dark:text-red-400"}};function tg(){let[e,r]=(0,i.useState)("medium"),[o,s]=(0,i.useState)(""),[l,d]=(0,i.useState)(""),[c,u]=(0,i.useState)(!1),[p,m]=(0,i.useState)(!1),[h,f]=(0,i.useState)(!1),x=(0,n.useDictionary)(),{user:g}=(0,ta.useAuth)();(0,i.useEffect)(()=>{g?.email&&!l&&d(g.email)},[g?.email]);let v={low:x.bugReport.low,medium:x.bugReport.medium,high:x.bugReport.high},b={low:"LOW",medium:"MEDIUM",high:"HIGH"};async function w(){m(!0);try{if(!(await fetch("/api/bug-report",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({severity:e,description:o,pageUrl:window.location.href,reporterEmail:l.trim()||void 0})})).ok)throw Error("Failed");f(!0),setTimeout(()=>{u(!1),f(!1),s(""),d(""),r("medium")},1500)}catch{let t=encodeURIComponent(`[Kopern Bug] [${b[e]}] Bug Report`),n=encodeURIComponent(`Severity: ${b[e]}
2
3${o}
4
5---
6URL: ${window.location.href}`);window.open(`mailto:[email protected]?subject=${t}&body=${n}`,"_self"),u(!1),s(""),d(""),r("medium")}finally{m(!1)}}return(0,t.jsxs)(tp.Dialog,{open:c,onOpenChange:u,children:[(0,t.jsx)(tp.DialogTrigger,{asChild:!0,children:(0,t.jsxs)(a.Button,{variant:"outline",size:"sm",className:"gap-2 border-destructive/40 text-destructive hover:bg-destructive/10 hover:text-destructive dark:border-red-500/30 dark:text-red-400 dark:hover:bg-red-500/10",children:[(0,t.jsx)(to.Bug,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:x.bugReport.button})]})}),(0,t.jsxs)(tp.DialogContent,{className:"sm:max-w-md",children:[(0,t.jsxs)(tp.DialogHeader,{children:[(0,t.jsxs)(tp.DialogTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(to.Bug,{className:"h-5 w-5 text-primary"}),x.bugReport.title]}),(0,t.jsx)(tp.DialogDescription,{children:x.bugReport.description})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium",children:x.bugReport.severity}),(0,t.jsx)("div",{className:"flex flex-col gap-2",children:["low","medium","high"].map(n=>{let a=tx[n],o=a.icon,s=e===n;return(0,t.jsxs)("button",{onClick:()=>r(n),className:(0,e3.cn)("flex items-center gap-3 rounded-lg border px-3 py-2.5 text-left text-sm transition-all",s?"border-primary/50 bg-primary/5 ring-1 ring-primary/20":"border-border hover:border-border/80 hover:bg-muted/50"),children:[(0,t.jsx)(o,{className:(0,e3.cn)("h-4 w-4 shrink-0",a.color)}),(0,t.jsx)("span",{className:"flex-1",children:v[n]}),s&&(0,t.jsx)(tf.Badge,{className:a.badgeClass,variant:"outline",children:b[n]})]},n)})})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium",children:x.bugReport.descriptionLabel}),(0,t.jsx)(tm.Textarea,{value:o,onChange:e=>s(e.target.value),placeholder:x.bugReport.descriptionPlaceholder,className:"min-h-[120px] resize-none"})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("label",{className:"text-sm font-medium",children:[x.bugReport.emailLabel," ",(0,t.jsxs)("span",{className:"text-muted-foreground font-normal",children:["(",x.bugReport.emailOptional,")"]})]}
6),(0,t.jsx)(th.Input,{type:"email",value:l,onChange:e=>d(e.target.value),placeholder:x.bugReport.emailPlaceholder}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:x.bugReport.emailHint})]})]}),(0,t.jsxs)(tp.DialogFooter,{className:"flex-col gap-3 sm:flex-col",children:[(0,t.jsx)(a.Button,{onClick:w,disabled:o.trim().length<10||p||h,className:"w-full",children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tu.CheckCircle2,{className:"h-4 w-4 mr-2"}),x.bugReport.sent]}):p?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(tc.Loader2,{className:"h-4 w-4 mr-2 animate-spin"}),x.bugReport.sending]}):x.bugReport.send}),(0,t.jsxs)("div",{className:"flex items-center justify-center gap-2 text-xs text-muted-foreground",children:[(0,t.jsx)("span",{children:x.bugReport.contribute}),(0,t.jsxs)("a",{href:"https://github.com/berch-t/kopern",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-primary hover:underline",children:[(0,t.jsx)(ts.Github,{className:"h-3.5 w-3.5"}),x.bugReport.githubCta]})]})]})]})]})}e.s(["BugReportDialog",()=>tg],79244)},980376,e=>{"use strict";var t=e.i(843476),r=e.i(995926),n=e.i(964053),a=e.i(975157);function o({...e}){return(0,t.jsx)(n.Dialog.Root,{"data-slot":"sheet",...e})}function s({...e}){return(0,t.jsx)(n.Dialog.Trigger,{"data-slot":"sheet-trigger",...e})}function i({...e}){return(0,t.jsx)(n.Dialog.Portal,{"data-slot":"sheet-portal",...e})}function l({className:e,...r}){return(0,t.jsx)(n.Dialog.Overlay,{"data-slot":"sheet-overlay",className:(0,a.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...r})}function d({className:e,children:o,side:s="right",showCloseButton:d=!0,...c}){return(0,t.jsxs)(i,{children:[(0,t.jsx)(l,{}),(0,t.jsxs)(n.Dialog.Content,{"data-slot":"sheet-content",className:(0,a.cn)("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500","right"===s&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm","left"===s&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm","top"===s&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top","bottom"===s&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e),...c,children:[o,d&&(0,t.jsxs)(n.Dialog.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,t.jsx)(r.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function c({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,a.cn)("flex flex-col gap-1.5 p-4",e),...r})}function u({className:e,...r}){return(0,t.jsx)(n.Dialog.Title,{"data-slot":"sheet-title",className:(0,a.cn)("font-semibold text-foreground",e),...r})}e.s(["Sheet",()=>o,"SheetContent",()=>d,"SheetHeader",()=>c,"SheetTitle",()=>u,"SheetTrigger",()=>s])},934086,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(618566),a=e.i(920636),o=e.i(754338),s=e.i(874394),i=e.i(924417),l=e.i(807088),d=e.i(910876),c=e.i(79244),u=e.i(519455),p=e.i(772436),m=e.i(755146),h=e.i(980376),f=e.i(21218),x=e.i(810980),g=e.i(664659),v=e.i(354385),b=e.i(997625),w=e.i(561659),j=e.i(212426),y=e.i(350682),N=e.i(834161),k=e.i(260289),C=e.i(475254);let D=(0,C.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);var M=e.i(492161);let R=(0,C.default)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}
6],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]]);var S=e.i(618393),L=e.i(239616),I=e.i(283086),E=e.i(284614);let _="gap-2 font-semibold text-muted-foreground hover:text-foreground hover:!bg-transparent dark:hover:!bg-transparent border border-transparent hover:border-primary/50";function P({variant:e="public",isLanding:C=!1}){let P=(0,s.useDictionary)();(0,n.usePathname)();let z=(0,l.useLocalizedRouter)(),T=(0,o.useAuth)(),[O,B]=(0,r.useState)(null),[H,A]=(0,r.useState)(!0);(0,r.useEffect)(()=>{if("dashboard"!==e)return(0,a.onAuthChanged)(e=>{B(e),A(!1)})},[e]);let F="dashboard"===e?T?.user??null:O,K="dashboard"!==e&&H,[G,U]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if("dashboard"===e)return;let t=()=>U(window.scrollY>20);return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[e]);let V=[{label:P.nav.grader,href:"/grader",icon:v.ClipboardCheck},{label:P.nav.monitor,href:"/monitor",icon:f.Activity}],$=[{label:P.nav.docs,href:F?"/docs":null,icon:x.BookOpen,onClick:F?void 0:function(){C?document.getElementById("how-it-works")?.scrollIntoView({behavior:"smooth"}):z.push("/#how-it-works")}},{label:P.nav.apiReference,href:"/api-reference",icon:b.Code2},{label:P.nav.mcpDocs,href:"/mcp",icon:S.Server}],X="public"===e,Y=X?`sticky top-0 z-50 backdrop-blur-sm transition-all duration-300 ${G?"bg-background/50 border-b border-accent shadow-[0_2px_16px_oklch(0.7677_0.1606_310.19_/_0.5)]":"bg-background"}`:"flex h-14 items-center border-b border-border/60",q=X?"flex items-center px-4 md:px-6 py-4 max-w-6xl mx-auto":"flex flex-1 items-center justify-between px-4 md:px-6";return(0,t.jsx)("div",{className:Y,children:(0,t.jsxs)("nav",{className:q,children:[X?(0,t.jsx)(function(){return(0,t.jsxs)(h.Sheet,{children:[(0,t.jsx)(h.SheetTrigger,{asChild:!0,children:(0,t.jsx)(u.Button,{variant:"ghost",size:"icon",className:"md:hidden h-11 w-11 shrink-0",children:(0,t.jsx)(M.Menu,{className:"h-5 w-5"})})}),(0,t.jsxs)(h.SheetContent,{side:"left",className:"w-72 p-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 p-4 border-b",children:[(0,t.jsx)("img",{src:"/logo_small.png",alt:"Kopern",className:"h-7"}),(0,t.jsx)("span",{className:"font-semibold",children:"Kopern"})]}),(0,t.jsxs)("nav",{className:"flex flex-col gap-1 p-4 overflow-y-auto",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-accent px-3 pt-3 pb-1",children:P.nav.quality}),V.map(e=>(0,t.jsx)(i.LocalizedLink,{href:e.href,children:(0,t.jsxs)(u.Button,{variant:"ghost",className:"justify-start gap-3 h-11 w-full font-semibold text-accent pl-6",children:[(0,t.jsx)(e.icon,{className:"h-4 w-4"})," ",e.label]})},e.label)),(0,t.jsx)(i.LocalizedLink,{href:"/examples",children:(0,t.jsxs)(u.Button,{variant:"ghost",className:"justify-start gap-3 h-11 w-full font-semibold",children:[(0,t.jsx)(I.Sparkles,{className:"h-4 w-4"})," Templates"]})}),(0,t.jsx)("p",{className:"text-xs font-semibold text-muted-foreground px-3 pt-3 pb-1",children:P.nav.docs}),$.map(e=>e.href?(0,t.jsx)(i.LocalizedLink,{href:e.href,children:(0,t.jsxs)(u.Button,{variant:"ghost",className:"justify-start gap-3 h-11 w-full font-semibold pl-6",children:[(0,t.jsx)(e.icon,{className:"h-4 w-4"})," ",e.label]})},e.label):(0,t.jsxs)(u.Button,{variant:"ghost",className:"justify-start gap-3 h-11 w-full font-semibold pl-6",onClick:e.onClick,children:[(0,t.jsx)(e.icon,{className:"h-4 w-4"})," ",e.label]},e.label)),(0,t.jsx)(i.LocalizedLink,{href:"/blog",children:(0,t.jsxs)(u.Button,{variant:"ghost",className:"justify-start gap-3 h-11 w-full font-semibold",children:[(0,t.jsx)(R,{className:"h-4 w-4"})," Blog"]})}),(0,t.jsx)(i.LocalizedLink,{href:"/pricing",children:(0,t.jsxs)(u.Button,{variant:"ghost",className:"justify-start gap-3 h-11 w-full font-semibold",children:[(0,t.jsx)(j.DollarSign,{className:"h-4 w-4"})," ",P.nav.pricing]})}),(0,t.jsx)(p.Separator,{className:"my-2"}),(0,t.jsx)("a",{href:"https://github.com/berch-t/kopern",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsxs)(u.Button,{variant:"ghost",className:"justify-start gap-3 h-11 w-full font-semibold",children:[(0,t.jsx)(y.Github,{className:"h-4 w-4"})," GitHub"]})}),!K&&!F&&(0,t.jsx)(i.LocalizedLink,{href:"/login",children:(0,t.jsx)(u.Button,{variant:"outline",className:"w-full mt-2",children:P.common.signIn})}),!K&&F&&(0,t.jsx)(i.LocalizedLink,{href:"/dashboard",children:(0,t.jsxs)(u.Button,{variant:"outline",className:"w-full mt-2 gap-2",children:[(0,t.jsx)(k.LayoutDashboard,{className:"h-4 w-4"}),P.landing.ctaDashboard]})})]})]})]})},{}):(0,t.jsx)("div",{}),X&&!C&&(0,t.jsx)(i.LocalizedLink,{href:"/",className:"hidden md:flex items-center shrink-0",children:(0,t.jsx)("img",{src:"/logo_small.png",alt:"Kopern",className:"h-7"})}),X&&(0,t.jsx)(function(){return(0,t.jsxs)("div",{className:"flex-1 hidden md:flex items-center justify-center gap-1",children:[(0,t.jsxs)(m.DropdownMenu,{children:[(0,t.jsx)(m.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(u.Button,{variant:"ghost",size:"sm",className:`${_} !text-accent`,children:[(0,t.jsx)(v.ClipboardCheck,{className:"h-4 w-4"}),P.nav.quality,(0,t.jsx)(g.ChevronDown,{className:"h-3 w-3 ml-0.5 opacity-60"})]})}),(0,t.jsx)(m.DropdownMenuContent,{align:"center",className:"w-48 bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100",children:V.map(e=>(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,className:"text-zinc-900 dark:text-zinc-100 focus:text-zinc-900 dark:focus:text-zinc-100",children:(0,t.jsxs)(i.LocalizedLink,{href:e.href,className:"flex items-center gap-2 w-full",children:[(0,t.jsx)(e.icon,{className:"h-4 w-4"}),e.label]})},e.label))})]}),(0,t.jsx)(i.LocalizedLink,{href:"/examples",children:(0,t.jsxs)(u.Button,{variant:"ghost",size:"sm",className:_,children:[(0,t.jsx)(I.Sparkles,{className:"h-4 w-4"}),"Templates"]})}),(0,t.jsxs)(m.DropdownMenu,{children:[(0,t.jsx)(m.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(u.Button,{variant:"ghost",size:"sm",className:`${_} !text-accent`,children:[(0,t.jsx)(x.BookOpen,{className:"h-4 w-4"}),P.nav.docs,(0,t.jsx)(g.ChevronDown,{className:"h-3 w-3 ml-0.5 opacity-60"})]})}),(0,t.jsx)(m.DropdownMenuContent,{align:"center",className:"w-48 bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100",children:$.map(e=>e.href?(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,className:"text-zinc-900 dark:text-zinc-100 focus:text-zinc-900 dark:focus:text-zinc-100",children:(0,t.jsxs)(i.LocalizedLink,{href:e.href,className:"flex items-center gap-2 w-full",children:[(0,t.jsx)(e.icon,{className:"h-4 w-4"}),e.label]})},e.label):(0,t.jsxs)(m.DropdownMenuItem,{onClick:e.onClick,className:"flex items-center gap-2 cursor-pointer text-zinc-900 dark:text-zinc-100 focus:text-zinc-900 dark:focus:text-zinc-100",children:[(0,t.jsx)(e.icon,{className:"h-4 w-4"}),e.label]},e.label))})]}),(0,t.jsx)(i.LocalizedLink,{href:"/blog",children:(0,t.jsxs)(u.Button,{variant:"ghost",size:"sm",className:_,children:[(0,t.jsx)(R,{className:"h-4 w-4"}),"Blog"]})}),(0,t.jsx)(i.LocalizedLink,{href:"/pricing",children:(0,t.jsxs)(u.Button,{variant:"ghost",size:"sm",className:_,children:[(0,t.jsx)(j.DollarSign,{className:"h-4 w-4"}),P.nav.pricing]})})]})},{}),X&&(0,t.jsx)("div",{className:"flex-1 md:hidden"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,t.jsx)("div",{className:X?"hidden md:block":"",children:(0,t.jsx)(c.BugReportDialog,{})}),(0,t.jsx)("a",{href:"https://github.com/berch-t/kopern",target:"_blank",rel:"noopener noreferrer",className:X?"hidden md:block":"",children:(0,t.jsx)(u.Button,{variant:"ghost",size:"icon",className:"h-9 w-9 text-muted-foreground hover:text-foreground hover:!bg-transparent dark:hover:!bg-transparent border border-transparent hover:border-primary/50",children:(0,t.jsx)(y.Github,{className:"h-4 w-4"})})}),(0,t.jsx)(d.LocaleSwitcher,{}),K?(0,t.jsx)("div",{className:"h-9 w-20 animate-pulse rounded-md bg-muted hidden md:block"}):F?(0,t.jsxs)(t.Fragment,{children:[X&&(0,t.jsx)(i.LocalizedLink,{href:"/dashboard",className:"hidden md:block",children:(0,t.jsxs)(u.Button,{variant:"outline",className:"gap-2 font-semibold",children:[(0,t.jsx)(k.LayoutDashboard,{className:"h-4 w-4"}),P.landing.ctaDashboard]})}),(0,t.jsx)(function(){return F?(0,t.jsxs)(m.DropdownMenu,{children:[(0,t.jsx)(m.DropdownMenuTrigger,{asChild:!0,children:F.photoURL?(0,t.jsx)("button",{className:"h-9 w-9 rounded-full overflow-hidden border hover:ring-2 hover:ring-primary/40 transition-all",children:(0,t.jsx)("img",{src:F.photoURL,alt:F.displayName||"Profile",className:"h-full w-full object-cover",referrerPolicy:"no-referrer"})}):(0,t.jsx)(u.Button,{variant:"ghost",size:"icon",className:"h-9 w-9",children:(0,t.jsx)(E.User,{className:"h-4 w-4"})})}),(0,t.jsxs)(m.DropdownMenuContent,{align:"end",className:"w-52 bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100",children:[(0,t.jsxs)(m.DropdownMenuItem,{disabled:!0,className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium truncate max-w-full",children:F.displayName||F.email}),F.displayName&&(0,t.jsx)("span",{className:"text-[10px] text-muted-foreground truncate max-w-full",children:F.email})]}),(0,t.jsx)(m.DropdownMenuSeparator,{}),(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(i.LocalizedLink,{href:"/dashboard",className:"flex items-center gap-2 w-full",children:[(0,t.jsx)(k.LayoutDashboard,{className:"h-4 w-4"}),P.nav.dashboard]})}),(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(i.LocalizedLink,{href:"/settings",className:"flex items-center gap-2 w-full",children:[(0,t.jsx)(L.Settings,{className:"h-4 w-4"}),P.nav.settings]})}),(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(i.LocalizedLink,{href:"/api-keys",className:"flex items-center gap-2 w-full",children:[(0,t.jsx)(N.Key,{className:"h-4 w-4"}),P.nav.api]})}),(0,t.jsx)(m.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(i.LocalizedLink,{href:"/billing",className:"flex items-center gap-2 w-full",children:[(0,t.jsx)(w.CreditCard,{className:"h-4 w-4"}),P.nav.billing]})}),(0,t.jsx)(m.DropdownMenuSeparator,{}),(0,t.jsxs)(m.DropdownMenuItem,{onClick:()=>(0,a.signOut)(),className:"text-destructive focus:text-destructive",children:[(0,t.jsx)(D,{className:"mr-2 h-4 w-4"}),P.common.signOut]})]})]}):null},{})]}):X&&(0,t.jsx)(i.LocalizedLink,{href:"/login",className:"hidden md:block",children:(0,t.jsx)(u.Button,{variant:"outline",className:"font-semibold",children:P.common.signIn})})]})]})})}e.s(["SharedNavbar",()=>P],934086)}]);

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.