PageSourceSearch

https://www.northquestfinance.com/_next/static/chunks/1798-7ac5de3a5d1ded99.js

js northquestfinance.com collected 2026-10-02 16:03:29 UTC 47,775 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1798],{1798:(e,t,n)=>{let r;n.d(t,{UC:()=>nA,q7:()=>nD,ZL:()=>nC,bL:()=>nb,l9:()=>nR});var o=n(2115),i=n(2556),l=n(4446),a=n(3468),u=n(3558),s=n(7602),c=n(9972),f=n(6218),d=n(4831),p=n(9526),m=n(9666),h=n(8946);let g=["top","right","bottom","left"],v=Math.min,w=Math.max,y=Math.round,x=Math.floor,b=e=>({x:e,y:e}),R={left:"right",right:"left",bottom:"top",top:"bottom"};function C(e,t){return"function"==typeof e?e(t):e}function A(e){return e.split("-")[0]}function D(e){return e.split("-")[1]}function M(e){return"x"===e?"y":"x"}function j(e){return"y"===e?"height":"width"}function E(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function P(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let T=["left","right"],S=["right","left"],k=["top","bottom"],O=["bottom","top"];function L(e){let t=A(e);return R[t]+e.slice(t.length)}function _(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function K(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 I(e,t,n){let r,{reference:o,floating:i}=e,l=E(t),a=M(E(t)),u=j(a),s=A(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(s){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(D(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}async function F(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=C(t,e),m=_(p),h=a[d?"floating"===f?"reference":"floating":f],g=K(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),v="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=K(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:u}):v);return{top:(g.top-x.top+m.top)/y.y,bottom:(x.bottom-g.bottom+m.bottom)/y.y,left:(g.left-x.left+m.left)/y.x,right:(x.right-g.right+m.right)/y.x}}let N=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:F},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=I(s,r,u),d=r,p=0,m={};for(let n=0;n<i.length;n++){let h=i[n];if(!h)continue;let{name:g,fn:v}=h,{x:w,y:y,data:x,reset:b}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=w?w:c,f=null!=y?y:f,m[g]={...m[g],...x},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:f}=I(s,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:m}};function H(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function G(e){return g.some(t=>e[t]>=0)}let B=new Set(["left","top"]);async function W(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=A(n),a=D(n),u="y"===E(n),s=B.has(l)?-1:1,c=i&&u?-1:1,f=C(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*c,y:d*s}:{x:d*s,y:p*c}}function V(){return"undefined"!=typeof window}function z(e){return Y(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function X(e){var t;return null==(t=(Y(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Y(e){return!!V()&&(e instanceof Node||e instanceof U(e).Node)}function q(e){return!!V()&&(e instanceof Element||e instanceof U(e).Element)}function $(e){return!!V()&&(e instanceof HTMLElement||e instanceof U(e).HTMLElement)}function Z(e){return!!V()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof U(e).ShadowRoot)}function J(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=el(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Q(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ee=/transform|translate|scale|rotate|perspective|filter/,et=/paint|layout|strict|content/,en=e=>!!e&&"none"!==e;function er(e){let t=q(e)?el(e):e;return en(t.transform)||en(t.translate)||en(t.scale)||en(t.rotate)||en(t.perspective)||!eo()&&(en(t.backdropFilter)||en(t.filter))||ee.test(t.willChange||"")||et.test(t.contain||"")}function eo(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ei(e){return/^(html|body|#document)$/.test(z(e))}function el(e){return U(e).getComputedStyle(e)}function ea(e){return q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eu(e){if("html"===z(e))return e;let t=e.assignedSlot||e.parentNode||Z(e)&&e.host||X(e);return Z(t)?t.host:t}
1function es(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eu(t);return ei(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&J(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=U(o);if(!i)return t.concat(o,es(o,[],n));{let e=ec(l);return t.concat(l,l.visualViewport||[],J(o)?o:[],e&&n?es(e):[])}}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ef(e){let t=el(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=$(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=y(n)!==i||y(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ed(e){return q(e)?e:e.contextElement}function ep(e){let t=ed(e);if(!$(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ef(t),l=(i?y(n.width):n.width)/r,a=(i?y(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let em=b(0);function eh(e){let t=U(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:em}function eg(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ed(e),a=b(1);t&&(r?q(r)&&(a=ep(r)):a=ep(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===U(l))&&o)?eh(l):b(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=U(l),t=r&&q(r)?U(r):r,n=e,o=ec(n);for(;o&&r&&t!==n;){let e=ep(o),t=o.getBoundingClientRect(),r=el(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,f*=e.x,d*=e.y,s+=i,c+=l,o=ec(n=U(o))}}return K({width:f,height:d,x:s,y:c})}function ev(e,t){let n=ea(e).scrollLeft;return t?t.left+n:eg(X(e)).left+n}function ew(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ev(e,n),y:n.top+t.scrollTop}}function ey(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=U(e),r=X(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=eo();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let s=ev(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=X(e),n=ea(e),r=e.ownerDocument.body,o=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ev(e),a=-n.scrollTop;return"rtl"===el(r).direction&&(l+=w(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(X(e));else if(q(t))r=function(e,t){let n=eg(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$(e)?ep(e):b(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eh(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return K(r)}function ex(e){return"static"===el(e).position}function eb(e,t){if(!$(e)||"fixed"===el(e).position)return null;if(t)return t(e);let n=e.offsetParent;return X(e)===n&&(n=n.ownerDocument.body),n}function eR(e,t){var n;let r=U(e);if(Q(e))return r;if(!$(e)){let t=eu(e);for(;t&&!ei(t);){if(q(t)&&!ex(t))return t;t=eu(t)}return r}let o=eb(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(z(n)))&&ex(o);)o=eb(o,t);return o&&ei(o)&&ex(o)&&!er(o)?r:o||function(e){let t=eu(e);for(;$(t)&&!ei(t);){if(er(t))return t;if(Q(t))break;t=eu(t)}return null}(e)||r}let eC=async function(e){let t=this.getOffsetParent||eR,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=$(t),o=X(t),i="fixed"===n,l=eg(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=b(0);if(r||!r&&!i)if(("body"!==z(t)||J(o))&&(a=ea(t)),r){let e=eg(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ev(o));i&&!r&&o&&(u.x=ev(o));let s=!o||r||i?b(0):ew(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eA={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=X(r),a=!!t&&Q(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=b(1),c=b(0),f=$(r);if((f||!f&&!i)&&(("body"!==z(r)||J(l))&&(u=ea(r)),f)){let e=eg(r);s=ep(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let d=!l||f||i?b(0):ew(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+d.x,y:n.y*s.y-u.scrollTop*s.y+c.y+d.y}},getDocumentElement:X,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=es(e,[],!1).filter(e=>q(e)&&"body"!==z(e)),o=null,i="fixed"===el(e).position,l=i?eu(e):e;for(;q(l)&&!ei(l);){let t=el(l),n=er(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||J(l)&&!n&&function e(t,n){let r=eu(t);return!(r===n||!q(r)||ei(r))&&("fixed"===el(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=eu(l)}return t.set(e,r),r}
1(t,this._c):[].concat(n),r],l=ey(t,i[0],o),a=l.top,u=l.right,s=l.bottom,c=l.left;for(let e=1;e<i.length;e++){let n=ey(t,i[e],o);a=w(n.top,a),u=v(n.right,u),s=v(n.bottom,s),c=w(n.left,c)}return{width:u-c,height:s-a,x:c,y:a}},getOffsetParent:eR,getElementRects:eC,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ef(e);return{width:t,height:n}},getScale:ep,isElement:q,isRTL:function(e){return"rtl"===el(e).direction}};function eD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eM=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:s,padding:c=0}=C(e,t)||{};if(null==s)return{};let f=_(c),d={x:n,y:r},p=M(E(o)),m=j(p),h=await l.getDimensions(s),g="y"===p,y=g?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[p]-d[p]-i.floating[m],b=d[p]-i.reference[p],R=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),A=R?R[y]:0;A&&await (null==l.isElement?void 0:l.isElement(R))||(A=a.floating[y]||i.floating[m]);let P=A/2-h[m]/2-1,T=v(f[g?"top":"left"],P),S=v(f[g?"bottom":"right"],P),k=A-h[m]-S,O=A/2-h[m]/2+(x/2-b/2),L=w(T,v(O,k)),K=!u.arrow&&null!=D(o)&&O!==L&&i.reference[m]/2-(O<T?T:S)-h[m]/2<0,I=K?O<T?O-T:O-k:0;return{[p]:d[p]+I,data:{[p]:L,centerOffset:O-L-I,...K&&{alignmentOffset:I}},reset:K}}});var ej=n(7650),eE="undefined"!=typeof document?o.useLayoutEffect:function(){};function eP(e,t){let n,r,o;if(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(!eP(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)&&!eP(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eT(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eS(e,t){let n=eT(e);return Math.round(t*n)/n}function ek(e){let t=o.useRef(e);return eE(()=>{t.current=e}),t}var eO=n(5155),eL=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eO.jsx)(s.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eO.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eL.displayName="Arrow";var e_=n(222),eK=n(4129),eI="Popper",[eF,eN]=(0,a.A)(eI),[eH,eG]=eF(eI),eB=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,eO.jsx)(eH,{scope:t,anchor:r,onAnchorChange:i,children:n})};eB.displayName=eI;var eW="PopperAnchor",eV=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=eG(eW,n),u=o.useRef(null),c=(0,l.s)(t,u),f=o.useRef(null);return o.useEffect(()=>{let e=f.current;f.current=(null==r?void 0:r.current)||u.current,e!==f.current&&a.onAnchorChange(f.current)}),r?null:(0,eO.jsx)(s.sG.div,{...i,ref:c})});eV.displayName=eW;var ez="PopperContent",[eU,eX]=eF(ez),eY=o.forwardRef((e,t)=>{var n,r,i,a,u,c,f,d;let{__scopePopper:p,side:m="bottom",sideOffset:h=0,align:g="center",alignOffset:y=0,arrowPadding:b=0,avoidCollisions:R=!0,collisionBoundary:_=[],collisionPadding:K=0,sticky:I="partial",hideWhenDetached:F=!1,updatePositionStrategy:V="optimized",onPlaced:z,...U}=e,Y=eG(ez,p),[q,$]=o.useState(null),Z=(0,l.s)(t,e=>
1$(e)),[J,Q]=o.useState(null),ee=function(e){let[t,n]=o.useState(void 0);return(0,eK.N)(()=>{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}(J),et=null!=(f=null==ee?void 0:ee.width)?f:0,en=null!=(d=null==ee?void 0:ee.height)?d:0,er="number"==typeof K?K:{top:0,right:0,bottom:0,left:0,...K},eo=Array.isArray(_)?_:[_],ei=eo.length>0,el={padding:er,boundary:eo.filter(eJ),altBoundary:ei},{refs:ea,floatingStyles:eu,placement:ec,isPositioned:ef,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[f,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=o.useState(r);eP(p,r)||m(r);let[h,g]=o.useState(null),[v,w]=o.useState(null),y=o.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=o.useCallback(e=>{e!==A.current&&(A.current=e,w(e))},[]),b=l||h,R=a||v,C=o.useRef(null),A=o.useRef(null),D=o.useRef(f),M=null!=s,j=ek(s),E=ek(i),P=ek(c),T=o.useCallback(()=>{if(!C.current||!A.current)return;let e={placement:t,strategy:n,middleware:p};E.current&&(e.platform=E.current),((e,t,n)=>{let r=new Map,o={platform:eA,...n},i={...o.platform,_c:r};return N(e,t,{...o,platform:i})})(C.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==P.current};S.current&&!eP(D.current,t)&&(D.current=t,ej.flushSync(()=>{d(t)}))})},[p,t,n,E,P]);eE(()=>{!1===c&&D.current.isPositioned&&(D.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let S=o.useRef(!1);eE(()=>(S.current=!0,()=>{S.current=!1}),[]),eE(()=>{if(b&&(C.current=b),R&&(A.current=R),b&&R){if(j.current)return j.current(b,R,T);T()}},[b,R,T,j,M]);let k=o.useMemo(()=>({reference:C,floating:A,setReference:y,setFloating:x}),[y,x]),O=o.useMemo(()=>({reference:b,floating:R}),[b,R]),L=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=eS(O.floating,f.x),r=eS(O.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eT(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,O.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:T,refs:k,elements:O,floatingStyles:L}),[f,T,k,O,L])}({strategy:"fixed",placement:m+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=ed(e),f=i||l?[...c?es(c):[],...t?es(t):[]]:[];f.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let d=c&&u?function(e,t){let n,r=null,o=X(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let s=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=s;if(a||t(),!d||!p)return;let m=x(f),h=x(o.clientWidth-(c+d)),g={rootMargin:-m+"px "+-h+"px "+-x(o.clientHeight-(f+p))+"px "+-x(c)+"px",threshold:w(0,v(1,u))||1},y=!0;function b(t){let r=t[0].intersectionRatio;if(r!==u){if(!y)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eD(s,e.getBoundingClientRect())||l(),y=!1}try{r=new IntersectionObserver(b,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,g)}r.observe(e)}(!0),i}(c,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),t&&m.observe(t));let h=s?eg(e):null;return s&&function t(){let r=eg(e);h&&!eD(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
1f.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===V})},elements:{reference:Y.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await W(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:h+en,alignmentAxis:y}),R&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=C(e,t),c={x:n,y:r},f=await i.detectOverflow(t,s),d=E(A(o)),p=M(d),m=c[p],h=c[d];if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+f[e],r=m-f[t];m=w(n,v(m,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=h+f[e],r=h-f[t];h=w(n,v(h,r))}let g=u.fn({...t,[p]:m,[d]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:l,[d]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===I?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=C(e,t),c={x:n,y:r},f=E(o),d=M(f),p=c[d],m=c[f],h=C(a,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var v,w;let e="y"===d?"width":"height",t=B.has(A(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(v=l.offset)?void 0:v[f])||0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(w=l.offset)?void 0:w[f])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}}(e).fn,options:[e,t]}))():void 0,...el}),R&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...y}=C(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let x=A(a),b=E(c),R=A(c)===c,_=await (null==f.isRTL?void 0:f.isRTL(d.floating)),K=h||(R||!w?[L(c)]:function(e){let t=L(e);return[P(e),t,P(t)]}(c)),I="none"!==v;!h&&I&&K.push(...function(e,t,n,r){let o=D(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?S:T;return t?T:S;case"left":case"right":return t?k:O;default:return[]}}(A(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(P)))),i}(c,w,v,_));let F=[c,...K],N=await f.detectOverflow(t,y),H=[],G=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&H.push(N[x]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=D(e),o=M(E(e)),i=j(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),[l,L(l)]}(a,s,_);H.push(N[e[0]],N[e[1]])}if(G=[...G,{placement:a,overflows:H}],!H.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=F[e];if(t&&("alignment"!==m||b===E(t)||G.every(e=>E(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:G},reset:{placement:t}};let n=null==(i=G.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(g){case"bestFit":{let e=null==(l=G.filter(e=>{if(I){let t=E(e.placement);return t===b||"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:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...el}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:a,platform:u,elements:s}=t,{apply:c=()=>{},...f}=C(e,t),d=await u.detectOverflow(t,f),p=A(l),m=D(l),h="y"===E(l),{width:g,height:y}=a.floating;"top"===p||"bottom"===p?(o=p,i=m===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,o="end"===m?"top":"bottom");let x=y-d.top-d.bottom,b=g-d.left-d.right,R=v(y-d[o],x),M=v(g-d[i],b),j=!t.middlewareData.shift,P=R,T=M;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=x),j&&!m){let e=w(d.left,0),t=w(d.right,0),n=w(d.top,0),r=w(d.bottom,0);h?T=g-2*(0!==e||0!==t?e+t:w(d.left,d.right)):P=y-2*(0!==n||0!==r?n+r:w(d.top,d.bottom))}await c({...t,availableWidth:T,availableHeight:P});let S=await u.getDimensions(s.floating);return g!==S.width||y!==S.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...el,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),J&&((e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eM({element:n.current,padding:r}).fn(t):{}:n?eM({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:J,padding:b}),eQ({arrowWidth:et,arrowHeight:en}),F&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=C(e,t);switch(o){case"referenceHidden":{let e=H(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:G(e)}}}case"escaped":{let e=H(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:G(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...el})]}),[em,eh]=e0(ec),ev=(0,e_.c)(z);(0,eK.N)(()=>{ef&&(null==ev||ev())},[ef,ev]);let ew=null==(n=ep.arrow)?void 0:n.x,ey=null==(r=ep.arrow)?void 0:r.y,ex=(null==(i=ep.arrow)?void 0:i.centerOffset)!==0,[eb,eR]=o.use
1State();return(0,eK.N)(()=>{q&&eR(window.getComputedStyle(q).zIndex)},[q]),(0,eO.jsx)("div",{ref:ea.setFloating,"data-radix-popper-content-wrapper":"",style:{...eu,transform:ef?eu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eb,"--radix-popper-transform-origin":[null==(a=ep.transformOrigin)?void 0:a.x,null==(u=ep.transformOrigin)?void 0:u.y].join(" "),...(null==(c=ep.hide)?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eO.jsx)(eU,{scope:p,placedSide:em,onArrowChange:Q,arrowX:ew,arrowY:ey,shouldHideArrow:ex,children:(0,eO.jsx)(s.sG.div,{"data-side":em,"data-align":eh,...U,ref:Z,style:{...U.style,animation:ef?void 0:"none"}})})})});eY.displayName=ez;var eq="PopperArrow",e$={top:"bottom",right:"left",bottom:"top",left:"right"},eZ=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eX(eq,n),i=e$[o.placedSide];return(0,eO.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,eO.jsx)(eL,{...r,ref:t,style:{...r.style,display:"block"}})})});function eJ(e){return null!==e}eZ.displayName=eq;var eQ=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,m]=e0(a),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+f/2,v=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+d/2,w="",y="";return"bottom"===p?(w=c?h:"".concat(g,"px"),y="".concat(-d,"px")):"top"===p?(w=c?h:"".concat(g,"px"),y="".concat(u.floating.height+d,"px")):"right"===p?(w="".concat(-d,"px"),y=c?h:"".concat(v,"px")):"left"===p&&(w="".concat(u.floating.width+d,"px"),y=c?h:"".concat(v,"px")),{data:{x:w,y}}}});function e0(e){let[t,n="center"]=e.split("-");return[t,n]}var e1=n(5433),e2=n(6842),e5="rovingFocusGroup.onEntryFocus",e6={bubbles:!1,cancelable:!0},e4="RovingFocusGroup",[e9,e3,e7]=(0,c.N)(e4),[e8,te]=(0,a.A)(e4,[e7]),[tt,tn]=e8(e4),tr=o.forwardRef((e,t)=>(0,eO.jsx)(e9.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,eO.jsx)(e9.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,eO.jsx)(to,{...e,ref:t})})}));tr.displayName=e4;var to=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:h,preventScrollOnEntryFocus:g=!1,...v}=e,w=o.useRef(null),y=(0,l.s)(t,w),x=(0,f.jH)(c),[b,R]=(0,u.i)({prop:d,defaultProp:null!=p?p:null,onChange:m,caller:e4}),[C,A]=o.useState(!1),D=(0,e_.c)(h),M=e3(n),j=o.useRef(!1),[E,P]=o.useState(0);return o.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(e5,D),()=>e.removeEventListener(e5,D)},[D]),(0,eO.jsx)(tt,{scope:n,orientation:r,dir:x,loop:a,currentTabStopId:b,onItemFocus:o.useCallback(e=>R(e),[R]),onItemShiftTab:o.useCallback(()=>A(!0),[]),onFocusableItemAdd:o.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>P(e=>e-1),[]),children:(0,eO.jsx)(s.sG.div,{tabIndex:C||0===E?-1:0,"data-orientation":r,...v,ref:y,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(e5,e6);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);tu([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),g)}}j.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>A(!1))})})}),ti="RovingFocusGroupItem",tl=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:l=!1,tabStopId:a,children:u,...c}=e,f=(0,h.B)(),d=a||f,p=tn(ti,n),m=p.currentTabStopId===d,g=e3(n),{onFocusableItemAdd:v,onFocusableItemRemove:w,currentTabStopId:y}=p;return o.useEffect(()=>{if(r)return v(),()=>w()},[r,v,w]),(0,eO.jsx)(e9.ItemSlot,{scope:n,id:d,focusable:r,active:l,children:(0,eO.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{r?p.onItemFocus(d):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>p.onItemFocus(d)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return ta[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=g().filter(e=>
1e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>tu(n))}}),children:"function"==typeof u?u({isCurrentTabStop:m,hasTabStop:null!=y}):u})})});tl.displayName=ti;var ta={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tu(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var ts=n(2467),tc=n(7745),tf=n(101),td=["Enter"," "],tp=["ArrowUp","PageDown","End"],tm=["ArrowDown","PageUp","Home",...tp],th={ltr:[...td,"ArrowRight"],rtl:[...td,"ArrowLeft"]},tg={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tv="Menu",[tw,ty,tx]=(0,c.N)(tv),[tb,tR]=(0,a.A)(tv,[tx,eN,te]),tC=eN(),tA=te(),[tD,tM]=tb(tv),[tj,tE]=tb(tv),tP=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:a=!0}=e,u=tC(t),[s,c]=o.useState(null),d=o.useRef(!1),p=(0,e_.c)(l),m=(0,f.jH)(i);return o.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.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,eO.jsx)(eB,{...u,children:(0,eO.jsx)(tD,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:c,children:(0,eO.jsx)(tj,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:m,modal:a,children:r})})})};tP.displayName=tv;var tT=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tC(n);return(0,eO.jsx)(eV,{...o,...r,ref:t})});tT.displayName="MenuAnchor";var tS="MenuPortal",[tk,tO]=tb(tS,{forceMount:void 0}),tL=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tM(tS,t);return(0,eO.jsx)(tk,{scope:t,forceMount:n,children:(0,eO.jsx)(e2.C,{present:n||i.open,children:(0,eO.jsx)(e1.Z,{asChild:!0,container:o,children:r})})})};tL.displayName=tS;var t_="MenuContent",[tK,tI]=tb(t_),tF=o.forwardRef((e,t)=>{let n=tO(t_,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tM(t_,e.__scopeMenu),l=tE(t_,e.__scopeMenu);return(0,eO.jsx)(tw.Provider,{scope:e.__scopeMenu,children:(0,eO.jsx)(e2.C,{present:r||i.open,children:(0,eO.jsx)(tw.Slot,{scope:e.__scopeMenu,children:l.modal?(0,eO.jsx)(tN,{...o,ref:t}):(0,eO.jsx)(tH,{...o,ref:t})})})})}),tN=o.forwardRef((e,t)=>{let n=tM(t_,e.__scopeMenu),r=o.useRef(null),a=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,tc.Eq)(e)},[]),(0,eO.jsx)(tB,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tH=o.forwardRef((e,t)=>{let n=tM(t_,e.__scopeMenu);return(0,eO.jsx)(tB,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tG=(0,ts.TL)("MenuContent.ScrollLock"),tB=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:w,onDismiss:y,disableOutsideScroll:x,...b}=e,R=tM(t_,n),C=tE(t_,n),A=tC(n),D=tA(n),M=ty(n),[j,E]=o.useState(null),P=o.useRef(null),T=(0,l.s)(t,P,R.onContentChange),S=o.useRef(0),k=o.useRef(""),O=o.useRef(0),L=o.useRef(null),_=o.useRef("right"),K=o.useRef(0),I=x?tf.A:o.Fragment;o.useEffect(()=>()=>window.clearTimeout(S.current),[]),(0,p.Oh)();let F=o.useCallback(e=>{var t,n;return _.current===(null==(t=L.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,s=l.y,c=a.x,f=a.y;s>r!=f>r&&n<(c-u)*(r-s)/(f-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=L.current)?void 0:n.area)},[]);return(0,eO.jsx)(tK,{scope:n,searchRef:k,onItemEnter:o.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:o.useCallback(e=>{var t;
1F(e)||(null==(t=P.current)||t.focus(),E(null))},[F]),onTriggerLeave:o.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:O,onPointerGraceIntentChange:o.useCallback(e=>{L.current=e},[]),children:(0,eO.jsx)(I,{...x?{as:tG,allowPinchZoom:!0}:void 0,children:(0,eO.jsx)(m.n,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.mK)(u,e=>{var t;e.preventDefault(),null==(t=P.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,eO.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:w,onDismiss:y,children:(0,eO.jsx)(tr,{asChild:!0,...D,dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:E,onEntryFocus:(0,i.mK)(f,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eO.jsx)(eY,{role:"menu","aria-orientation":"vertical","data-state":no(R.open),"data-radix-menu-content":"",dir:C.dir,...A,...b,ref:T,style:{outline:"none",...b.style},onKeyDown:(0,i.mK)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=k.current+e,o=M().filter(e=>!e.disabled),i=document.activeElement,l=null==(t=o.find(e=>e.ref.current===i))?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,l=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(l=l.filter(e=>e!==n));let a=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,l),u=null==(n=o.find(e=>e.textValue===a))?void 0:n.ref.current;!function e(t){k.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())})(e.key));let o=P.current;if(e.target!==o||!tm.includes(e.key))return;e.preventDefault();let i=M().filter(e=>!e.disabled).map(e=>e.ref.current);tp.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),k.current="")}),onPointerMove:(0,i.mK)(e.onPointerMove,na(e=>{let t=e.target,n=K.current!==e.clientX;e.currentTarget.contains(t)&&n&&(_.current=e.clientX>K.current?"right":"left",K.current=e.clientX)}))})})})})})})});tF.displayName=t_;var tW=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eO.jsx)(s.sG.div,{role:"group",...r,ref:t})});tW.displayName="MenuGroup";var tV=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eO.jsx)(s.sG.div,{...r,ref:t})});tV.displayName="MenuLabel";var tz="MenuItem",tU="menu.itemSelect",tX=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...a}=e,u=o.useRef(null),c=tE(tz,e.__scopeMenu),f=tI(tz,e.__scopeMenu),d=(0,l.s)(t,u),p=o.useRef(!1);return(0,eO.jsx)(tY,{...a,ref:d,disabled:n,onClick:(0,i.mK)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(tU,{bubbles:!0,cancelable:!0});e.addEventListener(tU,e=>null==r?void 0:r(e),{once:!0}),(0,s.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),p.current=!0},onPointerUp:(0,i.mK)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;n||t&&" "===e.key||td.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tX.displayName=tz;var tY=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...u}=e,c=tI(tz,n),f=tA(n),d=o.useRef(null),p=(0,l.s)(t,d),[m,h]=o.useState(!1),[g,v]=o.useState("");return o.useEffect(()=>{let e=d.current;if(e){var t;v((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,eO.jsx)(tw.ItemSlot,{scope:n,disabled:r,textValue:null!=a?a:g,children:(0,eO.jsx)(tl,{asChild:!0,...f,focusable:!r,children:(0,eO.jsx)(s.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...u,ref:p,onPointerMove:(0,i.mK)(e.onPointerMove,na(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focu
1s({preventScroll:!0}))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,na(e=>c.onItemLeave(e))),onFocus:(0,i.mK)(e.onFocus,()=>h(!0)),onBlur:(0,i.mK)(e.onBlur,()=>h(!1))})})})}),tq=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,eO.jsx)(t5,{scope:e.__scopeMenu,checked:n,children:(0,eO.jsx)(tX,{role:"menuitemcheckbox","aria-checked":ni(n)?"mixed":n,...o,ref:t,"data-state":nl(n),onSelect:(0,i.mK)(o.onSelect,()=>null==r?void 0:r(!!ni(n)||!n),{checkForDefaultPrevented:!1})})})});tq.displayName="MenuCheckboxItem";var t$="MenuRadioGroup",[tZ,tJ]=tb(t$,{value:void 0,onValueChange:()=>{}}),tQ=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,e_.c)(r);return(0,eO.jsx)(tZ,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,eO.jsx)(tW,{...o,ref:t})})});tQ.displayName=t$;var t0="MenuRadioItem",t1=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=tJ(t0,e.__scopeMenu),l=n===o.value;return(0,eO.jsx)(t5,{scope:e.__scopeMenu,checked:l,children:(0,eO.jsx)(tX,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":nl(l),onSelect:(0,i.mK)(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});t1.displayName=t0;var t2="MenuItemIndicator",[t5,t6]=tb(t2,{checked:!1}),t4=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=t6(t2,n);return(0,eO.jsx)(e2.C,{present:r||ni(i.checked)||!0===i.checked,children:(0,eO.jsx)(s.sG.span,{...o,ref:t,"data-state":nl(i.checked)})})});t4.displayName=t2;var t9=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eO.jsx)(s.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});t9.displayName="MenuSeparator";var t3=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tC(n);return(0,eO.jsx)(eZ,{...o,...r,ref:t})});t3.displayName="MenuArrow";var[t7,t8]=tb("MenuSub"),ne="MenuSubTrigger",nt=o.forwardRef((e,t)=>{let n=tM(ne,e.__scopeMenu),r=tE(ne,e.__scopeMenu),a=t8(ne,e.__scopeMenu),u=tI(ne,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=u,d={__scopeMenu:e.__scopeMenu},p=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return o.useEffect(()=>p,[p]),o.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),f(null)}},[c,f]),(0,eO.jsx)(tT,{asChild:!0,...d,children:(0,eO.jsx)(tY,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":no(n.open),...e,ref:(0,l.t)(t,a.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.mK)(e.onPointerMove,na(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,i.mK)(e.onPointerLeave,na(e=>{var t,r;p();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],a=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:a,y:o.top},{x:a,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.mK)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&th[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null==(i=n.content)||i.focus(),t.preventDefault()}})})})});nt.displayName=ne;var nn="MenuSubContent",nr=o.forwardRef((e,t)=>{let n=tO(t_,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,u=tM(t_,e.__scopeMenu),s=tE(t_,e.__scopeMenu),c=t8(nn,e.__scopeMenu),f=o.useRef(null),d=(0,l.s)(t,f);return(0,eO.jsx)(tw.Provider,{scope:e.__scopeMenu,children:(0,eO.jsx)(e2.C,{present:r||u.open,children:(0,eO.jsx)(tw.Slot,{scope:e.__scopeMenu,children:(0,eO.jsx)(tB,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;
1s.isUsingKeyboardRef.current&&(null==(t=f.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,i.mK)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tg[s.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null==(r=c.trigger)||r.focus(),e.preventDefault()}})})})})})});function no(e){return e?"open":"closed"}function ni(e){return"indeterminate"===e}function nl(e){return ni(e)?"indeterminate":e?"checked":"unchecked"}function na(e){return t=>"mouse"===t.pointerType?e(t):void 0}nr.displayName=nn;var nu="DropdownMenu",[ns,nc]=(0,a.A)(nu,[tR]),nf=tR(),[nd,np]=ns(nu),nm=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:a,modal:s=!0}=e,c=nf(t),f=o.useRef(null),[d,p]=(0,u.i)({prop:i,defaultProp:null!=l&&l,onChange:a,caller:nu});return(0,eO.jsx)(nd,{scope:t,triggerId:(0,h.B)(),triggerRef:f,contentId:(0,h.B)(),open:d,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,eO.jsx)(tP,{...c,open:d,onOpenChange:p,dir:r,modal:s,children:n})})};nm.displayName=nu;var nh="DropdownMenuTrigger",ng=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=np(nh,n),u=nf(n);return(0,eO.jsx)(tT,{asChild:!0,...u,children:(0,eO.jsx)(s.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,l.t)(t,a.triggerRef),onPointerDown:(0,i.mK)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});ng.displayName=nh;var nv=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nf(t);return(0,eO.jsx)(tL,{...r,...n})};nv.displayName="DropdownMenuPortal";var nw="DropdownMenuContent",ny=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,l=np(nw,n),a=nf(n),u=o.useRef(!1);return(0,eO.jsx)(tF,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...r,ref:t,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=l.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(u.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)"}})});ny.displayName=nw,o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(tW,{...o,...r,ref:t})}).displayName="DropdownMenuGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(tV,{...o,...r,ref:t})}).displayName="DropdownMenuLabel";var nx=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(tX,{...o,...r,ref:t})});nx.displayName="DropdownMenuItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(tq,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(tQ,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(t1,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(t4,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(t9,{...o,...r,ref:t})}).displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(t3,{...o,...r,ref:t})}).displayName="DropdownMenuArrow",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(nt,{...o,...r,ref:t})}).displayName="DropdownMenuSubTrigger",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nf(n);return(0,eO.jsx)(nr,{...o,...r,ref:t,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)"}})}).displayName="DropdownMenuSubContent";var nb=nm,nR=ng,nC=nv,nA=ny,nD=nx}}]);

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.