PageSourceSearch

https://www.sahityapath.in/_next/static/chunks/11b6a6bff2c2134d.js

js sahityapath.in collected 2026-09-24 15:03:06 UTC 62,307 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46778,e=>{"use strict";let t;var n,r,o,i,a,l,s,u,c=e.i(91398),d=e.i(90192),f=e.i(83497),p=e.i(13144),h=e.i(11425),m=e.i(91788);function v(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function g(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function y(...e){return t=>{let n=!1,r=e.map(e=>{let r=g(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():g(e[t],null)}}}}function w(...e){return m.useCallback(y(...e),e)}function x(e,t=[]){let n=[],r=()=>{let t=n.map(e=>m.createContext(e));return function(n){let r=n?.[e]||t;return m.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=m.createContext(r),i=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,l=n?.[e]?.[i]||o,s=m.useMemo(()=>a,Object.values(a));return(0,c.jsx)(l.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let l=a?.[e]?.[i]||o,s=m.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 m.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}"undefined"!=typeof window&&window.document&&window.document.createElement;var b=e.i(30943);function E(e){var t;let n,r=(t=e,(n=m.forwardRef((e,t)=>{let{children:n,...r}=e;if(m.isValidElement(n)){var o;let e,i,a=(o=n,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(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],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==m.Fragment&&(l.ref=t?y(t,a):a),m.cloneElement(n,l)}return m.Children.count(n)>1?m.Children.only(null):null})).displayName=`${t}.SlotClone`,n),o=m.forwardRef((e,t)=>{let{children:n,...o}=e,i=m.Children.toArray(n),a=i.find(R);if(a){let e=a.props.children,n=i.map(t=>t!==a?t:m.Children.count(e)>1?m.Children.only(null):m.isValidElement(e)?e.props.children:null);return(0,c.jsx)(r,{...o,ref:t,children:m.isValidElement(e)?m.cloneElement(e,void 0,n):null})}return(0,c.jsx)(r,{...o,ref:t,children:n})});return o.displayName=`${e}.Slot`,o}var C=Symbol("radix.slottable");function R(e){return m.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===C}var A=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=E(`Primitive.${t}`),r=m.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function L(e){let t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...e)=>t.current?.(...e),[])}var k="dismissableLayer.update",S=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),T=m.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...u}=e,d=m.useContext(S),[f,p]=m.useState(null),h=f?.ownerDocument??globalThis?.document,[,g]=m.useState({}),y=w(t,e=>p(e)),x=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(b),C=f?x.indexOf(f):-1,R=d.layersWithOutsidePointerEventsDisabled.size>0,T=C>=E,P=function(e,t=globalThis?.document){let n=L(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{let e=e=>
1{if(e.target&&!r.current){let r=function(){j("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={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},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));T&&!n&&(o?.(e),a?.(e),e.defaultPrevented||l?.())},h),O=function(e,t=globalThis?.document){let n=L(e),r=m.useRef(!1);return m.useEffect(()=>{let e=e=>{e.target&&!r.current&&j("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;![...d.branches].some(e=>e.contains(t))&&(i?.(e),a?.(e),e.defaultPrevented||l?.())},h);return!function(e,t=globalThis?.document){let n=L(e);m.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=>{C===d.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),m.useEffect(()=>{if(f)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(s=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),N(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=s)}},[f,h,n,d]),m.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),N())},[f,d]),m.useEffect(()=>{let e=()=>g({});return document.addEventListener(k,e),()=>document.removeEventListener(k,e)},[]),(0,c.jsx)(A.div,{...u,ref:y,style:{pointerEvents:R?T?"auto":"none":void 0,...e.style},onFocusCapture:v(e.onFocusCapture,O.onFocusCapture),onBlurCapture:v(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:v(e.onPointerDownCapture,P.onPointerDownCapture)})});function N(){let e=new CustomEvent(k);document.dispatchEvent(e)}function j(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&o.addEventListener(e,t,{once:!0}),r)o&&b.flushSync(()=>o.dispatchEvent(i));else o.dispatchEvent(i)}T.displayName="DismissableLayer",m.forwardRef((e,t)=>{let n=m.useContext(S),r=m.useRef(null),o=w(t,r);return m.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(A.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var P=0;function O(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _="focusScope.autoFocusOnMount",M="focusScope.autoFocusOnUnmount",D={bubbles:!1,cancelable:!0},F=m.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=m.useState(null),u=L(o),d=L(i),f=m.useRef(null),p=w(t,e=>s(e)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let e=function(e){if(h.paused||!l)return;let t=e.target;l.contains(t)?f.current=t:B(f.current,{select:!0})},t=function(e){if(h.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||B(f.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&&B(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,h.paused]),m.useEffect(()=>{if(l){H.add(h);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(_,D);l.addEventListener(_,u),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(B(r,{select:t}),document.activeElement!==n)return}(W(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&B(l))}return()=>{l.removeEventListener(_,u),setTimeout(()=>{let t=new CustomEvent(M,D);l.addEventListener(M,d),l.dispatchEvent(t),t.defaultPrevented||B(e??document.body,{select:!0}),l.removeEventListener(M,d),H.remove(h)}
1,0)}}},[l,u,d,h]);let v=m.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 i;let t,r=e.currentTarget,[a,l]=[I(t=W(i=r),i),I(t.reverse(),i)];a&&l?e.shiftKey||o!==l?e.shiftKey&&o===a&&(e.preventDefault(),n&&B(l,{select:!0})):(e.preventDefault(),n&&B(a,{select:!0})):o===r&&e.preventDefault()}},[n,r,h.paused]);return(0,c.jsx)(A.div,{tabIndex:-1,...a,ref:p,onKeyDown:v})});function W(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 I(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 B(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()}}F.displayName="FocusScope";var H=(t=[],{add(e){let n=t[0];e!==n&&n?.pause(),(t=V(t,e)).unshift(e)},remove(e){t=V(t,e),t[0]?.resume()}});function V(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var U=globalThis?.document?m.useLayoutEffect:()=>{},$=m[" useId ".trim().toString()]||(()=>void 0),Y=0;let z=["top","right","bottom","left"],K=Math.min,X=Math.max,Z=Math.round,q=Math.floor,G=e=>({x:e,y:e}),J={left:"right",right:"left",bottom:"top",top:"bottom"},Q={start:"end",end:"start"};function ee(e,t){return"function"==typeof e?e(t):e}function et(e){return e.split("-")[0]}function en(e){return e.split("-")[1]}function er(e){return"x"===e?"y":"x"}function eo(e){return"y"===e?"height":"width"}let ei=new Set(["top","bottom"]);function ea(e){return ei.has(et(e))?"y":"x"}function el(e){return e.replace(/start|end/g,e=>Q[e])}let es=["left","right"],eu=["right","left"],ec=["top","bottom"],ed=["bottom","top"];function ef(e){return e.replace(/left|right|bottom|top/g,e=>J[e])}function ep(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function eh(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function em(e,t,n){let r,{reference:o,floating:i}=e,a=ea(t),l=er(ea(t)),s=eo(l),u=et(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(en(t)){case"start":r[l]-=p*(n&&c?-1:1);break;case"end":r[l]+=p*(n&&c?-1:1)}return r}let ev=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=em(u,r,s),f=r,p={},h=0;for(let n=0;n<l.length;n++){let{name:i,fn:m}=l[n],{x:v,y:g,data:y,reset:w}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=em(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function eg(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ee(t,e),h=ep(p),m=l[f?"floating"===d?"reference":"floating":d],v=eh(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=eh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:s}):g);return{top:(v.top-x.top+h.top)/w.y,bottom:(x.bottom-v.bottom+h.bottom)/w.y,left:(v.left-x.left+h.left)/w.x,right:(x.right-v.right+h.right)/w.x}}function ey(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ew(e){return z.some(t=>e[t]>=0)}let ex=new Set(["left","top"]);async function eb(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=et(n),l=en(n),s="y"===ea(n),u=ex.has(a)?-1:1,c=i&&s?-1:1,d=ee(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof h&&(p="end"===l?-1*h:h),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function eE(){return"undefined"!=typeof window}function eC(e){return eL(e)?(e.nodeName||"").toLowerCase():"#document"}function eR(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eA(e){var t;return null==(t=(eL(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eL(e){return!!eE()&&(e instanceof Node||e instanceof eR(e).Node)}function ek(e){return!!eE()&&(e instanceof Element||e instanceof eR(e).Element)}function eS(e){return!!eE()&&(e instanceof HTMLElement||e instanceof eR(e).HTMLElement)}function eT(e){return!!eE()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eR(e).ShadowRoot)}let eN=new Set(["inline","contents"]);function ej(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eV(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!eN.has(o)}let eP=new Set(["table","td","th"]),eO=[":popover-open",":modal"];function e_(e){return eO.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eM=["transform","translate","scale","rotate","perspective"],eD=["transform","translate","scale","rotate","perspective","filter"],eF=["paint","layout","strict","content"];function eW(e){let t=eI(),n=ek(e)?eV(e):e;return eM.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||eD.some(e=>(n.willChange||"").includes(e))||eF.some(e=>(n.contain||"").includes(e))}function eI(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eB=new Set(["html","body","#document"]);function eH(e){return eB.has(eC(e))}function eV(e){return eR(e).getComputedStyle(e)}function eU(e){return ek(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e$(e){if("html"===eC(e))return e;let t=e.assignedSlot||e.parentNode||eT(e)&&e.host||eA(e);return eT(t)?t.host:t}function eY(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=e$(t);return eH(n)?t.ownerDocument?t.ownerDocument.body:t.body:eS(n)&&ej(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=eR(o);if(i){let e=ez(a);return t.concat(a,a.visualViewport||[],ej(o)?o:[],e&&n?eY(e):[])}return t.concat(o,eY(o,[],n))}function ez(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eK(e){let t=eV(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eS(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Z(n)!==i||Z(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function eX(e){return ek(e)?e:e.contextElement}function eZ(e){let t=eX(e);if(!eS(t))return G(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eK(t),a=(i?Z(n.width):n.width)/r,l=(i?Z(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let eq=G(0);function eG(e){let t=eR(e);return eI()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eq}function eJ(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=eX(e),l=G(1);t&&(r?ek(r)&&(l=eZ(r)):l=eZ(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===eR(a))&&o)?eG(a):G(0),u=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=eR(a),t=r&&ek(r)?eR(r):r,n=e,o=ez(n);for(;o&&r&&t!==n;){let e=eZ(o),t=o.getBoundingClientRect(),r=eV(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=a,o=ez(n=eR(o))}}return eh({width:d,height:f,x:u,y:c})}function eQ(e,t){let n=eU(e).scrollLeft;return t?t.left+n:eJ(eA(e)).left+n}function e0(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eQ(e,n),y:n.top+t.scrollTop}}let e1=new Set(["absolute","fixed"]);function e5(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=eR(e),r=eA(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;let e=eI();
1(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}let u=eQ(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else u<=25&&(i+=u);return{width:i,height:a,x:l,y:s}}(e,n);else if("document"===t){let t,n,i,a,l,s,u;r=eA(e),t=eA(r),n=eU(r),i=r.ownerDocument.body,a=X(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=X(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+eQ(r),u=-n.scrollTop,"rtl"===eV(i).direction&&(s+=X(t.clientWidth,i.clientWidth)-a),o={width:a,height:l,x:s,y:u}}else if(ek(t)){let e,r,i,a,l,s;r=(e=eJ(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,a=eS(t)?eZ(t):G(1),l=t.clientWidth*a.x,s=t.clientHeight*a.y,o={width:l,height:s,x:i*a.x,y:r*a.y}}else{let n=eG(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eh(o)}function e3(e){return"static"===eV(e).position}function e2(e,t){if(!eS(e)||"fixed"===eV(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eA(e)===n&&(n=n.ownerDocument.body),n}function e8(e,t){var n;let r=eR(e);if(e_(e))return r;if(!eS(e)){let t=e$(e);for(;t&&!eH(t);){if(ek(t)&&!e3(t))return t;t=e$(t)}return r}let o=e2(e,t);for(;o&&(n=o,eP.has(eC(n)))&&e3(o);)o=e2(o,t);return o&&eH(o)&&e3(o)&&!eW(o)?r:o||function(e){let t=e$(e);for(;eS(t)&&!eH(t);){if(eW(t))return t;if(e_(t))break;t=e$(t)}return null}(e)||r}let e6=async function(e){let t=this.getOffsetParent||e8,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eS(t),o=eA(t),i="fixed"===n,a=eJ(e,!0,i,t),l={scrollLeft:0,scrollTop:0},s=G(0);if(r||!r&&!i)if(("body"!==eC(t)||ej(o))&&(l=eU(t)),r){let e=eJ(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eQ(o));i&&!r&&o&&(s.x=eQ(o));let u=!o||r||i?G(0):e0(o,l);return{x:a.left+l.scrollLeft-s.x-u.x,y:a.top+l.scrollTop-s.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},e4={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=eA(r),l=!!t&&e_(t.floating);if(r===a||l&&i)return n;let s={scrollLeft:0,scrollTop:0},u=G(1),c=G(0),d=eS(r);if((d||!d&&!i)&&(("body"!==eC(r)||ej(a))&&(s=eU(r)),eS(r))){let e=eJ(r);u=eZ(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||i?G(0):e0(a,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:eA,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?e_(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eY(e,[],!1).filter(e=>ek(e)&&"body"!==eC(e)),o=null,i="fixed"===eV(e).position,a=i?e$(e):e;for(;ek(a)&&!eH(a);){let t=eV(a),n=eW(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&e1.has(o.position)||ej(a)&&!n&&function e(t,n){let r=e$(t);return!(r===n||!ek(r)||eH(r))&&("fixed"===eV(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=e$(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{let r=e5(t,n,o);return e.top=X(r.top,e.top),e.right=K(r.right,e.right),e.bottom=K(r.bottom,e.bottom),e.left=X(r.left,e.left),e},e5(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:e8,getElementRects:e6,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eK(e);return{width:t,height:n}},getScale:eZ,isElement:ek,isRTL:function(e){return"rtl"===eV(e).direction}};function e7(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let e9=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=ee(e,t)||{};if(null==u)return{};let d=ep(c),f={x:n,y:r},p=er(ea(o)),h=eo(p),m=await a.getDimensions(u),v="y"===p,g=v?"clientHeight":"clientWidth",y=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],x=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),b=x?x[g]:0;b&&await (null==a.isElement?void 0:a.isElement(x))||(b=l.floating[g]||i.floating[h]);let E=b/2-m[h]/2-1,C=K(d[v?"top":"left"],E),R=K(d[v?"bottom":"right"],E),A=b-m[h]-R,L=b/2-m[h]/2+(y/2-w/2),k=X(C,K(L,A)),S=!s.arrow&&null!=en(o)&&L!==k&&i.reference[h]/2-(L<C?C:R)-m[h]/2<0,T=S?L<C?L-C:L-A:0;return{[p]:f[p]+T,data:{[p]:k,centerOffset:L-k-T,...S&&{alignmentOffset:T}},reset:S}}});var te="undefined"!=typeof document?m.useLayoutEffect:function(){};function tt(e,t){let n,r,o;
1if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!tt(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!tt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tn(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tr(e,t){let n=tn(e);return Math.round(t*n)/n}function to(e){let t=m.useRef(e);return te(()=>{t.current=e}),t}var ti=m.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,c.jsx)(A.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ti.displayName="Arrow";var ta="Popper",[tl,ts]=x(ta),[tu,tc]=tl(ta),td=e=>{let{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return(0,c.jsx)(tu,{scope:t,anchor:r,onAnchorChange:o,children:n})};td.displayName=ta;var tf="PopperAnchor",tp=m.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,i=tc(tf,n),a=m.useRef(null),l=w(t,a),s=m.useRef(null);return m.useEffect(()=>{let e=s.current;s.current=r?.current||a.current,e!==s.current&&i.onAnchorChange(s.current)}),r?null:(0,c.jsx)(A.div,{...o,ref:l})});tp.displayName=tf;var th="PopperContent",[tm,tv]=tl(th),tg=m.forwardRef((e,t)=>{var n,r,o,i,a,l,s,u,d,f,p,h,v;let{__scopePopper:g,side:y="bottom",sideOffset:x=0,align:E="center",alignOffset:C=0,arrowPadding:R=0,avoidCollisions:k=!0,collisionBoundary:S=[],collisionPadding:T=0,sticky:N="partial",hideWhenDetached:j=!1,updatePositionStrategy:P="optimized",onPlaced:O,..._}=e,M=tc(th,g),[D,F]=m.useState(null),W=w(t,e=>F(e)),[I,B]=m.useState(null),H=function(e){let[t,n]=m.useState(void 0);return U(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(I),V=H?.width??0,$=H?.height??0,Y="number"==typeof T?T:{top:0,right:0,bottom:0,left:0,...T},z=Array.isArray(S)?S:[S],Z=z.length>0,G={padding:Y,boundary:z.filter(tb),altBoundary:Z},{refs:J,floatingStyles:Q,placement:ei,isPositioned:ep,middlewareData:eh}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,d]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=m.useState(r);tt(f,r)||p(r);let[h,v]=m.useState(null),[g,y]=m.useState(null),w=m.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),x=m.useCallback(e=>{e!==A.current&&(A.current=e,y(e))},[]),E=i||h,C=a||g,R=m.useRef(null),A=m.useRef(null),L=m.useRef(c),k=null!=s,S=to(s),T=to(o),N=to(u),j=m.useCallback(()=>{var e,r;let o,i,a;if(!R.current||!A.current)return;let l={placement:t,strategy:n,middleware:f};T.current&&(l.platform=T.current),(e=R.current,r=A.current,o=new Map,a={...(i={platform:e4,...l}).platform,_c:o},ev(e,r,{...i,platform:a})).then(e=>{let t={...e,isPositioned:!1!==N.current};P.current&&!tt(L.current,t)&&(L.current=t,b.flushSync(()=>{d(t)}))})},[f,t,n,T,N]);te(()=>{!1===u&&L.current.isPositioned&&(L.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let P=m.useRef(!1);te(()=>(P.current=!0,()=>{P.current=!1}),[]),te(()=>{if(E&&(R.current=E),C&&(A.current=C),E&&C){if(S.current)return S.current(E,C,j);j()}},[E,C,j,S,k]);let O=m.useMemo(()=>({reference:R,floating:A,setReference:w,setFloating:x}),[w,x]),_=m.useMemo(()=>({reference:E,floating:C}),[E,C]),M=m.useMemo(()=>{let e={position:n,left:0,top:0};if(!_.floating)return e;let t=tr(_.floating,c.x),r=tr(_.floating,c.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...tn(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,_.floating,c.x,c.y]);return m.useMemo(()=>({...c,update:j,refs:O,elements:_,floatingStyles:M}),[c,j,O,_,M])}({strategy:"fixed",placement:y+("center"!==E?"-"+E:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=eX(e),d=i||a?[...c?eY(c):[],...eY(t)]:[];
1d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&s?function(e,t){let n,r=null,o=eA(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(l||t(),!f||!p)return;let h={rootMargin:-q(d)+"px "+-q(o.clientWidth-(c+f))+"px "+-q(o.clientHeight-(d+p))+"px "+-q(c)+"px",threshold:X(0,K(1,s))||1},m=!0;function v(t){let r=t[0].intersectionRatio;if(r!==s){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||e7(u,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(v,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,h)}r.observe(e)}(!0),i}(c,n):null,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!u&&h.observe(c),h.observe(t));let m=u?eJ(e):null;return u&&function t(){let r=eJ(e);m&&!e7(m,r)&&n(),m=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===P}),elements:{reference:M.anchor},middleware:[{...{name:"offset",options:r=n={mainAxis:x+$,alignmentAxis:C},async fn(e){var t,n;let{x:o,y:i,placement:a,middlewareData:l}=e,s=await eb(e,r);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:a}}}},options:[n,void 0]},k&&{...{name:"shift",options:a=i={mainAxis:!0,crossAxis:!1,limiter:"partial"===N?{...(o=void 0,{options:o={},fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=ee(o,e),c={x:t,y:n},d=ea(r),f=er(d),p=c[f],h=c[d],m=ee(l,e),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var g,y;let e="y"===f?"width":"height",t=ex.has(et(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),o=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);h<n?h=n:h>o&&(h=o)}return{[f]:p,[d]:h}}}),options:[void 0,void 0]}:void 0,...G},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=ee(a,e),u={x:t,y:n},c=await eg(e,s),d=ea(et(r)),f=er(d),p=u[f],h=u[d];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=X(n,K(p,r))}if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+c[e],r=h-c[t];h=X(n,K(h,r))}let m=l.fn({...e,[f]:p,[d]:h});return{...m,data:{x:m.x-t,y:m.y-n,enabled:{[f]:o,[d]:i}}}}},options:[i,void 0]},k&&{...{name:"flip",options:s=l={...G},async fn(e){var t,n,r,o,i,a,l,u;let c,d,f,{placement:p,middlewareData:h,rects:m,initialPlacement:v,platform:g,elements:y}=e,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:R=!0,...A}=ee(s,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let L=et(p),k=ea(v),S=et(v)===v,T=await (null==g.isRTL?void 0:g.isRTL(y.floating)),N=b||(S||!R?[ef(v)]:(c=ef(v),[el(v),c,el(c)])),j="none"!==C;!b&&j&&N.push(...(d=en(v),f=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?eu:es;return t?es:eu;case"left":case"right":return t?ec:ed;default:return[]}}(et(v),"start"===C,T),d&&(f=f.map(e=>e+"-"+d),R&&(f=f.concat(f.map(el)))),f));let P=[v,...N],O=await eg(e,A),_=[],M=(null==(n=h.flip)?void 0:n.overflows)||[];if(w&&_.push(O[L]),x){let e,t,n,r,o=(a=p,l=m,void 0===(u=T)&&(u=!1),e=en(a),n=eo(t=er(ea(a))),r="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[n]>l.floating[n]&&(r=ef(r)),[r,ef(r)]);_.push(O[o[0]],O[o[1]])}if(M=[...M,{placement:p,overflows:_}],!_.every(e=>e<=0)){let e=((null==(r=h.flip)?void 0:r.index)||0)+1,t=P[e];if(t&&("alignment"!==x||k===ea(t)||M.every(e=>ea(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(E){case"bestFit":{let e=null==(i=M.filter(e=>{if(j){let t=ea(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=v}if(p!==n)return{reset:{placement:n}}}return{}}},options:[l,void 0]},{...{name:"size",options:d=u={...G,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}},async fn(e){var t,n;let r,o,{placement:i,rects:a,platform:l,elements:s}=e,{apply:u=()=>{},...c}=ee(d,e),f=await eg(e,c),p=et(i),h=en(i),m="y"===ea(i),{width:v,height:g}=a.floating;"top"===p||"bottom"===p?(r=p,o=h===(await (null==l.isRTL?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(o=p,r="end"===h?"top":"bottom");let y=g-f.top-f.bottom,w=v-f.left-f.right,x=K(g-f[r],y),b=K(v-f[o],w),E=!e.middlewareData.shift,C=x,R=b;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(R=w),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(C=y),E&&!h){let e=X(f.left,0),t=X(f.right,0),n=X(f.top,0),r=X(f.bottom,0);m?R=v-2*(0!==e||0!==t?e+t:X(f.left,f.right)):C=g-2*(0!==n||0!==r?n+r:X(f.top,f.bottom))}await u({...e,availableWidth:R,availableHeight:C});let A=await l.getDimensions(s.floating);return v!==A.width||g!==A.height?{reset:{rects:!0}}:{}}},options:[u,void 0]},I&&{...{name:"arrow",options:p=f={element:I,padding:R},fn(e){let{element:t,padding:n}="function"==typeof p?p(e):p;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?e9({element:t.current,padding:n}).fn(e):{}:t?e9({element:t,padding:n}).fn(e):{}}},options:[f,void 0]},tE({arrowWidth:V,arrowHeight:$}),j&&{...{name:"hide",options:v=h={strategy:"referenceHidden",...G},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=ee(v,e);switch(n){case"referenceHidden":{let n=ey(await eg(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:ew(n)}}}case"escaped":{let n=ey(await eg(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:ew(n)}}}default:return{}}}},options:[h,void 0]}]}),[em,eE]=tC(ei),eC=L(O);U(()=>{ep&&eC?.()},[ep,eC]);let eR=eh.arrow?.x,eL=eh.arrow?.y,ek=eh.arrow?.centerOffset!==0,[eS,eT]=m.useState();return U(()=>{D&&eT(window.getComputedStyle(D).zIndex)},[D]),(0,c.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:ep?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eS,"--radix-popper-transform-origin":[eh.transformOrigin?.x,eh.transformOrigin?.y].join(" "),...eh.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(tm,{scope:g,placedSide:em,onArrowChange:B,arrowX:eR,arrowY:eL,shouldHideArrow:ek,children:(0,c.jsx)(A.div,{"data-side":em,"data-align":eE,..._,ref:W,style:{..._.style,animation:ep?void 0:"none"}})})})});tg.displayName=th;var ty="PopperArrow",tw={top:"bottom",right:"left",bottom:"top",left:"right"},tx=m.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=tv(ty,n),i=tw[o.placedSide];return(0,c.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,c.jsx)(ti,{...r,ref:t,style:{...r.style,display:"block"}})})});function tb(e){return null!==e}tx.displayName=ty;var tE=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[s,u]=tC(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+l/2,p="",h="";return"bottom"===s?(p=i?c:`${d}px`,h=`${-l}px`):"top"===s?(p=i?c:`${d}px`,h=`${r.floating.height+l}px`):"right"===s?(p=`${-l}px`,h=i?c:`${f}px`):"left"===s&&(p=`${r.floating.width+l}px`,h=i?c:`${f}px`),{data:{x:p,y:h}}}});function tC(e){let[t,n="center"]=e.split("-");return[t,n]}var tR=m.forwardRef((e,t)=>
1{let{container:n,...r}=e,[o,i]=m.useState(!1);U(()=>i(!0),[]);let a=n||o&&globalThis?.document?.body;return a?b.default.createPortal((0,c.jsx)(A.div,{...r,ref:t}),a):null});tR.displayName="Portal";var tA=e=>{var t;let n,r,{present:o,children:i}=e,a=function(e){var t,n;let[r,o]=m.useState(),i=m.useRef(null),a=m.useRef(e),l=m.useRef("none"),[s,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},m.useReducer((e,t)=>n[e][t]??e,t));return m.useEffect(()=>{let e=tL(i.current);l.current="mounted"===s?e:"none"},[s]),U(()=>{let t=i.current,n=a.current;if(n!==e){let r=l.current,o=tL(t);e?u("MOUNT"):"none"===o||t?.display==="none"?u("UNMOUNT"):n&&r!==o?u("ANIMATION_OUT"):u("UNMOUNT"),a.current=e}},[e,u]),U(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let o=tL(i.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(u("ANIMATION_END"),!a.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=tL(i.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)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:m.useCallback(e=>{i.current=e?getComputedStyle(e):null,o(e)},[])}}(o),l="function"==typeof i?i({present:a.isPresent}):m.Children.only(i),s=w(a.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 i||a.isPresent?m.cloneElement(l,{ref:s}):null};function tL(e){return e?.animationName||"none"}tA.displayName="Presence",m[" useEffectEvent ".trim().toString()],m[" useInsertionEffect ".trim().toString()];var tk=m[" useInsertionEffect ".trim().toString()]||U;Symbol("RADIX:SYNC_STATE");var tS=new WeakMap,tT=new WeakMap,tN={},tj=0,tP=function(e){return e&&(e.host||tP(e.parentNode))},tO=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tP(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});tN[n]||(tN[n]=new WeakMap);var i=tN[n],a=[],l=new Set,s=new Set(o),u=function(e){!e||l.has(e)||(l.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(tS.get(e)||0)+1,u=(i.get(e)||0)+1;tS.set(e,s),i.set(e,u),a.push(e),1===s&&o&&tT.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),l.clear(),tj++,function(){a.forEach(function(e){var t=tS.get(e)-1,o=i.get(e)-1;tS.set(e,t),i.set(e,o),t||(tT.has(e)||e.removeAttribute(r),tT.delete(e)),o||e.removeAttribute(n)}),--tj||(tS=new WeakMap,tS=new WeakMap,tT=new WeakMap,tN={})}},t_=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),tO(r,o,n,"aria-hidden")):function(){return null}},tM=e.i(89280),tD="right-scroll-bar-position",tF="width-before-scroll-bar";function tW(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tI="undefined"!=typeof window?m.useLayoutEffect:m.useEffect,tB=new WeakMap,tH=(void 0===n&&(n={}),(void 0===r&&(r=function(e){return e}),o=[],i=!1,a={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=r(e,i);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){i=!0;var t=[];if(o.length){var n=o;
1o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(r)};a(),o={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,tM.__assign)({async:!0,ssr:!1},n),a),tV=function(){},tU=m.forwardRef(function(e,t){var n,r,o,i,a=m.useRef(null),l=m.useState({onScrollCapture:tV,onWheelCapture:tV,onTouchMoveCapture:tV}),s=l[0],u=l[1],c=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,h=e.enabled,v=e.shards,g=e.sideCar,y=e.noRelative,w=e.noIsolation,x=e.inert,b=e.allowPinchZoom,E=e.as,C=e.gapMode,R=(0,tM.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=(n=[a,t],r=function(e){return n.forEach(function(t){return tW(t,e)})},(o=(0,m.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,i=o.facade,tI(function(){var e=tB.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||tW(e,null)}),r.forEach(function(e){t.has(e)||tW(e,o)})}tB.set(i,n)},[n]),i),L=(0,tM.__assign)((0,tM.__assign)({},R),s);return m.createElement(m.Fragment,null,h&&m.createElement(g,{sideCar:tH,removeScrollBar:p,shards:v,noRelative:y,noIsolation:w,inert:x,setCallbacks:u,allowPinchZoom:!!b,lockRef:a,gapMode:C}),c?m.cloneElement(m.Children.only(d),(0,tM.__assign)((0,tM.__assign)({},L),{ref:A})):m.createElement(void 0===E?"div":E,(0,tM.__assign)({},L,{className:f,ref:A}),d))});tU.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tU.classNames={fullWidth:tF,zeroRight:tD};var t$=function(e){var t=e.sideCar,n=(0,tM.__rest)(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 m.createElement(r,(0,tM.__assign)({},n))};t$.isSideCarExport=!0;var tY=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=u||("undefined"!=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)}}},tz=function(){var e=tY();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tK=function(){var e=tz();return function(t){return e(t.styles,t.dynamic),null}},tX={left:0,top:0,right:0,gap:0},tZ=function(e){return parseInt(e||"",10)||0},tq=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[tZ(n),tZ(r),tZ(o)]},tG=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tX;var t=tq(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])}},tJ=tK(),tQ="data-scroll-locked",t0=function(e,t,n,r){var o=e.left,i=e.top,a=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(tQ,"] {\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(i,"px;\n    padding-right: ").concat(a,"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,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(tD," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(tF," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(tD," .").concat(tD," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tF," .").concat(tF," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tQ,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},t1=function(){var e=parseInt(document.body.getAttribute(tQ)||"0",10);return isFinite(e)?e:0},t5=function(){m.useEffect(function(){return document.body.setAttribute(tQ,(t1()+1).toString()),function(){var e=t1()-1;e<=0?document.body.removeAttribute(tQ):document.body.setAttribute(tQ,e.toString())}},[])},t3=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;t5();var i=m.useMemo(function(){return tG(o)},[o]);return m.createElement(tJ,{styles:t0(i,!t,o,n?"":"!important")})},t2=!1;if("undefined"!=typeof window)try{var t8=Object.defineProperty({},"passive",{get:function(){return t2=!0,!0}});window.addEventListener("test",t8,t8),window.removeEventListener("test",t8,t8)}catch(e){t2=!1}var t6=!!t2&&{passive:!1},t4=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])},t7=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),t9(e,r)){var o=ne(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},t9=function(e,t){return"v"===e?t4(t,"overflowY"):t4(t,"overflowX")},ne=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nt=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,p=0;
1do{if(!s)break;var h=ne(e,s),m=h[0],v=h[1]-h[2]-a*m;(m||v)&&t9(e,s)&&(f+=v,p+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&s!==document.body||u&&(t.contains(s)||t===s))return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},nn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nr=function(e){return[e.deltaX,e.deltaY]},no=function(e){return e&&"current"in e?e.current:e},ni=0,na=[];let nl=(l=function(e){var t=m.useRef([]),n=m.useRef([0,0]),r=m.useRef(),o=m.useState(ni++)[0],i=m.useState(tK)[0],a=m.useRef(e);m.useEffect(function(){a.current=e},[e]),m.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,tM.__spreadArray)([e.lockRef.current],(e.shards||[]).map(no),!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=m.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=nn(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=t7(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=t7(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return nt(p,t,e,"h"===p?s:u,!0)},[]),s=m.useCallback(function(e){if(na.length&&na[na.length-1]===i){var n="deltaY"in e?nr(e):nn(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}if(!r){var o=(a.current.shards||[]).map(no).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=m.useCallback(function(e,n,r,o){var i={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(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),c=m.useCallback(function(e){n.current=nn(e),r.current=void 0},[]),d=m.useCallback(function(t){u(t.type,nr(t),t.target,l(t,e.lockRef.current))},[]),f=m.useCallback(function(t){u(t.type,nn(t),t.target,l(t,e.lockRef.current))},[]);m.useEffect(function(){return na.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",s,t6),document.addEventListener("touchmove",s,t6),document.addEventListener("touchstart",c,t6),function(){na=na.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,t6),document.removeEventListener("touchmove",s,t6),document.removeEventListener("touchstart",c,t6)}},[]);var p=e.removeScrollBar,h=e.inert;return m.createElement(m.Fragment,null,h?m.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?m.createElement(t3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},tH.useMedium(l),t$);var ns=m.forwardRef(function(e,t){return m.createElement(tU,(0,tM.__assign)({},e,{ref:t,sideCar:nl}))});ns.classNames=tU.classNames;var nu="Popover",[nc,nd]=x(nu,[ts]),nf=ts(),[np,nh]=nc(nu),nm=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=nf(t),s=m.useRef(null),[u,d]=m.useState(!1),[f,p]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,i,a]=function({defaultProp:e,onChange:t}){let[n,r]=m.useState(e),o=m.useRef(n),i=m.useRef(t);return tk(()=>{i.current=t},[t]),m.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:o;{let t=m.useRef(void 0!==e);m.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,m.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else i(t)},[l,e,i,a])]}({prop:r,defaultProp:o??!1,onChange:i,caller:nu});return(0,c.jsx)(td,{...l,children:(0,c.jsx)(np,{scope:t,contentId:function(e){let[t,n]=m.useState($());return U(()=>{n(e=>e??String(Y++))},[void 0]),t?`radix-${t}`:""}(),triggerRef:s,open:f,onOpenChange:p,onOpenToggle:m.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:m.useCallback(()=>d(!0),[]),onCustomAnchorRemove:m.useCallback(()=>d(!1),[]),modal:a,children:n})})};nm.displayName=nu;var nv="PopoverAnchor";m.forwardRef((e,t)=>
1{let{__scopePopover:n,...r}=e,o=nh(nv,n),i=nf(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=o;return m.useEffect(()=>(a(),()=>l()),[a,l]),(0,c.jsx)(tp,{...i,...r,ref:t})}).displayName=nv;var ng="PopoverTrigger",ny=m.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=nh(ng,n),i=nf(n),a=w(t,o.triggerRef),l=(0,c.jsx)(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":nj(o.open),...r,ref:a,onClick:v(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:(0,c.jsx)(tp,{asChild:!0,...i,children:l})});ny.displayName=ng;var nw="PopoverPortal",[nx,nb]=nc(nw,{forceMount:void 0}),nE=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=nh(nw,t);return(0,c.jsx)(nx,{scope:t,forceMount:n,children:(0,c.jsx)(tA,{present:n||i.open,children:(0,c.jsx)(tR,{asChild:!0,container:o,children:r})})})};nE.displayName=nw;var nC="PopoverContent",nR=m.forwardRef((e,t)=>{let n=nb(nC,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=nh(nC,e.__scopePopover);return(0,c.jsx)(tA,{present:r||i.open,children:i.modal?(0,c.jsx)(nL,{...o,ref:t}):(0,c.jsx)(nk,{...o,ref:t})})});nR.displayName=nC;var nA=E("PopoverContent.RemoveScroll"),nL=m.forwardRef((e,t)=>{let n=nh(nC,e.__scopePopover),r=m.useRef(null),o=w(t,r),i=m.useRef(!1);return m.useEffect(()=>{let e=r.current;if(e)return t_(e)},[]),(0,c.jsx)(ns,{as:nA,allowPinchZoom:!0,children:(0,c.jsx)(nS,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:v(e.onCloseAutoFocus,e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:v(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:v(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),nk=m.forwardRef((e,t)=>{let n=nh(nC,e.__scopePopover),r=m.useRef(!1),o=m.useRef(!1);return(0,c.jsx)(nS,{...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 i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),nS=m.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:d,...f}=e,p=nh(nC,n),h=nf(n);return m.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??O()),document.body.insertAdjacentElement("beforeend",e[1]??O()),P++,()=>{1===P&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),P--}},[]),(0,c.jsx)(F,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,c.jsx)(T,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),children:(0,c.jsx)(tg,{"data-state":nj(p.open),role:"dialog",id:p.contentId,...h,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),nT="PopoverClose";m.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=nh(nT,n);return(0,c.jsx)(A.button,{type:"button",...r,ref:t,onClick:v(e.onClick,()=>o.onOpenChange(!1))})}).displayName=nT;var nN=m.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=nf(n);return(0,c.jsx)(tx,{...o,...r,ref:t})});function nj(e){return e?"open":"closed"}nN.displayName="PopoverArrow",e.i(64157);var nP=e.i(71179),nO=e.i(3828);let n_=e=>
1(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 21H16C14.895 21 14 20.105 14 19V14C14 12.895 14.895 12 16 12H19C20.105 12 21 12.895 21 14V19C21 20.105 20.105 21 19 21Z",stroke:"#323232",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 9H16C14.895 9 14 8.105 14 7V5C14 3.895 14.895 3 16 3H19C20.105 3 21 3.895 21 5V7C21 8.105 20.105 9 19 9Z",stroke:"#323232",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3H8C9.105 3 10 3.895 10 5V10C10 11.105 9.105 12 8 12H5C3.895 12 3 11.105 3 10V5C3 3.895 3.895 3 5 3Z",stroke:"#323232",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 15H8C9.105 15 10 15.895 10 17V19C10 20.105 9.105 21 8 21H5C3.895 21 3 20.105 3 19V17C3 15.895 3.895 15 5 15Z",stroke:"#323232",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),nM=e=>(0,c.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.0527 5.8335H4.94603C4.50687 5.8335 4.14353 6.1735 4.11437 6.611L3.45103 16.556C3.38687 17.5177 4.1502 18.3335 5.11437 18.3335H14.8844C15.8485 18.3335 16.6119 17.5177 16.5477 16.556L15.8844 6.611C15.8552 6.1735 15.4919 5.8335 15.0527 5.8335Z",stroke:"#393F41","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,c.jsx)("path",{d:"M12.5008 7.49984V4.1665V4.1665V4.1665C12.5008 2.78567 11.3817 1.6665 10.0008 1.6665H10C8.61917 1.6665 7.5 2.78567 7.5 4.1665V4.1665V4.1665V7.49984",stroke:"#323232","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),nD=e=>(0,c.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,c.jsx)("path",{d:"M8.2168 10.0002H16.6668",stroke:"#323232",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M9.0526 16.651L5.57927 16.6668C4.58344 16.6718 3.77344 15.8735 3.77344 14.8877V5.11266C3.77344 4.13016 4.5776 3.3335 5.57094 3.3335H9.16594",stroke:"#393F41",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M13.334 13.3332L16.6673 9.99984L13.334 6.6665",stroke:"#323232",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),nF=e=>(0,c.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,c.jsx)("path",{d:"M17.763 18.91L17.413 18.031C17.236 17.585 16.961 17.185 16.609 16.859L16.545 16.8C15.991 16.286 15.263 16 14.507 16H9.493C8.737 16 8.009 16.286 7.454 16.799L7.39 16.859C7.038 17.185 6.764 17.585 6.586 18.031L6.236 18.91",stroke:"#323232",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M14.4749 7.44713C15.8417 8.81397 15.8417 11.03 14.4749 12.3969C13.1081 13.7637 10.892 13.7637 9.52515 12.3969C8.15831 11.03 8.15831 8.81397 9.52515 7.44713C10.892 6.08029 13.1081 6.08029 14.4749 7.44713",stroke:"#323232",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,c.jsx)("path",{d:"M18.364 5.63604C21.8787 9.15076 21.8787 14.8492 18.364 18.3639C14.8493 21.8787 9.1508 21.8787 5.6361 18.3639C2.12138 14.8492 2.12138 9.15074 5.6361 5.63604C9.15082 2.12132 14.8493 2.12132 18.364 5.63604",stroke:"#323232",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});e.s(["default",0,()=>{let{t:e}=(0,nP.useTranslation)(["LAYOUT"]),[t]=(0,d.useCurrentUser)(),{query:n}=(0,nO.useRouter)(),{disableNavLink:r}=n,o=e=>{"true"===r?e.preventDefault():((0,f.clearAmplitude)(),window.parent.location.href="/s/logout")};return(0,c.jsx)(c.Fragment,{children:"true"!==r&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"",children:(0,c.jsxs)("a",{href:(0,p.getDashboardLink)(t),className:"mr-8 flex items-center gap-[6px]",onClick:e=>{"true"===r&&e.preventDefault()},children:[(0,c.jsx)(n_,{className:"h-4 w-4"}),(0,c.jsx)(h.Typography,{as:"p",size:"BODY",colorClass:"text-darkSlate01",fontWeight:"font-medium",children:e("LAYOUT:NAVBAR.VISIT_DASHBOARD")})]})}),(0,c.jsxs)(nm,{children:[(0,c.jsx)(ny,{asChild:!0,children:(0,c.jsx)("button",{"aria-label":e("LAYOUT:NAVBAR.ARIA_UPDATE_DIMENSIONS"),children:(0,c.jsx)("div",{className:"flex h-8 w-8 cursor-pointer items-center justify-center rounded-full bg-[#DAD4FF]",children:(0,c.jsx)(h.Typography,{as:"p",size:"TITLE_6",colorClass:"text-neutralBlack",fontWeight:"font-medium",children:t.name?t?.name.split("")?.[0]:t?.email.split("-")?.[1][0]})})})}),(0,c.jsx)(nE,{children:(0,c.jsxs)(nR,{className:"flex  w-[220px] flex-col gap-[14px] rounded bg-white py-[14px] shadow-[0_10px_38px_-10px_hsla(206,22%,7%,.35),0_10px_20px_-15px_hsla(206,22%,7%,.2)] will-change-[transform,opacity] focus:shadow-[0_10px_38px_-10px_hsla(206,22%,7%,.35),0_10px_20px_-15px_hsla(206,22%,7%,.2),0_0_0_2px_theme(colors.violet7)] data-[state=open]:data-[side=bottom]:animate-slideUpAndFade data-[state=open]:data-[side=left]:animate-slideRightAndFade data-[state=open]:data-[side=right]:animate-slideLeftAndFade data-[state=open]:data-[side=top]:animate-slideDownAndFade",sideOffset:5,children:[(0,c.jsxs)(c.Fragment,{children:[[{href:(0,p.getDashboardLink)(t),label:e(t.roles.includes("student")?"LAYOUT:NAVBAR.MY_PURCHASES":"LAYOUT:NAVBAR.VISIT_DASHBOARD"),Icon:t.roles.includes("student")?(0,c.jsx)(nM,{className:"h-5 w-5"}):(0,c.jsx)(n_,{className:"h-5 w-5"})},{href:(0,p.getProfileLink)(t),label:e("LAYOUT:NAVBAR.PROFILE"),Icon:(0,c.jsx)(nF,{className:"h-5 w-5"})},{href:"/s/logout",label:e("LAYOUT:NAVBAR.LOGOUT"),Icon:(0,c.jsx)(nD,{className:"h-5 w-5"})}].map(({Icon:e,href:t,label:n},r)=>"logout"===n?(0,c.jsxs)("button",{onClick:o,className:"flex items-center gap-[14px] pl-[14px]",children:[e,(0,c.jsx)(h.Typography,{as:"p",size:"BODY",colorClass:"text-darkSlate01",fontWeight:"font-medium",children:n})]},r):(0,c.jsx)("div",{className:"",children:(0,c.jsxs)("a",{href:t,className:"flex items-center gap-[14px] pl-[14px]",children:[e,(0,c.jsx)(h.Typography,{as:"p",size:"BODY",colorClass:"text-darkSlate01",fontWeight:"font-medium",children:n})]})},r))," "]}),(0,c.jsx)(nN,{className:"fill-white"})]})})]})]})})}],46778)}]);

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.