@qratilabs/qrati-connect 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/element/{AuthLayout-EC2U3nsK.js → AuthLayout-IGFGeMq5.js} +1 -1
  3. package/element/{ContentsPage-BGtOyWxg.js → ContentsPage-Bu42OF-F.js} +1 -1
  4. package/element/{CuratePage-BLa771HN.js → CuratePage-CBMluidb.js} +1 -1
  5. package/element/{Dialog-D3m_eBiJ.js → Dialog-DVSvxBn8.js} +1 -1
  6. package/element/{DotLottiePlayer-FgGW1IR7.js → DotLottiePlayer-DHVhIw5H.js} +1 -1
  7. package/element/{EventHeaderAdminButtons-CW2SupWX.js → EventHeaderAdminButtons-zE3NbEUA.js} +1 -1
  8. package/element/{FolderBreadcrumb-CUpIfUTx.js → FolderBreadcrumb-1w72I1FP.js} +1 -1
  9. package/element/{ForgotPasswordPage-Cd0Oj-RE.js → ForgotPasswordPage-CIw8RrkZ.js} +1 -1
  10. package/element/{InputField-B_y35j-5.js → InputField-XP30segE.js} +1 -1
  11. package/element/{LazyLoadImage-CQL8-B3z.js → LazyLoadImage-n94OUygV.js} +1 -1
  12. package/element/{LeaderboardPage-BRBrFWpp.js → LeaderboardPage-CGuP207i.js} +1 -1
  13. package/element/{LoginPage-Ba9HTjV1.js → LoginPage-B15CMpYe.js} +1 -1
  14. package/element/{NCMVHL6D-CCAMoHuQ.js → NCMVHL6D-D_O5jdHL.js} +1 -1
  15. package/element/{PublicEvents-CddoYNW6.js → PublicEvents-DOp9N4xU.js} +1 -1
  16. package/element/{RegisterPage-DZGdPdu_.js → RegisterPage-D-6uVKjj.js} +1 -1
  17. package/element/{SocialLoginButton-BSK0uHQy.js → SocialLoginButton-BuZ03WV-.js} +1 -1
  18. package/element/{UploadPage-6k9f8u8c.js → UploadPage-Dhjmh06j.js} +1 -1
  19. package/element/{VideoPlayer-B6NcsNiP.js → VideoPlayer-cWSLl4fO.js} +1 -1
  20. package/element/element.es.js +1 -1
  21. package/element/{heic2any-JTWseCtt.js → heic2any-Dui1sz1X.js} +1 -1
  22. package/element/{index-Dq8XMn-B.js → index-DsN-W6V_.js} +1 -1
  23. package/element/{index-jVkC2DYJ.js → index-jzNVBihK.js} +1 -1
  24. package/element/{index.esm-mRBXJrk0.js → index.esm-CsbPHPGO.js} +1 -1
  25. package/element/{photoswipe-BdJR2C9a.js → photoswipe-5mcef1lI.js} +1 -1
  26. package/element/styles.css +1 -1
  27. package/element/{tslib.es6-CT89L4O4.js → tslib.es6-Dp_1P0Dk.js} +1 -1
  28. package/element/{useOrgAccess-DHToEbG_.js → useOrgAccess-B1cbGHT_.js} +1 -1
  29. package/element/web.es.js +1 -1
  30. package/package.json +1 -1
  31. package/react/{DPgWGmoG.js → 6xRxF6pz.js} +1 -1
  32. package/react/{BEzP8sbl.js → BZvhXg2G.js} +1 -1
  33. package/react/{BDeLdfbp.js → BaA7RHRf.js} +1 -1
  34. package/react/{CImTSnHg.js → Bebe5T7J.js} +1 -1
  35. package/react/{B5w5BP6w.js → C565I04Q.js} +1 -1
  36. package/react/{DPeVo4aL.js → CE-MbwCB.js} +1 -1
  37. package/react/{DH_wlDkr.js → CIlaT7eJ.js} +1 -1
  38. package/react/{JfRXqbqu.js → CS7icy9d.js} +1 -1
  39. package/react/{BUZq1uY0.js → Cp86U6va.js} +1 -1
  40. package/react/{LF1Cet66.js → Cv7EiFQU.js} +1 -1
  41. package/react/{eUvYQTPt.js → D1emifDo.js} +1 -1
  42. package/react/{BwHqpHe9.js → DPtqYlwJ.js} +1 -1
  43. package/react/{DcQdnYr8.js → DS2UD7gV.js} +1 -1
  44. package/react/{CYoLgOTC.js → DZitaH5o.js} +1 -1
  45. package/react/{CQHQocew.js → DjmC7CGh.js} +1 -1
  46. package/react/{BYYb8zAx.js → DwNWOPAY.js} +1 -1
  47. package/react/{6z8qI7He.js → Dyk2_V8r.js} +1 -1
  48. package/react/{CldWPPzn.js → LMErjmPc.js} +1 -1
  49. package/react/{BeDQQM0T.js → VOx0knsi.js} +1 -1
  50. package/react/{C-Ri1Eh9.js → W8TabW9M.js} +1 -1
  51. package/react/{CtX-oYOP.js → cWB0y40v.js} +1 -1
  52. package/react/index.es.js +1 -1
  53. package/react/{U9LCogz5.js → jM4FWKDA.js} +1 -1
  54. package/react/styles.css +1 -1
  55. package/react/{D464cx8y.js → vmkon26e.js} +1 -1
  56. package/umd/web.umd.js +2 -2
