PageSourceSearch

https://app.yaami.ai/_next/static/chunks/82d6d791e9f64180.js

js yaami.ai collected 2026-10-05 15:26:47 UTC 58,934 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,967489,75830,586318,853660,e=>{"use strict";let t,r,n;var i=e.i(843476),o=e.i(271645);function l(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}var a=["color"],s=(0,o.forwardRef)(function(e,t){var r=e.color,n=l(e,a);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,o.createElement)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),c=["color"],u=(0,o.forwardRef)(function(e,t){var r=e.color,n=l(e,c);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,o.createElement)("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),f=["color"],d=(0,o.forwardRef)(function(e,t){var r=e.color,n=l(e,f);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,o.createElement)("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),p=["color"],h=(0,o.forwardRef)(function(e,t){var r=e.color,n=l(e,p);return(0,o.createElement)("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n,{ref:t}),(0,o.createElement)("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:void 0===r?"currentColor":r,fillRule:"evenodd",clipRule:"evenodd"}))}),m=e.i(174080);function g(e,[t,r]){return Math.min(r,Math.max(t,e))}var v=e.i(981140),y=e.i(30030),w=e.i(820783);function x(e){var t;let r,n=(t=e,(r=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(o.isValidElement(r)){var i;let e,l,a=(i=r,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(s.ref=t?(0,w.composeRefs)(t,a):a),o.cloneElement(r,s)}return o.Children.count(r)>1?o.Children.only(null):null})).displayName=`${t}.SlotClone`,r),l=o.forwardRef((e,t)=>
1{let{children:r,...l}=e,a=o.Children.toArray(r),s=a.find(C);if(s){let e=s.props.children,r=a.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,i.jsx)(n,{...l,ref:t,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,i.jsx)(n,{...l,ref:t,children:r})});return l.displayName=`${e}.Slot`,l}var b=Symbol("radix.slottable");function C(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===b}function R(e){let t=e+"CollectionProvider",[r,n]=(0,y.createContextScope)(t),[l,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=o.default.useRef(null),a=o.default.useRef(new Map).current;return(0,i.jsx)(l,{scope:t,itemMap:a,collectionRef:n,children:r})};s.displayName=t;let c=e+"CollectionSlot",u=x(c),f=o.default.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=a(c,r),l=(0,w.useComposedRefs)(t,o.collectionRef);return(0,i.jsx)(u,{ref:l,children:n})});f.displayName=c;let d=e+"CollectionItemSlot",p="data-radix-collection-item",h=x(d),m=o.default.forwardRef((e,t)=>{let{scope:r,children:n,...l}=e,s=o.default.useRef(null),c=(0,w.useComposedRefs)(t,s),u=a(d,r);return o.default.useEffect(()=>(u.itemMap.set(s,{ref:s,...l}),()=>void u.itemMap.delete(s))),(0,i.jsx)(h,{...{[p]:""},ref:c,children:n})});return m.displayName=d,[{Provider:s,Slot:f,ItemSlot:m},function(t){let r=a(e+"CollectionConsumer",t);return o.default.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var S=new WeakMap;function E(e,t){var r,n;let i,o,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let a=(r=e,n=t,i=r.length,(l=(o=j(n))>=0?o:i+o)<0||l>=i?-1:l);return -1===a?void 0:e[a]}function j(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],S.set(this,!0)}set(e,t){return S.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,l=j(e),a=l>=0?l:o+l,s=a<0||a>=o?-1:a;if(s===this.size||i&&s===this.size-1||-1===s)return this.set(t,r),this;let c=this.size+ +!i;l<0&&a++;let u=[...this.#e],f=!1;for(let e=a;e<c;e++)if(a===e){let o=u[e];u[e]===t&&(o=u[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{f||u[e-1]!==t||(f=!0);let r=u[f?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=E(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=E(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return E(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>R],75830);var A=o.createContext(void 0);function L(e){let t=o.useContext(A);return e||t||"ltr"}e.s(["useDirection",()=>L],586318);var P=e.i(726330),k=e.i(303536),T=e.i(765491),N=e.i(610772);let O=["top","right","bottom","left"],H=Math.min,M=Math.max,D=Math.round,I=Math.floor,B=e=>({x:e,y:e}),z={left:"right",right:"left",bottom:"top",top:"bottom"},W={start:"end",end:"start"};function F(e,t){return"function"==typeof e?e(t):e}function V(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function $(e){return"x"===e?"y":"x"}function K(e){return"y"===e?"height":"width"}let U=new Set(["top","bottom"]);function Z(e){return U.has(V(e))?"y":"x"}function Y(e){return e.replace(/start|end/g,e=>W[e])}let q=["left","right"],X=["right","left"],G=["top","bottom"],J=["bottom","top"];function Q(e){return e.replace(/left|right|bottom|top/g,e=>z[e])}function ee(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function et(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function er(e,t,r){let n,{reference:i,floating:o}=e,l=Z(t),a=$(Z(t)),s=K(a),c=V(t),u="y"===l,f=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,p=i[s]/2-o[s]/2;switch(c){case"top":n={x:f,y:i.y-o.height};break;case"bottom":n={x:f,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:d};break;case"left":n={x:i.x-o.width,y:d};break;default:n={x:i.x,y:i.y}}switch(_(t)){case"start":n[a]-=p*(r&&u?-1:1);break;case"end":n[a]+=p*(r&&u?-1:1)}return n}let en=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:l}=r,a=o.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:f}=er(c,n,s),d=n,p={},h=0;for(let r=0;r<a.length;r++){let{name:o,fn:m}=a[r],{x:g,y:v,data:y,reset:w}=await m({x:u,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});u=null!=g?g:u,f=null!=v?v:f,p={...p,[o]:{...p[o],...y}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:f}=er(c,d,s)),r=-1)}return{x:u,y:f,placement:d,strategy:i,middlewareData:p}};async function ei(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=F(t,e),h=ee(p),m=a[d?"floating"===f?"reference":"floating":f],g=et(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),v="floating"===f?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),w=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},x=et(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-x.top+h.top)/w.y,bottom:(x.bottom-g.bottom+h.bottom)/w.y,left:(g.left-x.left+h.left)/w.x,right:(x.right-g.right+h.right)/w.x}}function eo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function el(e){return O.some(t=>e[t]>=0)}let ea=new Set(["left","top"]);async function es(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),l=V(r),a=_(r),s="y"===Z(r),c=ea.has(l)?-1:1,u=o&&s?-1:1,f=F(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}
1:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:d*c}:{x:d*c,y:p*u}}function ec(){return"undefined"!=typeof window}function eu(e){return ep(e)?(e.nodeName||"").toLowerCase():"#document"}function ef(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ed(e){var t;return null==(t=(ep(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ep(e){return!!ec()&&(e instanceof Node||e instanceof ef(e).Node)}function eh(e){return!!ec()&&(e instanceof Element||e instanceof ef(e).Element)}function em(e){return!!ec()&&(e instanceof HTMLElement||e instanceof ef(e).HTMLElement)}function eg(e){return!!ec()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ef(e).ShadowRoot)}let ev=new Set(["inline","contents"]);function ey(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=eP(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!ev.has(i)}let ew=new Set(["table","td","th"]),ex=[":popover-open",":modal"];function eb(e){return ex.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eC=["transform","translate","scale","rotate","perspective"],eR=["transform","translate","scale","rotate","perspective","filter"],eS=["paint","layout","strict","content"];function eE(e){let t=ej(),r=eh(e)?eP(e):e;return eC.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||eR.some(e=>(r.willChange||"").includes(e))||eS.some(e=>(r.contain||"").includes(e))}function ej(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eA=new Set(["html","body","#document"]);function eL(e){return eA.has(eu(e))}function eP(e){return ef(e).getComputedStyle(e)}function ek(e){return eh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eT(e){if("html"===eu(e))return e;let t=e.assignedSlot||e.parentNode||eg(e)&&e.host||ed(e);return eg(t)?t.host:t}function eN(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=eT(t);return eL(r)?t.ownerDocument?t.ownerDocument.body:t.body:em(r)&&ey(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),l=ef(i);if(o){let e=eO(l);return t.concat(l,l.visualViewport||[],ey(i)?i:[],e&&r?eN(e):[])}return t.concat(i,eN(i,[],r))}function eO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eH(e){let t=eP(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=em(e),o=i?e.offsetWidth:r,l=i?e.offsetHeight:n,a=D(r)!==o||D(n)!==l;return a&&(r=o,n=l),{width:r,height:n,$:a}}function eM(e){return eh(e)?e:e.contextElement}function eD(e){let t=eM(e);if(!em(t))return B(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=eH(t),l=(o?D(r.width):r.width)/n,a=(o?D(r.height):r.height)/i;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eI=B(0);function eB(e){let t=ef(e);return ej()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eI}function ez(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),l=eM(e),a=B(1);t&&(n?eh(n)&&(a=eD(n)):a=eD(e));let s=(void 0===(i=r)&&(i=!1),n&&(!i||n===ef(l))&&i)?eB(l):B(0),c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(l){let e=ef(l),t=n&&eh(n)?ef(n):n,r=e,i=eO(r);for(;i&&n&&t!==r;){let e=eD(i),t=i.getBoundingClientRect(),n=eP(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;c*=e.x,u*=e.y,f*=e.x,d*=e.y,c+=o,u+=l,i=eO(r=ef(i))}}return et({width:f,height:d,x:c,y:u})}function eW(e,t){let r=ek(e).scrollLeft;return t?t.left+r:ez(ed(e)).left+r}function eF(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-eW(e,r),y:r.top+t.scrollTop}}let eV=new Set(["absolute","fixed"]);function e_(e,t,r){var n;let i;if("viewport"===t)i=function(e,t){let r=ef(e),n=ed(e),i=r.visualViewport,o=n.clientWidth,l=n.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;let e=ej();
1(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let c=eW(n);if(c<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,l=Math.abs(n.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else c<=25&&(o+=c);return{width:o,height:l,x:a,y:s}}(e,r);else if("document"===t){let t,r,o,l,a,s,c;n=ed(e),t=ed(n),r=ek(n),o=n.ownerDocument.body,l=M(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=M(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-r.scrollLeft+eW(n),c=-r.scrollTop,"rtl"===eP(o).direction&&(s+=M(t.clientWidth,o.clientWidth)-l),i={width:l,height:a,x:s,y:c}}else if(eh(t)){let e,n,o,l,a,s;n=(e=ez(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,l=em(t)?eD(t):B(1),a=t.clientWidth*l.x,s=t.clientHeight*l.y,i={width:a,height:s,x:o*l.x,y:n*l.y}}else{let r=eB(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return et(i)}function e$(e){return"static"===eP(e).position}function eK(e,t){if(!em(e)||"fixed"===eP(e).position)return null;if(t)return t(e);let r=e.offsetParent;return ed(e)===r&&(r=r.ownerDocument.body),r}function eU(e,t){var r;let n=ef(e);if(eb(e))return n;if(!em(e)){let t=eT(e);for(;t&&!eL(t);){if(eh(t)&&!e$(t))return t;t=eT(t)}return n}let i=eK(e,t);for(;i&&(r=i,ew.has(eu(r)))&&e$(i);)i=eK(i,t);return i&&eL(i)&&e$(i)&&!eE(i)?n:i||function(e){let t=eT(e);for(;em(t)&&!eL(t);){if(eE(t))return t;if(eb(t))break;t=eT(t)}return null}(e)||n}let eZ=async function(e){let t=this.getOffsetParent||eU,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=em(t),i=ed(t),o="fixed"===r,l=ez(e,!0,o,t),a={scrollLeft:0,scrollTop:0},s=B(0);if(n||!n&&!o)if(("body"!==eu(t)||ey(i))&&(a=ek(t)),n){let e=ez(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=eW(i));o&&!n&&i&&(s.x=eW(i));let c=!i||n||o?B(0):eF(i,a);return{x:l.left+a.scrollLeft-s.x-c.x,y:l.top+a.scrollTop-s.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eY={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,l=ed(n),a=!!t&&eb(t.floating);if(n===l||a&&o)return r;let s={scrollLeft:0,scrollTop:0},c=B(1),u=B(0),f=em(n);if((f||!f&&!o)&&(("body"!==eu(n)||ey(l))&&(s=ek(n)),em(n))){let e=ez(n);c=eD(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}let d=!l||f||o?B(0):eF(l,s);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-s.scrollLeft*c.x+u.x+d.x,y:r.y*c.y-s.scrollTop*c.y+u.y+d.y}},getDocumentElement:ed,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?eb(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=eN(e,[],!1).filter(e=>eh(e)&&"body"!==eu(e)),i=null,o="fixed"===eP(e).position,l=o?eT(e):e;for(;eh(l)&&!eL(l);){let t=eP(l),r=eE(l);r||"fixed"!==t.position||(i=null),(o?!r&&!i:!r&&"static"===t.position&&!!i&&eV.has(i.position)||ey(l)&&!r&&function e(t,r){let n=eT(t);return!(n===r||!eh(n)||eL(n))&&("fixed"===eP(n).position||e(n,r))}(e,l))?n=n.filter(e=>e!==l):i=t,l=eT(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=o[0],a=o.reduce((e,r)=>{let n=e_(t,r,i);return e.top=M(n.top,e.top),e.right=H(n.right,e.right),e.bottom=H(n.bottom,e.bottom),e.left=M(n.left,e.left),e},e_(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:eU,getElementRects:eZ,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=eH(e);return{width:t,height:r}},getScale:eD,isElement:eh,isRTL:function(e){return"rtl"===eP(e).direction}};function eq(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eX=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=F(e,t)||{};if(null==c)return{};let f=ee(u),d={x:r,y:n},p=$(Z(i)),h=K(p),m=await l.getDimensions(c),g="y"===p,v=g?"clientHeight":"clientWidth",y=o.reference[h]+o.reference[p]-d[p]-o.floating[h],w=d[p]-o.reference[p],x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),b=x?x[v]:0;b&&await (null==l.isElement?void 0:l.isElement(x))||(b=a.floating[v]||o.floating[h]);let C=b/2-m[h]/2-1,R=H(f[g?"top":"left"],C),S=H(f[g?"bottom":"right"],C),E=b-m[h]-S,j=b/2-m[h]/2+(y/2-w/2),A=M(R,H(j,E)),L=!s.arrow&&null!=_(i)&&j!==A&&o.reference[h]/2-(j<R?R:S)-m[h]/2<0,P=L?j<R?j-R:j-E:0;return{[p]:d[p]+P,data:{[p]:A,centerOffset:j-A-P,...L&&{alignmentOffset:P}},reset:L}}});var eG="undefined"!=typeof document?o.useLayoutEffect:function(){};function eJ(e,t){let r,n,i;if(e===t)return!0;
1if(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((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!eJ(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!eJ(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eQ(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e0(e,t){let r=eQ(e);return Math.round(t*r)/r}function e1(e){let t=o.useRef(e);return eG(()=>{t.current=e}),t}var e9=e.i(248425),e5=o.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...l}=e;return(0,i.jsx)(e9.Primitive.svg,{...l,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,i.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e5.displayName="Arrow";var e3=e.i(30207),e4=e.i(934620),e6="Popper",[e7,e2]=(0,y.createContextScope)(e6),[e8,te]=e7(e6),tt=e=>{let{__scopePopper:t,children:r}=e,[n,l]=o.useState(null);return(0,i.jsx)(e8,{scope:t,anchor:n,onAnchorChange:l,children:r})};tt.displayName=e6;var tr="PopperAnchor",tn=o.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...l}=e,a=te(tr,r),s=o.useRef(null),c=(0,w.useComposedRefs)(t,s),u=o.useRef(null);return o.useEffect(()=>{let e=u.current;u.current=n?.current||s.current,e!==u.current&&a.onAnchorChange(u.current)}),n?null:(0,i.jsx)(e9.Primitive.div,{...l,ref:c})});tn.displayName=tr;var ti="PopperContent",[to,tl]=e7(ti),ta=o.forwardRef((e,t)=>{var r,n,l,a,s,c,u,f,d,p,h,g,v;let{__scopePopper:y,side:x="bottom",sideOffset:b=0,align:C="center",alignOffset:R=0,arrowPadding:S=0,avoidCollisions:E=!0,collisionBoundary:j=[],collisionPadding:A=0,sticky:L="partial",hideWhenDetached:P=!1,updatePositionStrategy:k="optimized",onPlaced:T,...N}
1=e,O=te(ti,y),[D,B]=o.useState(null),z=(0,w.useComposedRefs)(t,e=>B(e)),[W,U]=o.useState(null),ee=function(e){let[t,r]=o.useState(void 0);return(0,e4.useLayoutEffect)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(W),et=ee?.width??0,er=ee?.height??0,ec="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},eu=Array.isArray(j)?j:[j],ef=eu.length>0,ep={padding:ec,boundary:eu.filter(tf),altBoundary:ef},{refs:eh,floatingStyles:em,placement:eg,isPositioned:ev,middlewareData:ey}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,d]=o.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(n);eJ(p,n)||h(n);let[g,v]=o.useState(null),[y,w]=o.useState(null),x=o.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),b=o.useCallback(e=>{e!==E.current&&(E.current=e,w(e))},[]),C=l||g,R=a||y,S=o.useRef(null),E=o.useRef(null),j=o.useRef(f),A=null!=c,L=e1(c),P=e1(i),k=e1(u),T=o.useCallback(()=>{var e,n;let i,o,l;if(!S.current||!E.current)return;let a={placement:t,strategy:r,middleware:p};P.current&&(a.platform=P.current),(e=S.current,n=E.current,i=new Map,l={...(o={platform:eY,...a}).platform,_c:i},en(e,n,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==k.current};N.current&&!eJ(j.current,t)&&(j.current=t,m.flushSync(()=>{d(t)}))})},[p,t,r,P,k]);eG(()=>{!1===u&&j.current.isPositioned&&(j.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let N=o.useRef(!1);eG(()=>(N.current=!0,()=>{N.current=!1}),[]),eG(()=>{if(C&&(S.current=C),R&&(E.current=R),C&&R){if(L.current)return L.current(C,R,T);T()}},[C,R,T,L,A]);let O=o.useMemo(()=>({reference:S,floating:E,setReference:x,setFloating:b}),[x,b]),H=o.useMemo(()=>({reference:C,floating:R}),[C,R]),M=o.useMemo(()=>{let e={position:r,left:0,top:0};if(!H.floating)return e;let t=e0(H.floating,f.x),n=e0(H.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...eQ(H.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,H.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:T,refs:O,elements:H,floatingStyles:M}),[f,T,O,H,M])}({strategy:"fixed",placement:x+("center"!==C?"-"+C:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=n,u=eM(e),f=o||l?[...u?eN(u):[],...eN(t)]:[];f.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});let d=u&&s?function(e,t){let r,n=null,i=ed(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),o();let c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(a||t(),!d||!p)return;let h={rootMargin:-I(f)+"px "+-I(i.clientWidth-(u+d))+"px "+-I(i.clientHeight-(f+p))+"px "+-I(u)+"px",threshold:M(0,H(1,s))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!m)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==n||eq(c,e.getBoundingClientRect())||l(),m=!1}try{n=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(g,h)}n.observe(e)}(!0),o}(u,r):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let m=c?ez(e):null;return c&&function t(){let n=ez(e);m&&!eq(m,n)&&r(),m=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;f.forEach(e=>{o&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===k}),elements:{reference:O.anchor},middleware:[{...{name:"offset",options:n=r={mainAxis:b+er,alignmentAxis:R},async fn(e){var t,r;let{x:i,y:o,placement:l,middlewareData:a}=e,s=await es(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}},options:[r,void 0]},E&&{...{name:"shift",options:s=a={mainAxis:!0,crossAxis:!1,limiter:"partial"===L?{...(l=void 0,{options:l={},fn(e){let{x:t,y:r,placement:n,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=F(l,e),u={x:t,y:r},f=Z(n),d=$(f),p=u[d],h=u[f],m=F(a,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,r=i.reference[d]+i.reference[e]-g.mainAxis;p<t?p=t:p>r&&(p=r)}if(c){var v,y;let e="y"===d?"width":"height",t=ea.has(V(n)),r=i.reference[f]-i.floating[e]+(t&&(null==(v=o.offset)?void 0:v[f])||0)+(t?0:g.crossAxis),l=i.reference[f]+i.reference[e]+(t?0:(null==(y=o.offset)?void 0:y[f])||0)-(t?g.crossAxis:0);h<r?h=r:h>l&&(h=l)}return{[d]:p,[f]:h}}}),options:[void 0,void 0]}:void 0,...ep},async fn(e){let{x:t,y:r,placement:n}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...a}=F(s,e),c={x:t,y:r},u=await ei(e,a),f=Z(V(n)),d=$(f),p=c[d],h=c[f];if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=p+u[e],n=p-u[t];p=M(r,H(p,n))}if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=h+u[e],n=h-u[t];h=M(r,H(h,n))}let m=l.fn({...e,[d]:p,[f]:h});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[d]:i,[f]:o}}}}},options:[a,void 0]},E&&{...{name:"flip",options:u=c={...ep},async fn(e){var t,r,n,i,o,l,a,s;let c,f,d,{placement:p,middlewareData:h,rects:m,initialPlacement:g,platform:v,elements:y}=e,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:S=!0,...E}=F(u,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let j=V(p),A=Z(g),L=V(g)===g,P=await (null==v.isRTL?void 0:v.isRTL(y.floating)),k=b||(L||!S?[Q(g)]:(c=Q(g),[Y(g),c,Y(c)])),T="none"!==R;!b&&T&&k.push(...(f=_(g),d=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?X:q;return t?q:X;case"left":case"right":return t?G:J;default:return[]}}(V(g),"start"===R,P),f&&(d=d.map(e=>
1e+"-"+f),S&&(d=d.concat(d.map(Y)))),d));let N=[g,...k],O=await ei(e,E),H=[],M=(null==(r=h.flip)?void 0:r.overflows)||[];if(w&&H.push(O[j]),x){let e,t,r,n,i=(l=p,a=m,void 0===(s=P)&&(s=!1),e=_(l),r=K(t=$(Z(l))),n="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[r]>a.floating[r]&&(n=Q(n)),[n,Q(n)]);H.push(O[i[0]],O[i[1]])}if(M=[...M,{placement:p,overflows:H}],!H.every(e=>e<=0)){let e=((null==(n=h.flip)?void 0:n.index)||0)+1,t=N[e];if(t&&("alignment"!==x||A===Z(t)||M.every(e=>Z(e.placement)!==A||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let r=null==(i=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(C){case"bestFit":{let e=null==(o=M.filter(e=>{if(T){let t=Z(e.placement);return t===A||"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:o[0];e&&(r=e);break}case"initialPlacement":r=g}if(p!==r)return{reset:{placement:r}}}return{}}},options:[c,void 0]},{...{name:"size",options:d=f={...ep,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,r;let n,i,{placement:o,rects:l,platform:a,elements:s}=e,{apply:c=()=>{},...u}=F(d,e),f=await ei(e,u),p=V(o),h=_(o),m="y"===Z(o),{width:g,height:v}=l.floating;"top"===p||"bottom"===p?(n=p,i=h===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,n="end"===h?"top":"bottom");let y=v-f.top-f.bottom,w=g-f.left-f.right,x=H(v-f[n],y),b=H(g-f[i],w),C=!e.middlewareData.shift,R=x,S=b;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=w),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(R=y),C&&!h){let e=M(f.left,0),t=M(f.right,0),r=M(f.top,0),n=M(f.bottom,0);m?S=g-2*(0!==e||0!==t?e+t:M(f.left,f.right)):R=v-2*(0!==r||0!==n?r+n:M(f.top,f.bottom))}await c({...e,availableWidth:S,availableHeight:R});let E=await a.getDimensions(s.floating);return g!==E.width||v!==E.height?{reset:{rects:!0}}:{}}},options:[f,void 0]},W&&{...{name:"arrow",options:h=p={element:W,padding:S},fn(e){let{element:t,padding:r}="function"==typeof h?h(e):h;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eX({element:t.current,padding:r}).fn(e):{}:t?eX({element:t,padding:r}).fn(e):{}}},options:[p,void 0]},td({arrowWidth:et,arrowHeight:er}),P&&{...{name:"hide",options:v=g={strategy:"referenceHidden",...ep},async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...n}=F(v,e);switch(r){case"referenceHidden":{let r=eo(await ei(e,{...n,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:el(r)}}}case"escaped":{let r=eo(await ei(e,{...n,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:el(r)}}}default:return{}}}},options:[g,void 0]}]}),[ew,ex]=tp(eg),eb=(0,e3.useCallbackRef)(T);(0,e4.useLayoutEffect)(()=>{ev&&eb?.()},[ev,eb]);let eC=ey.arrow?.x,eR=ey.arrow?.y,eS=ey.arrow?.centerOffset!==0,[eE,ej]=o.useState();return(0,e4.useLayoutEffect)(()=>{D&&ej(window.getComputedStyle(D).zIndex)},[D]),(0,i.jsx)("div",{ref:eh.setFloating,"data-radix-popper-content-wrapper":"",style:{...em,transform:ev?em.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eE,"--radix-popper-transform-origin":[ey.transformOrigin?.x,ey.transformOrigin?.y].join(" "),...ey.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(to,{scope:y,placedSide:ew,onArrowChange:U,arrowX:eC,arrowY:eR,shouldHideArrow:eS,children:(0,i.jsx)(e9.Primitive.div,{"data-side":ew,"data-align":ex,...N,ref:z,style:{...N.style,animation:ev?void 0:"none"}})})})});ta.displayName=ti;var ts="PopperArrow",tc={top:"bottom",right:"left",bottom:"top",left:"right"},tu=o.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=tl(ts,r),l=tc[o.placedSide];return(0,i.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]: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,i.jsx)(e5,{...n,ref:t,style:{...n.style,display:"block"}})})});function tf(e){return null!==e}tu.displayName=ts;var td=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[s,c]=tp(r),u={start:"0%",center:"50%",end:"100%"}[c],f=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=o?u:`${f}px`,h=`${-a}px`):"top"===s?(p=o?u:`${f}px`,h=`${n.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=o?u:`${d}px`):"left"===s&&(p=`${n.floating.width+a}px`,h=o?u:`${d}px`),{data:{x:p,y:h}}}});function tp(e){let[t,r="center"]=e.split("-");return[t,r]}e.s(["Anchor",()=>tn,"Arrow",()=>tu,"Content",()=>ta,"Root",()=>tt,"createPopperScope",()=>e2],853660);var th=e.i(774606),tm=Symbol("radix.slottable");function tg(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tm}var tv=e.i(369340),ty=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});o.forwardRef((e,t)=>
1(0,i.jsx)(e9.Primitive.span,{...e,ref:t,style:{...ty,...e.style}})).displayName="VisuallyHidden";var tw=e.i(186312),tx=e.i(985369),tb=[" ","Enter","ArrowUp","ArrowDown"],tC=[" ","Enter"],tR="Select",[tS,tE,tj]=R(tR),[tA,tL]=(0,y.createContextScope)(tR,[tj,e2]),tP=e2(),[tk,tT]=tA(tR),[tN,tO]=tA(tR),tH=e=>{let{__scopeSelect:t,children:r,open:n,defaultOpen:l,onOpenChange:a,value:s,defaultValue:c,onValueChange:u,dir:f,name:d,autoComplete:p,disabled:h,required:m,form:g}=e,v=tP(t),[y,w]=o.useState(null),[x,b]=o.useState(null),[C,R]=o.useState(!1),S=L(f),[E,j]=(0,tv.useControllableState)({prop:n,defaultProp:l??!1,onChange:a,caller:tR}),[A,P]=(0,tv.useControllableState)({prop:s,defaultProp:c,onChange:u,caller:tR}),k=o.useRef(null),T=!y||g||!!y.closest("form"),[O,H]=o.useState(new Set),M=Array.from(O).map(e=>e.props.value).join(";");return(0,i.jsx)(tt,{...v,children:(0,i.jsxs)(tk,{required:m,scope:t,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:C,onValueNodeHasChildrenChange:R,contentId:(0,N.useId)(),value:A,onValueChange:P,open:E,onOpenChange:j,dir:S,triggerPointerDownPosRef:k,disabled:h,children:[(0,i.jsx)(tS.Provider,{scope:t,children:(0,i.jsx)(tN,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(e=>{H(t=>new Set(t).add(e))},[]),onNativeOptionRemove:o.useCallback(e=>{H(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),T?(0,i.jsxs)(ru,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:p,value:A,onChange:e=>P(e.target.value),disabled:h,form:g,children:[void 0===A?(0,i.jsx)("option",{value:""}):null,Array.from(O)]},M):null]})})};tH.displayName=tR;var tM="SelectTrigger",tD=o.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:n=!1,...l}=e,a=tP(r),s=tT(tM,r),c=s.disabled||n,u=(0,w.useComposedRefs)(t,s.onTriggerChange),f=tE(r),d=o.useRef("touch"),[p,h,m]=rd(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===s.value),n=rp(t,e,r);void 0!==n&&s.onValueChange(n.value)}),g=e=>{c||(s.onOpenChange(!0),m()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,i.jsx)(tn,{asChild:!0,...a,children:(0,i.jsx)(e9.Primitive.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":rf(s.value)?"":void 0,...l,ref:u,onClick:(0,v.composeEventHandlers)(l.onClick,e=>{e.currentTarget.focus(),"mouse"!==d.current&&g(e)}),onPointerDown:(0,v.composeEventHandlers)(l.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:(0,v.composeEventHandlers)(l.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&tb.includes(e.key)&&(g(),e.preventDefault())})})})});tD.displayName=tM;var tI="SelectValue",tB=o.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,children:l,placeholder:a="",...s}=e,c=tT(tI,r),{onValueNodeHasChildrenChange:u}=c,f=void 0!==l,d=(0,w.useComposedRefs)(t,c.onValueNodeChange);return(0,e4.useLayoutEffect)(()=>{u(f)},[u,f]),(0,i.jsx)(e9.Primitive.span,{...s,ref:d,style:{pointerEvents:"none"},children:rf(c.value)?(0,i.jsx)(i.Fragment,{children:a}):l})});tB.displayName=tI;var tz=o.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...o}=e;return(0,i.jsx)(e9.Primitive.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});tz.displayName="SelectIcon";var tW=e=>(0,i.jsx)(th.Portal,{asChild:!0,...e});tW.displayName="SelectPortal";var tF="SelectContent",tV=o.forwardRef((e,t)=>{let r=tT(tF,e.__scopeSelect),[n,l]=o.useState();return((0,e4.useLayoutEffect)(()=>
1{l(new DocumentFragment)},[]),r.open)?(0,i.jsx)(tU,{...e,ref:t}):n?m.createPortal((0,i.jsx)(t_,{scope:e.__scopeSelect,children:(0,i.jsx)(tS.Slot,{scope:e.__scopeSelect,children:(0,i.jsx)("div",{children:e.children})})}),n):null});tV.displayName=tF;var[t_,t$]=tA(tF),tK=((n=o.forwardRef((e,t)=>{let{children:r,...n}=e;if(o.isValidElement(r)){var i;let e,l,a=(i=r,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),s=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==o.Fragment&&(s.ref=t?(0,w.composeRefs)(t,a):a),o.cloneElement(r,s)}return o.Children.count(r)>1?o.Children.only(null):null})).displayName="SelectContent.RemoveScroll.SlotClone",t=n,(r=o.forwardRef((e,r)=>{let{children:n,...l}=e,a=o.Children.toArray(n),s=a.find(tg);if(s){let e=s.props.children,n=a.map(t=>t!==s?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...l,ref:r,children:o.isValidElement(e)?o.cloneElement(e,void 0,n):null})}return(0,i.jsx)(t,{...l,ref:r,children:n})})).displayName="SelectContent.RemoveScroll.Slot",r),tU=o.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:u,align:f,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:y,avoidCollisions:x,...b}=e,C=tT(tF,r),[R,S]=o.useState(null),[E,j]=o.useState(null),A=(0,w.useComposedRefs)(t,e=>
1S(e)),[L,N]=o.useState(null),[O,H]=o.useState(null),M=tE(r),[D,I]=o.useState(!1),B=o.useRef(!1);o.useEffect(()=>{if(R)return(0,tw.hideOthers)(R)},[R]),(0,k.useFocusGuards)();let z=o.useCallback(e=>{let[t,...r]=M().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(r?.scrollIntoView({block:"nearest"}),r===t&&E&&(E.scrollTop=0),r===n&&E&&(E.scrollTop=E.scrollHeight),r?.focus(),document.activeElement!==i))return},[M,E]),W=o.useCallback(()=>z([L,R]),[z,L,R]);o.useEffect(()=>{D&&W()},[D,W]);let{onOpenChange:F,triggerPointerDownPosRef:V}=C;o.useEffect(()=>{if(R){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(V.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(V.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():R.contains(r.target)||F(!1),document.removeEventListener("pointermove",t),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[R,F,V]),o.useEffect(()=>{let e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);let[_,$]=rd(e=>{let t=M().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=rp(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),K=o.useCallback((e,t,r)=>{let n=!B.current&&!r;(void 0!==C.value&&C.value===t||n)&&(N(e),n&&(B.current=!0))},[C.value]),U=o.useCallback(()=>R?.focus(),[R]),Z=o.useCallback((e,t,r)=>{let n=!B.current&&!r;(void 0!==C.value&&C.value===t||n)&&H(e)},[C.value]),Y="popper"===n?tY:tZ,q=Y===tY?{side:c,sideOffset:u,align:f,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:y,avoidCollisions:x}:{};return(0,i.jsx)(t_,{scope:r,content:R,viewport:E,onViewportChange:j,itemRefCallback:K,selectedItem:L,onItemLeave:U,itemTextRefCallback:Z,focusSelectedItem:W,selectedItemText:O,position:n,isPositioned:D,searchRef:_,children:(0,i.jsx)(tx.RemoveScroll,{as:tK,allowPinchZoom:!0,children:(0,i.jsx)(T.FocusScope,{asChild:!0,trapped:C.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,v.composeEventHandlers)(l,e=>{C.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,i.jsx)(P.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:(0,i.jsx)(Y,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:e=>e.preventDefault(),...b,...q,onPlaced:()=>I(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:(0,v.composeEventHandlers)(b.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||$(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>z(t)),e.preventDefault()}})})})})})})});tU.displayName="SelectContentImpl";var tZ=o.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...l}=e,a=tT(tF,r),s=t$(tF,r),[c,u]=o.useState(null),[f,d]=o.useState(null),p=(0,w.useComposedRefs)(t,e=>d(e)),h=tE(r),m=o.useRef(!1),v=o.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:b,focusSelectedItem:C}=s,R=o.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&f&&y&&x&&b){let e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if("rtl"!==a.dir){let n=i.left-t.left,o=r.left-n,l=e.left-o,a=e.width+l,s=Math.max(a,t.width),u=g(o,[10,Math.max(10,window.innerWidth-10-s)]);c.style.minWidth=a+"px",c.style.left=u+"px"}else{let n=t.right-i.right,o=window.innerWidth-r.right-n,l=window.innerWidth-e.right-o,a=e.width+l,s=Math.max(a,t.width),u=g(o,[10,Math.max(10,window.innerWidth-10-s)]);c.style.minWidth=a+"px",c.style.right=u+"px"}let o=h(),l=window.innerHeight-20,s=y.scrollHeight,u=window.getComputedStyle(f),d=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),v=parseInt(u.borderBottomWidth,10),w=d+p+s+parseInt(u.paddingBottom,10)+v,C=Math.min(5*x.offsetHeight,w),R=window.getComputedStyle(y),S=parseInt(R.paddingTop,10),E=parseInt(R.paddingBottom,10),j=e.top+e.height/2-10,A=x.offsetHeight/2,L=d+p+(x.offsetTop+A);if(L<=j){let e=o.length>0&&x===o[o.length-1].ref.current;c.style.bottom="0px";let t=Math.max(l-j,A+(e?E:0)+(f.clientHeight-y.offsetTop-y.offsetHeight)+v);c.style.height=L+t+"px"}else{let e=o.length>0&&x===o[0].ref.current;c.style.top="0px";let t=Math.max(j,d+y.offsetTop+(e?S:0)+A);c.style.height=t+(w-L)+"px",y.scrollTop=L-j+y.offsetTop}c.style.margin="10px 0",c.style.minHeight=C+"px",c.style.maxHeight=l+"px",n?.(),requestAnimationFrame(()=>m.current=!0)}},[h,a.trigger,a.valueNode,c,f,y,x,b,a.dir,n]);(0,e4.useLayoutEffect)(()=>R(),[R]);let[S,E]=o.useState();(0,e4.useLayoutEffect)(()=>{f&&E(window.getComputedStyle(f).zIndex)},[f]);let j=o.useCallback(e=>{e&&!0===v.current&&(R(),C?.(),v.current=!1)},[R,C]);return(0,i.jsx)(tq,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:j,children:(0,i.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:(0,i.jsx)(e9.Primitive.div,{...l,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});tZ.displayName="SelectItemAlignedPosition";var tY=o.forwardRef((e,t)=>
1{let{__scopeSelect:r,align:n="start",collisionPadding:o=10,...l}=e,a=tP(r);return(0,i.jsx)(ta,{...a,...l,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tY.displayName="SelectPopperPosition";var[tq,tX]=tA(tF,{}),tG="SelectViewport",tJ=o.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...l}=e,a=t$(tG,r),s=tX(tG,r),c=(0,w.useComposedRefs)(t,a.onViewportChange),u=o.useRef(0);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,i.jsx)(tS.Slot,{scope:r,children:(0,i.jsx)(e9.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:(0,v.composeEventHandlers)(l.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=s;if(n?.current&&r){let e=Math.abs(u.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let o=i+e,l=Math.min(n,o),a=o-l;r.style.height=l+"px","0px"===r.style.bottom&&(t.scrollTop=a>0?a:0,r.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})});tJ.displayName=tG;var tQ="SelectGroup",[t0,t1]=tA(tQ),t9=o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=(0,N.useId)();return(0,i.jsx)(t0,{scope:r,id:o,children:(0,i.jsx)(e9.Primitive.div,{role:"group","aria-labelledby":o,...n,ref:t})})});t9.displayName=tQ;var t5="SelectLabel",t3=o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=t1(t5,r);return(0,i.jsx)(e9.Primitive.div,{id:o.id,...n,ref:t})});t3.displayName=t5;var t4="SelectItem",[t6,t7]=tA(t4),t2=o.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:l=!1,textValue:a,...s}=e,c=tT(t4,r),u=t$(t4,r),f=c.value===n,[d,p]=o.useState(a??""),[h,m]=o.useState(!1),g=(0,w.useComposedRefs)(t,e=>u.itemRefCallback?.(e,n,l)),y=(0,N.useId)(),x=o.useRef("touch"),b=()=>{l||(c.onValueChange(n),c.onOpenChange(!1))};if(""===n)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,i.jsx)(t6,{scope:r,value:n,disabled:l,textId:y,isSelected:f,onItemTextChange:o.useCallback(e=>{p(t=>t||(e?.textContent??"").trim())},[]),children:(0,i.jsx)(tS.ItemSlot,{scope:r,value:n,disabled:l,textValue:d,children:(0,i.jsx)(e9.Primitive.div,{role:"option","aria-labelledby":y,"data-highlighted":h?"":void 0,"aria-selected":f&&h,"data-state":f?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...s,ref:g,onFocus:(0,v.composeEventHandlers)(s.onFocus,()=>m(!0)),onBlur:(0,v.composeEventHandlers)(s.onBlur,()=>m(!1)),onClick:(0,v.composeEventHandlers)(s.onClick,()=>{"mouse"!==x.current&&b()}),onPointerUp:(0,v.composeEventHandlers)(s.onPointerUp,()=>{"mouse"===x.current&&b()}),onPointerDown:(0,v.composeEventHandlers)(s.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,v.composeEventHandlers)(s.onPointerMove,e=>{x.current=e.pointerType,l?u.onItemLeave?.():"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,v.composeEventHandlers)(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:(0,v.composeEventHandlers)(s.onKeyDown,e=>{(u.searchRef?.current===""||" "!==e.key)&&(tC.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});t2.displayName=t4;var t8="SelectItemText",re=o.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:l,...a}
1=e,s=tT(t8,r),c=t$(t8,r),u=t7(t8,r),f=tO(t8,r),[d,p]=o.useState(null),h=(0,w.useComposedRefs)(t,e=>p(e),u.onItemTextChange,e=>c.itemTextRefCallback?.(e,u.value,u.disabled)),g=d?.textContent,v=o.useMemo(()=>(0,i.jsx)("option",{value:u.value,disabled:u.disabled,children:g},u.value),[u.disabled,u.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=f;return(0,e4.useLayoutEffect)(()=>(y(v),()=>x(v)),[y,x,v]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e9.Primitive.span,{id:u.textId,...a,ref:h}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?m.createPortal(a.children,s.valueNode):null]})});re.displayName=t8;var rt="SelectItemIndicator",rr=o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return t7(rt,r).isSelected?(0,i.jsx)(e9.Primitive.span,{"aria-hidden":!0,...n,ref:t}):null});rr.displayName=rt;var rn="SelectScrollUpButton",ri=o.forwardRef((e,t)=>{let r=t$(rn,e.__scopeSelect),n=tX(rn,e.__scopeSelect),[l,a]=o.useState(!1),s=(0,w.useComposedRefs)(t,n.onScrollButtonChange);return(0,e4.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),l?(0,i.jsx)(ra,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ri.displayName=rn;var ro="SelectScrollDownButton",rl=o.forwardRef((e,t)=>{let r=t$(ro,e.__scopeSelect),n=tX(ro,e.__scopeSelect),[l,a]=o.useState(!1),s=(0,w.useComposedRefs)(t,n.onScrollButtonChange);return(0,e4.useLayoutEffect)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),l?(0,i.jsx)(ra,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});rl.displayName=ro;var ra=o.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...l}=e,a=t$("SelectScrollButton",r),s=o.useRef(null),c=tE(r),u=o.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return o.useEffect(()=>()=>u(),[u]),(0,e4.useLayoutEffect)(()=>{let e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,i.jsx)(e9.Primitive.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:(0,v.composeEventHandlers)(l.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(n,50))}),onPointerMove:(0,v.composeEventHandlers)(l.onPointerMove,()=>{a.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(n,50))}),onPointerLeave:(0,v.composeEventHandlers)(l.onPointerLeave,()=>{u()})})}),rs=o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,i.jsx)(e9.Primitive.div,{"aria-hidden":!0,...n,ref:t})});rs.displayName="SelectSeparator";var rc="SelectArrow";o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=tP(r),l=tT(rc,r),a=t$(rc,r);return l.open&&"popper"===a.position?(0,i.jsx)(tu,{...o,...n,ref:t}):null}).displayName=rc;var ru=o.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{let l,a=o.useRef(null),s=(0,w.useComposedRefs)(n,a),c=(l=o.useRef({value:t,previous:t}),o.useMemo(()=>(l.current.value!==t&&(l.current.previous=l.current.value,l.current.value=t),l.current.previous),[t]));return o.useEffect(()=>{let e=a.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(c!==t&&r){let n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[c,t]),(0,i.jsx)(e9.Primitive.select,{...r,style:{...ty,...r.style},ref:s,defaultValue:t})});function rf(e){return""===e||void 0===e}function rd(e){let t=(0,e3.useCallbackRef)(e),r=o.useRef(""),n=o.useRef(0),i=o.useCallback(e=>{let i=r.current+e;t(i),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),l=o.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,l]}function rp(e,t,r){var n,i;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=r?e.indexOf(r):-1,a=(n=e,i=Math.max(l,0),n.map((e,t)=>n[(i+t)%n.length]));1===o.length&&(a=a.filter(e=>e!==r));let s=a.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}ru.displayName="SelectBubbleInput";var rh=e.i(975157);let rm=o.forwardRef(({className:e,children:t,...r},n)=>(0,i.jsxs)(tD,{ref:n,className:(0,rh.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,(0,i.jsx)(tz,{asChild:!0,children:(0,i.jsx)(s,{className:"h-4 w-4 opacity-50"})})]}));rm.displayName=tD.displayName;let rg=o.forwardRef(({className:e,...t},r)=>(0,i.jsx)(ri,{ref:r,className:(0,rh.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,i.jsx)(h,{})}));rg.displayName=ri.displayName;let rv=o.forwardRef(({className:e,...t},r)=>(0,i.jsx)(rl,{ref:r,className:(0,rh.cn)("flex cursor-default items-center justify-center py-1",e),...t,children:(0,i.jsx)(d,{})}));rv.displayName=rl.displayName;let ry=o.forwardRef(({className:e,children:t,position:r="popper",...n},o)=>(0,i.jsx)(tW,{children:(0,i.jsxs)(tV,{ref:o,className:(0,rh.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[(0,i.jsx)(rg,{}),(0,i.jsx)(tJ,{className:(0,rh.cn)("p-1","popper"===r&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),(0,i.jsx)(rv,{})]})}));ry.displayName=tV.displayName;let rw=o.forwardRef(({className:e,...t},r)=>(0,i.jsx)(t3,{ref:r,className:(0,rh.cn)("px-2 py-1.5 text-sm font-semibold",e),...t}));rw.displayName=t3.displayName;let rx=o.forwardRef(({className:e,children:t,...r},n)=>(0,i.jsxs)(t2,{ref:n,className:(0,rh.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[(0,i.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,i.jsx)(rr,{children:(0,i.jsx)(u,{className:"h-4 w-4"})})}),(0,i.jsx)(re,{children:t})]}));rx.displayName=t2.displayName;let rb=o.forwardRef(({className:e,...t},r)=>(0,i.jsx)(rs,{ref:r,className:(0,rh.cn)("-mx-1 my-1 h-px bg-muted",e),...t}));rb.displayName=rs.displayName,e.s(["Select",()=>tH,"SelectContent",()=>ry,"SelectGroup",()=>t9,"SelectItem",()=>rx,"SelectLabel",()=>rw,"SelectSeparator",()=>rb,"SelectTrigger",()=>rm,"SelectValue",()=>tB],967489)}]);

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.