trezor-suit-start.gitbook.io Open in urlscan Pro
104.18.40.47  Public Scan

Submitted URL: http://trezor-suit-start.gitbook.io/_next/static/chunks/7780-69b4d1abd247155f.js
Effective URL: https://trezor-suit-start.gitbook.io/_next/static/chunks/7780-69b4d1abd247155f.js
Submission: On August 29 via api from US — Scanned from CA

Form analysis 0 forms found in the DOM

Text Content

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7780],{24260:function(e,t){let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DOMAttributeNames:function(){return r},default:function(){return i},isEqualNode:function(){return a}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(e){let{type:t,props:n}=e,o=document.createElement(t);for(let e in n){if(!n.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===n[e])continue;let a=r[e]||e.toLowerCase();"script"===t&&("async"===a||"defer"===a||"noModule"===a)?o[a]=!!n[e]:o.setAttribute(a,n[e])}let{children:a,dangerouslySetInnerHTML:i}=n;return i?o.innerHTML=i.__html||"":a&&(o.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):""),o}function a(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){let r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}function i(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let r=t.title?t.title[0]:null,o="";if(r){let{children:e}=r.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],r=n.querySelector("meta[name=next-head-count]"),i=Number(r.content),u=[];for(let t=0,n=r.previousElementSibling;t<i;t++,n=(null==n?void 0:n.previousElementSibling)||null){var l;(null==n?void 0:null==(l=n.tagName)?void 0:l.toLowerCase())===e&&u.push(n)}let c=t.map(o).filter(e=>{for(let t=0,n=u.length;t<n;t++)if(a(u[t],e))return u.splice(t,1),!1;return!0});u.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),c.forEach(e=>n.insertBefore(e,r)),r.content=(i-u.length+c.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25327:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return b},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return g}});let r=n(84732),o=n(45622),a=n(27573),i=r._(n(3458)),u=o._(n(7653)),l=n(50241),c=n(24260),s=n(26790),d=new Map,f=new Set,p=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],v=e=>{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}},h=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:u="afterInteractive",onError:l,stylesheets:s}=e,h=n||t;if(h&&f.has(h))return;if(d.has(t)){f.add(h),d.get(t).then(r,l);return}let m=()=>{o&&o(),f.add(h)},g=document.createElement("script"),y=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),r&&r.call(this,t),m()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[n,r]of(a?(g.innerHTML=a.__html||"",m()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",m()):t&&(g.src=t,d.set(t,y)),Object.entries(e))){if(void 0===r||p.includes(n))continue;let e=c.DOMAttributeNames[n]||n.toLowerCase();g.setAttribute(e,r)}"worker"===u&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",u),s&&v(s),document.body.appendChild(g)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,s.requestIdleCallback)(()=>h(e))}):h(e)}function g(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function y(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:o=null,strategy:c="afterInteractive",onError:d,stylesheets:p,...v}=e,{updateScripts:m,scripts:g,getIsSsr:y,appDir:b,nonce:w}=(0,u.useContext)(l.HeadManagerContext),E=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||n;E.current||(o&&e&&f.has(e)&&o(),E.current=!0)},[o,t,n]);let x=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{!x.current&&("afterInteractive"===c?h(e):"lazyOnload"===c&&("complete"===document.readyState?(0,s.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,s.requestIdleCallback)(()=>h(e))})),x.current=!0)},[e,c]),("beforeInteractive"===c||"worker"===c)&&(m?(g[c]=(g[c]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:d,...v}]),m(g)):y&&y()?f.add(t||n):y&&!y()&&h(e)),b){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===c)return n?(i.default.preload(n,v.integrity?{as:"script",integrity:v.integrity,nonce:w}:{as:"script",nonce:w}),(0,a.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...v,id:t}])+")"}})):(v.dangerouslySetInnerHTML&&(v.children=v.dangerouslySetInnerHTML.__html,delete v.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...v,id:t}])+")"}}));"afterInteractive"===c&&n&&i.default.preload(n,v.integrity?{as:"script",integrity:v.integrity,nonce:w}:{as:"script",nonce:w})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21198:function(e,t,n){let r;n.d(t,{Eh:function(){return tk},VY:function(){return tj},h_:function(){return tO},fC:function(){return tL},xz:function(){return tR}});var o,a,i,u,l,c,s,d,f=n(7653),p=n.t(f,2),v=n(2467),h=n(18497),m=n(20379),g=n(76646),y=n(63465),b=n(27573),w="dismissableLayer.update",E=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x=f.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:l,onDismiss:c,...d}=e,p=f.useContext(E),[m,x]=f.useState(null),P=null!==(r=null==m?void 0:m.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,A]=f.useState({}),M=(0,h.e)(t,e=>x(e)),L=Array.from(p.layers),[R]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),O=L.indexOf(R),j=m?L.indexOf(m):-1,k=p.layersWithOutsidePointerEventsDisabled.size>0,N=j>=O,_=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,y.W)(e),o=f.useRef(!1),a=f.useRef(()=>{});return f.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){S("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...p.branches].some(e=>e.contains(t));!N||n||(null==i||i(e),null==l||l(e),e.defaultPrevented||null==c||c())},P),T=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,y.W)(e),o=f.useRef(!1);return f.useEffect(()=>{let e=e=>{e.target&&!o.current&&S("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...p.branches].some(e=>e.contains(t))||(null==u||u(e),null==l||l(e),e.defaultPrevented||null==c||c())},P);return!function(e,t=globalThis?.document){let n=(0,y.W)(e);f.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{j!==p.layers.size-1||(null==a||a(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},P),f.useEffect(()=>{if(m)return o&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(s=P.body.style.pointerEvents,P.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),C(),()=>{o&&1===p.layersWithOutsidePointerEventsDisabled.size&&(P.body.style.pointerEvents=s)}},[m,P,o,p]),f.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),C())},[m,p]),f.useEffect(()=>{let e=()=>A({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,b.jsx)(g.WV.div,{...d,ref:M,style:{pointerEvents:k?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,v.M)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,v.M)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,v.M)(e.onPointerDownCapture,_.onPointerDownCapture)})});function C(){let e=new CustomEvent(w);document.dispatchEvent(e)}function S(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,g.jH)(a,i):a.dispatchEvent(i)}x.displayName="DismissableLayer",f.forwardRef((e,t)=>{let n=f.useContext(E),r=f.useRef(null),o=(0,h.e)(t,r);return f.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,b.jsx)(g.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var P=0;function A(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var M="focusScope.autoFocusOnMount",L="focusScope.autoFocusOnUnmount",R={bubbles:!1,cancelable:!0},O=f.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[u,l]=f.useState(null),c=(0,y.W)(o),s=(0,y.W)(a),d=f.useRef(null),p=(0,h.e)(t,e=>l(e)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let e=function(e){if(v.paused||!u)return;let t=e.target;u.contains(t)?d.current=t:N(d.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||N(d.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&N(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,v.paused]),f.useEffect(()=>{if(u){_.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(M,R);u.addEventListener(M,c),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(N(r,{select:t}),document.activeElement!==n)return}(j(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&N(u))}return()=>{u.removeEventListener(M,c),setTimeout(()=>{let t=new CustomEvent(L,R);u.addEventListener(L,s),u.dispatchEvent(t),t.defaultPrevented||N(null!=e?e:document.body,{select:!0}),u.removeEventListener(L,s),_.remove(v)},0)}}},[u,c,s,v]);let m=f.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=j(e);return[k(t,e),k(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&N(a,{select:!0})):(e.preventDefault(),n&&N(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,v.paused]);return(0,b.jsx)(g.WV.div,{tabIndex:-1,...i,ref:p,onKeyDown:m})});function j(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function k(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function N(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var _=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=T(r,e)).unshift(e)},remove(e){var t;null===(t=(r=T(r,e))[0])||void 0===t||t.resume()}});function T(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var I=n(32316),W=p["useId".toString()]||(()=>void 0),D=0,F=n(82098),H=n(3458),B="undefined"!=typeof document?f.useLayoutEffect:f.useEffect;function q(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(!q(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)&&!q(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function z(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Y(e,t){let n=z(e);return Math.round(t*n)/n}function V(e){let t=f.useRef(e);return B(()=>{t.current=e}),t}let X=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?(0,F.x7)({element:n.current,padding:r}).fn(t):{}:n?(0,F.x7)({element:n,padding:r}).fn(t):{}}}),K=(e,t)=>({...(0,F.cv)(e),options:[e,t]}),Z=(e,t)=>({...(0,F.uY)(e),options:[e,t]}),U=(e,t)=>({...(0,F.dr)(e),options:[e,t]}),$=(e,t)=>({...(0,F.RR)(e),options:[e,t]}),J=(e,t)=>({...(0,F.dp)(e),options:[e,t]}),G=(e,t)=>({...(0,F.Cp)(e),options:[e,t]}),Q=(e,t)=>({...X(e),options:[e,t]});var ee=f.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,b.jsx)(g.WV.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,b.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ee.displayName="Arrow";var et=n(68288),en="Popper",[er,eo]=(0,m.b)(en),[ea,ei]=er(en),eu=e=>{let{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return(0,b.jsx)(ea,{scope:t,anchor:r,onAnchorChange:o,children:n})};eu.displayName=en;var el="PopperAnchor",ec=f.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,a=ei(el,n),i=f.useRef(null),u=(0,h.e)(t,i);return f.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||i.current)}),r?null:(0,b.jsx)(g.WV.div,{...o,ref:u})});ec.displayName=el;var es="PopperContent",[ed,ef]=er(es),ep=f.forwardRef((e,t)=>{var n,r,o,a,i,u,l,c;let{__scopePopper:s,side:d="bottom",sideOffset:p=0,align:v="center",alignOffset:m=0,arrowPadding:w=0,avoidCollisions:E=!0,collisionBoundary:x=[],collisionPadding:C=0,sticky:S="partial",hideWhenDetached:P=!1,updatePositionStrategy:A="optimized",onPlaced:M,...L}=e,R=ei(es,s),[O,j]=f.useState(null),k=(0,h.e)(t,e=>j(e)),[N,_]=f.useState(null),T=(0,et.t)(N),W=null!==(l=null==T?void 0:T.width)&&void 0!==l?l:0,D=null!==(c=null==T?void 0:T.height)&&void 0!==c?c:0,X="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},ee=Array.isArray(x)?x:[x],en=ee.length>0,er={padding:X,boundary:ee.filter(eg),altBoundary:en},{refs:eo,floatingStyles:ea,placement:eu,isPositioned:el,middlewareData:ec}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:u=!0,whileElementsMounted:l,open:c}=e,[s,d]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=f.useState(r);q(p,r)||v(r);let[h,m]=f.useState(null),[g,y]=f.useState(null),b=f.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),w=f.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),E=a||h,x=i||g,C=f.useRef(null),S=f.useRef(null),P=f.useRef(s),A=null!=l,M=V(l),L=V(o),R=f.useCallback(()=>{if(!C.current||!S.current)return;let e={placement:t,strategy:n,middleware:p};L.current&&(e.platform=L.current),(0,F.oo)(C.current,S.current,e).then(e=>{let t={...e,isPositioned:!0};O.current&&!q(P.current,t)&&(P.current=t,H.flushSync(()=>{d(t)}))})},[p,t,n,L]);B(()=>{!1===c&&P.current.isPositioned&&(P.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let O=f.useRef(!1);B(()=>(O.current=!0,()=>{O.current=!1}),[]),B(()=>{if(E&&(C.current=E),x&&(S.current=x),E&&x){if(M.current)return M.current(E,x,R);R()}},[E,x,R,M,A]);let j=f.useMemo(()=>({reference:C,floating:S,setReference:b,setFloating:w}),[b,w]),k=f.useMemo(()=>({reference:E,floating:x}),[E,x]),N=f.useMemo(()=>{let e={position:n,left:0,top:0};if(!k.floating)return e;let t=Y(k.floating,s.x),r=Y(k.floating,s.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...z(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,k.floating,s.x,s.y]);return f.useMemo(()=>({...s,update:R,refs:j,elements:k,floatingStyles:N}),[s,R,j,k,N])}({strategy:"fixed",placement:d+("center"!==v?"-"+v:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,F.Me)(...t,{animationFrame:"always"===A})},elements:{reference:R.anchor},middleware:[K({mainAxis:p+D,alignmentAxis:m}),E&&Z({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?U():void 0,...er}),E&&$({...er}),J({...er,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,u=t.floating.style;u.setProperty("--radix-popper-available-width","".concat(r,"px")),u.setProperty("--radix-popper-available-height","".concat(o,"px")),u.setProperty("--radix-popper-anchor-width","".concat(a,"px")),u.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),N&&Q({element:N,padding:w}),ey({arrowWidth:W,arrowHeight:D}),P&&G({strategy:"referenceHidden",...er})]}),[ef,ep]=eb(eu),ev=(0,y.W)(M);(0,I.b)(()=>{el&&(null==ev||ev())},[el,ev]);let eh=null===(n=ec.arrow)||void 0===n?void 0:n.x,em=null===(r=ec.arrow)||void 0===r?void 0:r.y,ew=(null===(o=ec.arrow)||void 0===o?void 0:o.centerOffset)!==0,[eE,ex]=f.useState();return(0,I.b)(()=>{O&&ex(window.getComputedStyle(O).zIndex)},[O]),(0,b.jsx)("div",{ref:eo.setFloating,"data-radix-popper-content-wrapper":"",style:{...ea,transform:el?ea.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eE,"--radix-popper-transform-origin":[null===(a=ec.transformOrigin)||void 0===a?void 0:a.x,null===(i=ec.transformOrigin)||void 0===i?void 0:i.y].join(" "),...(null===(u=ec.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,b.jsx)(ed,{scope:s,placedSide:ef,onArrowChange:_,arrowX:eh,arrowY:em,shouldHideArrow:ew,children:(0,b.jsx)(g.WV.div,{"data-side":ef,"data-align":ep,...L,ref:k,style:{...L.style,animation:el?void 0:"none"}})})})});ep.displayName=es;var ev="PopperArrow",eh={top:"bottom",right:"left",bottom:"top",left:"right"},em=f.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=ef(ev,n),a=eh[o.placedSide];return(0,b.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]: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,b.jsx)(ee,{...r,ref:t,style:{...r.style,display:"block"}})})});function eg(e){return null!==e}em.displayName=ev;var ey=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:u,rects:l,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,v]=eb(u),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(a=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+d/2,g=(null!==(i=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==i?i:0)+f/2,y="",b="";return"bottom"===p?(y=s?h:"".concat(m,"px"),b="".concat(-f,"px")):"top"===p?(y=s?h:"".concat(m,"px"),b="".concat(l.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),b=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(l.floating.width+f,"px"),b=s?h:"".concat(g,"px")),{data:{x:y,y:b}}}});function eb(e){let[t,n="center"]=e.split("-");return[t,n]}var ew=f.forwardRef((e,t)=>{var n,r;let{container:o,...a}=e,[i,u]=f.useState(!1);(0,I.b)(()=>u(!0),[]);let l=o||i&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return l?H.createPortal((0,b.jsx)(g.WV.div,{...a,ref:t}),l):null});ew.displayName="Portal";var eE=n(72305),ex=n(92721),eC=n(65192),eS=new WeakMap,eP=new WeakMap,eA={},eM=0,eL=function(e){return e&&(e.host||eL(e.parentNode))},eR=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eL(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eA[n]||(eA[n]=new WeakMap);var a=eA[n],i=[],u=new Set,l=new Set(o),c=function(e){!e||u.has(e)||(u.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(u.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(eS.get(e)||0)+1,c=(a.get(e)||0)+1;eS.set(e,l),a.set(e,c),i.push(e),1===l&&o&&eP.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),u.clear(),eM++,function(){i.forEach(function(e){var t=eS.get(e)-1,o=a.get(e)-1;eS.set(e,t),a.set(e,o),t||(eP.has(e)||e.removeAttribute(r),eP.delete(e)),o||e.removeAttribute(n)}),--eM||(eS=new WeakMap,eS=new WeakMap,eP=new WeakMap,eA={})}},eO=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),eR(r,o,n,"aria-hidden")):function(){return null}},ej=function(){return(ej=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ek(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var eN="right-scroll-bar-position",e_="width-before-scroll-bar";function eT(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eI="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,eW=new WeakMap,eD=(void 0===o&&(o={}),(void 0===a&&(a=function(e){return e}),i=[],u=!1,l={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=a(e,u);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){u=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=ej({async:!0,ssr:!1},o),l),eF=function(){},eH=f.forwardRef(function(e,t){var n,r,o,a,i=f.useRef(null),u=f.useState({onScrollCapture:eF,onWheelCapture:eF,onTouchMoveCapture:eF}),l=u[0],c=u[1],s=e.forwardProps,d=e.children,p=e.className,v=e.removeScrollBar,h=e.enabled,m=e.shards,g=e.sideCar,y=e.noIsolation,b=e.inert,w=e.allowPinchZoom,E=e.as,x=e.gapMode,C=ek(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[i,t],r=function(e){return n.forEach(function(t){return eT(t,e)})},(o=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,eI(function(){var e=eW.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||eT(e,null)}),r.forEach(function(e){t.has(e)||eT(e,o)})}eW.set(a,n)},[n]),a),P=ej(ej({},C),l);return f.createElement(f.Fragment,null,h&&f.createElement(g,{sideCar:eD,removeScrollBar:v,shards:m,noIsolation:y,inert:b,setCallbacks:c,allowPinchZoom:!!w,lockRef:i,gapMode:x}),s?f.cloneElement(f.Children.only(d),ej(ej({},P),{ref:S})):f.createElement(void 0===E?"div":E,ej({},P,{className:p,ref:S}),d))});eH.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eH.classNames={fullWidth:e_,zeroRight:eN};var eB=function(e){var t=e.sideCar,n=ek(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,ej({},n))};eB.isSideCarExport=!0;var eq=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ez=function(){var e=eq();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eY=function(){var e=ez();return function(t){return e(t.styles,t.dynamic),null}},eV={left:0,top:0,right:0,gap:0},eX=function(e){return parseInt(e||"",10)||0},eK=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[eX(n),eX(r),eX(o)]},eZ=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return eV;var t=eK(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eU=eY(),e$="data-scroll-locked",eJ=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(u,"px ").concat(r,";\n  }\n  body[").concat(e$,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(eN," {\n    right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(e_," {\n    margin-right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(eN," .").concat(eN," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(e_," .").concat(e_," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(e$,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},eG=function(){var e=parseInt(document.body.getAttribute(e$)||"0",10);return isFinite(e)?e:0},eQ=function(){f.useEffect(function(){return document.body.setAttribute(e$,(eG()+1).toString()),function(){var e=eG()-1;e<=0?document.body.removeAttribute(e$):document.body.setAttribute(e$,e.toString())}},[])},e0=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;eQ();var a=f.useMemo(function(){return eZ(o)},[o]);return f.createElement(eU,{styles:eJ(a,!t,o,n?"":"!important")})},e1=!1;if("undefined"!=typeof window)try{var e2=Object.defineProperty({},"passive",{get:function(){return e1=!0,!0}});window.addEventListener("test",e2,e2),window.removeEventListener("test",e2,e2)}catch(e){e1=!1}var e5=!!e1&&{passive:!1},e7=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},e3=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),e6(e,r)){var o=e8(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},e6=function(e,t){return"v"===e?e7(t,"overflowY"):e7(t,"overflowX")},e8=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},e4=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),u=i*r,l=n.target,c=t.contains(l),s=!1,d=u>0,f=0,p=0;do{var v=e8(e,l),h=v[0],m=v[1]-v[2]-i*h;(h||m)&&e6(e,l)&&(f+=m,p+=h),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&u>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-u>p)&&(s=!0),s},e9=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},te=function(e){return[e.deltaX,e.deltaY]},tt=function(e){return e&&"current"in e?e.current:e},tn=0,tr=[],to=(c=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(tn++)[0],a=f.useState(eY)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(tt),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=e9(e),u=n.current,l="deltaX"in e?e.deltaX:u[0]-a[0],c="deltaY"in e?e.deltaY:u[1]-a[1],s=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=e3(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=e3(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return e4(p,t,e,"h"===p?l:c,!0)},[]),l=f.useCallback(function(e){if(tr.length&&tr[tr.length-1]===a){var n="deltaY"in e?te(e):e9(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(tt).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=f.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=f.useCallback(function(e){n.current=e9(e),r.current=void 0},[]),d=f.useCallback(function(t){c(t.type,te(t),t.target,u(t,e.lockRef.current))},[]),p=f.useCallback(function(t){c(t.type,e9(t),t.target,u(t,e.lockRef.current))},[]);f.useEffect(function(){return tr.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,e5),document.addEventListener("touchmove",l,e5),document.addEventListener("touchstart",s,e5),function(){tr=tr.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,e5),document.removeEventListener("touchmove",l,e5),document.removeEventListener("touchstart",s,e5)}},[]);var v=e.removeScrollBar,h=e.inert;return f.createElement(f.Fragment,null,h?f.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?f.createElement(e0,{gapMode:e.gapMode}):null)},eD.useMedium(c),eB),ta=f.forwardRef(function(e,t){return f.createElement(eH,ej({},e,{ref:t,sideCar:to}))});ta.classNames=eH.classNames;var ti="Popover",[tu,tl]=(0,m.b)(ti,[eo]),tc=eo(),[ts,td]=tu(ti),tf=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!1}=e,u=tc(t),l=f.useRef(null),[c,s]=f.useState(!1),[d=!1,p]=(0,eC.T)({prop:r,defaultProp:o,onChange:a});return(0,b.jsx)(eu,{...u,children:(0,b.jsx)(ts,{scope:t,contentId:function(e){let[t,n]=f.useState(W());return(0,I.b)(()=>{n(e=>e??String(D++))},[void 0]),t?`radix-${t}`:""}(),triggerRef:l,open:d,onOpenChange:p,onOpenToggle:f.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>s(!0),[]),onCustomAnchorRemove:f.useCallback(()=>s(!1),[]),modal:i,children:n})})};tf.displayName=ti;var tp="PopoverAnchor";f.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=td(tp,n),a=tc(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:u}=o;return f.useEffect(()=>(i(),()=>u()),[i,u]),(0,b.jsx)(ec,{...a,...r,ref:t})}).displayName=tp;var tv="PopoverTrigger",th=f.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=td(tv,n),a=tc(n),i=(0,h.e)(t,o.triggerRef),u=(0,b.jsx)(g.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tM(o.open),...r,ref:i,onClick:(0,v.M)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,b.jsx)(ec,{asChild:!0,...a,children:u})});th.displayName=tv;var tm="PopoverPortal",[tg,ty]=tu(tm,{forceMount:void 0}),tb=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,a=td(tm,t);return(0,b.jsx)(tg,{scope:t,forceMount:n,children:(0,b.jsx)(eE.z,{present:n||a.open,children:(0,b.jsx)(ew,{asChild:!0,container:o,children:r})})})};tb.displayName=tm;var tw="PopoverContent",tE=f.forwardRef((e,t)=>{let n=ty(tw,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,a=td(tw,e.__scopePopover);return(0,b.jsx)(eE.z,{present:r||a.open,children:a.modal?(0,b.jsx)(tx,{...o,ref:t}):(0,b.jsx)(tC,{...o,ref:t})})});tE.displayName=tw;var tx=f.forwardRef((e,t)=>{let n=td(tw,e.__scopePopover),r=f.useRef(null),o=(0,h.e)(t,r),a=f.useRef(!1);return f.useEffect(()=>{let e=r.current;if(e)return eO(e)},[]),(0,b.jsx)(ta,{as:ex.g7,allowPinchZoom:!0,children:(0,b.jsx)(tS,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,v.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),a.current||null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,v.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,v.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),tC=f.forwardRef((e,t)=>{let n=td(tw,e.__scopePopover),r=f.useRef(!1),o=f.useRef(!1);return(0,b.jsx)(tS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let u=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),tS=f.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:s,...d}=e,p=td(tw,n),v=tc(n);return f.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:A()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:A()),P++,()=>{1===P&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),P--}},[]),(0,b.jsx)(O,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,b.jsx)(x,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:s,onEscapeKeyDown:u,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),children:(0,b.jsx)(ep,{"data-state":tM(p.open),role:"dialog",id:p.contentId,...v,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),tP="PopoverClose";f.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=td(tP,n);return(0,b.jsx)(g.WV.button,{type:"button",...r,ref:t,onClick:(0,v.M)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=tP;var tA=f.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=tc(n);return(0,b.jsx)(em,{...o,...r,ref:t})});function tM(e){return e?"open":"closed"}tA.displayName="PopoverArrow";var tL=tf,tR=th,tO=tb,tj=tE,tk=tA}}]);
//# sourceMappingURL=7780-69b4d1abd247155f.js.map