@@ -1 +1 @@
1
- import{j as e,M as t,L as n,u as r,O as o,c as a}from"./BDeLdfbp.js";import*as c from"react";import{useState as i}from"react";import*as s from"react-dom";import u from"react-dom";import{a as l,b as d,c as f}from"./D6nr9_KD.js";function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(t,n=[]){let r=[];const o=()=>{const e=r.map(e=>c.createContext(e));return function(n){const r=n?.[t]||e;return c.useMemo(()=>({[`__scope${t}`]:{...n,[t]:r}}),[n,r])}};return o.scopeName=t,[function(n,o){const a=c.createContext(o),i=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,u=r?.[t]?.[i]||a,l=c.useMemo(()=>s,Object.values(s));return e.jsx(u.Provider,{value:l,children:o})};return s.displayName=n+"Provider",[s,function(e,r){const s=r?.[t]?.[i]||a,u=c.useContext(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},v(o,...n)]}function v(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var h=globalThis?.document?c.useLayoutEffect:()=>{},g=c[" useId ".trim().toString()]||(()=>{}),y=0;function E(e){const[t,n]=c.useState(g());return h(()=>{n(e=>e??String(y++))},[e]),e||(t?`radix-${t}`:"")}var b=c[" useInsertionEffect ".trim().toString()]||h;function w({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return b(()=>{a.current=t},[t]),c.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:o;{const t=c.useRef(void 0!==e);c.useEffect(()=>{const e=t.current;e!==s&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[u,c.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i])]}function N(t){const n=C(t),r=c.forwardRef((t,r)=>{const{children:o,...a}=t,i=c.Children.toArray(o),s=i.find(R);if(s){const t=s.props.children,o=i.map(e=>e===s?c.Children.count(t)>1?c.Children.only(null):c.isValidElement(t)?t.props.children:null:e);return e.jsx(n,{...a,ref:r,children:c.isValidElement(t)?c.cloneElement(t,void 0,o):null})}return e.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function C(e){const n=c.forwardRef((e,n)=>{const{children:r,...o}=e;if(c.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==c.Fragment&&(a.ref=n?t(n,e):e),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var x=Symbol("radix.slottable");function R(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}var D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=N(`Primitive.${n}`),o=c.forwardRef((t,o)=>{const{asChild:a,...c}=t,i=a?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(i,{...c,ref:o})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function S(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}var O,P="dismissableLayer.update",q="dismissableLayer.pointerDownOutside",M="dismissableLayer.focusOutside",_=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),j=c.forwardRef((t,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:u,onDismiss:l,...d}=t,f=c.useContext(_),[m,v]=c.useState(null),h=m?.ownerDocument??globalThis?.document,[,g]=c.useState({}),y=n(r,e=>v(e)),E=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=E.indexOf(b),N=m?E.indexOf(m):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,x=N>=w,R=function(e,t=globalThis?.document){const n=S(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){L(q,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...f.branches].some(e=>e.contains(t));!x||n||(i?.(e),u?.(e),e.defaultPrevented||l?.())},h),j=function(e,t=globalThis?.document){const n=S(e),r=c.useRef(!1);return c.useEffect(()=>{const e=e=>{e.target&&!r.current&&L(M,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(s?.(e),u?.(e),e.defaultPrevented||l?.())},h);return function(e,t=globalThis?.document){const n=S(e);c.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{N===f.layers.size-1&&(a?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),c.useEffect(()=>{if(m)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(O=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),A(),()=>{o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=O)}},[m,h,o,f]),c.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),A())},[m,f]),c.useEffect(()=>{const e=()=>g({});return document.addEventListener(P,e),()=>document.removeEventListener(P,e)},[]),e.jsx(D.div,{...d,ref:y,style:{pointerEvents:C?x?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,j.onFocusCapture),onBlurCapture:p(t.onBlurCapture,j.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,R.onPointerDownCapture)})});j.displayName="DismissableLayer";var T=c.forwardRef((t,r)=>{const o=c.useContext(_),a=c.useRef(null),i=n(r,a);return c.useEffect(()=>{const e=a.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),e.jsx(D.div,{...t,ref:i})});function A(){const e=new CustomEvent(P);document.dispatchEvent(e)}function L(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}(o,a):o.dispatchEvent(a)}T.displayName="DismissableLayerBranch";var I="focusScope.autoFocusOnMount",k="focusScope.autoFocusOnUnmount",F={bubbles:!1,cancelable:!0},W=c.forwardRef((t,r)=>{const{loop:o=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...u}=t,[l,d]=c.useState(null),f=S(i),p=S(s),m=c.useRef(null),v=n(r,e=>d(e)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(a){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?m.current=t:z(m.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||z(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&z(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[a,l,h.paused]),c.useEffect(()=>{if(l){K.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(I,F);l.addEventListener(I,f),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(z(r,{select:t}),document.activeElement!==n)return}(function(e){return e.filter(e=>"A"!==e.tagName)}($(l)),{select:!0}),document.activeElement===e&&z(l))}return()=>{l.removeEventListener(I,f),setTimeout(()=>{const t=new CustomEvent(k,F);l.addEventListener(k,p),l.dispatchEvent(t),t.defaultPrevented||z(e??document.body,{select:!0}),l.removeEventListener(k,p),K.remove(h)},0)}}},[l,f,p,h]);const g=c.useCallback(e=>{if(!o&&!a||h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,a]=function(e){const t=$(e),n=B(t,e),r=B(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||n!==a?e.shiftKey&&n===r&&(e.preventDefault(),o&&z(a,{select:!0})):(e.preventDefault(),o&&z(r,{select:!0})):n===t&&e.preventDefault()}},[o,a,h.paused]);return e.jsx(D.div,{tabIndex:-1,...u,ref:v,onKeyDown:g})});function $(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 B(e,t){for(const n of e)if(!U(n,{upTo:t}))return n}function U(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}W.displayName="FocusScope";var K=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=V(e,t),e.unshift(t)},remove(t){e=V(e,t),e[0]?.resume()}}}();function V(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var X=c.forwardRef((t,n)=>{const{container:r,...o}=t,[a,i]=c.useState(!1);h(()=>i(!0),[]);const s=r||a&&globalThis?.document?.body;return s?u.createPortal(e.jsx(D.div,{...o,ref:n}),s):null});X.displayName="Portal";var Y=e=>{const{present:t,children:r}=e,o=function(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,u]=function(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const e=Z(r.current);a.current="mounted"===s?e:"none"},[s]),h(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,c=Z(t);u(e?"MOUNT":"none"===c||"none"===t?.display?"UNMOUNT":n&&r!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),h(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,c=a=>{const c=Z(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&c&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(a.current=Z(r.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),a="function"==typeof r?r({present:o.isPresent}):c.Children.only(r),i=n(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(a));return"function"==typeof r||o.isPresent?c.cloneElement(a,{ref:i}):null};function Z(e){return e?.animationName||"none"}Y.displayName="Presence";var H=0;function G(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J()),document.body.insertAdjacentElement("beforeend",e[1]??J()),H++,()=>{1===H&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),H--}},[])}function J(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Q="right-scroll-bar-position",ee="width-before-scroll-bar";function te(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ne=typeof window<"u"?c.useLayoutEffect:c.useEffect,re=new WeakMap;function oe(e,t){var n=function(e,t){var n=i(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(null,function(t){return e.forEach(function(e){return te(e,t)})});return ne(function(){var t=re.get(n);if(t){var r=new Set(t),o=new Set(e),a=n.current;r.forEach(function(e){o.has(e)||te(e,null)}),o.forEach(function(e){r.has(e)||te(e,a)})}re.set(n,e)},[e]),n}function ae(e){return e}var ce=function(e){var t=e.sideCar,n=d(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,l({},n))};ce.isSideCarExport=!0;var ie=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ae);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=l({async:!0,ssr:!1},e),t}(),se=function(){},ue=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:se,onWheelCapture:se,onTouchMoveCapture:se}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,u=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,g=e.noIsolation,y=e.inert,E=e.allowPinchZoom,b=e.as,w=void 0===b?"div":b,N=e.gapMode,C=d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=v,R=oe([n,t]),D=l(l({},C),o);return c.createElement(c.Fragment,null,p&&c.createElement(x,{sideCar:ie,removeScrollBar:f,shards:m,noRelative:h,noIsolation:g,inert:y,setCallbacks:a,allowPinchZoom:!!E,lockRef:n,gapMode:N}),i?c.cloneElement(c.Children.only(s),l(l({},D),{ref:R})):c.createElement(w,l({},D,{className:u,ref:R}),s))});ue.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ue.classNames={fullWidth:ee,zeroRight:Q};function le(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var de=function(){var e=0,t=null;return{add:function(n){0==e&&(t=le())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fe=function(){var e=function(){var e=de();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},pe={left:0,top:0,right:0,gap:0},me=function(e){return parseInt(e||"",10)||0},ve=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return pe;var t=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[me(n),me(r),me(o)]}(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])}},he=fe(),ge="data-scroll-locked",ye=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,i=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(i,"px ").concat(r,";\n }\n body[").concat(ge,"] {\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(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Q," {\n right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(ee," {\n margin-right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(Q," .").concat(Q," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ee," .").concat(ee," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ge,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},Ee=function(){var e=parseInt(document.body.getAttribute(ge)||"0",10);return isFinite(e)?e:0},be=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;c.useEffect(function(){return document.body.setAttribute(ge,(Ee()+1).toString()),function(){var e=Ee()-1;e<=0?document.body.removeAttribute(ge):document.body.setAttribute(ge,e.toString())}},[]);var a=c.useMemo(function(){return ve(o)},[o]);return c.createElement(he,{styles:ye(a,!t,o,n?"":"!important")})},we=!1;if(typeof window<"u")try{var Ne=Object.defineProperty({},"passive",{get:function(){return we=!0,!0}});window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch{we=!1}var Ce=!!we&&{passive:!1},xe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Re=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),De(e,r)){var o=Se(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},De=function(e,t){return"v"===e?function(e){return xe(e,"overflowY")}(t):function(e){return xe(e,"overflowX")}(t)},Se=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Oe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pe=function(e){return[e.deltaX,e.deltaY]},qe=function(e){return e&&"current"in e?e.current:e},Me=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},_e=0,je=[];function Te(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ae=(Le=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(_e++)[0],a=c.useState(fe)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=f([e.lockRef.current],(e.shards||[]).map(qe),!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 s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=Oe(e),c=n.current,s="deltaX"in e?e.deltaX:c[0]-a[0],u="deltaY"in e?e.deltaY:c[1]-a[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=Re(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Re(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,c=n.target,i=t.contains(c),s=!1,u=a>0,l=0,d=0;do{if(!c)break;var f=Se(e,c),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&De(e,c)&&(l+=m,d+=p);var v=c.parentNode;c=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!i&&c!==document.body||i&&(t.contains(c)||t===c));return(u&&Math.abs(l)<1||!u&&Math.abs(d)<1)&&(s=!0),s}(p,t,e,"h"===p?s:u)},[]),u=c.useCallback(function(e){var n=e;if(je.length&&je[je.length-1]===a){var r="deltaY"in n?Pe(n):Oe(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var c=(i.current.shards||[]).map(qe).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=c.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Te(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=Oe(e),r.current=void 0},[]),p=c.useCallback(function(t){l(t.type,Pe(t),t.target,s(t,e.lockRef.current))},[]),m=c.useCallback(function(t){l(t.type,Oe(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return je.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,Ce),document.addEventListener("touchmove",u,Ce),document.addEventListener("touchstart",d,Ce),function(){je=je.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,Ce),document.removeEventListener("touchmove",u,Ce),document.removeEventListener("touchstart",d,Ce)}},[]);var v=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Me(o)}):null,v?c.createElement(be,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ie.useMedium(Le),ce);var Le,Ie=c.forwardRef(function(e,t){return c.createElement(ue,l({},e,{ref:t,sideCar:Ae}))});Ie.classNames=ue.classNames;var ke=new WeakMap,Fe=new WeakMap,We={},$e=0,Be=function(e){return e&&(e.host||Be(e.parentNode))},Ue=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Be(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return!!e})}(t,Array.isArray(e)?e:[e]);We[n]||(We[n]=new WeakMap);var a=We[n],c=[],i=new Set,s=new Set(o),u=function(e){!e||i.has(e)||(i.add(e),u(e.parentNode))};o.forEach(u);var l=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(i.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(ke.get(e)||0)+1,u=(a.get(e)||0)+1;ke.set(e,s),a.set(e,u),c.push(e),1===s&&o&&Fe.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return l(t),i.clear(),$e++,function(){c.forEach(function(e){var t=ke.get(e)-1,o=a.get(e)-1;ke.set(e,t),a.set(e,o),t||(Fe.has(e)||e.removeAttribute(r),Fe.delete(e)),o||e.removeAttribute(n)}),--$e||(ke=new WeakMap,ke=new WeakMap,Fe=new WeakMap,We={})}},ze=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ue(r,o,n,"aria-hidden")):function(){return null}};function Ke(t){const n=Ve(t),r=c.forwardRef((t,r)=>{const{children:o,...a}=t,i=c.Children.toArray(o),s=i.find(Ye);if(s){const t=s.props.children,o=i.map(e=>e===s?c.Children.count(t)>1?c.Children.only(null):c.isValidElement(t)?t.props.children:null:e);return e.jsx(n,{...a,ref:r,children:c.isValidElement(t)?c.cloneElement(t,void 0,o):null})}return e.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function Ve(e){const n=c.forwardRef((e,n)=>{const{children:r,...o}=e;if(c.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==c.Fragment&&(a.ref=n?t(n,e):e),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Xe=Symbol("radix.slottable");function Ye(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Xe}var Ze="Dialog",[He]=m(Ze),[Ge,Je]=He(Ze),Qe=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=t,u=c.useRef(null),l=c.useRef(null),[d,f]=w({prop:o,defaultProp:a??!1,onChange:i,caller:Ze});return e.jsx(Ge,{scope:n,triggerRef:u,contentRef:l,contentId:E(),titleId:E(),descriptionId:E(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:s,children:r})};Qe.displayName=Ze;var et="DialogTrigger",tt=c.forwardRef((t,r)=>{const{__scopeDialog:o,...a}=t,c=Je(et,o),i=n(r,c.triggerRef);return e.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":wt(c.open),...a,ref:i,onClick:p(t.onClick,c.onOpenToggle)})});tt.displayName=et;var nt="DialogPortal",[rt,ot]=He(nt,{forceMount:void 0}),at=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:a}=t,i=Je(nt,n);return e.jsx(rt,{scope:n,forceMount:r,children:c.Children.map(o,t=>e.jsx(Y,{present:r||i.open,children:e.jsx(X,{asChild:!0,container:a,children:t})}))})};at.displayName=nt;var ct="DialogOverlay",it=c.forwardRef((t,n)=>{const r=ot(ct,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,c=Je(ct,t.__scopeDialog);return c.modal?e.jsx(Y,{present:o||c.open,children:e.jsx(ut,{...a,ref:n})}):null});it.displayName=ct;var st=Ke("DialogOverlay.RemoveScroll"),ut=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Je(ct,r);return e.jsx(Ie,{as:st,allowPinchZoom:!0,shards:[a.contentRef],children:e.jsx(D.div,{"data-state":wt(a.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),lt="DialogContent",dt=c.forwardRef((t,n)=>{const r=ot(lt,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,c=Je(lt,t.__scopeDialog);return e.jsx(Y,{present:o||c.open,children:c.modal?e.jsx(ft,{...a,ref:n}):e.jsx(pt,{...a,ref:n})})});dt.displayName=lt;var ft=c.forwardRef((t,r)=>{const o=Je(lt,t.__scopeDialog),a=c.useRef(null),i=n(r,o.contentRef,a);return c.useEffect(()=>{const e=a.current;if(e)return ze(e)},[]),e.jsx(mt,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(t.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:p(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:p(t.onFocusOutside,e=>e.preventDefault())})}),pt=c.forwardRef((t,n)=>{const r=Je(lt,t.__scopeDialog),o=c.useRef(!1),a=c.useRef(!1);return e.jsx(mt,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const n=e.target;r.triggerRef.current?.contains(n)&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),mt=c.forwardRef((t,r)=>{const{__scopeDialog:o,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:s,...u}=t,l=Je(lt,o),d=c.useRef(null),f=n(r,d);return G(),e.jsxs(e.Fragment,{children:[e.jsx(W,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:s,children:e.jsx(j,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":wt(l.open),...u,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),e.jsxs(e.Fragment,{children:[e.jsx(Rt,{titleId:l.titleId}),e.jsx(Dt,{contentRef:d,descriptionId:l.descriptionId})]})]})}),vt="DialogTitle",ht=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Je(vt,r);return e.jsx(D.h2,{id:a.titleId,...o,ref:n})});ht.displayName=vt;var gt="DialogDescription",yt=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Je(gt,r);return e.jsx(D.p,{id:a.descriptionId,...o,ref:n})});yt.displayName=gt;var Et="DialogClose",bt=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Je(Et,r);return e.jsx(D.button,{type:"button",...o,ref:n,onClick:p(t.onClick,()=>a.onOpenChange(!1))})});function wt(e){return e?"open":"closed"}bt.displayName=Et;var Nt="DialogTitleWarning",[Ct,xt]=function(t,n){const r=c.createContext(n),o=t=>{const{children:n,...o}=t,a=c.useMemo(()=>o,Object.values(o));return e.jsx(r.Provider,{value:a,children:n})};return o.displayName=t+"Provider",[o,function(e){const o=c.useContext(r);if(o)return o;if(void 0!==n)return n;throw new Error(`\`${e}\` must be used within \`${t}\``)}]}(Nt,{contentName:lt,titleName:vt,docsSlug:"dialog"}),Rt=({titleId:e})=>{const t=xt(Nt),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Dt=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xt("DialogDescriptionWarning").contentName}}.`;return c.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},St=it,Ot=dt,Pt=ht,qt=yt,Mt=bt;const _t=Qe,jt=at,Tt=c.forwardRef(({className:t,...n},r)=>e.jsx(St,{ref:r,className:a("qc:data-[state=open]:animate-in qc:data-[state=closed]:animate-out qc:data-[state=closed]:fade-out-0 qc:data-[state=open]:fade-in-0 qc:fixed qc:inset-0 qc:z-2001 qc:backdrop-blur-md",t),...n})),At=c.forwardRef(({className:t,children:n,...c},i)=>{const{organization:s,props:{fontClassName:u,textClassName:l}}=r();return e.jsxs(jt,{children:[e.jsx(Tt,{}),e.jsxs(Ot,{ref:i,className:a("qc:bg-background qc:shadow-outer qc:border-border qc:max-w-screen qc:data-[state=open]:animate-in qc:data-[state=closed]:animate-out qc:data-[state=closed]:fade-out-0 qc:data-[state=open]:fade-in-0 qc:data-[state=closed]:zoom-out-95 qc:data-[state=open]:zoom-in-95 qc:data-[state=closed]:slide-out-to-left-1/2 qc:data-[state=closed]:slide-out-to-top-[48%] qc:data-[state=open]:slide-in-from-left-1/2 qc:data-[state=open]:slide-in-from-top-[48%] qc:fixed qc:left-[50%] qc:top-[50%] qc:z-2002 qc:w-auto qc:translate-x-[-50%] qc:translate-y-[-50%] qc:rounded qc:duration-300 qc:sm:rounded",u,l,t),style:o(s),...c,children:[n,e.jsx(Mt,{className:"qc:ring-offset-background qc:focus:ring-ring qc:data-[state=open]:text-foreground qc:hover:opacity-100 qc:focus:outline-none qc:disabled:pointer-events-none qc:focus:ring-2 qc:focus:ring-offset-2 qc:absolute qc:right-3 qc:top-3 qc:rounded qc:opacity-70 qc:transition-opacity",children:e.jsx("span",{className:"qc:sr-only",children:"Close"})})]})]})}),Lt=({className:t,...n})=>e.jsx("div",{className:a("qc:flex qc:flex-col qc:space-y-1 qc:p-3 qc:text-center qc:sm:text-left",t),...n}),It=c.forwardRef(({className:t,...n},r)=>e.jsx(Pt,{ref:r,className:a("qc:text-foreground qc:text-center qc:text-lg qc:font-semibold",t),...n})),kt=c.forwardRef(({className:t,...n},r)=>e.jsx(qt,{ref:r,className:a("qc:text-muted qc:text-center qc:text-sm",t),...n}));export{_t as D,W as F,D as P,Ie as R,At as a,Lt as b,It as c,kt as d,m as e,S as f,Y as g,X as h,ze as i,p as j,G as k,j as l,w as m,E as n,h as u};
1
+ import{j as e,M as t,L as n,u as r,O as o,c as a}from"./BaA7RHRf.js";import*as c from"react";import{useState as i}from"react";import*as s from"react-dom";import u from"react-dom";import{a as l,b as d,c as f}from"./D6nr9_KD.js";function p(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function m(t,n=[]){let r=[];const o=()=>{const e=r.map(e=>c.createContext(e));return function(n){const r=n?.[t]||e;return c.useMemo(()=>({[`__scope${t}`]:{...n,[t]:r}}),[n,r])}};return o.scopeName=t,[function(n,o){const a=c.createContext(o),i=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,u=r?.[t]?.[i]||a,l=c.useMemo(()=>s,Object.values(s));return e.jsx(u.Provider,{value:l,children:o})};return s.displayName=n+"Provider",[s,function(e,r){const s=r?.[t]?.[i]||a,u=c.useContext(s);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${e}\` must be used within \`${n}\``)}]},v(o,...n)]}function v(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var h=globalThis?.document?c.useLayoutEffect:()=>{},g=c[" useId ".trim().toString()]||(()=>{}),y=0;function E(e){const[t,n]=c.useState(g());return h(()=>{n(e=>e??String(y++))},[e]),e||(t?`radix-${t}`:"")}var b=c[" useInsertionEffect ".trim().toString()]||h;function w({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return b(()=>{a.current=t},[t]),c.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,u=s?e:o;{const t=c.useRef(void 0!==e);c.useEffect(()=>{const e=t.current;e!==s&&console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=s},[s,r])}return[u,c.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i])]}function N(t){const n=C(t),r=c.forwardRef((t,r)=>{const{children:o,...a}=t,i=c.Children.toArray(o),s=i.find(R);if(s){const t=s.props.children,o=i.map(e=>e===s?c.Children.count(t)>1?c.Children.only(null):c.isValidElement(t)?t.props.children:null:e);return e.jsx(n,{...a,ref:r,children:c.isValidElement(t)?c.cloneElement(t,void 0,o):null})}return e.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function C(e){const n=c.forwardRef((e,n)=>{const{children:r,...o}=e;if(c.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==c.Fragment&&(a.ref=n?t(n,e):e),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var x=Symbol("radix.slottable");function R(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}var D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=N(`Primitive.${n}`),o=c.forwardRef((t,o)=>{const{asChild:a,...c}=t,i=a?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),e.jsx(i,{...c,ref:o})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function S(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}var O,P="dismissableLayer.update",q="dismissableLayer.pointerDownOutside",M="dismissableLayer.focusOutside",_=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),j=c.forwardRef((t,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:u,onDismiss:l,...d}=t,f=c.useContext(_),[m,v]=c.useState(null),h=m?.ownerDocument??globalThis?.document,[,g]=c.useState({}),y=n(r,e=>v(e)),E=Array.from(f.layers),[b]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=E.indexOf(b),N=m?E.indexOf(m):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,x=N>=w,R=function(e,t=globalThis?.document){const n=S(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){L(q,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...f.branches].some(e=>e.contains(t));!x||n||(i?.(e),u?.(e),e.defaultPrevented||l?.())},h),j=function(e,t=globalThis?.document){const n=S(e),r=c.useRef(!1);return c.useEffect(()=>{const e=e=>{e.target&&!r.current&&L(M,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...f.branches].some(e=>e.contains(t))||(s?.(e),u?.(e),e.defaultPrevented||l?.())},h);return function(e,t=globalThis?.document){const n=S(e);c.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{N===f.layers.size-1&&(a?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),c.useEffect(()=>{if(m)return o&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(O=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),A(),()=>{o&&1===f.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=O)}},[m,h,o,f]),c.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),A())},[m,f]),c.useEffect(()=>{const e=()=>g({});return document.addEventListener(P,e),()=>document.removeEventListener(P,e)},[]),e.jsx(D.div,{...d,ref:y,style:{pointerEvents:C?x?"auto":"none":void 0,...t.style},onFocusCapture:p(t.onFocusCapture,j.onFocusCapture),onBlurCapture:p(t.onBlurCapture,j.onBlurCapture),onPointerDownCapture:p(t.onPointerDownCapture,R.onPointerDownCapture)})});j.displayName="DismissableLayer";var T=c.forwardRef((t,r)=>{const o=c.useContext(_),a=c.useRef(null),i=n(r,a);return c.useEffect(()=>{const e=a.current;if(e)return o.branches.add(e),()=>{o.branches.delete(e)}},[o.branches]),e.jsx(D.div,{...t,ref:i})});function A(){const e=new CustomEvent(P);document.dispatchEvent(e)}function L(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?function(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}(o,a):o.dispatchEvent(a)}T.displayName="DismissableLayerBranch";var I="focusScope.autoFocusOnMount",k="focusScope.autoFocusOnUnmount",F={bubbles:!1,cancelable:!0},W=c.forwardRef((t,r)=>{const{loop:o=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...u}=t,[l,d]=c.useState(null),f=S(i),p=S(s),m=c.useRef(null),v=n(r,e=>d(e)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(a){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?m.current=t:z(m.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||z(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&z(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[a,l,h.paused]),c.useEffect(()=>{if(l){K.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(I,F);l.addEventListener(I,f),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(z(r,{select:t}),document.activeElement!==n)return}(function(e){return e.filter(e=>"A"!==e.tagName)}($(l)),{select:!0}),document.activeElement===e&&z(l))}return()=>{l.removeEventListener(I,f),setTimeout(()=>{const t=new CustomEvent(k,F);l.addEventListener(k,p),l.dispatchEvent(t),t.defaultPrevented||z(e??document.body,{select:!0}),l.removeEventListener(k,p),K.remove(h)},0)}}},[l,f,p,h]);const g=c.useCallback(e=>{if(!o&&!a||h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[r,a]=function(e){const t=$(e),n=B(t,e),r=B(t.reverse(),e);return[n,r]}(t);r&&a?e.shiftKey||n!==a?e.shiftKey&&n===r&&(e.preventDefault(),o&&z(a,{select:!0})):(e.preventDefault(),o&&z(r,{select:!0})):n===t&&e.preventDefault()}},[o,a,h.paused]);return e.jsx(D.div,{tabIndex:-1,...u,ref:v,onKeyDown:g})});function $(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 B(e,t){for(const n of e)if(!U(n,{upTo:t}))return n}function U(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}W.displayName="FocusScope";var K=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=V(e,t),e.unshift(t)},remove(t){e=V(e,t),e[0]?.resume()}}}();function V(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var X=c.forwardRef((t,n)=>{const{container:r,...o}=t,[a,i]=c.useState(!1);h(()=>i(!0),[]);const s=r||a&&globalThis?.document?.body;return s?u.createPortal(e.jsx(D.div,{...o,ref:n}),s):null});X.displayName="Portal";var Y=e=>{const{present:t,children:r}=e,o=function(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,u]=function(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const e=Z(r.current);a.current="mounted"===s?e:"none"},[s]),h(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,c=Z(t);u(e?"MOUNT":"none"===c||"none"===t?.display?"UNMOUNT":n&&r!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),h(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,c=a=>{const c=Z(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&c&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},i=e=>{e.target===t&&(a.current=Z(r.current))};return t.addEventListener("animationstart",i),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",i),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),a="function"==typeof r?r({present:o.isPresent}):c.Children.only(r),i=n(o.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(a));return"function"==typeof r||o.isPresent?c.cloneElement(a,{ref:i}):null};function Z(e){return e?.animationName||"none"}Y.displayName="Presence";var H=0;function G(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J()),document.body.insertAdjacentElement("beforeend",e[1]??J()),H++,()=>{1===H&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),H--}},[])}function J(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Q="right-scroll-bar-position",ee="width-before-scroll-bar";function te(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ne=typeof window<"u"?c.useLayoutEffect:c.useEffect,re=new WeakMap;function oe(e,t){var n=function(e,t){var n=i(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(null,function(t){return e.forEach(function(e){return te(e,t)})});return ne(function(){var t=re.get(n);if(t){var r=new Set(t),o=new Set(e),a=n.current;r.forEach(function(e){o.has(e)||te(e,null)}),o.forEach(function(e){r.has(e)||te(e,a)})}re.set(n,e)},[e]),n}function ae(e){return e}var ce=function(e){var t=e.sideCar,n=d(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,l({},n))};ce.isSideCarExport=!0;var ie=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ae);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=l({async:!0,ssr:!1},e),t}(),se=function(){},ue=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:se,onWheelCapture:se,onTouchMoveCapture:se}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,u=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,v=e.sideCar,h=e.noRelative,g=e.noIsolation,y=e.inert,E=e.allowPinchZoom,b=e.as,w=void 0===b?"div":b,N=e.gapMode,C=d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=v,R=oe([n,t]),D=l(l({},C),o);return c.createElement(c.Fragment,null,p&&c.createElement(x,{sideCar:ie,removeScrollBar:f,shards:m,noRelative:h,noIsolation:g,inert:y,setCallbacks:a,allowPinchZoom:!!E,lockRef:n,gapMode:N}),i?c.cloneElement(c.Children.only(s),l(l({},D),{ref:R})):c.createElement(w,l({},D,{className:u,ref:R}),s))});ue.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ue.classNames={fullWidth:ee,zeroRight:Q};function le(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var de=function(){var e=0,t=null;return{add:function(n){0==e&&(t=le())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fe=function(){var e=function(){var e=de();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},pe={left:0,top:0,right:0,gap:0},me=function(e){return parseInt(e||"",10)||0},ve=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return pe;var t=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[me(n),me(r),me(o)]}(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])}},he=fe(),ge="data-scroll-locked",ye=function(e,t,n,r){var o=e.left,a=e.top,c=e.right,i=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(i,"px ").concat(r,";\n }\n body[").concat(ge,"] {\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(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(i,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Q," {\n right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(ee," {\n margin-right: ").concat(i,"px ").concat(r,";\n }\n \n .").concat(Q," .").concat(Q," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ee," .").concat(ee," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ge,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(i,"px;\n }\n")},Ee=function(){var e=parseInt(document.body.getAttribute(ge)||"0",10);return isFinite(e)?e:0},be=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;c.useEffect(function(){return document.body.setAttribute(ge,(Ee()+1).toString()),function(){var e=Ee()-1;e<=0?document.body.removeAttribute(ge):document.body.setAttribute(ge,e.toString())}},[]);var a=c.useMemo(function(){return ve(o)},[o]);return c.createElement(he,{styles:ye(a,!t,o,n?"":"!important")})},we=!1;if(typeof window<"u")try{var Ne=Object.defineProperty({},"passive",{get:function(){return we=!0,!0}});window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch{we=!1}var Ce=!!we&&{passive:!1},xe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Re=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),De(e,r)){var o=Se(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},De=function(e,t){return"v"===e?function(e){return xe(e,"overflowY")}(t):function(e){return xe(e,"overflowX")}(t)},Se=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Oe=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pe=function(e){return[e.deltaX,e.deltaY]},qe=function(e){return e&&"current"in e?e.current:e},Me=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},_e=0,je=[];function Te(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ae=(Le=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(_e++)[0],a=c.useState(fe)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=f([e.lockRef.current],(e.shards||[]).map(qe),!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 s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=Oe(e),c=n.current,s="deltaX"in e?e.deltaX:c[0]-a[0],u="deltaY"in e?e.deltaY:c[1]-a[1],l=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=Re(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Re(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,c=n.target,i=t.contains(c),s=!1,u=a>0,l=0,d=0;do{if(!c)break;var f=Se(e,c),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&De(e,c)&&(l+=m,d+=p);var v=c.parentNode;c=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!i&&c!==document.body||i&&(t.contains(c)||t===c));return(u&&Math.abs(l)<1||!u&&Math.abs(d)<1)&&(s=!0),s}(p,t,e,"h"===p?s:u)},[]),u=c.useCallback(function(e){var n=e;if(je.length&&je[je.length-1]===a){var r="deltaY"in n?Pe(n):Oe(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var c=(i.current.shards||[]).map(qe).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=c.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Te(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=Oe(e),r.current=void 0},[]),p=c.useCallback(function(t){l(t.type,Pe(t),t.target,s(t,e.lockRef.current))},[]),m=c.useCallback(function(t){l(t.type,Oe(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return je.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",u,Ce),document.addEventListener("touchmove",u,Ce),document.addEventListener("touchstart",d,Ce),function(){je=je.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,Ce),document.removeEventListener("touchmove",u,Ce),document.removeEventListener("touchstart",d,Ce)}},[]);var v=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Me(o)}):null,v?c.createElement(be,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ie.useMedium(Le),ce);var Le,Ie=c.forwardRef(function(e,t){return c.createElement(ue,l({},e,{ref:t,sideCar:Ae}))});Ie.classNames=ue.classNames;var ke=new WeakMap,Fe=new WeakMap,We={},$e=0,Be=function(e){return e&&(e.host||Be(e.parentNode))},Ue=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Be(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return!!e})}(t,Array.isArray(e)?e:[e]);We[n]||(We[n]=new WeakMap);var a=We[n],c=[],i=new Set,s=new Set(o),u=function(e){!e||i.has(e)||(i.add(e),u(e.parentNode))};o.forEach(u);var l=function(e){!e||s.has(e)||Array.prototype.forEach.call(e.children,function(e){if(i.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,s=(ke.get(e)||0)+1,u=(a.get(e)||0)+1;ke.set(e,s),a.set(e,u),c.push(e),1===s&&o&&Fe.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return l(t),i.clear(),$e++,function(){c.forEach(function(e){var t=ke.get(e)-1,o=a.get(e)-1;ke.set(e,t),a.set(e,o),t||(Fe.has(e)||e.removeAttribute(r),Fe.delete(e)),o||e.removeAttribute(n)}),--$e||(ke=new WeakMap,ke=new WeakMap,Fe=new WeakMap,We={})}},ze=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ue(r,o,n,"aria-hidden")):function(){return null}};function Ke(t){const n=Ve(t),r=c.forwardRef((t,r)=>{const{children:o,...a}=t,i=c.Children.toArray(o),s=i.find(Ye);if(s){const t=s.props.children,o=i.map(e=>e===s?c.Children.count(t)>1?c.Children.only(null):c.isValidElement(t)?t.props.children:null:e);return e.jsx(n,{...a,ref:r,children:c.isValidElement(t)?c.cloneElement(t,void 0,o):null})}return e.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}function Ve(e){const n=c.forwardRef((e,n)=>{const{children:r,...o}=e;if(c.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}(r),a=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==c.Fragment&&(a.ref=n?t(n,e):e),c.cloneElement(r,a)}return c.Children.count(r)>1?c.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Xe=Symbol("radix.slottable");function Ye(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Xe}var Ze="Dialog",[He]=m(Ze),[Ge,Je]=He(Ze),Qe=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=t,u=c.useRef(null),l=c.useRef(null),[d,f]=w({prop:o,defaultProp:a??!1,onChange:i,caller:Ze});return e.jsx(Ge,{scope:n,triggerRef:u,contentRef:l,contentId:E(),titleId:E(),descriptionId:E(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:s,children:r})};Qe.displayName=Ze;var et="DialogTrigger",tt=c.forwardRef((t,r)=>{const{__scopeDialog:o,...a}=t,c=Je(et,o),i=n(r,c.triggerRef);return e.jsx(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":wt(c.open),...a,ref:i,onClick:p(t.onClick,c.onOpenToggle)})});tt.displayName=et;var nt="DialogPortal",[rt,ot]=He(nt,{forceMount:void 0}),at=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:a}=t,i=Je(nt,n);return e.jsx(rt,{scope:n,forceMount:r,children:c.Children.map(o,t=>e.jsx(Y,{present:r||i.open,children:e.jsx(X,{asChild:!0,container:a,children:t})}))})};at.displayName=nt;var ct="DialogOverlay",it=c.forwardRef((t,n)=>{const r=ot(ct,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,c=Je(ct,t.__scopeDialog);return c.modal?e.jsx(Y,{present:o||c.open,children:e.jsx(ut,{...a,ref:n})}):null});it.displayName=ct;var st=Ke("DialogOverlay.RemoveScroll"),ut=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Je(ct,r);return e.jsx(Ie,{as:st,allowPinchZoom:!0,shards:[a.contentRef],children:e.jsx(D.div,{"data-state":wt(a.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),lt="DialogContent",dt=c.forwardRef((t,n)=>{const r=ot(lt,t.__scopeDialog),{forceMount:o=r.forceMount,...a}=t,c=Je(lt,t.__scopeDialog);return e.jsx(Y,{present:o||c.open,children:c.modal?e.jsx(ft,{...a,ref:n}):e.jsx(pt,{...a,ref:n})})});dt.displayName=lt;var ft=c.forwardRef((t,r)=>{const o=Je(lt,t.__scopeDialog),a=c.useRef(null),i=n(r,o.contentRef,a);return c.useEffect(()=>{const e=a.current;if(e)return ze(e)},[]),e.jsx(mt,{...t,ref:i,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p(t.onCloseAutoFocus,e=>{e.preventDefault(),o.triggerRef.current?.focus()}),onPointerDownOutside:p(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:p(t.onFocusOutside,e=>e.preventDefault())})}),pt=c.forwardRef((t,n)=>{const r=Je(lt,t.__scopeDialog),o=c.useRef(!1),a=c.useRef(!1);return e.jsx(mt,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(o.current||r.triggerRef.current?.focus(),e.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(a.current=!0));const n=e.target;r.triggerRef.current?.contains(n)&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&a.current&&e.preventDefault()}})}),mt=c.forwardRef((t,r)=>{const{__scopeDialog:o,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:s,...u}=t,l=Je(lt,o),d=c.useRef(null),f=n(r,d);return G(),e.jsxs(e.Fragment,{children:[e.jsx(W,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:i,onUnmountAutoFocus:s,children:e.jsx(j,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":wt(l.open),...u,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),e.jsxs(e.Fragment,{children:[e.jsx(Rt,{titleId:l.titleId}),e.jsx(Dt,{contentRef:d,descriptionId:l.descriptionId})]})]})}),vt="DialogTitle",ht=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Je(vt,r);return e.jsx(D.h2,{id:a.titleId,...o,ref:n})});ht.displayName=vt;var gt="DialogDescription",yt=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Je(gt,r);return e.jsx(D.p,{id:a.descriptionId,...o,ref:n})});yt.displayName=gt;var Et="DialogClose",bt=c.forwardRef((t,n)=>{const{__scopeDialog:r,...o}=t,a=Je(Et,r);return e.jsx(D.button,{type:"button",...o,ref:n,onClick:p(t.onClick,()=>a.onOpenChange(!1))})});function wt(e){return e?"open":"closed"}bt.displayName=Et;var Nt="DialogTitleWarning",[Ct,xt]=function(t,n){const r=c.createContext(n),o=t=>{const{children:n,...o}=t,a=c.useMemo(()=>o,Object.values(o));return e.jsx(r.Provider,{value:a,children:n})};return o.displayName=t+"Provider",[o,function(e){const o=c.useContext(r);if(o)return o;if(void 0!==n)return n;throw new Error(`\`${e}\` must be used within \`${t}\``)}]}(Nt,{contentName:lt,titleName:vt,docsSlug:"dialog"}),Rt=({titleId:e})=>{const t=xt(Nt),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Dt=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xt("DialogDescriptionWarning").contentName}}.`;return c.useEffect(()=>{const r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},St=it,Ot=dt,Pt=ht,qt=yt,Mt=bt;const _t=Qe,jt=at,Tt=c.forwardRef(({className:t,...n},r)=>e.jsx(St,{ref:r,className:a("qc:data-[state=open]:animate-in qc:data-[state=closed]:animate-out qc:data-[state=closed]:fade-out-0 qc:data-[state=open]:fade-in-0 qc:fixed qc:inset-0 qc:z-2001 qc:backdrop-blur-md",t),...n})),At=c.forwardRef(({className:t,children:n,...c},i)=>{const{organization:s,props:{fontClassName:u,textClassName:l}}=r();return e.jsxs(jt,{children:[e.jsx(Tt,{}),e.jsxs(Ot,{ref:i,className:a("qc:bg-background qc:shadow-outer qc:border-border qc:max-w-screen qc:data-[state=open]:animate-in qc:data-[state=closed]:animate-out qc:data-[state=closed]:fade-out-0 qc:data-[state=open]:fade-in-0 qc:data-[state=closed]:zoom-out-95 qc:data-[state=open]:zoom-in-95 qc:data-[state=closed]:slide-out-to-left-1/2 qc:data-[state=closed]:slide-out-to-top-[48%] qc:data-[state=open]:slide-in-from-left-1/2 qc:data-[state=open]:slide-in-from-top-[48%] qc:fixed qc:left-[50%] qc:top-[50%] qc:z-2002 qc:w-auto qc:translate-x-[-50%] qc:translate-y-[-50%] qc:rounded qc:duration-300 qc:sm:rounded",u,l,t),style:o(s),...c,children:[n,e.jsx(Mt,{className:"qc:ring-offset-background qc:focus:ring-ring qc:data-[state=open]:text-foreground qc:hover:opacity-100 qc:focus:outline-none qc:disabled:pointer-events-none qc:focus:ring-2 qc:focus:ring-offset-2 qc:absolute qc:right-3 qc:top-3 qc:rounded qc:opacity-70 qc:transition-opacity",children:e.jsx("span",{className:"qc:sr-only",children:"Close"})})]})]})}),Lt=({className:t,...n})=>e.jsx("div",{className:a("qc:flex qc:flex-col qc:space-y-1 qc:p-3 qc:text-center qc:sm:text-left",t),...n}),It=c.forwardRef(({className:t,...n},r)=>e.jsx(Pt,{ref:r,className:a("qc:text-foreground qc:text-center qc:text-lg qc:font-semibold",t),...n})),kt=c.forwardRef(({className:t,...n},r)=>e.jsx(qt,{ref:r,className:a("qc:text-muted qc:text-center qc:text-sm",t),...n}));export{_t as D,W as F,D as P,Ie as R,At as a,Lt as b,It as c,kt as d,m as e,S as f,Y as g,X as h,ze as i,p as j,G as k,j as l,w as m,E as n,h as u};
@@ -1 +1 @@
1
- import{c as e,T as r,P as t,a,b as s,C as o,Q as l}from"./BUZq1uY0.js";import{a5 as n,a6 as c,a7 as i}from"./BDeLdfbp.js";var u=u=>{const[d,h]=e({prefix:"TanstackQueryDevtools"}),m=n(),v=c(()=>{const e=d.theme_preference||r;return"system"!==e?e:m()});return i(l.Provider,{value:u,get children(){return i(t,{disabled:!0,localStore:d,setLocalStore:h,get children(){return i(a.Provider,{value:v,get children(){return i(s,{get children(){return i(o,{localStore:d,setLocalStore:h,get onClose(){return u.onClose},showPanelViewOnly:!0})}})}})}})}})};export{u as default};
1
+ import{c as e,T as r,P as t,a,b as s,C as o,Q as l}from"./Cp86U6va.js";import{a5 as n,a6 as c,a7 as i}from"./BaA7RHRf.js";var u=u=>{const[d,h]=e({prefix:"TanstackQueryDevtools"}),m=n(),v=c(()=>{const e=d.theme_preference||r;return"system"!==e?e:m()});return i(l.Provider,{value:u,get children(){return i(t,{disabled:!0,localStore:d,setLocalStore:h,get children(){return i(a.Provider,{value:v,get children(){return i(s,{get children(){return i(o,{localStore:d,setLocalStore:h,get onClose(){return u.onClose},showPanelViewOnly:!0})}})}})}})}})};export{u as default};