izen-react-starter 1.1.0

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 (179) hide show
  1. package/README.md +597 -0
  2. package/dist/App.d.ts +3 -0
  3. package/dist/App.d.ts.map +1 -0
  4. package/dist/MIMHJGAX-Brj9G5XE.js +9168 -0
  5. package/dist/Q7LWSL4U-CPoRPcQS.js +33 -0
  6. package/dist/VLTTJS3N-BeVVV6a8.js +42 -0
  7. package/dist/components/Button/Button.d.ts +17 -0
  8. package/dist/components/Button/Button.d.ts.map +1 -0
  9. package/dist/components/Button/index.d.ts +3 -0
  10. package/dist/components/Button/index.d.ts.map +1 -0
  11. package/dist/components/Card/Card.d.ts +25 -0
  12. package/dist/components/Card/Card.d.ts.map +1 -0
  13. package/dist/components/Card/index.d.ts +3 -0
  14. package/dist/components/Card/index.d.ts.map +1 -0
  15. package/dist/components/ui/accordion.d.ts +8 -0
  16. package/dist/components/ui/accordion.d.ts.map +1 -0
  17. package/dist/components/ui/alert-dialog.d.ts +21 -0
  18. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  19. package/dist/components/ui/alert.d.ts +9 -0
  20. package/dist/components/ui/alert.d.ts.map +1 -0
  21. package/dist/components/ui/aspect-ratio.d.ts +4 -0
  22. package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
  23. package/dist/components/ui/avatar.d.ts +7 -0
  24. package/dist/components/ui/avatar.d.ts.map +1 -0
  25. package/dist/components/ui/badge.d.ts +10 -0
  26. package/dist/components/ui/badge.d.ts.map +1 -0
  27. package/dist/components/ui/breadcrumb.d.ts +20 -0
  28. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  29. package/dist/components/ui/button.d.ts +12 -0
  30. package/dist/components/ui/button.d.ts.map +1 -0
  31. package/dist/components/ui/calendar.d.ts +9 -0
  32. package/dist/components/ui/calendar.d.ts.map +1 -0
  33. package/dist/components/ui/card.d.ts +9 -0
  34. package/dist/components/ui/card.d.ts.map +1 -0
  35. package/dist/components/ui/carousel.d.ts +19 -0
  36. package/dist/components/ui/carousel.d.ts.map +1 -0
  37. package/dist/components/ui/chart.d.ts +50 -0
  38. package/dist/components/ui/chart.d.ts.map +1 -0
  39. package/dist/components/ui/checkbox.d.ts +5 -0
  40. package/dist/components/ui/checkbox.d.ts.map +1 -0
  41. package/dist/components/ui/collapsible.d.ts +6 -0
  42. package/dist/components/ui/collapsible.d.ts.map +1 -0
  43. package/dist/components/ui/command.d.ts +81 -0
  44. package/dist/components/ui/command.d.ts.map +1 -0
  45. package/dist/components/ui/context-menu.d.ts +28 -0
  46. package/dist/components/ui/context-menu.d.ts.map +1 -0
  47. package/dist/components/ui/dialog.d.ts +20 -0
  48. package/dist/components/ui/dialog.d.ts.map +1 -0
  49. package/dist/components/ui/drawer.d.ts +23 -0
  50. package/dist/components/ui/drawer.d.ts.map +1 -0
  51. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  52. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  53. package/dist/components/ui/form.d.ts +13 -0
  54. package/dist/components/ui/form.d.ts.map +1 -0
  55. package/dist/components/ui/hover-card.d.ts +7 -0
  56. package/dist/components/ui/hover-card.d.ts.map +1 -0
  57. package/dist/components/ui/icons.d.ts +34 -0
  58. package/dist/components/ui/icons.d.ts.map +1 -0
  59. package/dist/components/ui/index.d.ts +53 -0
  60. package/dist/components/ui/index.d.ts.map +1 -0
  61. package/dist/components/ui/input-otp.d.ts +35 -0
  62. package/dist/components/ui/input-otp.d.ts.map +1 -0
  63. package/dist/components/ui/input.d.ts +4 -0
  64. package/dist/components/ui/input.d.ts.map +1 -0
  65. package/dist/components/ui/label.d.ts +6 -0
  66. package/dist/components/ui/label.d.ts.map +1 -0
  67. package/dist/components/ui/menubar.d.ts +34 -0
  68. package/dist/components/ui/menubar.d.ts.map +1 -0
  69. package/dist/components/ui/modal.d.ts +13 -0
  70. package/dist/components/ui/modal.d.ts.map +1 -0
  71. package/dist/components/ui/navigation-menu.d.ts +13 -0
  72. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  73. package/dist/components/ui/pagination.d.ts +37 -0
  74. package/dist/components/ui/pagination.d.ts.map +1 -0
  75. package/dist/components/ui/popover.d.ts +8 -0
  76. package/dist/components/ui/popover.d.ts.map +1 -0
  77. package/dist/components/ui/progress.d.ts +5 -0
  78. package/dist/components/ui/progress.d.ts.map +1 -0
  79. package/dist/components/ui/protected-components.d.ts +7 -0
  80. package/dist/components/ui/protected-components.d.ts.map +1 -0
  81. package/dist/components/ui/radio-group.d.ts +6 -0
  82. package/dist/components/ui/radio-group.d.ts.map +1 -0
  83. package/dist/components/ui/resizable.d.ts +8 -0
  84. package/dist/components/ui/resizable.d.ts.map +1 -0
  85. package/dist/components/ui/scroll-area.d.ts +10 -0
  86. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  87. package/dist/components/ui/select.d.ts +14 -0
  88. package/dist/components/ui/select.d.ts.map +1 -0
  89. package/dist/components/ui/separator.d.ts +5 -0
  90. package/dist/components/ui/separator.d.ts.map +1 -0
  91. package/dist/components/ui/sheet.d.ts +26 -0
  92. package/dist/components/ui/sheet.d.ts.map +1 -0
  93. package/dist/components/ui/sidebar.d.ts +66 -0
  94. package/dist/components/ui/sidebar.d.ts.map +1 -0
  95. package/dist/components/ui/skeleton.d.ts +4 -0
  96. package/dist/components/ui/skeleton.d.ts.map +1 -0
  97. package/dist/components/ui/slider.d.ts +5 -0
  98. package/dist/components/ui/slider.d.ts.map +1 -0
  99. package/dist/components/ui/sonner.d.ts +5 -0
  100. package/dist/components/ui/sonner.d.ts.map +1 -0
  101. package/dist/components/ui/switch.d.ts +5 -0
  102. package/dist/components/ui/switch.d.ts.map +1 -0
  103. package/dist/components/ui/table.d.ts +11 -0
  104. package/dist/components/ui/table.d.ts.map +1 -0
  105. package/dist/components/ui/tabs.d.ts +8 -0
  106. package/dist/components/ui/tabs.d.ts.map +1 -0
  107. package/dist/components/ui/textarea.d.ts +6 -0
  108. package/dist/components/ui/textarea.d.ts.map +1 -0
  109. package/dist/components/ui/toast.d.ts +16 -0
  110. package/dist/components/ui/toast.d.ts.map +1 -0
  111. package/dist/components/ui/toaster.d.ts +2 -0
  112. package/dist/components/ui/toaster.d.ts.map +1 -0
  113. package/dist/components/ui/toggle-group.d.ts +13 -0
  114. package/dist/components/ui/toggle-group.d.ts.map +1 -0
  115. package/dist/components/ui/toggle.d.ts +13 -0
  116. package/dist/components/ui/toggle.d.ts.map +1 -0
  117. package/dist/components/ui/tooltip.d.ts +8 -0
  118. package/dist/components/ui/tooltip.d.ts.map +1 -0
  119. package/dist/components/ui/use-toast.d.ts +45 -0
  120. package/dist/components/ui/use-toast.d.ts.map +1 -0
  121. package/dist/contexts/LayoutContext.d.ts +41 -0
  122. package/dist/contexts/LayoutContext.d.ts.map +1 -0
  123. package/dist/hooks/index.d.ts +2 -0
  124. package/dist/hooks/index.d.ts.map +1 -0
  125. package/dist/hooks/useIsMobile.d.ts +2 -0
  126. package/dist/hooks/useIsMobile.d.ts.map +1 -0
  127. package/dist/index-lCrdXFfH.js +45405 -0
  128. package/dist/index.d.ts +19 -0
  129. package/dist/index.d.ts.map +1 -0
  130. package/dist/izen-react-starter.css +1 -0
  131. package/dist/lib/cache-util.d.ts +11 -0
  132. package/dist/lib/cache-util.d.ts.map +1 -0
  133. package/dist/lib/index.d.ts +4 -0
  134. package/dist/lib/index.d.ts.map +1 -0
  135. package/dist/lib/utils.d.ts +10 -0
  136. package/dist/lib/utils.d.ts.map +1 -0
  137. package/dist/main.d.ts +1 -0
  138. package/dist/main.d.ts.map +1 -0
  139. package/dist/providers/AppProvider.d.ts +13 -0
  140. package/dist/providers/AppProvider.d.ts.map +1 -0
  141. package/dist/providers/AuthProvider.d.ts +26 -0
  142. package/dist/providers/AuthProvider.d.ts.map +1 -0
  143. package/dist/providers/FormContext.d.ts +5 -0
  144. package/dist/providers/FormContext.d.ts.map +1 -0
  145. package/dist/providers/ModalProvider.d.ts +11 -0
  146. package/dist/providers/ModalProvider.d.ts.map +1 -0
  147. package/dist/providers/OverlayProvider.d.ts +11 -0
  148. package/dist/providers/OverlayProvider.d.ts.map +1 -0
  149. package/dist/providers/ThemeProvider.d.ts +14 -0
  150. package/dist/providers/ThemeProvider.d.ts.map +1 -0
  151. package/dist/providers/index.d.ts +11 -0
  152. package/dist/providers/index.d.ts.map +1 -0
  153. package/dist/rbac/AccessControlWrapper.d.ts +16 -0
  154. package/dist/rbac/AccessControlWrapper.d.ts.map +1 -0
  155. package/dist/rbac/UpdateAccessControlWrapper.d.ts +10 -0
  156. package/dist/rbac/UpdateAccessControlWrapper.d.ts.map +1 -0
  157. package/dist/rbac/access-rules.d.ts +52 -0
  158. package/dist/rbac/access-rules.d.ts.map +1 -0
  159. package/dist/rbac/index.d.ts +8 -0
  160. package/dist/rbac/index.d.ts.map +1 -0
  161. package/dist/rbac/useAccessControl.d.ts +8 -0
  162. package/dist/rbac/useAccessControl.d.ts.map +1 -0
  163. package/dist/react-starter.js +304 -0
  164. package/dist/react-starter.umd.cjs +1573 -0
  165. package/dist/routes/RequiredAuth.d.ts +6 -0
  166. package/dist/routes/RequiredAuth.d.ts.map +1 -0
  167. package/dist/routes/hooks/index.d.ts +4 -0
  168. package/dist/routes/hooks/index.d.ts.map +1 -0
  169. package/dist/routes/hooks/usePathname.d.ts +2 -0
  170. package/dist/routes/hooks/usePathname.d.ts.map +1 -0
  171. package/dist/routes/hooks/useRouter.d.ts +9 -0
  172. package/dist/routes/hooks/useRouter.d.ts.map +1 -0
  173. package/dist/routes/index.d.ts +5 -0
  174. package/dist/routes/index.d.ts.map +1 -0
  175. package/dist/services/apiService.d.ts +26 -0
  176. package/dist/services/apiService.d.ts.map +1 -0
  177. package/dist/with-styles.d.ts +2 -0
  178. package/dist/with-styles.d.ts.map +1 -0
  179. package/package.json +114 -0
@@ -0,0 +1,1573 @@
1
+ (function(k,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],b):(k=typeof globalThis<"u"?globalThis:k||self,b(k.ReactStarter={},k["react/jsx-runtime"],k.React,k.ReactDOM))})(this,(function(k,b,O,xr){"use strict";var cTe=Object.defineProperty;var yq=k=>{throw TypeError(k)};var uTe=(k,b,O)=>b in k?cTe(k,b,{enumerable:!0,configurable:!0,writable:!0,value:O}):k[b]=O;var cn=(k,b,O)=>uTe(k,typeof b!="symbol"?b+"":b,O),UC=(k,b,O)=>b.has(k)||yq("Cannot "+O);var K=(k,b,O)=>(UC(k,b,"read from private field"),O?O.call(k):b.get(k)),Le=(k,b,O)=>b.has(k)?yq("Cannot add the same private member more than once"):b instanceof WeakSet?b.add(k):b.set(k,O),Pe=(k,b,O,xr)=>(UC(k,b,"write to private field"),xr?xr.call(k,O):b.set(k,O),O),In=(k,b,O)=>(UC(k,b,"access private method"),O);var Qm=(k,b,O,xr)=>({set _(Sf){Pe(k,b,Sf,O)},get _(){return K(k,b,xr)}});var Wo,vs,sq,ys,fa,tc,lq,nc,ha,rc,cq,bs,uq,ws,oc,Ur,xs,mn,af,Ss,vo,Ni,dq,sf,Ko,Hn,Cs,Go,ya,fq,Di,yo,lf,hq,Yo,pq,Ut,pa,ga,ic,ac,ma,sc,lc,gq,cc,cf,uf,df,Es,ff,uc,dc,fc,hc,pc,hf,gc,mc,pf,mq,vc,gf,mf,vf,Ps,yf,yc,bc,wc,xc,Sc,bf,Cc,Ec,Pc,wf,vq,Os,va;function Sf(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=Sf(O),Oc=Sf(xr);function xq(e,t){const n=g.createContext(t),r=i=>{const{children:a,...s}=i,l=g.useMemo(()=>s,Object.values(s));return b.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(i){const a=g.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function kt(e,t=[]){let n=[];function r(i,a){const s=g.createContext(a),l=n.length;n=[...n,a];const c=d=>{var y;const{scope:f,children:p,...h}=d,m=((y=f==null?void 0:f[e])==null?void 0:y[l])||s,v=g.useMemo(()=>h,Object.values(h));return b.jsx(m.Provider,{value:v,children:p})};c.displayName=i+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||s,h=g.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(a=>g.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Sq(o,...t)]}function Sq(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function HC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Pn(...e){return t=>{let n=!1;const r=e.map(o=>{const i=HC(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():HC(e[o],null)}}}}function je(...e){return g.useCallback(Pn(...e),e)}function WC(e){const t=Cq(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(Pq);if(l){const c=l.props.children,u=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Cq(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=Tq(o),s=Oq(i,o.props);return o.type!==g.Fragment&&(s.ref=r?Pn(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Eq=Symbol("radix.slottable");function Pq(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Eq}function Oq(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Tq(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Qo(e){const t=e+"CollectionProvider",[n,r]=kt(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:v,children:y}=m,w=O.useRef(null),x=O.useRef(new Map).current;return b.jsx(o,{scope:v,itemMap:x,collectionRef:w,children:y})};a.displayName=t;const s=e+"CollectionSlot",l=WC(s),c=O.forwardRef((m,v)=>{const{scope:y,children:w}=m,x=i(s,y),S=je(v,x.collectionRef);return b.jsx(l,{ref:S,children:w})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=WC(u),p=O.forwardRef((m,v)=>{const{scope:y,children:w,...x}=m,S=O.useRef(null),C=je(v,S),E=i(u,y);return O.useEffect(()=>(E.itemMap.set(S,{ref:S,...x}),()=>void E.itemMap.delete(S))),b.jsx(f,{[d]:"",ref:C,children:w})});p.displayName=u;function h(m){const v=i(e+"CollectionConsumer",m);return O.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((E,P)=>x.indexOf(E.ref.current)-x.indexOf(P.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:c,ItemSlot:p},h,r]}function ne(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var At=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},_q=g[" useInsertionEffect ".trim().toString()]||At;function Ot({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Mq({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:o;{const u=g.useRef(e!==void 0);g.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"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.`),u.current=s},[s,r])}const c=g.useCallback(u=>{var d;if(s){const f=kq(u)?u(e):u;f!==e&&((d=a.current)==null||d.call(a,f))}else i(u)},[s,e,i,a]);return[l,c]}function Mq({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return _q(()=>{i.current=t},[t]),g.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function kq(e){return typeof e=="function"}function Aq(e){const t=Dq(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find($q);if(l){const c=l.props.children,u=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Dq(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=Lq(o),s=Iq(i,o.props);return o.type!==g.Fragment&&(s.ref=r?Pn(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nq=Symbol("radix.slottable");function $q(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Nq}function Iq(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Lq(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Fq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ye=Fq.reduce((e,t)=>{const n=Aq(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Tc(e,t){e&&Oc.flushSync(()=>e.dispatchEvent(t))}function Rq(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Tt=e=>{const{present:t,children:n}=e,r=Bq(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=je(r.ref,jq(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};Tt.displayName="Presence";function Bq(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),a=e?"mounted":"unmounted",[s,l]=Rq(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=Cf(r.current);i.current=s==="mounted"?c:"none"},[s]),At(()=>{const c=r.current,u=o.current;if(u!==e){const f=i.current,p=Cf(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),At(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=p=>{const m=Cf(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},f=p=>{p.target===t&&(i.current=Cf(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:g.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Cf(e){return(e==null?void 0:e.animationName)||"none"}function jq(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zq=g[" useId ".trim().toString()]||(()=>{}),qq=0;function Et(e){const[t,n]=g.useState(zq());return At(()=>{n(r=>r??String(qq++))},[e]),t?`radix-${t}`:""}var Ef="Collapsible",[Vq,KC]=kt(Ef),[Uq,Zm]=Vq(Ef),GC=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:a,...s}=e,[l,c]=Ot({prop:r,defaultProp:o??!1,onChange:a,caller:Ef});return b.jsx(Uq,{scope:n,disabled:i,contentId:Et(),open:l,onOpenToggle:g.useCallback(()=>c(u=>!u),[c]),children:b.jsx(ye.div,{"data-state":nv(l),"data-disabled":i?"":void 0,...s,ref:t})})});GC.displayName=Ef;var YC="CollapsibleTrigger",Jm=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Zm(YC,n);return b.jsx(ye.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":nv(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:ne(e.onClick,o.onOpenToggle)})});Jm.displayName=YC;var ev="CollapsibleContent",tv=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Zm(ev,e.__scopeCollapsible);return b.jsx(Tt,{present:n||o.open,children:({present:i})=>b.jsx(Hq,{...r,ref:t,present:i})})});tv.displayName=ev;var Hq=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,a=Zm(ev,n),[s,l]=g.useState(r),c=g.useRef(null),u=je(t,c),d=g.useRef(0),f=d.current,p=g.useRef(0),h=p.current,m=a.open||s,v=g.useRef(m),y=g.useRef(void 0);return g.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),At(()=>{const w=c.current;if(w){y.current=y.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();d.current=x.height,p.current=x.width,v.current||(w.style.transitionDuration=y.current.transitionDuration,w.style.animationName=y.current.animationName),l(r)}},[a.open,r]),b.jsx(ye.div,{"data-state":nv(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!m,...i,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:m&&o})});function nv(e){return e?"open":"closed"}var XC=GC,Wq=Jm,Kq=tv,Gq=g.createContext(void 0);function Wr(e){const t=g.useContext(Gq);return e||t||"ltr"}var Kr="Accordion",Yq=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[rv,Xq,Qq]=Qo(Kr),[Pf]=kt(Kr,[Qq,KC]),ov=KC(),QC=O.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return b.jsx(rv.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?b.jsx(tV,{...i,ref:t}):b.jsx(eV,{...o,ref:t})})});QC.displayName=Kr;var[ZC,Zq]=Pf(Kr),[JC,Jq]=Pf(Kr,{collapsible:!1}),eV=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...a}=e,[s,l]=Ot({prop:n,defaultProp:r??"",onChange:o,caller:Kr});return b.jsx(ZC,{scope:e.__scopeAccordion,value:O.useMemo(()=>s?[s]:[],[s]),onItemOpen:l,onItemClose:O.useCallback(()=>i&&l(""),[i,l]),children:b.jsx(JC,{scope:e.__scopeAccordion,collapsible:i,children:b.jsx(eE,{...a,ref:t})})})}),tV=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a,s]=Ot({prop:n,defaultProp:r??[],onChange:o,caller:Kr}),l=O.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=O.useCallback(u=>s((d=[])=>d.filter(f=>f!==u)),[s]);return b.jsx(ZC,{scope:e.__scopeAccordion,value:a,onItemOpen:l,onItemClose:c,children:b.jsx(JC,{scope:e.__scopeAccordion,collapsible:!0,children:b.jsx(eE,{...i,ref:t})})})}),[nV,Of]=Pf(Kr),eE=O.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...a}=e,s=O.useRef(null),l=je(s,t),c=Xq(n),d=Wr(o)==="ltr",f=ne(e.onKeyDown,p=>{var _;if(!Yq.includes(p.key))return;const h=p.target,m=c().filter(T=>{var M;return!((M=T.ref.current)!=null&&M.disabled)}),v=m.findIndex(T=>T.ref.current===h),y=m.length;if(v===-1)return;p.preventDefault();let w=v;const x=0,S=y-1,C=()=>{w=v+1,w>S&&(w=x)},E=()=>{w=v-1,w<x&&(w=S)};switch(p.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":i==="horizontal"&&(d?C():E());break;case"ArrowDown":i==="vertical"&&C();break;case"ArrowLeft":i==="horizontal"&&(d?E():C());break;case"ArrowUp":i==="vertical"&&E();break}const P=w%y;(_=m[P].ref.current)==null||_.focus()});return b.jsx(nV,{scope:n,disabled:r,direction:o,orientation:i,children:b.jsx(rv.Slot,{scope:n,children:b.jsx(ye.div,{...a,"data-orientation":i,ref:l,onKeyDown:r?void 0:f})})})}),Tf="AccordionItem",[rV,iv]=Pf(Tf),tE=O.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=Of(Tf,n),a=Zq(Tf,n),s=ov(n),l=Et(),c=r&&a.value.includes(r)||!1,u=i.disabled||e.disabled;return b.jsx(rV,{scope:n,open:c,disabled:u,triggerId:l,children:b.jsx(XC,{"data-orientation":i.orientation,"data-state":sE(c),...s,...o,ref:t,disabled:u,open:c,onOpenChange:d=>{d?a.onItemOpen(r):a.onItemClose(r)}})})});tE.displayName=Tf;var nE="AccordionHeader",rE=O.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Of(Kr,n),i=iv(nE,n);return b.jsx(ye.h3,{"data-orientation":o.orientation,"data-state":sE(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});rE.displayName=nE;var av="AccordionTrigger",oE=O.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Of(Kr,n),i=iv(av,n),a=Jq(av,n),s=ov(n);return b.jsx(rv.ItemSlot,{scope:n,children:b.jsx(Wq,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:t})})});oE.displayName=av;var iE="AccordionContent",aE=O.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Of(Kr,n),i=iv(iE,n),a=ov(n);return b.jsx(Kq,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});aE.displayName=iE;function sE(e){return e?"open":"closed"}var oV=QC,iV=tE,aV=rE,lE=oE,cE=aE;function Zo(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var sV=["color"],lV=O.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Zo(e,sV);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),O.createElement("path",{d:"M6.85355 3.14645C7.04882 3.34171 7.04882 3.65829 6.85355 3.85355L3.70711 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H3.70711L6.85355 11.1464C7.04882 11.3417 7.04882 11.6583 6.85355 11.8536C6.65829 12.0488 6.34171 12.0488 6.14645 11.8536L2.14645 7.85355C1.95118 7.65829 1.95118 7.34171 2.14645 7.14645L6.14645 3.14645C6.34171 2.95118 6.65829 2.95118 6.85355 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),cV=["color"],uV=O.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Zo(e,cV);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),O.createElement("path",{d:"M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),dV=["color"],fV=O.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Zo(e,dV);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),O.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),hV=["color"],pV=O.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Zo(e,hV);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),O.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gV=["color"],mV=O.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Zo(e,gV);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),O.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),vV=["color"],yV=O.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Zo(e,vV);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),O.createElement("path",{d:"M5 7.5C5 7.22386 5.22386 7 5.5 7H9.5C9.77614 7 10 7.22386 10 7.5C10 7.77614 9.77614 8 9.5 8H5.5C5.22386 8 5 7.77614 5 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),bV=["color"],wV=O.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Zo(e,bV);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),O.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),xV=["color"],SV=O.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Zo(e,xV);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),O.createElement("path",{d:"M5.5 4.625C6.12132 4.625 6.625 4.12132 6.625 3.5C6.625 2.87868 6.12132 2.375 5.5 2.375C4.87868 2.375 4.375 2.87868 4.375 3.5C4.375 4.12132 4.87868 4.625 5.5 4.625ZM9.5 4.625C10.1213 4.625 10.625 4.12132 10.625 3.5C10.625 2.87868 10.1213 2.375 9.5 2.375C8.87868 2.375 8.375 2.87868 8.375 3.5C8.375 4.12132 8.87868 4.625 9.5 4.625ZM10.625 7.5C10.625 8.12132 10.1213 8.625 9.5 8.625C8.87868 8.625 8.375 8.12132 8.375 7.5C8.375 6.87868 8.87868 6.375 9.5 6.375C10.1213 6.375 10.625 6.87868 10.625 7.5ZM5.5 8.625C6.12132 8.625 6.625 8.12132 6.625 7.5C6.625 6.87868 6.12132 6.375 5.5 6.375C4.87868 6.375 4.375 6.87868 4.375 7.5C4.375 8.12132 4.87868 8.625 5.5 8.625ZM10.625 11.5C10.625 12.1213 10.1213 12.625 9.5 12.625C8.87868 12.625 8.375 12.1213 8.375 11.5C8.375 10.8787 8.87868 10.375 9.5 10.375C10.1213 10.375 10.625 10.8787 10.625 11.5ZM5.5 12.625C6.12132 12.625 6.625 12.1213 6.625 11.5C6.625 10.8787 6.12132 10.375 5.5 10.375C4.87868 10.375 4.375 10.8787 4.375 11.5C4.375 12.1213 4.87868 12.625 5.5 12.625Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),CV=["color"],EV=O.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=Zo(e,CV);return O.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),O.createElement("path",{d:"M8 2H13.5C13.7761 2 14 2.22386 14 2.5V12.5C14 12.7761 13.7761 13 13.5 13H8V2ZM7 2H1.5C1.22386 2 1 2.22386 1 2.5V12.5C1 12.7761 1.22386 13 1.5 13H7V2ZM0 2.5C0 1.67157 0.671573 1 1.5 1H13.5C14.3284 1 15 1.67157 15 2.5V12.5C15 13.3284 14.3284 14 13.5 14H1.5C0.671573 14 0 13.3284 0 12.5V2.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function uE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=uE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Kn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=uE(e))&&(r&&(r+=" "),r+=t);return r}const PV=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},OV=(e,t)=>({classGroupId:e,validator:t}),dE=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),_f="-",fE=[],TV="arbitrary..",_V=e=>{const t=kV(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return MV(a);const s=a.split(_f),l=s[0]===""&&s.length>1?1:0;return hE(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=r[a],c=n[a];return l?c?PV(c,l):l:c||fE}return n[a]||fE}}},hE=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=hE(e,t+1,i);if(c)return c}const a=n.validators;if(a===null)return;const s=t===0?e.join(_f):e.slice(t).join(_f),l=a.length;for(let c=0;c<l;c++){const u=a[c];if(u.validator(s))return u.classGroupId}},MV=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?TV+r:void 0})(),kV=e=>{const{theme:t,classGroups:n}=e;return AV(n,t)},AV=(e,t)=>{const n=dE();for(const r in e){const o=e[r];sv(o,n,r,t)}return n},sv=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];DV(a,t,n,r)}},DV=(e,t,n,r)=>{if(typeof e=="string"){NV(e,t,n);return}if(typeof e=="function"){$V(e,t,n,r);return}IV(e,t,n,r)},NV=(e,t,n)=>{const r=e===""?t:pE(t,e);r.classGroupId=n},$V=(e,t,n,r)=>{if(LV(e)){sv(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(OV(n,e))},IV=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];sv(l,pE(t,s),n,r)}},pE=(e,t)=>{let n=e;const r=t.split(_f),o=r.length;for(let i=0;i<o;i++){const a=r[i];let s=n.nextPart.get(a);s||(s=dE(),n.nextPart.set(a,s)),n=s}return n},LV=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,FV=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let a=n[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return o(i,a),a},set(i,a){i in n?n[i]=a:o(i,a)}}},lv="!",gE=":",RV=[],mE=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),BV=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let a=0,s=0,l=0,c;const u=o.length;for(let m=0;m<u;m++){const v=o[m];if(a===0&&s===0){if(v===gE){i.push(o.slice(l,m)),l=m+1;continue}if(v==="/"){c=m;continue}}v==="["?a++:v==="]"?a--:v==="("?s++:v===")"&&s--}const d=i.length===0?o:o.slice(l);let f=d,p=!1;d.endsWith(lv)?(f=d.slice(0,-1),p=!0):d.startsWith(lv)&&(f=d.slice(1),p=!0);const h=c&&c>l?c-l:void 0;return mE(i,p,f,h)};if(t){const o=t+gE,i=r;r=a=>a.startsWith(o)?i(a.slice(o.length)):mE(RV,!1,a,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},jV=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const a=n[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},zV=e=>({cache:FV(e.cacheSize),parseClassName:BV(e),sortModifiers:jV(e),..._V(e)}),qV=/\s+/,VV=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(qV);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:m}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let v=!!m,y=r(v?h.substring(0,m):h);if(!y){if(!v){l=u+(l.length>0?" "+l:l);continue}if(y=r(h),!y){l=u+(l.length>0?" "+l:l);continue}v=!1}const w=f.length===0?"":f.length===1?f[0]:i(f).join(":"),x=p?w+lv:w,S=x+y;if(a.indexOf(S)>-1)continue;a.push(S);const C=o(y,v);for(let E=0;E<C.length;++E){const P=C[E];a.push(x+P)}l=u+(l.length>0?" "+l:l)}return l},UV=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=vE(n))&&(o&&(o+=" "),o+=r);return o},vE=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=vE(e[r]))&&(n&&(n+=" "),n+=t);return n},HV=(e,...t)=>{let n,r,o,i;const a=l=>{const c=t.reduce((u,d)=>d(u),e());return n=zV(c),r=n.cache.get,o=n.cache.set,i=s,s(l)},s=l=>{const c=r(l);if(c)return c;const u=VV(l,n);return o(l,u),u};return i=a,(...l)=>i(UV(...l))},WV=[],tn=e=>{const t=n=>n[e]||WV;return t.isThemeGetter=!0,t},yE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,KV=/^\d+\/\d+$/,GV=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,YV=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,XV=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,QV=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZV=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ts=e=>KV.test(e),nt=e=>!!e&&!Number.isNaN(Number(e)),$i=e=>!!e&&Number.isInteger(Number(e)),cv=e=>e.endsWith("%")&&nt(e.slice(0,-1)),Jo=e=>GV.test(e),JV=()=>!0,eU=e=>YV.test(e)&&!XV.test(e),wE=()=>!1,tU=e=>QV.test(e),nU=e=>ZV.test(e),rU=e=>!Re(e)&&!Be(e),oU=e=>_s(e,PE,wE),Re=e=>yE.test(e),ba=e=>_s(e,OE,eU),uv=e=>_s(e,cU,nt),xE=e=>_s(e,CE,wE),iU=e=>_s(e,EE,nU),Mf=e=>_s(e,TE,tU),Be=e=>bE.test(e),_c=e=>Ms(e,OE),aU=e=>Ms(e,uU),SE=e=>Ms(e,CE),sU=e=>Ms(e,PE),lU=e=>Ms(e,EE),kf=e=>Ms(e,TE,!0),_s=(e,t,n)=>{const r=yE.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ms=(e,t,n=!1)=>{const r=bE.exec(e);return r?r[1]?t(r[1]):n:!1},CE=e=>e==="position"||e==="percentage",EE=e=>e==="image"||e==="url",PE=e=>e==="length"||e==="size"||e==="bg-size",OE=e=>e==="length",cU=e=>e==="number",uU=e=>e==="family-name",TE=e=>e==="shadow",dU=HV(()=>{const e=tn("color"),t=tn("font"),n=tn("text"),r=tn("font-weight"),o=tn("tracking"),i=tn("leading"),a=tn("breakpoint"),s=tn("container"),l=tn("spacing"),c=tn("radius"),u=tn("shadow"),d=tn("inset-shadow"),f=tn("text-shadow"),p=tn("drop-shadow"),h=tn("blur"),m=tn("perspective"),v=tn("aspect"),y=tn("ease"),w=tn("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...S(),Be,Re],E=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],_=()=>[Be,Re,l],T=()=>[Ts,"full","auto",..._()],M=()=>[$i,"none","subgrid",Be,Re],A=()=>["auto",{span:["full",$i,Be,Re]},$i,Be,Re],D=()=>[$i,"auto",Be,Re],N=()=>["auto","min","max","fr",Be,Re],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",..._()],V=()=>[Ts,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],j=()=>[e,Be,Re],H=()=>[...S(),SE,xE,{position:[Be,Re]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",sU,oU,{size:[Be,Re]}],W=()=>[cv,_c,ba],Y=()=>["","none","full",c,Be,Re],F=()=>["",nt,_c,ba],ee=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[nt,cv,SE,xE],J=()=>["","none",h,Be,Re],Q=()=>["none",nt,Be,Re],oe=()=>["none",nt,Be,Re],le=()=>[nt,Be,Re],z=()=>[Ts,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Jo],breakpoint:[Jo],color:[JV],container:[Jo],"drop-shadow":[Jo],ease:["in","out","in-out"],font:[rU],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Jo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Jo],shadow:[Jo],spacing:["px",nt],text:[Jo],"text-shadow":[Jo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ts,Re,Be,v]}],container:["container"],columns:[{columns:[nt,Re,Be,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:C()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[$i,"auto",Be,Re]}],basis:[{basis:[Ts,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[nt,Ts,"auto","initial","none",Re]}],grow:[{grow:["",nt,Be,Re]}],shrink:[{shrink:["",nt,Be,Re]}],order:[{order:[$i,"first","last","none",Be,Re]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:A()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:A()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":N()}],"auto-rows":[{"auto-rows":N()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[s,"screen",...V()]}],"min-w":[{"min-w":[s,"screen","none",...V()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",n,_c,ba]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Be,uv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cv,Re]}],"font-family":[{font:[aU,Re,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Be,Re]}],"line-clamp":[{"line-clamp":[nt,"none",Be,uv]}],leading:[{leading:[i,..._()]}],"list-image":[{"list-image":["none",Be,Re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Be,Re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[nt,"from-font","auto",Be,ba]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[nt,"auto",Be,Re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Be,Re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Be,Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:H()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$i,Be,Re],radial:["",Be,Re],conic:[$i,Be,Re]},lU,iU]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[nt,Be,Re]}],"outline-w":[{outline:["",nt,_c,ba]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",u,kf,Mf]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",d,kf,Mf]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[nt,ba]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",f,kf,Mf]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[nt,Be,Re]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[nt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Be,Re]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[nt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:H()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Be,Re]}],filter:[{filter:["","none",Be,Re]}],blur:[{blur:J()}],brightness:[{brightness:[nt,Be,Re]}],contrast:[{contrast:[nt,Be,Re]}],"drop-shadow":[{"drop-shadow":["","none",p,kf,Mf]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",nt,Be,Re]}],"hue-rotate":[{"hue-rotate":[nt,Be,Re]}],invert:[{invert:["",nt,Be,Re]}],saturate:[{saturate:[nt,Be,Re]}],sepia:[{sepia:["",nt,Be,Re]}],"backdrop-filter":[{"backdrop-filter":["","none",Be,Re]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[nt,Be,Re]}],"backdrop-contrast":[{"backdrop-contrast":[nt,Be,Re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",nt,Be,Re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[nt,Be,Re]}],"backdrop-invert":[{"backdrop-invert":["",nt,Be,Re]}],"backdrop-opacity":[{"backdrop-opacity":[nt,Be,Re]}],"backdrop-saturate":[{"backdrop-saturate":[nt,Be,Re]}],"backdrop-sepia":[{"backdrop-sepia":["",nt,Be,Re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Be,Re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[nt,"initial",Be,Re]}],ease:[{ease:["linear","initial",y,Be,Re]}],delay:[{delay:[nt,Be,Re]}],animate:[{animate:["none",w,Be,Re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,Be,Re]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:le()}],"skew-x":[{"skew-x":le()}],"skew-y":[{"skew-y":le()}],transform:[{transform:[Be,Re,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:z()}],"translate-x":[{"translate-x":z()}],"translate-y":[{"translate-y":z()}],"translate-z":[{"translate-z":z()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Be,Re]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Be,Re]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[nt,_c,ba,uv]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function q(...e){return dU(Kn(e))}function fU(e){return e.charAt(0).toUpperCase()+e.slice(1)}function hU(e){const t=Math.floor(e),n=e-t,r=Math.round(n*60);return`${t}:${r<10?"0"+r:r}`}function pU(e){return typeof e=="string"?'<ul><li style="list-style: circle">'+e+"</li></ul>":"<ul>"+e.map(t=>'<li style="list-style: circle">'+t+"</li>").join("")+"</ul>"}function gU(e,t="yyyy-MM-dd"){const n=typeof e=="string"?new Date(e):e,r=n.getFullYear(),o=String(n.getMonth()+1).padStart(2,"0"),i=String(n.getDate()).padStart(2,"0");return t.replace("yyyy",String(r)).replace("MM",o).replace("dd",i)}function mU(e){const t=new FormData;for(const n in e)["file","image","photo","classImage","certificate"].includes(n)?e[n]&&typeof e[n]=="object"&&t.append(n,e[n]):t.append(n,e[n]);return t}function vU(e,t){let n=null;return function(...o){const i=()=>{n=null,e(...o)};n&&clearTimeout(n),n=setTimeout(i,t)}}function yU(e,t){let n;return function(...o){n||(e(...o),n=!0,setTimeout(()=>n=!1,t))}}const bU=oV,_E=g.forwardRef(({className:e,...t},n)=>b.jsx(iV,{ref:n,className:q("border-b",e),...t}));_E.displayName="AccordionItem";const ME=g.forwardRef(({className:e,children:t,...n},r)=>b.jsx(aV,{className:"flex",children:b.jsxs(lE,{ref:r,className:q("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,b.jsx(pV,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));ME.displayName=lE.displayName;const kE=g.forwardRef(({className:e,children:t,...n},r)=>b.jsx(cE,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:b.jsx("div",{className:q("pb-4 pt-0",e),children:t})}));kE.displayName=cE.displayName;const AE=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,DE=Kn,ei=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return DE(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const f=AE(u)||AE(d);return o[c][f]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(h=>{let[m,v]=h;return Array.isArray(v)?v.includes({...i,...s}[m]):{...i,...s}[m]===v})?[...c,d,f]:c},[]);return DE(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)};var Af=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},wU={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},xU=(sq=class{constructor(){Le(this,Wo,wU);Le(this,vs,!1)}setTimeoutProvider(e){process.env.NODE_ENV!=="production"&&K(this,vs)&&e!==K(this,Wo)&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:K(this,Wo),provider:e}),Pe(this,Wo,e),process.env.NODE_ENV!=="production"&&Pe(this,vs,!1)}setTimeout(e,t){return process.env.NODE_ENV!=="production"&&Pe(this,vs,!0),K(this,Wo).setTimeout(e,t)}clearTimeout(e){K(this,Wo).clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!=="production"&&Pe(this,vs,!0),K(this,Wo).setInterval(e,t)}clearInterval(e){K(this,Wo).clearInterval(e)}},Wo=new WeakMap,vs=new WeakMap,sq),dv=new xU;function SU(e){setTimeout(e,0)}var Df=typeof window>"u"||"Deno"in globalThis;function Gr(){}function CU(e,t){return typeof e=="function"?e(t):e}function EU(e){return typeof e=="number"&&e>=0&&e!==1/0}function PU(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fv(e,t){return typeof e=="function"?e(t):e}function OU(e,t){return typeof e=="function"?e(t):e}function NE(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==hv(a,t.options))return!1}else if(!kc(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function $E(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Mc(t.options.mutationKey)!==Mc(i))return!1}else if(!kc(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function hv(e,t){return((t==null?void 0:t.queryKeyHashFn)||Mc)(e)}function Mc(e){return JSON.stringify(e,(t,n)=>gv(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function kc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>kc(e[n],t[n])):!1}var TU=Object.prototype.hasOwnProperty;function pv(e,t){if(e===t)return e;const n=IE(e)&&IE(t);if(!n&&!(gv(e)&&gv(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),a=i.length,s=n?new Array(a):{};let l=0;for(let c=0;c<a;c++){const u=n?c:i[c],d=e[u],f=t[u];if(d===f){s[u]=d,(n?c<o:TU.call(e,u))&&l++;continue}if(d===null||f===null||typeof d!="object"||typeof f!="object"){s[u]=f;continue}const p=pv(d,f);s[u]=p,p===d&&l++}return o===a&&l===o?e:s}function IE(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gv(e){if(!LE(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!LE(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function LE(e){return Object.prototype.toString.call(e)==="[object Object]"}function _U(e){return new Promise(t=>{dv.setTimeout(t,e)})}function MU(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return pv(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return pv(e,t)}return t}function kU(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function AU(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Nf=Symbol();function FE(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===Nf&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Nf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var DU=(lq=class extends Af{constructor(){super();Le(this,ys);Le(this,fa);Le(this,tc);Pe(this,tc,t=>{if(!Df&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){K(this,fa)||this.setEventListener(K(this,tc))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,fa))==null||t.call(this),Pe(this,fa,void 0))}setEventListener(t){var n;Pe(this,tc,t),(n=K(this,fa))==null||n.call(this),Pe(this,fa,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){K(this,ys)!==t&&(Pe(this,ys,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof K(this,ys)=="boolean"?K(this,ys):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ys=new WeakMap,fa=new WeakMap,tc=new WeakMap,lq),RE=new DU;function NU(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var $U=SU;function IU(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=$U;const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var Ln=IU(),LU=(cq=class extends Af{constructor(){super();Le(this,nc,!0);Le(this,ha);Le(this,rc);Pe(this,rc,t=>{if(!Df&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){K(this,ha)||this.setEventListener(K(this,rc))}onUnsubscribe(){var t;this.hasListeners()||((t=K(this,ha))==null||t.call(this),Pe(this,ha,void 0))}setEventListener(t){var n;Pe(this,rc,t),(n=K(this,ha))==null||n.call(this),Pe(this,ha,t(this.setOnline.bind(this)))}setOnline(t){K(this,nc)!==t&&(Pe(this,nc,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return K(this,nc)}},nc=new WeakMap,ha=new WeakMap,rc=new WeakMap,cq),ks=new LU;function FU(e){return Math.min(1e3*2**e,3e4)}function BE(e){return(e??"online")==="online"?ks.isOnline():!0}var mv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function jE(e){let t=!1,n=0,r;const o=NU(),i=()=>o.status!=="pending",a=m=>{var v;if(!i()){const y=new mv(m);f(y),(v=e.onCancel)==null||v.call(e,y)}},s=()=>{t=!0},l=()=>{t=!1},c=()=>RE.isFocused()&&(e.networkMode==="always"||ks.isOnline())&&e.canRun(),u=()=>BE(e.networkMode)&&e.canRun(),d=m=>{i()||(r==null||r(),o.resolve(m))},f=m=>{i()||(r==null||r(),o.reject(m))},p=()=>new Promise(m=>{var v;r=y=>{(i()||c())&&m(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;r=void 0,i()||(m=e.onContinue)==null||m.call(e)}),h=()=>{if(i())return;let m;const v=n===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(d).catch(y=>{var E;if(i())return;const w=e.retry??(Df?0:3),x=e.retryDelay??FU,S=typeof x=="function"?x(n,y):x,C=w===!0||typeof w=="number"&&n<w||typeof w=="function"&&w(n,y);if(t||!C){f(y);return}n++,(E=e.onFail)==null||E.call(e,n,y),_U(S).then(()=>c()?void 0:p()).then(()=>{t?f(y):h()})})};return{promise:o,status:()=>o.status,cancel:a,continue:()=>(r==null||r(),o),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?h():p().then(h),o)}}var zE=(uq=class{constructor(){Le(this,bs)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),EU(this.gcTime)&&Pe(this,bs,dv.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Df?1/0:300*1e3))}clearGcTimeout(){K(this,bs)&&(dv.clearTimeout(K(this,bs)),Pe(this,bs,void 0))}},bs=new WeakMap,uq),RU=(dq=class extends zE{constructor(t){super();Le(this,vo);Le(this,ws);Le(this,oc);Le(this,Ur);Le(this,xs);Le(this,mn);Le(this,af);Le(this,Ss);Pe(this,Ss,!1),Pe(this,af,t.defaultOptions),this.setOptions(t.options),this.observers=[],Pe(this,xs,t.client),Pe(this,Ur,K(this,xs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Pe(this,ws,VE(this.options)),this.state=t.state??K(this,ws),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=K(this,mn))==null?void 0:t.promise}setOptions(t){if(this.options={...K(this,af),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=VE(this.options);n.data!==void 0&&(this.setState(qE(n.data,n.dataUpdatedAt)),Pe(this,ws,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&K(this,Ur).remove(this)}setData(t,n){const r=MU(this.state.data,t,this.options);return In(this,vo,Ni).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){In(this,vo,Ni).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=K(this,mn))==null?void 0:r.promise;return(o=K(this,mn))==null||o.cancel(t),n?n.then(Gr).catch(Gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(K(this,ws))}isActive(){return this.observers.some(t=>OU(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Nf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>fv(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!PU(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=K(this,mn))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=K(this,mn))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),K(this,Ur).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(K(this,mn)&&(K(this,Ss)?K(this,mn).cancel({revert:!0}):K(this,mn).cancelRetry()),this.scheduleGc()),K(this,Ur).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||In(this,vo,Ni).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,f,p,h,m,v,y,w,x;if(this.state.fetchStatus!=="idle"&&((l=K(this,mn))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(K(this,mn))return K(this,mn).continueRetry(),K(this,mn).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(C=>C.options.queryFn);S&&this.setOptions(S.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Pe(this,Ss,!0),r.signal)})},i=()=>{const S=FE(this.options,n),E=(()=>{const P={client:K(this,xs),queryKey:this.queryKey,meta:this.meta};return o(P),P})();return Pe(this,Ss,!1),this.options.persister?this.options.persister(S,E,this):S(E)},s=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:K(this,xs),state:this.state,fetchFn:i};return o(S),S})();(c=this.options.behavior)==null||c.onFetch(s,this),Pe(this,oc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&In(this,vo,Ni).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta}),Pe(this,mn,jE({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,onCancel:S=>{S instanceof mv&&S.revert&&this.setState({...K(this,oc),fetchStatus:"idle"}),r.abort()},onFail:(S,C)=>{In(this,vo,Ni).call(this,{type:"failed",failureCount:S,error:C})},onPause:()=>{In(this,vo,Ni).call(this,{type:"pause"})},onContinue:()=>{In(this,vo,Ni).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const S=await K(this,mn).start();if(S===void 0)throw process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(S),(p=(f=K(this,Ur).config).onSuccess)==null||p.call(f,S,this),(m=(h=K(this,Ur).config).onSettled)==null||m.call(h,S,this.state.error,this),S}catch(S){if(S instanceof mv){if(S.silent)return K(this,mn).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw In(this,vo,Ni).call(this,{type:"error",error:S}),(y=(v=K(this,Ur).config).onError)==null||y.call(v,S,this),(x=(w=K(this,Ur).config).onSettled)==null||x.call(w,this.state.data,S,this),S}finally{this.scheduleGc()}}},ws=new WeakMap,oc=new WeakMap,Ur=new WeakMap,xs=new WeakMap,mn=new WeakMap,af=new WeakMap,Ss=new WeakMap,vo=new WeakSet,Ni=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...BU(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...qE(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Pe(this,oc,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ln.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),K(this,Ur).notify({query:this,type:"updated",action:t})})},dq);function BU(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:BE(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qE(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function VE(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function UE(e){return{onFetch:(t,n)=>{var u,d,f,p,h;const r=t.options,o=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],a=((h=t.state.data)==null?void 0:h.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const v=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},y=FE(t.options,t.fetchOptions),w=async(x,S,C)=>{if(m)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const P=(()=>{const A={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return v(A),A})(),_=await y(P),{maxPages:T}=t.options,M=C?AU:kU;return{pages:M(x.pages,_,T),pageParams:M(x.pageParams,S,T)}};if(o&&i.length){const x=o==="backward",S=x?jU:HE,C={pages:i,pageParams:a},E=S(r,C);s=await w(C,E,x)}else{const x=e??i.length;do{const S=l===0?a[0]??r.initialPageParam:HE(r,s);if(l>0&&S==null)break;s=await w(s,S),l++}while(l<x)}return s};t.options.persister?t.fetchFn=()=>{var m,v;return(v=(m=t.options).persister)==null?void 0:v.call(m,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function HE(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function jU(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var zU=(fq=class extends zE{constructor(t){super();Le(this,Go);Le(this,sf);Le(this,Ko);Le(this,Hn);Le(this,Cs);Pe(this,sf,t.client),this.mutationId=t.mutationId,Pe(this,Hn,t.mutationCache),Pe(this,Ko,[]),this.state=t.state||qU(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){K(this,Ko).includes(t)||(K(this,Ko).push(t),this.clearGcTimeout(),K(this,Hn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Pe(this,Ko,K(this,Ko).filter(n=>n!==t)),this.scheduleGc(),K(this,Hn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){K(this,Ko).length||(this.state.status==="pending"?this.scheduleGc():K(this,Hn).remove(this))}continue(){var t;return((t=K(this,Cs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,s,l,c,u,d,f,p,h,m,v,y,w,x,S,C,E,P,_,T;const n=()=>{In(this,Go,ya).call(this,{type:"continue"})},r={client:K(this,sf),meta:this.options.meta,mutationKey:this.options.mutationKey};Pe(this,Cs,jE({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(M,A)=>{In(this,Go,ya).call(this,{type:"failed",failureCount:M,error:A})},onPause:()=>{In(this,Go,ya).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>K(this,Hn).canRun(this)}));const o=this.state.status==="pending",i=!K(this,Cs).canStart();try{if(o)n();else{In(this,Go,ya).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(a=K(this,Hn).config).onMutate)==null?void 0:s.call(a,t,this,r));const A=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t,r));A!==this.state.context&&In(this,Go,ya).call(this,{type:"pending",context:A,variables:t,isPaused:i})}const M=await K(this,Cs).start();return await((d=(u=K(this,Hn).config).onSuccess)==null?void 0:d.call(u,M,t,this.state.context,this,r)),await((p=(f=this.options).onSuccess)==null?void 0:p.call(f,M,t,this.state.context,r)),await((m=(h=K(this,Hn).config).onSettled)==null?void 0:m.call(h,M,null,this.state.variables,this.state.context,this,r)),await((y=(v=this.options).onSettled)==null?void 0:y.call(v,M,null,t,this.state.context,r)),In(this,Go,ya).call(this,{type:"success",data:M}),M}catch(M){try{throw await((x=(w=K(this,Hn).config).onError)==null?void 0:x.call(w,M,t,this.state.context,this,r)),await((C=(S=this.options).onError)==null?void 0:C.call(S,M,t,this.state.context,r)),await((P=(E=K(this,Hn).config).onSettled)==null?void 0:P.call(E,void 0,M,this.state.variables,this.state.context,this,r)),await((T=(_=this.options).onSettled)==null?void 0:T.call(_,void 0,M,t,this.state.context,r)),M}finally{In(this,Go,ya).call(this,{type:"error",error:M})}}finally{K(this,Hn).runNext(this)}}},sf=new WeakMap,Ko=new WeakMap,Hn=new WeakMap,Cs=new WeakMap,Go=new WeakSet,ya=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ln.batch(()=>{K(this,Ko).forEach(r=>{r.onMutationUpdate(t)}),K(this,Hn).notify({mutation:this,type:"updated",action:t})})},fq);function qU(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var VU=(hq=class extends Af{constructor(t={}){super();Le(this,Di);Le(this,yo);Le(this,lf);this.config=t,Pe(this,Di,new Set),Pe(this,yo,new Map),Pe(this,lf,0)}build(t,n,r){const o=new zU({client:t,mutationCache:this,mutationId:++Qm(this,lf)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){K(this,Di).add(t);const n=$f(t);if(typeof n=="string"){const r=K(this,yo).get(n);r?r.push(t):K(this,yo).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(K(this,Di).delete(t)){const n=$f(t);if(typeof n=="string"){const r=K(this,yo).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&K(this,yo).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=$f(t);if(typeof n=="string"){const r=K(this,yo).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=$f(t);if(typeof n=="string"){const o=(r=K(this,yo).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ln.batch(()=>{K(this,Di).forEach(t=>{this.notify({type:"removed",mutation:t})}),K(this,Di).clear(),K(this,yo).clear()})}getAll(){return Array.from(K(this,Di))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$E(n,r))}findAll(t={}){return this.getAll().filter(n=>$E(t,n))}notify(t){Ln.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ln.batch(()=>Promise.all(t.map(n=>n.continue().catch(Gr))))}},Di=new WeakMap,yo=new WeakMap,lf=new WeakMap,hq);function $f(e){var t;return(t=e.options.scope)==null?void 0:t.id}var UU=(pq=class extends Af{constructor(t={}){super();Le(this,Yo);this.config=t,Pe(this,Yo,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??hv(o,n);let a=this.get(i);return a||(a=new RU({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){K(this,Yo).has(t.queryHash)||(K(this,Yo).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=K(this,Yo).get(t.queryHash);n&&(t.destroy(),n===t&&K(this,Yo).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ln.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return K(this,Yo).get(t)}getAll(){return[...K(this,Yo).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>NE(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>NE(t,r)):n}notify(t){Ln.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ln.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ln.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yo=new WeakMap,pq),HU=(gq=class{constructor(e={}){Le(this,Ut);Le(this,pa);Le(this,ga);Le(this,ic);Le(this,ac);Le(this,ma);Le(this,sc);Le(this,lc);Pe(this,Ut,e.queryCache||new UU),Pe(this,pa,e.mutationCache||new VU),Pe(this,ga,e.defaultOptions||{}),Pe(this,ic,new Map),Pe(this,ac,new Map),Pe(this,ma,0)}mount(){Qm(this,ma)._++,K(this,ma)===1&&(Pe(this,sc,RE.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,Ut).onFocus())})),Pe(this,lc,ks.subscribe(async e=>{e&&(await this.resumePausedMutations(),K(this,Ut).onOnline())})))}unmount(){var e,t;Qm(this,ma)._--,K(this,ma)===0&&((e=K(this,sc))==null||e.call(this),Pe(this,sc,void 0),(t=K(this,lc))==null||t.call(this),Pe(this,lc,void 0))}isFetching(e){return K(this,Ut).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return K(this,pa).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=K(this,Ut).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=K(this,Ut).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(fv(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return K(this,Ut).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=K(this,Ut).get(r.queryHash),i=o==null?void 0:o.state.data,a=CU(t,i);if(a!==void 0)return K(this,Ut).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ln.batch(()=>K(this,Ut).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=K(this,Ut).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=K(this,Ut);Ln.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=K(this,Ut);return Ln.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ln.batch(()=>K(this,Ut).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Gr).catch(Gr)}invalidateQueries(e,t={}){return Ln.batch(()=>(K(this,Ut).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ln.batch(()=>K(this,Ut).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Gr)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=K(this,Ut).build(this,t);return n.isStaleByTime(fv(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Gr).catch(Gr)}fetchInfiniteQuery(e){return e.behavior=UE(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Gr).catch(Gr)}ensureInfiniteQueryData(e){return e.behavior=UE(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ks.isOnline()?K(this,pa).resumePausedMutations():Promise.resolve()}getQueryCache(){return K(this,Ut)}getMutationCache(){return K(this,pa)}getDefaultOptions(){return K(this,ga)}setDefaultOptions(e){Pe(this,ga,e)}setQueryDefaults(e,t){K(this,ic).set(Mc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...K(this,ic).values()],n={};return t.forEach(r=>{kc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){K(this,ac).set(Mc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...K(this,ac).values()],n={};return t.forEach(r=>{kc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...K(this,ga).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=hv(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Nf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...K(this,ga).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){K(this,Ut).clear(),K(this,pa).clear()}},Ut=new WeakMap,pa=new WeakMap,ga=new WeakMap,ic=new WeakMap,ac=new WeakMap,ma=new WeakMap,sc=new WeakMap,lc=new WeakMap,gq),WE=g.createContext(void 0),KE=e=>{const t=g.useContext(WE);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},WU=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(WE.Provider,{value:e,children:t})),Ze={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return GE(this.context.count)},getNextContextId(){return GE(this.context.count++)}};function GE(e){const t=String(e),n=t.length-1;return Ze.context.id+(n?String.fromCharCode(96+n):"")+t}function Ac(e){Ze.context=e}var YE=!1,KU=(e,t)=>e===t,If=Symbol("solid-proxy"),XE=typeof Proxy=="function",Lf=Symbol("solid-track"),Ff={equals:KU},QE=i2,ti=1,Rf=2,ZE={owned:null,cleanups:null,context:null,owner:null},vv={},at=null,yv=null,GU=null,wt=null,On=null,ni=null,Bf=0;function ri(e,t){const n=wt,r=at,o=e.length===0,i=t===void 0?r:t,a=o?ZE:{owned:null,cleanups:null,context:i?i.context:null,owner:i},s=o?e:()=>e(()=>Rt(()=>Dc(a)));at=a,wt=null;try{return bo(s,!0)}finally{wt=n,at=r}}function Se(e,t){t=t?Object.assign({},Ff,t):Ff;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),o2(n,o));return[r2.bind(n),r]}function JE(e,t,n){const r=jf(e,t,!0,ti);As(r)}function He(e,t,n){const r=jf(e,t,!1,ti);As(r)}function We(e,t,n){QE=oH;const r=jf(e,t,!1,ti);(!n||!n.render)&&(r.user=!0),ni?ni.push(r):As(r)}function me(e,t,n){n=n?Object.assign({},Ff,n):Ff;const r=jf(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,As(r),r2.bind(r)}function YU(e){return e&&typeof e=="object"&&"then"in e}function XU(e,t,n){let r,o,i;r=!0,o=e,i={};let a=null,s=vv,l=null,c=!1,u="initialValue"in i,d=typeof r=="function"&&me(r);const f=new Set,[p,h]=(i.storage||Se)(i.initialValue),[m,v]=Se(void 0),[y,w]=Se(void 0,{equals:!1}),[x,S]=Se(u?"ready":"unresolved");Ze.context&&(l=Ze.getNextContextId(),i.ssrLoadFrom==="initial"?s=i.initialValue:Ze.load&&Ze.has(l)&&(s=Ze.load(l)));function C(M,A,D,N){return a===M&&(a=null,N!==void 0&&(u=!0),(M===s||A===s)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(N,{value:A})),s=vv,E(A,D)),A}function E(M,A){bo(()=>{A===void 0&&h(()=>M),S(A!==void 0?"errored":u?"ready":"unresolved"),v(A);for(const D of f.keys())D.decrement();f.clear()},!1)}function P(){const M=tH,A=p(),D=m();if(D!==void 0&&!a)throw D;return wt&&wt.user,A}function _(M=!0){if(M!==!1&&c)return;c=!1;const A=d?d():r;if(A==null||A===!1){C(a,Rt(p));return}let D;const N=s!==vv?s:Rt(()=>{try{return o(A,{value:p(),refetching:M})}catch(R){D=R}});if(D!==void 0){C(a,void 0,Vf(D),A);return}else if(!YU(N))return C(a,N,void 0,A),N;return a=N,"v"in N?(N.s===1?C(a,N.v,void 0,A):C(a,void 0,Vf(N.v),A),N):(c=!0,queueMicrotask(()=>c=!1),bo(()=>{S(u?"refreshing":"pending"),w()},!1),N.then(R=>C(N,R,void 0,A),R=>C(N,void 0,Vf(R),A)))}Object.defineProperties(P,{state:{get:()=>x()},error:{get:()=>m()},loading:{get(){const M=x();return M==="pending"||M==="refreshing"}},latest:{get(){if(!u)return P();const M=m();if(M&&!a)throw M;return p()}}});let T=at;return d?JE(()=>(T=at,_(!1))):_(!1),[P,{refetch:M=>t2(T,()=>_(M)),mutate:h}]}function QU(e){return bo(e,!1)}function Rt(e){if(wt===null)return e();const t=wt;wt=null;try{return e()}finally{wt=t}}function oi(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return a=>{let s;if(r){s=Array(e.length);for(let c=0;c<e.length;c++)s[c]=e[c]()}else s=e();if(i)return i=!1,a;const l=Rt(()=>t(s,o,a));return o=s,l}}function ii(e){We(()=>Rt(e))}function Ye(e){return at===null||(at.cleanups===null?at.cleanups=[e]:at.cleanups.push(e)),e}function e2(){return at}function t2(e,t){const n=at,r=wt;at=e,wt=null;try{return bo(t,!0)}catch(o){bv(o)}finally{at=n,wt=r}}function ZU(e){const t=wt,n=at;return Promise.resolve().then(()=>{wt=t,at=n;let r;return bo(e,!1),wt=at=null,r?r.done:void 0})}var[JU,fTe]=Se(!1);function eH(){return[JU,ZU]}function yn(e,t){const n=Symbol("context");return{id:n,Provider:iH(n),defaultValue:e}}function bn(e){let t;return at&&at.context&&(t=at.context[e.id])!==void 0?t:e.defaultValue}function n2(e){const t=me(e),n=me(()=>wv(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}var tH;function r2(){if(this.sources&&this.state)if(this.state===ti)As(this);else{const e=On;On=null,bo(()=>qf(this),!1),On=e}if(wt){const e=this.observers?this.observers.length:0;wt.sources?(wt.sources.push(this),wt.sourceSlots.push(e)):(wt.sources=[this],wt.sourceSlots=[e]),this.observers?(this.observers.push(wt),this.observerSlots.push(wt.sources.length-1)):(this.observers=[wt],this.observerSlots=[wt.sources.length-1])}return this.value}function o2(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&bo(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],a=yv&&yv.running;a&&yv.disposed.has(i),(a?!i.tState:!i.state)&&(i.pure?On.push(i):ni.push(i),i.observers&&a2(i)),a||(i.state=ti)}if(On.length>1e6)throw On=[],new Error},!1)),t}function As(e){if(!e.fn)return;Dc(e);const t=Bf;nH(e,e.value,t)}function nH(e,t,n){let r;const o=at,i=wt;wt=at=e;try{r=e.fn(t)}catch(a){return e.pure&&(e.state=ti,e.owned&&e.owned.forEach(Dc),e.owned=null),e.updatedAt=n+1,bv(a)}finally{wt=i,at=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?o2(e,r):e.value=r,e.updatedAt=n)}function jf(e,t,n,r=ti,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:at,context:at?at.context:null,pure:n};return at===null||at!==ZE&&(at.owned?at.owned.push(i):at.owned=[i]),i}function zf(e){if(e.state===0)return;if(e.state===Rf)return qf(e);if(e.suspense&&Rt(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Bf);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===ti)As(e);else if(e.state===Rf){const r=On;On=null,bo(()=>qf(e,t[0]),!1),On=r}}function bo(e,t){if(On)return e();let n=!1;t||(On=[]),ni?n=!0:ni=[],Bf++;try{const r=e();return rH(n),r}catch(r){n||(ni=null),On=null,bv(r)}}function rH(e){if(On&&(i2(On),On=null),e)return;const t=ni;ni=null,t.length&&bo(()=>QE(t),!1)}function i2(e){for(let t=0;t<e.length;t++)zf(e[t])}function oH(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:zf(r)}if(Ze.context){if(Ze.count){Ze.effects||(Ze.effects=[]),Ze.effects.push(...e.slice(0,n));return}Ac()}for(Ze.effects&&(Ze.done||!Ze.count)&&(e=[...Ze.effects,...e],n+=Ze.effects.length,delete Ze.effects),t=0;t<n;t++)zf(e[t])}function qf(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const o=r.state;o===ti?r!==t&&(!r.updatedAt||r.updatedAt<Bf)&&zf(r):o===Rf&&qf(r,t)}}}function a2(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Rf,n.pure?On.push(n):ni.push(n),n.observers&&a2(n))}}function Dc(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){const i=o.pop(),a=n.observerSlots.pop();r<o.length&&(i.sourceSlots[a]=r,o[r]=i,n.observerSlots[r]=a)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Dc(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Dc(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Vf(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function bv(e,t=at){throw Vf(e)}function wv(e){if(typeof e=="function"&&!e.length)return wv(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=wv(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function iH(e,t){return function(r){let o;return He(()=>o=Rt(()=>(at.context={...at.context,[e]:r.value},n2(()=>r.children))),void 0),o}}var xv=Symbol("fallback");function Uf(e){for(let t=0;t<e.length;t++)e[t]()}function aH(e,t,n={}){let r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return Ye(()=>Uf(i)),()=>{let l=e()||[],c=l.length,u,d;return l[Lf],Rt(()=>{let p,h,m,v,y,w,x,S,C;if(c===0)a!==0&&(Uf(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[xv],o[0]=ri(E=>(i[0]=E,n.fallback())),a=1);else if(a===0){for(o=new Array(c),d=0;d<c;d++)r[d]=l[d],o[d]=ri(f);a=c}else{for(m=new Array(c),v=new Array(c),s&&(y=new Array(c)),w=0,x=Math.min(a,c);w<x&&r[w]===l[w];w++);for(x=a-1,S=c-1;x>=w&&S>=w&&r[x]===l[S];x--,S--)m[S]=o[x],v[S]=i[x],s&&(y[S]=s[x]);for(p=new Map,h=new Array(S+1),d=S;d>=w;d--)C=l[d],u=p.get(C),h[d]=u===void 0?-1:u,p.set(C,d);for(u=w;u<=x;u++)C=r[u],d=p.get(C),d!==void 0&&d!==-1?(m[d]=o[u],v[d]=i[u],s&&(y[d]=s[u]),d=h[d],p.set(C,d)):i[u]();for(d=w;d<c;d++)d in m?(o[d]=m[d],i[d]=v[d],s&&(s[d]=y[d],s[d](d))):o[d]=ri(f);o=o.slice(0,a=c),r=l.slice(0)}return o});function f(p){if(i[d]=p,s){const[h,m]=Se(d);return s[d]=m,t(l[d],h)}return t(l[d])}}}function sH(e,t,n={}){let r=[],o=[],i=[],a=[],s=0,l;return Ye(()=>Uf(i)),()=>{const c=e()||[],u=c.length;return c[Lf],Rt(()=>{if(u===0)return s!==0&&(Uf(i),i=[],r=[],o=[],s=0,a=[]),n.fallback&&(r=[xv],o[0]=ri(f=>(i[0]=f,n.fallback())),s=1),o;for(r[0]===xv&&(i[0](),i=[],r=[],o=[],s=0),l=0;l<u;l++)l<r.length&&r[l]!==c[l]?a[l](()=>c[l]):l>=r.length&&(o[l]=ri(d));for(;l<r.length;l++)i[l]();return s=a.length=i.length=u,r=c.slice(0),o=o.slice(0,s)});function d(f){i[l]=f;const[p,h]=Se(c[l]);return a[l]=h,t(p,l)}}}function I(e,t){return Rt(()=>e(t||{}))}function Hf(){return!0}var Sv={get(e,t,n){return t===If?n:e.get(t)},has(e,t){return t===If?!0:e.has(t)},set:Hf,deleteProperty:Hf,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Hf,deleteProperty:Hf}},ownKeys(e){return e.keys()}};function Cv(e){return(e=typeof e=="function"?e():e)?e:{}}function lH(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function Je(...e){let t=!1;for(let a=0;a<e.length;a++){const s=e[a];t=t||!!s&&If in s,e[a]=typeof s=="function"?(t=!0,me(s)):s}if(XE&&t)return new Proxy({get(a){for(let s=e.length-1;s>=0;s--){const l=Cv(e[s])[a];if(l!==void 0)return l}},has(a){for(let s=e.length-1;s>=0;s--)if(a in Cv(e[s]))return!0;return!1},keys(){const a=[];for(let s=0;s<e.length;s++)a.push(...Object.keys(Cv(e[s])));return[...new Set(a)]}},Sv);const n={},r=Object.create(null);for(let a=e.length-1;a>=0;a--){const s=e[a];if(!s)continue;const l=Object.getOwnPropertyNames(s);for(let c=l.length-1;c>=0;c--){const u=l[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(s,u);if(!r[u])r[u]=d.get?{enumerable:!0,configurable:!0,get:lH.bind(n[u]=[d.get.bind(s)])}:d.value!==void 0?d:void 0;else{const f=n[u];f&&(d.get?f.push(d.get.bind(s)):d.value!==void 0&&f.push(()=>d.value))}}}const o={},i=Object.keys(r);for(let a=i.length-1;a>=0;a--){const s=i[a],l=r[s];l&&l.get?Object.defineProperty(o,s,l):o[s]=l?l.value:void 0}return o}function pt(e,...t){if(XE&&If in e){const o=new Set(t.length>1?t.flat():t[0]),i=t.map(a=>new Proxy({get(s){return a.includes(s)?e[s]:void 0},has(s){return a.includes(s)&&s in e},keys(){return a.filter(s=>s in e)}},Sv));return i.push(new Proxy({get(a){return o.has(a)?void 0:e[a]},has(a){return o.has(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!o.has(a))}},Sv)),i}const n={},r=t.map(()=>({}));for(const o of Object.getOwnPropertyNames(e)){const i=Object.getOwnPropertyDescriptor(e,o),a=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let s=!1,l=0;for(const c of t)c.includes(o)&&(s=!0,a?r[l][o]=i.value:Object.defineProperty(r[l],o,i)),++l;s||(a?n[o]=i.value:Object.defineProperty(n,o,i))}return[...r,n]}function s2(e){let t,n;const r=o=>{const i=Ze.context;if(i){const[s,l]=Se();Ze.count||(Ze.count=0),Ze.count++,(n||(n=e())).then(c=>{!Ze.done&&Ac(i),Ze.count--,l(()=>c.default),Ac()}),t=s}else if(!t){const[s]=XU(()=>(n||(n=e())).then(l=>l.default));t=s}let a;return me(()=>(a=t())?Rt(()=>{if(!i||Ze.done)return a(o);const s=Ze.context;Ac(i);const l=a(o);return Ac(s),l}):"")};return r.preload=()=>n||((n=e()).then(o=>t=()=>o.default),n),r}var cH=0;function rr(){return Ze.context?Ze.getNextContextId():`cl-${cH++}`}var l2=e=>`Stale read from <${e}>.`;function uH(e){const t="fallback"in e&&{fallback:()=>e.fallback};return me(aH(()=>e.each,e.children,t||void 0))}function dH(e){const t="fallback"in e&&{fallback:()=>e.fallback};return me(sH(()=>e.each,e.children,t||void 0))}function qe(e){const t=e.keyed,n=me(()=>e.when,void 0,void 0),r=t?n:me(n,void 0,{equals:(o,i)=>!o==!i});return me(()=>{const o=r();if(o){const i=e.children;return typeof i=="function"&&i.length>0?Rt(()=>i(t?o:()=>{if(!Rt(r))throw l2("Show");return n()})):i}return e.fallback},void 0,void 0)}function fH(e){const t=n2(()=>e.children),n=me(()=>{const r=t(),o=Array.isArray(r)?r:[r];let i=()=>{};for(let a=0;a<o.length;a++){const s=a,l=o[a],c=i,u=me(()=>c()?void 0:l.when,void 0,void 0),d=l.keyed?u:me(u,void 0,{equals:(f,p)=>!f==!p});i=()=>c()||(d()?[s,u,l]:void 0)}return i});return me(()=>{const r=n()();if(!r)return e.fallback;const[o,i,a]=r,s=a.children;return typeof s=="function"&&s.length>0?Rt(()=>s(a.keyed?i():()=>{var c;if(((c=Rt(n)())==null?void 0:c[0])!==o)throw l2("Match");return i()})):s},void 0,void 0)}function Ev(e){return e}var hH=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],pH=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline",...hH]),gH=new Set(["innerHTML","textContent","innerText","children"]),mH=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),vH=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function yH(e,t){const n=vH[e];return typeof n=="object"?n[t]?n.$:void 0:n}var bH=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),wH=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),xH={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Wt=e=>me(()=>e());function SH(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;){if(t[a]===n[s]){a++,s++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const u=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],u)}else if(i===s)for(;a<o;)(!c||!c.has(t[a]))&&t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],u),t[o]=n[i]}else{if(!c){c=new Map;let d=s;for(;d<i;)c.set(n[d],d++)}const u=c.get(t[a]);if(u!=null)if(s<u&&u<i){let d=a,f=1,p;for(;++d<o&&d<i&&!((p=c.get(t[d]))==null||p!==u+f);)f++;if(f>u-s){const h=t[a];for(;s<u;)e.insertBefore(n[s++],h)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}}var Nc="_$DX_DELEGATE";function c2(e,t,n,r={}){let o;return ri(i=>{o=i,t===document?e():de(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function Ae(e,t,n,r){let o;const i=()=>{const s=document.createElement("template");return s.innerHTML=e,s.content.firstChild},a=()=>(o||(o=i())).cloneNode(!0);return a.cloneNode=a,a}function Wf(e,t=window.document){const n=t[Nc]||(t[Nc]=new Set);for(let r=0,o=e.length;r<o;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,p2))}}function CH(e=window.document){if(e[Nc]){for(let t of e[Nc].keys())e.removeEventListener(t,p2);delete e[Nc]}}function ve(e,t,n){wa(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function EH(e,t,n,r){wa(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function PH(e,t,n){wa(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function xe(e,t){wa(e)||(t==null?e.removeAttribute("class"):e.className=t)}function u2(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function OH(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const s=o[i];!s||s==="undefined"||t[s]||(f2(e,s,!1),delete n[s])}for(i=0,a=r.length;i<a;i++){const s=r[i],l=!!t[s];!s||s==="undefined"||n[s]===l||!l||(f2(e,s,!0),n[s]=l)}return n}function TH(e,t,n){if(!t)return n?ve(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function d2(e,t={},n,r){const o={};return r||He(()=>o.children=$c(e,t.children,o.children)),He(()=>typeof t.ref=="function"&&Ds(t.ref,e)),He(()=>_H(e,t,n,!0,o,!0)),o}function Ds(e,t,n){return Rt(()=>e(t,n))}function de(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return $c(e,t,r,n);He(o=>$c(e,t(),o,n),r)}function _H(e,t,n,r,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if(a==="children")continue;o[a]=h2(e,a,null,o[a],n,i,t)}for(const a in t){if(a==="children")continue;const s=t[a];o[a]=h2(e,a,s,o[a],n,i,t)}}function MH(e){let t,n;return!wa()||!(t=Ze.registry.get(n=AH()))?e():(Ze.completed&&Ze.completed.add(t),Ze.registry.delete(n),t)}function wa(e){return!!Ze.context&&!Ze.done&&(!e||e.isConnected)}function kH(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function f2(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function h2(e,t,n,r,o,i,a){let s,l,c,u,d;if(t==="style")return TH(e,n,r);if(t==="classList")return OH(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const f=t.slice(3);r&&e.removeEventListener(f,r,typeof r!="function"&&r),n&&e.addEventListener(f,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const f=t.slice(10);r&&e.removeEventListener(f,r,!0),n&&e.addEventListener(f,n,!0)}else if(t.slice(0,2)==="on"){const f=t.slice(2).toLowerCase(),p=bH.has(f);if(!p&&r){const h=Array.isArray(r)?r[0]:r;e.removeEventListener(f,h)}(p||n)&&(u2(e,f,n,p),p&&Wf([f]))}else if(t.slice(0,5)==="attr:")ve(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")PH(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(c=gH.has(t))||!o&&((u=yH(t,e.tagName))||(l=pH.has(t)))||(s=e.nodeName.includes("-")||"is"in a)){if(d)t=t.slice(5),l=!0;else if(wa(e))return n;t==="class"||t==="className"?xe(e,n):s&&!l&&!c?e[kH(t)]=n:e[u||t]=n}else{const f=o&&t.indexOf(":")>-1&&xH[t.split(":")[0]];f?EH(e,f,t,n):ve(e,mH[t]||t,n)}return n}function p2(e){if(Ze.registry&&Ze.events&&Ze.events.find(([l,c])=>c===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),a=()=>{const l=t[n];if(l&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},s=()=>{for(;a()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),Ze.registry&&!Ze.done&&(Ze.done=_$HY.done=!0),e.composedPath){const l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!a());c++){if(t._$host){t=t._$host,s();break}if(t.parentNode===o)break}}else s();i(r)}function $c(e,t,n,r,o){const i=wa(e);if(i){!n&&(n=[...e.childNodes]);let l=[];for(let c=0;c<n.length;c++){const u=n[c];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():l.push(u)}n=l}for(;typeof n=="function";)n=n();if(t===n)return n;const a=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,a==="string"||a==="number"){if(i||a==="number"&&(t=t.toString(),t===n))return n;if(s){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=Ns(e,n,r,l)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||a==="boolean"){if(i)return n;n=Ns(e,n,r)}else{if(a==="function")return He(()=>{let l=t();for(;typeof l=="function";)l=l();n=$c(e,l,n,r)}),()=>n;if(Array.isArray(t)){const l=[],c=n&&Array.isArray(n);if(Pv(l,t,n,o))return He(()=>n=$c(e,l,n,r,!0)),()=>n;if(i){if(!l.length)return n;if(r===void 0)return n=[...e.childNodes];let u=l[0];if(u.parentNode!==e)return n;const d=[u];for(;(u=u.nextSibling)!==r;)d.push(u);return n=d}if(l.length===0){if(n=Ns(e,n,r),s)return n}else c?n.length===0?g2(e,l,r):SH(e,n,l):(n&&Ns(e),g2(e,l));n=l}else if(t.nodeType){if(i&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=Ns(e,n,r,t);Ns(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function Pv(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let s=t[i],l=n&&n[e.length],c;if(!(s==null||s===!0||s===!1))if((c=typeof s)=="object"&&s.nodeType)e.push(s);else if(Array.isArray(s))o=Pv(e,s,l)||o;else if(c==="function")if(r){for(;typeof s=="function";)s=s();o=Pv(e,Array.isArray(s)?s:[s],Array.isArray(l)?l:[l])||o}else e.push(s),o=!0;else{const u=String(s);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return o}function g2(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Ns(e,t,n,r){if(n===void 0)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let i=!1;for(let a=t.length-1;a>=0;a--){const s=t[a];if(o!==s){const l=s.parentNode===e;!i&&!a?l?e.replaceChild(o,s):e.insertBefore(o,n):l&&s.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}function AH(){return Ze.getNextContextId()}var DH="http://www.w3.org/2000/svg";function m2(e,t=!1){return t?document.createElementNS(DH,e):document.createElement(e)}function v2(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=e2();let i,a=!!Ze.context;return We(()=>{a&&(e2().user=a=!1),i||(i=t2(o,()=>me(()=>e.children)));const s=r();if(s instanceof HTMLHeadElement){const[l,c]=Se(!1),u=()=>c(!0);ri(d=>de(s,()=>l()?d():i(),null)),Ye(u)}else{const l=m2(e.isSVG?"g":"div",e.isSVG),c=t&&l.attachShadow?l.attachShadow({mode:"open"}):l;Object.defineProperty(l,"_$host",{get(){return n.parentNode},configurable:!0}),de(c,i),s.appendChild(l),e.ref&&e.ref(l),Ye(()=>s.removeChild(l))}},void 0,{render:!a}),n}function NH(e,t){const n=me(e);return me(()=>{const r=n();switch(typeof r){case"function":return Rt(()=>r(t));case"string":const o=wH.has(r),i=Ze.context?MH():m2(r,o);return d2(i,t,o),i}})}function $H(e){const[,t]=pt(e,["component"]);return NH(()=>e.component,t)}var IH=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},y2=class{constructor(e){this.generateIdentifier=e,this.kv=new IH}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},LH=class extends y2{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function FH(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function RH(e,t){const n=FH(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const i=r[o];if(t(i))return i}}function $s(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Kf(e,t){return e.indexOf(t)!==-1}function b2(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var BH=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return RH(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},jH=e=>Object.prototype.toString.call(e).slice(8,-1),w2=e=>typeof e>"u",zH=e=>e===null,Ic=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,Ov=e=>Ic(e)&&Object.keys(e).length===0,Ii=e=>Array.isArray(e),qH=e=>typeof e=="string",VH=e=>typeof e=="number"&&!isNaN(e),UH=e=>typeof e=="boolean",HH=e=>e instanceof RegExp,Lc=e=>e instanceof Map,Fc=e=>e instanceof Set,x2=e=>jH(e)==="Symbol",WH=e=>e instanceof Date&&!isNaN(e.valueOf()),KH=e=>e instanceof Error,S2=e=>typeof e=="number"&&isNaN(e),GH=e=>UH(e)||zH(e)||w2(e)||VH(e)||qH(e)||x2(e),YH=e=>typeof e=="bigint",XH=e=>e===1/0||e===-1/0,QH=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),ZH=e=>e instanceof URL,C2=e=>e.replace(/\./g,"\\."),Tv=e=>e.map(String).map(C2).join("."),Rc=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const r=n;return t.push(r),t};function wo(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var E2=[wo(w2,"undefined",()=>null,()=>{}),wo(YH,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),wo(WH,"Date",e=>e.toISOString(),e=>new Date(e)),wo(KH,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),wo(HH,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),wo(Fc,"set",e=>[...e.values()],e=>new Set(e)),wo(Lc,"map",e=>[...e.entries()],e=>new Map(e)),wo(e=>S2(e)||XH(e),"number",e=>S2(e)?"NaN":e>0?"Infinity":"-Infinity",Number),wo(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),wo(ZH,"URL",e=>e.toString(),e=>new URL(e))];function Gf(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var P2=Gf((e,t)=>x2(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),JH=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),O2=Gf(QH,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=JH[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function T2(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var _2=Gf(T2,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),M2=Gf((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),eW=[_2,P2,M2,O2],k2=(e,t)=>{const n=b2(eW,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=b2(E2,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},A2={};E2.forEach(e=>{A2[e.annotation]=e});var tW=(e,t,n)=>{if(Ii(t))switch(t[0]){case"symbol":return P2.untransform(e,t,n);case"class":return _2.untransform(e,t,n);case"custom":return M2.untransform(e,t,n);case"typed-array":return O2.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=A2[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},Is=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function D2(e){if(Kf(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Kf(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Kf(e,"constructor"))throw new Error("constructor is not allowed as a property")}var nW=(e,t)=>{D2(t);for(let n=0;n<t.length;n++){const r=t[n];if(Fc(e))e=Is(e,+r);else if(Lc(e)){const o=+r,i=+t[++n]==0?"key":"value",a=Is(e,o);switch(i){case"key":e=a;break;case"value":e=e.get(a);break}}else e=e[r]}return e},_v=(e,t,n)=>{if(D2(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){const a=t[i];if(Ii(r)){const s=+a;r=r[s]}else if(Ic(r))r=r[a];else if(Fc(r)){const s=+a;r=Is(r,s)}else if(Lc(r)){if(i===t.length-2)break;const l=+a,c=+t[++i]==0?"key":"value",u=Is(r,l);switch(c){case"key":r=u;break;case"value":r=r.get(u);break}}}const o=t[t.length-1];if(Ii(r)?r[+o]=n(r[+o]):Ic(r)&&(r[o]=n(r[o])),Fc(r)){const i=Is(r,+o),a=n(i);i!==a&&(r.delete(i),r.add(a))}if(Lc(r)){const i=+t[t.length-2],a=Is(r,i);switch(+o==0?"key":"value"){case"key":{const l=n(a);r.set(l,r.get(a)),l!==a&&r.delete(a);break}case"value":{r.set(a,n(r.get(a)));break}}}return e};function Mv(e,t,n=[]){if(!e)return;if(!Ii(e)){$s(e,(i,a)=>Mv(i,t,[...n,...Rc(a)]));return}const[r,o]=e;o&&$s(o,(i,a)=>{Mv(i,t,[...n,...Rc(a)])}),t(r,n)}function rW(e,t,n){return Mv(t,(r,o)=>{e=_v(e,o,i=>tW(i,r,n))}),e}function oW(e,t){function n(r,o){const i=nW(e,Rc(o));r.map(Rc).forEach(a=>{e=_v(e,a,()=>i)})}if(Ii(t)){const[r,o]=t;r.forEach(i=>{e=_v(e,Rc(i),()=>e)}),o&&$s(o,n)}else $s(t,n);return e}var iW=(e,t)=>Ic(e)||Ii(e)||Lc(e)||Fc(e)||T2(e,t);function aW(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function sW(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(s=>s.map(String)).sort((s,l)=>s.length-l.length));const[i,...a]=o;i.length===0?r=a.map(Tv):n[Tv(i)]=a.map(Tv)}),r?Ov(n)?[r]:[r,n]:Ov(n)?void 0:n}var N2=(e,t,n,r,o=[],i=[],a=new Map)=>{const s=GH(e);if(!s){aW(e,o,t);const p=a.get(e);if(p)return r?{transformedValue:null}:p}if(!iW(e,n)){const p=k2(e,n),h=p?{transformedValue:p.value,annotations:[p.type]}:{transformedValue:e};return s||a.set(e,h),h}if(Kf(i,e))return{transformedValue:null};const l=k2(e,n),c=(l==null?void 0:l.value)??e,u=Ii(c)?[]:{},d={};$s(c,(p,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")throw new Error(`Detected property ${h}. This is a prototype pollution risk, please remove it from your object.`);const m=N2(p,t,n,r,[...o,h],[...i,e],a);u[h]=m.transformedValue,Ii(m.annotations)?d[h]=m.annotations:Ic(m.annotations)&&$s(m.annotations,(v,y)=>{d[C2(h)+"."+y]=v})});const f=Ov(d)?{transformedValue:u,annotations:l?[l.type]:void 0}:{transformedValue:u,annotations:l?[l.type,d]:d};return s||a.set(e,f),f};function $2(e){return Object.prototype.toString.call(e).slice(8,-1)}function I2(e){return $2(e)==="Array"}function lW(e){if($2(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function cW(e,t,n,r,o){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),o&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function kv(e,t={}){if(I2(e))return e.map(o=>kv(o,t));if(!lW(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,i)=>{if(I2(t.props)&&!t.props.includes(i))return o;const a=e[i],s=kv(a,t);return cW(o,i,s,e,t.nonenumerable),o},{})}var xt=class{constructor({dedupe:e=!1}={}){this.classRegistry=new LH,this.symbolRegistry=new y2(t=>t.description??""),this.customTransformerRegistry=new BH,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=N2(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=sW(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=kv(t);return n!=null&&n.values&&(r=rW(r,n.values,this)),n!=null&&n.referentialEqualities&&(r=oW(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};xt.defaultInstance=new xt,xt.serialize=xt.defaultInstance.serialize.bind(xt.defaultInstance),xt.deserialize=xt.defaultInstance.deserialize.bind(xt.defaultInstance),xt.stringify=xt.defaultInstance.stringify.bind(xt.defaultInstance),xt.parse=xt.defaultInstance.parse.bind(xt.defaultInstance),xt.registerClass=xt.defaultInstance.registerClass.bind(xt.defaultInstance),xt.registerSymbol=xt.defaultInstance.registerSymbol.bind(xt.defaultInstance),xt.registerCustom=xt.defaultInstance.registerCustom.bind(xt.defaultInstance),xt.allowErrorProps=xt.defaultInstance.allowErrorProps.bind(xt.defaultInstance);var L2=xt.serialize,uW=xt.stringify;function Ls(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function dW(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function fW({queryState:e,observerCount:t,isStale:n}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":n?"yellow":"green":"gray"}function Fs({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function hW(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Yf=(e,t=!1)=>{const{json:n}=L2(e);return JSON.stringify(n,null,t?2:void 0)},Xf=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,pW=(e,t)=>e.queryHash.localeCompare(t.queryHash),F2=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,gW=(e,t)=>Xf(e)===Xf(t)?F2(e,t):Xf(e)>Xf(t)?1:-1,Av={status:gW,"query hash":pW,"last updated":F2},Qf=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,R2=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,mW=(e,t)=>Qf(e)===Qf(t)?R2(e,t):Qf(e)>Qf(t)?1:-1,Dv={status:mW,"last updated":R2},B2=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),j2=()=>{const[e,t]=Se("dark");return ii(()=>{const n=window.matchMedia("(prefers-color-scheme: dark)");t(n.matches?"dark":"light");const r=o=>{t(o.matches?"dark":"light")};n.addEventListener("change",r),Ye(()=>n.removeEventListener("change",r))}),e},xa=(e,t,n)=>{if(t.length===0)return n;if(e instanceof Map){const r=new Map(e);if(t.length===1)return r.set(t[0],n),r;const[o,...i]=t;return r.set(o,xa(r.get(o),i,n)),r}if(e instanceof Set){const r=xa(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){const r=[...e];if(t.length===1)return r[t[0]]=n,r;const[o,...i]=t;return r[o]=xa(r[o],i,n),r}if(e instanceof Object){const r={...e};if(t.length===1)return r[t[0]]=n,r;const[o,...i]=t;return r[o]=xa(r[o],i,n),r}return e},Bc=(e,t)=>{if(e instanceof Map){const n=new Map(e);if(t.length===1)return n.delete(t[0]),n;const[r,...o]=t;return n.set(r,Bc(n.get(r),o)),n}if(e instanceof Set){const n=Bc(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){const n=[...e];if(t.length===1)return n.filter((i,a)=>a.toString()!==t[0]);const[r,...o]=t;return n[r]=Bc(n[r],o),n}if(e instanceof Object){const n={...e};if(t.length===1)return delete n[t[0]],n;const[r,...o]=t;return n[r]=Bc(n[r],o),n}return e},z2=(e,t)=>{if(!e||document.querySelector("#_goober")||(t==null?void 0:t.querySelector("#_goober")))return;const r=document.createElement("style"),o=document.createTextNode("");r.appendChild(o),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r)},vW=(mq=class{constructor(e){Le(this,cc);Le(this,cf);Le(this,uf);Le(this,df);Le(this,Es,!1);Le(this,ff);Le(this,uc);Le(this,dc);Le(this,fc);Le(this,hc);Le(this,pc);Le(this,hf);Le(this,gc);Le(this,mc);Le(this,pf);const{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:a,initialIsOpen:s,errorTypes:l,styleNonce:c,shadowDOMTarget:u,hideDisabledQueries:d,theme:f}=e;Pe(this,cc,Se(t)),Pe(this,uf,n),Pe(this,df,r),Pe(this,cf,o),Pe(this,ff,c),Pe(this,uc,u),Pe(this,dc,Se(i)),Pe(this,fc,Se(a)),Pe(this,hc,Se(s)),Pe(this,pc,Se(l)),Pe(this,hf,Se(d)),Pe(this,mc,Se(f))}setButtonPosition(e){K(this,dc)[1](e)}setPosition(e){K(this,fc)[1](e)}setInitialIsOpen(e){K(this,hc)[1](e)}setErrorTypes(e){K(this,pc)[1](e)}setClient(e){K(this,cc)[1](e)}setTheme(e){K(this,mc)[1](e)}mount(e){if(K(this,Es))throw new Error("Devtools is already mounted");const t=c2(()=>{const n=this,[r]=K(this,dc),[o]=K(this,fc),[i]=K(this,hc),[a]=K(this,pc),[s]=K(this,hf),[l]=K(this,cc),[c]=K(this,mc);let u;return K(this,gc)?u=K(this,gc):(u=s2(()=>Promise.resolve().then(()=>oTe)),Pe(this,gc,u)),z2(K(this,ff),K(this,uc)),I(u,Je({get queryFlavor(){return K(n,uf)},get version(){return K(n,df)},get onlineManager(){return K(n,cf)},get shadowDOMTarget(){return K(n,uc)}},{get client(){return l()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return a()},get hideDisabledQueries(){return s()},get theme(){return c()}}))},e);Pe(this,Es,!0),Pe(this,pf,t)}unmount(){var e;if(!K(this,Es))throw new Error("Devtools is not mounted");(e=K(this,pf))==null||e.call(this),Pe(this,Es,!1)}},cc=new WeakMap,cf=new WeakMap,uf=new WeakMap,df=new WeakMap,Es=new WeakMap,ff=new WeakMap,uc=new WeakMap,dc=new WeakMap,fc=new WeakMap,hc=new WeakMap,pc=new WeakMap,hf=new WeakMap,gc=new WeakMap,mc=new WeakMap,pf=new WeakMap,mq),yW=(vq=class{constructor(e){Le(this,vc);Le(this,gf);Le(this,mf);Le(this,vf);Le(this,Ps,!1);Le(this,yf);Le(this,yc);Le(this,bc);Le(this,wc);Le(this,xc);Le(this,Sc);Le(this,bf);Le(this,Cc);Le(this,Ec);Le(this,Pc);Le(this,wf);const{client:t,queryFlavor:n,version:r,onlineManager:o,buttonPosition:i,position:a,initialIsOpen:s,errorTypes:l,styleNonce:c,shadowDOMTarget:u,onClose:d,hideDisabledQueries:f,theme:p}=e;Pe(this,vc,Se(t)),Pe(this,mf,n),Pe(this,vf,r),Pe(this,gf,o),Pe(this,yf,c),Pe(this,yc,u),Pe(this,bc,Se(i)),Pe(this,wc,Se(a)),Pe(this,xc,Se(s)),Pe(this,Sc,Se(l)),Pe(this,bf,Se(f)),Pe(this,Cc,Se(d)),Pe(this,Pc,Se(p))}setButtonPosition(e){K(this,bc)[1](e)}setPosition(e){K(this,wc)[1](e)}setInitialIsOpen(e){K(this,xc)[1](e)}setErrorTypes(e){K(this,Sc)[1](e)}setClient(e){K(this,vc)[1](e)}setOnClose(e){K(this,Cc)[1](()=>e)}setTheme(e){K(this,Pc)[1](e)}mount(e){if(K(this,Ps))throw new Error("Devtools is already mounted");const t=c2(()=>{const n=this,[r]=K(this,bc),[o]=K(this,wc),[i]=K(this,xc),[a]=K(this,Sc),[s]=K(this,bf),[l]=K(this,vc),[c]=K(this,Cc),[u]=K(this,Pc);let d;return K(this,Ec)?d=K(this,Ec):(d=s2(()=>Promise.resolve().then(()=>sTe)),Pe(this,Ec,d)),z2(K(this,yf),K(this,yc)),I(d,Je({get queryFlavor(){return K(n,mf)},get version(){return K(n,vf)},get onlineManager(){return K(n,gf)},get shadowDOMTarget(){return K(n,yc)}},{get client(){return l()},get buttonPosition(){return r()},get position(){return o()},get initialIsOpen(){return i()},get errorTypes(){return a()},get hideDisabledQueries(){return s()},get onClose(){return c()},get theme(){return u()}}))},e);Pe(this,Ps,!0),Pe(this,wf,t)}unmount(){var e;if(!K(this,Ps))throw new Error("Devtools is not mounted");(e=K(this,wf))==null||e.call(this),Pe(this,Ps,!1)}},vc=new WeakMap,gf=new WeakMap,mf=new WeakMap,vf=new WeakMap,Ps=new WeakMap,yf=new WeakMap,yc=new WeakMap,bc=new WeakMap,wc=new WeakMap,xc=new WeakMap,Sc=new WeakMap,bf=new WeakMap,Cc=new WeakMap,Ec=new WeakMap,Pc=new WeakMap,wf=new WeakMap,vq);function bW(e){const t=KE(e.client),n=g.useRef(null),{buttonPosition:r,position:o,initialIsOpen:i,errorTypes:a,styleNonce:s,shadowDOMTarget:l,hideDisabledQueries:c,theme:u}=e,[d]=g.useState(new vW({client:t,queryFlavor:"React Query",version:"5",onlineManager:ks,buttonPosition:r,position:o,initialIsOpen:i,errorTypes:a,styleNonce:s,shadowDOMTarget:l,hideDisabledQueries:c,theme:u}));return g.useEffect(()=>{d.setClient(t)},[t,d]),g.useEffect(()=>{r&&d.setButtonPosition(r)},[r,d]),g.useEffect(()=>{o&&d.setPosition(o)},[o,d]),g.useEffect(()=>{d.setInitialIsOpen(i||!1)},[i,d]),g.useEffect(()=>{d.setErrorTypes(a||[])},[a,d]),g.useEffect(()=>{d.setTheme(u)},[u,d]),g.useEffect(()=>(n.current&&d.mount(n.current),()=>{d.unmount()}),[d]),b.jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})}function wW(e){const t=KE(e.client),n=g.useRef(null),{errorTypes:r,styleNonce:o,shadowDOMTarget:i,hideDisabledQueries:a,theme:s}=e,[l]=g.useState(new yW({client:t,queryFlavor:"React Query",version:"5",onlineManager:ks,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:r,styleNonce:o,shadowDOMTarget:i,onClose:e.onClose,hideDisabledQueries:a,theme:s}));return g.useEffect(()=>{l.setClient(t)},[t,l]),g.useEffect(()=>{l.setOnClose(e.onClose??(()=>{}))},[e.onClose,l]),g.useEffect(()=>{l.setErrorTypes(r||[])},[r,l]),g.useEffect(()=>{l.setTheme(s)},[s,l]),g.useEffect(()=>(n.current&&l.mount(n.current),()=>{l.unmount()}),[l]),b.jsx("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:n})}var xW=process.env.NODE_ENV!=="development"?function(){return null}:bW;process.env.NODE_ENV;const SW=O.createContext(null),Nv={didCatch:!1,error:null};class CW extends O.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Nv}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:i,reason:"imperative-api"}),this.setState(Nv)}}componentDidCatch(t,n){var r,o;(r=(o=this.props).onError)===null||r===void 0||r.call(o,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;if(r&&n.error!==null&&EW(t.resetKeys,o)){var i,a;(i=(a=this.props).onReset)===null||i===void 0||i.call(a,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(Nv)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=t;if(i){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")s=n(l);else if(r)s=O.createElement(r,l);else if(o!==void 0)s=o;else throw a}return O.createElement(SW.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function EW(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}function Rs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q2=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(q2||{}),$v={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}};Object.values(q2);var Iv={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"};Object.entries(Iv).reduce((e,[t,n])=>(e[n]=t,e),{});var jc="data-rh",PW=e=>Array.isArray(e)?e.join(""):e,OW=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Lv=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(OW(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},TW=["noscript","script","style"],Fv=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),V2=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),_W=(e,t,n,r)=>{const o=V2(n),i=PW(t);return o?`<${e} ${jc}="true" ${o}>${Fv(i,r)}</${e}>`:`<${e} ${jc}="true">${Fv(i,r)}</${e}>`},MW=(e,t,n=!0)=>t.reduce((r,o)=>{const i=o,a=Object.keys(i).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const d=typeof i[u]>"u"?u:`${u}="${Fv(i[u],n)}"`;return c?`${c} ${d}`:d},""),s=i.innerHTML||i.cssText||"",l=TW.indexOf(e)===-1;return`${r}<${e} ${jc}="true" ${a}${l?"/>":`>${s}</${e}>`}`},""),U2=(e,t={})=>Object.keys(e).reduce((n,r)=>{const o=Iv[r];return n[o||r]=e[r],n},t),kW=(e,t,n)=>{const r={key:t,[jc]:!0},o=U2(n,r);return[O.createElement("title",o,t)]},Zf=(e,t)=>t.map((n,r)=>{const o={key:r,[jc]:!0};return Object.keys(n).forEach(i=>{const s=Iv[i]||i;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[s]=n[i]}),O.createElement(e,o)}),Sr=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>kW(e,t.title,t.titleAttributes),toString:()=>_W(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>U2(t),toString:()=>V2(t)};default:return{toComponent:()=>Zf(e,t),toString:()=>MW(e,t,n)}}},AW=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=Lv(e,$v.meta),i=Lv(t,$v.link),a=Lv(n,$v.script);return{priorityMethods:{toComponent:()=>[...Zf("meta",o.priority),...Zf("link",i.priority),...Zf("script",a.priority)],toString:()=>`${Sr("meta",o.priority,r)} ${Sr("link",i.priority,r)} ${Sr("script",a.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:a.default}},DW=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=AW(e)),{priority:p,base:Sr("base",t,r),bodyAttributes:Sr("bodyAttributes",n,r),htmlAttributes:Sr("htmlAttributes",o,r),link:Sr("link",u,r),meta:Sr("meta",d,r),noscript:Sr("noscript",i,r),script:Sr("script",f,r),style:Sr("style",a,r),title:Sr("title",{title:s,titleAttributes:l},r)}},NW=DW,Jf=[],H2=!!(typeof window<"u"&&window.document&&window.document.createElement),$W=class{constructor(e,t){cn(this,"instances",[]);cn(this,"canUseDOM",H2);cn(this,"context");cn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Jf:this.instances,add:e=>{(this.canUseDOM?Jf:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Jf:this.instances).indexOf(e);(this.canUseDOM?Jf:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=NW({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},IW={},LW=O.createContext(IW),FW=(Os=class extends O.Component{constructor(n){super(n);cn(this,"helmetData");this.helmetData=new $W(this.props.context||{},Os.canUseDOM)}render(){return O.createElement(LW.Provider,{value:this.helmetData.value},this.props.children)}},cn(Os,"canUseDOM",H2),Os);/**
2
+ * react-router v7.11.0
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */var W2="popstate";function RW(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return Rv("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:zc(o)}return jW(t,n,null,e)}function Kt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Cr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BW(){return Math.random().toString(36).substring(2,10)}function K2(e,t){return{usr:e.state,key:e.key,idx:t}}function Rv(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?qc(t):t,state:n,key:t&&t.key||r||BW()}}function zc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function qc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function jW(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,c=u();c==null&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:m.location,delta:y})}function f(v,y){s="PUSH";let w=Rv(m.location,v,y);c=u()+1;let x=K2(w,c),S=m.createHref(w);try{a.pushState(x,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}i&&l&&l({action:s,location:m.location,delta:1})}function p(v,y){s="REPLACE";let w=Rv(m.location,v,y);c=u();let x=K2(w,c),S=m.createHref(w);a.replaceState(x,"",S),i&&l&&l({action:s,location:m.location,delta:0})}function h(v){return zW(v)}let m={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(W2,d),l=v,()=>{o.removeEventListener(W2,d),l=null}},createHref(v){return t(o,v)},createURL:h,encodeLocation(v){let y=h(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:p,go(v){return a.go(v)}};return m}function zW(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Kt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:zc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function G2(e,t,n="/"){return qW(e,t,n,!1)}function qW(e,t,n,r){let o=typeof t=="string"?qc(t):t,i=ai(o.pathname||"/",n);if(i==null)return null;let a=Y2(e);VW(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=eK(i);s=ZW(a[l],c,r)}return s}function Y2(e,t=[],n=[],r="",o=!1){let i=(a,s,l=o,c)=>{let u={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;Kt(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let d=si([r,u.relativePath]),f=n.concat(u);a.children&&a.children.length>0&&(Kt(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Y2(a.children,t,f,d,l)),!(a.path==null&&!a.index)&&t.push({path:d,score:XW(d,a.index),routesMeta:f})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,s);else for(let c of X2(a.path))i(a,s,!0,c)}),t}function X2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=X2(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function VW(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:QW(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var UW=/^:[\w-]+$/,HW=3,WW=2,KW=1,GW=10,YW=-2,Q2=e=>e==="*";function XW(e,t){let n=e.split("/"),r=n.length;return n.some(Q2)&&(r+=YW),t&&(r+=WW),n.filter(o=>!Q2(o)).reduce((o,i)=>o+(UW.test(i)?HW:i===""?KW:GW),r)}function QW(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function ZW(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",d=eh({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=eh({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:si([i,d.pathname]),pathnameBase:oK(si([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=si([i,d.pathnameBase]))}return a}function eh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=JW(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((c,{paramName:u,isOptional:d},f)=>{if(u==="*"){let h=s[f]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const p=s[f];return d&&!p?c[u]=void 0:c[u]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function JW(e,t=!1,n=!0){Cr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function eK(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ai(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Z2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tK=e=>Z2.test(e);function nK(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?qc(e):e,i;if(n)if(tK(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),Cr(!1,`Pathnames cannot have embedded double slashes - normalizing ${a} -> ${n}`)}n.startsWith("/")?i=J2(n.substring(1),"/"):i=J2(n,t)}else i=t;return{pathname:i,search:iK(r),hash:aK(o)}}function J2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Bv(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rK(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function jv(e){let t=rK(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function zv(e,t,n,r=!1){let o;typeof e=="string"?o=qc(e):(o={...e},Kt(!o.pathname||!o.pathname.includes("?"),Bv("?","pathname","search",o)),Kt(!o.pathname||!o.pathname.includes("#"),Bv("#","pathname","hash",o)),Kt(!o.search||!o.search.includes("#"),Bv("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let l=nK(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var si=e=>e.join("/").replace(/\/\/+/g,"/"),oK=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iK=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aK=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,sK=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function lK(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function cK(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var eP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tP(e,t){let n=e;if(typeof n!="string"||!Z2.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(eP)try{let i=new URL(window.location.href),a=n.startsWith("//")?new URL(i.protocol+n):new URL(n),s=ai(a.pathname,t);a.origin===i.origin&&s!=null?n=s+a.search+a.hash:o=!0}catch{Cr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var nP=["POST","PUT","PATCH","DELETE"];new Set(nP);var uK=["GET",...nP];new Set(uK);var Bs=g.createContext(null);Bs.displayName="DataRouter";var th=g.createContext(null);th.displayName="DataRouterState";var dK=g.createContext(!1),rP=g.createContext({isTransitioning:!1});rP.displayName="ViewTransition";var fK=g.createContext(new Map);fK.displayName="Fetchers";var hK=g.createContext(null);hK.displayName="Await";var or=g.createContext(null);or.displayName="Navigation";var nh=g.createContext(null);nh.displayName="Location";var Yr=g.createContext({outlet:null,matches:[],isDataRoute:!1});Yr.displayName="Route";var qv=g.createContext(null);qv.displayName="RouteError";var oP="REACT_ROUTER_ERROR",pK="REDIRECT",gK="ROUTE_ERROR_RESPONSE";function mK(e){if(e.startsWith(`${oP}:${pK}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function vK(e){if(e.startsWith(`${oP}:${gK}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new sK(t.status,t.statusText,t.data)}catch{}}function yK(e,{relative:t}={}){Kt(js(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(or),{hash:o,pathname:i,search:a}=Vc(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:si([n,i])),r.createHref({pathname:s,search:a,hash:o})}function js(){return g.useContext(nh)!=null}function xo(){return Kt(js(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(nh).location}var iP="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function aP(e){g.useContext(or).static||g.useLayoutEffect(e)}function Vv(){let{isDataRoute:e}=g.useContext(Yr);return e?NK():bK()}function bK(){Kt(js(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(Bs),{basename:t,navigator:n}=g.useContext(or),{matches:r}=g.useContext(Yr),{pathname:o}=xo(),i=JSON.stringify(jv(r)),a=g.useRef(!1);return aP(()=>{a.current=!0}),g.useCallback((l,c={})=>{if(Cr(a.current,iP),!a.current)return;if(typeof l=="number"){n.go(l);return}let u=zv(l,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:si([t,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[t,n,i,o,e])}var wK=g.createContext(null);function xK(e){let t=g.useContext(Yr).outlet;return g.useMemo(()=>t&&g.createElement(wK.Provider,{value:e},t),[t,e])}function Vc(e,{relative:t}={}){let{matches:n}=g.useContext(Yr),{pathname:r}=xo(),o=JSON.stringify(jv(n));return g.useMemo(()=>zv(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function SK(e,t,n,r,o){Kt(js(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=g.useContext(or),{matches:a}=g.useContext(Yr),s=a[a.length-1],l=s?s.params:{},c=s?s.pathname:"/",u=s?s.pathnameBase:"/",d=s&&s.route;{let w=d&&d.path||"";cP(c,!d||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
11
+
12
+ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let f=xo(),p;p=f;let h=p.pathname||"/",m=h;if(u!=="/"){let w=u.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=G2(e,{pathname:m});return Cr(d||v!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Cr(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),TK(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:si([u,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:si([u,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o)}function CK(){let e=DK(),t=lK(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:i},"ErrorBoundary")," or"," ",g.createElement("code",{style:i},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:o},n):null,a)}var EK=g.createElement(CK,null),sP=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=vK(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(Yr.Provider,{value:this.props.routeContext},g.createElement(qv.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(PK,{error:e},t):t}};sP.contextType=dK;var Uv=new WeakMap;function PK({children:e,error:t}){let{basename:n}=g.useContext(or);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=mK(t.digest);if(r){let o=Uv.get(t);if(o)throw o;let i=tP(r.location,n);if(eP&&!Uv.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Uv.set(t,a),a}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function OK({routeContext:e,match:t,children:n}){let r=g.useContext(Bs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(Yr.Provider,{value:e},n)}function TK(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let u=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);Kt(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let s=!1,l=-1;if(n)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=u),d.route.id){let{loaderData:f,errors:p}=n,h=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!p||p[d.route.id]===void 0);if(d.route.lazy||h){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}let c=n&&r?(u,d)=>{var f,p;r(u,{location:n.location,params:((p=(f=n.matches)==null?void 0:f[0])==null?void 0:p.params)??{},unstable_pattern:cK(n.matches),errorInfo:d})}:void 0;return i.reduceRight((u,d,f)=>{let p,h=!1,m=null,v=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||EK,s&&(l<0&&f===0?(cP("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,v=null):l===f&&(h=!0,v=d.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,f+1)),w=()=>{let x;return p?x=m:h?x=v:d.route.Component?x=g.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=u,g.createElement(OK,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?g.createElement(sP,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):w()},null)}function Hv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _K(e){let t=g.useContext(Bs);return Kt(t,Hv(e)),t}function MK(e){let t=g.useContext(th);return Kt(t,Hv(e)),t}function kK(e){let t=g.useContext(Yr);return Kt(t,Hv(e)),t}function Wv(e){let t=kK(e),n=t.matches[t.matches.length-1];return Kt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function AK(){return Wv("useRouteId")}function DK(){var r;let e=g.useContext(qv),t=MK("useRouteError"),n=Wv("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function NK(){let{router:e}=_K("useNavigate"),t=Wv("useNavigate"),n=g.useRef(!1);return aP(()=>{n.current=!0}),g.useCallback(async(o,i={})=>{Cr(n.current,iP),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var lP={};function cP(e,t,n){!t&&!lP[e]&&(lP[e]=!0,Cr(!1,n))}g.memo($K);function $K({routes:e,future:t,state:n,onError:r}){return SK(e,void 0,n,r,t)}function IK({to:e,replace:t,state:n,relative:r}){Kt(js(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=g.useContext(or);Cr(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=g.useContext(Yr),{pathname:a}=xo(),s=Vv(),l=zv(e,jv(i),a,r==="path"),c=JSON.stringify(l);return g.useEffect(()=>{s(JSON.parse(c),{replace:t,state:n,relative:r})},[s,c,r,t,n]),null}function LK(e){return xK(e.context)}function FK({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:a}){Kt(!js(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=g.useMemo(()=>({basename:s,navigator:o,static:i,unstable_useTransitions:a,future:{}}),[s,o,i,a]);typeof n=="string"&&(n=qc(n));let{pathname:c="/",search:u="",hash:d="",state:f=null,key:p="default"}=n,h=g.useMemo(()=>{let m=ai(c,s);return m==null?null:{location:{pathname:m,search:u,hash:d,state:f,key:p},navigationType:r}},[s,c,u,d,f,p,r]);return Cr(h!=null,`<Router basename="${s}"> is not able to match the URL "${c}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:g.createElement(or.Provider,{value:l},g.createElement(nh.Provider,{children:t,value:h}))}var rh="get",oh="application/x-www-form-urlencoded";function ih(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function RK(e){return ih(e)&&e.tagName.toLowerCase()==="button"}function BK(e){return ih(e)&&e.tagName.toLowerCase()==="form"}function jK(e){return ih(e)&&e.tagName.toLowerCase()==="input"}function zK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qK(e,t){return e.button===0&&(!t||t==="_self")&&!zK(e)}var ah=null;function VK(){if(ah===null)try{new FormData(document.createElement("form"),0),ah=!1}catch{ah=!0}return ah}var UK=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Kv(e){return e!=null&&!UK.has(e)?(Cr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${oh}"`),null):e}function HK(e,t){let n,r,o,i,a;if(BK(e)){let s=e.getAttribute("action");r=s?ai(s,t):null,n=e.getAttribute("method")||rh,o=Kv(e.getAttribute("enctype"))||oh,i=new FormData(e)}else if(RK(e)||jK(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?ai(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||rh,o=Kv(e.getAttribute("formenctype"))||Kv(s.getAttribute("enctype"))||oh,i=new FormData(s,e),!VK()){let{name:c,type:u,value:d}=e;if(u==="image"){let f=c?`${c}.`:"";i.append(`${f}x`,"0"),i.append(`${f}y`,"0")}else c&&i.append(c,d)}}else{if(ih(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=rh,r=null,o=oh,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Gv(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function WK(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&ai(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function KK(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function GK(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function YK(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await KK(i,n);return a.links?a.links():[]}return[]}));return JK(r.flat(1).filter(GK).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function uP(e,t,n,r,o,i){let a=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,s=(l,c)=>{var u;return n[c].pathname!==l.pathname||((u=n[c].route.path)==null?void 0:u.endsWith("*"))&&n[c].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,c)=>a(l,c)||s(l,c)):i==="data"?t.filter((l,c)=>{var d;let u=r.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(a(l,c)||s(l,c))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function XK(e,t,{includeHydrateFallback:n}={}){return QK(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function QK(e){return[...new Set(e)]}function ZK(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function JK(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(ZK(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function dP(){let e=g.useContext(Bs);return Gv(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function eG(){let e=g.useContext(th);return Gv(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yv=g.createContext(void 0);Yv.displayName="FrameworkContext";function fP(){let e=g.useContext(Yv);return Gv(e,"You must render this element inside a <HydratedRouter> element"),e}function tG(e,t){let n=g.useContext(Yv),[r,o]=g.useState(!1),[i,a]=g.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,f=g.useRef(null);g.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=y=>{y.forEach(w=>{a(w.isIntersecting)})},v=new IntersectionObserver(m,{threshold:.5});return f.current&&v.observe(f.current),()=>{v.disconnect()}}},[e]),g.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let p=()=>{o(!0)},h=()=>{o(!1),a(!1)};return n?e!=="intent"?[i,f,{}]:[i,f,{onFocus:Uc(s,p),onBlur:Uc(l,h),onMouseEnter:Uc(c,p),onMouseLeave:Uc(u,h),onTouchStart:Uc(d,p)}]:[!1,f,{}]}function Uc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function nG({page:e,...t}){let{router:n}=dP(),r=g.useMemo(()=>G2(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(oG,{page:e,matches:r,...t}):null}function rG(e){let{manifest:t,routeModules:n}=fP(),[r,o]=g.useState([]);return g.useEffect(()=>{let i=!1;return YK(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function oG({page:e,matches:t,...n}){let r=xo(),{manifest:o,routeModules:i}=fP(),{basename:a}=dP(),{loaderData:s,matches:l}=eG(),c=g.useMemo(()=>uP(e,t,l,o,r,"data"),[e,t,l,o,r]),u=g.useMemo(()=>uP(e,t,l,o,r,"assets"),[e,t,l,o,r]),d=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let h=new Set,m=!1;if(t.forEach(y=>{var x;let w=o.routes[y.route.id];!w||!w.hasLoader||(!c.some(S=>S.route.id===y.route.id)&&y.route.id in s&&((x=i[y.route.id])!=null&&x.shouldRevalidate)||w.hasClientLoader?m=!0:h.add(y.route.id))}),h.size===0)return[];let v=WK(e,a,"data");return m&&h.size>0&&v.searchParams.set("_routes",t.filter(y=>h.has(y.route.id)).map(y=>y.route.id).join(",")),[v.pathname+v.search]},[a,s,r,o,c,t,e,i]),f=g.useMemo(()=>XK(u,o),[u,o]),p=rG(u);return g.createElement(g.Fragment,null,d.map(h=>g.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...n})),f.map(h=>g.createElement("link",{key:h,rel:"modulepreload",href:h,...n})),p.map(({key:h,link:m})=>g.createElement("link",{key:h,nonce:n.nonce,...m})))}function iG(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var aG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{aG&&(window.__reactRouterVersion="7.11.0")}catch{}function sG({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=g.useRef();o.current==null&&(o.current=RW({window:r,v5Compat:!0}));let i=o.current,[a,s]=g.useState({action:i.action,location:i.location}),l=g.useCallback(c=>{n===!1?s(c):g.startTransition(()=>s(c))},[n]);return g.useLayoutEffect(()=>i.listen(l),[i,l]),g.createElement(FK,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,unstable_useTransitions:n})}var hP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xv=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...p},h){let{basename:m,unstable_useTransitions:v}=g.useContext(or),y=typeof c=="string"&&hP.test(c),w=tP(c,m);c=w.to;let x=yK(c,{relative:o}),[S,C,E]=tG(r,p),P=dG(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:v});function _(M){t&&t(M),M.defaultPrevented||P(M)}let T=g.createElement("a",{...p,...E,href:w.absoluteURL||x,onClick:w.isExternal||i?t:_,ref:iG(h,C),target:l,"data-discover":!y&&n==="render"?"true":void 0});return S&&!y?g.createElement(g.Fragment,null,T,g.createElement(nG,{page:x})):T});Xv.displayName="Link";var lG=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...c},u){let d=Vc(a,{relative:c.relative}),f=xo(),p=g.useContext(th),{navigator:h,basename:m}=g.useContext(or),v=p!=null&&mG(d)&&s===!0,y=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,w=f.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(w=w.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&m&&(x=ai(x,m)||x);const S=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let C=w===y||!o&&w.startsWith(y)&&w.charAt(S)==="/",E=x!=null&&(x===y||!o&&x.startsWith(y)&&x.charAt(y.length)==="/"),P={isActive:C,isPending:E,isTransitioning:v},_=C?t:void 0,T;typeof r=="function"?T=r(P):T=[r,C?"active":null,E?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let M=typeof i=="function"?i(P):i;return g.createElement(Xv,{...c,"aria-current":_,className:T,ref:u,style:M,to:a,viewTransition:s},typeof l=="function"?l(P):l)});lG.displayName="NavLink";var cG=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=rh,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f,...p},h)=>{let{unstable_useTransitions:m}=g.useContext(or),v=pG(),y=gG(s,{relative:c}),w=a.toLowerCase()==="get"?"get":"post",x=typeof s=="string"&&hP.test(s),S=C=>{if(l&&l(C),C.defaultPrevented)return;C.preventDefault();let E=C.nativeEvent.submitter,P=(E==null?void 0:E.getAttribute("formmethod"))||a,_=()=>v(E||C.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:o,state:i,relative:c,preventScrollReset:u,viewTransition:d,unstable_defaultShouldRevalidate:f});m&&n!==!1?g.startTransition(()=>_()):_()};return g.createElement("form",{ref:h,method:w,action:y,onSubmit:r?l:S,...p,"data-discover":!x&&e==="render"?"true":void 0})});cG.displayName="Form";function uG(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function pP(e){let t=g.useContext(Bs);return Kt(t,uG(e)),t}function dG(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let c=Vv(),u=xo(),d=Vc(e,{relative:i});return g.useCallback(f=>{if(qK(f,t)){f.preventDefault();let p=n!==void 0?n:zc(u)===zc(d),h=()=>c(e,{replace:p,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s});l?g.startTransition(()=>h()):h()}},[u,c,d,n,r,t,e,o,i,a,s,l])}var fG=0,hG=()=>`__${String(++fG)}__`;function pG(){let{router:e}=pP("useSubmit"),{basename:t}=g.useContext(or),n=AK(),r=e.fetch,o=e.navigate;return g.useCallback(async(i,a={})=>{let{action:s,method:l,encType:c,formData:u,body:d}=HK(i,t);if(a.navigate===!1){let f=a.fetcherKey||hG();await r(f,n,a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:d,formMethod:a.method||l,formEncType:a.encType||c,flushSync:a.flushSync})}else await o(a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:d,formMethod:a.method||l,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}function gG(e,{relative:t}={}){let{basename:n}=g.useContext(or),r=g.useContext(Yr);Kt(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Vc(e||".",{relative:t})},a=xo();if(e==null){i.search=a.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(u=>u==="")){s.delete("index"),l.filter(d=>d).forEach(d=>s.append("index",d));let u=s.toString();i.search=u?`?${u}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:si([n,i.pathname])),zc(i)}function mG(e,{relative:t}={}){let n=g.useContext(rP);Kt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=pP("useViewTransitionState"),o=Vc(e,{relative:t});if(!n.isTransitioning)return!1;let i=ai(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ai(n.nextLocation.pathname,r)||n.nextLocation.pathname;return eh(o.pathname,a)!=null||eh(o.pathname,i)!=null}const vG={theme:"light",setTheme:()=>null},gP=O.createContext(vG);function mP({children:e,defaultTheme:t="light",storageKey:n="vite-ui-theme",...r}){const[o,i]=O.useState(()=>localStorage.getItem(n)||t);O.useEffect(()=>{const s=window.document.documentElement;if(s.classList.remove("light","dark"),o==="system"){const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";s.classList.add(l);return}s.classList.add(o)},[o]);const a={theme:o,setTheme:s=>{localStorage.setItem(n,s),i(s)}};return b.jsx(gP.Provider,{...r,value:a,children:e})}const yG=()=>{const e=O.useContext(gP);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};var Hc={},vP;function bG(){if(vP)return Hc;vP=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.parse=a,Hc.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,i=(()=>{const f=function(){};return f.prototype=Object.create(null),f})();function a(f,p){const h=new i,m=f.length;if(m<2)return h;const v=(p==null?void 0:p.decode)||u;let y=0;do{const w=f.indexOf("=",y);if(w===-1)break;const x=f.indexOf(";",y),S=x===-1?m:x;if(w>S){y=f.lastIndexOf(";",w-1)+1;continue}const C=s(f,y,w),E=l(f,w,C),P=f.slice(C,E);if(h[P]===void 0){let _=s(f,w+1,S),T=l(f,S,_);const M=v(f.slice(_,T));h[P]=M}y=S+1}while(y<m);return h}function s(f,p,h){do{const m=f.charCodeAt(p);if(m!==32&&m!==9)return p}while(++p<h);return h}function l(f,p,h){for(;p>h;){const m=f.charCodeAt(--p);if(m!==32&&m!==9)return p+1}return h}function c(f,p,h){const m=(h==null?void 0:h.encode)||encodeURIComponent;if(!e.test(f))throw new TypeError(`argument name is invalid: ${f}`);const v=m(p);if(!t.test(v))throw new TypeError(`argument val is invalid: ${p}`);let y=f+"="+v;if(!h)return y;if(h.maxAge!==void 0){if(!Number.isInteger(h.maxAge))throw new TypeError(`option maxAge is invalid: ${h.maxAge}`);y+="; Max-Age="+h.maxAge}if(h.domain){if(!n.test(h.domain))throw new TypeError(`option domain is invalid: ${h.domain}`);y+="; Domain="+h.domain}if(h.path){if(!r.test(h.path))throw new TypeError(`option path is invalid: ${h.path}`);y+="; Path="+h.path}if(h.expires){if(!d(h.expires)||!Number.isFinite(h.expires.valueOf()))throw new TypeError(`option expires is invalid: ${h.expires}`);y+="; Expires="+h.expires.toUTCString()}if(h.httpOnly&&(y+="; HttpOnly"),h.secure&&(y+="; Secure"),h.partitioned&&(y+="; Partitioned"),h.priority)switch(typeof h.priority=="string"?h.priority.toLowerCase():void 0){case"low":y+="; Priority=Low";break;case"medium":y+="; Priority=Medium";break;case"high":y+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${h.priority}`)}if(h.sameSite)switch(typeof h.sameSite=="string"?h.sameSite.toLowerCase():h.sameSite){case!0:case"strict":y+="; SameSite=Strict";break;case"lax":y+="; SameSite=Lax";break;case"none":y+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${h.sameSite}`)}return y}function u(f){if(f.indexOf("%")===-1)return f;try{return decodeURIComponent(f)}catch{return f}}function d(f){return o.call(f)==="[object Date]"}return Hc}var sh=bG();function wG(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function xG(e){return typeof e=="string"?sh.parse(e):typeof e=="object"&&e!==null?e:{}}function Qv(e,t={}){const n=SG(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function SG(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class CG{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const o=this.cookies;this.cookies=sh.parse(document.cookie),this._checkChanges(o)};const r=typeof document>"u"?"":document.cookie;this.cookies=xG(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=wG()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Qv(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Qv(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Qv(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const o=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:o}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=sh.serialize(t,o,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=sh.serialize(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}removeAllChangeListeners(){for(;this.changeListeners.length>0;)this.removeChangeListener(this.changeListeners[0])}}const yP=O.createContext(void 0),zs=new CG,bP=({children:e})=>{function t(c,u){c===void 0?(zs.remove("access_token"),zs.remove("user"),i(void 0),r(void 0)):(u!==null&&(zs.set("access_token",u,{path:"/",httpOnly:!1,secure:!1}),i(u)),c!==null&&(zs.set("user",c,{path:"/",httpOnly:!1,secure:!1}),r(c)))}const[n,r]=O.useState(zs.get("user")),[o,i]=O.useState(zs.get("access_token")),[a,s]=O.useState({}),l={user:n,tokens:o,setAuthData:t,otherData:a,setOtherData:s};return b.jsx(yP.Provider,{value:l,children:e})};function Zv(){const e=O.useContext(yP);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}const wP=O.createContext(void 0),EG=()=>{const e=O.useContext(wP);if(!e)throw new Error("useOverlay must be used within an OverlayProvider");return e},xP=({children:e})=>{const[t,n]=O.useState(!1);return b.jsx(wP.Provider,{value:{showOverlay:t,setShowOverlay:n},children:e})},SP=O.createContext({isOpen:"",setIsOpen:()=>{}}),CP=({children:e})=>{const[t,n]=O.useState("");return b.jsx(SP.Provider,{value:{isOpen:t,setIsOpen:n},children:e})};function PG(){const e=O.useContext(SP);if(e===void 0)throw new Error("useModal must be used within a ModalProvider");return e}const lh=new HU({defaultOptions:{queries:{refetchOnWindowFocus:!1,staleTime:6e4}}}),OG=({error:e})=>b.jsxs("div",{className:"flex h-screen w-screen flex-col items-center justify-center text-red-500",role:"alert",children:[b.jsx("h2",{className:"text-2xl font-semibold",children:"Oops, something went wrong :("}),b.jsx("pre",{className:"text-2xl font-bold",children:e.message}),b.jsx("pre",{children:e.stack})]});function TG({children:e,ErrorFallback:t=OG,showReactQueryDevtools:n=!1,defaultTheme:r="light",storageKey:o="vite-ui-theme"}){return b.jsx(bP,{children:b.jsx(O.Suspense,{children:b.jsx(FW,{children:b.jsx(sG,{children:b.jsx(CW,{FallbackComponent:t,children:b.jsxs(WU,{client:lh,children:[n&&b.jsx(xW,{}),b.jsx(xP,{children:b.jsx(mP,{defaultTheme:r,storageKey:o,children:b.jsx(CP,{children:e})})})]})})})})})})}const _G=function({item:e,type:t,cacheKey:n}){lh.setQueriesData({queryKey:[n]},r=>{let o=[];return t==="edit"?o=r==null?void 0:r.map(i=>i.id===e.id?e:i):t==="add"?o=r?[e,...r]:[e]:t==="delete"&&(o=r==null?void 0:r.filter(i=>i.id!==e.id)),o})},MG=function({item:e,cacheKey:t}){lh.setQueriesData({queryKey:[t]},()=>e)},kG=ei("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),EP=g.forwardRef(({className:e,variant:t,...n},r)=>b.jsx("div",{ref:r,role:"alert",className:q(kG({variant:t}),e),...n}));EP.displayName="Alert";const PP=g.forwardRef(({className:e,...t},n)=>b.jsx("h5",{ref:n,className:q("mb-1 font-medium leading-none tracking-tight",e),...t}));PP.displayName="AlertTitle";const OP=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:q("text-sm [&_p]:leading-relaxed",e),...t}));OP.displayName="AlertDescription";function ht(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function AG(e,t=globalThis==null?void 0:globalThis.document){const n=ht(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var DG="DismissableLayer",Jv="dismissableLayer.update",NG="dismissableLayer.pointerDownOutside",$G="dismissableLayer.focusOutside",TP,_P=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),li=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,c=g.useContext(_P),[u,d]=g.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=g.useState({}),h=je(t,P=>d(P)),m=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(v),w=u?m.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=y,C=LG(P=>{const _=P.target,T=[...c.branches].some(M=>M.contains(_));!S||T||(o==null||o(P),a==null||a(P),P.defaultPrevented||s==null||s())},f),E=FG(P=>{const _=P.target;[...c.branches].some(M=>M.contains(_))||(i==null||i(P),a==null||a(P),P.defaultPrevented||s==null||s())},f);return AG(P=>{w===c.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&s&&(P.preventDefault(),s()))},f),g.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(TP=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),kP(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=TP)}},[u,f,n,c]),g.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),kP())},[u,c]),g.useEffect(()=>{const P=()=>p({});return document.addEventListener(Jv,P),()=>document.removeEventListener(Jv,P)},[]),b.jsx(ye.div,{...l,ref:h,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:ne(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ne(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ne(e.onPointerDownCapture,C.onPointerDownCapture)})});li.displayName=DG;var IG="DismissableLayerBranch",MP=g.forwardRef((e,t)=>{const n=g.useContext(_P),r=g.useRef(null),o=je(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(ye.div,{...e,ref:o})});MP.displayName=IG;function LG(e,t=globalThis==null?void 0:globalThis.document){const n=ht(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){AP(NG,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function FG(e,t=globalThis==null?void 0:globalThis.document){const n=ht(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&AP($G,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function kP(){const e=new CustomEvent(Jv);document.dispatchEvent(e)}function AP(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Tc(o,i):o.dispatchEvent(i)}var RG=li,BG=MP,ey="focusScope.autoFocusOnMount",ty="focusScope.autoFocusOnUnmount",DP={bubbles:!1,cancelable:!0},jG="FocusScope",Wc=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=g.useState(null),c=ht(o),u=ht(i),d=g.useRef(null),f=je(t,m=>l(m)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let m=function(x){if(p.paused||!s)return;const S=x.target;s.contains(S)?d.current=S:Li(d.current,{select:!0})},v=function(x){if(p.paused||!s)return;const S=x.relatedTarget;S!==null&&(s.contains(S)||Li(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&Li(s)};document.addEventListener("focusin",m),document.addEventListener("focusout",v);const w=new MutationObserver(y);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),w.disconnect()}}},[r,s,p.paused]),g.useEffect(()=>{if(s){IP.add(p);const m=document.activeElement;if(!s.contains(m)){const y=new CustomEvent(ey,DP);s.addEventListener(ey,c),s.dispatchEvent(y),y.defaultPrevented||(zG(WG(NP(s)),{select:!0}),document.activeElement===m&&Li(s))}return()=>{s.removeEventListener(ey,c),setTimeout(()=>{const y=new CustomEvent(ty,DP);s.addEventListener(ty,u),s.dispatchEvent(y),y.defaultPrevented||Li(m??document.body,{select:!0}),s.removeEventListener(ty,u),IP.remove(p)},0)}}},[s,c,u,p]);const h=g.useCallback(m=>{if(!n&&!r||p.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(v&&y){const w=m.currentTarget,[x,S]=qG(w);x&&S?!m.shiftKey&&y===S?(m.preventDefault(),n&&Li(x,{select:!0})):m.shiftKey&&y===x&&(m.preventDefault(),n&&Li(S,{select:!0})):y===w&&m.preventDefault()}},[n,r,p.paused]);return b.jsx(ye.div,{tabIndex:-1,...a,ref:f,onKeyDown:h})});Wc.displayName=jG;function zG(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Li(r,{select:t}),document.activeElement!==n)return}function qG(e){const t=NP(e),n=$P(t,e),r=$P(t.reverse(),e);return[n,r]}function NP(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $P(e,t){for(const n of e)if(!VG(n,{upTo:t}))return n}function VG(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function UG(e){return e instanceof HTMLInputElement&&"select"in e}function Li(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&UG(e)&&t&&e.select()}}var IP=HG();function HG(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=LP(e,t),e.unshift(t)},remove(t){var n;e=LP(e,t),(n=e[0])==null||n.resume()}}}function LP(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function WG(e){return e.filter(t=>t.tagName!=="A")}var KG="Portal",Sa=g.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=g.useState(!1);At(()=>i(!0),[]);const a=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?xr.createPortal(b.jsx(ye.div,{...r,ref:t}),a):null});Sa.displayName=KG;var ny=0;function ch(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FP()),document.body.insertAdjacentElement("beforeend",e[1]??FP()),ny++,()=>{ny===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ny--}},[])}function FP(){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 So=function(){return So=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},So.apply(this,arguments)};function RP(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function GG(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var uh="right-scroll-bar-position",dh="width-before-scroll-bar",YG="with-scroll-bars-hidden",XG="--removed-body-scroll-bar-size";function ry(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function QG(e,t){var n=O.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var ZG=typeof window<"u"?g.useLayoutEffect:g.useEffect,BP=new WeakMap;function JG(e,t){var n=QG(null,function(r){return e.forEach(function(o){return ry(o,r)})});return ZG(function(){var r=BP.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||ry(s,null)}),i.forEach(function(s){o.has(s)||ry(s,a)})}BP.set(n,e)},[e]),n}function eY(e){return e}function tY(e,t){t===void 0&&(t=eY);var n=[],r=!1,o={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(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var l=function(){var u=a;a=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){a.push(u),c()},filter:function(u){return a=a.filter(u),n}}}};return o}function nY(e){e===void 0&&(e={});var t=tY(null);return t.options=So({async:!0,ssr:!1},e),t}var jP=function(e){var t=e.sideCar,n=RP(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 g.createElement(r,So({},n))};jP.isSideCarExport=!0;function rY(e,t){return e.useMedium(t),jP}var zP=nY(),oy=function(){},fh=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:oy,onWheelCapture:oy,onTouchMoveCapture:oy}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,y=e.as,w=y===void 0?"div":y,x=e.gapMode,S=RP(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,E=JG([n,t]),P=So(So({},S),o);return g.createElement(g.Fragment,null,u&&g.createElement(C,{sideCar:zP,removeScrollBar:c,shards:d,noRelative:p,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:x}),a?g.cloneElement(g.Children.only(s),So(So({},P),{ref:E})):g.createElement(w,So({},P,{className:l,ref:E}),s))});fh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},fh.classNames={fullWidth:dh,zeroRight:uh};var oY=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iY(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oY();return t&&e.setAttribute("nonce",t),e}function aY(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sY(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var lY=function(){var e=0,t=null;return{add:function(n){e==0&&(t=iY())&&(aY(t,n),sY(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cY=function(){var e=lY();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},qP=function(){var e=cY(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},uY={left:0,top:0,right:0,gap:0},iy=function(e){return parseInt(e||"",10)||0},dY=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[iy(n),iy(r),iy(o)]},fY=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return uY;var t=dY(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])}},hY=qP(),qs="data-scroll-locked",pY=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
13
+ .`.concat(YG,` {
14
+ overflow: hidden `).concat(r,`;
15
+ padding-right: `).concat(s,"px ").concat(r,`;
16
+ }
17
+ body[`).concat(qs,`] {
18
+ overflow: hidden `).concat(r,`;
19
+ overscroll-behavior: contain;
20
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
21
+ padding-left: `.concat(o,`px;
22
+ padding-top: `).concat(i,`px;
23
+ padding-right: `).concat(a,`px;
24
+ margin-left:0;
25
+ margin-top:0;
26
+ margin-right: `).concat(s,"px ").concat(r,`;
27
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
28
+ }
29
+
30
+ .`).concat(uh,` {
31
+ right: `).concat(s,"px ").concat(r,`;
32
+ }
33
+
34
+ .`).concat(dh,` {
35
+ margin-right: `).concat(s,"px ").concat(r,`;
36
+ }
37
+
38
+ .`).concat(uh," .").concat(uh,` {
39
+ right: 0 `).concat(r,`;
40
+ }
41
+
42
+ .`).concat(dh," .").concat(dh,` {
43
+ margin-right: 0 `).concat(r,`;
44
+ }
45
+
46
+ body[`).concat(qs,`] {
47
+ `).concat(XG,": ").concat(s,`px;
48
+ }
49
+ `)},VP=function(){var e=parseInt(document.body.getAttribute(qs)||"0",10);return isFinite(e)?e:0},gY=function(){g.useEffect(function(){return document.body.setAttribute(qs,(VP()+1).toString()),function(){var e=VP()-1;e<=0?document.body.removeAttribute(qs):document.body.setAttribute(qs,e.toString())}},[])},mY=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;gY();var i=g.useMemo(function(){return fY(o)},[o]);return g.createElement(hY,{styles:pY(i,!t,o,n?"":"!important")})},ay=!1;if(typeof window<"u")try{var hh=Object.defineProperty({},"passive",{get:function(){return ay=!0,!0}});window.addEventListener("test",hh,hh),window.removeEventListener("test",hh,hh)}catch{ay=!1}var Vs=ay?{passive:!1}:!1,vY=function(e){return e.tagName==="TEXTAREA"},UP=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vY(e)&&n[t]==="visible")},yY=function(e){return UP(e,"overflowY")},bY=function(e){return UP(e,"overflowX")},HP=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=WP(e,r);if(o){var i=KP(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wY=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},xY=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},WP=function(e,t){return e==="v"?yY(t):bY(t)},KP=function(e,t){return e==="v"?wY(t):xY(t)},SY=function(e,t){return e==="h"&&t==="rtl"?-1:1},CY=function(e,t,n,r,o){var i=SY(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{if(!s)break;var p=KP(e,s),h=p[0],m=p[1],v=p[2],y=m-v-i*h;(h||y)&&WP(e,s)&&(d+=y,f+=h);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},ph=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},GP=function(e){return[e.deltaX,e.deltaY]},YP=function(e){return e&&"current"in e?e.current:e},EY=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PY=function(e){return`
50
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
51
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
52
+ `)},OY=0,Us=[];function TY(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(OY++)[0],i=g.useState(qP)[0],a=g.useRef(e);g.useEffect(function(){a.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=GG([e.lockRef.current],(e.shards||[]).map(YP),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=g.useCallback(function(m,v){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=ph(m),w=n.current,x="deltaX"in m?m.deltaX:w[0]-y[0],S="deltaY"in m?m.deltaY:w[1]-y[1],C,E=m.target,P=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in m&&P==="h"&&E.type==="range")return!1;var _=window.getSelection(),T=_&&_.anchorNode,M=T?T===E||T.contains(E):!1;if(M)return!1;var A=HP(P,E);if(!A)return!0;if(A?C=P:(C=P==="v"?"h":"v",A=HP(P,E)),!A)return!1;if(!r.current&&"changedTouches"in m&&(x||S)&&(r.current=C),!C)return!0;var D=r.current||C;return CY(D,v,m,D==="h"?x:S)},[]),l=g.useCallback(function(m){var v=m;if(!(!Us.length||Us[Us.length-1]!==i)){var y="deltaY"in v?GP(v):ph(v),w=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&EY(C.delta,y)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var x=(a.current.shards||[]).map(YP).filter(Boolean).filter(function(C){return C.contains(v.target)}),S=x.length>0?s(v,x[0]):!a.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),c=g.useCallback(function(m,v,y,w){var x={name:m,delta:v,target:y,should:w,shadowParent:_Y(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),u=g.useCallback(function(m){n.current=ph(m),r.current=void 0},[]),d=g.useCallback(function(m){c(m.type,GP(m),m.target,s(m,e.lockRef.current))},[]),f=g.useCallback(function(m){c(m.type,ph(m),m.target,s(m,e.lockRef.current))},[]);g.useEffect(function(){return Us.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Vs),document.addEventListener("touchmove",l,Vs),document.addEventListener("touchstart",u,Vs),function(){Us=Us.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Vs),document.removeEventListener("touchmove",l,Vs),document.removeEventListener("touchstart",u,Vs)}},[]);var p=e.removeScrollBar,h=e.inert;return g.createElement(g.Fragment,null,h?g.createElement(i,{styles:PY(o)}):null,p?g.createElement(mY,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function _Y(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const MY=rY(zP,TY);var Kc=g.forwardRef(function(e,t){return g.createElement(fh,So({},e,{ref:t,sideCar:MY}))});Kc.classNames=fh.classNames;var kY=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Hs=new WeakMap,gh=new WeakMap,mh={},sy=0,XP=function(e){return e&&(e.host||XP(e.parentNode))},AY=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=XP(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},DY=function(e,t,n,r){var o=AY(t,Array.isArray(e)?e:[e]);mh[n]||(mh[n]=new WeakMap);var i=mh[n],a=[],s=new Set,l=new Set(o),c=function(d){!d||s.has(d)||(s.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(s.has(f))u(f);else try{var p=f.getAttribute(r),h=p!==null&&p!=="false",m=(Hs.get(f)||0)+1,v=(i.get(f)||0)+1;Hs.set(f,m),i.set(f,v),a.push(f),m===1&&h&&gh.set(f,!0),v===1&&f.setAttribute(n,"true"),h||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return u(t),s.clear(),sy++,function(){a.forEach(function(d){var f=Hs.get(d)-1,p=i.get(d)-1;Hs.set(d,f),i.set(d,p),f||(gh.has(d)||d.removeAttribute(r),gh.delete(d)),p||d.removeAttribute(n)}),sy--,sy||(Hs=new WeakMap,Hs=new WeakMap,gh=new WeakMap,mh={})}},vh=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=kY(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),DY(r,o,n,"aria-hidden")):function(){return null}};function NY(e){const t=$Y(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(LY);if(l){const c=l.props.children,u=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function $Y(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=RY(o),s=FY(i,o.props);return o.type!==g.Fragment&&(s.ref=r?Pn(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var IY=Symbol("radix.slottable");function LY(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IY}function FY(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function RY(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yh="Dialog",[QP,ZP]=kt(yh),[BY,Xr]=QP(yh),JP=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=g.useRef(null),l=g.useRef(null),[c,u]=Ot({prop:r,defaultProp:o??!1,onChange:i,caller:yh});return b.jsx(BY,{scope:t,triggerRef:s,contentRef:l,contentId:Et(),titleId:Et(),descriptionId:Et(),open:c,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(d=>!d),[u]),modal:a,children:n})};JP.displayName=yh;var eO="DialogTrigger",tO=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(eO,n),i=je(t,o.triggerRef);return b.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":uy(o.open),...r,ref:i,onClick:ne(e.onClick,o.onOpenToggle)})});tO.displayName=eO;var ly="DialogPortal",[jY,nO]=QP(ly,{forceMount:void 0}),rO=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Xr(ly,t);return b.jsx(jY,{scope:t,forceMount:n,children:g.Children.map(r,a=>b.jsx(Tt,{present:n||i.open,children:b.jsx(Sa,{asChild:!0,container:o,children:a})}))})};rO.displayName=ly;var bh="DialogOverlay",oO=g.forwardRef((e,t)=>{const n=nO(bh,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Xr(bh,e.__scopeDialog);return i.modal?b.jsx(Tt,{present:r||i.open,children:b.jsx(qY,{...o,ref:t})}):null});oO.displayName=bh;var zY=NY("DialogOverlay.RemoveScroll"),qY=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(bh,n);return b.jsx(Kc,{as:zY,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(ye.div,{"data-state":uy(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ca="DialogContent",iO=g.forwardRef((e,t)=>{const n=nO(Ca,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Xr(Ca,e.__scopeDialog);return b.jsx(Tt,{present:r||i.open,children:i.modal?b.jsx(VY,{...o,ref:t}):b.jsx(UY,{...o,ref:t})})});iO.displayName=Ca;var VY=g.forwardRef((e,t)=>{const n=Xr(Ca,e.__scopeDialog),r=g.useRef(null),o=je(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return vh(i)},[]),b.jsx(aO,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:ne(e.onFocusOutside,i=>i.preventDefault())})}),UY=g.forwardRef((e,t)=>{const n=Xr(Ca,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return b.jsx(aO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),aO=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Xr(Ca,n),l=g.useRef(null),c=je(t,l);return ch(),b.jsxs(b.Fragment,{children:[b.jsx(Wc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(li,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":uy(s.open),...a,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(WY,{titleId:s.titleId}),b.jsx(GY,{contentRef:l,descriptionId:s.descriptionId})]})]})}),cy="DialogTitle",sO=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(cy,n);return b.jsx(ye.h2,{id:o.titleId,...r,ref:t})});sO.displayName=cy;var lO="DialogDescription",cO=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(lO,n);return b.jsx(ye.p,{id:o.descriptionId,...r,ref:t})});cO.displayName=lO;var uO="DialogClose",dO=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Xr(uO,n);return b.jsx(ye.button,{type:"button",...r,ref:t,onClick:ne(e.onClick,()=>o.onOpenChange(!1))})});dO.displayName=uO;function uy(e){return e?"open":"closed"}var fO="DialogTitleWarning",[HY,hO]=xq(fO,{contentName:Ca,titleName:cy,docsSlug:"dialog"}),WY=({titleId:e})=>{const t=hO(fO),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
53
+
54
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
55
+
56
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},KY="DialogDescriptionWarning",GY=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hO(KY).contentName}}.`;return g.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Gc=JP,wh=tO,Yc=rO,Ea=oO,Pa=iO,Ws=sO,Ks=cO,Oa=dO,YY=Symbol("radix.slottable");function XY(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=YY,t}var pO="AlertDialog",[QY]=kt(pO,[ZP]),ci=ZP(),gO=e=>{const{__scopeAlertDialog:t,...n}=e,r=ci(t);return b.jsx(Gc,{...r,...n,modal:!0})};gO.displayName=pO;var ZY="AlertDialogTrigger",mO=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ci(n);return b.jsx(wh,{...o,...r,ref:t})});mO.displayName=ZY;var JY="AlertDialogPortal",vO=e=>{const{__scopeAlertDialog:t,...n}=e,r=ci(t);return b.jsx(Yc,{...r,...n})};vO.displayName=JY;var eX="AlertDialogOverlay",yO=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ci(n);return b.jsx(Ea,{...o,...r,ref:t})});yO.displayName=eX;var Gs="AlertDialogContent",[tX,nX]=QY(Gs),rX=XY("AlertDialogContent"),bO=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=ci(n),a=g.useRef(null),s=je(t,a),l=g.useRef(null);return b.jsx(HY,{contentName:Gs,titleName:wO,docsSlug:"alert-dialog",children:b.jsx(tX,{scope:n,cancelRef:l,children:b.jsxs(Pa,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:ne(o.onOpenAutoFocus,c=>{var u;c.preventDefault(),(u=l.current)==null||u.focus({preventScroll:!0})}),onPointerDownOutside:c=>c.preventDefault(),onInteractOutside:c=>c.preventDefault(),children:[b.jsx(rX,{children:r}),b.jsx(iX,{contentRef:a})]})})})});bO.displayName=Gs;var wO="AlertDialogTitle",xO=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ci(n);return b.jsx(Ws,{...o,...r,ref:t})});xO.displayName=wO;var SO="AlertDialogDescription",CO=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ci(n);return b.jsx(Ks,{...o,...r,ref:t})});CO.displayName=SO;var oX="AlertDialogAction",EO=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=ci(n);return b.jsx(Oa,{...o,...r,ref:t})});EO.displayName=oX;var PO="AlertDialogCancel",OO=g.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=nX(PO,n),i=ci(n),a=je(t,o);return b.jsx(Oa,{...i,...r,ref:a})});OO.displayName=PO;var iX=({contentRef:e})=>{const t=`\`${Gs}\` requires a description for the component to be accessible for screen reader users.
57
+
58
+ You can add a description to the \`${Gs}\` by passing a \`${SO}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
59
+
60
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Gs}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
61
+
62
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return g.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},aX=gO,sX=mO,lX=vO,TO=yO,_O=bO,MO=EO,kO=OO,AO=xO,DO=CO,cX=Symbol.for("react.lazy"),xh=g[" use ".trim().toString()];function uX(e){return typeof e=="object"&&e!==null&&"then"in e}function NO(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===cX&&"_payload"in e&&uX(e._payload)}function Ys(e){const t=dX(e),n=g.forwardRef((r,o)=>{let{children:i,...a}=r;NO(i)&&typeof xh=="function"&&(i=xh(i._payload));const s=g.Children.toArray(i),l=s.find(hX);if(l){const c=l.props.children,u=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Fi=Ys("Slot");function dX(e){const t=g.forwardRef((n,r)=>{let{children:o,...i}=n;if(NO(o)&&typeof xh=="function"&&(o=xh(o._payload)),g.isValidElement(o)){const a=gX(o),s=pX(i,o.props);return o.type!==g.Fragment&&(s.ref=r?Pn(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fX=Symbol("radix.slottable");function hX(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fX}function pX(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function gX(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Ta=ei("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-slate-400",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-slate-400",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Xc=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const a=r?Fi:"button";return b.jsx(a,{className:q(Ta({variant:t,size:n,className:e})),ref:i,...o})});Xc.displayName="Button";const mX=aX,vX=sX,$O=lX,dy=g.forwardRef(({className:e,...t},n)=>b.jsx(TO,{className:q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));dy.displayName=TO.displayName;const IO=g.forwardRef(({className:e,...t},n)=>b.jsxs($O,{children:[b.jsx(dy,{}),b.jsx(_O,{ref:n,className:q("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));IO.displayName=_O.displayName;const LO=({className:e,...t})=>b.jsx("div",{className:q("flex flex-col space-y-2 text-center sm:text-left",e),...t});LO.displayName="AlertDialogHeader";const FO=({className:e,...t})=>b.jsx("div",{className:q("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});FO.displayName="AlertDialogFooter";const RO=g.forwardRef(({className:e,...t},n)=>b.jsx(AO,{ref:n,className:q("text-lg font-semibold",e),...t}));RO.displayName=AO.displayName;const BO=g.forwardRef(({className:e,...t},n)=>b.jsx(DO,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));BO.displayName=DO.displayName;const jO=g.forwardRef(({className:e,...t},n)=>b.jsx(MO,{ref:n,className:q(Ta(),e),...t}));jO.displayName=MO.displayName;const zO=g.forwardRef(({className:e,...t},n)=>b.jsx(kO,{ref:n,className:q(Ta({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));zO.displayName=kO.displayName;var yX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],bX=yX.reduce((e,t)=>{const n=Ys(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),wX="AspectRatio",qO=g.forwardRef((e,t)=>{const{ratio:n=1/1,style:r,...o}=e;return b.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":"",children:b.jsx(bX.div,{...o,ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});qO.displayName=wX;var xX=qO;const SX=xX;function CX(e,t=[]){let n=[];function r(i,a){const s=g.createContext(a);s.displayName=i+"Context";const l=n.length;n=[...n,a];const c=d=>{var y;const{scope:f,children:p,...h}=d,m=((y=f==null?void 0:f[e])==null?void 0:y[l])||s,v=g.useMemo(()=>h,Object.values(h));return b.jsx(m.Provider,{value:v,children:p})};c.displayName=i+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||s,h=g.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(a=>g.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,EX(o,...t)]}function EX(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var PX=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],fy=PX.reduce((e,t)=>{const n=Ys(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Sh={exports:{}},hy={};/**
63
+ * @license React
64
+ * use-sync-external-store-shim.production.js
65
+ *
66
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
67
+ *
68
+ * This source code is licensed under the MIT license found in the
69
+ * LICENSE file in the root directory of this source tree.
70
+ */var VO;function OX(){if(VO)return hy;VO=1;var e=O;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(d,f){var p=f(),h=r({inst:{value:p,getSnapshot:f}}),m=h[0].inst,v=h[1];return i(function(){m.value=p,m.getSnapshot=f,l(m)&&v({inst:m})},[d,p,f]),o(function(){return l(m)&&v({inst:m}),d(function(){l(m)&&v({inst:m})})},[d]),a(p),p}function l(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!n(d,p)}catch{return!0}}function c(d,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return hy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,hy}var py={};/**
71
+ * @license React
72
+ * use-sync-external-store-shim.development.js
73
+ *
74
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
75
+ *
76
+ * This source code is licensed under the MIT license found in the
77
+ * LICENSE file in the root directory of this source tree.
78
+ */var UO;function TX(){return UO||(UO=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}function t(p,h){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=h();if(!d){var v=h();i(m,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=a({inst:{value:m,getSnapshot:h}});var y=v[0].inst,w=v[1];return l(function(){y.value=m,y.getSnapshot=h,n(y)&&w({inst:y})},[p,m,h]),s(function(){return n(y)&&w({inst:y}),p(function(){n(y)&&w({inst:y})})},[p]),c(m),m}function n(p){var h=p.getSnapshot;p=p.value;try{var m=h();return!i(p,m)}catch{return!0}}function r(p,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=O,i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;py.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),py}var HO;function gy(){return HO||(HO=1,process.env.NODE_ENV==="production"?Sh.exports=OX():Sh.exports=TX()),Sh.exports}var _X=gy();function MX(){return _X.useSyncExternalStore(kX,()=>!0,()=>!1)}function kX(){return()=>{}}var my="Avatar",[AX]=CX(my),[DX,WO]=AX(my),KO=g.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=g.useState("idle");return b.jsx(DX,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:b.jsx(fy.span,{...r,ref:t})})});KO.displayName=my;var GO="AvatarImage",YO=g.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,a=WO(GO,n),s=NX(r,i),l=ht(c=>{o(c),a.onImageLoadingStatusChange(c)});return At(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?b.jsx(fy.img,{...i,ref:t,src:r}):null});YO.displayName=GO;var XO="AvatarFallback",QO=g.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=WO(XO,n),[a,s]=g.useState(r===void 0);return g.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(l)}},[r]),a&&i.imageLoadingStatus!=="loaded"?b.jsx(fy.span,{...o,ref:t}):null});QO.displayName=XO;function ZO(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function NX(e,{referrerPolicy:t,crossOrigin:n}){const r=MX(),o=g.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[a,s]=g.useState(()=>ZO(i,e));return At(()=>{s(ZO(i,e))},[i,e]),At(()=>{const l=d=>()=>{s(d)};if(!i)return;const c=l("loaded"),u=l("error");return i.addEventListener("load",c),i.addEventListener("error",u),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",c),i.removeEventListener("error",u)}},[i,n,t]),a}var JO=KO,eT=YO,tT=QO;const nT=g.forwardRef(({className:e,...t},n)=>b.jsx(JO,{ref:n,className:q("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));nT.displayName=JO.displayName;const rT=g.forwardRef(({className:e,...t},n)=>b.jsx(eT,{ref:n,className:q("aspect-square h-full w-full",e),...t}));rT.displayName=eT.displayName;const oT=g.forwardRef(({className:e,...t},n)=>b.jsx(tT,{ref:n,className:q("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));oT.displayName=tT.displayName;const iT=ei("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow ",secondary:"border-transparent bg-secondary text-secondary-foreground ",success:"border-transparent bg-green-500 text-green-foreground ",destructive:"border-transparent bg-destructive text-destructive-foreground shadow ",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function $X({className:e,variant:t,...n}){return b.jsx("div",{className:q(iT({variant:t}),e),...n})}/**
79
+ * @license lucide-react v0.562.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const IX=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),LX=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),aT=e=>{const t=LX(e);return t.charAt(0).toUpperCase()+t.slice(1)},sT=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),FX=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
84
+ * @license lucide-react v0.562.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */var RX={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
89
+ * @license lucide-react v0.562.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const BX=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>O.createElement("svg",{ref:l,...RX,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:sT("lucide",o),...!i&&!FX(s)&&{"aria-hidden":"true"},...s},[...a.map(([c,u])=>O.createElement(c,u)),...Array.isArray(i)?i:[i]]));/**
94
+ * @license lucide-react v0.562.0 - ISC
95
+ *
96
+ * This source code is licensed under the ISC license.
97
+ * See the LICENSE file in the root directory of this source tree.
98
+ */const st=(e,t)=>{const n=O.forwardRef(({className:r,...o},i)=>O.createElement(BX,{ref:i,iconNode:t,className:sT(`lucide-${IX(aT(e))}`,`lucide-${e}`,r),...o}));return n.displayName=aT(e),n};/**
99
+ * @license lucide-react v0.562.0 - ISC
100
+ *
101
+ * This source code is licensed under the ISC license.
102
+ * See the LICENSE file in the root directory of this source tree.
103
+ */const jX=st("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
104
+ * @license lucide-react v0.562.0 - ISC
105
+ *
106
+ * This source code is licensed under the ISC license.
107
+ * See the LICENSE file in the root directory of this source tree.
108
+ */const Qc=st("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
109
+ * @license lucide-react v0.562.0 - ISC
110
+ *
111
+ * This source code is licensed under the ISC license.
112
+ * See the LICENSE file in the root directory of this source tree.
113
+ */const vy=st("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
114
+ * @license lucide-react v0.562.0 - ISC
115
+ *
116
+ * This source code is licensed under the ISC license.
117
+ * See the LICENSE file in the root directory of this source tree.
118
+ */const Ch=st("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
119
+ * @license lucide-react v0.562.0 - ISC
120
+ *
121
+ * This source code is licensed under the ISC license.
122
+ * See the LICENSE file in the root directory of this source tree.
123
+ */const _a=st("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
124
+ * @license lucide-react v0.562.0 - ISC
125
+ *
126
+ * This source code is licensed under the ISC license.
127
+ * See the LICENSE file in the root directory of this source tree.
128
+ */const zX=st("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
129
+ * @license lucide-react v0.562.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ */const qX=st("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
134
+ * @license lucide-react v0.562.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const yy=st("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
139
+ * @license lucide-react v0.562.0 - ISC
140
+ *
141
+ * This source code is licensed under the ISC license.
142
+ * See the LICENSE file in the root directory of this source tree.
143
+ */const VX=st("circuit-board",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M11 9h4a2 2 0 0 0 2-2V3",key:"1ve2rv"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"M7 21v-4a2 2 0 0 1 2-2h4",key:"1fwkro"}],["circle",{cx:"15",cy:"15",r:"2",key:"3i40o0"}]]);/**
144
+ * @license lucide-react v0.562.0 - ISC
145
+ *
146
+ * This source code is licensed under the ISC license.
147
+ * See the LICENSE file in the root directory of this source tree.
148
+ */const UX=st("command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/**
149
+ * @license lucide-react v0.562.0 - ISC
150
+ *
151
+ * This source code is licensed under the ISC license.
152
+ * See the LICENSE file in the root directory of this source tree.
153
+ */const HX=st("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
154
+ * @license lucide-react v0.562.0 - ISC
155
+ *
156
+ * This source code is licensed under the ISC license.
157
+ * See the LICENSE file in the root directory of this source tree.
158
+ */const WX=st("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
159
+ * @license lucide-react v0.562.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ */const lT=st("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
164
+ * @license lucide-react v0.562.0 - ISC
165
+ *
166
+ * This source code is licensed under the ISC license.
167
+ * See the LICENSE file in the root directory of this source tree.
168
+ */const KX=st("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
169
+ * @license lucide-react v0.562.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ */const GX=st("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]);/**
174
+ * @license lucide-react v0.562.0 - ISC
175
+ *
176
+ * This source code is licensed under the ISC license.
177
+ * See the LICENSE file in the root directory of this source tree.
178
+ */const YX=st("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
179
+ * @license lucide-react v0.562.0 - ISC
180
+ *
181
+ * This source code is licensed under the ISC license.
182
+ * See the LICENSE file in the root directory of this source tree.
183
+ */const XX=st("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]]);/**
184
+ * @license lucide-react v0.562.0 - ISC
185
+ *
186
+ * This source code is licensed under the ISC license.
187
+ * See the LICENSE file in the root directory of this source tree.
188
+ */const QX=st("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
189
+ * @license lucide-react v0.562.0 - ISC
190
+ *
191
+ * This source code is licensed under the ISC license.
192
+ * See the LICENSE file in the root directory of this source tree.
193
+ */const ZX=st("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
194
+ * @license lucide-react v0.562.0 - ISC
195
+ *
196
+ * This source code is licensed under the ISC license.
197
+ * See the LICENSE file in the root directory of this source tree.
198
+ */const JX=st("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]);/**
199
+ * @license lucide-react v0.562.0 - ISC
200
+ *
201
+ * This source code is licensed under the ISC license.
202
+ * See the LICENSE file in the root directory of this source tree.
203
+ */const eQ=st("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/**
204
+ * @license lucide-react v0.562.0 - ISC
205
+ *
206
+ * This source code is licensed under the ISC license.
207
+ * See the LICENSE file in the root directory of this source tree.
208
+ */const tQ=st("pizza",[["path",{d:"m12 14-1 1",key:"11onhr"}],["path",{d:"m13.75 18.25-1.25 1.42",key:"1yisr3"}],["path",{d:"M17.775 5.654a15.68 15.68 0 0 0-12.121 12.12",key:"1qtqk6"}],["path",{d:"M18.8 9.3a1 1 0 0 0 2.1 7.7",key:"fbbbr2"}],["path",{d:"M21.964 20.732a1 1 0 0 1-1.232 1.232l-18-5a1 1 0 0 1-.695-1.232A19.68 19.68 0 0 1 15.732 2.037a1 1 0 0 1 1.232.695z",key:"1hyfdd"}]]);/**
209
+ * @license lucide-react v0.562.0 - ISC
210
+ *
211
+ * This source code is licensed under the ISC license.
212
+ * See the LICENSE file in the root directory of this source tree.
213
+ */const nQ=st("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
214
+ * @license lucide-react v0.562.0 - ISC
215
+ *
216
+ * This source code is licensed under the ISC license.
217
+ * See the LICENSE file in the root directory of this source tree.
218
+ */const rQ=st("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
219
+ * @license lucide-react v0.562.0 - ISC
220
+ *
221
+ * This source code is licensed under the ISC license.
222
+ * See the LICENSE file in the root directory of this source tree.
223
+ */const oQ=st("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
224
+ * @license lucide-react v0.562.0 - ISC
225
+ *
226
+ * This source code is licensed under the ISC license.
227
+ * See the LICENSE file in the root directory of this source tree.
228
+ */const iQ=st("sun-medium",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]]);/**
229
+ * @license lucide-react v0.562.0 - ISC
230
+ *
231
+ * This source code is licensed under the ISC license.
232
+ * See the LICENSE file in the root directory of this source tree.
233
+ */const aQ=st("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/**
234
+ * @license lucide-react v0.562.0 - ISC
235
+ *
236
+ * This source code is licensed under the ISC license.
237
+ * See the LICENSE file in the root directory of this source tree.
238
+ */const sQ=st("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
239
+ * @license lucide-react v0.562.0 - ISC
240
+ *
241
+ * This source code is licensed under the ISC license.
242
+ * See the LICENSE file in the root directory of this source tree.
243
+ */const lQ=st("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
244
+ * @license lucide-react v0.562.0 - ISC
245
+ *
246
+ * This source code is licensed under the ISC license.
247
+ * See the LICENSE file in the root directory of this source tree.
248
+ */const cQ=st("user-round-x",[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]]);/**
249
+ * @license lucide-react v0.562.0 - ISC
250
+ *
251
+ * This source code is licensed under the ISC license.
252
+ * See the LICENSE file in the root directory of this source tree.
253
+ */const uQ=st("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
254
+ * @license lucide-react v0.562.0 - ISC
255
+ *
256
+ * This source code is licensed under the ISC license.
257
+ * See the LICENSE file in the root directory of this source tree.
258
+ */const dQ=st("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
259
+ * @license lucide-react v0.562.0 - ISC
260
+ *
261
+ * This source code is licensed under the ISC license.
262
+ * See the LICENSE file in the root directory of this source tree.
263
+ */const Eh=st("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cT=g.forwardRef(({...e},t)=>b.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));cT.displayName="Breadcrumb";const uT=g.forwardRef(({className:e,...t},n)=>b.jsx("ol",{ref:n,className:q("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));uT.displayName="BreadcrumbList";const dT=g.forwardRef(({className:e,...t},n)=>b.jsx("li",{ref:n,className:q("inline-flex items-center gap-1.5",e),...t}));dT.displayName="BreadcrumbItem";const fT=g.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?Fi:"a";return b.jsx(o,{ref:r,className:q("transition-colors hover:text-foreground",t),...n})});fT.displayName="BreadcrumbLink";const hT=g.forwardRef(({className:e,...t},n)=>b.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:q("font-normal text-foreground",e),...t}));hT.displayName="BreadcrumbPage";const pT=({children:e,className:t,...n})=>b.jsx("li",{role:"presentation","aria-hidden":"true",className:q("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...n,children:e??b.jsx(_a,{})});pT.displayName="BreadcrumbSeparator";const gT=({className:e,...t})=>b.jsxs("span",{role:"presentation","aria-hidden":"true",className:q("flex h-9 w-9 items-center justify-center",e),...t,children:[b.jsx(lT,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"More"})]});gT.displayName="BreadcrumbElipssis";function fQ(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}const by={},Zc={};function Ma(e,t){try{const r=(by[e]||(by[e]=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format))(t).split("GMT")[1];return r in Zc?Zc[r]:mT(r,r.split(":"))}catch{if(e in Zc)return Zc[e];const n=e==null?void 0:e.match(hQ);return n?mT(e,n.slice(1)):NaN}}const hQ=/([+-]\d\d):?(\d\d)?/;function mT(e,t){const n=+(t[0]||0),r=+(t[1]||0),o=+(t[2]||0)/60;return Zc[e]=n*60+r>0?n*60+r+o:n*60-r-o}class Co extends Date{constructor(...t){super(),t.length>1&&typeof t[t.length-1]=="string"&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(Ma(this.timeZone,this))?this.setTime(NaN):t.length?typeof t[0]=="number"&&(t.length===1||t.length===2&&typeof t[1]!="number")?this.setTime(t[0]):typeof t[0]=="string"?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),yT(this),wy(this)):this.setTime(Date.now())}static tz(t,...n){return n.length?new Co(...n,t):new Co(Date.now(),t)}withTimeZone(t){return new Co(+this,t)}getTimezoneOffset(){const t=-Ma(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),wy(this),+this}[Symbol.for("constructDateFrom")](t){return new Co(+new Date(t),this.timeZone)}}const vT=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!vT.test(e))return;const t=e.replace(vT,"$1UTC");Co.prototype[t]&&(e.startsWith("get")?Co.prototype[e]=function(){return this.internal[t]()}:(Co.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),pQ(this),+this},Co.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),wy(this),+this}))});function wy(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Ma(e.timeZone,e)*60))}function pQ(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),yT(e)}function yT(e){const t=Ma(e.timeZone,e),n=t>0?Math.floor(t):Math.ceil(t),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const o=-new Date(+e).getTimezoneOffset(),i=-new Date(+r).getTimezoneOffset(),a=o-i,s=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();a&&s&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a);const l=o-n;l&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const c=new Date(+e);c.setUTCSeconds(0);const u=o>0?c.getSeconds():(c.getSeconds()-60)%60,d=Math.round(-(Ma(e.timeZone,e)*60))%60;(d||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+d+u));const f=Ma(e.timeZone,e),p=f>0?Math.floor(f):Math.ceil(f),m=-new Date(+e).getTimezoneOffset()-p,v=p!==n,y=m-l;if(v&&y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+y);const w=Ma(e.timeZone,e),x=w>0?Math.floor(w):Math.ceil(w),S=p-x;S&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+S),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+S))}}class Tn extends Co{static tz(t,...n){return n.length?new Tn(...n,t):new Tn(Date.now(),t)}toISOString(){const[t,n,r]=this.tzComponents(),o=`${t}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+o}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[t,n,r,o]=this.internal.toUTCString().split(" ");return`${t==null?void 0:t.slice(0,-1)} ${r} ${n} ${o}`}toTimeString(){const t=this.internal.toUTCString().split(" ")[4],[n,r,o]=this.tzComponents();return`${t} GMT${n}${r}${o} (${fQ(this.timeZone,this)})`}toLocaleString(t,n){return Date.prototype.toLocaleString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleDateString(t,n){return Date.prototype.toLocaleDateString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}toLocaleTimeString(t,n){return Date.prototype.toLocaleTimeString.call(this,t,{...n,timeZone:(n==null?void 0:n.timeZone)||this.timeZone})}tzComponents(){const t=this.getTimezoneOffset(),n=t>0?"-":"+",r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),o=String(Math.abs(t)%60).padStart(2,"0");return[n,r,o]}withTimeZone(t){return new Tn(+this,t)}[Symbol.for("constructDateFrom")](t){return new Tn(+new Date(t),this.timeZone)}}const bT=6048e5,gQ=864e5,wT=Symbol.for("constructDateFrom");function Gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&wT in e?e[wT](t):e instanceof Date?new e.constructor(t):new Date(t)}function St(e,t){return Gt(t||e,e)}function xT(e,t,n){const r=St(e,n==null?void 0:n.in);return isNaN(t)?Gt(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function ST(e,t,n){const r=St(e,n==null?void 0:n.in);if(isNaN(t))return Gt(e,NaN);if(!t)return r;const o=r.getDate(),i=Gt(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}let mQ={};function Jc(){return mQ}function Xs(e,t){var s,l,c,u;const n=Jc(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=St(e,t==null?void 0:t.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function eu(e,t){return Xs(e,{...t,weekStartsOn:1})}function CT(e,t){const n=St(e,t==null?void 0:t.in),r=n.getFullYear(),o=Gt(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=eu(o),a=Gt(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=eu(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function ET(e){const t=St(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Qs(e,...t){const n=Gt.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function tu(e,t){const n=St(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function xy(e,t,n){const[r,o]=Qs(n==null?void 0:n.in,e,t),i=tu(r),a=tu(o),s=+i-ET(i),l=+a-ET(a);return Math.round((s-l)/gQ)}function vQ(e,t){const n=CT(e,t),r=Gt(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),eu(r)}function yQ(e,t,n){return xT(e,t*7,n)}function bQ(e,t,n){return ST(e,t*12,n)}function wQ(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Gt.bind(null,o));const i=St(o,r);(!n||n<i||isNaN(+i))&&(n=i)}),Gt(r,n||NaN)}function xQ(e,t){let n,r=t==null?void 0:t.in;return e.forEach(o=>{!r&&typeof o=="object"&&(r=Gt.bind(null,o));const i=St(o,r);(!n||n>i||isNaN(+i))&&(n=i)}),Gt(r,n||NaN)}function SQ(e,t,n){const[r,o]=Qs(n==null?void 0:n.in,e,t);return+tu(r)==+tu(o)}function PT(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function CQ(e){return!(!PT(e)&&typeof e!="number"||isNaN(+St(e)))}function OT(e,t,n){const[r,o]=Qs(n==null?void 0:n.in,e,t),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function EQ(e,t){const n=St(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function TT(e,t){const[n,r]=Qs(e,t.start,t.end);return{start:n,end:r}}function PQ(e,t){const{start:n,end:r}=TT(t==null?void 0:t.in,e);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setDate(1);let s=1;const l=[];for(;+a<=i;)l.push(Gt(n,a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}function OQ(e,t){const n=St(e,t==null?void 0:t.in);return n.setDate(1),n.setHours(0,0,0,0),n}function TQ(e,t){const n=St(e,t==null?void 0:t.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function _T(e,t){const n=St(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function _Q(e,t){const{start:n,end:r}=TT(t==null?void 0:t.in,e);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let s=1;const l=[];for(;+a<=i;)l.push(Gt(n,a)),a.setFullYear(a.getFullYear()+s);return o?l.reverse():l}function MT(e,t){var s,l,c,u;const n=Jc(),r=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,o=St(e,t==null?void 0:t.in),i=o.getDay(),a=(i<r?-7:0)+6-(i-r);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function MQ(e,t){return MT(e,{...t,weekStartsOn:1})}const kQ={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},AQ=(e,t,n)=>{let r;const o=kQ[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Sy(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const DQ={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},NQ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$Q={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},IQ={date:Sy({formats:DQ,defaultWidth:"full"}),time:Sy({formats:NQ,defaultWidth:"full"}),dateTime:Sy({formats:$Q,defaultWidth:"full"})},LQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},FQ=(e,t,n,r)=>LQ[e];function nu(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;o=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[s]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const RQ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},BQ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jQ={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},zQ={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},qQ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},VQ={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},UQ={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:nu({values:RQ,defaultWidth:"wide"}),quarter:nu({values:BQ,defaultWidth:"wide",argumentCallback:e=>e-1}),month:nu({values:jQ,defaultWidth:"wide"}),day:nu({values:zQ,defaultWidth:"wide"}),dayPeriod:nu({values:qQ,defaultWidth:"wide",formattingValues:VQ,defaultFormattingWidth:"wide"})};function ru(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?WQ(s,d=>d.test(a)):HQ(s,d=>d.test(a));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function HQ(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function WQ(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function KQ(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(o.length);return{value:a,rest:s}}}const GQ=/^(\d+)(th|st|nd|rd)?/i,YQ=/\d+/i,XQ={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},QQ={any:[/^b/i,/^(a|c)/i]},ZQ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},JQ={any:[/1/i,/2/i,/3/i,/4/i]},eZ={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tZ={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nZ={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rZ={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},oZ={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},iZ={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},aZ={ordinalNumber:KQ({matchPattern:GQ,parsePattern:YQ,valueCallback:e=>parseInt(e,10)}),era:ru({matchPatterns:XQ,defaultMatchWidth:"wide",parsePatterns:QQ,defaultParseWidth:"any"}),quarter:ru({matchPatterns:ZQ,defaultMatchWidth:"wide",parsePatterns:JQ,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ru({matchPatterns:eZ,defaultMatchWidth:"wide",parsePatterns:tZ,defaultParseWidth:"any"}),day:ru({matchPatterns:nZ,defaultMatchWidth:"wide",parsePatterns:rZ,defaultParseWidth:"any"}),dayPeriod:ru({matchPatterns:oZ,defaultMatchWidth:"any",parsePatterns:iZ,defaultParseWidth:"any"})},Zs={code:"en-US",formatDistance:AQ,formatLong:IQ,formatRelative:FQ,localize:UQ,match:aZ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sZ(e,t){const n=St(e,t==null?void 0:t.in);return xy(n,_T(n))+1}function Cy(e,t){const n=St(e,t==null?void 0:t.in),r=+eu(n)-+vQ(n);return Math.round(r/bT)+1}function kT(e,t){var u,d,f,p;const n=St(e,t==null?void 0:t.in),r=n.getFullYear(),o=Jc(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??o.firstWeekContainsDate??((p=(f=o.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=Gt((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const s=Xs(a,t),l=Gt((t==null?void 0:t.in)||e,0);l.setFullYear(r,0,i),l.setHours(0,0,0,0);const c=Xs(l,t);return+n>=+s?r+1:+n>=+c?r:r-1}function lZ(e,t){var s,l,c,u;const n=Jc(),r=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(c=n.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,o=kT(e,t),i=Gt((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),Xs(i,t)}function Ey(e,t){const n=St(e,t==null?void 0:t.in),r=+Xs(n,t)-+lZ(n,t);return Math.round(r/bT)+1}function vt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ri={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return vt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):vt(n+1,2)},d(e,t){return vt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return vt(e.getHours()%12||12,t.length)},H(e,t){return vt(e.getHours(),t.length)},m(e,t){return vt(e.getMinutes(),t.length)},s(e,t){return vt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return vt(o,t.length)}},Js={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},AT={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Ri.y(e,t)},Y:function(e,t,n,r){const o=kT(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return vt(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):vt(i,t.length)},R:function(e,t){const n=CT(e);return vt(n,t.length)},u:function(e,t){const n=e.getFullYear();return vt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return vt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return vt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Ri.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return vt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Ey(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):vt(o,t.length)},I:function(e,t,n){const r=Cy(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):vt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ri.d(e,t)},D:function(e,t,n){const r=sZ(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):vt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return vt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return vt(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return vt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Js.noon:r===0?o=Js.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Js.evening:r>=12?o=Js.afternoon:r>=4?o=Js.morning:o=Js.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ri.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ri.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):vt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):vt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ri.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ri.s(e,t)},S:function(e,t){return Ri.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return NT(r);case"XXXX":case"XX":return ka(r);case"XXXXX":case"XXX":default:return ka(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return NT(r);case"xxxx":case"xx":return ka(r);case"xxxxx":case"xxx":default:return ka(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+DT(r,":");case"OOOO":default:return"GMT"+ka(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+DT(r,":");case"zzzz":default:return"GMT"+ka(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return vt(r,t.length)},T:function(e,t,n){return vt(+e,t.length)}};function DT(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+vt(i,2)}function NT(e,t){return e%60===0?(e>0?"-":"+")+vt(Math.abs(e)/60,2):ka(e,t)}function ka(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=vt(Math.trunc(r/60),2),i=vt(r%60,2);return n+o+t+i}const $T=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},IT=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},cZ={p:IT,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return $T(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",$T(r,t)).replace("{{time}}",IT(o,t))}},uZ=/^D+$/,dZ=/^Y+$/,fZ=["D","DD","YY","YYYY"];function hZ(e){return uZ.test(e)}function pZ(e){return dZ.test(e)}function gZ(e,t,n){const r=mZ(e,t,n);if(console.warn(r),fZ.includes(e))throw new RangeError(r)}function mZ(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const vZ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yZ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bZ=/^'([^]*?)'?$/,wZ=/''/g,xZ=/[a-zA-Z]/;function ou(e,t,n){var u,d,f,p,h,m,v,y;const r=Jc(),o=(n==null?void 0:n.locale)??r.locale??Zs,i=(n==null?void 0:n.firstWeekContainsDate)??((d=(u=n==null?void 0:n.locale)==null?void 0:u.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((p=(f=r.locale)==null?void 0:f.options)==null?void 0:p.firstWeekContainsDate)??1,a=(n==null?void 0:n.weekStartsOn)??((m=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((y=(v=r.locale)==null?void 0:v.options)==null?void 0:y.weekStartsOn)??0,s=St(e,n==null?void 0:n.in);if(!CQ(s))throw new RangeError("Invalid time value");let l=t.match(yZ).map(w=>{const x=w[0];if(x==="p"||x==="P"){const S=cZ[x];return S(w,o.formatLong)}return w}).join("").match(vZ).map(w=>{if(w==="''")return{isToken:!1,value:"'"};const x=w[0];if(x==="'")return{isToken:!1,value:SZ(w)};if(AT[x])return{isToken:!0,value:w};if(x.match(xZ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:w}});o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map(w=>{if(!w.isToken)return w.value;const x=w.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&pZ(x)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&hZ(x))&&gZ(x,t,String(e));const S=AT[x[0]];return S(s,x,o.localize,c)}).join("")}function SZ(e){const t=e.match(bZ);return t?t[1].replace(wZ,"'"):e}function CZ(e,t){const n=St(e,t==null?void 0:t.in),r=n.getFullYear(),o=n.getMonth(),i=Gt(n,0);return i.setFullYear(r,o+1,0),i.setHours(0,0,0,0),i.getDate()}function EZ(e,t){return St(e,t==null?void 0:t.in).getMonth()}function PZ(e,t){return St(e,t==null?void 0:t.in).getFullYear()}function OZ(e,t){return+St(e)>+St(t)}function TZ(e,t){return+St(e)<+St(t)}function _Z(e,t,n){const[r,o]=Qs(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function MZ(e,t,n){const[r,o]=Qs(n==null?void 0:n.in,e,t);return r.getFullYear()===o.getFullYear()}function kZ(e,t,n){const r=St(e,n==null?void 0:n.in),o=r.getFullYear(),i=r.getDate(),a=Gt(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=CZ(a);return r.setMonth(t,Math.min(i,s)),r}function AZ(e,t,n){const r=St(e,n==null?void 0:n.in);return isNaN(+r)?Gt(e,NaN):(r.setFullYear(t),r)}const LT=5,DZ=4;function NZ(e,t){const n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,o=t.addDays(e,-r+1),i=t.addDays(o,LT*7-1);return t.getMonth(e)===t.getMonth(i)?LT:DZ}function FT(e,t){const n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function $Z(e,t){const n=FT(e,t),r=NZ(e,t);return t.addDays(n,r*7-1)}const RT={...Zs,labels:{labelDayButton:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>ou(a,s,{locale:Zs,...n});let i=o(e,"PPPP");return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:"Choose the Year",labelGrid:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>ou(o,i,{locale:Zs,...t}),r(e,"LLLL yyyy")},labelGridcell:(e,t,n,r)=>{let o;r&&typeof r.format=="function"?o=r.format.bind(r):o=(a,s)=>ou(a,s,{locale:Zs,...n});let i=o(e,"PPPP");return t!=null&&t.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(e,t,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(o,i)=>ou(o,i,{locale:Zs,...t}),r(e,"cccc")}}};class ir{constructor(t,n){this.Date=Date,this.today=()=>{var r;return(r=this.overrides)!=null&&r.today?this.overrides.today():this.options.timeZone?Tn.tz(this.options.timeZone):new this.Date},this.newDate=(r,o,i)=>{var a;return(a=this.overrides)!=null&&a.newDate?this.overrides.newDate(r,o,i):this.options.timeZone?new Tn(r,o,i,this.options.timeZone):new Date(r,o,i)},this.addDays=(r,o)=>{var i;return(i=this.overrides)!=null&&i.addDays?this.overrides.addDays(r,o):xT(r,o)},this.addMonths=(r,o)=>{var i;return(i=this.overrides)!=null&&i.addMonths?this.overrides.addMonths(r,o):ST(r,o)},this.addWeeks=(r,o)=>{var i;return(i=this.overrides)!=null&&i.addWeeks?this.overrides.addWeeks(r,o):yQ(r,o)},this.addYears=(r,o)=>{var i;return(i=this.overrides)!=null&&i.addYears?this.overrides.addYears(r,o):bQ(r,o)},this.differenceInCalendarDays=(r,o)=>{var i;return(i=this.overrides)!=null&&i.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,o):xy(r,o)},this.differenceInCalendarMonths=(r,o)=>{var i;return(i=this.overrides)!=null&&i.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,o):OT(r,o)},this.eachMonthOfInterval=r=>{var o;return(o=this.overrides)!=null&&o.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):PQ(r)},this.eachYearOfInterval=r=>{var s;const o=(s=this.overrides)!=null&&s.eachYearOfInterval?this.overrides.eachYearOfInterval(r):_Q(r),i=new Set(o.map(l=>this.getYear(l)));if(i.size===o.length)return o;const a=[];return i.forEach(l=>{a.push(new Date(l,0,1))}),a},this.endOfBroadcastWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):$Z(r,this)},this.endOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.endOfISOWeek?this.overrides.endOfISOWeek(r):MQ(r)},this.endOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.endOfMonth?this.overrides.endOfMonth(r):EQ(r)},this.endOfWeek=(r,o)=>{var i;return(i=this.overrides)!=null&&i.endOfWeek?this.overrides.endOfWeek(r,o):MT(r,this.options)},this.endOfYear=r=>{var o;return(o=this.overrides)!=null&&o.endOfYear?this.overrides.endOfYear(r):TQ(r)},this.format=(r,o,i)=>{var s;const a=(s=this.overrides)!=null&&s.format?this.overrides.format(r,o,this.options):ou(r,o,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.getISOWeek?this.overrides.getISOWeek(r):Cy(r)},this.getMonth=(r,o)=>{var i;return(i=this.overrides)!=null&&i.getMonth?this.overrides.getMonth(r,this.options):EZ(r,this.options)},this.getYear=(r,o)=>{var i;return(i=this.overrides)!=null&&i.getYear?this.overrides.getYear(r,this.options):PZ(r,this.options)},this.getWeek=(r,o)=>{var i;return(i=this.overrides)!=null&&i.getWeek?this.overrides.getWeek(r,this.options):Ey(r,this.options)},this.isAfter=(r,o)=>{var i;return(i=this.overrides)!=null&&i.isAfter?this.overrides.isAfter(r,o):OZ(r,o)},this.isBefore=(r,o)=>{var i;return(i=this.overrides)!=null&&i.isBefore?this.overrides.isBefore(r,o):TZ(r,o)},this.isDate=r=>{var o;return(o=this.overrides)!=null&&o.isDate?this.overrides.isDate(r):PT(r)},this.isSameDay=(r,o)=>{var i;return(i=this.overrides)!=null&&i.isSameDay?this.overrides.isSameDay(r,o):SQ(r,o)},this.isSameMonth=(r,o)=>{var i;return(i=this.overrides)!=null&&i.isSameMonth?this.overrides.isSameMonth(r,o):_Z(r,o)},this.isSameYear=(r,o)=>{var i;return(i=this.overrides)!=null&&i.isSameYear?this.overrides.isSameYear(r,o):MZ(r,o)},this.max=r=>{var o;return(o=this.overrides)!=null&&o.max?this.overrides.max(r):wQ(r)},this.min=r=>{var o;return(o=this.overrides)!=null&&o.min?this.overrides.min(r):xQ(r)},this.setMonth=(r,o)=>{var i;return(i=this.overrides)!=null&&i.setMonth?this.overrides.setMonth(r,o):kZ(r,o)},this.setYear=(r,o)=>{var i;return(i=this.overrides)!=null&&i.setYear?this.overrides.setYear(r,o):AZ(r,o)},this.startOfBroadcastWeek=(r,o)=>{var i;return(i=this.overrides)!=null&&i.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):FT(r,this)},this.startOfDay=r=>{var o;return(o=this.overrides)!=null&&o.startOfDay?this.overrides.startOfDay(r):tu(r)},this.startOfISOWeek=r=>{var o;return(o=this.overrides)!=null&&o.startOfISOWeek?this.overrides.startOfISOWeek(r):eu(r)},this.startOfMonth=r=>{var o;return(o=this.overrides)!=null&&o.startOfMonth?this.overrides.startOfMonth(r):OQ(r)},this.startOfWeek=(r,o)=>{var i;return(i=this.overrides)!=null&&i.startOfWeek?this.overrides.startOfWeek(r,this.options):Xs(r,this.options)},this.startOfYear=r=>{var o;return(o=this.overrides)!=null&&o.startOfYear?this.overrides.startOfYear(r):_T(r)},this.options={locale:RT,...t},this.overrides=n}getDigitMap(){const{numerals:t="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:t}),r={};for(let o=0;o<10;o++)r[o.toString()]=n.format(o);return r}replaceDigits(t){const n=this.getDigitMap();return t.replace(/\d/g,r=>n[r]||r)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){var n;const t=(n=this.options.locale)==null?void 0:n.code;return t&&ir.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){const{locale:n,timeZone:r,numerals:o}=this.options,i=n==null?void 0:n.code;if(i&&ir.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:r,numberingSystem:o}).format(t)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(t,a)}}ir.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Eo=new ir;class BT{constructor(t,n,r=Eo){this.date=t,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(t,n)),this.dateLib=r,this.isoDate=r.format(t,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class IZ{constructor(t,n){this.date=t,this.weeks=n}}class LZ{constructor(t,n){this.days=n,this.weekNumber=t}}function FZ(e){return O.createElement("button",{...e})}function RZ(e){return O.createElement("span",{...e})}function BZ(e){const{size:t=24,orientation:n="left",className:r}=e;return O.createElement("svg",{className:r,width:t,height:t,viewBox:"0 0 24 24"},n==="up"&&O.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&O.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&O.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&O.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function jZ(e){const{day:t,modifiers:n,...r}=e;return O.createElement("td",{...r})}function zZ(e){const{day:t,modifiers:n,...r}=e,o=O.useRef(null);return O.useEffect(()=>{var i;n.focused&&((i=o.current)==null||i.focus())},[n.focused]),O.createElement("button",{ref:o,...r})}var Ke;(function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"})(Ke||(Ke={}));var Bt;(function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"})(Bt||(Bt={}));var Qr;(function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"})(Qr||(Qr={}));var ar;(function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"})(ar||(ar={}));function qZ(e){const{options:t,className:n,components:r,classNames:o,...i}=e,a=[o[Ke.Dropdown],n].join(" "),s=t==null?void 0:t.find(({value:l})=>l===i.value);return O.createElement("span",{"data-disabled":i.disabled,className:o[Ke.DropdownRoot]},O.createElement(r.Select,{className:a,...i},t==null?void 0:t.map(({value:l,label:c,disabled:u})=>O.createElement(r.Option,{key:l,value:l,disabled:u},c))),O.createElement("span",{className:o[Ke.CaptionLabel],"aria-hidden":!0},s==null?void 0:s.label,O.createElement(r.Chevron,{orientation:"down",size:18,className:o[Ke.Chevron]})))}function VZ(e){return O.createElement("div",{...e})}function UZ(e){return O.createElement("div",{...e})}function HZ(e){const{calendarMonth:t,displayIndex:n,...r}=e;return O.createElement("div",{...r},e.children)}function WZ(e){const{calendarMonth:t,displayIndex:n,...r}=e;return O.createElement("div",{...r})}function KZ(e){return O.createElement("table",{...e})}function GZ(e){return O.createElement("div",{...e})}const jT=O.createContext(void 0);function iu(){const e=O.useContext(jT);if(e===void 0)throw new Error("useDayPicker() must be used within a custom component.");return e}function YZ(e){const{components:t}=iu();return O.createElement(t.Dropdown,{...e})}function XZ(e){const{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:o,...i}=e,{components:a,classNames:s,labels:{labelPrevious:l,labelNext:c}}=iu(),u=O.useCallback(f=>{o&&(n==null||n(f))},[o,n]),d=O.useCallback(f=>{r&&(t==null||t(f))},[r,t]);return O.createElement("nav",{...i},O.createElement(a.PreviousMonthButton,{type:"button",className:s[Ke.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:d},O.createElement(a.Chevron,{disabled:r?void 0:!0,className:s[Ke.Chevron],orientation:"left"})),O.createElement(a.NextMonthButton,{type:"button",className:s[Ke.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":o?void 0:!0,"aria-label":c(o),onClick:u},O.createElement(a.Chevron,{disabled:o?void 0:!0,orientation:"right",className:s[Ke.Chevron]})))}function QZ(e){const{components:t}=iu();return O.createElement(t.Button,{...e})}function ZZ(e){return O.createElement("option",{...e})}function JZ(e){const{components:t}=iu();return O.createElement(t.Button,{...e})}function eJ(e){const{rootRef:t,...n}=e;return O.createElement("div",{...n,ref:t})}function tJ(e){return O.createElement("select",{...e})}function nJ(e){const{week:t,...n}=e;return O.createElement("tr",{...n})}function rJ(e){return O.createElement("th",{...e})}function oJ(e){return O.createElement("thead",{"aria-hidden":!0},O.createElement("tr",{...e}))}function iJ(e){const{week:t,...n}=e;return O.createElement("th",{...n})}function aJ(e){return O.createElement("th",{...e})}function sJ(e){return O.createElement("tbody",{...e})}function lJ(e){const{components:t}=iu();return O.createElement(t.Dropdown,{...e})}const cJ=Object.freeze(Object.defineProperty({__proto__:null,Button:FZ,CaptionLabel:RZ,Chevron:BZ,Day:jZ,DayButton:zZ,Dropdown:qZ,DropdownNav:VZ,Footer:UZ,Month:HZ,MonthCaption:WZ,MonthGrid:KZ,Months:GZ,MonthsDropdown:YZ,Nav:XZ,NextMonthButton:QZ,Option:ZZ,PreviousMonthButton:JZ,Root:eJ,Select:tJ,Week:nJ,WeekNumber:iJ,WeekNumberHeader:aJ,Weekday:rJ,Weekdays:oJ,Weeks:sJ,YearsDropdown:lJ},Symbol.toStringTag,{value:"Module"}));function ui(e,t,n=!1,r=Eo){let{from:o,to:i}=e;const{differenceInCalendarDays:a,isSameDay:s}=r;return o&&i?(a(i,o)<0&&([o,i]=[i,o]),a(t,o)>=(n?1:0)&&a(i,t)>=(n?1:0)):!n&&i?s(i,t):!n&&o?s(o,t):!1}function Py(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function Ph(e){return!!(e&&typeof e=="object"&&"from"in e)}function Oy(e){return!!(e&&typeof e=="object"&&"after"in e)}function Ty(e){return!!(e&&typeof e=="object"&&"before"in e)}function zT(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function qT(e,t){return Array.isArray(e)&&e.every(t.isDate)}function di(e,t,n=Eo){const r=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:i,isAfter:a}=n;return r.some(s=>{if(typeof s=="boolean")return s;if(n.isDate(s))return o(e,s);if(qT(s,n))return s.some(l=>o(e,l));if(Ph(s))return ui(s,e,!1,n);if(zT(s))return Array.isArray(s.dayOfWeek)?s.dayOfWeek.includes(e.getDay()):s.dayOfWeek===e.getDay();if(Py(s)){const l=i(s.before,e),c=i(s.after,e),u=l>0,d=c<0;return a(s.before,s.after)?d&&u:u||d}return Oy(s)?i(e,s.after)>0:Ty(s)?i(s.before,e)>0:typeof s=="function"?s(e):!1})}function uJ(e,t,n,r,o){const{disabled:i,hidden:a,modifiers:s,showOutsideDays:l,broadcastCalendar:c,today:u=o.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:h,endOfMonth:m,isAfter:v}=o,y=n&&p(n),w=r&&m(r),x={[Bt.focused]:[],[Bt.outside]:[],[Bt.disabled]:[],[Bt.hidden]:[],[Bt.today]:[]},S={};for(const C of e){const{date:E,displayMonth:P}=C,_=!!(P&&!f(E,P)),T=!!(y&&h(E,y)),M=!!(w&&v(E,w)),A=!!(i&&di(E,i,o)),D=!!(a&&di(E,a,o))||T||M||!c&&!l&&_||c&&l===!1&&_,N=d(E,u);_&&x.outside.push(C),A&&x.disabled.push(C),D&&x.hidden.push(C),N&&x.today.push(C),s&&Object.keys(s).forEach(R=>{const U=s==null?void 0:s[R];U&&di(E,U,o)&&(S[R]?S[R].push(C):S[R]=[C])})}return C=>{const E={[Bt.focused]:!1,[Bt.disabled]:!1,[Bt.hidden]:!1,[Bt.outside]:!1,[Bt.today]:!1},P={};for(const _ in x){const T=x[_];E[_]=T.some(M=>M===C)}for(const _ in S)P[_]=S[_].some(T=>T===C);return{...E,...P}}}function dJ(e,t,n={}){return Object.entries(e).filter(([,o])=>o===!0).reduce((o,[i])=>(n[i]?o.push(n[i]):t[Bt[i]]?o.push(t[Bt[i]]):t[Qr[i]]&&o.push(t[Qr[i]]),o),[t[Ke.Day]])}function fJ(e){return{...cJ,...e}}function hJ(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([n,r])=>{n.startsWith("data-")&&(t[n]=r)}),t}function pJ(){const e={};for(const t in Ke)e[Ke[t]]=`rdp-${Ke[t]}`;for(const t in Bt)e[Bt[t]]=`rdp-${Bt[t]}`;for(const t in Qr)e[Qr[t]]=`rdp-${Qr[t]}`;for(const t in ar)e[ar[t]]=`rdp-${ar[t]}`;return e}function VT(e,t,n){return(n??new ir(t)).formatMonthYear(e)}const gJ=VT;function mJ(e,t,n){return(n??new ir(t)).format(e,"d")}function vJ(e,t=Eo){return t.format(e,"LLLL")}function yJ(e,t,n){return(n??new ir(t)).format(e,"cccccc")}function bJ(e,t=Eo){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function wJ(){return""}function UT(e,t=Eo){return t.format(e,"yyyy")}const xJ=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:VT,formatDay:mJ,formatMonthCaption:gJ,formatMonthDropdown:vJ,formatWeekNumber:bJ,formatWeekNumberHeader:wJ,formatWeekdayName:yJ,formatYearCaption:UT,formatYearDropdown:UT},Symbol.toStringTag,{value:"Module"}));function SJ(e){return e!=null&&e.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e!=null&&e.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...xJ,...e}}function _y(e,t,n,r){let o=(r??new ir(n)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const CJ=_y;function My(e,t,n){return(n??new ir(t)).formatMonthYear(e)}const EJ=My;function HT(e,t,n,r){let o=(r??new ir(n)).format(e,"PPPP");return t!=null&&t.today&&(o=`Today, ${o}`),o}function WT(e){return"Choose the Month"}function KT(){return""}const PJ="Go to the Next Month";function GT(e,t){return PJ}function YT(e){return"Go to the Previous Month"}function XT(e,t,n){return(n??new ir(t)).format(e,"cccc")}function QT(e,t){return`Week ${e}`}function ZT(e){return"Week Number"}function JT(e){return"Choose the Year"}const OJ=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:EJ,labelDay:CJ,labelDayButton:_y,labelGrid:My,labelGridcell:HT,labelMonthDropdown:WT,labelNav:KT,labelNext:GT,labelPrevious:YT,labelWeekNumber:QT,labelWeekNumberHeader:ZT,labelWeekday:XT,labelYearDropdown:JT},Symbol.toStringTag,{value:"Module"})),Zr=(e,t,n)=>t||(n?typeof n=="function"?n:(...r)=>n:e);function TJ(e,t){var r;const n=((r=t.locale)==null?void 0:r.labels)??{};return{...OJ,...e??{},labelDayButton:Zr(_y,e==null?void 0:e.labelDayButton,n.labelDayButton),labelMonthDropdown:Zr(WT,e==null?void 0:e.labelMonthDropdown,n.labelMonthDropdown),labelNext:Zr(GT,e==null?void 0:e.labelNext,n.labelNext),labelPrevious:Zr(YT,e==null?void 0:e.labelPrevious,n.labelPrevious),labelWeekNumber:Zr(QT,e==null?void 0:e.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Zr(JT,e==null?void 0:e.labelYearDropdown,n.labelYearDropdown),labelGrid:Zr(My,e==null?void 0:e.labelGrid,n.labelGrid),labelGridcell:Zr(HT,e==null?void 0:e.labelGridcell,n.labelGridcell),labelNav:Zr(KT,e==null?void 0:e.labelNav,n.labelNav),labelWeekNumberHeader:Zr(ZT,e==null?void 0:e.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Zr(XT,e==null?void 0:e.labelWeekday,n.labelWeekday)}}function _J(e,t,n,r,o){const{startOfMonth:i,startOfYear:a,endOfYear:s,eachMonthOfInterval:l,getMonth:c}=o;return l({start:a(e),end:s(e)}).map(f=>{const p=r.formatMonthDropdown(f,o),h=c(f),m=t&&f<i(t)||n&&f>i(n)||!1;return{value:h,label:p,disabled:m}})}function MJ(e,t={},n={}){let r={...t==null?void 0:t[Ke.Day]};return Object.entries(e).filter(([,o])=>o===!0).forEach(([o])=>{r={...r,...n==null?void 0:n[o]}}),r}function kJ(e,t,n,r){const o=r??e.today(),i=n?e.startOfBroadcastWeek(o,e):t?e.startOfISOWeek(o):e.startOfWeek(o),a=[];for(let s=0;s<7;s++){const l=e.addDays(i,s);a.push(l)}return a}function AJ(e,t,n,r,o=!1){if(!e||!t)return;const{startOfYear:i,endOfYear:a,eachYearOfInterval:s,getYear:l}=r,c=i(e),u=a(t),d=s({start:c,end:u});return o&&d.reverse(),d.map(f=>{const p=n.formatYearDropdown(f,r);return{value:l(f),label:p,disabled:!1}})}function DJ(e,t={}){var s;const{weekStartsOn:n,locale:r}=t,o=n??((s=r==null?void 0:r.options)==null?void 0:s.weekStartsOn)??0,i=l=>{const c=typeof l=="number"||typeof l=="string"?new Date(l):l;return new Tn(c.getFullYear(),c.getMonth(),c.getDate(),12,0,0,e)},a=l=>{const c=i(l);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0,0)};return{today:()=>i(Tn.tz(e)),newDate:(l,c,u)=>new Tn(l,c,u,12,0,0,e),startOfDay:l=>i(l),startOfWeek:(l,c)=>{const u=i(l),d=(c==null?void 0:c.weekStartsOn)??o,f=(u.getDay()-d+7)%7;return u.setDate(u.getDate()-f),u},startOfISOWeek:l=>{const c=i(l),u=(c.getDay()-1+7)%7;return c.setDate(c.getDate()-u),c},startOfMonth:l=>{const c=i(l);return c.setDate(1),c},startOfYear:l=>{const c=i(l);return c.setMonth(0,1),c},endOfWeek:(l,c)=>{const u=i(l),p=((((c==null?void 0:c.weekStartsOn)??o)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+p),u},endOfISOWeek:l=>{const c=i(l),u=(7-c.getDay())%7;return c.setDate(c.getDate()+u),c},endOfMonth:l=>{const c=i(l);return c.setMonth(c.getMonth()+1,0),c},endOfYear:l=>{const c=i(l);return c.setMonth(11,31),c},eachMonthOfInterval:l=>{const c=i(l.start),u=i(l.end),d=[],f=new Tn(c.getFullYear(),c.getMonth(),1,12,0,0,e),p=u.getFullYear()*12+u.getMonth();for(;f.getFullYear()*12+f.getMonth()<=p;)d.push(new Tn(f,e)),f.setMonth(f.getMonth()+1,1);return d},addDays:(l,c)=>{const u=i(l);return u.setDate(u.getDate()+c),u},addWeeks:(l,c)=>{const u=i(l);return u.setDate(u.getDate()+c*7),u},addMonths:(l,c)=>{const u=i(l);return u.setMonth(u.getMonth()+c),u},addYears:(l,c)=>{const u=i(l);return u.setFullYear(u.getFullYear()+c),u},eachYearOfInterval:l=>{const c=i(l.start),u=i(l.end),d=[],f=new Tn(c.getFullYear(),0,1,12,0,0,e);for(;f.getFullYear()<=u.getFullYear();)d.push(new Tn(f,e)),f.setFullYear(f.getFullYear()+1,0,1);return d},getWeek:(l,c)=>{var d;const u=a(l);return Ey(u,{weekStartsOn:(c==null?void 0:c.weekStartsOn)??o,firstWeekContainsDate:(c==null?void 0:c.firstWeekContainsDate)??((d=r==null?void 0:r.options)==null?void 0:d.firstWeekContainsDate)??1})},getISOWeek:l=>{const c=a(l);return Cy(c)},differenceInCalendarDays:(l,c)=>{const u=a(l),d=a(c);return xy(u,d)},differenceInCalendarMonths:(l,c)=>{const u=a(l),d=a(c);return OT(u,d)}}}const au=e=>e instanceof HTMLElement?e:null,ky=e=>[...e.querySelectorAll("[data-animated-month]")??[]],NJ=e=>au(e.querySelector("[data-animated-month]")),Ay=e=>au(e.querySelector("[data-animated-caption]")),Dy=e=>au(e.querySelector("[data-animated-weeks]")),$J=e=>au(e.querySelector("[data-animated-nav]")),IJ=e=>au(e.querySelector("[data-animated-weekdays]"));function LJ(e,t,{classNames:n,months:r,focused:o,dateLib:i}){const a=O.useRef(null),s=O.useRef(r),l=O.useRef(!1);O.useLayoutEffect(()=>{const c=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||c.length===0||r.length!==c.length)return;const u=i.isSameMonth(r[0].date,c[0].date),d=i.isAfter(r[0].date,c[0].date),f=d?n[ar.caption_after_enter]:n[ar.caption_before_enter],p=d?n[ar.weeks_after_enter]:n[ar.weeks_before_enter],h=a.current,m=e.current.cloneNode(!0);if(m instanceof HTMLElement?(ky(m).forEach(x=>{if(!(x instanceof HTMLElement))return;const S=NJ(x);S&&x.contains(S)&&x.removeChild(S);const C=Ay(x);C&&C.classList.remove(f);const E=Dy(x);E&&E.classList.remove(p)}),a.current=m):a.current=null,l.current||u||o)return;const v=h instanceof HTMLElement?ky(h):[],y=ky(e.current);if(y!=null&&y.every(w=>w instanceof HTMLElement)&&v&&v.every(w=>w instanceof HTMLElement)){l.current=!0,e.current.style.isolation="isolate";const w=$J(e.current);w&&(w.style.zIndex="1"),y.forEach((x,S)=>{const C=v[S];if(!C)return;x.style.position="relative",x.style.overflow="hidden";const E=Ay(x);E&&E.classList.add(f);const P=Dy(x);P&&P.classList.add(p);const _=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),w&&(w.style.zIndex=""),E&&E.classList.remove(f),P&&P.classList.remove(p),x.style.position="",x.style.overflow="",x.contains(C)&&x.removeChild(C)};C.style.pointerEvents="none",C.style.position="absolute",C.style.overflow="hidden",C.setAttribute("aria-hidden","true");const T=IJ(C);T&&(T.style.opacity="0");const M=Ay(C);M&&(M.classList.add(d?n[ar.caption_before_exit]:n[ar.caption_after_exit]),M.addEventListener("animationend",_));const A=Dy(C);A&&A.classList.add(d?n[ar.weeks_before_exit]:n[ar.weeks_after_exit]),x.insertBefore(C,x.firstChild)})}})}function FJ(e,t,n,r){const o=e[0],i=e[e.length-1],{ISOWeek:a,fixedWeeks:s,broadcastCalendar:l}=n??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:h,endOfWeek:m,isAfter:v,startOfBroadcastWeek:y,startOfISOWeek:w,startOfWeek:x}=r,S=l?y(o,r):a?w(o):x(o),C=l?f(i):a?p(h(i)):m(h(i)),E=t&&(l?f(t):a?p(t):m(t)),P=E&&v(C,E)?E:C,_=u(P,S),T=d(i,o)+1,M=[];for(let N=0;N<=_;N++){const R=c(S,N);M.push(R)}const D=(l?35:42)*T;if(s&&M.length<D){const N=D-M.length;for(let R=0;R<N;R++){const U=c(M[M.length-1],1);M.push(U)}}return M}function RJ(e){const t=[];return e.reduce((n,r)=>{const o=r.weeks.reduce((i,a)=>i.concat(a.days.slice()),t.slice());return n.concat(o.slice())},t.slice())}function BJ(e,t,n,r){const{numberOfMonths:o=1}=n,i=[];for(let a=0;a<o;a++){const s=r.addMonths(e,a);if(t&&s>t)break;i.push(s)}return i}function e_(e,t,n,r){const{month:o,defaultMonth:i,today:a=r.today(),numberOfMonths:s=1}=e;let l=o||i||a;const{differenceInCalendarMonths:c,addMonths:u,startOfMonth:d}=r;if(n&&c(n,l)<s-1){const f=-1*(s-1);l=u(n,f)}return t&&c(l,t)<0&&(l=t),d(l)}function jJ(e,t,n,r){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:a,endOfMonth:s,endOfWeek:l,getISOWeek:c,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,h=e.reduce((m,v)=>{const y=n.broadcastCalendar?d(v,r):n.ISOWeek?f(v):p(v),w=n.broadcastCalendar?i(v):n.ISOWeek?a(s(v)):l(s(v)),x=t.filter(P=>P>=y&&P<=w),S=n.broadcastCalendar?35:42;if(n.fixedWeeks&&x.length<S){const P=t.filter(_=>{const T=S-x.length;return _>w&&_<=o(w,T)});x.push(...P)}const C=x.reduce((P,_)=>{const T=n.ISOWeek?c(_):u(_),M=P.find(D=>D.weekNumber===T),A=new BT(_,v,r);return M?M.days.push(A):P.push(new LZ(T,[A])),P},[]),E=new IZ(v,C);return m.push(E),m},[]);return n.reverseMonths?h.reverse():h}function zJ(e,t){let{startMonth:n,endMonth:r}=e;const{startOfYear:o,startOfDay:i,startOfMonth:a,endOfMonth:s,addYears:l,endOfYear:c,newDate:u,today:d}=t,{fromYear:f,toYear:p,fromMonth:h,toMonth:m}=e;!n&&h&&(n=h),!n&&f&&(n=t.newDate(f,0,1)),!r&&m&&(r=m),!r&&p&&(r=u(p,11,31));const v=e.captionLayout==="dropdown"||e.captionLayout==="dropdown-years";return n?n=a(n):f?n=u(f,0,1):!n&&v&&(n=o(l(e.today??d(),-100))),r?r=s(r):p?r=u(p,11,31):!r&&v&&(r=c(e.today??d())),[n&&i(n),r&&i(r)]}function qJ(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,c=o?i:1,u=a(e);if(!t)return s(u,c);if(!(l(t,e)<i))return s(u,c)}function VJ(e,t,n,r){if(n.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=n,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=r,c=o?i??1:1,u=a(e);if(!t)return s(u,-c);if(!(l(u,t)<=0))return s(u,-c)}function UJ(e){const t=[];return e.reduce((n,r)=>n.concat(r.weeks.slice()),t.slice())}function Oh(e,t){const[n,r]=O.useState(e);return[t===void 0?n:t,r]}function HJ(e,t){var S;const[n,r]=zJ(e,t),{startOfMonth:o,endOfMonth:i}=t,a=e_(e,n,r,t),[s,l]=Oh(a,e.month?a:void 0);O.useEffect(()=>{const C=e_(e,n,r,t);l(C)},[e.timeZone]);const{months:c,weeks:u,days:d,previousMonth:f,nextMonth:p}=O.useMemo(()=>{const C=BJ(s,r,{numberOfMonths:e.numberOfMonths},t),E=FJ(C,e.endMonth?i(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),P=jJ(C,E,{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t),_=UJ(P),T=RJ(P),M=VJ(s,n,e,t),A=qJ(s,r,e,t);return{months:P,weeks:_,days:T,previousMonth:M,nextMonth:A}},[t,s.getTime(),r==null?void 0:r.getTime(),n==null?void 0:n.getTime(),e.disableNavigation,e.broadcastCalendar,(S=e.endMonth)==null?void 0:S.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:h,onMonthChange:m}=e,v=C=>u.some(E=>E.days.some(P=>P.isEqualTo(C))),y=C=>{if(h)return;let E=o(C);n&&E<o(n)&&(E=o(n)),r&&E>o(r)&&(E=o(r)),l(E),m==null||m(E)};return{months:c,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:y,goToDay:C=>{v(C)||y(C.date)}}}var Po;(function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"})(Po||(Po={}));function t_(e){return!e[Bt.disabled]&&!e[Bt.hidden]&&!e[Bt.outside]}function WJ(e,t,n,r){let o,i=-1;for(const a of e){const s=t(a);t_(s)&&(s[Bt.focused]&&i<Po.FocusedModifier?(o=a,i=Po.FocusedModifier):r!=null&&r.isEqualTo(a)&&i<Po.LastFocused?(o=a,i=Po.LastFocused):n(a.date)&&i<Po.Selected?(o=a,i=Po.Selected):s[Bt.today]&&i<Po.Today&&(o=a,i=Po.Today))}return o||(o=e.find(a=>t_(t(a)))),o}function KJ(e,t,n,r,o,i,a){const{ISOWeek:s,broadcastCalendar:l}=i,{addDays:c,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:h,endOfWeek:m,max:v,min:y,startOfBroadcastWeek:w,startOfISOWeek:x,startOfWeek:S}=a;let E={day:c,week:d,month:u,year:f,startOfWeek:P=>l?w(P,a):s?x(P):S(P),endOfWeek:P=>l?p(P):s?h(P):m(P)}[e](n,t==="after"?1:-1);return t==="before"&&r?E=v([r,E]):t==="after"&&o&&(E=y([o,E])),E}function n_(e,t,n,r,o,i,a,s=0){if(s>365)return;const l=KJ(e,t,n.date,r,o,i,a),c=!!(i.disabled&&di(l,i.disabled,a)),u=!!(i.hidden&&di(l,i.hidden,a)),d=l,f=new BT(l,d,a);return!c&&!u?f:n_(e,t,f,r,o,i,a,s+1)}function GJ(e,t,n,r,o){const{autoFocus:i}=e,[a,s]=O.useState(),l=WJ(t.days,n,r||(()=>!1),a),[c,u]=O.useState(i?l:void 0);return{isFocusTarget:m=>!!(l!=null&&l.isEqualTo(m)),setFocused:u,focused:c,blur:()=>{s(c),u(void 0)},moveFocus:(m,v)=>{if(!c)return;const y=n_(m,v,c,t.navStart,t.navEnd,e,o);y&&(e.disableNavigation&&!t.days.some(x=>x.isEqualTo(y))||(t.goToDay(y),u(y)))}}}function YJ(e,t){const{selected:n,required:r,onSelect:o}=e,[i,a]=Oh(n,o?n:void 0),s=o?n:i,{isSameDay:l}=t,c=p=>(s==null?void 0:s.some(h=>l(h,p)))??!1,{min:u,max:d}=e;return{selected:s,select:(p,h,m)=>{let v=[...s??[]];if(c(p)){if((s==null?void 0:s.length)===u||r&&(s==null?void 0:s.length)===1)return;v=s==null?void 0:s.filter(y=>!l(y,p))}else(s==null?void 0:s.length)===d?v=[p]:v=[...v,p];return o||a(v),o==null||o(v,p,h,m),v},isSelected:c}}function XJ(e,t,n=0,r=0,o=!1,i=Eo){const{from:a,to:s}=t||{},{isSameDay:l,isAfter:c,isBefore:u}=i;let d;if(!a&&!s)d={from:e,to:n>0?void 0:e};else if(a&&!s)l(a,e)?n===0?d={from:a,to:e}:o?d={from:a,to:void 0}:d=void 0:u(e,a)?d={from:e,to:a}:d={from:a,to:e};else if(a&&s)if(l(a,e)&&l(s,e))o?d={from:a,to:s}:d=void 0;else if(l(a,e))d={from:a,to:n>0?void 0:e};else if(l(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,a))d={from:e,to:s};else if(c(e,a))d={from:a,to:e};else if(c(e,s))d={from:a,to:e};else throw new Error("Invalid range");if(d!=null&&d.from&&(d!=null&&d.to)){const f=i.differenceInCalendarDays(d.to,d.from);r>0&&f>r?d={from:e,to:void 0}:n>1&&f<n&&(d={from:e,to:void 0})}return d}function QJ(e,t,n=Eo){const r=Array.isArray(t)?t:[t];let o=e.from;const i=n.differenceInCalendarDays(e.to,e.from),a=Math.min(i,6);for(let s=0;s<=a;s++){if(r.includes(o.getDay()))return!0;o=n.addDays(o,1)}return!1}function r_(e,t,n=Eo){return ui(e,t.from,!1,n)||ui(e,t.to,!1,n)||ui(t,e.from,!1,n)||ui(t,e.to,!1,n)}function ZJ(e,t,n=Eo){const r=Array.isArray(t)?t:[t];if(r.filter(s=>typeof s!="function").some(s=>typeof s=="boolean"?s:n.isDate(s)?ui(e,s,!1,n):qT(s,n)?s.some(l=>ui(e,l,!1,n)):Ph(s)?s.from&&s.to?r_(e,{from:s.from,to:s.to},n):!1:zT(s)?QJ(e,s.dayOfWeek,n):Py(s)?n.isAfter(s.before,s.after)?r_(e,{from:n.addDays(s.after,1),to:n.addDays(s.before,-1)},n):di(e.from,s,n)||di(e.to,s,n):Oy(s)||Ty(s)?di(e.from,s,n)||di(e.to,s,n):!1))return!0;const a=r.filter(s=>typeof s=="function");if(a.length){let s=e.from;const l=n.differenceInCalendarDays(e.to,e.from);for(let c=0;c<=l;c++){if(a.some(u=>u(s)))return!0;s=n.addDays(s,1)}}return!1}function JJ(e,t){const{disabled:n,excludeDisabled:r,selected:o,required:i,onSelect:a}=e,[s,l]=Oh(o,a?o:void 0),c=a?o:s;return{selected:c,select:(f,p,h)=>{const{min:m,max:v}=e,y=f?XJ(f,c,m,v,i,t):void 0;return r&&n&&(y!=null&&y.from)&&y.to&&ZJ({from:y.from,to:y.to},n,t)&&(y.from=f,y.to=void 0),a||l(y),a==null||a(y,f,p,h),y},isSelected:f=>c&&ui(c,f,!1,t)}}function eee(e,t){const{selected:n,required:r,onSelect:o}=e,[i,a]=Oh(n,o?n:void 0),s=o?n:i,{isSameDay:l}=t;return{selected:s,select:(d,f,p)=>{let h=d;return!r&&s&&s&&l(d,s)&&(h=void 0),o||a(h),o==null||o(h,d,f,p),h},isSelected:d=>s?l(s,d):!1}}function tee(e,t){const n=eee(e,t),r=YJ(e,t),o=JJ(e,t);switch(e.mode){case"single":return n;case"multiple":return r;case"range":return o;default:return}}function Er(e,t){return e instanceof Tn&&e.timeZone===t?e:new Tn(e,t)}function el(e,t,n){return Er(e,t)}function o_(e,t,n){return typeof e=="boolean"||typeof e=="function"?e:e instanceof Date?el(e,t):Array.isArray(e)?e.map(r=>r instanceof Date?el(r,t):r):Ph(e)?{...e,from:e.from?Er(e.from,t):e.from,to:e.to?Er(e.to,t):e.to}:Py(e)?{before:el(e.before,t),after:el(e.after,t)}:Oy(e)?{after:el(e.after,t)}:Ty(e)?{before:el(e.before,t)}:e}function Ny(e,t,n){return e&&(Array.isArray(e)?e.map(r=>o_(r,t)):o_(e,t))}function nee(e){var Ne;let t=e;const n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=Er(t.today,n)),t.month&&(t.month=Er(t.month,n)),t.defaultMonth&&(t.defaultMonth=Er(t.defaultMonth,n)),t.startMonth&&(t.startMonth=Er(t.startMonth,n)),t.endMonth&&(t.endMonth=Er(t.endMonth,n)),t.mode==="single"&&t.selected?t.selected=Er(t.selected,n):t.mode==="multiple"&&t.selected?t.selected=(Ne=t.selected)==null?void 0:Ne.map(Te=>Er(Te,n)):t.mode==="range"&&t.selected&&(t.selected={from:t.selected.from?Er(t.selected.from,n):t.selected.from,to:t.selected.to?Er(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Ny(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Ny(t.hidden,n)),t.modifiers)){const Te={};Object.keys(t.modifiers).forEach(Ie=>{var we;Te[Ie]=Ny((we=t.modifiers)==null?void 0:we[Ie],n)}),t.modifiers=Te}const{components:r,formatters:o,labels:i,dateLib:a,locale:s,classNames:l}=O.useMemo(()=>{const Te={...RT,...t.locale},Ie=t.broadcastCalendar?1:t.weekStartsOn,we=t.noonSafe&&t.timeZone?DJ(t.timeZone,{weekStartsOn:Ie,locale:Te}):void 0,ze=t.dateLib&&we?{...we,...t.dateLib}:t.dateLib??we,Me=new ir({locale:Te,weekStartsOn:Ie,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},ze);return{dateLib:Me,components:fJ(t.components),formatters:SJ(t.formatters),labels:TJ(t.labels,Me.options),locale:Te,classNames:{...pJ(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:a.today()});const{captionLayout:c,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:h,onDayFocus:m,onDayKeyDown:v,onDayMouseEnter:y,onDayMouseLeave:w,onNextClick:x,onPrevClick:S,showWeekNumber:C,styles:E}=t,{formatCaption:P,formatDay:_,formatMonthDropdown:T,formatWeekNumber:M,formatWeekNumberHeader:A,formatWeekdayName:D,formatYearDropdown:N}=o,R=HJ(t,a),{days:U,months:L,navStart:V,navEnd:j,previousMonth:H,nextMonth:se,goToMonth:pe}=R,W=uJ(U,t,V,j,a),{isSelected:Y,select:F,selected:ee}=tee(t,a)??{},{blur:fe,focused:Z,isFocusTarget:J,moveFocus:Q,setFocused:oe}=GJ(t,R,W,Y??(()=>!1),a),{labelDayButton:le,labelGridcell:z,labelGrid:_e,labelMonthDropdown:X,labelNav:be,labelPrevious:$e,labelNext:Ve,labelWeekday:ae,labelWeekNumber:Ee,labelWeekNumberHeader:Xe,labelYearDropdown:$}=i,B=O.useMemo(()=>kJ(a,t.ISOWeek,t.broadcastCalendar,t.today),[a,t.ISOWeek,t.broadcastCalendar,t.today]),G=u!==void 0||h!==void 0,he=O.useCallback(()=>{H&&(pe(H),S==null||S(H))},[H,pe,S]),re=O.useCallback(()=>{se&&(pe(se),x==null||x(se))},[pe,se,x]),ce=O.useCallback((Te,Ie)=>we=>{we.preventDefault(),we.stopPropagation(),oe(Te),!Ie.disabled&&(F==null||F(Te.date,Ie,we),h==null||h(Te.date,Ie,we))},[F,h,oe]),Oe=O.useCallback((Te,Ie)=>we=>{oe(Te),m==null||m(Te.date,Ie,we)},[m,oe]),Ge=O.useCallback((Te,Ie)=>we=>{fe(),p==null||p(Te.date,Ie,we)},[fe,p]),Qe=O.useCallback((Te,Ie)=>we=>{const ze={ArrowLeft:[we.shiftKey?"month":"day",t.dir==="rtl"?"after":"before"],ArrowRight:[we.shiftKey?"month":"day",t.dir==="rtl"?"before":"after"],ArrowDown:[we.shiftKey?"year":"week","after"],ArrowUp:[we.shiftKey?"year":"week","before"],PageUp:[we.shiftKey?"year":"month","before"],PageDown:[we.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(ze[we.key]){we.preventDefault(),we.stopPropagation();const[Me,ke]=ze[we.key];Q(Me,ke)}v==null||v(Te.date,Ie,we)},[Q,v,t.dir]),et=O.useCallback((Te,Ie)=>we=>{y==null||y(Te.date,Ie,we)},[y]),$t=O.useCallback((Te,Ie)=>we=>{w==null||w(Te.date,Ie,we)},[w]),rt=O.useCallback(Te=>Ie=>{const we=Number(Ie.target.value),ze=a.setMonth(a.startOfMonth(Te),we);pe(ze)},[a,pe]),gt=O.useCallback(Te=>Ie=>{const we=Number(Ie.target.value),ze=a.setYear(a.startOfMonth(Te),we);pe(ze)},[a,pe]),{className:Jt,style:en}=O.useMemo(()=>({className:[l[Ke.Root],t.className].filter(Boolean).join(" "),style:{...E==null?void 0:E[Ke.Root],...t.style}}),[l,t.className,t.style,E]),Wn=hJ(t),vn=O.useRef(null);LJ(vn,!!t.animate,{classNames:l,months:L,focused:Z,dateLib:a});const $n={dayPickerProps:t,selected:ee,select:F,isSelected:Y,months:L,nextMonth:se,previousMonth:H,goToMonth:pe,getModifiers:W,components:r,classNames:l,styles:E,labels:i,formatters:o};return O.createElement(jT.Provider,{value:$n},O.createElement(r.Root,{rootRef:t.animate?vn:void 0,className:Jt,style:en,dir:t.dir,id:t.id,lang:t.lang,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t["aria-label"],"aria-labelledby":t["aria-labelledby"],...Wn},O.createElement(r.Months,{className:l[Ke.Months],style:E==null?void 0:E[Ke.Months]},!t.hideNavigation&&!d&&O.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[Ke.Nav],style:E==null?void 0:E[Ke.Nav],"aria-label":be(),onPreviousClick:he,onNextClick:re,previousMonth:H,nextMonth:se}),L.map((Te,Ie)=>O.createElement(r.Month,{"data-animated-month":t.animate?"true":void 0,className:l[Ke.Month],style:E==null?void 0:E[Ke.Month],key:Ie,displayIndex:Ie,calendarMonth:Te},d==="around"&&!t.hideNavigation&&Ie===0&&O.createElement(r.PreviousMonthButton,{type:"button",className:l[Ke.PreviousMonthButton],tabIndex:H?void 0:-1,"aria-disabled":H?void 0:!0,"aria-label":$e(H),onClick:he,"data-animated-button":t.animate?"true":void 0},O.createElement(r.Chevron,{disabled:H?void 0:!0,className:l[Ke.Chevron],orientation:t.dir==="rtl"?"right":"left"})),O.createElement(r.MonthCaption,{"data-animated-caption":t.animate?"true":void 0,className:l[Ke.MonthCaption],style:E==null?void 0:E[Ke.MonthCaption],calendarMonth:Te,displayIndex:Ie},c!=null&&c.startsWith("dropdown")?O.createElement(r.DropdownNav,{className:l[Ke.Dropdowns],style:E==null?void 0:E[Ke.Dropdowns]},(()=>{const we=c==="dropdown"||c==="dropdown-months"?O.createElement(r.MonthsDropdown,{key:"month",className:l[Ke.MonthsDropdown],"aria-label":X(),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:rt(Te.date),options:_J(Te.date,V,j,o,a),style:E==null?void 0:E[Ke.Dropdown],value:a.getMonth(Te.date)}):O.createElement("span",{key:"month"},T(Te.date,a)),ze=c==="dropdown"||c==="dropdown-years"?O.createElement(r.YearsDropdown,{key:"year",className:l[Ke.YearsDropdown],"aria-label":$(a.options),classNames:l,components:r,disabled:!!t.disableNavigation,onChange:gt(Te.date),options:AJ(V,j,o,a,!!t.reverseYears),style:E==null?void 0:E[Ke.Dropdown],value:a.getYear(Te.date)}):O.createElement("span",{key:"year"},N(Te.date,a));return a.getMonthYearOrder()==="year-first"?[ze,we]:[we,ze]})(),O.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},P(Te.date,a.options,a))):O.createElement(r.CaptionLabel,{className:l[Ke.CaptionLabel],role:"status","aria-live":"polite"},P(Te.date,a.options,a))),d==="around"&&!t.hideNavigation&&Ie===f-1&&O.createElement(r.NextMonthButton,{type:"button",className:l[Ke.NextMonthButton],tabIndex:se?void 0:-1,"aria-disabled":se?void 0:!0,"aria-label":Ve(se),onClick:re,"data-animated-button":t.animate?"true":void 0},O.createElement(r.Chevron,{disabled:se?void 0:!0,className:l[Ke.Chevron],orientation:t.dir==="rtl"?"left":"right"})),Ie===f-1&&d==="after"&&!t.hideNavigation&&O.createElement(r.Nav,{"data-animated-nav":t.animate?"true":void 0,className:l[Ke.Nav],style:E==null?void 0:E[Ke.Nav],"aria-label":be(),onPreviousClick:he,onNextClick:re,previousMonth:H,nextMonth:se}),O.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":u==="multiple"||u==="range","aria-label":_e(Te.date,a.options,a)||void 0,className:l[Ke.MonthGrid],style:E==null?void 0:E[Ke.MonthGrid]},!t.hideWeekdays&&O.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?"true":void 0,className:l[Ke.Weekdays],style:E==null?void 0:E[Ke.Weekdays]},C&&O.createElement(r.WeekNumberHeader,{"aria-label":Xe(a.options),className:l[Ke.WeekNumberHeader],style:E==null?void 0:E[Ke.WeekNumberHeader],scope:"col"},A()),B.map(we=>O.createElement(r.Weekday,{"aria-label":ae(we,a.options,a),className:l[Ke.Weekday],key:String(we),style:E==null?void 0:E[Ke.Weekday],scope:"col"},D(we,a.options,a)))),O.createElement(r.Weeks,{"data-animated-weeks":t.animate?"true":void 0,className:l[Ke.Weeks],style:E==null?void 0:E[Ke.Weeks]},Te.weeks.map(we=>O.createElement(r.Week,{className:l[Ke.Week],key:we.weekNumber,style:E==null?void 0:E[Ke.Week],week:we},C&&O.createElement(r.WeekNumber,{week:we,style:E==null?void 0:E[Ke.WeekNumber],"aria-label":Ee(we.weekNumber,{locale:s}),className:l[Ke.WeekNumber],scope:"row",role:"rowheader"},M(we.weekNumber,a)),we.days.map(ze=>{const{date:Me}=ze,ke=W(ze);if(ke[Bt.focused]=!ke.hidden&&!!(Z!=null&&Z.isEqualTo(ze)),ke[Qr.selected]=(Y==null?void 0:Y(Me))||ke.selected,Ph(ee)){const{from:ut,to:mt}=ee;ke[Qr.range_start]=!!(ut&&mt&&a.isSameDay(Me,ut)),ke[Qr.range_end]=!!(ut&&mt&&a.isSameDay(Me,mt)),ke[Qr.range_middle]=ui(ee,Me,!0,a)}const ct=MJ(ke,E,t.modifiersStyles),ft=dJ(ke,l,t.modifiersClassNames),Cn=!G&&!ke.hidden?z(Me,ke,a.options,a):void 0;return O.createElement(r.Day,{key:`${ze.isoDate}_${ze.displayMonthId}`,day:ze,modifiers:ke,className:ft.join(" "),style:ct,role:"gridcell","aria-selected":ke.selected||void 0,"aria-label":Cn,"data-day":ze.isoDate,"data-month":ze.outside?ze.dateMonthId:void 0,"data-selected":ke.selected||void 0,"data-disabled":ke.disabled||void 0,"data-hidden":ke.hidden||void 0,"data-outside":ze.outside||void 0,"data-focused":ke.focused||void 0,"data-today":ke.today||void 0},!ke.hidden&&G?O.createElement(r.DayButton,{className:l[Ke.DayButton],style:E==null?void 0:E[Ke.DayButton],type:"button",day:ze,modifiers:ke,disabled:!ke.focused&&ke.disabled||void 0,"aria-disabled":ke.focused&&ke.disabled||void 0,tabIndex:J(ze)?0:-1,"aria-label":le(Me,ke,a.options,a),onClick:ce(ze,ke),onBlur:Ge(ze,ke),onFocus:Oe(ze,ke),onKeyDown:Qe(ze,ke),onMouseEnter:et(ze,ke),onMouseLeave:$t(ze,ke)},_(Me,a.options,a)):!ke.hidden&&_(ze.date,a.options,a))})))))))),t.footer&&O.createElement(r.Footer,{className:l[Ke.Footer],style:E==null?void 0:E[Ke.Footer],role:"status","aria-live":"polite"},t.footer)))}function i_({className:e,classNames:t,showOutsideDays:n=!0,...r}){return b.jsx(nee,{showOutsideDays:n,className:q("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:q(Ta({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:q("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:q(Ta({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{Chevron:({orientation:o,...i})=>{const a=o==="left"?Ch:_a;return b.jsx(a,{className:"h-4 w-4",...i})}},...r})}i_.displayName="Calendar";const ree=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:q("rounded-sm border bg-card text-card-foreground shadow",e),...t}));ree.displayName="Card";const a_=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:q("flex flex-col space-y-1.5 m-6 mb-4 pb-2 text-slate-800 dark:text-slate-400 ",e),...t}));a_.displayName="CardHeader";const s_=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:q("font-semibold leading-none tracking-tight dark:text-stone-300",e),...t}));s_.displayName="CardTitle";const l_=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:q("text-sm text-muted-foreground",e),...t}));l_.displayName="CardDescription";const c_=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:q("p-3 md:p-6 pt-0 md:pt-0",e),...t}));c_.displayName="CardContent";const u_=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:q("flex items-center p-6 pt-0",e),...t}));u_.displayName="CardFooter";function oee(e){return Object.prototype.toString.call(e)==="[object Object]"}function d_(e){return oee(e)||Array.isArray(e)}function iee(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function $y(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return o!==i?!1:n.every(a=>{const s=e[a],l=t[a];return typeof s=="function"?`${s}`==`${l}`:!d_(s)||!d_(l)?s===l:$y(s,l)})}function f_(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function aee(e,t){if(e.length!==t.length)return!1;const n=f_(e),r=f_(t);return n.every((o,i)=>{const a=r[i];return $y(o,a)})}function Iy(e){return typeof e=="number"}function Ly(e){return typeof e=="string"}function Th(e){return typeof e=="boolean"}function h_(e){return Object.prototype.toString.call(e)==="[object Object]"}function jt(e){return Math.abs(e)}function Fy(e){return Math.sign(e)}function su(e,t){return jt(e-t)}function see(e,t){if(e===0||t===0||jt(e)<=jt(t))return 0;const n=su(jt(e),jt(t));return jt(n/e)}function lee(e){return Math.round(e*100)/100}function lu(e){return uu(e).map(Number)}function Jr(e){return e[cu(e)]}function cu(e){return Math.max(0,e.length-1)}function Ry(e,t){return t===cu(e)}function p_(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function uu(e){return Object.keys(e)}function g_(e,t){return[e,t].reduce((n,r)=>(uu(r).forEach(o=>{const i=n[o],a=r[o],s=h_(i)&&h_(a);n[o]=s?g_(i,a):a}),n),{})}function By(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function cee(e,t){const n={start:r,center:o,end:i};function r(){return 0}function o(l){return i(l)/2}function i(l){return t-l}function a(l,c){return Ly(e)?n[e](l):e(t,l,c)}return{measure:a}}function du(){let e=[];function t(o,i,a,s={passive:!0}){let l;if("addEventListener"in o)o.addEventListener(i,a,s),l=()=>o.removeEventListener(i,a,s);else{const c=o;c.addListener(a),l=()=>c.removeListener(a)}return e.push(l),r}function n(){e=e.filter(o=>o())}const r={add:t,clear:n};return r}function uee(e,t,n,r){const o=du(),i=1e3/60;let a=null,s=0,l=0;function c(){o.add(e,"visibilitychange",()=>{e.hidden&&h()})}function u(){p(),o.clear()}function d(v){if(!l)return;a||(a=v,n(),n());const y=v-a;for(a=v,s+=y;s>=i;)n(),s-=i;const w=s/i;r(w),l&&(l=t.requestAnimationFrame(d))}function f(){l||(l=t.requestAnimationFrame(d))}function p(){t.cancelAnimationFrame(l),a=null,s=0,l=0}function h(){a=null,s=0}return{init:c,destroy:u,start:f,stop:p,update:n,render:r}}function dee(e,t){const n=t==="rtl",r=e==="y",o=r?"y":"x",i=r?"x":"y",a=!r&&n?-1:1,s=u(),l=d();function c(h){const{height:m,width:v}=h;return r?m:v}function u(){return r?"top":n?"right":"left"}function d(){return r?"bottom":n?"left":"right"}function f(h){return h*a}return{scroll:o,cross:i,startEdge:s,endEdge:l,measureSize:c,direction:f}}function Aa(e=0,t=0){const n=jt(e-t);function r(c){return c<e}function o(c){return c>t}function i(c){return r(c)||o(c)}function a(c){return i(c)?r(c)?e:t:c}function s(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:a,reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:s}}function m_(e,t,n){const{constrain:r}=Aa(0,e),o=e+1;let i=a(t);function a(f){return n?jt((o+f)%o):r(f)}function s(){return i}function l(f){return i=a(f),d}function c(f){return u().set(s()+f)}function u(){return m_(e,s(),n)}const d={get:s,set:l,add:c,clone:u};return d}function fee(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,v,y,w){const{cross:x,direction:S}=e,C=["INPUT","SELECT","TEXTAREA"],E={passive:!1},P=du(),_=du(),T=Aa(50,225).constrain(p.measure(20)),M={mouse:300,touch:400},A={mouse:500,touch:600},D=h?43:25;let N=!1,R=0,U=0,L=!1,V=!1,j=!1,H=!1;function se(z){if(!w)return;function _e(be){(Th(w)||w(z,be))&&fe(be)}const X=t;P.add(X,"dragstart",be=>be.preventDefault(),E).add(X,"touchmove",()=>{},E).add(X,"touchend",()=>{}).add(X,"touchstart",_e).add(X,"mousedown",_e).add(X,"touchcancel",J).add(X,"contextmenu",J).add(X,"click",Q,!0)}function pe(){P.clear(),_.clear()}function W(){const z=H?n:t;_.add(z,"touchmove",Z,E).add(z,"touchend",J).add(z,"mousemove",Z,E).add(z,"mouseup",J)}function Y(z){const _e=z.nodeName||"";return C.includes(_e)}function F(){return(h?A:M)[H?"mouse":"touch"]}function ee(z,_e){const X=d.add(Fy(z)*-1),be=u.byDistance(z,!h).distance;return h||jt(z)<T?be:v&&_e?be*.5:u.byIndex(X.get(),0).distance}function fe(z){const _e=By(z,r);H=_e,j=h&&_e&&!z.buttons&&N,N=su(o.get(),a.get())>=2,!(_e&&z.button!==0)&&(Y(z.target)||(L=!0,i.pointerDown(z),c.useFriction(0).useDuration(0),o.set(a),W(),R=i.readPoint(z),U=i.readPoint(z,x),f.emit("pointerDown")))}function Z(z){if(!By(z,r)&&z.touches.length>=2)return J(z);const X=i.readPoint(z),be=i.readPoint(z,x),$e=su(X,R),Ve=su(be,U);if(!V&&!H&&(!z.cancelable||(V=$e>Ve,!V)))return J(z);const ae=i.pointerMove(z);$e>m&&(j=!0),c.useFriction(.3).useDuration(.75),s.start(),o.add(S(ae)),z.preventDefault()}function J(z){const X=u.byDistance(0,!1).index!==d.get(),be=i.pointerUp(z)*F(),$e=ee(S(be),X),Ve=see(be,$e),ae=D-10*Ve,Ee=y+Ve/50;V=!1,L=!1,_.clear(),c.useDuration(ae).useFriction(Ee),l.distance($e,!h),H=!1,f.emit("pointerUp")}function Q(z){j&&(z.stopPropagation(),z.preventDefault(),j=!1)}function oe(){return L}return{init:se,destroy:pe,pointerDown:oe}}function hee(e,t){let r,o;function i(d){return d.timeStamp}function a(d,f){const h=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(By(d,t)?d:d.touches[0])[h]}function s(d){return r=d,o=d,a(d)}function l(d){const f=a(d)-a(o),p=i(d)-i(r)>170;return o=d,p&&(r=d),f}function c(d){if(!r||!o)return 0;const f=a(o)-a(r),p=i(d)-i(r),h=i(d)-i(o)>170,m=f/p;return p&&!h&&jt(m)>.1?m:0}return{pointerDown:s,pointerMove:l,pointerUp:c,readPoint:a}}function pee(){function e(n){const{offsetTop:r,offsetLeft:o,offsetWidth:i,offsetHeight:a}=n;return{top:r,right:o+i,bottom:r+a,left:o,width:i,height:a}}return{measure:e}}function gee(e){function t(r){return e*(r/100)}return{measure:t}}function mee(e,t,n,r,o,i,a){const s=[e].concat(r);let l,c,u=[],d=!1;function f(v){return o.measureSize(a.measure(v))}function p(v){if(!i)return;c=f(e),u=r.map(f);function y(w){for(const x of w){if(d)return;const S=x.target===e,C=r.indexOf(x.target),E=S?c:u[C],P=f(S?e:r[C]);if(jt(P-E)>=.5){v.reInit(),t.emit("resize");break}}}l=new ResizeObserver(w=>{(Th(i)||i(v,w))&&y(w)}),n.requestAnimationFrame(()=>{s.forEach(w=>l.observe(w))})}function h(){d=!0,l&&l.disconnect()}return{init:p,destroy:h}}function vee(e,t,n,r,o,i){let a=0,s=0,l=o,c=i,u=e.get(),d=0;function f(){const E=r.get()-e.get(),P=!l;let _=0;return P?(a=0,n.set(r),e.set(r),_=E):(n.set(e),a+=E/l,a*=c,u+=a,e.add(a),_=u-d),s=Fy(_),d=u,C}function p(){const E=r.get()-t.get();return jt(E)<.001}function h(){return l}function m(){return s}function v(){return a}function y(){return x(o)}function w(){return S(i)}function x(E){return l=E,C}function S(E){return c=E,C}const C={direction:m,duration:h,velocity:v,seek:f,settled:p,useBaseFriction:w,useBaseDuration:y,useFriction:S,useDuration:x};return C}function yee(e,t,n,r,o){const i=o.measure(10),a=o.measure(50),s=Aa(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(p){if(!c())return;const h=e.reachedMin(t.get())?"min":"max",m=jt(e[h]-t.get()),v=n.get()-t.get(),y=s.constrain(m/a);n.subtract(v*y),!p&&jt(v)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(p){l=!p}return{shouldConstrain:c,constrain:u,toggleActive:d}}function bee(e,t,n,r,o){const i=Aa(-t+e,0),a=d(),s=u(),l=f();function c(h,m){return su(h,m)<=1}function u(){const h=a[0],m=Jr(a),v=a.lastIndexOf(h),y=a.indexOf(m)+1;return Aa(v,y)}function d(){return n.map((h,m)=>{const{min:v,max:y}=i,w=i.constrain(h),x=!m,S=Ry(n,m);return x?y:S||c(v,w)?v:c(y,w)?y:w}).map(h=>parseFloat(h.toFixed(3)))}function f(){if(t<=e+o)return[i.max];if(r==="keepSnaps")return a;const{min:h,max:m}=s;return a.slice(h,m)}return{snapsContained:l,scrollContainLimit:s}}function wee(e,t,n){const r=t[0],o=n?r-e:Jr(t);return{limit:Aa(o,r)}}function xee(e,t,n,r){const i=t.min+.1,a=t.max+.1,{reachedMin:s,reachedMax:l}=Aa(i,a);function c(f){return f===1?l(n.get()):f===-1?s(n.get()):!1}function u(f){if(!c(f))return;const p=e*(f*-1);r.forEach(h=>h.add(p))}return{loop:u}}function See(e){const{max:t,length:n}=e;function r(i){const a=i-t;return n?a/-n:0}return{get:r}}function Cee(e,t,n,r,o){const{startEdge:i,endEdge:a}=e,{groupSlides:s}=o,l=d().map(t.measure),c=f(),u=p();function d(){return s(r).map(m=>Jr(m)[a]-m[0][i]).map(jt)}function f(){return r.map(m=>n[i]-m[i]).map(m=>-jt(m))}function p(){return s(c).map(m=>m[0]).map((m,v)=>m+l[v])}return{snaps:c,snapsAligned:u}}function Eee(e,t,n,r,o,i){const{groupSlides:a}=o,{min:s,max:l}=r,c=u();function u(){const f=a(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?f:f.slice(s,l).map((h,m,v)=>{const y=!m,w=Ry(v,m);if(y){const x=Jr(v[0])+1;return p_(x)}if(w){const x=cu(i)-Jr(v)[0]+1;return p_(x,Jr(v)[0])}return h})}return{slideRegistry:c}}function Pee(e,t,n,r,o){const{reachedAny:i,removeOffset:a,constrain:s}=r;function l(h){return h.concat().sort((m,v)=>jt(m)-jt(v))[0]}function c(h){const m=e?a(h):s(h),v=t.map((w,x)=>({diff:u(w-m,0),index:x})).sort((w,x)=>jt(w.diff)-jt(x.diff)),{index:y}=v[0];return{index:y,distance:m}}function u(h,m){const v=[h,h+n,h-n];if(!e)return h;if(!m)return l(v);const y=v.filter(w=>Fy(w)===m);return y.length?l(y):Jr(v)-n}function d(h,m){const v=t[h]-o.get(),y=u(v,m);return{index:h,distance:y}}function f(h,m){const v=o.get()+h,{index:y,distance:w}=c(v),x=!e&&i(v);if(!m||x)return{index:y,distance:h};const S=t[y]-w,C=h+u(S,0);return{index:y,distance:C}}return{byDistance:f,byIndex:d,shortcut:u}}function Oee(e,t,n,r,o,i,a){function s(d){const f=d.distance,p=d.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(d.index),a.emit("select"))}function l(d,f){const p=o.byDistance(d,f);s(p)}function c(d,f){const p=t.clone().set(d),h=o.byIndex(p.get(),f);s(h)}return{distance:l,index:c}}function Tee(e,t,n,r,o,i,a,s){const l={passive:!0,capture:!0};let c=0;function u(p){if(!s)return;function h(m){if(new Date().getTime()-c>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const w=n.findIndex(x=>x.includes(m));Iy(w)&&(o.useDuration(0),r.index(w,0),a.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((m,v)=>{i.add(m,"focus",y=>{(Th(s)||s(p,y))&&h(v)},l)})}function d(p){p.code==="Tab"&&(c=new Date().getTime())}return{init:u}}function fu(e){let t=e;function n(){return t}function r(l){t=a(l)}function o(l){t+=a(l)}function i(l){t-=a(l)}function a(l){return Iy(l)?l:l.get()}return{get:n,set:r,add:o,subtract:i}}function v_(e,t){const n=e.scroll==="x"?a:s,r=t.style;let o=null,i=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const p=lee(e.direction(f));p!==o&&(r.transform=n(p),o=p)}function c(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:l,toggleActive:c}}function _ee(e,t,n,r,o,i,a,s,l){const u=lu(o),d=lu(o).reverse(),f=y().concat(w());function p(P,_){return P.reduce((T,M)=>T-o[M],_)}function h(P,_){return P.reduce((T,M)=>p(T,_)>0?T.concat([M]):T,[])}function m(P){return i.map((_,T)=>({start:_-r[T]+.5+P,end:_+t-.5+P}))}function v(P,_,T){const M=m(_);return P.map(A=>{const D=T?0:-n,N=T?n:0,R=T?"end":"start",U=M[A][R];return{index:A,loopPoint:U,slideLocation:fu(-1),translate:v_(e,l[A]),target:()=>s.get()>U?D:N}})}function y(){const P=a[0],_=h(d,P);return v(_,n,!1)}function w(){const P=t-a[0]-1,_=h(u,P);return v(_,-n,!0)}function x(){return f.every(({index:P})=>{const _=u.filter(T=>T!==P);return p(_,t)<=.1})}function S(){f.forEach(P=>{const{target:_,translate:T,slideLocation:M}=P,A=_();A!==M.get()&&(T.to(A),M.set(A))})}function C(){f.forEach(P=>P.translate.clear())}return{canLoop:x,clear:C,loop:S,loopPoints:f}}function Mee(e,t,n){let r,o=!1;function i(l){if(!n)return;function c(u){for(const d of u)if(d.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{o||(Th(n)||n(l,u))&&c(u)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),o=!0}return{init:i,destroy:a}}function kee(e,t,n,r){const o={};let i=null,a=null,s,l=!1;function c(){s=new IntersectionObserver(h=>{l||(h.forEach(m=>{const v=t.indexOf(m.target);o[v]=m}),i=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(h=>s.observe(h))}function u(){s&&s.disconnect(),l=!0}function d(h){return uu(o).reduce((m,v)=>{const y=parseInt(v),{isIntersecting:w}=o[y];return(h&&w||!h&&!w)&&m.push(y),m},[])}function f(h=!0){if(h&&i)return i;if(!h&&a)return a;const m=d(h);return h&&(i=m),h||(a=m),m}return{init:c,destroy:u,get:f}}function Aee(e,t,n,r,o,i){const{measureSize:a,startEdge:s,endEdge:l}=e,c=n[0]&&o,u=h(),d=m(),f=n.map(a),p=v();function h(){if(!c)return 0;const w=n[0];return jt(t[s]-w[s])}function m(){if(!c)return 0;const w=i.getComputedStyle(Jr(r));return parseFloat(w.getPropertyValue(`margin-${l}`))}function v(){return n.map((w,x,S)=>{const C=!x,E=Ry(S,x);return C?f[x]+u:E?f[x]+d:S[x+1][s]-w[s]}).map(jt)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Dee(e,t,n,r,o,i,a,s,l){const{startEdge:c,endEdge:u,direction:d}=e,f=Iy(n);function p(y,w){return lu(y).filter(x=>x%w===0).map(x=>y.slice(x,x+w))}function h(y){return y.length?lu(y).reduce((w,x,S)=>{const C=Jr(w)||0,E=C===0,P=x===cu(y),_=o[c]-i[C][c],T=o[c]-i[x][u],M=!r&&E?d(a):0,A=!r&&P?d(s):0,D=jt(T-A-(_+M));return S&&D>t+l&&w.push(x),P&&w.push(y.length),w},[]).map((w,x,S)=>{const C=Math.max(S[x-1]||0);return y.slice(C,w)}):[]}function m(y){return f?p(y,n):h(y)}return{groupSlides:m}}function Nee(e,t,n,r,o,i,a){const{align:s,axis:l,direction:c,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:h,inViewThreshold:m,slidesToScroll:v,skipSnaps:y,containScroll:w,watchResize:x,watchSlides:S,watchDrag:C,watchFocus:E}=i,P=2,_=pee(),T=_.measure(t),M=n.map(_.measure),A=dee(l,c),D=A.measureSize(T),N=gee(D),R=cee(s,D),U=!d&&!!w,L=d||!!w,{slideSizes:V,slideSizesWithGaps:j,startGap:H,endGap:se}=Aee(A,T,M,n,L,o),pe=Dee(A,D,v,d,T,M,H,se,P),{snaps:W,snapsAligned:Y}=Cee(A,R,T,M,pe),F=-Jr(W)+Jr(j),{snapsContained:ee,scrollContainLimit:fe}=bee(D,F,Y,w,P),Z=U?ee:Y,{limit:J}=wee(F,Z,d),Q=m_(cu(Z),u,d),oe=Q.clone(),le=lu(n),z=({dragHandler:et,scrollBody:$t,scrollBounds:rt,options:{loop:gt}})=>{gt||rt.constrain(et.pointerDown()),$t.seek()},_e=({scrollBody:et,translate:$t,location:rt,offsetLocation:gt,previousLocation:Jt,scrollLooper:en,slideLooper:Wn,dragHandler:vn,animation:$n,eventHandler:Ne,scrollBounds:Te,options:{loop:Ie}},we)=>{const ze=et.settled(),Me=!Te.shouldConstrain(),ke=Ie?ze:ze&&Me,ct=ke&&!vn.pointerDown();ct&&$n.stop();const ft=rt.get()*we+Jt.get()*(1-we);gt.set(ft),Ie&&(en.loop(et.direction()),Wn.loop()),$t.to(gt.get()),ct&&Ne.emit("settle"),ke||Ne.emit("scroll")},X=uee(r,o,()=>z(Qe),et=>_e(Qe,et)),be=.68,$e=Z[Q.get()],Ve=fu($e),ae=fu($e),Ee=fu($e),Xe=fu($e),$=vee(Ve,Ee,ae,Xe,f,be),B=Pee(d,Z,F,J,Xe),G=Oee(X,Q,oe,$,B,Xe,a),he=See(J),re=du(),ce=kee(t,n,a,m),{slideRegistry:Oe}=Eee(U,w,Z,fe,pe,le),Ge=Tee(e,n,Oe,G,$,re,a,E),Qe={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:T,slideRects:M,animation:X,axis:A,dragHandler:fee(A,e,r,o,Xe,hee(A,o),Ve,X,G,$,B,Q,a,N,p,h,y,be,C),eventStore:re,percentOfView:N,index:Q,indexPrevious:oe,limit:J,location:Ve,offsetLocation:Ee,previousLocation:ae,options:i,resizeHandler:mee(t,a,o,n,A,x,_),scrollBody:$,scrollBounds:yee(J,Ee,Xe,$,N),scrollLooper:xee(F,J,Ee,[Ve,Ee,ae,Xe]),scrollProgress:he,scrollSnapList:Z.map(he.get),scrollSnaps:Z,scrollTarget:B,scrollTo:G,slideLooper:_ee(A,D,F,V,j,W,Z,Ee,n),slideFocus:Ge,slidesHandler:Mee(t,a,S),slidesInView:ce,slideIndexes:le,slideRegistry:Oe,slidesToScroll:pe,target:Xe,translate:v_(A,t)};return Qe}function $ee(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function o(c){return r(c).forEach(u=>u(t,c)),l}function i(c,u){return e[c]=r(c).concat([u]),l}function a(c,u){return e[c]=r(c).filter(d=>d!==u),l}function s(){e={}}const l={init:n,emit:o,off:a,on:i,clear:s};return l}const Iee={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Lee(e){function t(i,a){return g_(i,a||{})}function n(i){const a=i.breakpoints||{},s=uu(a).filter(l=>e.matchMedia(l).matches).map(l=>a[l]).reduce((l,c)=>t(l,c),{});return t(i,s)}function r(i){return i.map(a=>uu(a.breakpoints||{})).reduce((a,s)=>a.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Fee(e){let t=[];function n(i,a){return t=a.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(i,e)),a.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function _h(e,t,n){const r=e.ownerDocument,o=r.defaultView,i=Lee(o),a=Fee(i),s=du(),l=$ee(),{mergeOptions:c,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:p,emit:h}=l,m=A;let v=!1,y,w=c(Iee,_h.globalOptions),x=c(w),S=[],C,E,P;function _(){const{container:le,slides:z}=x;E=(Ly(le)?e.querySelector(le):le)||e.children[0];const X=Ly(z)?E.querySelectorAll(z):z;P=[].slice.call(X||E.children)}function T(le){const z=Nee(e,E,P,r,o,le,l);if(le.loop&&!z.slideLooper.canLoop()){const _e=Object.assign({},le,{loop:!1});return T(_e)}return z}function M(le,z){v||(w=c(w,le),x=u(w),S=z||S,_(),y=T(x),d([w,...S.map(({options:_e})=>_e)]).forEach(_e=>s.add(_e,"change",A)),x.active&&(y.translate.to(y.location.get()),y.animation.init(),y.slidesInView.init(),y.slideFocus.init(oe),y.eventHandler.init(oe),y.resizeHandler.init(oe),y.slidesHandler.init(oe),y.options.loop&&y.slideLooper.loop(),E.offsetParent&&P.length&&y.dragHandler.init(oe),C=a.init(oe,S)))}function A(le,z){const _e=pe();D(),M(c({startIndex:_e},le),z),l.emit("reInit")}function D(){y.dragHandler.destroy(),y.eventStore.clear(),y.translate.clear(),y.slideLooper.clear(),y.resizeHandler.destroy(),y.slidesHandler.destroy(),y.slidesInView.destroy(),y.animation.destroy(),a.destroy(),s.clear()}function N(){v||(v=!0,s.clear(),D(),l.emit("destroy"),l.clear())}function R(le,z,_e){!x.active||v||(y.scrollBody.useBaseFriction().useDuration(z===!0?0:x.duration),y.scrollTo.index(le,_e||0))}function U(le){const z=y.index.add(1).get();R(z,le,-1)}function L(le){const z=y.index.add(-1).get();R(z,le,1)}function V(){return y.index.add(1).get()!==pe()}function j(){return y.index.add(-1).get()!==pe()}function H(){return y.scrollSnapList}function se(){return y.scrollProgress.get(y.offsetLocation.get())}function pe(){return y.index.get()}function W(){return y.indexPrevious.get()}function Y(){return y.slidesInView.get()}function F(){return y.slidesInView.get(!1)}function ee(){return C}function fe(){return y}function Z(){return e}function J(){return E}function Q(){return P}const oe={canScrollNext:V,canScrollPrev:j,containerNode:J,internalEngine:fe,destroy:N,off:p,on:f,emit:h,plugins:ee,previousScrollSnap:W,reInit:m,rootNode:Z,scrollNext:U,scrollPrev:L,scrollProgress:se,scrollSnapList:H,scrollTo:R,selectedScrollSnap:pe,slideNodes:Q,slidesInView:Y,slidesNotInView:F};return M(t,n),setTimeout(()=>l.emit("init"),0),oe}_h.globalOptions=void 0;function jy(e={},t=[]){const n=O.useRef(e),r=O.useRef(t),[o,i]=O.useState(),[a,s]=O.useState(),l=O.useCallback(()=>{o&&o.reInit(n.current,r.current)},[o]);return O.useEffect(()=>{$y(n.current,e)||(n.current=e,l())},[e,l]),O.useEffect(()=>{aee(r.current,t)||(r.current=t,l())},[t,l]),O.useEffect(()=>{if(iee()&&a){_h.globalOptions=jy.globalOptions;const c=_h(a,n.current,r.current);return i(c),()=>c.destroy()}else i(void 0)},[a,i]),[s,o]}jy.globalOptions=void 0;const y_=g.createContext(null);function Mh(){const e=g.useContext(y_);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const b_=g.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:o,children:i,...a},s)=>{const[l,c]=jy({...t,axis:e==="horizontal"?"x":"y"},r),[u,d]=g.useState(!1),[f,p]=g.useState(!1),h=g.useCallback(w=>{w&&(d(w.canScrollPrev()),p(w.canScrollNext()))},[]),m=g.useCallback(()=>{c==null||c.scrollPrev()},[c]),v=g.useCallback(()=>{c==null||c.scrollNext()},[c]),y=g.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),m()):w.key==="ArrowRight"&&(w.preventDefault(),v())},[m,v]);return g.useEffect(()=>{!c||!n||n(c)},[c,n]),g.useEffect(()=>{if(c)return h(c),c.on("reInit",h),c.on("select",h),()=>{c==null||c.off("select",h)}},[c,h]),b.jsx(y_.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:v,canScrollPrev:u,canScrollNext:f},children:b.jsx("div",{ref:s,onKeyDownCapture:y,className:q("relative",o),role:"region","aria-roledescription":"carousel",...a,children:i})})});b_.displayName="Carousel";const w_=g.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:o}=Mh();return b.jsx("div",{ref:r,className:"overflow-hidden",children:b.jsx("div",{ref:n,className:q("flex",o==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});w_.displayName="CarouselContent";const x_=g.forwardRef(({className:e,...t},n)=>{const{orientation:r}=Mh();return b.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:q("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});x_.displayName="CarouselItem";const S_=g.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:i,scrollPrev:a,canScrollPrev:s}=Mh();return b.jsxs(Xc,{ref:o,variant:t,size:n,className:q("absolute h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:a,...r,children:[b.jsx(lV,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Previous slide"})]})});S_.displayName="CarouselPrevious";const C_=g.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},o)=>{const{orientation:i,scrollNext:a,canScrollNext:s}=Mh();return b.jsxs(Xc,{ref:o,variant:t,size:n,className:q("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:a,...r,children:[b.jsx(uV,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Next slide"})]})});C_.displayName="CarouselNext";var Ree=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function zy(e){if(typeof e!="string")return!1;var t=Ree;return t.includes(e)}var Bee=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],jee=new Set(Bee);function E_(e){return typeof e!="string"?!1:jee.has(e)}function P_(e){return typeof e=="string"&&e.startsWith("data-")}function qy(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(E_(n)||P_(n))&&(t[n]=e[n]);return t}function zee(e){if(e==null)return null;if(O.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return qy(t)}return typeof e=="object"&&!Array.isArray(e)?qy(e):null}function tl(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(E_(n)||P_(n)||zy(n))&&(t[n]=e[n]);return t}var qee=["children","width","height","viewBox","className","style","title","desc"];function Vy(){return Vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vy.apply(null,arguments)}function Vee(e,t){if(e==null)return{};var n,r,o=Uee(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Uee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Hee=O.forwardRef((e,t)=>{var{children:n,width:r,height:o,viewBox:i,className:a,style:s,title:l,desc:c}=e,u=Vee(e,qee),d=i||{width:r,height:o,x:0,y:0},f=Kn("recharts-surface",a);return g.createElement("svg",Vy({},tl(u),{className:f,width:r,height:o,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),g.createElement("title",null,l),g.createElement("desc",null,c),n)}),Wee=O.createContext(null),Kee=()=>O.useContext(Wee);function _t(e){return function(){return e}}const O_=Math.cos,kh=Math.sin,eo=Math.sqrt,Ah=Math.PI,Dh=2*Ah,Uy=Math.PI,Hy=2*Uy,Da=1e-6,Gee=Hy-Da;function T_(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Yee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return T_;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class Xee{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?T_:Yee(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,i,a){this._append`C${+t},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,n,r,o,i){if(t=+t,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=r-t,c=o-n,u=a-t,d=s-n,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Da)if(!(Math.abs(d*l-c*u)>Da)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,h=o-s,m=l*l+c*c,v=p*p+h*h,y=Math.sqrt(m),w=Math.sqrt(f),x=i*Math.tan((Uy-Math.acos((m+f-v)/(2*y*w)))/2),S=x/w,C=x/y;Math.abs(S-1)>Da&&this._append`L${t+S*u},${n+S*d}`,this._append`A${i},${i},0,0,${+(d*p>u*h)},${this._x1=t+C*l},${this._y1=n+C*c}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),c=t+s,u=n+l,d=1^a,f=a?o-i:i-o;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Da||Math.abs(this._y1-u)>Da)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%Hy+Hy),f>Gee?this._append`A${r},${r},0,1,${d},${t-s},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:f>Da&&this._append`A${r},${r},0,${+(f>=Uy)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function Wy(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Xee(t)}function Ky(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function __(e){this._context=e}__.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Nh(e){return new __(e)}function M_(e){return e[0]}function k_(e){return e[1]}function A_(e,t){var n=_t(!0),r=null,o=Nh,i=null,a=Wy(s);e=typeof e=="function"?e:e===void 0?M_:_t(e),t=typeof t=="function"?t:t===void 0?k_:_t(t);function s(l){var c,u=(l=Ky(l)).length,d,f=!1,p;for(r==null&&(i=o(p=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(d,c,l),+t(d,c,l));if(p)return i=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:_t(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:_t(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:_t(!!l),s):n},s.curve=function(l){return arguments.length?(o=l,r!=null&&(i=o(r)),s):o},s.context=function(l){return arguments.length?(l==null?r=i=null:i=o(r=l),s):r},s}function $h(e,t,n){var r=null,o=_t(!0),i=null,a=Nh,s=null,l=Wy(c);e=typeof e=="function"?e:e===void 0?M_:_t(+e),t=typeof t=="function"?t:_t(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?k_:_t(+n);function c(d){var f,p,h,m=(d=Ky(d)).length,v,y=!1,w,x=new Array(m),S=new Array(m);for(i==null&&(s=a(w=l())),f=0;f<=m;++f){if(!(f<m&&o(v=d[f],f,d))===y)if(y=!y)p=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=f-1;h>=p;--h)s.point(x[h],S[h]);s.lineEnd(),s.areaEnd()}y&&(x[f]=+e(v,f,d),S[f]=+t(v,f,d),s.point(r?+r(v,f,d):x[f],n?+n(v,f,d):S[f]))}if(w)return s=null,w+""||null}function u(){return A_().defined(o).curve(a).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:_t(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:_t(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:_t(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:_t(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:_t(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:_t(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(o=typeof d=="function"?d:_t(!!d),c):o},c.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),c):a},c.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),c):i},c}class D_{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Qee(e){return new D_(e,!0)}function Zee(e){return new D_(e,!1)}const Gy={draw(e,t){const n=eo(t/Ah);e.moveTo(n,0),e.arc(0,0,n,0,Dh)}},Jee={draw(e,t){const n=eo(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},N_=eo(1/3),ete=N_*2,tte={draw(e,t){const n=eo(t/ete),r=n*N_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},nte={draw(e,t){const n=eo(t),r=-n/2;e.rect(r,r,n,n)}},rte=.8908130915292852,$_=kh(Ah/10)/kh(7*Ah/10),ote=kh(Dh/10)*$_,ite=-O_(Dh/10)*$_,ate={draw(e,t){const n=eo(t*rte),r=ote*n,o=ite*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=Dh*i/5,s=O_(a),l=kh(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},Yy=eo(3),ste={draw(e,t){const n=-eo(t/(Yy*3));e.moveTo(0,n*2),e.lineTo(-Yy*n,-n),e.lineTo(Yy*n,-n),e.closePath()}},Pr=-.5,Or=eo(3)/2,Xy=1/eo(12),lte=(Xy/2+1)*3,cte={draw(e,t){const n=eo(t/lte),r=n/2,o=n*Xy,i=r,a=n*Xy+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Pr*r-Or*o,Or*r+Pr*o),e.lineTo(Pr*i-Or*a,Or*i+Pr*a),e.lineTo(Pr*s-Or*l,Or*s+Pr*l),e.lineTo(Pr*r+Or*o,Pr*o-Or*r),e.lineTo(Pr*i+Or*a,Pr*a-Or*i),e.lineTo(Pr*s+Or*l,Pr*l-Or*s),e.closePath()}};function ute(e,t){let n=null,r=Wy(o);e=typeof e=="function"?e:_t(e||Gy),t=typeof t=="function"?t:_t(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:_t(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:_t(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function Ih(){}function Lh(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function I_(e){this._context=e}I_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Lh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Lh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dte(e){return new I_(e)}function L_(e){this._context=e}L_.prototype={areaStart:Ih,areaEnd:Ih,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Lh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fte(e){return new L_(e)}function F_(e){this._context=e}F_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Lh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hte(e){return new F_(e)}function R_(e){this._context=e}R_.prototype={areaStart:Ih,areaEnd:Ih,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function pte(e){return new R_(e)}function B_(e){return e<0?-1:1}function j_(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(B_(i)+B_(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function z_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qy(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function Fh(e){this._context=e}Fh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qy(this,this._t0,z_(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qy(this,z_(this,n=j_(this,e,t)),n);break;default:Qy(this,this._t0,n=j_(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function q_(e){this._context=new V_(e)}(q_.prototype=Object.create(Fh.prototype)).point=function(e,t){Fh.prototype.point.call(this,t,e)};function V_(e){this._context=e}V_.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function gte(e){return new Fh(e)}function mte(e){return new q_(e)}function U_(e){this._context=e}U_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=H_(e),o=H_(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function H_(e){var t,n=e.length-1,r,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function vte(e){return new U_(e)}function Rh(e,t){this._context=e,this._t=t}Rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function yte(e){return new Rh(e,.5)}function bte(e){return new Rh(e,0)}function wte(e){return new Rh(e,1)}function Na(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function Zy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function xte(e,t){return e[t]}function Ste(e){const t=[];return t.key=e,t}function Cte(){var e=_t([]),t=Zy,n=Na,r=xte;function o(i){var a=Array.from(e.apply(this,arguments),Ste),s,l=a.length,c=-1,u;for(const d of i)for(s=0,++c;s<l;++s)(a[s][c]=[0,+r(d,a[s].key,c,i)]).data=d;for(s=0,u=Ky(t(a));s<l;++s)a[u[s]].index=s;return n(a,u),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:_t(Array.from(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:_t(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?Zy:typeof i=="function"?i:_t(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(n=i??Na,o):n},o}function Ete(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}Na(e,t)}}function Pte(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,s=0;a<o;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Na(e,t)}}function Ote(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var s=0,l=0,c=0;s<a;++s){for(var u=e[t[s]],d=u[r][1]||0,f=u[r-1][1]||0,p=(d-f)/2,h=0;h<s;++h){var m=e[t[h]],v=m[r][1]||0,y=m[r-1][1]||0;p+=v-y}l+=d,c+=p*d}o[r-1][1]+=o[r-1][0]=n,l&&(n-=c/l)}o[r-1][1]+=o[r-1][0]=n,Na(e,t)}}var Jy={},e0={},W_;function Tte(){return W_||(W_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(e0)),e0}var t0={},K_;function G_(){return K_||(K_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(t0)),t0}var n0={},Y_;function r0(){return Y_||(Y_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(n0)),n0}var o0={},i0={},X_;function _te(){return X_||(X_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(i0)),i0}var Q_;function a0(){return Q_||(Q_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_te(),n=r0();function r(o){if(Array.isArray(o))return o.map(n.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const i=[],a=o.length;if(a===0)return i;let s=0,l="",c="",u=!1;for(o.charCodeAt(0)===46&&(i.push(""),s++);s<a;){const d=o[s];c?d==="\\"&&s+1<a?(s++,l+=o[s]):d===c?c="":l+=d:u?d==='"'||d==="'"?c=d:d==="]"?(u=!1,i.push(l),l=""):l+=d:d==="["?(u=!0,l&&(i.push(l),l="")):d==="."?l&&(i.push(l),l=""):l+=d,s++}return l&&i.push(l),i}e.toPath=r})(o0)),o0}var Z_;function s0(){return Z_||(Z_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tte(),n=G_(),r=r0(),o=a0();function i(s,l,c){if(s==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?n.isDeepKey(l)?i(s,o.toPath(l),c):c:u}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const u=s[l];return u===void 0?c:u}default:{if(Array.isArray(l))return a(s,l,c);if(Object.is(l==null?void 0:l.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const u=s[l];return u===void 0?c:u}}}function a(s,l,c){if(l.length===0)return c;let u=s;for(let d=0;d<l.length;d++){if(u==null||t.isUnsafeProperty(l[d]))return c;u=u[l[d]]}return u===void 0?c:u}e.get=i})(Jy)),Jy}var l0,J_;function Mte(){return J_||(J_=1,l0=s0().get),l0}var kte=Mte();const eM=Rs(kte);var Ate=4;function Bi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ate,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function wn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((o,i,a)=>{var s=n[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+Bi(s)+i:o+i},"")}var hu=e=>e===0?0:e>0?1:-1,nl=e=>typeof e=="number"&&e!=+e,pu=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,it=e=>(typeof e=="number"||e instanceof Number)&&!nl(e),$a=e=>it(e)||typeof e=="string",Dte=0,tM=e=>{var t=++Dte;return"".concat(e||"").concat(t)},rl=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!it(t)&&typeof t!="string")return r;var i;if(pu(t)){if(n==null)return r;var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return nl(i)&&(i=r),o&&n!=null&&i>n&&(i=n),i},nM=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function Bh(e,t,n){return it(e)&&it(t)?Bi(e+n*(t-e)):t}function Nte(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):eM(r,t))===n)}var jh=e=>e===null||typeof e>"u",gu=e=>jh(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function $te(e){return e!=null}function c0(){}var Ite=["type","size","sizeType"];function u0(){return u0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u0.apply(null,arguments)}function rM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rM(Object(n),!0).forEach(function(r){Lte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lte(e,t,n){return(t=Fte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fte(e){var t=Rte(e,"string");return typeof t=="symbol"?t:t+""}function Rte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bte(e,t){if(e==null)return{};var n,r,o=jte(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jte(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var iM={symbolCircle:Gy,symbolCross:Jee,symbolDiamond:tte,symbolSquare:nte,symbolStar:ate,symbolTriangle:ste,symbolWye:cte},zte=Math.PI/180,qte=e=>{var t="symbol".concat(gu(e));return iM[t]||Gy},Vte=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*zte;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Ute=(e,t)=>{iM["symbol".concat(gu(e))]=t},aM=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,o=Bte(e,Ite),i=oM(oM({},o),{},{type:t,size:n,sizeType:r}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var f=qte(a),p=ute().type(f).size(Vte(n,r,a)),h=p();if(h!==null)return h},{className:l,cx:c,cy:u}=i,d=tl(i);return it(c)&&it(u)&&it(n)?g.createElement("path",u0({},d,{className:Kn("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};aM.registerSymbol=Ute;var sM=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Hte=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(O.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(o=>{zy(o)&&(r[o]=(i=>n[o](n,i)))}),r},Wte=(e,t,n)=>r=>(e(t,n,r),null),Kte=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(o=>{var i=e[o];zy(o)&&typeof i=="function"&&(r||(r={}),r[o]=Wte(i,t,n))}),r};function lM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Gte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lM(Object(n),!0).forEach(function(r){Yte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yte(e,t,n){return(t=Xte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xte(e){var t=Qte(e,"string");return typeof t=="symbol"?t:t+""}function Qte(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ol(e,t){var n=Gte({},e),r=t,o=Object.keys(t),i=o.reduce((a,s)=>(a[s]===void 0&&r[s]!==void 0&&(a[s]=r[s]),a),n);return i}function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zh.apply(null,arguments)}function cM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cM(Object(n),!0).forEach(function(r){Jte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jte(e,t,n){return(t=ene(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ene(e){var t=tne(e,"string");return typeof t=="symbol"?t:t+""}function tne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tr=32,nne={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function rne(e){var{data:t,iconType:n,inactiveColor:r}=e,o=Tr/2,i=Tr/6,a=Tr/3,s=t.inactive?r:t.color,l=n??t.type;if(l==="none")return null;if(l==="plainline"){var c;return g.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:(c=t.payload)===null||c===void 0?void 0:c.strokeDasharray,x1:0,y1:o,x2:Tr,y2:o,className:"recharts-legend-icon"})}if(l==="line")return g.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(o,"h").concat(a,`
264
+ A`).concat(i,",").concat(i,",0,1,1,").concat(2*a,",").concat(o,`
265
+ H`).concat(Tr,"M").concat(2*a,",").concat(o,`
266
+ A`).concat(i,",").concat(i,",0,1,1,").concat(a,",").concat(o),className:"recharts-legend-icon"});if(l==="rect")return g.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Tr/8,"h").concat(Tr,"v").concat(Tr*3/4,"h").concat(-Tr,"z"),className:"recharts-legend-icon"});if(g.isValidElement(t.legendIcon)){var u=Zte({},t);return delete u.legendIcon,g.cloneElement(t.legendIcon,u)}return g.createElement(aM,{fill:s,cx:o,cy:o,size:Tr,sizeType:"diameter",type:l})}function one(e){var{payload:t,iconSize:n,layout:r,formatter:o,inactiveColor:i,iconType:a}=e,s={x:0,y:0,width:Tr,height:Tr},l={display:r==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((u,d)=>{var f=u.formatter||o,p=Kn({"recharts-legend-item":!0,["legend-item-".concat(d)]:!0,inactive:u.inactive});if(u.type==="none")return null;var h=u.inactive?i:u.color,m=f?f(u.value,u,d):u.value;return g.createElement("li",zh({className:p,style:l,key:"legend-item-".concat(d)},Kte(e,u,d)),g.createElement(Hee,{width:n,height:n,viewBox:s,style:c,"aria-label":"".concat(m," legend icon")},g.createElement(rne,{data:u,iconType:a,inactiveColor:i})),g.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},m))})}var ine=e=>{var t=ol(e,nne),{payload:n,layout:r,align:o}=t;if(!n||!n.length)return null;var i={padding:0,margin:0,textAlign:r==="horizontal"?o:"left"};return g.createElement("ul",{className:"recharts-default-legend",style:i},g.createElement(one,zh({},t,{payload:n})))},d0={},f0={},uM;function ane(){return uM||(uM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const o=new Map;for(let i=0;i<n.length;i++){const a=n[i],s=r(a);o.has(s)||o.set(s,a)}return Array.from(o.values())}e.uniqBy=t})(f0)),f0}var h0={},dM;function fM(){return dM||(dM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(h0)),h0}var p0={},g0={},m0={},hM;function sne(){return hM||(hM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(m0)),m0}var pM;function gM(){return pM||(pM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sne();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(g0)),g0}var v0={},mM;function lne(){return mM||(mM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(v0)),v0}var vM;function cne(){return vM||(vM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gM(),n=lne();function r(o){return n.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=r})(p0)),p0}var y0={},b0={},yM;function une(){return yM||(yM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=s0();function n(r){return function(o){return t.get(o,r)}}e.property=n})(b0)),b0}var w0={},x0={},S0={},C0={},bM;function wM(){return bM||(bM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(C0)),C0}var E0={},xM;function SM(){return xM||(xM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(E0)),E0}var P0={},CM;function EM(){return CM||(CM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(P0)),P0}var PM;function dne(){return PM||(PM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wM(),n=SM(),r=EM();function o(u,d,f){return typeof f!="function"?o(u,d,()=>{}):i(u,d,function p(h,m,v,y,w,x){const S=f(h,m,v,y,w,x);return S!==void 0?!!S:i(h,m,p,x)},new Map)}function i(u,d,f,p){if(d===u)return!0;switch(typeof d){case"object":return a(u,d,f,p);case"function":return Object.keys(d).length>0?i(u,{...d},f,p):r.eq(u,d);default:return t.isObject(u)?typeof d=="string"?d==="":!0:r.eq(u,d)}}function a(u,d,f,p){if(d==null)return!0;if(Array.isArray(d))return l(u,d,f,p);if(d instanceof Map)return s(u,d,f,p);if(d instanceof Set)return c(u,d,f,p);const h=Object.keys(d);if(u==null||n.isPrimitive(u))return h.length===0;if(h.length===0)return!0;if(p!=null&&p.has(d))return p.get(d)===u;p==null||p.set(d,u);try{for(let m=0;m<h.length;m++){const v=h[m];if(!n.isPrimitive(u)&&!(v in u)||d[v]===void 0&&u[v]!==void 0||d[v]===null&&u[v]!==null||!f(u[v],d[v],v,u,d,p))return!1}return!0}finally{p==null||p.delete(d)}}function s(u,d,f,p){if(d.size===0)return!0;if(!(u instanceof Map))return!1;for(const[h,m]of d.entries()){const v=u.get(h);if(f(v,m,h,u,d,p)===!1)return!1}return!0}function l(u,d,f,p){if(d.length===0)return!0;if(!Array.isArray(u))return!1;const h=new Set;for(let m=0;m<d.length;m++){const v=d[m];let y=!1;for(let w=0;w<u.length;w++){if(h.has(w))continue;const x=u[w];let S=!1;if(f(x,v,m,u,d,p)&&(S=!0),S){h.add(w),y=!0;break}}if(!y)return!1}return!0}function c(u,d,f,p){return d.size===0?!0:u instanceof Set?l([...u],[...d],f,p):!1}e.isMatchWith=o,e.isSetMatch=c})(S0)),S0}var OM;function TM(){return OM||(OM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dne();function n(r,o){return t.isMatchWith(r,o,()=>{})}e.isMatch=n})(x0)),x0}var O0={},T0={},_0={},_M;function fne(){return _M||(_M=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(_0)),_0}var M0={},MM;function kM(){return MM||(MM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(M0)),M0}var k0={},AM;function DM(){return AM||(AM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",o="[object Boolean]",i="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",d="[object Function]",f="[object ArrayBuffer]",p="[object Object]",h="[object Error]",m="[object DataView]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",w="[object Uint16Array]",x="[object Uint32Array]",S="[object BigUint64Array]",C="[object Int8Array]",E="[object Int16Array]",P="[object Int32Array]",_="[object BigInt64Array]",T="[object Float32Array]",M="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=f,e.arrayTag=u,e.bigInt64ArrayTag=_,e.bigUint64ArrayTag=S,e.booleanTag=o,e.dataViewTag=m,e.dateTag=s,e.errorTag=h,e.float32ArrayTag=T,e.float64ArrayTag=M,e.functionTag=d,e.int16ArrayTag=E,e.int32ArrayTag=P,e.int8ArrayTag=C,e.mapTag=l,e.numberTag=r,e.objectTag=p,e.regexpTag=t,e.setTag=c,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=w,e.uint32ArrayTag=x,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=y})(k0)),k0}var A0={},NM;function hne(){return NM||(NM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(A0)),A0}var $M;function IM(){return $M||($M=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fne(),n=kM(),r=DM(),o=SM(),i=hne();function a(u,d){return s(u,void 0,u,new Map,d)}function s(u,d,f,p=new Map,h=void 0){const m=h==null?void 0:h(u,d,f,p);if(m!==void 0)return m;if(o.isPrimitive(u))return u;if(p.has(u))return p.get(u);if(Array.isArray(u)){const v=new Array(u.length);p.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,f,p,h);return Object.hasOwn(u,"index")&&(v.index=u.index),Object.hasOwn(u,"input")&&(v.input=u.input),v}if(u instanceof Date)return new Date(u.getTime());if(u instanceof RegExp){const v=new RegExp(u.source,u.flags);return v.lastIndex=u.lastIndex,v}if(u instanceof Map){const v=new Map;p.set(u,v);for(const[y,w]of u)v.set(y,s(w,y,f,p,h));return v}if(u instanceof Set){const v=new Set;p.set(u,v);for(const y of u)v.add(s(y,void 0,f,p,h));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(u))return u.subarray();if(i.isTypedArray(u)){const v=new(Object.getPrototypeOf(u)).constructor(u.length);p.set(u,v);for(let y=0;y<u.length;y++)v[y]=s(u[y],y,f,p,h);return v}if(u instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&u instanceof SharedArrayBuffer)return u.slice(0);if(u instanceof DataView){const v=new DataView(u.buffer.slice(0),u.byteOffset,u.byteLength);return p.set(u,v),l(v,u,f,p,h),v}if(typeof File<"u"&&u instanceof File){const v=new File([u],u.name,{type:u.type});return p.set(u,v),l(v,u,f,p,h),v}if(typeof Blob<"u"&&u instanceof Blob){const v=new Blob([u],{type:u.type});return p.set(u,v),l(v,u,f,p,h),v}if(u instanceof Error){const v=new u.constructor;return p.set(u,v),v.message=u.message,v.name=u.name,v.stack=u.stack,v.cause=u.cause,l(v,u,f,p,h),v}if(u instanceof Boolean){const v=new Boolean(u.valueOf());return p.set(u,v),l(v,u,f,p,h),v}if(u instanceof Number){const v=new Number(u.valueOf());return p.set(u,v),l(v,u,f,p,h),v}if(u instanceof String){const v=new String(u.valueOf());return p.set(u,v),l(v,u,f,p,h),v}if(typeof u=="object"&&c(u)){const v=Object.create(Object.getPrototypeOf(u));return p.set(u,v),l(v,u,f,p,h),v}return u}function l(u,d,f=u,p,h){const m=[...Object.keys(d),...t.getSymbols(d)];for(let v=0;v<m.length;v++){const y=m[v],w=Object.getOwnPropertyDescriptor(u,y);(w==null||w.writable)&&(u[y]=s(d[y],y,f,p,h))}}function c(u){switch(n.getTag(u)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(T0)),T0}var LM;function pne(){return LM||(LM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=IM();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(O0)),O0}var FM;function gne(){return FM||(FM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TM(),n=pne();function r(o){return o=n.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=r})(w0)),w0}var D0={},N0={},$0={},RM;function mne(){return RM||(RM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=IM(),n=DM();function r(o,i){return t.cloneDeepWith(o,(a,s,l,c)=>{const u=i==null?void 0:i(a,s,l,c);if(u!==void 0)return u;if(typeof o=="object")switch(Object.prototype.toString.call(o)){case n.numberTag:case n.stringTag:case n.booleanTag:{const d=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(d,o),d}case n.argumentsTag:{const d={};return t.copyProperties(d,o),d.length=o.length,d[Symbol.iterator]=o[Symbol.iterator],d}default:return}})}e.cloneDeepWith=r})($0)),$0}var BM;function vne(){return BM||(BM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mne();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(N0)),N0}var I0={},L0={},jM;function zM(){return jM||(jM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,o=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<o;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(L0)),L0}var F0={},qM;function yne(){return qM||(qM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kM();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(F0)),F0}var VM;function bne(){return VM||(VM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=G_(),n=zM(),r=yne(),o=a0();function i(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&(a==null?void 0:a[s])==null?l=o.toPath(s):l=[s],l.length===0)return!1;let c=a;for(let u=0;u<l.length;u++){const d=l[u];if((c==null||!Object.hasOwn(c,d))&&!((Array.isArray(c)||r.isArguments(c))&&n.isIndex(d)&&d<c.length))return!1;c=c[d]}return!0}e.has=i})(I0)),I0}var UM;function wne(){return UM||(UM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=TM(),n=r0(),r=vne(),o=s0(),i=bne();function a(s,l){switch(typeof s){case"object":{Object.is(s==null?void 0:s.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return l=r.cloneDeep(l),function(c){const u=o.get(c,s);return u===void 0?i.has(c,s):l===void 0?u===void 0:t.isMatch(u,l)}}e.matchesProperty=a})(D0)),D0}var HM;function xne(){return HM||(HM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fM(),n=une(),r=gne(),o=wne();function i(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?o.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=i})(y0)),y0}var WM;function Sne(){return WM||(WM=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ane(),n=fM(),r=cne(),o=xne();function i(a,s=n.identity){return r.isArrayLikeObject(a)?t.uniqBy(Array.from(a),o.iteratee(s)):[]}e.uniqBy=i})(d0)),d0}var R0,KM;function Cne(){return KM||(KM=1,R0=Sne().uniqBy),R0}var Ene=Cne();const GM=Rs(Ene);function YM(e,t,n){return t===!0?GM(e,n):typeof t=="function"?GM(e,t):e}var qh={exports:{}},B0={};/**
267
+ * @license React
268
+ * use-sync-external-store-shim/with-selector.production.js
269
+ *
270
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
271
+ *
272
+ * This source code is licensed under the MIT license found in the
273
+ * LICENSE file in the root directory of this source tree.
274
+ */var XM;function Pne(){if(XM)return B0;XM=1;var e=O,t=gy();function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return B0.useSyncExternalStoreWithSelector=function(c,u,d,f,p){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=s(function(){function y(E){if(!w){if(w=!0,x=E,E=f(E),p!==void 0&&m.hasValue){var P=m.value;if(p(P,E))return S=P}return S=E}if(P=S,r(x,E))return P;var _=f(E);return p!==void 0&&p(P,_)?(x=E,P):(x=E,S=_)}var w=!1,x,S,C=d===void 0?null:d;return[function(){return y(u())},C===null?void 0:function(){return y(C())}]},[u,d,f,p]);var v=o(c,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=v},[v]),l(v),v},B0}var j0={};/**
275
+ * @license React
276
+ * use-sync-external-store-shim/with-selector.development.js
277
+ *
278
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
279
+ *
280
+ * This source code is licensed under the MIT license found in the
281
+ * LICENSE file in the root directory of this source tree.
282
+ */var QM;function One(){return QM||(QM=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=O,n=gy(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,a=t.useEffect,s=t.useMemo,l=t.useDebugValue;j0.useSyncExternalStoreWithSelector=function(c,u,d,f,p){var h=i(null);if(h.current===null){var m={hasValue:!1,value:null};h.current=m}else m=h.current;h=s(function(){function y(E){if(!w){if(w=!0,x=E,E=f(E),p!==void 0&&m.hasValue){var P=m.value;if(p(P,E))return S=P}return S=E}if(P=S,r(x,E))return P;var _=f(E);return p!==void 0&&p(P,_)?(x=E,P):(x=E,S=_)}var w=!1,x,S,C=d===void 0?null:d;return[function(){return y(u())},C===null?void 0:function(){return y(C())}]},[u,d,f,p]);var v=o(c,h[0],h[1]);return a(function(){m.hasValue=!0,m.value=v},[v]),l(v),v},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),j0}var ZM;function Tne(){return ZM||(ZM=1,process.env.NODE_ENV==="production"?qh.exports=Pne():qh.exports=One()),qh.exports}var _ne=Tne(),JM=O.createContext(null),Mne=e=>e,Vh=()=>{var e=O.useContext(JM);return e?e.store.dispatch:Mne},Uh=()=>{},kne=()=>Uh,Ane=(e,t)=>e===t;function Dt(e){var t=O.useContext(JM);return _ne.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:kne,t?t.store.getState:Uh,t?t.store.getState:Uh,t?e:Uh,Ane)}var Dne=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch{}if(r){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
283
+ \`createSelector([state => state.todos], todos => todos)\`
284
+ This could lead to inefficient memoization and unnecessary re-renders.
285
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:o})}}},Nne=(e,t,n)=>{const{memoize:r,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:a}=e,s=r(()=>({}),...o);if(!(s.apply(null,i)===s.apply(null,a))){let c;try{throw new Error}catch(u){({stack:c}=u)}console.warn(`An input selector returned a different result when passed same arguments.
286
+ This means your output selector will likely run more frequently than intended.
287
+ Avoid returning a new reference inside your input selector, e.g.
288
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:i,secondInputs:a,stack:c})}},$ne={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Ine(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Lne(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Fne(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var ek=e=>Array.isArray(e)?e:[e];function Rne(e){const t=Array.isArray(e[0])?e[0]:e;return Fne(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function tk(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var Bne=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...$ne,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:Dne},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Nne}}},jne=class{constructor(e){this.value=e}deref(){return this.value}},zne=typeof WeakRef<"u"?WeakRef:jne,qne=0,nk=1;function Hh(){return{s:qne,v:void 0,o:null,p:null}}function rk(e,t={}){let n=Hh();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var d;let s=n;const{length:l}=arguments;for(let f=0,p=l;f<p;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let m=s.o;m===null&&(s.o=m=new WeakMap);const v=m.get(h);v===void 0?(s=Hh(),m.set(h,s)):s=v}else{let m=s.p;m===null&&(s.p=m=new Map);const v=m.get(h);v===void 0?(s=Hh(),m.set(h,s)):s=v}}const c=s;let u;if(s.s===nk)u=s.v;else if(u=e.apply(null,arguments),i++,r){const f=((d=o==null?void 0:o.deref)==null?void 0:d.call(o))??o;f!=null&&r(f,u)&&(u=f,i!==0&&i--),o=typeof u=="object"&&u!==null||typeof u=="function"?new zne(u):u}return c.s=nk,c.v=u,u}return a.clearCache=()=>{n=Hh(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function Vne(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,s,l={},c=o.pop();typeof c=="object"&&(l=c,c=o.pop()),Ine(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:p=rk,argsMemoizeOptions:h=[],devModeChecks:m={}}=u,v=ek(f),y=ek(h),w=Rne(o),x=d(function(){return i++,c.apply(null,arguments)},...v);let S=!0;const C=p(function(){a++;const P=tk(w,arguments);if(s=x.apply(null,P),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:_,inputStabilityCheck:T}=Bne(S,m);if(_.shouldRun&&_.run(c,P,s),T.shouldRun){const M=tk(w,arguments);T.run({inputSelectorResults:P,inputSelectorResultsCopy:M},{memoize:d,memoizeOptions:v},arguments)}S&&(S=!1)}return s},...y);return Object.assign(C,{resultFunc:c,memoizedResultFunc:x,dependencies:w,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:p})};return Object.assign(r,{withTypes:()=>r}),r}var ie=Vne(rk),Une=Object.assign((e,t=ie)=>{Lne(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>Une}),z0={},q0={},V0={},ok;function Hne(){return ok||(ok=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,o,i)=>{if(r!==o){const a=t(r),s=t(o);if(a===s&&a===0){if(r<o)return i==="desc"?1:-1;if(r>o)return i==="desc"?-1:1}return i==="desc"?s-a:a-s}return 0};e.compareValues=n})(V0)),V0}var U0={},H0={},ik;function ak(){return ik||(ik=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(H0)),H0}var sk;function Wne(){return sk||(sk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ak(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||t.isSymbol(i)?!0:typeof i=="string"&&(r.test(i)||!n.test(i))||a!=null&&Object.hasOwn(a,i)}e.isKey=o})(U0)),U0}var lk;function Kne(){return lk||(lk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hne(),n=Wne(),r=a0();function o(i,a,s,l){if(i==null)return[];s=l?void 0:s,Array.isArray(i)||(i=Object.values(i)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(p=>String(p));const c=(p,h)=>{let m=p;for(let v=0;v<h.length&&m!=null;++v)m=m[h[v]];return m},u=(p,h)=>h==null||p==null?h:typeof p=="object"&&"key"in p?Object.hasOwn(h,p.key)?h[p.key]:c(h,p.path):typeof p=="function"?p(h):Array.isArray(p)?c(h,p):typeof h=="object"?h[p]:h,d=a.map(p=>(Array.isArray(p)&&p.length===1&&(p=p[0]),p==null||typeof p=="function"||Array.isArray(p)||n.isKey(p)?p:{key:p,path:r.toPath(p)}));return i.map(p=>({original:p,criteria:d.map(h=>u(h,p))})).slice().sort((p,h)=>{for(let m=0;m<d.length;m++){const v=t.compareValues(p.criteria[m],h.criteria[m],s[m]);if(v!==0)return v}return 0}).map(p=>p.original)}e.orderBy=o})(q0)),q0}var W0={},ck;function Gne(){return ck||(ck=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const o=[],i=Math.floor(r),a=(s,l)=>{for(let c=0;c<s.length;c++){const u=s[c];Array.isArray(u)&&l<i?a(u,l+1):o.push(u)}};return a(n,0),o}e.flatten=t})(W0)),W0}var K0={},uk;function dk(){return uk||(uk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zM(),n=gM(),r=wM(),o=EM();function i(a,s,l){return r.isObject(l)&&(typeof s=="number"&&n.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?o.eq(l[s],a):!1}e.isIterateeCall=i})(K0)),K0}var fk;function Yne(){return fk||(fk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kne(),n=Gne(),r=dk();function o(i,...a){const s=a.length;return s>1&&r.isIterateeCall(i,a[0],a[1])?a=[]:s>2&&r.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(i,n.flatten(a),["asc"])}e.sortBy=o})(z0)),z0}var G0,hk;function Xne(){return hk||(hk=1,G0=Yne().sortBy),G0}var Qne=Xne();const Wh=Rs(Qne);var pk=e=>e.legend.settings,Zne=e=>e.legend.size,Jne=e=>e.legend.payload,ere=ie([Jne,pk],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?Wh(r,n):r});function tre(){return Dt(ere)}var Kh=1;function gk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=O.useState({height:0,left:0,top:0,width:0}),r=O.useCallback(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>Kh||Math.abs(a.left-t.left)>Kh||Math.abs(a.top-t.top)>Kh||Math.abs(a.width-t.width)>Kh)&&n({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function nre(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function rre(e){return nre(e)&&"type"in e&&typeof e.type=="string"}var mk=Symbol.for("immer-nothing"),vk=Symbol.for("immer-draftable"),Fn=Symbol.for("immer-state"),ore=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function sr(e,...t){if(process.env.NODE_ENV!=="production"){const n=ore[e],r=Ia(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var lr=Object,il=lr.getPrototypeOf,Gh="constructor",Yh="prototype",Y0="configurable",Xh="enumerable",Qh="writable",mu="value",fi=e=>!!e&&!!e[Fn];function to(e){var t;return e?bk(e)||Jh(e)||!!e[vk]||!!((t=e[Gh])!=null&&t[vk])||ep(e)||tp(e):!1}var ire=lr[Yh][Gh].toString(),yk=new WeakMap;function bk(e){if(!e||!Q0(e))return!1;const t=il(e);if(t===null||t===lr[Yh])return!0;const n=lr.hasOwnProperty.call(t,Gh)&&t[Gh];if(n===Object)return!0;if(!Ia(n))return!1;let r=yk.get(n);return r===void 0&&(r=Function.toString.call(n),yk.set(n,r)),r===ire}function vu(e,t,n=!0){yu(e)===0?(n?Reflect.ownKeys(e):lr.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((r,o)=>t(o,r,e))}function yu(e){const t=e[Fn];return t?t.type_:Jh(e)?1:ep(e)?2:tp(e)?3:0}var wk=(e,t,n=yu(e))=>n===2?e.has(t):lr[Yh].hasOwnProperty.call(e,t),X0=(e,t,n=yu(e))=>n===2?e.get(t):e[t],Zh=(e,t,n,r=yu(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function are(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Jh=Array.isArray,ep=e=>e instanceof Map,tp=e=>e instanceof Set,Q0=e=>typeof e=="object",Ia=e=>typeof e=="function",Z0=e=>typeof e=="boolean";function sre(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var hi=e=>e.copy_||e.base_,J0=e=>e.modified_?e.copy_:e.base_;function eb(e,t){if(ep(e))return new Map(e);if(tp(e))return new Set(e);if(Jh(e))return Array[Yh].slice.call(e);const n=bk(e);if(t===!0||t==="class_only"&&!n){const r=lr.getOwnPropertyDescriptors(e);delete r[Fn];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s[Qh]===!1&&(s[Qh]=!0,s[Y0]=!0),(s.get||s.set)&&(r[a]={[Y0]:!0,[Qh]:!0,[Xh]:s[Xh],[mu]:e[a]})}return lr.create(il(e),r)}else{const r=il(e);if(r!==null&&n)return{...e};const o=lr.create(r);return lr.assign(o,e)}}function tb(e,t=!1){return rp(e)||fi(e)||!to(e)||(yu(e)>1&&lr.defineProperties(e,{set:np,add:np,clear:np,delete:np}),lr.freeze(e),t&&vu(e,(n,r)=>{tb(r,!0)},!1)),e}function lre(){sr(2)}var np={[mu]:lre};function rp(e){return e===null||!Q0(e)?!0:lr.isFrozen(e)}var op="MapSet",nb="Patches",xk="ArrayMethods",Sk={};function La(e){const t=Sk[e];return t||sr(0,e),t}var Ck=e=>!!Sk[e],bu,Ek=()=>bu,cre=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ck(op)?La(op):void 0,arrayMethodsPlugin_:Ck(xk)?La(xk):void 0});function Pk(e,t){t&&(e.patchPlugin_=La(nb),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function rb(e){ob(e),e.drafts_.forEach(ure),e.drafts_=null}function ob(e){e===bu&&(bu=e.parent_)}var Ok=e=>bu=cre(bu,e);function ure(e){const t=e[Fn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Tk(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Fn].modified_&&(rb(t),sr(4)),to(e)&&(e=_k(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[Fn].base_,e,t)}else e=_k(t,n);return dre(t,e,!0),rb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==mk?e:void 0}function _k(e,t){if(rp(t))return t;const n=t[Fn];if(!n)return ib(t,e.handledSet_,e);if(!ip(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Ak(n,e)}return n.copy_}function dre(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tb(t,n)}function Mk(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ip=(e,t)=>e.scope_===t,fre=[];function kk(e,t,n,r){const o=hi(e),i=e.type_;if(r!==void 0&&X0(o,r,i)===t){Zh(o,r,n,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;vu(o,(l,c)=>{if(fi(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const a=e.draftLocations_.get(t)??fre;for(const s of a)Zh(o,s,n,i)}function hre(e,t,n){e.callbacks_.push(function(o){var s;const i=t;if(!i||!ip(i,o))return;(s=o.mapSetPlugin_)==null||s.fixSetContents(i);const a=J0(i);kk(e,i.draft_??i,a,n),Ak(i,o)})}function Ak(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:o}=t;if(o){const i=o.getPath(e);i&&o.generatePatches_(e,i,t)}Mk(e)}}function pre(e,t,n){const{scope_:r}=e;if(fi(n)){const o=n[Fn];ip(o,r)&&o.callbacks_.push(function(){ap(e);const a=J0(o);kk(e,n,a,t)})}else to(n)&&e.callbacks_.push(function(){const i=hi(e);X0(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ib(X0(e.copy_,t,e.type_),r.handledSet_,r)})}function ib(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||fi(e)||t.has(e)||!to(e)||rp(e)||(t.add(e),vu(e,(r,o)=>{if(fi(o)){const i=o[Fn];if(ip(i,n)){const a=J0(i);Zh(e,r,a,e.type_),Mk(i)}}else to(o)&&ib(o,t,n)})),e}function gre(e,t){const n=Jh(e),r={type_:n?1:0,scope_:t?t.scope_:Ek(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,i=ab;n&&(o=[r],i=wu);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,[s,r]}var ab={get(e,t){if(t===Fn)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const o=hi(e);if(!wk(o,t,e.type_))return mre(e,o,t);const i=o[t];if(e.finalized_||!to(i)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&sre(t))return i;if(i===sb(e.base_,t)){ap(e);const a=e.type_===1?+t:t,s=cb(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in hi(e)},ownKeys(e){return Reflect.ownKeys(hi(e))},set(e,t,n){const r=Dk(hi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=sb(hi(e),t),i=o==null?void 0:o[Fn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(are(n,o)&&(n!==void 0||wk(e.base_,t,e.type_)))return!0;ap(e),lb(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),pre(e,t,n)),!0},deleteProperty(e,t){return ap(e),sb(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),lb(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=hi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Qh]:!0,[Y0]:e.type_!==1||t!=="length",[Xh]:r[Xh],[mu]:n[t]}},defineProperty(){sr(11)},getPrototypeOf(e){return il(e.base_)},setPrototypeOf(){sr(12)}},wu={};vu(ab,(e,t)=>{wu[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),wu.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&sr(13),wu.set.call(this,e,t,void 0)},wu.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&sr(14),ab.set.call(this,e[0],t,n,e[0])};function sb(e,t){const n=e[Fn];return(n?hi(n):e)[t]}function mre(e,t,n){var o;const r=Dk(t,n);return r?mu in r?r[mu]:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Dk(e,t){if(!(t in e))return;let n=il(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=il(n)}}function lb(e){e.modified_||(e.modified_=!0,e.parent_&&lb(e.parent_))}function ap(e){e.copy_||(e.assigned_=new Map,e.copy_=eb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var vre=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,o)=>{if(Ia(n)&&!Ia(r)){const a=r;r=n;const s=this;return function(c=a,...u){return s.produce(c,d=>r.call(this,d,...u))}}Ia(r)||sr(6),o!==void 0&&!Ia(o)&&sr(7);let i;if(to(n)){const a=Ok(this),s=cb(a,n,void 0);let l=!0;try{i=r(s),l=!1}finally{l?rb(a):ob(a)}return Pk(a,o),Tk(i,a)}else if(!n||!Q0(n)){if(i=r(n),i===void 0&&(i=n),i===mk&&(i=void 0),this.autoFreeze_&&tb(i,!0),o){const a=[],s=[];La(nb).generateReplacementPatches_(n,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else sr(1,n)},this.produceWithPatches=(n,r)=>{if(Ia(n))return(s,...l)=>this.produceWithPatches(s,c=>n(c,...l));let o,i;return[this.produce(n,r,(s,l)=>{o=s,i=l}),o,i]},Z0(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Z0(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Z0(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){to(t)||sr(8),fi(t)&&(t=xu(t));const n=Ok(this),r=cb(n,t,void 0);return r[Fn].isManual_=!0,ob(n),r}finishDraft(t,n){const r=t&&t[Fn];(!r||!r.isManual_)&&sr(9);const{scope_:o}=r;return Pk(o,n),Tk(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const i=n[r];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}r>-1&&(n=n.slice(r+1));const o=La(nb).applyPatches_;return fi(t)?o(t,n):this.produce(t,i=>o(i,n))}};function cb(e,t,n,r){const[o,i]=ep(t)?La(op).proxyMap_(t,n):tp(t)?La(op).proxySet_(t,n):gre(t,n);return((n==null?void 0:n.scope_)??Ek()).drafts_.push(o),i.callbacks_=(n==null?void 0:n.callbacks_)??[],i.key_=r,n&&r!==void 0?hre(n,i,r):i.callbacks_.push(function(l){var u;(u=l.mapSetPlugin_)==null||u.fixSetContents(i);const{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),o}function xu(e){return fi(e)||sr(10,e),Nk(e)}function Nk(e){if(!to(e)||rp(e))return e;const t=e[Fn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=eb(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=eb(e,!0);return vu(n,(o,i)=>{Zh(n,o,Nk(i))},r),t&&(t.finalized_=!1),n}var yre=new vre,$k=yre.produce;function Ik(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(process.env.NODE_ENV==="production"?xn(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>rre(r)&&r.type===e,n}function Lk(e){return to(e)?$k(e,()=>{}):e}function sp(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var bre="RTK_autoBatch",Oo=()=>e=>({payload:e,meta:{[bre]:!0}});function Fk(e){const t={},n=[];let r;const o={addCase(i,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?xn(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?xn(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const s=typeof i=="string"?i:i.type;if(!s)throw new Error(process.env.NODE_ENV==="production"?xn(28):"`builder.addCase` cannot be called with an empty action type");if(s in t)throw new Error(process.env.NODE_ENV==="production"?xn(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${s}'`);return t[s]=a,o},addAsyncThunk(i,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?xn(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?xn(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?xn(31):"`builder.addDefaultCase` can only be called once");return r=i,o}};return e(o),[t,n,r]}function wre(e){return typeof e=="function"}function xre(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?xn(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,o]=Fk(t),i;if(wre(e))i=()=>Lk(e());else{const s=Lk(e);i=()=>s}function a(s=i(),l){let c=[n[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,d)=>{if(d)if(fi(u)){const p=d(u,l);return p===void 0?u:p}else{if(to(u))return $k(u,f=>d(f,l));{const f=d(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},s)}return a.getInitialState=i,a}var Sre=Symbol.for("rtk-slice-createasyncthunk");function Cre(e,t){return`${e}/${t}`}function Ere({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Sre];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(process.env.NODE_ENV==="production"?xn(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&o.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const s=(typeof o.reducers=="function"?o.reducers(Ore()):o.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(S,C){const E=typeof S=="string"?S:S.type;if(!E)throw new Error(process.env.NODE_ENV==="production"?xn(12):"`context.addCase` cannot be called with an empty action type");if(E in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?xn(13):"`context.addCase` cannot be called with two reducers for the same action type: "+E);return c.sliceCaseReducersByType[E]=C,u},addMatcher(S,C){return c.sliceMatchers.push({matcher:S,reducer:C}),u},exposeAction(S,C){return c.actionCreators[S]=C,u},exposeCaseReducer(S,C){return c.sliceCaseReducersByName[S]=C,u}};l.forEach(S=>{const C=s[S],E={reducerName:S,type:Cre(i,S),createNotation:typeof o.reducers=="function"};_re(C)?kre(E,C,u,t):Tre(E,C,u)});function d(){if(process.env.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?xn(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[S={},C=[],E=void 0]=typeof o.extraReducers=="function"?Fk(o.extraReducers):[o.extraReducers],P={...S,...c.sliceCaseReducersByType};return xre(o.initialState,_=>{for(let T in P)_.addCase(T,P[T]);for(let T of c.sliceMatchers)_.addMatcher(T.matcher,T.reducer);for(let T of C)_.addMatcher(T.matcher,T.reducer);E&&_.addDefaultCase(E)})}const f=S=>S,p=new Map,h=new WeakMap;let m;function v(S,C){return m||(m=d()),m(S,C)}function y(){return m||(m=d()),m.getInitialState()}function w(S,C=!1){function E(_){let T=_[S];if(typeof T>"u"){if(C)T=sp(h,E,y);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?xn(15):"selectSlice returned undefined for an uninjected slice reducer")}return T}function P(_=f){const T=sp(p,C,()=>new WeakMap);return sp(T,_,()=>{const M={};for(const[A,D]of Object.entries(o.selectors??{}))M[A]=Pre(D,_,()=>sp(h,_,y),C);return M})}return{reducerPath:S,getSelectors:P,get selectors(){return P(E)},selectSlice:E}}const x={name:i,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:y,...w(a),injectInto(S,{reducerPath:C,...E}={}){const P=C??a;return S.inject({reducerPath:P,reducer:v},E),{...x,...w(P,!0)}}};return x}}function Pre(e,t,n,r){function o(i,...a){let s=t(i);if(typeof s>"u"){if(r)s=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?xn(16):"selectState returned undefined for an uninjected slice reducer")}return e(s,...a)}return o.unwrapped=e,o}var ub=Ere();function Ore(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Tre({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!Mre(r))throw new Error(process.env.NODE_ENV==="production"?xn(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Ik(e,a):Ik(e))}function _re(e){return e._reducerDefinitionType==="asyncThunk"}function Mre(e){return e._reducerDefinitionType==="reducerWithPrepare"}function kre({type:e,reducerName:t},n,r,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?xn(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:c,options:u}=n,d=o(e,i,u);r.exposeAction(t,d),a&&r.addCase(d.fulfilled,a),s&&r.addCase(d.pending,s),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(t,{fulfilled:a||lp,pending:s||lp,rejected:l||lp,settled:c||lp})}function lp(){}function xn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function Rk(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Sn(e){return Number.isFinite(e)}function cp(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function al(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bk(Object(n),!0).forEach(function(r){Are(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Are(e,t,n){return(t=Dre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dre(e){var t=Nre(e,"string");return typeof t=="symbol"?t:t+""}function Nre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(e,t,n){return jh(e)||jh(t)?n:$a(t)?eM(e,t,n):typeof t=="function"?t(e):n}var $re=(e,t,n)=>{if(t&&n){var{width:r,height:o}=n,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&it(e[i]))return al(al({},e),{},{[i]:e[i]+(r||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&it(e[a]))return al(al({},e),{},{[a]:e[a]+(o||0)})}return e},Fa=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",jk=1e-4,Ire=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-jk,i=Math.max(r[0],r[1])+jk,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},Lre=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var o=0;o<r;++o)for(var i=0,a=0,s=0;s<n;++s){var l=e[s],c=l==null?void 0:l[o];if(c!=null){var u=c[1],d=c[0],f=nl(u)?d:u;f>=0?(c[0]=i,c[1]=i+f,i=u):(c[0]=a,c[1]=a+f,a=u)}}}},Fre=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var o=0;o<r;++o)for(var i=0,a=0;a<n;++a){var s=e[a],l=s==null?void 0:s[o];if(l!=null){var c=nl(l[1])?l[0]:l[1];c>=0?(l[0]=i,l[1]=i+c,i=l[1]):(l[0]=0,l[1]=0)}}}},Rre={sign:Lre,expand:Ete,none:Na,silhouette:Pte,wiggle:Ote,positive:Fre},Bre=(e,t,n)=>{var r,o=(r=Rre[n])!==null&&r!==void 0?r:Na,i=Cte().keys(t).value((s,l)=>Number(cr(s,l,0))).order(Zy).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((c,u)=>{var d=cr(e[u],t[l],0);Array.isArray(d)&&d.length===2&&it(d[0])&&it(d[1])&&(c[0]=d[0],c[1]=d[1])})}),a},jre=e=>{var t=e.flat(2).filter(it);return[Math.min(...t),Math.max(...t)]},zre=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],qre=(e,t,n)=>{if(e!=null)return zre(Object.keys(e).reduce((r,o)=>{var i=e[o];if(!i)return r;var{stackedData:a}=i,s=a.reduce((l,c)=>{var u=Rk(c,t,n),d=jre(u);return!Sn(d[0])||!Sn(d[1])?l:[Math.min(l[0],d[0]),Math.max(l[1],d[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},zk=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qk=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vk=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();return r}if(e&&t&&t.length>=2){for(var o=Wh(t,u=>u.coordinate),i=1/0,a=1,s=o.length;a<s;a++){var l=o[a],c=o[a-1];i=Math.min(((l==null?void 0:l.coordinate)||0)-((c==null?void 0:c.coordinate)||0),i)}return i===1/0?0:i}return n?void 0:0};function Uk(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:o,name:i}=e;return al(al({},t),{},{dataKey:n,payload:r,value:o,name:i})}var ji=e=>e.layout.width,zi=e=>e.layout.height,Hk=e=>e.layout.margin,up=ie(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),dp=ie(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Su=60;function Wk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wk(Object(n),!0).forEach(function(r){Vre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vre(e,t,n){return(t=Ure(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ure(e){var t=Hre(e,"string");return typeof t=="symbol"?t:t+""}function Hre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wre=e=>e.brush.height;function Kre(e){var t=dp(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var o=typeof r.width=="number"?r.width:Su;return n+o}return n},0)}function Gre(e){var t=dp(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var o=typeof r.width=="number"?r.width:Su;return n+o}return n},0)}function Yre(e){var t=up(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function Xre(e){var t=up(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var Rn=ie([ji,zi,Hk,Wre,Kre,Gre,Yre,Xre,pk,Zne],(e,t,n,r,o,i,a,s,l,c)=>{var u={left:(n.left||0)+o,right:(n.right||0)+i},d={top:(n.top||0)+a,bottom:(n.bottom||0)+s},f=fp(fp({},d),u),p=f.bottom;f.bottom+=r,f=$re(f,l,c);var h=e-f.left-f.right,m=t-f.top-f.bottom;return fp(fp({brushBottom:p},f),{},{width:Math.max(h,0),height:Math.max(m,0)})}),Qre=ie(Rn,e=>({x:e.left,y:e.top,width:e.width,height:e.height}));ie(ji,zi,(e,t)=>({x:0,y:0,width:e,height:t}));var Zre=O.createContext(null),Kk=()=>O.useContext(Zre)!=null,hp=e=>e.brush,db=ie([hp,Rn,Hk],(e,t,n)=>({height:e.height,x:it(e.x)?e.x:t.left,y:it(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:it(e.width)?e.width:t.width})),fb={},hb={},pb={},Gk;function Jre(){return Gk||(Gk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:o,edges:i}={}){let a,s=null;const l=i!=null&&i.includes("leading"),c=i==null||i.includes("trailing"),u=()=>{s!==null&&(n.apply(a,s),a=void 0,s=null)},d=()=>{c&&u(),m()};let f=null;const p=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,d()},r)},h=()=>{f!==null&&(clearTimeout(f),f=null)},m=()=>{h(),a=void 0,s=null},v=()=>{u()},y=function(...w){if(o!=null&&o.aborted)return;a=this,s=w;const x=f==null;p(),l&&x&&u()};return y.schedule=p,y.cancel=m,y.flush=v,o==null||o.addEventListener("abort",m,{once:!0}),y}e.debounce=t})(pb)),pb}var Yk;function eoe(){return Yk||(Yk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jre();function n(r,o=0,i={}){typeof i!="object"&&(i={});const{leading:a=!1,trailing:s=!0,maxWait:l}=i,c=Array(2);a&&(c[0]="leading"),s&&(c[1]="trailing");let u,d=null;const f=t.debounce(function(...m){u=r.apply(this,m),d=null},o,{edges:c}),p=function(...m){return l!=null&&(d===null&&(d=Date.now()),Date.now()-d>=l)?(u=r.apply(this,m),d=Date.now(),f.cancel(),f.schedule(),u):(f.apply(this,m),u)},h=()=>(f.flush(),u);return p.cancel=f.cancel,p.flush=h,p}e.debounce=n})(hb)),hb}var Xk;function toe(){return Xk||(Xk=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eoe();function n(r,o=0,i={}){const{leading:a=!0,trailing:s=!0}=i;return t.debounce(r,o,{leading:a,maxWait:o,trailing:s})}e.throttle=n})(fb)),fb}var gb,Qk;function noe(){return Qk||(Qk=1,gb=toe().throttle),gb}var roe=noe();const ooe=Rs(roe);var Zk=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(n.replace(/%s/g,()=>o[a++]))}},Jk=(e,t,n)=>{var{width:r="100%",height:o="100%",aspect:i,maxHeight:a}=n,s=pu(r)?e:Number(r),l=pu(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},ioe={width:0,height:0,overflow:"visible"},aoe={width:0,overflowX:"visible"},soe={height:0,overflowY:"visible"},loe={},coe=e=>{var{width:t,height:n}=e,r=pu(t),o=pu(n);return r&&o?ioe:r?aoe:o?soe:loe};function uoe(e){var{width:t,height:n,aspect:r}=e,o=t,i=n;return o===void 0&&i===void 0?(o="100%",i="100%"):o===void 0?o=r&&r>0?void 0:"100%":i===void 0&&(i=r&&r>0?void 0:"100%"),{width:o,height:i}}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mb.apply(null,arguments)}function eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function tA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(r){doe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function doe(e,t,n){return(t=foe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function foe(e){var t=hoe(e,"string");return typeof t=="symbol"?t:t+""}function hoe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nA=O.createContext({width:-1,height:-1});function poe(e){return cp(e.width)&&cp(e.height)}function rA(e){var{children:t,width:n,height:r}=e,o=O.useMemo(()=>({width:n,height:r}),[n,r]);return poe(o)?g.createElement(nA.Provider,{value:o},t):null}var goe=()=>O.useContext(nA),moe=O.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:o,height:i,minWidth:a=0,minHeight:s,maxHeight:l,children:c,debounce:u=0,id:d,className:f,onResize:p,style:h={}}=e,m=O.useRef(null),v=O.useRef();v.current=p,O.useImperativeHandle(t,()=>m.current);var[y,w]=O.useState({containerWidth:r.width,containerHeight:r.height}),x=O.useCallback((_,T)=>{w(M=>{var A=Math.round(_),D=Math.round(T);return M.containerWidth===A&&M.containerHeight===D?M:{containerWidth:A,containerHeight:D}})},[]);O.useEffect(()=>{if(m.current==null||typeof ResizeObserver>"u")return c0;var _=D=>{var N,{width:R,height:U}=D[0].contentRect;x(R,U),(N=v.current)===null||N===void 0||N.call(v,R,U)};u>0&&(_=ooe(_,u,{trailing:!0,leading:!1}));var T=new ResizeObserver(_),{width:M,height:A}=m.current.getBoundingClientRect();return x(M,A),T.observe(m.current),()=>{T.disconnect()}},[x,u]);var{containerWidth:S,containerHeight:C}=y;Zk(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:E,calculatedHeight:P}=Jk(S,C,{width:o,height:i,aspect:n,maxHeight:l});return Zk(E!=null&&E>0||P!=null&&P>0,`The width(%s) and height(%s) of chart should be greater than 0,
289
+ please check the style of container, or the props width(%s) and height(%s),
290
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
291
+ height and width.`,E,P,o,i,a,s,n),g.createElement("div",{id:d?"".concat(d):void 0,className:Kn("recharts-responsive-container",f),style:tA(tA({},h),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:m},g.createElement("div",{style:coe({width:o,height:i})},g.createElement(rA,{width:E,height:P},c)))}),voe=O.forwardRef((e,t)=>{var n=goe();if(cp(n.width)&&cp(n.height))return e.children;var{width:r,height:o}=uoe({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=Jk(void 0,void 0,{width:r,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return it(i)&&it(a)?g.createElement(rA,{width:i,height:a},e.children):g.createElement(moe,mb({},e,{width:r,height:o,ref:t}))}),oA=()=>{var e,t=Kk(),n=Dt(Qre),r=Dt(db),o=(e=Dt(hp))===null||e===void 0?void 0:e.padding;return!t||!r||!o?n:{width:r.width-o.left-o.right,height:r.height-o.top-o.bottom,x:o.left,y:o.top}},yoe={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},boe=()=>{var e;return(e=Dt(Rn))!==null&&e!==void 0?e:yoe},woe=()=>Dt(ji),xoe=()=>Dt(zi),Soe=()=>Dt(e=>e.layout.margin),qt=e=>e.layout.layoutType,vb=()=>Dt(qt),Coe=()=>{var e=vb();return e!==void 0},iA=Symbol.for("immer-nothing"),aA=Symbol.for("immer-draftable"),ur=Symbol.for("immer-state"),Eoe=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Gn(e,...t){if(process.env.NODE_ENV!=="production"){const n=Eoe[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Cu=Object.getPrototypeOf;function sl(e){return!!e&&!!e[ur]}function Ra(e){var t;return e?lA(e)||Array.isArray(e)||!!e[aA]||!!((t=e.constructor)!=null&&t[aA])||Eu(e)||mp(e):!1}var Poe=Object.prototype.constructor.toString(),sA=new WeakMap;function lA(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=sA.get(n);return r===void 0&&(r=Function.toString.call(n),sA.set(n,r)),r===Poe}function pp(e,t,n=!0){gp(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((r,o)=>t(o,r,e))}function gp(e){const t=e[ur];return t?t.type_:Array.isArray(e)?1:Eu(e)?2:mp(e)?3:0}function yb(e,t){return gp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function cA(e,t,n){const r=gp(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Ooe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Eu(e){return e instanceof Map}function mp(e){return e instanceof Set}function Ba(e){return e.copy_||e.base_}function bb(e,t){if(Eu(e))return new Map(e);if(mp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=lA(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ur];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Cu(e),r)}else{const r=Cu(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function wb(e,t=!1){return yp(e)||sl(e)||!Ra(e)||(gp(e)>1&&Object.defineProperties(e,{set:vp,add:vp,clear:vp,delete:vp}),Object.freeze(e),t&&Object.values(e).forEach(n=>wb(n,!0))),e}function Toe(){Gn(2)}var vp={value:Toe};function yp(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var _oe={};function ja(e){const t=_oe[e];return t||Gn(0,e),t}var Pu;function uA(){return Pu}function Moe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function dA(e,t){t&&(ja("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function xb(e){Sb(e),e.drafts_.forEach(koe),e.drafts_=null}function Sb(e){e===Pu&&(Pu=e.parent_)}function fA(e){return Pu=Moe(Pu,e)}function koe(e){const t=e[ur];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hA(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ur].modified_&&(xb(t),Gn(4)),Ra(e)&&(e=bp(t,e),t.parent_||wp(t,e)),t.patches_&&ja("Patches").generateReplacementPatches_(n[ur].base_,e,t.patches_,t.inversePatches_)):e=bp(t,n,[]),xb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==iA?e:void 0}function bp(e,t,n){if(yp(t))return t;const r=e.immer_.shouldUseStrictIteration(),o=t[ur];if(!o)return pp(t,(i,a)=>pA(e,o,t,i,a,n),r),t;if(o.scope_!==e)return t;if(!o.modified_)return wp(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let a=i,s=!1;o.type_===3&&(a=new Set(i),i.clear(),s=!0),pp(a,(l,c)=>pA(e,o,i,l,c,n,s),r),wp(e,i,!1),n&&e.patches_&&ja("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function pA(e,t,n,r,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=yp(o);if(!(s&&!a)){if(process.env.NODE_ENV!=="production"&&o===n&&Gn(5),sl(o)){const l=i&&t&&t.type_!==3&&!yb(t.assigned_,r)?i.concat(r):void 0,c=bp(e,o,l);if(cA(n,r,c),sl(c))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Ra(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===o&&s)return;bp(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Eu(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&wp(e,o)}}}function wp(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&wb(t,n)}function Aoe(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:uA(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Cb;n&&(o=[r],i=Ou);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var Cb={get(e,t){if(t===ur)return e;const n=Ba(e);if(!yb(n,t))return Doe(e,n,t);const r=n[t];return e.finalized_||!Ra(r)?r:r===Eb(e.base_,t)?(Ob(e),e.copy_[t]=Tb(r,e)):r},has(e,t){return t in Ba(e)},ownKeys(e){return Reflect.ownKeys(Ba(e))},set(e,t,n){const r=gA(Ba(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Eb(Ba(e),t),i=o==null?void 0:o[ur];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Ooe(n,o)&&(n!==void 0||yb(e.base_,t)))return!0;Ob(e),Pb(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Eb(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ob(e),Pb(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ba(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Gn(11)},getPrototypeOf(e){return Cu(e.base_)},setPrototypeOf(){Gn(12)}},Ou={};pp(Cb,(e,t)=>{Ou[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Ou.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Gn(13),Ou.set.call(this,e,t,void 0)},Ou.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Gn(14),Cb.set.call(this,e[0],t,n,e[0])};function Eb(e,t){const n=e[ur];return(n?Ba(n):e)[t]}function Doe(e,t,n){var o;const r=gA(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function gA(e,t){if(!(t in e))return;let n=Cu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Cu(n)}}function Pb(e){e.modified_||(e.modified_=!0,e.parent_&&Pb(e.parent_))}function Ob(e){e.copy_||(e.copy_=bb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Noe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(l=i,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Gn(6),r!==void 0&&typeof r!="function"&&Gn(7);let o;if(Ra(t)){const i=fA(this),a=Tb(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?xb(i):Sb(i)}return dA(i,r),hA(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===iA&&(o=void 0),this.autoFreeze_&&wb(o,!0),r){const i=[],a=[];ja("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else Gn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ra(e)||Gn(8),sl(e)&&(e=$oe(e));const t=fA(this),n=Tb(e,void 0);return n[ur].isManual_=!0,Sb(t),n}finishDraft(e,t){const n=e&&e[ur];(!n||!n.isManual_)&&Gn(9);const{scope_:r}=n;return dA(r,t),hA(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=ja("Patches").applyPatches_;return sl(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Tb(e,t){const n=Eu(e)?ja("MapSet").proxyMap_(e,t):mp(e)?ja("MapSet").proxySet_(e,t):Aoe(e,t);return(t?t.scope_:uA()).drafts_.push(n),n}function $oe(e){return sl(e)||Gn(10,e),mA(e)}function mA(e){if(!Ra(e)||yp(e))return e;const t=e[ur];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=bb(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=bb(e,!0);return pp(n,(o,i)=>{cA(n,o,mA(i))},r),t&&(t.finalized_=!1),n}var Ioe=new Noe;Ioe.produce;function YTe(e){return e}var Loe={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Foe=ub({name:"legend",initialState:Loe,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Oo()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,o=xu(e).payload.indexOf(n);o>-1&&(e.payload[o]=r)},prepare:Oo()},removeLegendPayload:{reducer(e,t){var n=xu(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:Oo()}}}),{setLegendSize:vA,setLegendSettings:Roe,addLegendPayload:XTe,replaceLegendPayload:QTe,removeLegendPayload:ZTe}=Foe.actions,Boe=["contextPayload"];function _b(){return _b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_b.apply(null,arguments)}function yA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ll(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yA(Object(n),!0).forEach(function(r){joe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function joe(e,t,n){return(t=zoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zoe(e){var t=qoe(e,"string");return typeof t=="symbol"?t:t+""}function qoe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Voe(e,t){if(e==null)return{};var n,r,o=Uoe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Uoe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Hoe(e){return e.value}function Woe(e){var{contextPayload:t}=e,n=Voe(e,Boe),r=YM(t,e.payloadUniqBy,Hoe),o=ll(ll({},n),{},{payload:r});return g.isValidElement(e.content)?g.cloneElement(e.content,o):typeof e.content=="function"?g.createElement(e.content,o):g.createElement(ine,o)}function Koe(e,t,n,r,o,i){var{layout:a,align:s,verticalAlign:l}=t,c,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&a==="vertical"?c={left:((r||0)-i.width)/2}:c=s==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?u={top:((o||0)-i.height)/2}:u=l==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),ll(ll({},c),u)}function Goe(e){var t=Vh();return O.useEffect(()=>{t(Roe(e))},[t,e]),null}function Yoe(e){var t=Vh();return O.useEffect(()=>(t(vA(e)),()=>{t(vA({width:0,height:0}))}),[t,e]),null}function Xoe(e,t,n,r){return e==="vertical"&&it(t)?{height:t}:e==="horizontal"?{width:n||r}:null}var Qoe={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function bA(e){var t=ol(e,Qoe),n=tre(),r=Kee(),o=Soe(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[c,u]=gk([n]),d=woe(),f=xoe();if(d==null||f==null)return null;var p=d-((o==null?void 0:o.left)||0)-((o==null?void 0:o.right)||0),h=Xoe(t.layout,a,i,p),m=l?s:ll(ll({position:"absolute",width:(h==null?void 0:h.width)||i||"auto",height:(h==null?void 0:h.height)||a||"auto"},Koe(s,t,o,d,f,c)),s),v=l??r;if(v==null||n==null)return null;var y=g.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:u},g.createElement(Goe,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&g.createElement(Yoe,{width:c.width,height:c.height}),g.createElement(Woe,_b({},t,h,{margin:o,chartWidth:d,chartHeight:f,contextPayload:n})));return xr.createPortal(y,v)}bA.displayName="Legend";function Mb(){return Mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mb.apply(null,arguments)}function wA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wA(Object(n),!0).forEach(function(r){Zoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zoe(e,t,n){return(t=Joe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Joe(e){var t=eie(e,"string");return typeof t=="symbol"?t:t+""}function eie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tie(e){return Array.isArray(e)&&$a(e[0])&&$a(e[1])?e.join(" ~ "):e}var nie=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:o={},payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:d,accessibilityLayer:f=!1}=e,p=()=>{if(i&&i.length){var C={padding:0,margin:0},E=(s?Wh(i,s):i).map((P,_)=>{if(P.type==="none")return null;var T=P.formatter||a||tie,{value:M,name:A}=P,D=M,N=A;if(T){var R=T(M,A,P,_,i);if(Array.isArray(R))[D,N]=R;else if(R!=null)D=R;else return null}var U=kb({display:"block",paddingTop:4,paddingBottom:4,color:P.color||"#000"},r);return g.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(_),style:U},$a(N)?g.createElement("span",{className:"recharts-tooltip-item-name"},N):null,$a(N)?g.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,g.createElement("span",{className:"recharts-tooltip-item-value"},D),g.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return g.createElement("ul",{className:"recharts-tooltip-item-list",style:C},E)}return null},h=kb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),m=kb({margin:0},o),v=!jh(u),y=v?u:"",w=Kn("recharts-default-tooltip",l),x=Kn("recharts-tooltip-label",c);v&&d&&i!==void 0&&i!==null&&(y=d(u,i));var S=f?{role:"status","aria-live":"assertive"}:{};return g.createElement("div",Mb({className:w,style:h},S),g.createElement("p",{className:x,style:m},g.isValidElement(y)?y:"".concat(y)),p())},Tu="recharts-tooltip-wrapper",rie={visibility:"hidden"};function oie(e){var{coordinate:t,translateX:n,translateY:r}=e;return Kn(Tu,{["".concat(Tu,"-right")]:it(n)&&t&&it(t.x)&&n>=t.x,["".concat(Tu,"-left")]:it(n)&&t&&it(t.x)&&n<t.x,["".concat(Tu,"-bottom")]:it(r)&&t&&it(t.y)&&r>=t.y,["".concat(Tu,"-top")]:it(r)&&t&&it(t.y)&&r<t.y})}function xA(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:o,position:i,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:c}=e;if(i&&it(i[r]))return i[r];var u=n[r]-s-(o>0?o:0),d=n[r]+o;if(t[r])return a[r]?u:d;var f=l[r];if(f==null)return 0;if(a[r]){var p=u,h=f;return p<h?Math.max(d,f):Math.max(u,f)}if(c==null)return 0;var m=d+s,v=f+c;return m>v?Math.max(u,f):Math.max(d,f)}function iie(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function aie(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:o,reverseDirection:i,tooltipBox:a,useTranslate3d:s,viewBox:l}=e,c,u,d;return a.height>0&&a.width>0&&n?(u=xA({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),d=xA({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),c=iie({translateX:u,translateY:d,useTranslate3d:s})):c=rie,{cssProperties:c,cssClasses:oie({translateX:u,translateY:d,coordinate:n})}}function SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SA(Object(n),!0).forEach(function(r){Ab(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ab(e,t,n){return(t=sie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sie(e){var t=lie(e,"string");return typeof t=="symbol"?t:t+""}function lie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class cie extends O.PureComponent{constructor(){super(...arguments),Ab(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Ab(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,o,i;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(o=(i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:o,children:i,coordinate:a,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:d,useTranslate3d:f,viewBox:p,wrapperStyle:h,lastBoundingBox:m,innerRef:v,hasPortalFromProps:y}=this.props,{cssClasses:w,cssProperties:x}=aie({allowEscapeViewBox:n,coordinate:a,offsetTopLeft:c,position:u,reverseDirection:d,tooltipBox:{height:m.height,width:m.width},useTranslate3d:f,viewBox:p}),S=y?{}:xp(xp({transition:l&&t?"transform ".concat(r,"ms ").concat(o):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),C=xp(xp({},S),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},h);return g.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:w,style:C,ref:v},i)}}var uie=()=>{var e;return(e=Dt(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function Db(){return Db=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Db.apply(null,arguments)}function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function EA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(n),!0).forEach(function(r){die(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function die(e,t,n){return(t=fie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fie(e){var t=hie(e,"string");return typeof t=="symbol"?t:t+""}function hie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PA={curveBasisClosed:fte,curveBasisOpen:hte,curveBasis:dte,curveBumpX:Qee,curveBumpY:Zee,curveLinearClosed:pte,curveLinear:Nh,curveMonotoneX:gte,curveMonotoneY:mte,curveNatural:vte,curveStep:yte,curveStepAfter:wte,curveStepBefore:bte},Sp=e=>Sn(e.x)&&Sn(e.y),OA=e=>e.base!=null&&Sp(e.base)&&Sp(e),_u=e=>e.x,Mu=e=>e.y,pie=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(gu(e));return(n==="curveMonotone"||n==="curveBump")&&t?PA["".concat(n).concat(t==="vertical"?"Y":"X")]:PA[n]||Nh},gie=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:o,connectNulls:i=!1}=e,a=pie(t,o),s=i?n.filter(Sp):n,l;if(Array.isArray(r)){var c=n.map((p,h)=>EA(EA({},p),{},{base:r[h]}));o==="vertical"?l=$h().y(Mu).x1(_u).x0(p=>p.base.x):l=$h().x(_u).y1(Mu).y0(p=>p.base.y);var u=l.defined(OA).curve(a),d=i?c.filter(OA):c;return u(d)}o==="vertical"&&it(r)?l=$h().y(Mu).x1(_u).x0(r):it(r)?l=$h().x(_u).y1(Mu).y0(r):l=A_().x(_u).y(Mu);var f=l.defined(Sp).curve(a);return f(s)},mie=e=>{var{className:t,points:n,path:r,pathRef:o}=e,i=vb();if((!n||!n.length)&&!r)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=n&&n.length?gie(a):r;return g.createElement("path",Db({},qy(e),Hte(e),{className:Kn("recharts-curve",t),d:s===null?void 0:s,ref:o}))},vie=["x","y","top","left","width","height","className"];function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nb.apply(null,arguments)}function TA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function yie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(n),!0).forEach(function(r){bie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bie(e,t,n){return(t=wie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wie(e){var t=xie(e,"string");return typeof t=="symbol"?t:t+""}function xie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sie(e,t){if(e==null)return{};var n,r,o=Cie(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Cie(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Eie=(e,t,n,r,o,i)=>"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n),Pie=e=>{var{x:t=0,y:n=0,top:r=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=Sie(e,vie),c=yie({x:t,y:n,top:r,left:o,width:i,height:a},l);return!it(t)||!it(n)||!it(i)||!it(a)||!it(r)||!it(o)?null:g.createElement("path",Nb({},tl(c),{className:Kn("recharts-cross",s),d:Eie(t,n,i,a,r,o)}))};function Oie(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function _A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function MA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_A(Object(n),!0).forEach(function(r){Tie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tie(e,t,n){return(t=_ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ie(e){var t=Mie(e,"string");return typeof t=="symbol"?t:t+""}function Mie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kie=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Aie=(e,t,n)=>e.map(r=>"".concat(kie(r)," ").concat(t,"ms ").concat(n)).join(","),Die=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(o=>r.includes(o))),ku=(e,t)=>Object.keys(t).reduce((n,r)=>MA(MA({},n),{},{[r]:e(r,t[r])}),{});function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kA(Object(n),!0).forEach(function(r){Nie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nie(e,t,n){return(t=$ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ie(e){var t=Iie(e,"string");return typeof t=="symbol"?t:t+""}function Iie(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cp=(e,t,n)=>e+(t-e)*n,$b=e=>{var{from:t,to:n}=e;return t!==n},AA=(e,t,n)=>{var r=ku((o,i)=>{if($b(i)){var[a,s]=e(i.from,i.to,i.velocity);return nn(nn({},i),{},{from:a,velocity:s})}return i},t);return n<1?ku((o,i)=>$b(i)&&r[o]!=null?nn(nn({},i),{},{velocity:Cp(i.velocity,r[o].velocity,n),from:Cp(i.from,r[o].from,n)}):i,t):AA(e,r,n-1)};function Lie(e,t,n,r,o,i){var a,s=r.reduce((f,p)=>nn(nn({},f),{},{[p]:{from:e[p],velocity:0,to:t[p]}}),{}),l=()=>ku((f,p)=>p.from,s),c=()=>!Object.values(s).filter($b).length,u=null,d=f=>{a||(a=f);var p=f-a,h=p/n.dt;s=AA(n,s,h),o(nn(nn(nn({},e),t),l())),a=f,c()||(u=i.setTimeout(d))};return()=>(u=i.setTimeout(d),()=>{var f;(f=u)===null||f===void 0||f()})}function Fie(e,t,n,r,o,i,a){var s=null,l=o.reduce((d,f)=>{var p=e[f],h=t[f];return p==null||h==null?d:nn(nn({},d),{},{[f]:[p,h]})},{}),c,u=d=>{c||(c=d);var f=(d-c)/r,p=ku((m,v)=>Cp(...v,n(f)),l);if(i(nn(nn(nn({},e),t),p)),f<1)s=a.setTimeout(u);else{var h=ku((m,v)=>Cp(...v,n(1)),l);i(nn(nn(nn({},e),t),h))}};return()=>(s=a.setTimeout(u),()=>{var d;(d=s)===null||d===void 0||d()})}const Rie=(e,t,n,r,o,i)=>{var a=Die(e,t);return n==null?()=>(o(nn(nn({},e),t)),()=>{}):n.isStepper===!0?Lie(e,t,n,a,o,i):Fie(e,t,n,r,a,o,i)};var Ep=1e-4,DA=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],NA=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),$A=(e,t)=>n=>{var r=DA(e,t);return NA(r,n)},Bie=(e,t)=>n=>{var r=DA(e,t),o=[...r.map((i,a)=>i*a).slice(1),0];return NA(o,n)},jie=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var o=r.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},zie=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var o=jie(n[0]);if(o)return o}}return n.length===4?n:[0,0,1,1]},qie=(e,t,n,r)=>{var o=$A(e,n),i=$A(t,r),a=Bie(e,n),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,d=u,f=0;f<8;++f){var p=o(d)-u,h=a(d);if(Math.abs(p-u)<Ep||h<Ep)return i(d);d=s(d-p/h)}return i(d)};return l.isStepper=!1,l},IA=function(){return qie(...zie(...arguments))},Vie=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:o=17}=t,i=(a,s,l)=>{var c=-(a-s)*n,u=l*r,d=l+(c-u)*o/1e3,f=l*o/1e3+a;return Math.abs(f-s)<Ep&&Math.abs(d)<Ep?[s,0]:[f,d]};return i.isStepper=!0,i.dt=o,i},Uie=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return IA(e);case"spring":return Vie();default:if(e.split("(")[0]==="cubic-bezier")return IA(e)}return typeof e=="function"?e:null};function Hie(e){var t,n=()=>null,r=!1,o=null,i=a=>{if(!r){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...c]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,c),l);return}i(l),o=e.setTimeout(i.bind(null,c));return}typeof a=="string"&&(t=a,n(t)),typeof a=="object"&&(t=a,n(t)),typeof a=="function"&&a()}};return{stop:()=>{r=!0},start:a=>{r=!1,o&&(o(),o=null),i(a)},subscribe:a=>(n=a,()=>{n=()=>null}),getTimeoutController:()=>e}}class Wie{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),o=null,i=a=>{a-r>=n?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}}function Kie(){return Hie(new Wie)}var Gie=O.createContext(Kie);function Yie(e,t){var n=O.useContext(Gie);return O.useMemo(()=>t??n(e),[e,t,n])}var Xie=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Qie={isSsr:Xie()},Zie={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},LA={t:0},Ib={t:1};function Jie(e){var t=ol(e,Zie),{isActive:n,canBegin:r,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=n==="auto"?!Qie.isSsr:n,d=Yie(t.animationId,t.animationManager),[f,p]=O.useState(u?LA:Ib),h=O.useRef(null);return O.useEffect(()=>{u||p(Ib)},[u]),O.useEffect(()=>{if(!u||!r)return c0;var m=Rie(LA,Ib,Uie(i),o,p,d.getTimeoutController()),v=()=>{h.current=m()};return d.start([l,a,v,o,s]),()=>{d.stop(),h.current&&h.current(),s()}},[u,r,o,i,a,l,s,d]),c(f.t)}function eae(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=O.useRef(tM(t)),r=O.useRef(e);return r.current!==e&&(n.current=tM(t),r.current=e),n.current}var tae=["radius"],nae=["radius"],FA,RA,BA,jA,zA,qA,VA,UA,HA,WA;function KA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function GA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KA(Object(n),!0).forEach(function(r){rae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rae(e,t,n){return(t=oae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oae(e){var t=iae(e,"string");return typeof t=="symbol"?t:t+""}function iae(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pp(){return Pp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pp.apply(null,arguments)}function YA(e,t){if(e==null)return{};var n,r,o=aae(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function aae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function To(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var XA=(e,t,n,r,o)=>{var i=Bi(n),a=Bi(r),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,c=i>=0?1:-1,u=a>=0&&i>=0||a<0&&i<0?1:0,d;if(s>0&&o instanceof Array){for(var f=[0,0,0,0],p=0,h=4;p<h;p++)f[p]=o[p]>s?s:o[p];d=wn(FA||(FA=To(["M",",",""])),e,t+l*f[0]),f[0]>0&&(d+=wn(RA||(RA=To(["A ",",",",0,0,",",",",",""])),f[0],f[0],u,e+c*f[0],t)),d+=wn(BA||(BA=To(["L ",",",""])),e+n-c*f[1],t),f[1]>0&&(d+=wn(jA||(jA=To(["A ",",",",0,0,",`,
292
+ `,",",""])),f[1],f[1],u,e+n,t+l*f[1])),d+=wn(zA||(zA=To(["L ",",",""])),e+n,t+r-l*f[2]),f[2]>0&&(d+=wn(qA||(qA=To(["A ",",",",0,0,",`,
293
+ `,",",""])),f[2],f[2],u,e+n-c*f[2],t+r)),d+=wn(VA||(VA=To(["L ",",",""])),e+c*f[3],t+r),f[3]>0&&(d+=wn(UA||(UA=To(["A ",",",",0,0,",`,
294
+ `,",",""])),f[3],f[3],u,e,t+r-l*f[3])),d+="Z"}else if(s>0&&o===+o&&o>0){var m=Math.min(s,o);d=wn(HA||(HA=To(["M ",",",`
295
+ A `,",",",0,0,",",",",",`
296
+ L `,",",`
297
+ A `,",",",0,0,",",",",",`
298
+ L `,",",`
299
+ A `,",",",0,0,",",",",",`
300
+ L `,",",`
301
+ A `,",",",0,0,",",",","," Z"])),e,t+l*m,m,m,u,e+c*m,t,e+n-c*m,t,m,m,u,e+n,t+l*m,e+n,t+r-l*m,m,m,u,e+n-c*m,t+r,e+c*m,t+r,m,m,u,e,t+r-l*m)}else d=wn(WA||(WA=To(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return d},QA={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sae=e=>{var t=ol(e,QA),n=O.useRef(null),[r,o]=O.useState(-1);O.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var V=n.current.getTotalLength();V&&o(V)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:c,className:u}=t,{animationEasing:d,animationDuration:f,animationBegin:p,isAnimationActive:h,isUpdateAnimationActive:m}=t,v=O.useRef(s),y=O.useRef(l),w=O.useRef(i),x=O.useRef(a),S=O.useMemo(()=>({x:i,y:a,width:s,height:l,radius:c}),[i,a,s,l,c]),C=eae(S,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var E=Kn("recharts-rectangle",u);if(!m){var P=tl(t),{radius:_}=P,T=YA(P,tae);return g.createElement("path",Pp({},T,{x:Bi(i),y:Bi(a),width:Bi(s),height:Bi(l),radius:typeof c=="number"?c:void 0,className:E,d:XA(i,a,s,l,c)}))}var M=v.current,A=y.current,D=w.current,N=x.current,R="0px ".concat(r===-1?1:r,"px"),U="".concat(r,"px 0px"),L=Aie(["strokeDasharray"],f,typeof d=="string"?d:QA.animationEasing);return g.createElement(Jie,{animationId:C,key:C,canBegin:r>0,duration:f,easing:d,isActive:m,begin:p},V=>{var j=Bh(M,s,V),H=Bh(A,l,V),se=Bh(D,i,V),pe=Bh(N,a,V);n.current&&(v.current=j,y.current=H,w.current=se,x.current=pe);var W;h?V>0?W={transition:L,strokeDasharray:U}:W={strokeDasharray:R}:W={strokeDasharray:U};var Y=tl(t),{radius:F}=Y,ee=YA(Y,nae);return g.createElement("path",Pp({},ee,{radius:typeof c=="number"?c:void 0,className:E,d:XA(se,pe,j,H,c),ref:n,style:GA(GA({},W),t.style)}))})},Op=Math.PI/180,no=(e,t,n,r)=>({x:e+Math.cos(-Op*r)*n,y:t+Math.sin(-Op*r)*n}),lae=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2};function ZA(e){var{cx:t,cy:n,radius:r,startAngle:o,endAngle:i}=e,a=no(t,n,r,o),s=no(t,n,r,i);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}var JA,eD,tD,nD,rD,oD,iD;function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lb.apply(null,arguments)}function za(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var cae=(e,t)=>{var n=hu(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},Tp=e=>{var{cx:t,cy:n,radius:r,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,c=s*(a?1:-1)+r,u=Math.asin(s/c)/Op,d=l?o:o+i*u,f=no(t,n,c,d),p=no(t,n,r,d),h=l?o-i*u:o,m=no(t,n,c*Math.cos(u*Op),h);return{center:f,circleTangency:p,lineTangency:m,theta:u}},aD=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:i,endAngle:a}=e,s=cae(i,a),l=i+s,c=no(t,n,o,i),u=no(t,n,o,l),d=wn(JA||(JA=za(["M ",",",`
302
+ A `,",",`,0,
303
+ `,",",`,
304
+ `,",",`
305
+ `])),c.x,c.y,o,o,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(r>0){var f=no(t,n,r,i),p=no(t,n,r,l);d+=wn(eD||(eD=za(["L ",",",`
306
+ A `,",",`,0,
307
+ `,",",`,
308
+ `,","," Z"])),p.x,p.y,r,r,+(Math.abs(s)>180),+(i<=l),f.x,f.y)}else d+=wn(tD||(tD=za(["L ",","," Z"])),t,n);return d},uae=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=hu(c-l),{circleTangency:d,lineTangency:f,theta:p}=Tp({cx:t,cy:n,radius:o,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:h,lineTangency:m,theta:v}=Tp({cx:t,cy:n,radius:o,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),y=s?Math.abs(l-c):Math.abs(l-c)-p-v;if(y<0)return a?wn(nD||(nD=za(["M ",",",`
309
+ a`,",",",0,0,1,",`,0
310
+ a`,",",",0,0,1,",`,0
311
+ `])),f.x,f.y,i,i,i*2,i,i,-i*2):aD({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var w=wn(rD||(rD=za(["M ",",",`
312
+ A`,",",",0,0,",",",",",`
313
+ A`,",",",0,",",",",",",",`
314
+ A`,",",",0,0,",",",",",`
315
+ `])),f.x,f.y,i,i,+(u<0),d.x,d.y,o,o,+(y>180),+(u<0),h.x,h.y,i,i,+(u<0),m.x,m.y);if(r>0){var{circleTangency:x,lineTangency:S,theta:C}=Tp({cx:t,cy:n,radius:r,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:E,lineTangency:P,theta:_}=Tp({cx:t,cy:n,radius:r,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),T=s?Math.abs(l-c):Math.abs(l-c)-C-_;if(T<0&&i===0)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+=wn(oD||(oD=za(["L",",",`
316
+ A`,",",",0,0,",",",",",`
317
+ A`,",",",0,",",",",",",",`
318
+ A`,",",",0,0,",",",",","Z"])),P.x,P.y,i,i,+(u<0),E.x,E.y,r,r,+(T>180),+(u>0),x.x,x.y,i,i,+(u<0),S.x,S.y)}else w+=wn(iD||(iD=za(["L",",","Z"])),t,n);return w},dae={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},fae=e=>{var t=ol(e,dae),{cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:d}=t;if(i<o||c===u)return null;var f=Kn("recharts-sector",d),p=i-o,h=rl(a,p,0,!0),m;return h>0&&Math.abs(c-u)<360?m=uae({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(h,p/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):m=aD({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:c,endAngle:u}),g.createElement("path",Lb({},tl(t),{className:f,d:m}))};function hae(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(sM(t)){if(e==="centric"){var{cx:r,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=no(r,o,i,s),c=no(r,o,a,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return ZA(t)}}var Fb={},Rb={},Bb={},sD;function pae(){return sD||(sD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ak();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Bb)),Bb}var lD;function gae(){return lD||(lD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pae();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(Rb)),Rb}var cD;function mae(){return cD||(cD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dk(),n=gae();function r(o,i,a){a&&typeof a!="number"&&t.isIterateeCall(o,i,a)&&(i=a=void 0),o=n.toFinite(o),i===void 0?(i=o,o=0):i=n.toFinite(i),a=a===void 0?o<i?1:-1:n.toFinite(a);const s=Math.max(Math.ceil((i-o)/(a||1)),0),l=new Array(s);for(let c=0;c<s;c++)l[c]=o,o+=a;return l}e.range=r})(Fb)),Fb}var jb,uD;function vae(){return uD||(uD=1,jb=mae().range),jb}var yae=vae();const dD=Rs(yae);function qi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bae(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zb(e){let t,n,r;e.length!==2?(t=qi,n=(s,l)=>qi(e(s),l),r=(s,l)=>e(s)-l):(t=e===qi||e===bae?e:wae,n=e,r=e);function o(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<0?c=d+1:u=d}while(c<u)}return c}function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(s[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(s,l,c=0,u=s.length){const d=o(s,l,c,u-1);return d>c&&r(s[d-1],l)>-r(s[d],l)?d-1:d}return{left:o,center:a,right:i}}function wae(){return 0}function fD(e){return e===null?NaN:+e}function*xae(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Au=zb(qi).right;zb(fD).center;class hD extends Map{constructor(t,n=Eae){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(pD(this,t))}has(t){return super.has(pD(this,t))}set(t,n){return super.set(Sae(this,t),n)}delete(t){return super.delete(Cae(this,t))}}function pD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Sae({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Cae({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Eae(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Pae(e=qi){if(e===qi)return gD;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function gD(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Oae=Math.sqrt(50),Tae=Math.sqrt(10),_ae=Math.sqrt(2);function _p(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=Oae?10:i>=Tae?5:i>=_ae?2:1;let s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?_p(e,t,n*2):[s,l,c]}function qb(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,i,a]=r?_p(t,e,n):_p(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(i-c)/-a;else for(let c=0;c<s;++c)l[c]=(i-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function Vb(e,t,n){return t=+t,e=+e,n=+n,_p(e,t,n)[2]}function Ub(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?Vb(t,e,n):Vb(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function mD(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function vD(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function yD(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?gD:Pae(o);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),p=Math.max(n,Math.floor(t-c*d/l+f)),h=Math.min(r,Math.floor(t+(l-c)*d/l+f));yD(e,t,p,h,o)}const i=e[t];let a=n,s=r;for(Du(e,n,t),o(e[r],i)>0&&Du(e,n,r);a<s;){for(Du(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[n],i)===0?Du(e,n,s):(++s,Du(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Du(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Mae(e,t,n){if(e=Float64Array.from(xae(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return vD(e);if(t>=1)return mD(e);var r,o=(r-1)*t,i=Math.floor(o),a=mD(yD(e,i).subarray(0,i+1)),s=vD(e.subarray(i+1));return a+(s-a)*(o-i)}}function kae(e,t,n=fD){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function Aae(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function _r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function pi(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Hb=Symbol("implicit");function Wb(){var e=new hD,t=[],n=[],r=Hb;function o(i){let a=e.get(i);if(a===void 0){if(r!==Hb)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new hD;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return Wb(t,n).unknown(r)},_r.apply(o,arguments),o}function Kb(){var e=Wb().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var f=t().length,p=o<r,h=p?o:r,m=p?r:o;i=(m-h)/Math.max(1,f-l+c*2),s&&(i=Math.floor(i)),h+=(m-h-i*(f-l))*u,a=i*(1-l),s&&(h=Math.round(h),a=Math.round(a));var v=Aae(f).map(function(y){return h+i*y});return n(p?v.reverse():v)}return e.domain=function(f){return arguments.length?(t(f),d()):t()},e.range=function(f){return arguments.length?([r,o]=f,r=+r,o=+o,d()):[r,o]},e.rangeRound=function(f){return[r,o]=f,r=+r,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(f){return arguments.length?(s=!!f,d()):s},e.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),d()):l},e.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),d()):l},e.paddingOuter=function(f){return arguments.length?(c=+f,d()):c},e.align=function(f){return arguments.length?(u=Math.max(0,Math.min(1,f)),d()):u},e.copy=function(){return Kb(t(),[r,o]).round(s).paddingInner(l).paddingOuter(c).align(u)},_r.apply(d(),arguments)}function bD(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return bD(t())},e}function Dae(){return bD(Kb.apply(null,arguments).paddingInner(1))}function Gb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function wD(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Nu(){}var $u=.7,Mp=1/$u,cl="\\s*([+-]?\\d+)\\s*",Iu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nae=/^#([0-9a-f]{3,8})$/,$ae=new RegExp(`^rgb\\(${cl},${cl},${cl}\\)$`),Iae=new RegExp(`^rgb\\(${_o},${_o},${_o}\\)$`),Lae=new RegExp(`^rgba\\(${cl},${cl},${cl},${Iu}\\)$`),Fae=new RegExp(`^rgba\\(${_o},${_o},${_o},${Iu}\\)$`),Rae=new RegExp(`^hsl\\(${Iu},${_o},${_o}\\)$`),Bae=new RegExp(`^hsla\\(${Iu},${_o},${_o},${Iu}\\)$`),xD={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Gb(Nu,Lu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:SD,formatHex:SD,formatHex8:jae,formatHsl:zae,formatRgb:CD,toString:CD});function SD(){return this.rgb().formatHex()}function jae(){return this.rgb().formatHex8()}function zae(){return _D(this).formatHsl()}function CD(){return this.rgb().formatRgb()}function Lu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Nae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ED(t):n===3?new Yn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?kp(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?kp(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$ae.exec(e))?new Yn(t[1],t[2],t[3],1):(t=Iae.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Lae.exec(e))?kp(t[1],t[2],t[3],t[4]):(t=Fae.exec(e))?kp(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Rae.exec(e))?TD(t[1],t[2]/100,t[3]/100,1):(t=Bae.exec(e))?TD(t[1],t[2]/100,t[3]/100,t[4]):xD.hasOwnProperty(e)?ED(xD[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function ED(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function kp(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yn(e,t,n,r)}function qae(e){return e instanceof Nu||(e=Lu(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function Yb(e,t,n,r){return arguments.length===1?qae(e):new Yn(e,t,n,r??1)}function Yn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Gb(Yn,Yb,wD(Nu,{brighter(e){return e=e==null?Mp:Math.pow(Mp,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?$u:Math.pow($u,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(qa(this.r),qa(this.g),qa(this.b),Ap(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:PD,formatHex:PD,formatHex8:Vae,formatRgb:OD,toString:OD}));function PD(){return`#${Va(this.r)}${Va(this.g)}${Va(this.b)}`}function Vae(){return`#${Va(this.r)}${Va(this.g)}${Va(this.b)}${Va((isNaN(this.opacity)?1:this.opacity)*255)}`}function OD(){const e=Ap(this.opacity);return`${e===1?"rgb(":"rgba("}${qa(this.r)}, ${qa(this.g)}, ${qa(this.b)}${e===1?")":`, ${e})`}`}function Ap(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Va(e){return e=qa(e),(e<16?"0":"")+e.toString(16)}function TD(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ro(e,t,n,r)}function _D(e){if(e instanceof ro)return new ro(e.h,e.s,e.l,e.opacity);if(e instanceof Nu||(e=Lu(e)),!e)return new ro;if(e instanceof ro)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n<r)*6:n===i?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new ro(a,s,l,e.opacity)}function Uae(e,t,n,r){return arguments.length===1?_D(e):new ro(e,t,n,r??1)}function ro(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Gb(ro,Uae,wD(Nu,{brighter(e){return e=e==null?Mp:Math.pow(Mp,e),new ro(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?$u:Math.pow($u,e),new ro(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Yn(Xb(e>=240?e-240:e+120,o,r),Xb(e,o,r),Xb(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ro(MD(this.h),Dp(this.s),Dp(this.l),Ap(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ap(this.opacity);return`${e===1?"hsl(":"hsla("}${MD(this.h)}, ${Dp(this.s)*100}%, ${Dp(this.l)*100}%${e===1?")":`, ${e})`}`}}));function MD(e){return e=(e||0)%360,e<0?e+360:e}function Dp(e){return Math.max(0,Math.min(1,e||0))}function Xb(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Qb=e=>()=>e;function Hae(e,t){return function(n){return e+n*t}}function Wae(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Kae(e){return(e=+e)==1?kD:function(t,n){return n-t?Wae(t,n,e):Qb(isNaN(t)?n:t)}}function kD(e,t){var n=t-e;return n?Hae(e,n):Qb(isNaN(e)?t:e)}const AD=(function e(t){var n=Kae(t);function r(o,i){var a=n((o=Yb(o)).r,(i=Yb(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),c=kD(o.opacity,i.opacity);return function(u){return o.r=a(u),o.g=s(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r})(1);function Gae(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function Yae(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Xae(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=ul(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<r;++a)i[a]=o[a](s);return i}}function Qae(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Np(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Zae(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=ul(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var Zb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jb=new RegExp(Zb.source,"g");function Jae(e){return function(){return e}}function ese(e){return function(t){return e(t)+""}}function tse(e,t){var n=Zb.lastIndex=Jb.lastIndex=0,r,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=Zb.exec(e))&&(o=Jb.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:Np(r,o)})),n=Jb.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?ese(l[0].x):Jae(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)s[(d=l[u]).i]=d.x(c);return s.join("")})}function ul(e,t){var n=typeof t,r;return t==null||n==="boolean"?Qb(t):(n==="number"?Np:n==="string"?(r=Lu(t))?(t=r,AD):tse:t instanceof Lu?AD:t instanceof Date?Qae:Yae(t)?Gae:Array.isArray(t)?Xae:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Zae:Np)(e,t)}function ew(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function nse(e,t){t===void 0&&(t=e,e=ul);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[s](a-s)}}function rse(e){return function(){return e}}function $p(e){return+e}var DD=[0,1];function Bn(e){return e}function tw(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:rse(isNaN(t)?NaN:.5)}function ose(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ise(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=tw(o,r),i=n(a,i)):(r=tw(r,o),i=n(i,a)),function(s){return i(r(s))}}function ase(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=tw(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(s){var l=Au(e,s,1,r)-1;return i[l](o[l](s))}}function Fu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ip(){var e=DD,t=DD,n=ul,r,o,i,a=Bn,s,l,c;function u(){var f=Math.min(e.length,t.length);return a!==Bn&&(a=ose(e[0],e[f-1])),s=f>2?ase:ise,l=c=null,d}function d(f){return f==null||isNaN(f=+f)?i:(l||(l=s(e.map(r),t,n)))(r(a(f)))}return d.invert=function(f){return a(o((c||(c=s(t,e.map(r),Np)))(f)))},d.domain=function(f){return arguments.length?(e=Array.from(f,$p),u()):e.slice()},d.range=function(f){return arguments.length?(t=Array.from(f),u()):t.slice()},d.rangeRound=function(f){return t=Array.from(f),n=ew,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Bn,u()):a!==Bn},d.interpolate=function(f){return arguments.length?(n=f,u()):n},d.unknown=function(f){return arguments.length?(i=f,d):i},function(f,p){return r=f,o=p,u()}}function nw(){return Ip()(Bn,Bn)}function sse(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Lp(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function dl(e){return e=Lp(Math.abs(e)),e?e[1]:NaN}function lse(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function cse(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var use=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ru(e){if(!(t=use.exec(e)))throw new Error("invalid format: "+e);var t;return new rw({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ru.prototype=rw.prototype;function rw(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}rw.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function dse(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var ND;function fse(e,t){var n=Lp(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(ND=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Lp(e,Math.max(0,t+i-1))[0]}function $D(e,t){var n=Lp(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const ID={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:sse,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>$D(e*100,t),r:$D,s:fse,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function LD(e){return e}var FD=Array.prototype.map,RD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hse(e){var t=e.grouping===void 0||e.thousands===void 0?LD:lse(FD.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?LD:cse(FD.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=Ru(d);var f=d.fill,p=d.align,h=d.sign,m=d.symbol,v=d.zero,y=d.width,w=d.comma,x=d.precision,S=d.trim,C=d.type;C==="n"?(w=!0,C="g"):ID[C]||(x===void 0&&(x=12),S=!0,C="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var E=m==="$"?n:m==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",P=m==="$"?r:/[%p]/.test(C)?a:"",_=ID[C],T=/[defgprs%]/.test(C);x=x===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function M(A){var D=E,N=P,R,U,L;if(C==="c")N=_(A)+N,A="";else{A=+A;var V=A<0||1/A<0;if(A=isNaN(A)?l:_(Math.abs(A),x),S&&(A=dse(A)),V&&+A==0&&h!=="+"&&(V=!1),D=(V?h==="("?h:s:h==="-"||h==="("?"":h)+D,N=(C==="s"?RD[8+ND/3]:"")+N+(V&&h==="("?")":""),T){for(R=-1,U=A.length;++R<U;)if(L=A.charCodeAt(R),48>L||L>57){N=(L===46?o+A.slice(R+1):A.slice(R))+N,A=A.slice(0,R);break}}}w&&!v&&(A=t(A,1/0));var j=D.length+A.length+N.length,H=j<y?new Array(y-j+1).join(f):"";switch(w&&v&&(A=t(H+A,H.length?y-N.length:1/0),H=""),p){case"<":A=D+A+N+H;break;case"=":A=D+H+A+N;break;case"^":A=H.slice(0,j=H.length>>1)+D+A+N+H.slice(j);break;default:A=H+D+A+N;break}return i(A)}return M.toString=function(){return d+""},M}function u(d,f){var p=c((d=Ru(d),d.type="f",d)),h=Math.max(-8,Math.min(8,Math.floor(dl(f)/3)))*3,m=Math.pow(10,-h),v=RD[8+h/3];return function(y){return p(m*y)+v}}return{format:c,formatPrefix:u}}var Fp,ow,BD;pse({thousands:",",grouping:[3],currency:["$",""]});function pse(e){return Fp=hse(e),ow=Fp.format,BD=Fp.formatPrefix,Fp}function gse(e){return Math.max(0,-dl(Math.abs(e)))}function mse(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(dl(t)/3)))*3-dl(Math.abs(e)))}function vse(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,dl(t)-dl(e))+1}function jD(e,t,n,r){var o=Ub(e,t,n),i;switch(r=Ru(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=mse(o,a))&&(r.precision=i),BD(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=vse(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=gse(o))&&(r.precision=i-(r.type==="%")*2);break}}return ow(r)}function Vi(e){var t=e.domain;return e.ticks=function(n){var r=t();return qb(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return jD(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,c,u=10;for(s<a&&(c=a,a=s,s=c,c=o,o=i,i=c);u-- >0;){if(c=Vb(a,s,n),c===l)return r[o]=a,r[i]=s,t(r);if(c>0)a=Math.floor(a/c)*c,s=Math.ceil(s/c)*c;else if(c<0)a=Math.ceil(a*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function zD(){var e=nw();return e.copy=function(){return Fu(e,zD())},_r.apply(e,arguments),Vi(e)}function qD(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,$p),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return qD(e).unknown(t)},e=arguments.length?Array.from(e,$p):[0,1],Vi(n)}function VD(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}function UD(e){return Math.log(e)}function HD(e){return Math.exp(e)}function yse(e){return-Math.log(-e)}function bse(e){return-Math.exp(-e)}function wse(e){return isFinite(e)?+("1e"+e):e<0?0:e}function xse(e){return e===10?wse:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Sse(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function WD(e){return(t,n)=>-e(-t,n)}function iw(e){const t=e(UD,HD),n=t.domain;let r=10,o,i;function a(){return o=Sse(r),i=xse(r),n()[0]<0?(o=WD(o),i=WD(i),e(yse,bse)):e(UD,HD),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let f=o(c),p=o(u),h,m;const v=s==null?10:+s;let y=[];if(!(r%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(h=1;h<r;++h)if(m=f<0?h/i(-f):h*i(f),!(m<c)){if(m>u)break;y.push(m)}}else for(;f<=p;++f)for(h=r-1;h>=1;--h)if(m=f>0?h/i(-f):h*i(f),!(m<c)){if(m>u)break;y.push(m)}y.length*2<v&&(y=qb(c,u,v))}else y=qb(f,p,Math.min(p-f,v)).map(i);return d?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Ru(l)).precision==null&&(l.trim=!0),l=ow(l)),s===1/0)return l;const c=Math.max(1,r*s/t.ticks().length);return u=>{let d=u/i(Math.round(o(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(VD(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function KD(){const e=iw(Ip()).domain([1,10]);return e.copy=()=>Fu(e,KD()).base(e.base()),_r.apply(e,arguments),e}function GD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function YD(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function aw(e){var t=1,n=e(GD(t),YD(t));return n.constant=function(r){return arguments.length?e(GD(t=+r),YD(t)):t},Vi(n)}function XD(){var e=aw(Ip());return e.copy=function(){return Fu(e,XD()).constant(e.constant())},_r.apply(e,arguments)}function QD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Cse(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ese(e){return e<0?-e*e:e*e}function sw(e){var t=e(Bn,Bn),n=1;function r(){return n===1?e(Bn,Bn):n===.5?e(Cse,Ese):e(QD(n),QD(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Vi(t)}function lw(){var e=sw(Ip());return e.copy=function(){return Fu(e,lw()).exponent(e.exponent())},_r.apply(e,arguments),e}function Pse(){return lw.apply(null,arguments).exponent(.5)}function ZD(e){return Math.sign(e)*e*e}function Ose(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function JD(){var e=nw(),t=[0,1],n=!1,r;function o(i){var a=Ose(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(ZD(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,$p)).map(ZD)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return JD(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},_r.apply(o,arguments),Vi(o)}function eN(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=kae(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?r:t[Au(n,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(qi),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return eN().domain(e).range(t).unknown(r)},_r.apply(i,arguments)}function tN(){var e=0,t=1,n=1,r=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[Au(r,l,0,n)]:i}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(o=Array.from(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var c=o.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return tN().domain([e,t]).range(o).unknown(i)},_r.apply(Vi(a),arguments)}function nN(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[Au(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return nN().domain(e).range(t).unknown(n)},_r.apply(o,arguments)}const cw=new Date,uw=new Date;function rn(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(c<i&&i<a);return l},o.filter=i=>rn(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(cw.setTime(+i),uw.setTime(+a),e(cw),e(uw),Math.floor(n(cw,uw))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Rp=rn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Rp.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?rn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Rp),Rp.range;const gi=1e3,Mr=gi*60,mi=Mr*60,vi=mi*24,dw=vi*7,rN=vi*30,fw=vi*365,Ua=rn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*gi)},(e,t)=>(t-e)/gi,e=>e.getUTCSeconds());Ua.range;const hw=rn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*gi)},(e,t)=>{e.setTime(+e+t*Mr)},(e,t)=>(t-e)/Mr,e=>e.getMinutes());hw.range;const pw=rn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Mr)},(e,t)=>(t-e)/Mr,e=>e.getUTCMinutes());pw.range;const gw=rn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*gi-e.getMinutes()*Mr)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getHours());gw.range;const mw=rn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*mi)},(e,t)=>(t-e)/mi,e=>e.getUTCHours());mw.range;const Bu=rn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Mr)/vi,e=>e.getDate()-1);Bu.range;const Bp=rn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vi,e=>e.getUTCDate()-1);Bp.range;const oN=rn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/vi,e=>Math.floor(e/vi));oN.range;function Ha(e){return rn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Mr)/dw)}const jp=Ha(0),zp=Ha(1),Tse=Ha(2),_se=Ha(3),fl=Ha(4),Mse=Ha(5),kse=Ha(6);jp.range,zp.range,Tse.range,_se.range,fl.range,Mse.range,kse.range;function Wa(e){return rn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/dw)}const qp=Wa(0),Vp=Wa(1),Ase=Wa(2),Dse=Wa(3),hl=Wa(4),Nse=Wa(5),$se=Wa(6);qp.range,Vp.range,Ase.range,Dse.range,hl.range,Nse.range,$se.range;const vw=rn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());vw.range;const yw=rn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());yw.range;const yi=rn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());yi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:rn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),yi.range;const bi=rn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());bi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:rn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),bi.range;function iN(e,t,n,r,o,i){const a=[[Ua,1,gi],[Ua,5,5*gi],[Ua,15,15*gi],[Ua,30,30*gi],[i,1,Mr],[i,5,5*Mr],[i,15,15*Mr],[i,30,30*Mr],[o,1,mi],[o,3,3*mi],[o,6,6*mi],[o,12,12*mi],[r,1,vi],[r,2,2*vi],[n,1,dw],[t,1,rN],[t,3,3*rN],[e,1,fw]];function s(c,u,d){const f=u<c;f&&([c,u]=[u,c]);const p=d&&typeof d.range=="function"?d:l(c,u,d),h=p?p.range(c,+u+1):[];return f?h.reverse():h}function l(c,u,d){const f=Math.abs(u-c)/d,p=zb(([,,v])=>v).right(a,f);if(p===a.length)return e.every(Ub(c/fw,u/fw,d));if(p===0)return Rp.every(Math.max(Ub(c,u,d),1));const[h,m]=a[f/a[p-1][2]<a[p][2]/f?p-1:p];return h.every(m)}return[s,l]}const[Ise,Lse]=iN(bi,yw,qp,oN,mw,pw),[Fse,Rse]=iN(yi,vw,jp,Bu,gw,hw);function bw(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ww(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ju(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Bse(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=zu(o),u=qu(o),d=zu(i),f=qu(i),p=zu(a),h=qu(a),m=zu(s),v=qu(s),y=zu(l),w=qu(l),x={a:V,A:j,b:H,B:se,c:null,d:dN,e:dN,f:lle,g:yle,G:wle,H:ile,I:ale,j:sle,L:fN,m:cle,M:ule,p:pe,q:W,Q:yN,s:bN,S:dle,u:fle,U:hle,V:ple,w:gle,W:mle,x:null,X:null,y:vle,Y:ble,Z:xle,"%":vN},S={a:Y,A:F,b:ee,B:fe,c:null,d:pN,e:pN,f:Ple,g:Ile,G:Fle,H:Sle,I:Cle,j:Ele,L:gN,m:Ole,M:Tle,p:Z,q:J,Q:yN,s:bN,S:_le,u:Mle,U:kle,V:Ale,w:Dle,W:Nle,x:null,X:null,y:$le,Y:Lle,Z:Rle,"%":vN},C={a:M,A,b:D,B:N,c:R,d:cN,e:cN,f:tle,g:lN,G:sN,H:uN,I:uN,j:Qse,L:ele,m:Xse,M:Zse,p:T,q:Yse,Q:rle,s:ole,S:Jse,u:Use,U:Hse,V:Wse,w:Vse,W:Kse,x:U,X:L,y:lN,Y:sN,Z:Gse,"%":nle};x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),S.x=E(n,S),S.X=E(r,S),S.c=E(t,S);function E(Q,oe){return function(le){var z=[],_e=-1,X=0,be=Q.length,$e,Ve,ae;for(le instanceof Date||(le=new Date(+le));++_e<be;)Q.charCodeAt(_e)===37&&(z.push(Q.slice(X,_e)),(Ve=aN[$e=Q.charAt(++_e)])!=null?$e=Q.charAt(++_e):Ve=$e==="e"?" ":"0",(ae=oe[$e])&&($e=ae(le,Ve)),z.push($e),X=_e+1);return z.push(Q.slice(X,_e)),z.join("")}}function P(Q,oe){return function(le){var z=ju(1900,void 0,1),_e=_(z,Q,le+="",0),X,be;if(_e!=le.length)return null;if("Q"in z)return new Date(z.Q);if("s"in z)return new Date(z.s*1e3+("L"in z?z.L:0));if(oe&&!("Z"in z)&&(z.Z=0),"p"in z&&(z.H=z.H%12+z.p*12),z.m===void 0&&(z.m="q"in z?z.q:0),"V"in z){if(z.V<1||z.V>53)return null;"w"in z||(z.w=1),"Z"in z?(X=ww(ju(z.y,0,1)),be=X.getUTCDay(),X=be>4||be===0?Vp.ceil(X):Vp(X),X=Bp.offset(X,(z.V-1)*7),z.y=X.getUTCFullYear(),z.m=X.getUTCMonth(),z.d=X.getUTCDate()+(z.w+6)%7):(X=bw(ju(z.y,0,1)),be=X.getDay(),X=be>4||be===0?zp.ceil(X):zp(X),X=Bu.offset(X,(z.V-1)*7),z.y=X.getFullYear(),z.m=X.getMonth(),z.d=X.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),be="Z"in z?ww(ju(z.y,0,1)).getUTCDay():bw(ju(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(be+5)%7:z.w+z.U*7-(be+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,ww(z)):bw(z)}}function _(Q,oe,le,z){for(var _e=0,X=oe.length,be=le.length,$e,Ve;_e<X;){if(z>=be)return-1;if($e=oe.charCodeAt(_e++),$e===37){if($e=oe.charAt(_e++),Ve=C[$e in aN?oe.charAt(_e++):$e],!Ve||(z=Ve(Q,le,z))<0)return-1}else if($e!=le.charCodeAt(z++))return-1}return z}function T(Q,oe,le){var z=c.exec(oe.slice(le));return z?(Q.p=u.get(z[0].toLowerCase()),le+z[0].length):-1}function M(Q,oe,le){var z=p.exec(oe.slice(le));return z?(Q.w=h.get(z[0].toLowerCase()),le+z[0].length):-1}function A(Q,oe,le){var z=d.exec(oe.slice(le));return z?(Q.w=f.get(z[0].toLowerCase()),le+z[0].length):-1}function D(Q,oe,le){var z=y.exec(oe.slice(le));return z?(Q.m=w.get(z[0].toLowerCase()),le+z[0].length):-1}function N(Q,oe,le){var z=m.exec(oe.slice(le));return z?(Q.m=v.get(z[0].toLowerCase()),le+z[0].length):-1}function R(Q,oe,le){return _(Q,t,oe,le)}function U(Q,oe,le){return _(Q,n,oe,le)}function L(Q,oe,le){return _(Q,r,oe,le)}function V(Q){return a[Q.getDay()]}function j(Q){return i[Q.getDay()]}function H(Q){return l[Q.getMonth()]}function se(Q){return s[Q.getMonth()]}function pe(Q){return o[+(Q.getHours()>=12)]}function W(Q){return 1+~~(Q.getMonth()/3)}function Y(Q){return a[Q.getUTCDay()]}function F(Q){return i[Q.getUTCDay()]}function ee(Q){return l[Q.getUTCMonth()]}function fe(Q){return s[Q.getUTCMonth()]}function Z(Q){return o[+(Q.getUTCHours()>=12)]}function J(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var oe=E(Q+="",x);return oe.toString=function(){return Q},oe},parse:function(Q){var oe=P(Q+="",!1);return oe.toString=function(){return Q},oe},utcFormat:function(Q){var oe=E(Q+="",S);return oe.toString=function(){return Q},oe},utcParse:function(Q){var oe=P(Q+="",!0);return oe.toString=function(){return Q},oe}}}var aN={"-":"",_:" ",0:"0"},un=/^\s*\d+/,jse=/^%/,zse=/[\\^$*+?|[\]().{}]/g;function dt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function qse(e){return e.replace(zse,"\\$&")}function zu(e){return new RegExp("^(?:"+e.map(qse).join("|")+")","i")}function qu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Vse(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Use(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Hse(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Wse(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Kse(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function sN(e,t,n){var r=un.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lN(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Gse(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Yse(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Xse(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function cN(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Qse(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function uN(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Zse(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Jse(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ele(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tle(e,t,n){var r=un.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nle(e,t,n){var r=jse.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rle(e,t,n){var r=un.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ole(e,t,n){var r=un.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function dN(e,t){return dt(e.getDate(),t,2)}function ile(e,t){return dt(e.getHours(),t,2)}function ale(e,t){return dt(e.getHours()%12||12,t,2)}function sle(e,t){return dt(1+Bu.count(yi(e),e),t,3)}function fN(e,t){return dt(e.getMilliseconds(),t,3)}function lle(e,t){return fN(e,t)+"000"}function cle(e,t){return dt(e.getMonth()+1,t,2)}function ule(e,t){return dt(e.getMinutes(),t,2)}function dle(e,t){return dt(e.getSeconds(),t,2)}function fle(e){var t=e.getDay();return t===0?7:t}function hle(e,t){return dt(jp.count(yi(e)-1,e),t,2)}function hN(e){var t=e.getDay();return t>=4||t===0?fl(e):fl.ceil(e)}function ple(e,t){return e=hN(e),dt(fl.count(yi(e),e)+(yi(e).getDay()===4),t,2)}function gle(e){return e.getDay()}function mle(e,t){return dt(zp.count(yi(e)-1,e),t,2)}function vle(e,t){return dt(e.getFullYear()%100,t,2)}function yle(e,t){return e=hN(e),dt(e.getFullYear()%100,t,2)}function ble(e,t){return dt(e.getFullYear()%1e4,t,4)}function wle(e,t){var n=e.getDay();return e=n>=4||n===0?fl(e):fl.ceil(e),dt(e.getFullYear()%1e4,t,4)}function xle(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+dt(t/60|0,"0",2)+dt(t%60,"0",2)}function pN(e,t){return dt(e.getUTCDate(),t,2)}function Sle(e,t){return dt(e.getUTCHours(),t,2)}function Cle(e,t){return dt(e.getUTCHours()%12||12,t,2)}function Ele(e,t){return dt(1+Bp.count(bi(e),e),t,3)}function gN(e,t){return dt(e.getUTCMilliseconds(),t,3)}function Ple(e,t){return gN(e,t)+"000"}function Ole(e,t){return dt(e.getUTCMonth()+1,t,2)}function Tle(e,t){return dt(e.getUTCMinutes(),t,2)}function _le(e,t){return dt(e.getUTCSeconds(),t,2)}function Mle(e){var t=e.getUTCDay();return t===0?7:t}function kle(e,t){return dt(qp.count(bi(e)-1,e),t,2)}function mN(e){var t=e.getUTCDay();return t>=4||t===0?hl(e):hl.ceil(e)}function Ale(e,t){return e=mN(e),dt(hl.count(bi(e),e)+(bi(e).getUTCDay()===4),t,2)}function Dle(e){return e.getUTCDay()}function Nle(e,t){return dt(Vp.count(bi(e)-1,e),t,2)}function $le(e,t){return dt(e.getUTCFullYear()%100,t,2)}function Ile(e,t){return e=mN(e),dt(e.getUTCFullYear()%100,t,2)}function Lle(e,t){return dt(e.getUTCFullYear()%1e4,t,4)}function Fle(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hl(e):hl.ceil(e),dt(e.getUTCFullYear()%1e4,t,4)}function Rle(){return"+0000"}function vN(){return"%"}function yN(e){return+e}function bN(e){return Math.floor(+e/1e3)}var pl,wN,xN;Ble({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ble(e){return pl=Bse(e),wN=pl.format,pl.parse,xN=pl.utcFormat,pl.utcParse,pl}function jle(e){return new Date(e)}function zle(e){return e instanceof Date?+e:+new Date(+e)}function xw(e,t,n,r,o,i,a,s,l,c){var u=nw(),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),m=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),w=c("%b %d"),x=c("%B"),S=c("%Y");function C(E){return(l(E)<E?p:s(E)<E?h:a(E)<E?m:i(E)<E?v:r(E)<E?o(E)<E?y:w:n(E)<E?x:S)(E)}return u.invert=function(E){return new Date(d(E))},u.domain=function(E){return arguments.length?f(Array.from(E,zle)):f().map(jle)},u.ticks=function(E){var P=f();return e(P[0],P[P.length-1],E??10)},u.tickFormat=function(E,P){return P==null?C:c(P)},u.nice=function(E){var P=f();return(!E||typeof E.range!="function")&&(E=t(P[0],P[P.length-1],E??10)),E?f(VD(P,E)):u},u.copy=function(){return Fu(u,xw(e,t,n,r,o,i,a,s,l,c))},u}function qle(){return _r.apply(xw(Fse,Rse,yi,vw,jp,Bu,gw,hw,Ua,wN).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Vle(){return _r.apply(xw(Ise,Lse,bi,yw,qp,Bp,mw,pw,Ua,xN).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Up(){var e=0,t=1,n,r,o,i,a=Bn,s=!1,l;function c(d){return d==null||isNaN(d=+d)?l:a(o===0?.5:(d=(i(d)-n)*o,s?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(s=!!d,c):s},c.interpolator=function(d){return arguments.length?(a=d,c):a};function u(d){return function(f){var p,h;return arguments.length?([p,h]=f,a=d(p,h),c):[a(0),a(1)]}}return c.range=u(ul),c.rangeRound=u(ew),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return i=d,n=d(e),r=d(t),o=n===r?0:1/(r-n),c}}function Ui(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function SN(){var e=Vi(Up()(Bn));return e.copy=function(){return Ui(e,SN())},pi.apply(e,arguments)}function CN(){var e=iw(Up()).domain([1,10]);return e.copy=function(){return Ui(e,CN()).base(e.base())},pi.apply(e,arguments)}function EN(){var e=aw(Up());return e.copy=function(){return Ui(e,EN()).constant(e.constant())},pi.apply(e,arguments)}function Sw(){var e=sw(Up());return e.copy=function(){return Ui(e,Sw()).exponent(e.exponent())},pi.apply(e,arguments)}function Ule(){return Sw.apply(null,arguments).exponent(.5)}function PN(){var e=[],t=Bn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Au(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(qi),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>Mae(e,i/r))},n.copy=function(){return PN(t).domain(e)},pi.apply(n,arguments)}function Hp(){var e=0,t=.5,n=1,r=1,o,i,a,s,l,c=Bn,u,d=!1,f;function p(m){return isNaN(m=+m)?f:(m=.5+((m=+u(m))-i)*(r*m<r*i?s:l),c(d?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,o=u(e=+e),i=u(t=+t),a=u(n=+n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,p):[e,t,n]},p.clamp=function(m){return arguments.length?(d=!!m,p):d},p.interpolator=function(m){return arguments.length?(c=m,p):c};function h(m){return function(v){var y,w,x;return arguments.length?([y,w,x]=v,c=nse(m,[y,w,x]),p):[c(0),c(.5),c(1)]}}return p.range=h(ul),p.rangeRound=h(ew),p.unknown=function(m){return arguments.length?(f=m,p):f},function(m){return u=m,o=m(e),i=m(t),a=m(n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,p}}function ON(){var e=Vi(Hp()(Bn));return e.copy=function(){return Ui(e,ON())},pi.apply(e,arguments)}function TN(){var e=iw(Hp()).domain([.1,1,10]);return e.copy=function(){return Ui(e,TN()).base(e.base())},pi.apply(e,arguments)}function _N(){var e=aw(Hp());return e.copy=function(){return Ui(e,_N()).constant(e.constant())},pi.apply(e,arguments)}function Cw(){var e=sw(Hp());return e.copy=function(){return Ui(e,Cw()).exponent(e.exponent())},pi.apply(e,arguments)}function Hle(){return Cw.apply(null,arguments).exponent(.5)}const Vu=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Kb,scaleDiverging:ON,scaleDivergingLog:TN,scaleDivergingPow:Cw,scaleDivergingSqrt:Hle,scaleDivergingSymlog:_N,scaleIdentity:qD,scaleImplicit:Hb,scaleLinear:zD,scaleLog:KD,scaleOrdinal:Wb,scalePoint:Dae,scalePow:lw,scaleQuantile:eN,scaleQuantize:tN,scaleRadial:JD,scaleSequential:SN,scaleSequentialLog:CN,scaleSequentialPow:Sw,scaleSequentialQuantile:PN,scaleSequentialSqrt:Ule,scaleSequentialSymlog:EN,scaleSqrt:Pse,scaleSymlog:XD,scaleThreshold:nN,scaleTime:qle,scaleUtc:Vle,tickFormat:jD},Symbol.toStringTag,{value:"Module"}));var Hi=e=>e.chartData,Wle=ie([Hi],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),MN=(e,t,n,r)=>r?Wle(e):Hi(e);function Wi(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Sn(t)&&Sn(n))return!0}return!1}function kN(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function AN(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,o,i;if(Sn(n))o=n;else if(typeof n=="function")return;if(Sn(r))i=r;else if(typeof r=="function")return;var a=[o,i];if(Wi(a))return a}}function Kle(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(Wi(r))return kN(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(it(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t==null?void 0:t[0]))}catch{}else if(typeof o=="string"&&zk.test(o)){var l=zk.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var c=+l[1];a=t[0]-c}}else a=t==null?void 0:t[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(it(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t==null?void 0:t[1]))}catch{}else if(typeof i=="string"&&qk.test(i)){var u=qk.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t==null?void 0:t[1];var f=[a,s];if(Wi(f))return t==null?f:kN(f,t,n)}}}var gl=1e9,Gle={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ow,It=!0,kr="[DecimalError] ",Ka=kr+"Invalid argument: ",Ew=kr+"Exponent out of range: ",ml=Math.floor,Ga=Math.pow,Yle=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,dr,dn=1e7,Nt=7,DN=9007199254740991,Wp=ml(DN/Nt),Fe={};Fe.absoluteValue=Fe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Fe.comparedTo=Fe.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},Fe.decimalPlaces=Fe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Nt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},Fe.dividedBy=Fe.div=function(e){return wi(this,new this.constructor(e))},Fe.dividedToIntegerBy=Fe.idiv=function(e){var t=this,n=t.constructor;return Pt(wi(t,new n(e),0,1),n.precision)},Fe.equals=Fe.eq=function(e){return!this.cmp(e)},Fe.exponent=function(){return Yt(this)},Fe.greaterThan=Fe.gt=function(e){return this.cmp(e)>0},Fe.greaterThanOrEqualTo=Fe.gte=function(e){return this.cmp(e)>=0},Fe.isInteger=Fe.isint=function(){return this.e>this.d.length-2},Fe.isNegative=Fe.isneg=function(){return this.s<0},Fe.isPositive=Fe.ispos=function(){return this.s>0},Fe.isZero=function(){return this.s===0},Fe.lessThan=Fe.lt=function(e){return this.cmp(e)<0},Fe.lessThanOrEqualTo=Fe.lte=function(e){return this.cmp(e)<1},Fe.logarithm=Fe.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(dr))throw Error(kr+"NaN");if(n.s<1)throw Error(kr+(n.s?"NaN":"-Infinity"));return n.eq(dr)?new r(0):(It=!1,t=wi(Uu(n,i),Uu(e,i),i),It=!0,Pt(t,o))},Fe.minus=Fe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?LN(t,e):NN(t,(e.s=-e.s,e))},Fe.modulo=Fe.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(kr+"NaN");return n.s?(It=!1,t=wi(n,e,0,1).times(e),It=!0,n.minus(t)):Pt(new r(n),o)},Fe.naturalExponential=Fe.exp=function(){return $N(this)},Fe.naturalLogarithm=Fe.ln=function(){return Uu(this)},Fe.negated=Fe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Fe.plus=Fe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?NN(t,e):LN(t,(e.s=-e.s,e))},Fe.precision=Fe.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ka+e);if(t=Yt(o)+1,r=o.d.length-1,n=r*Nt+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Fe.squareRoot=Fe.sqrt=function(){var e,t,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(kr+"NaN")}for(e=Yt(s),It=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=ko(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=ml((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(o.toString()),n=l.precision,o=a=n+3;;)if(i=r,r=i.plus(wi(s,i,a+2)).times(.5),ko(i.d).slice(0,a)===(t=ko(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(Pt(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return It=!0,Pt(r,n)},Fe.times=Fe.mul=function(e){var t,n,r,o,i,a,s,l,c,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,l=f.length,c=p.length,l<c&&(i=f,f=p,p=i,a=l,l=c,c=a),i=[],a=l+c,r=a;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=l+r;o>r;)s=i[o]+p[r]*f[o-r-1]+t,i[o--]=s%dn|0,t=s/dn|0;i[o]=(i[o]+t)%dn|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,It?Pt(e,d.precision):e},Fe.toDecimalPlaces=Fe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Mo(e,0,gl),t===void 0?t=r.rounding:Mo(t,0,8),Pt(n,e+Yt(n)+1,t))},Fe.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Ya(r,!0):(Mo(e,0,gl),t===void 0?t=o.rounding:Mo(t,0,8),r=Pt(new o(r),e+1,t),n=Ya(r,!0,e+1)),n},Fe.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?Ya(o):(Mo(e,0,gl),t===void 0?t=i.rounding:Mo(t,0,8),r=Pt(new i(o),e+Yt(o)+1,t),n=Ya(r.abs(),!1,e+Yt(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},Fe.toInteger=Fe.toint=function(){var e=this,t=e.constructor;return Pt(new t(e),Yt(e)+1,t.rounding)},Fe.toNumber=function(){return+this},Fe.toPower=Fe.pow=function(e){var t,n,r,o,i,a,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(dr);if(s=new l(s),!s.s){if(e.s<1)throw Error(kr+"Infinity");return s}if(s.eq(dr))return s;if(r=l.precision,e.eq(dr))return Pt(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=u<0?-u:u)<=DN){for(o=new l(dr),t=Math.ceil(r/Nt+4),It=!1;n%2&&(o=o.times(s),FN(o.d,t)),n=ml(n/2),n!==0;)s=s.times(s),FN(s.d,t);return It=!0,e.s<0?new l(dr).div(o):Pt(o,r)}}else if(i<0)throw Error(kr+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,It=!1,o=e.times(Uu(s,r+c)),It=!0,o=$N(o),o.s=i,o},Fe.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=Yt(o),r=Ya(o,n<=i.toExpNeg||n>=i.toExpPos)):(Mo(e,1,gl),t===void 0?t=i.rounding:Mo(t,0,8),o=Pt(new i(o),e,t),n=Yt(o),r=Ya(o,e<=n||n<=i.toExpNeg,e)),r},Fe.toSignificantDigits=Fe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Mo(e,1,gl),t===void 0?t=r.rounding:Mo(t,0,8)),Pt(new r(n),e,t)},Fe.toString=Fe.valueOf=Fe.val=Fe.toJSON=Fe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Yt(e),n=e.constructor;return Ya(e,t<=n.toExpNeg||t>=n.toExpPos)};function NN(e,t){var n,r,o,i,a,s,l,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),It?Pt(t,d):t;if(l=e.d,c=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(r=l,i=-i,s=c.length):(r=c,o=a,s=l.length),a=Math.ceil(d/Nt),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/dn|0,l[i]%=dn;for(n&&(l.unshift(n),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,It?Pt(t,d):t}function Mo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Ka+e)}function ko(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",n=Nt-r.length,n&&(i+=Ki(n)),i+=r;a=e[t],r=a+"",n=Nt-r.length,n&&(i+=Ki(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var wi=(function(){function e(r,o){var i,a=0,s=r.length;for(r=r.slice();s--;)i=r[s]*o+a,r[s]=i%dn|0,a=i/dn|0;return a&&r.unshift(a),r}function t(r,o,i,a){var s,l;if(i!=a)l=i>a?1:-1;else for(s=l=0;s<i;s++)if(r[s]!=o[s]){l=r[s]>o[s]?1:-1;break}return l}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]<o[i]?1:0,r[i]=a*dn+r[i]-o[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,i,a){var s,l,c,u,d,f,p,h,m,v,y,w,x,S,C,E,P,_,T=r.constructor,M=r.s==o.s?1:-1,A=r.d,D=o.d;if(!r.s)return new T(r);if(!o.s)throw Error(kr+"Division by zero");for(l=r.e-o.e,P=D.length,C=A.length,p=new T(M),h=p.d=[],c=0;D[c]==(A[c]||0);)++c;if(D[c]>(A[c]||0)&&--l,i==null?w=i=T.precision:a?w=i+(Yt(r)-Yt(o))+1:w=i,w<0)return new T(0);if(w=w/Nt+2|0,c=0,P==1)for(u=0,D=D[0],w++;(c<C||u)&&w--;c++)x=u*dn+(A[c]||0),h[c]=x/D|0,u=x%D|0;else{for(u=dn/(D[0]+1)|0,u>1&&(D=e(D,u),A=e(A,u),P=D.length,C=A.length),S=P,m=A.slice(0,P),v=m.length;v<P;)m[v++]=0;_=D.slice(),_.unshift(0),E=D[0],D[1]>=dn/2&&++E;do u=0,s=t(D,m,P,v),s<0?(y=m[0],P!=v&&(y=y*dn+(m[1]||0)),u=y/E|0,u>1?(u>=dn&&(u=dn-1),d=e(D,u),f=d.length,v=m.length,s=t(d,m,f,v),s==1&&(u--,n(d,P<f?_:D,f))):(u==0&&(s=u=1),d=D.slice()),f=d.length,f<v&&d.unshift(0),n(m,d,v),s==-1&&(v=m.length,s=t(D,m,P,v),s<1&&(u++,n(m,P<v?_:D,v))),v=m.length):s===0&&(u++,m=[0]),h[c++]=u,s&&m[0]?m[v++]=A[S]||0:(m=[A[S]],v=1);while((S++<C||m[0]!==void 0)&&w--)}return h[0]||h.shift(),p.e=l,Pt(p,a?i+Yt(p)+1:i)}})();function $N(e,t){var n,r,o,i,a,s,l=0,c=0,u=e.constructor,d=u.precision;if(Yt(e)>16)throw Error(Ew+Yt(e));if(!e.s)return new u(dr);for(It=!1,s=d,a=new u(.03125);e.abs().gte(.1);)e=e.times(a),c+=5;for(r=Math.log(Ga(2,c))/Math.LN10*2+5|0,s+=r,n=o=i=new u(dr),u.precision=s;;){if(o=Pt(o.times(e),s),n=n.times(++l),a=i.plus(wi(o,n,s)),ko(a.d).slice(0,s)===ko(i.d).slice(0,s)){for(;c--;)i=Pt(i.times(i),s);return u.precision=d,t==null?(It=!0,Pt(i,d)):i}i=a}}function Yt(e){for(var t=e.e*Nt,n=e.d[0];n>=10;n/=10)t++;return t}function Pw(e,t,n){if(t>e.LN10.sd())throw It=!0,n&&(e.precision=n),Error(kr+"LN10 precision limit exceeded");return Pt(new e(e.LN10),t)}function Ki(e){for(var t="";e--;)t+="0";return t}function Uu(e,t){var n,r,o,i,a,s,l,c,u,d=1,f=10,p=e,h=p.d,m=p.constructor,v=m.precision;if(p.s<1)throw Error(kr+(p.s?"NaN":"-Infinity"));if(p.eq(dr))return new m(0);if(t==null?(It=!1,c=v):c=t,p.eq(10))return t==null&&(It=!0),Pw(m,c);if(c+=f,m.precision=c,n=ko(h),r=n.charAt(0),i=Yt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=ko(p.d),r=n.charAt(0),d++;i=Yt(p),r>1?(p=new m("0."+n),i++):p=new m(r+"."+n.slice(1))}else return l=Pw(m,c+2,v).times(i+""),p=Uu(new m(r+"."+n.slice(1)),c-f).plus(l),m.precision=v,t==null?(It=!0,Pt(p,v)):p;for(s=a=p=wi(p.minus(dr),p.plus(dr),c),u=Pt(p.times(p),c),o=3;;){if(a=Pt(a.times(u),c),l=s.plus(wi(a,new m(o),c)),ko(l.d).slice(0,c)===ko(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(Pw(m,c+2,v).times(i+""))),s=wi(s,new m(d),c),m.precision=v,t==null?(It=!0,Pt(s,v)):s;s=l,o+=2}}function IN(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=ml(n/Nt),e.d=[],r=(n+1)%Nt,n<0&&(r+=Nt),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=Nt;r<o;)e.d.push(+t.slice(r,r+=Nt));t=t.slice(r),r=Nt-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),It&&(e.e>Wp||e.e<-Wp))throw Error(Ew+n)}else e.s=0,e.e=0,e.d=[0];return e}function Pt(e,t,n){var r,o,i,a,s,l,c,u,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=Nt,o=t,c=d[u=0];else{if(u=Math.ceil((r+1)/Nt),i=d.length,u>=i)return e;for(c=i=d[u],a=1;i>=10;i/=10)a++;r%=Nt,o=r-Nt+a}if(n!==void 0&&(i=Ga(10,a-o-1),s=c/i%10|0,l=t<0||d[u+1]!==void 0||c%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?o>0?c/Ga(10,a-o):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(i=Yt(e),d.length=1,t=t-i-1,d[0]=Ga(10,(Nt-t%Nt)%Nt),e.e=ml(-t/Nt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,i=1,u--):(d.length=u+1,i=Ga(10,Nt-r),d[u]=o>0?(c/Ga(10,a-o)%Ga(10,o)|0)*i:0),l)for(;;)if(u==0){(d[0]+=i)==dn&&(d[0]=1,++e.e);break}else{if(d[u]+=i,d[u]!=dn)break;d[u--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(It&&(e.e>Wp||e.e<-Wp))throw Error(Ew+Yt(e));return e}function LN(e,t){var n,r,o,i,a,s,l,c,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),It?Pt(t,p):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),a=c-r,a){for(u=a<0,u?(n=l,a=-a,s=d.length):(n=d,r=c,s=l.length),o=Math.max(Math.ceil(p/Nt),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=l.length,s=d.length,u=o<s,u&&(s=o),o=0;o<s;o++)if(l[o]!=d[o]){u=l[o]<d[o];break}a=0}for(u&&(n=l,l=d,d=n,t.s=-t.s),s=l.length,o=d.length-s;o>0;--o)l[s++]=0;for(o=d.length;o>a;){if(l[--o]<d[o]){for(i=o;i&&l[--i]===0;)l[i]=dn-1;--l[i],l[o]+=dn}l[o]-=d[o]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,It?Pt(t,p):t):new f(0)}function Ya(e,t,n){var r,o=Yt(e),i=ko(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+Ki(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Ki(-o-1)+i,n&&(r=n-a)>0&&(i+=Ki(r))):o>=a?(i+=Ki(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Ki(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=Ki(r))),e.s<0?"-"+i:i}function FN(e,t){if(e.length>t)return e.length=t,!0}function RN(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Ka+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return IN(a,i.toString())}else if(typeof i!="string")throw Error(Ka+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,Yle.test(i))IN(a,i);else throw Error(Ka+i)}if(o.prototype=Fe,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=RN,o.config=o.set=Xle,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function Xle(e){if(!e||typeof e!="object")throw Error(kr+"Object expected");var t,n,r,o=["precision",1,gl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(ml(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(Ka+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ka+n+": "+r);return this}var Ow=RN(Gle);dr=new Ow(1);const yt=Ow;var Qle=e=>e,BN={},jN=e=>e===BN,zN=e=>function t(){return arguments.length===0||arguments.length===1&&jN(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},qN=(e,t)=>e===1?t:zN(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.filter(a=>a!==BN).length;return i>=e?t(...r):qN(e-i,zN(function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=r.map(u=>jN(u)?s.shift():u);return t(...c,...s)}))}),Zle=e=>qN(e.length,e),Tw=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Jle=Zle((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),ece=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Qle;var o=n.reverse(),i=o[0],a=o.slice(1);return function(){return a.reduce((s,l)=>l(s),i(...arguments))}};function VN(e){var t;return e===0?t=1:t=Math.floor(new yt(e).abs().log(10).toNumber())+1,t}function UN(e,t,n){for(var r=new yt(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i}var HN=e=>{var[t,n]=e,[r,o]=[t,n];return t>n&&([r,o]=[n,t]),[r,o]},WN=(e,t,n)=>{if(e.lte(0))return new yt(0);var r=VN(e.toNumber()),o=new yt(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new yt(Math.ceil(i.div(a).toNumber())).add(n).mul(a),l=s.mul(o);return t?new yt(l.toNumber()):new yt(Math.ceil(l.toNumber()))},tce=(e,t,n)=>{var r=new yt(1),o=new yt(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new yt(10).pow(VN(e)-1),o=new yt(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new yt(Math.floor(e)))}else e===0?o=new yt(Math.floor((t-1)/2)):n||(o=new yt(Math.floor(e)));var a=Math.floor((t-1)/2),s=ece(Jle(l=>o.add(new yt(l-a).mul(r)).toNumber()),Tw);return s(0,t)},KN=function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new yt(0),tickMin:new yt(0),tickMax:new yt(0)};var a=WN(new yt(n).sub(t).div(r-1),o,i),s;t<=0&&n>=0?s=new yt(0):(s=new yt(t).add(n).div(2),s=s.sub(new yt(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),c=Math.ceil(new yt(n).sub(s).div(a).toNumber()),u=l+c+1;return u>r?KN(t,n,r,o,i+1):(u<r&&(c=n>0?c+(r-u):c,l=n>0?l:l+(r-u)),{step:a,tickMin:s.sub(new yt(l).mul(a)),tickMax:s.add(new yt(c).mul(a))})},nce=function(t){var[n,r]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),[s,l]=HN([n,r]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...Tw(0,o-1).map(()=>1/0)]:[...Tw(0,o-1).map(()=>-1/0),l];return n>r?c.reverse():c}if(s===l)return tce(s,o,i);var{step:u,tickMin:d,tickMax:f}=KN(s,l,a,i,0),p=UN(d,f.add(new yt(.1).mul(u)),u);return n>r?p.reverse():p},rce=function(t,n){var[r,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=HN([r,o]);if(a===-1/0||s===1/0)return[r,o];if(a===s)return[a];var l=Math.max(n,2),c=WN(new yt(s).sub(a).div(l-1),i,0),u=[...UN(new yt(a),new yt(s),c),s];return i===!1&&(u=u.map(d=>Math.round(d))),r>o?u.reverse():u},oce=e=>e.rootProps.barCategoryGap,Kp=e=>e.rootProps.stackOffset,GN=e=>e.rootProps.reverseStackOrder,_w=e=>e.options.chartName,ice=e=>e.rootProps.syncId,ace=e=>e.rootProps.syncMethod,sce=e=>e.options.eventEmitter,Xa={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},xi={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},fr={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Gp=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},lce={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:xi.angleAxisId,includeHidden:!1,name:void 0,reversed:xi.reversed,scale:xi.scale,tick:xi.tick,tickCount:void 0,ticks:void 0,type:xi.type,unit:void 0},cce={allowDataOverflow:fr.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:fr.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:fr.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:fr.scale,tick:fr.tick,tickCount:fr.tickCount,ticks:void 0,type:fr.type,unit:void 0},uce={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:xi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:xi.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:xi.scale,tick:xi.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},dce={allowDataOverflow:fr.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:fr.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:fr.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:fr.scale,tick:fr.tick,tickCount:fr.tickCount,ticks:void 0,type:"category",unit:void 0},Mw=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?uce:lce,kw=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?dce:cce,Yp=e=>e.polarOptions,Aw=ie([ji,zi,Rn],lae),YN=ie([Yp,Aw],(e,t)=>{if(e!=null)return rl(e.innerRadius,t,0)}),XN=ie([Yp,Aw],(e,t)=>{if(e!=null)return rl(e.outerRadius,t,t*.8)}),fce=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},QN=ie([Yp],fce);ie([Mw,QN],Gp);var ZN=ie([Aw,YN,XN],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});ie([kw,ZN],Gp),ie([qt,Yp,YN,XN,ji,zi],(e,t,n,r,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:a,cy:s,startAngle:l,endAngle:c}=t;return{cx:rl(a,o,o/2),cy:rl(s,i,i/2),innerRadius:n,outerRadius:r,startAngle:l,endAngle:c,clockWise:!1}}});var on=(e,t)=>t,Xp=(e,t,n)=>n;function JN(e){return e==null?void 0:e.id}function e$(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=n,a=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:r;if(!(c==null||c.length===0)){var u=JN(s);c.forEach((d,f)=>{var p=i==null||o?f:String(cr(d,i,null)),h=cr(d,s.dataKey,0),m;a.has(p)?m=a.get(p):m={},Object.assign(m,{[u]:h}),a.set(p,m)})}}),Array.from(a.values())}function Dw(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Qp=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Zp(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function hce(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var fn=e=>{var t=qt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},vl=e=>e.tooltip.settings.axisId;function t$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Jp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t$(Object(n),!0).forEach(function(r){pce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pce(e,t,n){return(t=gce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gce(e){var t=mce(e,"string");return typeof t=="symbol"?t:t+""}function mce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nw=[0,"auto"],vce={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},yce=(e,t)=>e.cartesianAxis.xAxis[t],Gi=(e,t)=>{var n=yce(e,t);return n??vce},bce={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Nw,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Su},wce=(e,t)=>e.cartesianAxis.yAxis[t],Yi=(e,t)=>{var n=wce(e,t);return n??bce},xce={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},$w=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??xce},jn=(e,t,n)=>{switch(t){case"xAxis":return Gi(e,n);case"yAxis":return Yi(e,n);case"zAxis":return $w(e,n);case"angleAxis":return Mw(e,n);case"radiusAxis":return kw(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Sce=(e,t,n)=>{switch(t){case"xAxis":return Gi(e,n);case"yAxis":return Yi(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Hu=(e,t,n)=>{switch(t){case"xAxis":return Gi(e,n);case"yAxis":return Yi(e,n);case"angleAxis":return Mw(e,n);case"radiusAxis":return kw(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},n$=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function r$(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Cce=e=>e.graphicalItems.cartesianItems,Ece=ie([on,Xp],r$),o$=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Wu=ie([Cce,jn,Ece],o$,{memoizeOptions:{resultEqualityCheck:Zp}}),i$=ie([Wu],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Dw)),a$=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Pce=ie([Wu],a$),s$=e=>e.map(t=>t.data).filter(Boolean).flat(1),Oce=ie([Wu],s$,{memoizeOptions:{resultEqualityCheck:Zp}}),l$=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:o}=t;return e.length>0?e:n.slice(r,o+1)},Iw=ie([Oce,MN],l$),c$=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:cr(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(o=>({value:cr(o,r)}))):e.map(r=>({value:r})),eg=ie([Iw,jn,Wu],c$);function u$(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function tg(e){if($a(e)||e instanceof Date){var t=Number(e);if(Sn(t))return t}}function d$(e){if(Array.isArray(e)){var t=[tg(e[0]),tg(e[1])];return Wi(t)?t:void 0}var n=tg(e);if(n!=null)return[n,n]}function Si(e){return e.map(tg).filter($te)}function Tce(e,t,n){return!n||typeof t!="number"||nl(t)?[]:n.length?Si(n.flatMap(r=>{var o=cr(e,r.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!Sn(i)||!Sn(a)))return[t-i,t+a]})):[]}var an=e=>{var t=fn(e),n=vl(e);return Hu(e,t,n)},ng=ie([an],e=>e==null?void 0:e.dataKey),_ce=ie([i$,MN,an],e$),f$=(e,t,n,r)=>{var o={},i=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},o);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,c=r?[...l].reverse():l,u=c.map(JN);return[s,{stackedData:Bre(e,u,n),graphicalItems:c}]}))},Mce=ie([_ce,i$,Kp,GN],f$),h$=(e,t,n,r)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(r==null&&n!=="zAxis"){var a=qre(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},kce=ie([jn],e=>e.allowDataOverflow),Lw=e=>{var t;if(e==null||!("domain"in e))return Nw;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=Si(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:Nw},p$=ie([jn],Lw),g$=ie([p$,kce],AN),Ace=ie([Mce,Hi,on,g$],h$,{memoizeOptions:{resultEqualityCheck:Qp}}),Fw=e=>e.errorBars,Dce=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>u$(n,r)),rg=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);if(o.length!==0){var i=o.flat(),a=Math.min(...i),s=Math.max(...i);return[a,s]}},m$=(e,t,n,r,o)=>{var i,a;if(n.length>0&&e.forEach(s=>{n.forEach(l=>{var c,u,d=(c=r[l.id])===null||c===void 0?void 0:c.filter(y=>u$(o,y)),f=cr(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),p=Tce(s,f,d);if(p.length>=2){var h=Math.min(...p),m=Math.max(...p);(i==null||h<i)&&(i=h),(a==null||m>a)&&(a=m)}var v=d$(f);v!=null&&(i=i==null?v[0]:Math.min(i,v[0]),a=a==null?v[1]:Math.max(a,v[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(s=>{var l=d$(cr(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),a=a==null?l[1]:Math.max(a,l[1]))}),Sn(i)&&Sn(a))return[i,a]},Nce=ie([Iw,jn,Pce,Fw,on],m$,{memoizeOptions:{resultEqualityCheck:Qp}});function $ce(e){var{value:t}=e;if($a(t)||t instanceof Date)return t}var Ice=(e,t,n)=>{var r=e.map($ce).filter(o=>o!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&nM(r))?dD(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},v$=e=>e.referenceElements.dots,yl=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),Lce=ie([v$,on,Xp],yl),y$=e=>e.referenceElements.areas,Fce=ie([y$,on,Xp],yl),b$=e=>e.referenceElements.lines,Rce=ie([b$,on,Xp],yl),w$=(e,t)=>{if(e!=null){var n=Si(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Bce=ie(Lce,on,w$),x$=(e,t)=>{if(e!=null){var n=Si(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},jce=ie([Fce,on],x$);function zce(e){var t;if(e.x!=null)return Si([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:Si(n)}function qce(e){var t;if(e.y!=null)return Si([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:Si(n)}var S$=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?zce(r):qce(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Vce=ie([Rce,on],S$),Uce=ie(Bce,Vce,jce,(e,t,n)=>rg(e,n,t)),C$=(e,t,n,r,o,i,a,s)=>{if(n!=null)return n;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",c=l?rg(r,i,o):rg(i,o);return Kle(t,c,e.allowDataOverflow)},Hce=ie([jn,p$,g$,Ace,Nce,Uce,qt,on],C$,{memoizeOptions:{resultEqualityCheck:Qp}}),Wce=[0,1],E$=(e,t,n,r,o,i,a)=>{if(!((e==null||n==null||n.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,c=Fa(t,i);if(c&&s==null){var u;return dD(0,(u=n==null?void 0:n.length)!==null&&u!==void 0?u:0)}return l==="category"?Ice(r,e,c):o==="expand"?Wce:a}},Rw=ie([jn,qt,Iw,eg,Kp,on,Hce],E$),P$=(e,t,n,r,o)=>{if(e!=null){var{scale:i,type:a}=e;if(i==="auto")return t==="radial"&&o==="radiusAxis"?"band":t==="radial"&&o==="angleAxis"?"linear":a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":a==="category"?"band":"linear";if(typeof i=="string"){var s="scale".concat(gu(i));return s in Vu?s:"point"}}},Ku=ie([jn,qt,n$,_w,on],P$);function Kce(e){if(e!=null){if(e in Vu)return Vu[e]();var t="scale".concat(gu(e));if(t in Vu)return Vu[t]()}}function Bw(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var o=Kce(t);if(o!=null){var i=o.domain(n).range(r);return Ire(i),i}}}var O$=(e,t,n)=>{var r=Lw(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&Wi(e))return nce(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Wi(e))return rce(e,t.tickCount,t.allowDecimals)}},jw=ie([Rw,Hu,Ku],O$),T$=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Wi(t)&&Array.isArray(n)&&n.length>0){var o=t[0],i=n[0],a=t[1],s=n[n.length-1];return[Math.min(o,i),Math.max(a,s)]}return t},Gce=ie([jn,Rw,jw,on],T$),Yce=ie(eg,jn,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Si(e.map(d=>d.value))).sort((d,f)=>d-f),o=r[0],i=r[r.length-1];if(o==null||i==null)return 1/0;var a=i-o;if(a===0)return 1/0;for(var s=0;s<r.length-1;s++){var l=r[s],c=r[s+1];if(!(l==null||c==null)){var u=c-l;n=Math.min(n,u)}}return n/a}}),_$=ie(Yce,qt,oce,Rn,(e,t,n,r,o)=>o,(e,t,n,r,o)=>{if(!Sn(e))return 0;var i=t==="vertical"?r.height:r.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=rl(n,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),Xce=(e,t,n)=>{var r=Gi(e,t);return r==null||typeof r.padding!="string"?0:_$(e,"xAxis",t,n,r.padding)},Qce=(e,t,n)=>{var r=Yi(e,t);return r==null||typeof r.padding!="string"?0:_$(e,"yAxis",t,n,r.padding)},Zce=ie(Gi,Xce,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((n=o.left)!==null&&n!==void 0?n:0)+t,right:((r=o.right)!==null&&r!==void 0?r:0)+t}}),Jce=ie(Yi,Qce,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((n=o.top)!==null&&n!==void 0?n:0)+t,bottom:((r=o.bottom)!==null&&r!==void 0?r:0)+t}}),eue=ie([Rn,Zce,db,hp,(e,t,n)=>n],(e,t,n,r,o)=>{var{padding:i}=r;return o?[i.left,n.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),tue=ie([Rn,qt,Jce,db,hp,(e,t,n)=>n],(e,t,n,r,o,i)=>{var{padding:a}=o;return i?[r.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Gu=(e,t,n,r)=>{var o;switch(t){case"xAxis":return eue(e,n,r);case"yAxis":return tue(e,n,r);case"zAxis":return(o=$w(e,n))===null||o===void 0?void 0:o.range;case"angleAxis":return QN(e);case"radiusAxis":return ZN(e,n);default:return}},M$=ie([jn,Gu],Gp),og=ie([jn,Ku,Gce,M$],Bw);ie([Wu,Fw,on],Dce);function k$(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var ig=(e,t)=>t,ag=(e,t,n)=>n,nue=ie(up,ig,ag,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(k$)),rue=ie(dp,ig,ag,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(k$)),A$=(e,t)=>({width:e.width,height:t.height}),oue=(e,t)=>{var n=typeof t.width=="number"?t.width:Su;return{width:n,height:e.height}};ie(Rn,Gi,A$);var iue=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},aue=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},sue=ie(zi,Rn,nue,ig,ag,(e,t,n,r,o)=>{var i={},a;return n.forEach(s=>{var l=A$(t,s);a==null&&(a=iue(t,r,e));var c=r==="top"&&!o||r==="bottom"&&o;i[s.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),i}),lue=ie(ji,Rn,rue,ig,ag,(e,t,n,r,o)=>{var i={},a;return n.forEach(s=>{var l=oue(t,s);a==null&&(a=aue(t,r,e));var c=r==="left"&&!o||r==="right"&&o;i[s.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),i}),cue=(e,t)=>{var n=Gi(e,t);if(n!=null)return sue(e,n.orientation,n.mirror)};ie([Rn,Gi,cue,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var o=n==null?void 0:n[r];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}});var uue=(e,t)=>{var n=Yi(e,t);if(n!=null)return lue(e,n.orientation,n.mirror)};ie([Rn,Yi,uue,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var o=n==null?void 0:n[r];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),ie(Rn,Yi,(e,t)=>{var n=typeof t.width=="number"?t.width:Su;return{width:n,height:e.height}});var D$=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=n,s=Fa(e,r),l=t.map(c=>c.value);if(a&&s&&i==="category"&&o&&nM(l))return l}},zw=ie([qt,eg,jn,on],D$),N$=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:o,scale:i}=n,a=Fa(e,r);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},qw=ie([qt,eg,Hu,on],N$);ie([qt,Sce,Ku,og,zw,qw,Gu,jw,on],(e,t,n,r,o,i,a,s,l)=>{if(t!=null){var c=Fa(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:c,niceTicks:s,range:a,realScaleType:n,scale:r}}});var due=(e,t,n,r,o,i,a,s,l)=>{if(!(t==null||r==null)){var c=Fa(e,l),{type:u,ticks:d,tickCount:f}=t,p=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,h=u==="category"&&r.bandwidth?r.bandwidth()/p:0;h=l==="angleAxis"&&i!=null&&i.length>=2?hu(i[0]-i[1])*2*h:h;var m=d||o;if(m){var v=m.map((y,w)=>{var x=a?a.indexOf(y):y;return{index:w,coordinate:r(x)+h,value:y,offset:h}});return v.filter(y=>Sn(y.coordinate))}return c&&s?s.map((y,w)=>({coordinate:r(y)+h,value:y,index:w,offset:h})).filter(y=>Sn(y.coordinate)):r.ticks?r.ticks(f).map(y=>({coordinate:r(y)+h,value:y,offset:h})):r.domain().map((y,w)=>({coordinate:r(y)+h,value:a?a[y]:y,index:w,offset:h}))}};ie([qt,Hu,Ku,og,jw,Gu,zw,qw,on],due);var fue=(e,t,n,r,o,i,a)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=Fa(e,a),{tickCount:l}=t,c=0;return c=a==="angleAxis"&&(r==null?void 0:r.length)>=2?hu(r[0]-r[1])*2*c:c,s&&i?i.map((u,d)=>({coordinate:n(u)+c,value:u,index:d,offset:c})):n.ticks?n.ticks(l).map(u=>({coordinate:n(u)+c,value:u,offset:c})):n.domain().map((u,d)=>({coordinate:n(u)+c,value:o?o[u]:u,index:d,offset:c}))}};ie([qt,Hu,og,Gu,zw,qw,on],fue),ie(jn,og,(e,t)=>{if(!(e==null||t==null))return Jp(Jp({},e),{},{scale:t})});var hue=ie([jn,Ku,Rw,M$],Bw);ie((e,t,n)=>$w(e,n),hue,(e,t)=>{if(!(e==null||t==null))return Jp(Jp({},e),{},{scale:t})}),ie([qt,up,dp],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}});var $$=e=>e.options.defaultTooltipEventType,I$=e=>e.options.validateTooltipEventTypes;function L$(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function pue(e,t){var n=$$(e),r=I$(e);return L$(t,n,r)}function gue(e){return Dt(t=>pue(t,e))}var F$=(e,t)=>{var n,r=Number(t);if(!(nl(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},mue=e=>e.tooltip.settings,Xi={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},vue={itemInteraction:{click:Xi,hover:Xi},axisInteraction:{click:Xi,hover:Xi},keyboardInteraction:Xi,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},yue=ub({name:"tooltip",initialState:vue,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Oo()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,o=xu(e).tooltipItemPayloads.indexOf(n);o>-1&&(e.tooltipItemPayloads[o]=r)},prepare:Oo()},removeTooltipEntrySettings:{reducer(e,t){var n=xu(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:Oo()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:e_e,replaceTooltipEntrySettings:t_e,removeTooltipEntrySettings:n_e,setTooltipSettingsState:bue,setActiveMouseOverItemIndex:r_e,mouseLeaveItem:o_e,mouseLeaveChart:i_e,setActiveClickItemIndex:a_e,setMouseOverAxisIndex:s_e,setMouseClickAxisIndex:l_e,setSyncInteraction:wue,setKeyboardInteraction:c_e}=yue.actions;function R$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R$(Object(n),!0).forEach(function(r){xue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xue(e,t,n){return(t=Sue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sue(e){var t=Cue(e,"string");return typeof t=="symbol"?t:t+""}function Cue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eue(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Pue(e){return e.index!=null}var B$=(e,t,n,r)=>{if(t==null)return Xi;var o=Eue(e,t,n);if(o==null)return Xi;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(Pue(o)){if(i)return sg(sg({},o),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return sg(sg({},Xi),{},{coordinate:o.coordinate})};function Oue(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Tue(e,t){var n=Oue(e),r=t[0],o=t[1];if(n===void 0)return!1;var i=Math.min(r,o),a=Math.max(r,o);return n>=i&&n<=a}function _ue(e,t,n){if(n==null||t==null)return!0;var r=cr(e,t);return r==null||!Wi(n)?!0:Tue(r,n)}var j$=(e,t,n,r)=>{var o=e==null?void 0:e.index;if(o==null)return null;var i=Number(o);if(!Sn(i))return o;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(i,s)),c=t[l];return c==null||_ue(c,n,r)?String(l):null},z$=(e,t,n,r,o,i,a,s)=>{if(!(i==null||s==null)){var l=a[0],c=l==null?void 0:s(l.positions,i);if(c!=null)return c;var u=o==null?void 0:o[Number(i)];if(u)switch(n){case"horizontal":return{x:u.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:u.coordinate}}}},q$=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(n==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,o==null&&r!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===o})},lg=e=>e.options.tooltipPayloadSearcher,Yu=e=>e.tooltip;function V$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V$(Object(n),!0).forEach(function(r){Mue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mue(e,t,n){return(t=kue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kue(e){var t=Aue(e,"string");return typeof t=="symbol"?t:t+""}function Aue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Due(e,t){return e??t}var H$=(e,t,n,r,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=n,d=[];return e.reduce((f,p)=>{var h,{dataDefinedOnItem:m,settings:v}=p,y=Due(m,s),w=Array.isArray(y)?Rk(y,c,u):y,x=(h=v==null?void 0:v.dataKey)!==null&&h!==void 0?h:r,S=v==null?void 0:v.nameKey,C;if(r&&Array.isArray(w)&&!Array.isArray(w[0])&&a==="axis"?C=Nte(w,r,o):C=i(w,t,l,S),Array.isArray(C))C.forEach(P=>{var _=U$(U$({},v),{},{name:P.name,unit:P.unit,color:void 0,fill:void 0});f.push(Uk({tooltipEntrySettings:_,dataKey:P.dataKey,payload:P.payload,value:cr(P.payload,P.dataKey),name:P.name}))});else{var E;f.push(Uk({tooltipEntrySettings:v,dataKey:x,payload:C,value:cr(C,x),name:(E=cr(C,S))!==null&&E!==void 0?E:v==null?void 0:v.name}))}return f},d)}},Vw=ie([an,qt,n$,_w,fn],P$),Nue=ie([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),$ue=ie([fn,vl],r$),Xu=ie([Nue,an,$ue],o$,{memoizeOptions:{resultEqualityCheck:Zp}}),Iue=ie([Xu],e=>e.filter(Dw)),Lue=ie([Xu],s$,{memoizeOptions:{resultEqualityCheck:Zp}}),Qu=ie([Lue,Hi],l$),Fue=ie([Iue,Hi,an],e$),Uw=ie([Qu,an,Xu],c$),W$=ie([an],Lw),Rue=ie([an],e=>e.allowDataOverflow),K$=ie([W$,Rue],AN),Bue=ie([Xu],e=>e.filter(Dw)),jue=ie([Fue,Bue,Kp,GN],f$),zue=ie([jue,Hi,fn,K$],h$),que=ie([Xu],a$),Vue=ie([Qu,an,que,Fw,fn],m$,{memoizeOptions:{resultEqualityCheck:Qp}}),Uue=ie([v$,fn,vl],yl),Hue=ie([Uue,fn],w$),Wue=ie([y$,fn,vl],yl),Kue=ie([Wue,fn],x$),Gue=ie([b$,fn,vl],yl),Yue=ie([Gue,fn],S$),Xue=ie([Hue,Yue,Kue],rg),Que=ie([an,W$,K$,zue,Vue,Xue,qt,fn],C$),cg=ie([an,qt,Qu,Uw,Kp,fn,Que],E$),Zue=ie([cg,an,Vw],O$),Jue=ie([an,cg,Zue,fn],T$),G$=e=>{var t=fn(e),n=vl(e),r=!1;return Gu(e,t,n,r)},ede=ie([an,G$],Gp),Y$=ie([an,Vw,Jue,ede],Bw),tde=ie([qt,Uw,an,fn],D$),nde=ie([qt,Uw,an,fn],N$),rde=(e,t,n,r,o,i,a,s)=>{if(t){var{type:l}=t,c=Fa(e,s);if(r){var u=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,d=l==="category"&&r.bandwidth?r.bandwidth()/u:0;return d=s==="angleAxis"&&o!=null&&(o==null?void 0:o.length)>=2?hu(o[0]-o[1])*2*d:d,c&&a?a.map((f,p)=>({coordinate:r(f)+d,value:f,index:p,offset:d})):r.domain().map((f,p)=>({coordinate:r(f)+d,value:i?i[f]:f,index:p,offset:d}))}}},bl=ie([qt,an,Vw,Y$,G$,tde,nde,fn],rde),Hw=ie([$$,I$,mue],(e,t,n)=>L$(n.shared,e,t)),X$=e=>e.tooltip.settings.trigger,Ww=e=>e.tooltip.settings.defaultIndex,Zu=ie([Yu,Hw,X$,Ww],B$),Q$=ie([Zu,Qu,ng,cg],j$),ode=ie([bl,Q$],F$);ie([Zu],e=>{if(e)return e.dataKey}),ie([Zu],e=>{if(e)return e.graphicalItemId});var Z$=ie([Yu,Hw,X$,Ww],q$),ide=ie([ji,zi,qt,Rn,bl,Ww,Z$,lg],z$);ie([Zu,ide],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),ie([Zu],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1});var ade=ie([Z$,Q$,Hi,ng,ode,lg,Hw],H$);ie([ade],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function J$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function eI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J$(Object(n),!0).forEach(function(r){sde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sde(e,t,n){return(t=lde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lde(e){var t=cde(e,"string");return typeof t=="symbol"?t:t+""}function cde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ude=()=>Dt(an),dde=()=>{var e=ude(),t=Dt(bl),n=Dt(Y$);return Vk(!e||!n?void 0:eI(eI({},e),{},{scale:n}),t)},fde=()=>Dt(_w),Kw=(e,t)=>t,tI=(e,t,n)=>n,Gw=(e,t,n,r)=>r;ie(bl,e=>Wh(e,t=>t.coordinate));var Yw=ie([Yu,Kw,tI,Gw],B$),Xw=ie([Yw,Qu,ng,cg],j$),hde=(e,t,n)=>{if(t!=null){var r=Yu(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},nI=ie([Yu,Kw,tI,Gw],q$),pde=ie([ji,zi,qt,Rn,bl,Gw,nI,lg],z$),gde=ie([Yw,pde],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),rI=ie([bl,Xw],F$),mde=ie([nI,Xw,Hi,ng,rI,lg,Kw],H$),vde=ie([Yw,Xw],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),yde=ie(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}});ie(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(Xa)),n=Array.from(new Set(t));return n.sort((r,o)=>r-o)},{memoizeOptions:{resultEqualityCheck:hce}});function oI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function iI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oI(Object(n),!0).forEach(function(r){bde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bde(e,t,n){return(t=wde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wde(e){var t=xde(e,"string");return typeof t=="symbol"?t:t+""}function xde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sde={},Cde={zIndexMap:Object.values(Xa).reduce((e,t)=>iI(iI({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Sde)},Ede=new Set(Object.values(Xa));function Pde(e){return Ede.has(e)}var Ode=ub({name:"zIndex",initialState:Cde,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Oo()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!Pde(n)&&delete e.zIndexMap[n])},prepare:Oo()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:o}=t.payload;e.zIndexMap[n]?o?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:o?void 0:r,panoramaElement:o?r:void 0}},prepare:Oo()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:Oo()}}}),{registerZIndexPortal:Tde,unregisterZIndexPortal:_de,registerZIndexPortalElement:u_e,unregisterZIndexPortalElement:d_e}=Ode.actions;function Mde(e){var{zIndex:t,children:n}=e,r=Coe(),o=r&&t!==void 0&&t!==0,i=Kk(),a=Vh();O.useLayoutEffect(()=>o?(a(Tde({zIndex:t})),()=>{a(_de({zIndex:t}))}):c0,[a,t,o]);var s=Dt(l=>yde(l,t,i));return o?s?xr.createPortal(n,s):null:n}function Qw(){return Qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(null,arguments)}function aI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ug(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aI(Object(n),!0).forEach(function(r){kde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kde(e,t,n){return(t=Ade(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ade(e){var t=Dde(e,"string");return typeof t=="symbol"?t:t+""}function Dde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nde(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return O.isValidElement(t)?O.cloneElement(t,r):O.createElement(n,r)}function $de(e){var t,{coordinate:n,payload:r,index:o,offset:i,tooltipAxisBandSize:a,layout:s,cursor:l,tooltipEventType:c,chartName:u}=e,d=n,f=r,p=o;if(!l||!d||u!=="ScatterChart"&&c!=="axis")return null;var h,m,v;if(u==="ScatterChart")h=d,m=Pie,v=Xa.cursorLine;else if(u==="BarChart")h=Oie(s,d,i,a),m=sae,v=Xa.cursorRectangle;else if(s==="radial"&&sM(d)){var{cx:y,cy:w,radius:x,startAngle:S,endAngle:C}=ZA(d);h={cx:y,cy:w,startAngle:S,endAngle:C,innerRadius:x,outerRadius:x},m=fae,v=Xa.cursorLine}else h={points:hae(s,d,i)},m=mie,v=Xa.cursorLine;var E=typeof l=="object"&&"className"in l?l.className:void 0,P=ug(ug(ug(ug({stroke:"#ccc",pointerEvents:"none"},i),h),zee(l)),{},{payload:f,payloadIndex:p,className:Kn("recharts-tooltip-cursor",E)});return g.createElement(Mde,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:v},g.createElement(Nde,{cursor:l,cursorComp:m,cursorProps:P}))}function Ide(e){var t=dde(),n=boe(),r=vb(),o=fde();return t==null||n==null||r==null||o==null?null:g.createElement($de,Qw({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:o}))}var Lde=O.createContext(null),Fde=()=>O.useContext(Lde),Zw={exports:{}},sI;function Rde(){return sI||(sI=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,d,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new o(u,d||l,f),h=n?n+c:c;return l._events[h]?l._events[h].fn?l._events[h]=[l._events[h],p]:l._events[h].push(p):(l._events[h]=p,l._eventsCount++),l}function a(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,d;if(this._eventsCount===0)return c;for(d in u=this._events)t.call(u,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=n?n+c:c,d=this._events[u];if(!d)return[];if(d.fn)return[d.fn];for(var f=0,p=d.length,h=new Array(p);f<p;f++)h[f]=d[f].fn;return h},s.prototype.listenerCount=function(c){var u=n?n+c:c,d=this._events[u];return d?d.fn?1:d.length:0},s.prototype.emit=function(c,u,d,f,p,h){var m=n?n+c:c;if(!this._events[m])return!1;var v=this._events[m],y=arguments.length,w,x;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,d),!0;case 4:return v.fn.call(v.context,u,d,f),!0;case 5:return v.fn.call(v.context,u,d,f,p),!0;case 6:return v.fn.call(v.context,u,d,f,p,h),!0}for(x=1,w=new Array(y-1);x<y;x++)w[x-1]=arguments[x];v.fn.apply(v.context,w)}else{var S=v.length,C;for(x=0;x<S;x++)switch(v[x].once&&this.removeListener(c,v[x].fn,void 0,!0),y){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,u);break;case 3:v[x].fn.call(v[x].context,u,d);break;case 4:v[x].fn.call(v[x].context,u,d,f);break;default:if(!w)for(C=1,w=new Array(y-1);C<y;C++)w[C-1]=arguments[C];v[x].fn.apply(v[x].context,w)}}return!0},s.prototype.on=function(c,u,d){return i(this,c,u,d,!1)},s.prototype.once=function(c,u,d){return i(this,c,u,d,!0)},s.prototype.removeListener=function(c,u,d,f){var p=n?n+c:c;if(!this._events[p])return this;if(!u)return a(this,p),this;var h=this._events[p];if(h.fn)h.fn===u&&(!f||h.once)&&(!d||h.context===d)&&a(this,p);else{for(var m=0,v=[],y=h.length;m<y;m++)(h[m].fn!==u||f&&!h[m].once||d&&h[m].context!==d)&&v.push(h[m]);v.length?this._events[p]=v.length===1?v[0]:v:a(this,p)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=n?n+c:c,this._events[u]&&a(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(Zw)),Zw.exports}var Bde=Rde();const jde=Rs(Bde);var zde=new jde,qde="recharts.syncEvent.tooltip";function Vde(e){return e.tooltip.syncInteraction}function Ude(e,t,n,r,o,i){var a=Dt(p=>hde(p,e,t)),s=Dt(sce),l=Dt(ice),c=Dt(ace),u=Dt(Vde),d=u==null?void 0:u.active,f=oA();O.useEffect(()=>{if(!d&&l!=null&&s!=null){var p=wue({active:i,coordinate:n,dataKey:a,index:o,label:typeof r=="number"?String(r):r,sourceViewBox:f,graphicalItemId:void 0});zde.emit(qde,l,p,s)}},[d,n,a,o,r,s,l,c,i,f])}function lI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lI(Object(n),!0).forEach(function(r){Hde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hde(e,t,n){return(t=Wde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wde(e){var t=Kde(e,"string");return typeof t=="symbol"?t:t+""}function Kde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gde(e){return e.dataKey}function Yde(e,t){return g.isValidElement(e)?g.cloneElement(e,t):typeof e=="function"?g.createElement(e,t):g.createElement(nie,t)}var uI=[],Xde={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Qde(e){var t,n,r=ol(e,Xde),{active:o,allowEscapeViewBox:i,animationDuration:a,animationEasing:s,content:l,filterNull:c,isAnimationActive:u,offset:d,payloadUniqBy:f,position:p,reverseDirection:h,useTranslate3d:m,wrapperStyle:v,cursor:y,shared:w,trigger:x,defaultIndex:S,portal:C,axisId:E}=r,P=Vh(),_=typeof S=="number"?String(S):S;O.useEffect(()=>{P(bue({shared:w,trigger:x,axisId:E,active:o,defaultIndex:_}))},[P,w,x,E,o,_]);var T=oA(),M=uie(),A=gue(w),{activeIndex:D,isActive:N}=(t=Dt(Z=>vde(Z,A,x,_)))!==null&&t!==void 0?t:{},R=Dt(Z=>mde(Z,A,x,_)),U=Dt(Z=>rI(Z,A,x,_)),L=Dt(Z=>gde(Z,A,x,_)),V=R,j=Fde(),H=(n=o??N)!==null&&n!==void 0?n:!1,[se,pe]=gk([V,H]),W=A==="axis"?U:void 0;Ude(A,x,L,W,D,H);var Y=C??j;if(Y==null||T==null||A==null)return null;var F=V??uI;H||(F=uI),c&&F.length&&(F=YM(F.filter(Z=>Z.value!=null&&(Z.hide!==!0||r.includeHidden)),f,Gde));var ee=F.length>0,fe=g.createElement(cie,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:u,active:H,coordinate:L,hasPayload:ee,offset:d,position:p,reverseDirection:h,useTranslate3d:m,viewBox:T,wrapperStyle:v,lastBoundingBox:se,innerRef:pe,hasPortalFromProps:!!C},Yde(l,cI(cI({},r),{},{payload:F,label:W,active:H,activeIndex:D,coordinate:L,accessibilityLayer:M})));return g.createElement(g.Fragment,null,xr.createPortal(fe,Y),H&&g.createElement(Ide,{cursor:y,tooltipEventType:A,coordinate:L,payload:F,index:D}))}const Zde={light:"",dark:".dark"},dI=g.createContext(null);function fI(){const e=g.useContext(dI);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const hI=g.forwardRef(({id:e,className:t,children:n,config:r,...o},i)=>{const a=g.useId(),s=`chart-${e||a.replace(/:/g,"")}`;return b.jsx(dI.Provider,{value:{config:r},children:b.jsxs("div",{"data-chart":s,ref:i,className:q("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...o,children:[b.jsx(pI,{id:s,config:r}),b.jsx(voe,{children:n})]})})});hI.displayName="Chart";const pI=({id:e,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme||r.color);return n.length?b.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Zde).map(([r,o])=>`
319
+ ${o} [data-chart=${e}] {
320
+ ${n.map(([i,a])=>{var l;const s=((l=a.theme)==null?void 0:l[r])||a.color;return s?` --color-${i}: ${s};`:null}).join(`
321
+ `)}
322
+ }
323
+ `).join(`
324
+ `)}}):null},Jde=Qde,gI=g.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:a,labelFormatter:s,labelClassName:l,formatter:c,color:u,nameKey:d,labelKey:f},p)=>{const{config:h}=fI(),m=g.useMemo(()=>{var C;if(o||!(t!=null&&t.length))return null;const[y]=t,w=`${f||(y==null?void 0:y.dataKey)||(y==null?void 0:y.name)||"value"}`,x=Jw(h,y,w),S=!f&&typeof a=="string"?((C=h[a])==null?void 0:C.label)||a:x==null?void 0:x.label;return s?b.jsx("div",{className:q("font-medium",l),children:s(S,t)}):S?b.jsx("div",{className:q("font-medium",l),children:S}):null},[a,s,t,o,l,h,f]);if(!e||!(t!=null&&t.length))return null;const v=t.length===1&&r!=="dot";return b.jsxs("div",{ref:p,className:q("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[v?null:m,b.jsx("div",{className:"grid gap-1.5",children:t.map((y,w)=>{const x=`${d||y.name||y.dataKey||"value"}`,S=Jw(h,y,x),C=u||y.payload.fill||y.color;return b.jsx("div",{className:q("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:c&&(y==null?void 0:y.value)!==void 0&&y.name?c(y.value,y.name,y,w):b.jsxs(b.Fragment,{children:[S!=null&&S.icon?b.jsx(S.icon,{}):!i&&b.jsx("div",{className:q("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":v&&r==="dashed"}),style:{"--color-bg":C,"--color-border":C}}),b.jsxs("div",{className:q("flex flex-1 justify-between leading-none",v?"items-end":"items-center"),children:[b.jsxs("div",{className:"grid gap-1.5",children:[v?m:null,b.jsx("span",{className:"text-muted-foreground",children:(S==null?void 0:S.label)||y.name})]}),y.value&&b.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:y.value.toLocaleString()})]})]})},y.dataKey)})})]})});gI.displayName="ChartTooltip";const efe=bA,mI=g.forwardRef(({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:o},i)=>{const{config:a}=fI();return n!=null&&n.length?b.jsx("div",{ref:i,className:q("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.map(s=>{const l=`${o||s.dataKey||"value"}`,c=Jw(a,s,l);return b.jsxs("div",{className:q("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[c!=null&&c.icon&&!t?b.jsx(c.icon,{}):b.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:s.color}}),c==null?void 0:c.label]},s.value)})}):null});mI.displayName="ChartLegend";function Jw(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let o=n;return n in t&&typeof t[n]=="string"?o=t[n]:r&&n in r&&typeof r[n]=="string"&&(o=r[n]),o in e?e[o]:e[n]}function wl(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Ju(e){const[t,n]=g.useState(void 0);return At(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,s=c.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dg="Checkbox",[tfe]=kt(dg),[nfe,e1]=tfe(dg);function rfe(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[f,p]=Ot({prop:n,defaultProp:o??!1,onChange:l,caller:dg}),[h,m]=g.useState(null),[v,y]=g.useState(null),w=g.useRef(!1),x=h?!!a||!!h.closest("form"):!0,S={checked:f,disabled:i,setChecked:p,control:h,setControl:m,name:s,form:a,value:u,hasConsumerStoppedPropagationRef:w,required:c,defaultChecked:Qi(o)?!1:o,isFormControl:x,bubbleInput:v,setBubbleInput:y};return b.jsx(nfe,{scope:t,...S,children:ofe(d)?d(S):r})}var vI="CheckboxTrigger",yI=g.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:a,disabled:s,checked:l,required:c,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:h}=e1(vI,e),m=je(o,u),v=g.useRef(l);return g.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const w=()=>d(v.current);return y.addEventListener("reset",w),()=>y.removeEventListener("reset",w)}},[i,d]),b.jsx(ye.button,{type:"button",role:"checkbox","aria-checked":Qi(l)?"mixed":l,"aria-required":c,"data-state":CI(l),"data-disabled":s?"":void 0,disabled:s,value:a,...r,ref:m,onKeyDown:ne(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:ne(n,y=>{d(w=>Qi(w)?!0:!w),h&&p&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});yI.displayName=vI;var t1=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l,onCheckedChange:c,form:u,...d}=e;return b.jsx(rfe,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:f})=>b.jsxs(b.Fragment,{children:[b.jsx(yI,{...d,ref:t,__scopeCheckbox:n}),f&&b.jsx(SI,{__scopeCheckbox:n})]})})});t1.displayName=dg;var bI="CheckboxIndicator",wI=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=e1(bI,n);return b.jsx(Tt,{present:r||Qi(i.checked)||i.checked===!0,children:b.jsx(ye.span,{"data-state":CI(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});wI.displayName=bI;var xI="CheckboxBubbleInput",SI=g.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:l,name:c,value:u,form:d,bubbleInput:f,setBubbleInput:p}=e1(xI,e),h=je(n,p),m=wl(i),v=Ju(r);g.useEffect(()=>{const w=f;if(!w)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set,E=!o.current;if(m!==i&&C){const P=new Event("click",{bubbles:E});w.indeterminate=Qi(i),C.call(w,Qi(i)?!1:i),w.dispatchEvent(P)}},[f,m,i,o]);const y=g.useRef(Qi(i)?!1:i);return b.jsx(ye.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:l,name:c,value:u,form:d,...t,tabIndex:-1,ref:h,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});SI.displayName=xI;function ofe(e){return typeof e=="function"}function Qi(e){return e==="indeterminate"}function CI(e){return Qi(e)?"indeterminate":e?"checked":"unchecked"}const EI=g.forwardRef(({className:e,...t},n)=>b.jsx(t1,{ref:n,className:q("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:b.jsx(wI,{className:q("flex items-center justify-center text-current"),children:b.jsx(Qc,{className:"h-4 w-4"})})}));EI.displayName=t1.displayName;const ife=XC,afe=Jm,sfe=tv;var PI=1,lfe=.9,cfe=.8,ufe=.17,n1=.1,r1=.999,dfe=.9999,ffe=.99,hfe=/[\\\/_+.#"@\[\(\{&]/,pfe=/[\\\/_+.#"@\[\(\{&]/g,gfe=/[\s-]/,OI=/[\s-]/g;function o1(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?PI:ffe;var s=`${o},${i}`;if(a[s]!==void 0)return a[s];for(var l=r.charAt(i),c=n.indexOf(l,o),u=0,d,f,p,h;c>=0;)d=o1(e,t,n,r,c+1,i+1,a),d>u&&(c===o?d*=PI:hfe.test(e.charAt(c-1))?(d*=cfe,p=e.slice(o,c-1).match(pfe),p&&o>0&&(d*=Math.pow(r1,p.length))):gfe.test(e.charAt(c-1))?(d*=lfe,h=e.slice(o,c-1).match(OI),h&&o>0&&(d*=Math.pow(r1,h.length))):(d*=ufe,o>0&&(d*=Math.pow(r1,c-o))),e.charAt(c)!==t.charAt(i)&&(d*=dfe)),(d<n1&&n.charAt(c-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(c-1)!==r.charAt(i))&&(f=o1(e,t,n,r,c+1,i+2,a),f*n1>d&&(d=f*n1)),d>u&&(u=d),c=n.indexOf(l,c+1);return a[s]=u,u}function TI(e){return e.toLowerCase().replace(OI," ")}function mfe(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,o1(e,t,TI(e),TI(t),0,0,{})}var ed='[cmdk-group=""]',i1='[cmdk-group-items=""]',vfe='[cmdk-group-heading=""]',_I='[cmdk-item=""]',MI=`${_I}:not([aria-disabled="true"])`,a1="cmdk-item-select",xl="data-value",yfe=(e,t,n)=>mfe(e,t,n),kI=g.createContext(void 0),td=()=>g.useContext(kI),AI=g.createContext(void 0),s1=()=>g.useContext(AI),DI=g.createContext(void 0),NI=g.forwardRef((e,t)=>{let n=Sl(()=>{var W,Y;return{search:"",value:(Y=(W=e.value)!=null?W:e.defaultValue)!=null?Y:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Sl(()=>new Set),o=Sl(()=>new Map),i=Sl(()=>new Map),a=Sl(()=>new Set),s=$I(e),{label:l,children:c,value:u,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:v=!0,...y}=e,w=Et(),x=Et(),S=Et(),C=g.useRef(null),E=Mfe();Qa(()=>{if(u!==void 0){let W=u.trim();n.current.value=W,P.emit()}},[u]),Qa(()=>{E(6,N)},[]);let P=g.useMemo(()=>({subscribe:W=>(a.current.add(W),()=>a.current.delete(W)),snapshot:()=>n.current,setState:(W,Y,F)=>{var ee,fe,Z,J;if(!Object.is(n.current[W],Y)){if(n.current[W]=Y,W==="search")D(),M(),E(1,A);else if(W==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Q=document.getElementById(S);Q?Q.focus():(ee=document.getElementById(w))==null||ee.focus()}if(E(7,()=>{var Q;n.current.selectedItemId=(Q=R())==null?void 0:Q.id,P.emit()}),F||E(5,N),((fe=s.current)==null?void 0:fe.value)!==void 0){let Q=Y??"";(J=(Z=s.current).onValueChange)==null||J.call(Z,Q);return}}P.emit()}},emit:()=>{a.current.forEach(W=>W())}}),[]),_=g.useMemo(()=>({value:(W,Y,F)=>{var ee;Y!==((ee=i.current.get(W))==null?void 0:ee.value)&&(i.current.set(W,{value:Y,keywords:F}),n.current.filtered.items.set(W,T(Y,F)),E(2,()=>{M(),P.emit()}))},item:(W,Y)=>(r.current.add(W),Y&&(o.current.has(Y)?o.current.get(Y).add(W):o.current.set(Y,new Set([W]))),E(3,()=>{D(),M(),n.current.value||A(),P.emit()}),()=>{i.current.delete(W),r.current.delete(W),n.current.filtered.items.delete(W);let F=R();E(4,()=>{D(),(F==null?void 0:F.getAttribute("id"))===W&&A(),P.emit()})}),group:W=>(o.current.has(W)||o.current.set(W,new Set),()=>{i.current.delete(W),o.current.delete(W)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:w,inputId:S,labelId:x,listInnerRef:C}),[]);function T(W,Y){var F,ee;let fe=(ee=(F=s.current)==null?void 0:F.filter)!=null?ee:yfe;return W?fe(W,n.current.search,Y):0}function M(){if(!n.current.search||s.current.shouldFilter===!1)return;let W=n.current.filtered.items,Y=[];n.current.filtered.groups.forEach(ee=>{let fe=o.current.get(ee),Z=0;fe.forEach(J=>{let Q=W.get(J);Z=Math.max(Q,Z)}),Y.push([ee,Z])});let F=C.current;U().sort((ee,fe)=>{var Z,J;let Q=ee.getAttribute("id"),oe=fe.getAttribute("id");return((Z=W.get(oe))!=null?Z:0)-((J=W.get(Q))!=null?J:0)}).forEach(ee=>{let fe=ee.closest(i1);fe?fe.appendChild(ee.parentElement===fe?ee:ee.closest(`${i1} > *`)):F.appendChild(ee.parentElement===F?ee:ee.closest(`${i1} > *`))}),Y.sort((ee,fe)=>fe[1]-ee[1]).forEach(ee=>{var fe;let Z=(fe=C.current)==null?void 0:fe.querySelector(`${ed}[${xl}="${encodeURIComponent(ee[0])}"]`);Z==null||Z.parentElement.appendChild(Z)})}function A(){let W=U().find(F=>F.getAttribute("aria-disabled")!=="true"),Y=W==null?void 0:W.getAttribute(xl);P.setState("value",Y||void 0)}function D(){var W,Y,F,ee;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let fe=0;for(let Z of r.current){let J=(Y=(W=i.current.get(Z))==null?void 0:W.value)!=null?Y:"",Q=(ee=(F=i.current.get(Z))==null?void 0:F.keywords)!=null?ee:[],oe=T(J,Q);n.current.filtered.items.set(Z,oe),oe>0&&fe++}for(let[Z,J]of o.current)for(let Q of J)if(n.current.filtered.items.get(Q)>0){n.current.filtered.groups.add(Z);break}n.current.filtered.count=fe}function N(){var W,Y,F;let ee=R();ee&&(((W=ee.parentElement)==null?void 0:W.firstChild)===ee&&((F=(Y=ee.closest(ed))==null?void 0:Y.querySelector(vfe))==null||F.scrollIntoView({block:"nearest"})),ee.scrollIntoView({block:"nearest"}))}function R(){var W;return(W=C.current)==null?void 0:W.querySelector(`${_I}[aria-selected="true"]`)}function U(){var W;return Array.from(((W=C.current)==null?void 0:W.querySelectorAll(MI))||[])}function L(W){let Y=U()[W];Y&&P.setState("value",Y.getAttribute(xl))}function V(W){var Y;let F=R(),ee=U(),fe=ee.findIndex(J=>J===F),Z=ee[fe+W];(Y=s.current)!=null&&Y.loop&&(Z=fe+W<0?ee[ee.length-1]:fe+W===ee.length?ee[0]:ee[fe+W]),Z&&P.setState("value",Z.getAttribute(xl))}function j(W){let Y=R(),F=Y==null?void 0:Y.closest(ed),ee;for(;F&&!ee;)F=W>0?Tfe(F,ed):_fe(F,ed),ee=F==null?void 0:F.querySelector(MI);ee?P.setState("value",ee.getAttribute(xl)):V(W)}let H=()=>L(U().length-1),se=W=>{W.preventDefault(),W.metaKey?H():W.altKey?j(1):V(1)},pe=W=>{W.preventDefault(),W.metaKey?L(0):W.altKey?j(-1):V(-1)};return g.createElement(ye.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:W=>{var Y;(Y=y.onKeyDown)==null||Y.call(y,W);let F=W.nativeEvent.isComposing||W.keyCode===229;if(!(W.defaultPrevented||F))switch(W.key){case"n":case"j":{v&&W.ctrlKey&&se(W);break}case"ArrowDown":{se(W);break}case"p":case"k":{v&&W.ctrlKey&&pe(W);break}case"ArrowUp":{pe(W);break}case"Home":{W.preventDefault(),L(0);break}case"End":{W.preventDefault(),H();break}case"Enter":{W.preventDefault();let ee=R();if(ee){let fe=new Event(a1);ee.dispatchEvent(fe)}}}}},g.createElement("label",{"cmdk-label":"",htmlFor:_.inputId,id:_.labelId,style:Afe},l),fg(e,W=>g.createElement(AI.Provider,{value:P},g.createElement(kI.Provider,{value:_},W))))}),bfe=g.forwardRef((e,t)=>{var n,r;let o=Et(),i=g.useRef(null),a=g.useContext(DI),s=td(),l=$I(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;Qa(()=>{if(!c)return s.item(o,a==null?void 0:a.id)},[c]);let u=II(o,i,[e.value,e.children,i],e.keywords),d=s1(),f=Zi(E=>E.value&&E.value===u.current),p=Zi(E=>c||s.filter()===!1?!0:E.search?E.filtered.items.get(o)>0:!0);g.useEffect(()=>{let E=i.current;if(!(!E||e.disabled))return E.addEventListener(a1,h),()=>E.removeEventListener(a1,h)},[p,e.onSelect,e.disabled]);function h(){var E,P;m(),(P=(E=l.current).onSelect)==null||P.call(E,u.current)}function m(){d.setState("value",u.current,!0)}if(!p)return null;let{disabled:v,value:y,onSelect:w,forceMount:x,keywords:S,...C}=e;return g.createElement(ye.div,{ref:Pn(i,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||s.getDisablePointerSelection()?void 0:m,onClick:v?void 0:h},e.children)}),wfe=g.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=Et(),s=g.useRef(null),l=g.useRef(null),c=Et(),u=td(),d=Zi(p=>o||u.filter()===!1?!0:p.search?p.filtered.groups.has(a):!0);Qa(()=>u.group(a),[]),II(a,s,[e.value,e.heading,l]);let f=g.useMemo(()=>({id:a,forceMount:o}),[o]);return g.createElement(ye.div,{ref:Pn(s,t),...i,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&g.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),fg(e,p=>g.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},g.createElement(DI.Provider,{value:f},p))))}),xfe=g.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=g.useRef(null),i=Zi(a=>!a.search);return!n&&!i?null:g.createElement(ye.div,{ref:Pn(o,t),...r,"cmdk-separator":"",role:"separator"})}),Sfe=g.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,i=s1(),a=Zi(c=>c.search),s=Zi(c=>c.selectedItemId),l=td();return g.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),g.createElement(ye.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:o?e.value:a,onChange:c=>{o||i.setState("search",c.target.value),n==null||n(c.target.value)}})}),Cfe=g.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=g.useRef(null),a=g.useRef(null),s=Zi(c=>c.selectedItemId),l=td();return g.useEffect(()=>{if(a.current&&i.current){let c=a.current,u=i.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=c.offsetHeight;u.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(c),()=>{cancelAnimationFrame(d),f.unobserve(c)}}},[]),g.createElement(ye.div,{ref:Pn(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},fg(e,c=>g.createElement("div",{ref:Pn(a,l.listInnerRef),"cmdk-list-sizer":""},c)))}),Efe=g.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=e;return g.createElement(Gc,{open:n,onOpenChange:r},g.createElement(Yc,{container:a},g.createElement(Ea,{"cmdk-overlay":"",className:o}),g.createElement(Pa,{"aria-label":e.label,"cmdk-dialog":"",className:i},g.createElement(NI,{ref:t,...s}))))}),Pfe=g.forwardRef((e,t)=>Zi(n=>n.filtered.count===0)?g.createElement(ye.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Ofe=g.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return g.createElement(ye.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},fg(e,a=>g.createElement("div",{"aria-hidden":!0},a)))}),Xn=Object.assign(NI,{List:Cfe,Item:bfe,Input:Sfe,Group:wfe,Separator:xfe,Dialog:Efe,Empty:Pfe,Loading:Ofe});function Tfe(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function _fe(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function $I(e){let t=g.useRef(e);return Qa(()=>{t.current=e}),t}var Qa=typeof window>"u"?g.useEffect:g.useLayoutEffect;function Sl(e){let t=g.useRef();return t.current===void 0&&(t.current=e()),t}function Zi(e){let t=s1(),n=()=>e(t.snapshot());return g.useSyncExternalStore(t.subscribe,n,n)}function II(e,t,n,r=[]){let o=g.useRef(),i=td();return Qa(()=>{var a;let s=(()=>{var c;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());i.value(e,s,l),(a=t.current)==null||a.setAttribute(xl,s),o.current=s}),o}var Mfe=()=>{let[e,t]=g.useState(),n=Sl(()=>new Map);return Qa(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function kfe(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function fg({asChild:e,children:t},n){return e&&g.isValidElement(t)?g.cloneElement(kfe(t),{ref:t.ref},n(t.props.children)):n(t)}var Afe={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const l1=Gc,Dfe=wh,LI=Yc,Nfe=Oa,c1=g.forwardRef(({className:e,...t},n)=>b.jsx(Ea,{ref:n,className:q("fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));c1.displayName=Ea.displayName;const hg=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(LI,{children:[b.jsx(c1,{}),b.jsxs(Pa,{ref:r,"aria-description":"dialog",title:"",className:q("fixed left-[50%] top-[50%] z-50 grid w-[40%] max-w-xlg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,b.jsxs(Oa,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[b.jsx(Eh,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));hg.displayName=Pa.displayName;const u1=({className:e,...t})=>b.jsx("div",{className:q("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});u1.displayName="DialogHeader";const FI=({className:e,...t})=>b.jsx("div",{className:q("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});FI.displayName="DialogFooter";const pg=g.forwardRef(({className:e,...t},n)=>b.jsx(Ws,{ref:n,className:q("text-lg font-semibold leading-none tracking-tight",e),...t}));pg.displayName=Ws.displayName;const d1=g.forwardRef(({className:e,...t},n)=>b.jsx(Ks,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));d1.displayName=Ks.displayName;const f1=g.forwardRef(({className:e,...t},n)=>b.jsx(Xn,{ref:n,className:q("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));f1.displayName=Xn.displayName;const $fe=({children:e,...t})=>b.jsx(l1,{...t,children:b.jsxs(hg,{className:"overflow-hidden p-0",children:[b.jsx(pg,{hidden:!0}),b.jsx(f1,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})]})}),RI=g.forwardRef(({className:e,...t},n)=>b.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[b.jsx(rQ,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),b.jsx(Xn.Input,{ref:n,className:q("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));RI.displayName=Xn.Input.displayName;const BI=g.forwardRef(({className:e,...t},n)=>b.jsx(Xn.List,{ref:n,className:q("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));BI.displayName=Xn.List.displayName;const jI=g.forwardRef((e,t)=>b.jsx(Xn.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));jI.displayName=Xn.Empty.displayName;const zI=g.forwardRef(({className:e,...t},n)=>b.jsx(Xn.Group,{ref:n,className:q("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));zI.displayName=Xn.Group.displayName;const qI=g.forwardRef(({className:e,...t},n)=>b.jsx(Xn.Separator,{ref:n,className:q("-mx-1 h-px bg-border",e),...t}));qI.displayName=Xn.Separator.displayName;const VI=g.forwardRef(({className:e,...t},n)=>b.jsx(Xn.Item,{ref:n,className:q("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));VI.displayName=Xn.Item.displayName;const UI=({className:e,...t})=>b.jsx("span",{className:q("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});UI.displayName="CommandShortcut";const Ife=["top","right","bottom","left"],Ji=Math.min,hr=Math.max,gg=Math.round,mg=Math.floor,Ao=e=>({x:e,y:e}),Lfe={left:"right",right:"left",bottom:"top",top:"bottom"},Ffe={start:"end",end:"start"};function h1(e,t,n){return hr(e,Ji(t,n))}function Ci(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function Cl(e){return e.split("-")[1]}function p1(e){return e==="x"?"y":"x"}function g1(e){return e==="y"?"height":"width"}const Rfe=new Set(["top","bottom"]);function Do(e){return Rfe.has(Ei(e))?"y":"x"}function m1(e){return p1(Do(e))}function Bfe(e,t,n){n===void 0&&(n=!1);const r=Cl(e),o=m1(e),i=g1(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=vg(a)),[a,vg(a)]}function jfe(e){const t=vg(e);return[v1(e),t,v1(t)]}function v1(e){return e.replace(/start|end/g,t=>Ffe[t])}const HI=["left","right"],WI=["right","left"],zfe=["top","bottom"],qfe=["bottom","top"];function Vfe(e,t,n){switch(e){case"top":case"bottom":return n?t?WI:HI:t?HI:WI;case"left":case"right":return t?zfe:qfe;default:return[]}}function Ufe(e,t,n,r){const o=Cl(e);let i=Vfe(Ei(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(v1)))),i}function vg(e){return e.replace(/left|right|bottom|top/g,t=>Lfe[t])}function Hfe(e){return{top:0,right:0,bottom:0,left:0,...e}}function KI(e){return typeof e!="number"?Hfe(e):{top:e,right:e,bottom:e,left:e}}function yg(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function GI(e,t,n){let{reference:r,floating:o}=e;const i=Do(t),a=m1(t),s=g1(a),l=Ei(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Cl(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1);break}return p}const Wfe=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=GI(c,r,l),f=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:v,fn:y}=s[m],{x:w,y:x,data:S,reset:C}=await y({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=w??u,d=x??d,p={...p,[v]:{...p[v],...S}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(c=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:u,y:d}=GI(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}};async function nd(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ci(t,e),h=KI(p),v=s[f?d==="floating"?"reference":"floating":d],y=yg(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},C=yg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-C.top+h.top)/S.y,bottom:(C.bottom-y.bottom+h.bottom)/S.y,left:(y.left-C.left+h.left)/S.x,right:(C.right-y.right+h.right)/S.x}}const Kfe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ci(e,t)||{};if(c==null)return{};const d=KI(u),f={x:n,y:r},p=m1(o),h=g1(p),m=await a.getDimensions(c),v=p==="y",y=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[p]-f[p]-i.floating[h],C=f[p]-i.reference[p],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let P=E?E[x]:0;(!P||!await(a.isElement==null?void 0:a.isElement(E)))&&(P=s.floating[x]||i.floating[h]);const _=S/2-C/2,T=P/2-m[h]/2-1,M=Ji(d[y],T),A=Ji(d[w],T),D=M,N=P-m[h]-A,R=P/2-m[h]/2+_,U=h1(D,R,N),L=!l.arrow&&Cl(o)!=null&&R!==U&&i.reference[h]/2-(R<D?M:A)-m[h]/2<0,V=L?R<D?R-D:R-N:0;return{[p]:f[p]+V,data:{[p]:U,centerOffset:R-U-V,...L&&{alignmentOffset:V}},reset:L}}}),Gfe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=Ci(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Ei(o),w=Do(s),x=Ei(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=f||(x||!m?[vg(s)]:jfe(s)),E=h!=="none";!f&&E&&C.push(...Ufe(s,m,h,S));const P=[s,...C],_=await nd(t,v),T=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&T.push(_[y]),d){const R=Bfe(o,a,S);T.push(_[R[0]],_[R[1]])}if(M=[...M,{placement:o,overflows:T}],!T.every(R=>R<=0)){var A,D;const R=(((A=i.flip)==null?void 0:A.index)||0)+1,U=P[R];if(U&&(!(d==="alignment"?w!==Do(U):!1)||M.every(j=>Do(j.placement)===w?j.overflows[0]>0:!0)))return{data:{index:R,overflows:M},reset:{placement:U}};let L=(D=M.filter(V=>V.overflows[0]<=0).sort((V,j)=>V.overflows[1]-j.overflows[1])[0])==null?void 0:D.placement;if(!L)switch(p){case"bestFit":{var N;const V=(N=M.filter(j=>{if(E){const H=Do(j.placement);return H===w||H==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(H=>H>0).reduce((H,se)=>H+se,0)]).sort((j,H)=>j[1]-H[1])[0])==null?void 0:N[0];V&&(L=V);break}case"initialPlacement":L=s;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function YI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function XI(e){return Ife.some(t=>e[t]>=0)}const Yfe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ci(e,t);switch(r){case"referenceHidden":{const i=await nd(t,{...o,elementContext:"reference"}),a=YI(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:XI(a)}}}case"escaped":{const i=await nd(t,{...o,altBoundary:!0}),a=YI(i,n.floating);return{data:{escapedOffsets:a,escaped:XI(a)}}}default:return{}}}}},QI=new Set(["left","top"]);async function Xfe(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ei(n),s=Cl(n),l=Do(n)==="y",c=QI.has(a)?-1:1,u=i&&l?-1:1,d=Ci(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const Qfe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await Xfe(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Zfe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...l}=Ci(e,t),c={x:n,y:r},u=await nd(t,l),d=Do(Ei(o)),f=p1(d);let p=c[f],h=c[d];if(i){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=p+u[v],x=p-u[y];p=h1(w,p,x)}if(a){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=h+u[v],x=h-u[y];h=h1(w,h,x)}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}},Jfe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ci(e,t),u={x:n,y:r},d=Do(o),f=p1(d);let p=u[f],h=u[d];const m=Ci(s,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const x=f==="y"?"height":"width",S=i.reference[f]-i.floating[x]+v.mainAxis,C=i.reference[f]+i.reference[x]-v.mainAxis;p<S?p=S:p>C&&(p=C)}if(c){var y,w;const x=f==="y"?"width":"height",S=QI.has(Ei(o)),C=i.reference[d]-i.floating[x]+(S&&((y=a.offset)==null?void 0:y[d])||0)+(S?0:v.crossAxis),E=i.reference[d]+i.reference[x]+(S?0:((w=a.offset)==null?void 0:w[d])||0)-(S?v.crossAxis:0);h<C?h=C:h>E&&(h=E)}return{[f]:p,[d]:h}}}},ehe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=Ci(e,t),u=await nd(t,c),d=Ei(o),f=Cl(o),p=Do(o)==="y",{width:h,height:m}=i.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=d,v=f==="end"?"top":"bottom");const w=m-u.top-u.bottom,x=h-u.left-u.right,S=Ji(m-u[v],w),C=Ji(h-u[y],x),E=!t.middlewareData.shift;let P=S,_=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=w),E&&!f){const M=hr(u.left,0),A=hr(u.right,0),D=hr(u.top,0),N=hr(u.bottom,0);p?_=h-2*(M!==0||A!==0?M+A:hr(u.left,u.right)):P=m-2*(D!==0||N!==0?D+N:hr(u.top,u.bottom))}await l({...t,availableWidth:_,availableHeight:P});const T=await a.getDimensions(s.floating);return h!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};function bg(){return typeof window<"u"}function El(e){return ZI(e)?(e.nodeName||"").toLowerCase():"#document"}function pr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function No(e){var t;return(t=(ZI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ZI(e){return bg()?e instanceof Node||e instanceof pr(e).Node:!1}function oo(e){return bg()?e instanceof Element||e instanceof pr(e).Element:!1}function $o(e){return bg()?e instanceof HTMLElement||e instanceof pr(e).HTMLElement:!1}function JI(e){return!bg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof pr(e).ShadowRoot}const the=new Set(["inline","contents"]);function rd(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=io(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!the.has(o)}const nhe=new Set(["table","td","th"]);function rhe(e){return nhe.has(El(e))}const ohe=[":popover-open",":modal"];function wg(e){return ohe.some(t=>{try{return e.matches(t)}catch{return!1}})}const ihe=["transform","translate","scale","rotate","perspective"],ahe=["transform","translate","scale","rotate","perspective","filter"],she=["paint","layout","strict","content"];function y1(e){const t=b1(),n=oo(e)?io(e):e;return ihe.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ahe.some(r=>(n.willChange||"").includes(r))||she.some(r=>(n.contain||"").includes(r))}function lhe(e){let t=ea(e);for(;$o(t)&&!Pl(t);){if(y1(t))return t;if(wg(t))return null;t=ea(t)}return null}function b1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const che=new Set(["html","body","#document"]);function Pl(e){return che.has(El(e))}function io(e){return pr(e).getComputedStyle(e)}function xg(e){return oo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ea(e){if(El(e)==="html")return e;const t=e.assignedSlot||e.parentNode||JI(e)&&e.host||No(e);return JI(t)?t.host:t}function e5(e){const t=ea(e);return Pl(t)?e.ownerDocument?e.ownerDocument.body:e.body:$o(t)&&rd(t)?t:e5(t)}function od(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=e5(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=pr(o);if(i){const s=w1(a);return t.concat(a,a.visualViewport||[],rd(o)?o:[],s&&n?od(s):[])}return t.concat(o,od(o,[],n))}function w1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function t5(e){const t=io(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=$o(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=gg(n)!==i||gg(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function x1(e){return oo(e)?e:e.contextElement}function Ol(e){const t=x1(e);if(!$o(t))return Ao(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=t5(t);let a=(i?gg(n.width):n.width)/r,s=(i?gg(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const uhe=Ao(0);function n5(e){const t=pr(e);return!b1()||!t.visualViewport?uhe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dhe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==pr(e)?!1:t}function Za(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=x1(e);let a=Ao(1);t&&(r?oo(r)&&(a=Ol(r)):a=Ol(e));const s=dhe(i,n,r)?n5(i):Ao(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=pr(i),p=r&&oo(r)?pr(r):r;let h=f,m=w1(h);for(;m&&r&&p!==h;){const v=Ol(m),y=m.getBoundingClientRect(),w=io(m),x=y.left+(m.clientLeft+parseFloat(w.paddingLeft))*v.x,S=y.top+(m.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=x,c+=S,h=pr(m),m=w1(h)}}return yg({width:u,height:d,x:l,y:c})}function Sg(e,t){const n=xg(e).scrollLeft;return t?t.left+n:Za(No(e)).left+n}function r5(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sg(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function fhe(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=No(r),s=t?wg(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ao(1);const u=Ao(0),d=$o(r);if((d||!d&&!i)&&((El(r)!=="body"||rd(a))&&(l=xg(r)),$o(r))){const p=Za(r);c=Ol(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const f=a&&!d&&!i?r5(a,l):Ao(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function hhe(e){return Array.from(e.getClientRects())}function phe(e){const t=No(e),n=xg(e),r=e.ownerDocument.body,o=hr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=hr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Sg(e);const s=-n.scrollTop;return io(r).direction==="rtl"&&(a+=hr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const o5=25;function ghe(e,t){const n=pr(e),r=No(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=b1();(!u||u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}const c=Sg(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(r.clientWidth-d.clientWidth-p);h<=o5&&(i-=h)}else c<=o5&&(i+=c);return{width:i,height:a,x:s,y:l}}const mhe=new Set(["absolute","fixed"]);function vhe(e,t){const n=Za(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=$o(e)?Ol(e):Ao(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:a,height:s,x:l,y:c}}function i5(e,t,n){let r;if(t==="viewport")r=ghe(e,n);else if(t==="document")r=phe(No(e));else if(oo(t))r=vhe(t,n);else{const o=n5(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return yg(r)}function a5(e,t){const n=ea(e);return n===t||!oo(n)||Pl(n)?!1:io(n).position==="fixed"||a5(n,t)}function yhe(e,t){const n=t.get(e);if(n)return n;let r=od(e,[],!1).filter(s=>oo(s)&&El(s)!=="body"),o=null;const i=io(e).position==="fixed";let a=i?ea(e):e;for(;oo(a)&&!Pl(a);){const s=io(a),l=y1(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&mhe.has(o.position)||rd(a)&&!l&&a5(e,a))?r=r.filter(u=>u!==a):o=s,a=ea(a)}return t.set(e,r),r}function bhe(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?wg(t)?[]:yhe(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((c,u)=>{const d=i5(t,u,o);return c.top=hr(d.top,c.top),c.right=Ji(d.right,c.right),c.bottom=Ji(d.bottom,c.bottom),c.left=hr(d.left,c.left),c},i5(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function whe(e){const{width:t,height:n}=t5(e);return{width:t,height:n}}function xhe(e,t,n){const r=$o(t),o=No(t),i=n==="fixed",a=Za(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ao(0);function c(){l.x=Sg(o)}if(r||!r&&!i)if((El(t)!=="body"||rd(o))&&(s=xg(t)),r){const p=Za(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?r5(o,s):Ao(0),d=a.left+s.scrollLeft-l.x-u.x,f=a.top+s.scrollTop-l.y-u.y;return{x:d,y:f,width:a.width,height:a.height}}function S1(e){return io(e).position==="static"}function s5(e,t){if(!$o(e)||io(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return No(e)===n&&(n=n.ownerDocument.body),n}function l5(e,t){const n=pr(e);if(wg(e))return n;if(!$o(e)){let o=ea(e);for(;o&&!Pl(o);){if(oo(o)&&!S1(o))return o;o=ea(o)}return n}let r=s5(e,t);for(;r&&rhe(r)&&S1(r);)r=s5(r,t);return r&&Pl(r)&&S1(r)&&!y1(r)?n:r||lhe(e)||n}const She=async function(e){const t=this.getOffsetParent||l5,n=this.getDimensions,r=await n(e.floating);return{reference:xhe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Che(e){return io(e).direction==="rtl"}const Ehe={convertOffsetParentRelativeRectToViewportRelativeRect:fhe,getDocumentElement:No,getClippingRect:bhe,getOffsetParent:l5,getElementRects:She,getClientRects:hhe,getDimensions:whe,getScale:Ol,isElement:oo,isRTL:Che};function c5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Phe(e,t){let n=null,r;const o=No(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const h=mg(d),m=mg(o.clientWidth-(u+f)),v=mg(o.clientHeight-(d+p)),y=mg(u),x={rootMargin:-h+"px "+-m+"px "+-v+"px "+-y+"px",threshold:hr(0,Ji(1,l))||1};let S=!0;function C(E){const P=E[0].intersectionRatio;if(P!==l){if(!S)return a();P?a(!1,P):r=setTimeout(()=>{a(!1,1e-7)},1e3)}P===1&&!c5(c,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return a(!0),i}function Ohe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=x1(e),u=o||i?[...c?od(c):[],...od(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&s?Phe(c,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let h,m=l?Za(e):null;l&&v();function v(){const y=Za(e);m&&!c5(m,y)&&n(),m=y,h=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const The=Qfe,_he=Zfe,Mhe=Gfe,khe=ehe,Ahe=Yfe,u5=Kfe,Dhe=Jfe,Nhe=(e,t,n)=>{const r=new Map,o={platform:Ehe,...n},i={...o.platform,_c:r};return Wfe(e,t,{...o,platform:i})};var $he=typeof document<"u",Ihe=function(){},Cg=$he?O.useLayoutEffect:Ihe;function Eg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Eg(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Eg(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function d5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function f5(e,t){const n=d5(e);return Math.round(t*n)/n}function C1(e){const t=g.useRef(e);return Cg(()=>{t.current=e}),t}function Lhe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);Eg(f,r)||p(r);const[h,m]=g.useState(null),[v,y]=g.useState(null),w=g.useCallback(j=>{j!==E.current&&(E.current=j,m(j))},[]),x=g.useCallback(j=>{j!==P.current&&(P.current=j,y(j))},[]),S=i||h,C=a||v,E=g.useRef(null),P=g.useRef(null),_=g.useRef(u),T=l!=null,M=C1(l),A=C1(o),D=C1(c),N=g.useCallback(()=>{if(!E.current||!P.current)return;const j={placement:t,strategy:n,middleware:f};A.current&&(j.platform=A.current),Nhe(E.current,P.current,j).then(H=>{const se={...H,isPositioned:D.current!==!1};R.current&&!Eg(_.current,se)&&(_.current=se,Oc.flushSync(()=>{d(se)}))})},[f,t,n,A,D]);Cg(()=>{c===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[c]);const R=g.useRef(!1);Cg(()=>(R.current=!0,()=>{R.current=!1}),[]),Cg(()=>{if(S&&(E.current=S),C&&(P.current=C),S&&C){if(M.current)return M.current(S,C,N);N()}},[S,C,N,M,T]);const U=g.useMemo(()=>({reference:E,floating:P,setReference:w,setFloating:x}),[w,x]),L=g.useMemo(()=>({reference:S,floating:C}),[S,C]),V=g.useMemo(()=>{const j={position:n,left:0,top:0};if(!L.floating)return j;const H=f5(L.floating,u.x),se=f5(L.floating,u.y);return s?{...j,transform:"translate("+H+"px, "+se+"px)",...d5(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:se}},[n,s,L.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:N,refs:U,elements:L,floatingStyles:V}),[u,N,U,L,V])}const Fhe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?u5({element:r.current,padding:o}).fn(n):{}:r?u5({element:r,padding:o}).fn(n):{}}}},Rhe=(e,t)=>({...The(e),options:[e,t]}),Bhe=(e,t)=>({..._he(e),options:[e,t]}),jhe=(e,t)=>({...Dhe(e),options:[e,t]}),zhe=(e,t)=>({...Mhe(e),options:[e,t]}),qhe=(e,t)=>({...khe(e),options:[e,t]}),Vhe=(e,t)=>({...Ahe(e),options:[e,t]}),Uhe=(e,t)=>({...Fhe(e),options:[e,t]});var Hhe="Arrow",h5=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(ye.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});h5.displayName=Hhe;var Whe=h5,E1="Popper",[p5,Io]=kt(E1),[Khe,g5]=p5(E1),m5=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return b.jsx(Khe,{scope:t,anchor:r,onAnchorChange:o,children:n})};m5.displayName=E1;var v5="PopperAnchor",y5=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=g5(v5,n),a=g.useRef(null),s=je(t,a),l=g.useRef(null);return g.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||a.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:b.jsx(ye.div,{...o,ref:s})});y5.displayName=v5;var P1="PopperContent",[Ghe,Yhe]=p5(P1),b5=g.forwardRef((e,t)=>{var Z,J,Q,oe,le,z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:h,...m}=e,v=g5(P1,n),[y,w]=g.useState(null),x=je(t,_e=>w(_e)),[S,C]=g.useState(null),E=Ju(S),P=(E==null?void 0:E.width)??0,_=(E==null?void 0:E.height)??0,T=r+(i!=="center"?"-"+i:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},A=Array.isArray(c)?c:[c],D=A.length>0,N={padding:M,boundary:A.filter(Qhe),altBoundary:D},{refs:R,floatingStyles:U,placement:L,isPositioned:V,middlewareData:j}=Lhe({strategy:"fixed",placement:T,whileElementsMounted:(..._e)=>Ohe(..._e,{animationFrame:p==="always"}),elements:{reference:v.anchor},middleware:[Rhe({mainAxis:o+_,alignmentAxis:a}),l&&Bhe({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?jhe():void 0,...N}),l&&zhe({...N}),qhe({...N,apply:({elements:_e,rects:X,availableWidth:be,availableHeight:$e})=>{const{width:Ve,height:ae}=X.reference,Ee=_e.floating.style;Ee.setProperty("--radix-popper-available-width",`${be}px`),Ee.setProperty("--radix-popper-available-height",`${$e}px`),Ee.setProperty("--radix-popper-anchor-width",`${Ve}px`),Ee.setProperty("--radix-popper-anchor-height",`${ae}px`)}}),S&&Uhe({element:S,padding:s}),Zhe({arrowWidth:P,arrowHeight:_}),f&&Vhe({strategy:"referenceHidden",...N})]}),[H,se]=S5(L),pe=ht(h);At(()=>{V&&(pe==null||pe())},[V,pe]);const W=(Z=j.arrow)==null?void 0:Z.x,Y=(J=j.arrow)==null?void 0:J.y,F=((Q=j.arrow)==null?void 0:Q.centerOffset)!==0,[ee,fe]=g.useState();return At(()=>{y&&fe(window.getComputedStyle(y).zIndex)},[y]),b.jsx("div",{ref:R.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:V?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(oe=j.transformOrigin)==null?void 0:oe.x,(le=j.transformOrigin)==null?void 0:le.y].join(" "),...((z=j.hide)==null?void 0:z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(Ghe,{scope:n,placedSide:H,onArrowChange:C,arrowX:W,arrowY:Y,shouldHideArrow:F,children:b.jsx(ye.div,{"data-side":H,"data-align":se,...m,ref:x,style:{...m.style,animation:V?void 0:"none"}})})})});b5.displayName=P1;var w5="PopperArrow",Xhe={top:"bottom",right:"left",bottom:"top",left:"right"},x5=g.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Yhe(w5,r),a=Xhe[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(Whe,{...o,ref:n,style:{...o.style,display:"block"}})})});x5.displayName=w5;function Qhe(e){return e!==null}var Zhe=e=>({name:"transformOrigin",options:e,fn(t){var v,y,w;const{placement:n,rects:r,middlewareData:o}=t,a=((v=o.arrow)==null?void 0:v.centerOffset)!==0,s=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,u]=S5(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,p=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let h="",m="";return c==="bottom"?(h=a?d:`${f}px`,m=`${-l}px`):c==="top"?(h=a?d:`${f}px`,m=`${r.floating.height+l}px`):c==="right"?(h=`${-l}px`,m=a?d:`${p}px`):c==="left"&&(h=`${r.floating.width+l}px`,m=a?d:`${p}px`),{data:{x:h,y:m}}}});function S5(e){const[t,n="center"]=e.split("-");return[t,n]}var Tl=m5,_l=y5,id=b5,ad=x5,O1="rovingFocusGroup.onEntryFocus",Jhe={bubbles:!1,cancelable:!0},sd="RovingFocusGroup",[T1,C5,epe]=Qo(sd),[tpe,Lo]=kt(sd,[epe]),[npe,rpe]=tpe(sd),E5=g.forwardRef((e,t)=>b.jsx(T1.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(T1.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(ope,{...e,ref:t})})}));E5.displayName=sd;var ope=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=g.useRef(null),p=je(t,f),h=Wr(i),[m,v]=Ot({prop:a,defaultProp:s??null,onChange:l,caller:sd}),[y,w]=g.useState(!1),x=ht(c),S=C5(n),C=g.useRef(!1),[E,P]=g.useState(0);return g.useEffect(()=>{const _=f.current;if(_)return _.addEventListener(O1,x),()=>_.removeEventListener(O1,x)},[x]),b.jsx(npe,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:m,onItemFocus:g.useCallback(_=>v(_),[v]),onItemShiftTab:g.useCallback(()=>w(!0),[]),onFocusableItemAdd:g.useCallback(()=>P(_=>_+1),[]),onFocusableItemRemove:g.useCallback(()=>P(_=>_-1),[]),children:b.jsx(ye.div,{tabIndex:y||E===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:ne(e.onMouseDown,()=>{C.current=!0}),onFocus:ne(e.onFocus,_=>{const T=!C.current;if(_.target===_.currentTarget&&T&&!y){const M=new CustomEvent(O1,Jhe);if(_.currentTarget.dispatchEvent(M),!M.defaultPrevented){const A=S().filter(L=>L.focusable),D=A.find(L=>L.active),N=A.find(L=>L.id===m),U=[D,N,...A].filter(Boolean).map(L=>L.ref.current);T5(U,u)}}C.current=!1}),onBlur:ne(e.onBlur,()=>w(!1))})})}),P5="RovingFocusGroupItem",O5=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...s}=e,l=Et(),c=i||l,u=rpe(P5,n),d=u.currentTabStopId===c,f=C5(n),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:m}=u;return g.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),b.jsx(T1.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:b.jsx(ye.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:ne(e.onMouseDown,v=>{r?u.onItemFocus(c):v.preventDefault()}),onFocus:ne(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:ne(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=spe(v,u.orientation,u.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=f().filter(S=>S.focusable).map(S=>S.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const S=x.indexOf(v.currentTarget);x=u.loop?lpe(x,S+1):x.slice(S+1)}setTimeout(()=>T5(x))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:m!=null}):a})})});O5.displayName=P5;var ipe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ape(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function spe(e,t,n){const r=ape(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return ipe[r]}function T5(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function lpe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ld=E5,cd=O5;function cpe(e){const t=upe(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(fpe);if(l){const c=l.props.children,u=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function upe(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=ppe(o),s=hpe(i,o.props);return o.type!==g.Fragment&&(s.ref=r?Pn(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dpe=Symbol("radix.slottable");function fpe(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dpe}function hpe(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ppe(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var _1=["Enter"," "],gpe=["ArrowDown","PageUp","Home"],_5=["ArrowUp","PageDown","End"],mpe=[...gpe,..._5],vpe={ltr:[..._1,"ArrowRight"],rtl:[..._1,"ArrowLeft"]},ype={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ud="Menu",[dd,bpe,wpe]=Qo(ud),[Ja,fd]=kt(ud,[wpe,Io,Lo]),hd=Io(),M5=Lo(),[k5,ta]=Ja(ud),[xpe,pd]=Ja(ud),A5=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=hd(t),[l,c]=g.useState(null),u=g.useRef(!1),d=ht(i),f=Wr(o);return g.useEffect(()=>{const p=()=>{u.current=!0,document.addEventListener("pointerdown",h,{capture:!0,once:!0}),document.addEventListener("pointermove",h,{capture:!0,once:!0})},h=()=>u.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",h,{capture:!0}),document.removeEventListener("pointermove",h,{capture:!0})}},[]),b.jsx(Tl,{...s,children:b.jsx(k5,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:b.jsx(xpe,{scope:t,onClose:g.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:a,children:r})})})};A5.displayName=ud;var Spe="MenuAnchor",M1=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=hd(n);return b.jsx(_l,{...o,...r,ref:t})});M1.displayName=Spe;var k1="MenuPortal",[Cpe,D5]=Ja(k1,{forceMount:void 0}),N5=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=ta(k1,t);return b.jsx(Cpe,{scope:t,forceMount:n,children:b.jsx(Tt,{present:n||i.open,children:b.jsx(Sa,{asChild:!0,container:o,children:r})})})};N5.displayName=k1;var Ar="MenuContent",[Epe,A1]=Ja(Ar),$5=g.forwardRef((e,t)=>{const n=D5(Ar,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ta(Ar,e.__scopeMenu),a=pd(Ar,e.__scopeMenu);return b.jsx(dd.Provider,{scope:e.__scopeMenu,children:b.jsx(Tt,{present:r||i.open,children:b.jsx(dd.Slot,{scope:e.__scopeMenu,children:a.modal?b.jsx(Ppe,{...o,ref:t}):b.jsx(Ope,{...o,ref:t})})})})}),Ppe=g.forwardRef((e,t)=>{const n=ta(Ar,e.__scopeMenu),r=g.useRef(null),o=je(t,r);return g.useEffect(()=>{const i=r.current;if(i)return vh(i)},[]),b.jsx(D1,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:ne(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ope=g.forwardRef((e,t)=>{const n=ta(Ar,e.__scopeMenu);return b.jsx(D1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Tpe=cpe("MenuContent.ScrollLock"),D1=g.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...m}=e,v=ta(Ar,n),y=pd(Ar,n),w=hd(n),x=M5(n),S=bpe(n),[C,E]=g.useState(null),P=g.useRef(null),_=je(t,P,v.onContentChange),T=g.useRef(0),M=g.useRef(""),A=g.useRef(0),D=g.useRef(null),N=g.useRef("right"),R=g.useRef(0),U=h?Kc:g.Fragment,L=h?{as:Tpe,allowPinchZoom:!0}:void 0,V=H=>{var Z,J;const se=M.current+H,pe=S().filter(Q=>!Q.disabled),W=document.activeElement,Y=(Z=pe.find(Q=>Q.ref.current===W))==null?void 0:Z.textValue,F=pe.map(Q=>Q.textValue),ee=Bpe(F,se,Y),fe=(J=pe.find(Q=>Q.textValue===ee))==null?void 0:J.ref.current;(function Q(oe){M.current=oe,window.clearTimeout(T.current),oe!==""&&(T.current=window.setTimeout(()=>Q(""),1e3))})(se),fe&&setTimeout(()=>fe.focus())};g.useEffect(()=>()=>window.clearTimeout(T.current),[]),ch();const j=g.useCallback(H=>{var pe,W;return N.current===((pe=D.current)==null?void 0:pe.side)&&zpe(H,(W=D.current)==null?void 0:W.area)},[]);return b.jsx(Epe,{scope:n,searchRef:M,onItemEnter:g.useCallback(H=>{j(H)&&H.preventDefault()},[j]),onItemLeave:g.useCallback(H=>{var se;j(H)||((se=P.current)==null||se.focus(),E(null))},[j]),onTriggerLeave:g.useCallback(H=>{j(H)&&H.preventDefault()},[j]),pointerGraceTimerRef:A,onPointerGraceIntentChange:g.useCallback(H=>{D.current=H},[]),children:b.jsx(U,{...L,children:b.jsx(Wc,{asChild:!0,trapped:o,onMountAutoFocus:ne(i,H=>{var se;H.preventDefault(),(se=P.current)==null||se.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:b.jsx(li,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:b.jsx(ld,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:E,onEntryFocus:ne(l,H=>{y.isUsingKeyboardRef.current||H.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(id,{role:"menu","aria-orientation":"vertical","data-state":Z5(v.open),"data-radix-menu-content":"",dir:y.dir,...w,...m,ref:_,style:{outline:"none",...m.style},onKeyDown:ne(m.onKeyDown,H=>{const pe=H.target.closest("[data-radix-menu-content]")===H.currentTarget,W=H.ctrlKey||H.altKey||H.metaKey,Y=H.key.length===1;pe&&(H.key==="Tab"&&H.preventDefault(),!W&&Y&&V(H.key));const F=P.current;if(H.target!==F||!mpe.includes(H.key))return;H.preventDefault();const fe=S().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);_5.includes(H.key)&&fe.reverse(),Fpe(fe)}),onBlur:ne(e.onBlur,H=>{H.currentTarget.contains(H.target)||(window.clearTimeout(T.current),M.current="")}),onPointerMove:ne(e.onPointerMove,md(H=>{const se=H.target,pe=R.current!==H.clientX;if(H.currentTarget.contains(se)&&pe){const W=H.clientX>R.current?"right":"left";N.current=W,R.current=H.clientX}}))})})})})})})});$5.displayName=Ar;var _pe="MenuGroup",N1=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(ye.div,{role:"group",...r,ref:t})});N1.displayName=_pe;var Mpe="MenuLabel",I5=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(ye.div,{...r,ref:t})});I5.displayName=Mpe;var Pg="MenuItem",L5="menu.itemSelect",Og=g.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=g.useRef(null),a=pd(Pg,e.__scopeMenu),s=A1(Pg,e.__scopeMenu),l=je(t,i),c=g.useRef(!1),u=()=>{const d=i.current;if(!n&&d){const f=new CustomEvent(L5,{bubbles:!0,cancelable:!0});d.addEventListener(L5,p=>r==null?void 0:r(p),{once:!0}),Tc(d,f),f.defaultPrevented?c.current=!1:a.onClose()}};return b.jsx(F5,{...o,ref:l,disabled:n,onClick:ne(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),c.current=!0},onPointerUp:ne(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:ne(e.onKeyDown,d=>{const f=s.searchRef.current!=="";n||f&&d.key===" "||_1.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Og.displayName=Pg;var F5=g.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=A1(Pg,n),s=M5(n),l=g.useRef(null),c=je(t,l),[u,d]=g.useState(!1),[f,p]=g.useState("");return g.useEffect(()=>{const h=l.current;h&&p((h.textContent??"").trim())},[i.children]),b.jsx(dd.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:b.jsx(cd,{asChild:!0,...s,focusable:!r,children:b.jsx(ye.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:ne(e.onPointerMove,md(h=>{r?a.onItemLeave(h):(a.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ne(e.onPointerLeave,md(h=>a.onItemLeave(h))),onFocus:ne(e.onFocus,()=>d(!0)),onBlur:ne(e.onBlur,()=>d(!1))})})})}),kpe="MenuCheckboxItem",R5=g.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return b.jsx(V5,{scope:e.__scopeMenu,checked:n,children:b.jsx(Og,{role:"menuitemcheckbox","aria-checked":Tg(n)?"mixed":n,...o,ref:t,"data-state":L1(n),onSelect:ne(o.onSelect,()=>r==null?void 0:r(Tg(n)?!0:!n),{checkForDefaultPrevented:!1})})})});R5.displayName=kpe;var B5="MenuRadioGroup",[Ape,Dpe]=Ja(B5,{value:void 0,onValueChange:()=>{}}),j5=g.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=ht(r);return b.jsx(Ape,{scope:e.__scopeMenu,value:n,onValueChange:i,children:b.jsx(N1,{...o,ref:t})})});j5.displayName=B5;var z5="MenuRadioItem",q5=g.forwardRef((e,t)=>{const{value:n,...r}=e,o=Dpe(z5,e.__scopeMenu),i=n===o.value;return b.jsx(V5,{scope:e.__scopeMenu,checked:i,children:b.jsx(Og,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":L1(i),onSelect:ne(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});q5.displayName=z5;var $1="MenuItemIndicator",[V5,Npe]=Ja($1,{checked:!1}),U5=g.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Npe($1,n);return b.jsx(Tt,{present:r||Tg(i.checked)||i.checked===!0,children:b.jsx(ye.span,{...o,ref:t,"data-state":L1(i.checked)})})});U5.displayName=$1;var $pe="MenuSeparator",H5=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(ye.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});H5.displayName=$pe;var Ipe="MenuArrow",W5=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=hd(n);return b.jsx(ad,{...o,...r,ref:t})});W5.displayName=Ipe;var I1="MenuSub",[Lpe,K5]=Ja(I1),G5=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=ta(I1,t),a=hd(t),[s,l]=g.useState(null),[c,u]=g.useState(null),d=ht(o);return g.useEffect(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),b.jsx(Tl,{...a,children:b.jsx(k5,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:u,children:b.jsx(Lpe,{scope:t,contentId:Et(),triggerId:Et(),trigger:s,onTriggerChange:l,children:n})})})};G5.displayName=I1;var gd="MenuSubTrigger",Y5=g.forwardRef((e,t)=>{const n=ta(gd,e.__scopeMenu),r=pd(gd,e.__scopeMenu),o=K5(gd,e.__scopeMenu),i=A1(gd,e.__scopeMenu),a=g.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=g.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return g.useEffect(()=>u,[u]),g.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),l(null)}},[s,l]),b.jsx(M1,{asChild:!0,...c,children:b.jsx(F5,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Z5(n.open),...e,ref:Pn(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:ne(e.onPointerMove,md(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:ne(e.onPointerLeave,md(d=>{var p,h;u();const f=(p=n.content)==null?void 0:p.getBoundingClientRect();if(f){const m=(h=n.content)==null?void 0:h.dataset.side,v=m==="right",y=v?-5:5,w=f[v?"left":"right"],x=f[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:w,y:f.top},{x,y:f.top},{x,y:f.bottom},{x:w,y:f.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ne(e.onKeyDown,d=>{var p;const f=i.searchRef.current!=="";e.disabled||f&&d.key===" "||vpe[r.dir].includes(d.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),d.preventDefault())})})})});Y5.displayName=gd;var X5="MenuSubContent",Q5=g.forwardRef((e,t)=>{const n=D5(Ar,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ta(Ar,e.__scopeMenu),a=pd(Ar,e.__scopeMenu),s=K5(X5,e.__scopeMenu),l=g.useRef(null),c=je(t,l);return b.jsx(dd.Provider,{scope:e.__scopeMenu,children:b.jsx(Tt,{present:r||i.open,children:b.jsx(dd.Slot,{scope:e.__scopeMenu,children:b.jsx(D1,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:c,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;a.isUsingKeyboardRef.current&&((d=l.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ne(e.onFocusOutside,u=>{u.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ne(e.onEscapeKeyDown,u=>{a.onClose(),u.preventDefault()}),onKeyDown:ne(e.onKeyDown,u=>{var p;const d=u.currentTarget.contains(u.target),f=ype[a.dir].includes(u.key);d&&f&&(i.onOpenChange(!1),(p=s.trigger)==null||p.focus(),u.preventDefault())})})})})})});Q5.displayName=X5;function Z5(e){return e?"open":"closed"}function Tg(e){return e==="indeterminate"}function L1(e){return Tg(e)?"indeterminate":e?"checked":"unchecked"}function Fpe(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Rpe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Bpe(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=Rpe(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function jpe(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,f=l.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function zpe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return jpe(n,t)}function md(e){return t=>t.pointerType==="mouse"?e(t):void 0}var F1=A5,R1=M1,B1=N5,j1=$5,z1=N1,q1=I5,V1=Og,U1=R5,H1=j5,W1=q5,K1=U5,G1=H5,Y1=W5,X1=G5,Q1=Y5,Z1=Q5,J1="ContextMenu",[qpe]=kt(J1,[fd]),_n=fd(),[Vpe,J5]=qpe(J1),e3=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:i=!0}=e,[a,s]=g.useState(!1),l=_n(t),c=ht(r),u=g.useCallback(d=>{s(d),c(d)},[c]);return b.jsx(Vpe,{scope:t,open:a,onOpenChange:u,modal:i,children:b.jsx(F1,{...l,dir:o,open:a,onOpenChange:u,modal:i,children:n})})};e3.displayName=J1;var t3="ContextMenuTrigger",n3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=e,i=J5(t3,n),a=_n(n),s=g.useRef({x:0,y:0}),l=g.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),c=g.useRef(0),u=g.useCallback(()=>window.clearTimeout(c.current),[]),d=f=>{s.current={x:f.clientX,y:f.clientY},i.onOpenChange(!0)};return g.useEffect(()=>u,[u]),g.useEffect(()=>void(r&&u()),[r,u]),b.jsxs(b.Fragment,{children:[b.jsx(R1,{...a,virtualRef:l}),b.jsx(ye.span,{"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:ne(e.onContextMenu,f=>{u(),d(f),f.preventDefault()}),onPointerDown:r?e.onPointerDown:ne(e.onPointerDown,_g(f=>{u(),c.current=window.setTimeout(()=>d(f),700)})),onPointerMove:r?e.onPointerMove:ne(e.onPointerMove,_g(u)),onPointerCancel:r?e.onPointerCancel:ne(e.onPointerCancel,_g(u)),onPointerUp:r?e.onPointerUp:ne(e.onPointerUp,_g(u))})]})});n3.displayName=t3;var Upe="ContextMenuPortal",r3=e=>{const{__scopeContextMenu:t,...n}=e,r=_n(t);return b.jsx(B1,{...r,...n})};r3.displayName=Upe;var o3="ContextMenuContent",i3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=J5(o3,n),i=_n(n),a=g.useRef(!1);return b.jsx(j1,{...i,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{var l;(l=e.onCloseAutoFocus)==null||l.call(e,s),!s.defaultPrevented&&a.current&&s.preventDefault(),a.current=!1},onInteractOutside:s=>{var l;(l=e.onInteractOutside)==null||l.call(e,s),!s.defaultPrevented&&!o.modal&&(a.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});i3.displayName=o3;var Hpe="ContextMenuGroup",a3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(z1,{...o,...r,ref:t})});a3.displayName=Hpe;var Wpe="ContextMenuLabel",s3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(q1,{...o,...r,ref:t})});s3.displayName=Wpe;var Kpe="ContextMenuItem",l3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(V1,{...o,...r,ref:t})});l3.displayName=Kpe;var Gpe="ContextMenuCheckboxItem",c3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(U1,{...o,...r,ref:t})});c3.displayName=Gpe;var Ype="ContextMenuRadioGroup",u3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(H1,{...o,...r,ref:t})});u3.displayName=Ype;var Xpe="ContextMenuRadioItem",d3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(W1,{...o,...r,ref:t})});d3.displayName=Xpe;var Qpe="ContextMenuItemIndicator",f3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(K1,{...o,...r,ref:t})});f3.displayName=Qpe;var Zpe="ContextMenuSeparator",h3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(G1,{...o,...r,ref:t})});h3.displayName=Zpe;var Jpe="ContextMenuArrow",ege=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(Y1,{...o,...r,ref:t})});ege.displayName=Jpe;var p3="ContextMenuSub",g3=e=>{const{__scopeContextMenu:t,children:n,onOpenChange:r,open:o,defaultOpen:i}=e,a=_n(t),[s,l]=Ot({prop:o,defaultProp:i??!1,onChange:r,caller:p3});return b.jsx(X1,{...a,open:s,onOpenChange:l,children:n})};g3.displayName=p3;var tge="ContextMenuSubTrigger",m3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(Q1,{...o,...r,ref:t})});m3.displayName=tge;var nge="ContextMenuSubContent",v3=g.forwardRef((e,t)=>{const{__scopeContextMenu:n,...r}=e,o=_n(n);return b.jsx(Z1,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});v3.displayName=nge;function _g(e){return t=>t.pointerType!=="mouse"?e(t):void 0}var rge=e3,oge=n3,y3=r3,b3=i3,ige=a3,w3=s3,x3=l3,S3=c3,age=u3,C3=d3,E3=f3,P3=h3,sge=g3,O3=m3,T3=v3;const lge=rge,cge=oge,uge=ige,dge=y3,fge=sge,hge=age,_3=g.forwardRef(({className:e,inset:t,children:n,...r},o)=>b.jsxs(O3,{ref:o,className:q("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,b.jsx(mV,{className:"ml-auto h-4 w-4"})]}));_3.displayName=O3.displayName;const M3=g.forwardRef(({className:e,...t},n)=>b.jsx(T3,{ref:n,className:q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));M3.displayName=T3.displayName;const k3=g.forwardRef(({className:e,...t},n)=>b.jsx(y3,{children:b.jsx(b3,{ref:n,className:q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t})}));k3.displayName=b3.displayName;const A3=g.forwardRef(({className:e,inset:t,...n},r)=>b.jsx(x3,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));A3.displayName=x3.displayName;const D3=g.forwardRef(({className:e,children:t,checked:n,...r},o)=>b.jsxs(S3,{ref:o,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(E3,{children:b.jsx(fV,{className:"h-4 w-4"})})}),t]}));D3.displayName=S3.displayName;const N3=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(C3,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(E3,{children:b.jsx(wV,{className:"h-4 w-4 fill-current"})})}),t]}));N3.displayName=C3.displayName;const $3=g.forwardRef(({className:e,inset:t,...n},r)=>b.jsx(w3,{ref:r,className:q("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...n}));$3.displayName=w3.displayName;const I3=g.forwardRef(({className:e,...t},n)=>b.jsx(P3,{ref:n,className:q("-mx-1 my-1 h-px bg-border",e),...t}));I3.displayName=P3.displayName;const L3=({className:e,...t})=>b.jsx("span",{className:q("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});L3.displayName="ContextMenuShortcut";function pge(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const F3=O.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),vd=()=>{const e=O.useContext(F3);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};pge(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
325
+ [data-state=closed]
326
+ ){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function gge(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function mge(){return ex(/^Mac/)}function vge(){return ex(/^iPhone/)}function R3(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function yge(){return ex(/^iPad/)||mge()&&navigator.maxTouchPoints>1}function B3(){return vge()||yge()}function ex(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const bge=24,wge=typeof window<"u"?O.useLayoutEffect:O.useEffect;function j3(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const tx=typeof document<"u"&&window.visualViewport;function z3(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function q3(e){for(z3(e)&&(e=e.parentElement);e&&!z3(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const xge=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Mg=0,nx;function Sge(e={}){let{isDisabled:t}=e;wge(()=>{if(!t)return Mg++,Mg===1&&B3()&&(nx=Cge()),()=>{Mg--,Mg===0&&(nx==null||nx())}},[t])}function Cge(){let e,t=0,n=d=>{e=q3(d.target),!(e===document.documentElement&&e===document.body)&&(t=d.changedTouches[0].pageY)},r=d=>{if(!e||e===document.documentElement||e===document.body){d.preventDefault();return}let f=d.changedTouches[0].pageY,p=e.scrollTop,h=e.scrollHeight-e.clientHeight;h!==0&&((p<=0&&f>t||p>=h&&f<t)&&d.preventDefault(),t=f)},o=d=>{let f=d.target;rx(f)&&f!==document.activeElement&&(d.preventDefault(),f.style.transform="translateY(-2000px)",f.focus(),requestAnimationFrame(()=>{f.style.transform=""}))},i=d=>{let f=d.target;rx(f)&&(f.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{f.style.transform="",tx&&(tx.height<window.innerHeight?requestAnimationFrame(()=>{V3(f)}):tx.addEventListener("resize",()=>V3(f),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},s=window.pageXOffset,l=window.pageYOffset,c=j3(Ege(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=j3(yd(document,"touchstart",n,{passive:!1,capture:!0}),yd(document,"touchmove",r,{passive:!1,capture:!0}),yd(document,"touchend",o,{passive:!1,capture:!0}),yd(document,"focus",i,!0),yd(window,"scroll",a));return()=>{c(),u(),window.scrollTo(s,l)}}function Ege(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function yd(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function V3(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=q3(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;const a=n.getBoundingClientRect().bottom+bge;i>a&&(n.scrollTop+=o-r)}e=n.parentElement}}function rx(e){return e instanceof HTMLInputElement&&!xge.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Pge(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Oge(...e){return t=>e.forEach(n=>Pge(n,t))}function U3(...e){return g.useCallback(Oge(...e),e)}const H3=new WeakMap;function sn(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,i])=>{if(o.startsWith("--")){e.style.setProperty(o,i);return}r[o]=e.style[o],e.style[o]=i}),!n&&H3.set(e,r)}function Tge(e,t){if(!e||!(e instanceof HTMLElement))return;let n=H3.get(e);n&&(e.style[t]=n[t])}const Xt=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function kg(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[Xt(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[Xt(t)?5:4]):null)}function _ge(e){return 8*(Math.log(e+1)-2)}function ox(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function Mge(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const zt={DURATION:.5,EASE:[.32,.72,0,1]},W3=.4,kge=.25,Age=100,K3=8,es=16,ix=26,ax="vaul-dragging";function G3(e){const t=O.useRef(e);return O.useEffect(()=>{t.current=e}),O.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function Dge({defaultProp:e,onChange:t}){const n=O.useState(e),[r]=n,o=O.useRef(r),i=G3(t);return O.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function Y3({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Dge({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,s=G3(n),l=O.useCallback(c=>{if(i){const d=typeof c=="function"?c(e):c;d!==e&&s(d)}else o(c)},[i,e,o,s]);return[a,l]}function Nge({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:i,onSnapPointChange:a,direction:s="bottom",container:l,snapToSequentialPoint:c}){const[u,d]=Y3({prop:e,defaultProp:n==null?void 0:n[0],onChange:t}),[f,p]=O.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);O.useEffect(()=>{function P(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[]);const h=O.useMemo(()=>u===(n==null?void 0:n[n.length-1])||null,[n,u]),m=O.useMemo(()=>{var P;return(P=n==null?void 0:n.findIndex(_=>_===u))!=null?P:null},[n,u]),v=n&&n.length>0&&(i||i===0)&&!Number.isNaN(i)&&n[i]===u||!n,y=O.useMemo(()=>{const P=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var _;return(_=n==null?void 0:n.map(T=>{const M=typeof T=="string";let A=0;if(M&&(A=parseInt(T,10)),Xt(s)){const N=M?A:f?T*P.height:0;return f?s==="bottom"?P.height-N:-P.height+N:N}const D=M?A:f?T*P.width:0;return f?s==="right"?P.width-D:-P.width+D:D}))!=null?_:[]},[n,f,l]),w=O.useMemo(()=>m!==null?y==null?void 0:y[m]:null,[y,m]),x=O.useCallback(P=>{var _;const T=(_=y==null?void 0:y.findIndex(M=>M===P))!=null?_:null;a(T),sn(r.current,{transition:`transform ${zt.DURATION}s cubic-bezier(${zt.EASE.join(",")})`,transform:Xt(s)?`translate3d(0, ${P}px, 0)`:`translate3d(${P}px, 0, 0)`}),y&&T!==y.length-1&&i!==void 0&&T!==i&&T<i?sn(o.current,{transition:`opacity ${zt.DURATION}s cubic-bezier(${zt.EASE.join(",")})`,opacity:"0"}):sn(o.current,{transition:`opacity ${zt.DURATION}s cubic-bezier(${zt.EASE.join(",")})`,opacity:"1"}),d(n==null?void 0:n[Math.max(T,0)])},[r.current,n,y,i,o,d]);O.useEffect(()=>{if(u||e){var P;const _=(P=n==null?void 0:n.findIndex(T=>T===e||T===u))!=null?P:-1;y&&_!==-1&&typeof y[_]=="number"&&x(y[_])}},[u,e,n,y,x]);function S({draggedDistance:P,closeDrawer:_,velocity:T,dismissible:M}){if(i===void 0)return;const A=s==="bottom"||s==="right"?(w??0)-P:(w??0)+P,D=m===i-1,N=m===0,R=P>0;if(D&&sn(o.current,{transition:`opacity ${zt.DURATION}s cubic-bezier(${zt.EASE.join(",")})`}),!c&&T>2&&!R){M?_():x(y[0]);return}if(!c&&T>2&&R&&y&&n){x(y[n.length-1]);return}const U=y==null?void 0:y.reduce((V,j)=>typeof V!="number"||typeof j!="number"?V:Math.abs(j-A)<Math.abs(V-A)?j:V),L=Xt(s)?window.innerHeight:window.innerWidth;if(T>W3&&Math.abs(P)<L*.4){const V=R?1:-1;if(V>0&&h&&n){x(y[n.length-1]);return}if(N&&V<0&&M&&_(),m===null)return;x(y[m+V]);return}x(U)}function C({draggedDistance:P}){if(w===null)return;const _=s==="bottom"||s==="right"?w-P:w+P;(s==="bottom"||s==="right")&&_<y[y.length-1]||(s==="top"||s==="left")&&_>y[y.length-1]||sn(r.current,{transform:Xt(s)?`translate3d(0, ${_}px, 0)`:`translate3d(${_}px, 0, 0)`})}function E(P,_){if(!n||typeof m!="number"||!y||i===void 0)return null;const T=m===i-1;if(m>=i&&_)return 0;if(T&&!_)return 1;if(!v&&!T)return null;const A=T?m+1:m-1,D=T?y[A]-y[A-1]:y[A+1]-y[A],N=P/Math.abs(D);return T?1-N:N}return{isLastSnapPoint:h,activeSnapPoint:u,shouldFade:v,getPercentageDragged:E,setActiveSnapPoint:d,activeSnapPointIndex:m,onRelease:S,onDrag:C,snapPointsOffset:y}}const $ge=()=>()=>{};function Ige(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=vd(),i=O.useRef(null),a=O.useMemo(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-ix)/window.innerWidth}O.useEffect(()=>{if(t&&n){i.current&&clearTimeout(i.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;Mge(r&&!o?ox(document.body,{background:"black"}):$ge,ox(l,{transformOrigin:Xt(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${zt.DURATION}s`,transitionTimingFunction:`cubic-bezier(${zt.EASE.join(",")})`}));const c=ox(l,{borderRadius:`${K3}px`,overflow:"hidden",...Xt(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{c(),i.current=window.setTimeout(()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")},zt.DURATION*1e3)}}},[t,n,a])}let bd=null;function Lge({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:i}){const[a,s]=O.useState(()=>typeof window<"u"?window.location.href:""),l=O.useRef(0),c=O.useCallback(()=>{if(R3()&&bd===null&&e&&!i){bd={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:d,innerHeight:f}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-d}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const p=f-window.innerHeight;p&&l.current>=f&&(document.body.style.top=`${-(l.current+p)}px`)}),300)}},[e]),u=O.useCallback(()=>{if(R3()&&bd!==null&&!i){const d=-parseInt(document.body.style.top,10),f=-parseInt(document.body.style.left,10);Object.assign(document.body.style,bd),window.requestAnimationFrame(()=>{if(o&&a!==window.location.href){s(window.location.href);return}window.scrollTo(f,d)}),bd=null}},[a]);return O.useEffect(()=>{function d(){l.current=window.scrollY}return d(),window.addEventListener("scroll",d),()=>{window.removeEventListener("scroll",d)}},[]),O.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||u()}},[t,u]),O.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&c(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,a,t,n,c,u]),{restorePositionSetting:u}}function Fge({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:i,shouldScaleBackground:a=!1,setBackgroundColorOnScale:s=!0,closeThreshold:l=kge,scrollLockTimeout:c=Age,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=i&&i.length-1,activeSnapPoint:p,setActiveSnapPoint:h,fixed:m,modal:v=!0,onClose:y,nested:w,noBodyStyles:x=!1,direction:S="bottom",defaultOpen:C=!1,disablePreventScroll:E=!0,snapToSequentialPoint:P=!1,preventScrollRestoration:_=!1,repositionInputs:T=!0,onAnimationEnd:M,container:A,autoFocus:D=!1}){var N,R;const[U=!1,L]=Y3({defaultProp:C,prop:e,onChange:Ne=>{t==null||t(Ne),!Ne&&!w&&Oe(),setTimeout(()=>{M==null||M(Ne)},zt.DURATION*1e3),Ne&&!v&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),Ne||(document.body.style.pointerEvents="auto")}}),[V,j]=O.useState(!1),[H,se]=O.useState(!1),[pe,W]=O.useState(!1),Y=O.useRef(null),F=O.useRef(null),ee=O.useRef(null),fe=O.useRef(null),Z=O.useRef(null),J=O.useRef(!1),Q=O.useRef(null),oe=O.useRef(0),le=O.useRef(!1),z=O.useRef(!C),_e=O.useRef(0),X=O.useRef(null),be=O.useRef(((N=X.current)==null?void 0:N.getBoundingClientRect().height)||0),$e=O.useRef(((R=X.current)==null?void 0:R.getBoundingClientRect().width)||0),Ve=O.useRef(0),ae=O.useCallback(Ne=>{i&&Ne===G.length-1&&(F.current=new Date)},[]),{activeSnapPoint:Ee,activeSnapPointIndex:Xe,setActiveSnapPoint:$,onRelease:B,snapPointsOffset:G,onDrag:he,shouldFade:re,getPercentageDragged:ce}=Nge({snapPoints:i,activeSnapPointProp:p,setActiveSnapPointProp:h,drawerRef:X,fadeFromIndex:f,overlayRef:Y,onSnapPointChange:ae,direction:S,container:A,snapToSequentialPoint:P});Sge({isDisabled:!U||H||!v||pe||!V||!T||!E});const{restorePositionSetting:Oe}=Lge({isOpen:U,modal:v,nested:w??!1,hasBeenOpened:V,preventScrollRestoration:_,noBodyStyles:x});function Ge(){return(window.innerWidth-ix)/window.innerWidth}function Qe(Ne){var Te,Ie;!u&&!i||X.current&&!X.current.contains(Ne.target)||(be.current=((Te=X.current)==null?void 0:Te.getBoundingClientRect().height)||0,$e.current=((Ie=X.current)==null?void 0:Ie.getBoundingClientRect().width)||0,se(!0),ee.current=new Date,B3()&&window.addEventListener("touchend",()=>J.current=!1,{once:!0}),Ne.target.setPointerCapture(Ne.pointerId),oe.current=Xt(S)?Ne.pageY:Ne.pageX)}function et(Ne,Te){var Ie;let we=Ne;const ze=(Ie=window.getSelection())==null?void 0:Ie.toString(),Me=X.current?kg(X.current,S):null,ke=new Date;if(we.tagName==="SELECT"||we.hasAttribute("data-vaul-no-drag")||we.closest("[data-vaul-no-drag]"))return!1;if(S==="right"||S==="left")return!0;if(F.current&&ke.getTime()-F.current.getTime()<500)return!1;if(Me!==null&&(S==="bottom"?Me>0:Me<0))return!0;if(ze&&ze.length>0)return!1;if(Z.current&&ke.getTime()-Z.current.getTime()<c&&Me===0||Te)return Z.current=ke,!1;for(;we;){if(we.scrollHeight>we.clientHeight){if(we.scrollTop!==0)return Z.current=new Date,!1;if(we.getAttribute("role")==="dialog")return!0}we=we.parentNode}return!0}function $t(Ne){if(X.current&&H){const Te=S==="bottom"||S==="right"?1:-1,Ie=(oe.current-(Xt(S)?Ne.pageY:Ne.pageX))*Te,we=Ie>0,ze=i&&!u&&!we;if(ze&&Xe===0)return;const Me=Math.abs(Ie),ke=document.querySelector("[data-vaul-drawer-wrapper]"),ct=S==="bottom"||S==="top"?be.current:$e.current;let ft=Me/ct;const Cn=ce(Me,we);if(Cn!==null&&(ft=Cn),ze&&ft>=1||!J.current&&!et(Ne.target,we))return;if(X.current.classList.add(ax),J.current=!0,sn(X.current,{transition:"none"}),sn(Y.current,{transition:"none"}),i&&he({draggedDistance:Ie}),we&&!i){const mt=_ge(Ie),Hr=Math.min(mt*-1,0)*Te;sn(X.current,{transform:Xt(S)?`translate3d(0, ${Hr}px, 0)`:`translate3d(${Hr}px, 0, 0)`});return}const ut=1-ft;if((re||f&&Xe===f-1)&&(r==null||r(Ne,ft),sn(Y.current,{opacity:`${ut}`,transition:"none"},!0)),ke&&Y.current&&a){const mt=Math.min(Ge()+ft*(1-Ge()),1),Hr=8-ft*8,En=Math.max(0,14-ft*14);sn(ke,{borderRadius:`${Hr}px`,transform:Xt(S)?`scale(${mt}) translate3d(0, ${En}px, 0)`:`scale(${mt}) translate3d(${En}px, 0, 0)`,transition:"none"},!0)}if(!i){const mt=Me*Te;sn(X.current,{transform:Xt(S)?`translate3d(0, ${mt}px, 0)`:`translate3d(${mt}px, 0, 0)`})}}}O.useEffect(()=>{window.requestAnimationFrame(()=>{z.current=!0})},[]),O.useEffect(()=>{var Ne;function Te(){if(!X.current||!T)return;const Ie=document.activeElement;if(rx(Ie)||le.current){var we;const ze=((we=window.visualViewport)==null?void 0:we.height)||0,Me=window.innerHeight;let ke=Me-ze;const ct=X.current.getBoundingClientRect().height||0,ft=ct>Me*.8;Ve.current||(Ve.current=ct);const Cn=X.current.getBoundingClientRect().top;if(Math.abs(_e.current-ke)>60&&(le.current=!le.current),i&&i.length>0&&G&&Xe){const ut=G[Xe]||0;ke+=ut}if(_e.current=ke,ct>ze||le.current){const ut=X.current.getBoundingClientRect().height;let mt=ut;ut>ze&&(mt=ze-(ft?Cn:ix)),m?X.current.style.height=`${ut-Math.max(ke,0)}px`:X.current.style.height=`${Math.max(mt,ze-Cn)}px`}else gge()||(X.current.style.height=`${Ve.current}px`);i&&i.length>0&&!le.current?X.current.style.bottom="0px":X.current.style.bottom=`${Math.max(ke,0)}px`}}return(Ne=window.visualViewport)==null||Ne.addEventListener("resize",Te),()=>{var Ie;return(Ie=window.visualViewport)==null?void 0:Ie.removeEventListener("resize",Te)}},[Xe,i,G]);function rt(Ne){Jt(),y==null||y(),Ne||L(!1),setTimeout(()=>{i&&$(i[0])},zt.DURATION*1e3)}function gt(){if(!X.current)return;const Ne=document.querySelector("[data-vaul-drawer-wrapper]"),Te=kg(X.current,S);sn(X.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${zt.DURATION}s cubic-bezier(${zt.EASE.join(",")})`}),sn(Y.current,{transition:`opacity ${zt.DURATION}s cubic-bezier(${zt.EASE.join(",")})`,opacity:"1"}),a&&Te&&Te>0&&U&&sn(Ne,{borderRadius:`${K3}px`,overflow:"hidden",...Xt(S)?{transform:`scale(${Ge()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Ge()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${zt.DURATION}s`,transitionTimingFunction:`cubic-bezier(${zt.EASE.join(",")})`},!0)}function Jt(){!H||!X.current||(X.current.classList.remove(ax),J.current=!1,se(!1),fe.current=new Date)}function en(Ne){if(!H||!X.current)return;X.current.classList.remove(ax),J.current=!1,se(!1),fe.current=new Date;const Te=kg(X.current,S);if(!Ne||!et(Ne.target,!1)||!Te||Number.isNaN(Te)||ee.current===null)return;const Ie=fe.current.getTime()-ee.current.getTime(),we=oe.current-(Xt(S)?Ne.pageY:Ne.pageX),ze=Math.abs(we)/Ie;if(ze>.05&&(W(!0),setTimeout(()=>{W(!1)},200)),i){B({draggedDistance:we*(S==="bottom"||S==="right"?1:-1),closeDrawer:rt,velocity:ze,dismissible:u}),o==null||o(Ne,!0);return}if(S==="bottom"||S==="right"?we>0:we<0){gt(),o==null||o(Ne,!0);return}if(ze>W3){rt(),o==null||o(Ne,!1);return}var Me;const ke=Math.min((Me=X.current.getBoundingClientRect().height)!=null?Me:0,window.innerHeight);var ct;const ft=Math.min((ct=X.current.getBoundingClientRect().width)!=null?ct:0,window.innerWidth),Cn=S==="left"||S==="right";if(Math.abs(Te)>=(Cn?ft:ke)*l){rt(),o==null||o(Ne,!1);return}o==null||o(Ne,!0),gt()}O.useEffect(()=>(U&&(sn(document.documentElement,{scrollBehavior:"auto"}),F.current=new Date),()=>{Tge(document.documentElement,"scrollBehavior")}),[U]);function Wn(Ne){const Te=Ne?(window.innerWidth-es)/window.innerWidth:1,Ie=Ne?-es:0;Q.current&&window.clearTimeout(Q.current),sn(X.current,{transition:`transform ${zt.DURATION}s cubic-bezier(${zt.EASE.join(",")})`,transform:Xt(S)?`scale(${Te}) translate3d(0, ${Ie}px, 0)`:`scale(${Te}) translate3d(${Ie}px, 0, 0)`}),!Ne&&X.current&&(Q.current=setTimeout(()=>{const we=kg(X.current,S);sn(X.current,{transition:"none",transform:Xt(S)?`translate3d(0, ${we}px, 0)`:`translate3d(${we}px, 0, 0)`})},500))}function vn(Ne,Te){if(Te<0)return;const Ie=(window.innerWidth-es)/window.innerWidth,we=Ie+Te*(1-Ie),ze=-es+Te*es;sn(X.current,{transform:Xt(S)?`scale(${we}) translate3d(0, ${ze}px, 0)`:`scale(${we}) translate3d(${ze}px, 0, 0)`,transition:"none"})}function $n(Ne,Te){const Ie=Xt(S)?window.innerHeight:window.innerWidth,we=Te?(Ie-es)/Ie:1,ze=Te?-es:0;Te&&sn(X.current,{transition:`transform ${zt.DURATION}s cubic-bezier(${zt.EASE.join(",")})`,transform:Xt(S)?`scale(${we}) translate3d(0, ${ze}px, 0)`:`scale(${we}) translate3d(${ze}px, 0, 0)`})}return O.useEffect(()=>{v||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[v]),O.createElement(Gc,{defaultOpen:C,onOpenChange:Ne=>{!u&&!Ne||(Ne?j(!0):rt(!0),L(Ne))},open:U},O.createElement(F3.Provider,{value:{activeSnapPoint:Ee,snapPoints:i,setActiveSnapPoint:$,drawerRef:X,overlayRef:Y,onOpenChange:t,onPress:Qe,onRelease:en,onDrag:$t,dismissible:u,shouldAnimate:z,handleOnly:d,isOpen:U,isDragging:H,shouldFade:re,closeDrawer:rt,onNestedDrag:vn,onNestedOpenChange:Wn,onNestedRelease:$n,keyboardIsOpen:le,modal:v,snapPointsOffset:G,activeSnapPointIndex:Xe,direction:S,shouldScaleBackground:a,setBackgroundColorOnScale:s,noBodyStyles:x,container:A,autoFocus:D}},n))}const X3=O.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:i,isOpen:a,modal:s,shouldAnimate:l}=vd(),c=U3(t,n),u=r&&r.length>0;if(!s)return null;const d=O.useCallback(f=>o(f),[o]);return O.createElement(Ea,{onMouseUp:d,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":a&&u?"true":"false","data-vaul-snap-points-overlay":a&&i?"true":"false","data-vaul-animate":l!=null&&l.current?"true":"false",...e})});X3.displayName="Drawer.Overlay";const Q3=O.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:i,onPress:a,onRelease:s,onDrag:l,keyboardIsOpen:c,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:h,snapPoints:m,container:v,handleOnly:y,shouldAnimate:w,autoFocus:x}=vd(),[S,C]=O.useState(!1),E=U3(o,i),P=O.useRef(null),_=O.useRef(null),T=O.useRef(!1),M=m&&m.length>0;Ige();const A=(N,R,U=0)=>{if(T.current)return!0;const L=Math.abs(N.y),V=Math.abs(N.x),j=V>L,H=["bottom","right"].includes(R)?1:-1;if(R==="left"||R==="right"){if(!(N.x*H<0)&&V>=0&&V<=U)return j}else if(!(N.y*H<0)&&L>=0&&L<=U)return!j;return T.current=!0,!0};O.useEffect(()=>{M&&window.requestAnimationFrame(()=>{C(!0)})},[]);function D(N){P.current=null,T.current=!1,s(N)}return O.createElement(Pa,{"data-vaul-drawer-direction":h,"data-vaul-drawer":"","data-vaul-delayed-snap-points":S?"true":"false","data-vaul-snap-points":p&&M?"true":"false","data-vaul-custom-container":v?"true":"false","data-vaul-animate":w!=null&&w.current?"true":"false",...r,ref:E,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:N=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,N),P.current={x:N.pageX,y:N.pageY},a(N))},onOpenAutoFocus:N=>{n==null||n(N),x||N.preventDefault()},onPointerDownOutside:N=>{if(e==null||e(N),!f||N.defaultPrevented){N.preventDefault();return}c.current&&(c.current=!1)},onFocusOutside:N=>{if(!f){N.preventDefault();return}},onPointerMove:N=>{if(_.current=N,y||(r.onPointerMove==null||r.onPointerMove.call(r,N),!P.current))return;const R=N.pageY-P.current.y,U=N.pageX-P.current.x,L=N.pointerType==="touch"?10:2;A({x:U,y:R},h,L)?l(N):(Math.abs(U)>L||Math.abs(R)>L)&&(P.current=null)},onPointerUp:N=>{r.onPointerUp==null||r.onPointerUp.call(r,N),P.current=null,T.current=!1,s(N)},onPointerOut:N=>{r.onPointerOut==null||r.onPointerOut.call(r,N),D(_.current)},onContextMenu:N=>{r.onContextMenu==null||r.onContextMenu.call(r,N),_.current&&D(_.current)}})});Q3.displayName="Drawer.Content";const Rge=250,Bge=120,jge=O.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:i,snapPoints:a,activeSnapPoint:s,setActiveSnapPoint:l,dismissible:c,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=vd(),h=O.useRef(null),m=O.useRef(!1);function v(){if(m.current){x();return}window.setTimeout(()=>{y()},Bge)}function y(){if(i||e||m.current){x();return}if(x(),!a||a.length===0){c||o();return}if(s===a[a.length-1]&&c){o();return}const C=a.findIndex(P=>P===s);if(C===-1)return;const E=a[C+1];l(E)}function w(){h.current=window.setTimeout(()=>{m.current=!0},Rge)}function x(){h.current&&window.clearTimeout(h.current),m.current=!1}return O.createElement("div",{onClick:v,onPointerCancel:x,onPointerDown:S=>{u&&f(S),w()},onPointerMove:S=>{u&&p(S)},ref:r,"data-vaul-drawer-visible":d?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},O.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});jge.displayName="Drawer.Handle";function zge(e){const t=vd(),{container:n=t.container,...r}=e;return O.createElement(Yc,{container:n,...r})}const ao={Root:Fge,Content:Q3,Overlay:X3,Trigger:wh,Portal:zge,Close:Oa,Title:Ws,Description:Ks},Z3=({shouldScaleBackground:e=!0,...t})=>b.jsx(ao.Root,{shouldScaleBackground:e,...t});Z3.displayName="Drawer";const qge=ao.Trigger,J3=ao.Portal,Vge=ao.Close,sx=g.forwardRef(({className:e,...t},n)=>b.jsx(ao.Overlay,{ref:n,className:q("fixed inset-0 z-50 bg-black/80",e),...t}));sx.displayName=ao.Overlay.displayName;const e4=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(J3,{children:[b.jsx(sx,{}),b.jsxs(ao.Content,{ref:r,className:q("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...n,children:[b.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));e4.displayName="DrawerContent";const t4=({className:e,...t})=>b.jsx("div",{className:q("grid gap-1.5 p-4 text-center sm:text-left",e),...t});t4.displayName="DrawerHeader";const n4=({className:e,...t})=>b.jsx("div",{className:q("mt-auto flex flex-col gap-2 p-4",e),...t});n4.displayName="DrawerFooter";const r4=g.forwardRef(({className:e,...t},n)=>b.jsx(ao.Title,{ref:n,className:q("text-lg font-semibold leading-none tracking-tight",e),...t}));r4.displayName=ao.Title.displayName;const o4=g.forwardRef(({className:e,...t},n)=>b.jsx(ao.Description,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));o4.displayName=ao.Description.displayName;var Ag="DropdownMenu",[Uge]=kt(Ag,[fd]),Mn=fd(),[Hge,i4]=Uge(Ag),a4=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=Mn(t),c=g.useRef(null),[u,d]=Ot({prop:o,defaultProp:i??!1,onChange:a,caller:Ag});return b.jsx(Hge,{scope:t,triggerId:Et(),triggerRef:c,contentId:Et(),open:u,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(f=>!f),[d]),modal:s,children:b.jsx(F1,{...l,open:u,onOpenChange:d,dir:r,modal:s,children:n})})};a4.displayName=Ag;var s4="DropdownMenuTrigger",l4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=i4(s4,n),a=Mn(n);return b.jsx(R1,{asChild:!0,...a,children:b.jsx(ye.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Pn(t,i.triggerRef),onPointerDown:ne(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:ne(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});l4.displayName=s4;var Wge="DropdownMenuPortal",c4=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Mn(t);return b.jsx(B1,{...r,...n})};c4.displayName=Wge;var u4="DropdownMenuContent",d4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=i4(u4,n),i=Mn(n),a=g.useRef(!1);return b.jsx(j1,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:ne(e.onCloseAutoFocus,s=>{var l;a.current||(l=o.triggerRef.current)==null||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:ne(e.onInteractOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});d4.displayName=u4;var Kge="DropdownMenuGroup",f4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(z1,{...o,...r,ref:t})});f4.displayName=Kge;var Gge="DropdownMenuLabel",h4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(q1,{...o,...r,ref:t})});h4.displayName=Gge;var Yge="DropdownMenuItem",p4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(V1,{...o,...r,ref:t})});p4.displayName=Yge;var Xge="DropdownMenuCheckboxItem",g4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(U1,{...o,...r,ref:t})});g4.displayName=Xge;var Qge="DropdownMenuRadioGroup",m4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(H1,{...o,...r,ref:t})});m4.displayName=Qge;var Zge="DropdownMenuRadioItem",v4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(W1,{...o,...r,ref:t})});v4.displayName=Zge;var Jge="DropdownMenuItemIndicator",y4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(K1,{...o,...r,ref:t})});y4.displayName=Jge;var eme="DropdownMenuSeparator",b4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(G1,{...o,...r,ref:t})});b4.displayName=eme;var tme="DropdownMenuArrow",nme=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(Y1,{...o,...r,ref:t})});nme.displayName=tme;var rme=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=Mn(t),[s,l]=Ot({prop:r,defaultProp:i??!1,onChange:o,caller:"DropdownMenuSub"});return b.jsx(X1,{...a,open:s,onOpenChange:l,children:n})},ome="DropdownMenuSubTrigger",w4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(Q1,{...o,...r,ref:t})});w4.displayName=ome;var ime="DropdownMenuSubContent",x4=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mn(n);return b.jsx(Z1,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});x4.displayName=ime;var ame=a4,sme=l4,S4=c4,C4=d4,lme=f4,E4=h4,P4=p4,O4=g4,cme=m4,T4=v4,_4=y4,M4=b4,ume=rme,k4=w4,A4=x4;const dme=ame,fme=sme,hme=lme,pme=S4,gme=ume,mme=cme,D4=g.forwardRef(({className:e,inset:t,children:n,...r},o)=>b.jsxs(k4,{ref:o,className:q("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8 ",e),...r,children:[n,b.jsx(_a,{className:"ml-auto"})]}));D4.displayName=k4.displayName;const N4=g.forwardRef(({className:e,...t},n)=>b.jsx(A4,{ref:n,className:q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));N4.displayName=A4.displayName;const $4=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>b.jsx(S4,{children:b.jsx(C4,{ref:r,sideOffset:t,className:q("bg-white z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));$4.displayName=C4.displayName;const lx=g.forwardRef(({className:e,inset:t,...n},r)=>b.jsx(P4,{ref:r,className:q("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n}));lx.displayName=P4.displayName;const I4=g.forwardRef(({className:e,children:t,checked:n,...r},o)=>b.jsxs(O4,{ref:o,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(_4,{children:b.jsx(Qc,{className:"h-4 w-4"})})}),t]}));I4.displayName=O4.displayName;const L4=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(T4,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(_4,{children:b.jsx(yy,{className:"h-2 w-2 fill-current"})})}),t]}));L4.displayName=T4.displayName;const F4=g.forwardRef(({className:e,inset:t,...n},r)=>b.jsx(E4,{ref:r,className:q("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));F4.displayName=E4.displayName;const R4=g.forwardRef(({className:e,...t},n)=>b.jsx(M4,{ref:n,className:q("-mx-1 my-1 h-px bg-muted",e),...t}));R4.displayName=M4.displayName;const B4=({className:e,...t})=>b.jsx("span",{className:q("ml-auto text-xs tracking-widest opacity-60",e),...t});B4.displayName="DropdownMenuShortcut";var wd=e=>e.type==="checkbox",ts=e=>e instanceof Date,Qn=e=>e==null;const j4=e=>typeof e=="object";var Qt=e=>!Qn(e)&&!Array.isArray(e)&&j4(e)&&!ts(e),z4=e=>Qt(e)&&e.target?wd(e.target)?e.target.checked:e.target.value:e,vme=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,q4=(e,t)=>e.has(vme(t)),yme=e=>{const t=e.constructor&&e.constructor.prototype;return Qt(t)&&t.hasOwnProperty("isPrototypeOf")},cx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ln(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(cx&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Qt(e)&&yme(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=ln(e[o]));return r}var Dg=e=>/^\w*$/.test(e),Vt=e=>e===void 0,ux=e=>Array.isArray(e)?e.filter(Boolean):[],dx=e=>ux(e.replace(/["|']|\]/g,"").split(/\.|\[/)),De=(e,t,n)=>{if(!t||!Qt(e))return n;const r=(Dg(t)?[t]:dx(t)).reduce((o,i)=>Qn(o)?o:o[i],e);return Vt(r)||r===e?Vt(e[t])?n:e[t]:r},gr=e=>typeof e=="boolean",zn=e=>typeof e=="function",Mt=(e,t,n)=>{let r=-1;const o=Dg(t)?[t]:dx(t),i=o.length,a=i-1;for(;++r<i;){const s=o[r];let l=n;if(r!==a){const c=e[s];l=Qt(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const Ng={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},so={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Pi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},fx=O.createContext(null);fx.displayName="HookFormContext";const hx=()=>O.useContext(fx),bme=e=>{const{children:t,...n}=e;return O.createElement(fx.Provider,{value:n},t)};var V4=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==so.all&&(t._proxyFormState[a]=!r||so.all),n&&(n[a]=!0),e[a]}});return o};const px=typeof window<"u"?O.useLayoutEffect:O.useEffect;function wme(e){const t=hx(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,s]=O.useState(n._formState),l=O.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return px(()=>n._subscribe({name:o,formState:l.current,exact:i,callback:c=>{!r&&s({...n._formState,...c})}}),[o,r,i]),O.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),O.useMemo(()=>V4(a,n,l.current,!1),[a,n])}var mr=e=>typeof e=="string",gx=(e,t,n,r,o)=>mr(e)?(r&&t.watch.add(e),De(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),De(n,i))):(r&&(t.watchAll=!0),n),mx=e=>Qn(e)||!j4(e);function lo(e,t,n=new WeakSet){if(mx(e)||mx(t))return Object.is(e,t);if(ts(e)&&ts(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=t[i];if(ts(a)&&ts(s)||Qt(a)&&Qt(s)||Array.isArray(a)&&Array.isArray(s)?!lo(a,s,n):!Object.is(a,s))return!1}}return!0}function xme(e){const t=hx(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a,compute:s}=e||{},l=O.useRef(o),c=O.useRef(s),u=O.useRef(void 0),d=O.useRef(n),f=O.useRef(r);c.current=s;const[p,h]=O.useState(()=>{const S=n._getWatch(r,l.current);return c.current?c.current(S):S}),m=O.useCallback(S=>{const C=gx(r,n._names,S||n._formValues,!1,l.current);return c.current?c.current(C):C},[n._formValues,n._names,r]),v=O.useCallback(S=>{if(!i){const C=gx(r,n._names,S||n._formValues,!1,l.current);if(c.current){const E=c.current(C);lo(E,u.current)||(h(E),u.current=E)}else h(C)}},[n._formValues,n._names,i,r]);px(()=>((d.current!==n||!lo(f.current,r))&&(d.current=n,f.current=r,v()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:S=>{v(S.values)}})),[n,a,r,v]),O.useEffect(()=>n._removeUnmounted());const y=d.current!==n,w=f.current,x=O.useMemo(()=>{if(i)return null;const S=!y&&!lo(w,r);return y||S?m():null},[i,y,r,w,m]);return x!==null?x:p}function Sme(e){const t=hx(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:a,exact:s=!0}=e,l=q4(o._names.array,n),c=O.useMemo(()=>De(o._formValues,n,De(o._defaultValues,n,a)),[o,n,a]),u=xme({control:o,name:n,defaultValue:c,exact:s}),d=wme({control:o,name:n,exact:s}),f=O.useRef(e),p=O.useRef(void 0),h=O.useRef(o.register(n,{...e.rules,value:u,...gr(e.disabled)?{disabled:e.disabled}:{}}));f.current=e;const m=O.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!De(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!De(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!De(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!De(d.validatingFields,n)},error:{enumerable:!0,get:()=>De(d.errors,n)}}),[d,n]),v=O.useCallback(S=>h.current.onChange({target:{value:z4(S),name:n},type:Ng.CHANGE}),[n]),y=O.useCallback(()=>h.current.onBlur({target:{value:De(o._formValues,n),name:n},type:Ng.BLUR}),[n,o._formValues]),w=O.useCallback(S=>{const C=De(o._fields,n);C&&C._f&&S&&(C._f.ref={focus:()=>zn(S.focus)&&S.focus(),select:()=>zn(S.select)&&S.select(),setCustomValidity:E=>zn(S.setCustomValidity)&&S.setCustomValidity(E),reportValidity:()=>zn(S.reportValidity)&&S.reportValidity()})},[o._fields,n]),x=O.useMemo(()=>({name:n,value:u,...gr(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:y,ref:w}),[n,r,d.disabled,v,y,w,u]);return O.useEffect(()=>{const S=o._options.shouldUnregister||i,C=p.current;C&&C!==n&&!l&&o.unregister(C),o.register(n,{...f.current.rules,...gr(f.current.disabled)?{disabled:f.current.disabled}:{}});const E=(P,_)=>{const T=De(o._fields,P);T&&T._f&&(T._f.mount=_)};if(E(n,!0),S){const P=ln(De(o._options.defaultValues,n,f.current.defaultValue));Mt(o._defaultValues,n,P),Vt(De(o._formValues,n))&&Mt(o._formValues,n,P)}return!l&&o.register(n),p.current=n,()=>{(l?S&&!o._state.action:S)?o.unregister(n):E(n,!1)}},[n,o,l,i]),O.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),O.useMemo(()=>({field:x,formState:d,fieldState:m}),[x,d,m])}const Cme=e=>e.render(Sme(e));var Eme=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},xd=e=>Array.isArray(e)?e:[e],U4=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}};function H4(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t[r];if(o&&Qt(o)&&i){const a=H4(o,i);Qt(a)&&(n[r]=a)}else e[r]&&(n[r]=i)}return n}var qn=e=>Qt(e)&&!Object.keys(e).length,vx=e=>e.type==="file",$g=e=>{if(!cx)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},W4=e=>e.type==="select-multiple",yx=e=>e.type==="radio",Pme=e=>yx(e)||wd(e),bx=e=>$g(e)&&e.isConnected;function Ome(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Vt(e)?r++:e[t[r++]];return e}function Tme(e){for(const t in e)if(e.hasOwnProperty(t)&&!Vt(e[t]))return!1;return!0}function Zt(e,t){const n=Array.isArray(t)?t:Dg(t)?[t]:dx(t),r=n.length===1?e:Ome(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(Qt(r)&&qn(r)||Array.isArray(r)&&Tme(r))&&Zt(e,n.slice(0,-1)),e}var _me=e=>{for(const t in e)if(zn(e[t]))return!0;return!1};function K4(e){return Array.isArray(e)||Qt(e)&&!_me(e)}function wx(e,t={}){for(const n in e){const r=e[n];K4(r)?(t[n]=Array.isArray(r)?[]:{},wx(r,t[n])):Vt(r)||(t[n]=!0)}return t}function Ml(e,t,n){n||(n=wx(t));for(const r in e){const o=e[r];if(K4(o))Vt(t)||mx(n[r])?n[r]=wx(o,Array.isArray(o)?[]:{}):Ml(o,Qn(t)?{}:t[r],n[r]);else{const i=t[r];n[r]=!lo(o,i)}}return n}const G4={value:!1,isValid:!1},Y4={value:!0,isValid:!0};var X4=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Vt(e[0].attributes.value)?Vt(e[0].value)||e[0].value===""?Y4:{value:e[0].value,isValid:!0}:Y4:G4}return G4},Q4=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Vt(e)?e:t?e===""?NaN:e&&+e:n&&mr(e)?new Date(e):r?r(e):e;const Z4={isValid:!1,value:null};var J4=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Z4):Z4;function eL(e){const t=e.ref;return vx(t)?t.files:yx(t)?J4(e.refs).value:W4(t)?[...t.selectedOptions].map(({value:n})=>n):wd(t)?X4(e.refs).value:Q4(Vt(t.value)?e.ref.value:t.value,e)}var Mme=(e,t,n,r)=>{const o={};for(const i of e){const a=De(t,i);a&&Mt(o,i,a._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Ig=e=>e instanceof RegExp,Sd=e=>Vt(e)?e:Ig(e)?e.source:Qt(e)?Ig(e.value)?e.value.source:e.value:e,tL=e=>({isOnSubmit:!e||e===so.onSubmit,isOnBlur:e===so.onBlur,isOnChange:e===so.onChange,isOnAll:e===so.all,isOnTouch:e===so.onTouched});const nL="AsyncFunction";var kme=e=>!!e&&!!e.validate&&!!(zn(e.validate)&&e.validate.constructor.name===nL||Qt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===nL)),Ame=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),rL=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Cd=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=De(e,o);if(i){const{_f:a,...s}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],o)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(Cd(s,t))break}else if(Qt(s)&&Cd(s,t))break}}};function oL(e,t,n){const r=De(e,n);if(r||Dg(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),a=De(t,i),s=De(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(s&&s.type)return{name:i,error:s};if(s&&s.root&&s.root.type)return{name:`${i}.root`,error:s.root};o.pop()}return{name:n}}var Dme=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return qn(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||so.all))},Nme=(e,t,n)=>!e||!t||e===t||xd(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),$me=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,Ime=(e,t)=>!ux(De(e,t)).length&&Zt(e,t),Lme=(e,t,n)=>{const r=xd(De(e,n));return Mt(r,"root",t[n]),Mt(e,n,r),e};function iL(e,t,n="validate"){if(mr(e)||Array.isArray(e)&&e.every(mr)||gr(e)&&!e)return{type:n,message:mr(e)?e:"",ref:t}}var kl=e=>Qt(e)&&!Ig(e)?e:{value:e,message:""},aL=async(e,t,n,r,o,i)=>{const{ref:a,refs:s,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:p,validate:h,name:m,valueAsNumber:v,mount:y}=e._f,w=De(n,m);if(!y||t.has(m))return{};const x=s?s[0]:a,S=D=>{o&&x.reportValidity&&(x.setCustomValidity(gr(D)?"":D||""),x.reportValidity())},C={},E=yx(a),P=wd(a),_=E||P,T=(v||vx(a))&&Vt(a.value)&&Vt(w)||$g(a)&&a.value===""||w===""||Array.isArray(w)&&!w.length,M=Eme.bind(null,m,r,C),A=(D,N,R,U=Pi.maxLength,L=Pi.minLength)=>{const V=D?N:R;C[m]={type:D?U:L,message:V,ref:a,...M(D?U:L,V)}};if(i?!Array.isArray(w)||!w.length:l&&(!_&&(T||Qn(w))||gr(w)&&!w||P&&!X4(s).isValid||E&&!J4(s).isValid)){const{value:D,message:N}=mr(l)?{value:!!l,message:l}:kl(l);if(D&&(C[m]={type:Pi.required,message:N,ref:x,...M(Pi.required,N)},!r))return S(N),C}if(!T&&(!Qn(d)||!Qn(f))){let D,N;const R=kl(f),U=kl(d);if(!Qn(w)&&!isNaN(w)){const L=a.valueAsNumber||w&&+w;Qn(R.value)||(D=L>R.value),Qn(U.value)||(N=L<U.value)}else{const L=a.valueAsDate||new Date(w),V=se=>new Date(new Date().toDateString()+" "+se),j=a.type=="time",H=a.type=="week";mr(R.value)&&w&&(D=j?V(w)>V(R.value):H?w>R.value:L>new Date(R.value)),mr(U.value)&&w&&(N=j?V(w)<V(U.value):H?w<U.value:L<new Date(U.value))}if((D||N)&&(A(!!D,R.message,U.message,Pi.max,Pi.min),!r))return S(C[m].message),C}if((c||u)&&!T&&(mr(w)||i&&Array.isArray(w))){const D=kl(c),N=kl(u),R=!Qn(D.value)&&w.length>+D.value,U=!Qn(N.value)&&w.length<+N.value;if((R||U)&&(A(R,D.message,N.message),!r))return S(C[m].message),C}if(p&&!T&&mr(w)){const{value:D,message:N}=kl(p);if(Ig(D)&&!w.match(D)&&(C[m]={type:Pi.pattern,message:N,ref:a,...M(Pi.pattern,N)},!r))return S(N),C}if(h){if(zn(h)){const D=await h(w,n),N=iL(D,x);if(N&&(C[m]={...N,...M(Pi.validate,N.message)},!r))return S(N.message),C}else if(Qt(h)){let D={};for(const N in h){if(!qn(D)&&!r)break;const R=iL(await h[N](w,n),x,N);R&&(D={...R,...M(N,R.message)},S(R.message),r&&(C[m]=D))}if(!qn(D)&&(C[m]={ref:x,...D},!r))return C}}return S(!0),C};const Fme={mode:so.onSubmit,reValidateMode:so.onChange,shouldFocusError:!0};function Rme(e={}){let t={...Fme,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:zn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Qt(t.defaultValues)||Qt(t.values)?ln(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:ln(o),a={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...u};let f={...d};const p={array:U4(),state:U4()},h=t.criteriaMode===so.all,m=$=>B=>{clearTimeout(c),c=setTimeout($,B)},v=async $=>{if(!a.keepIsValid&&!t.disabled&&(d.isValid||f.isValid||$)){let B;t.resolver?(B=qn((await _()).errors),y()):B=await M(r,!0),B!==n.isValid&&p.state.next({isValid:B})}},y=($,B)=>{!t.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&(($||Array.from(s.mount)).forEach(G=>{G&&(B?Mt(n.validatingFields,G,B):Zt(n.validatingFields,G))}),p.state.next({validatingFields:n.validatingFields,isValidating:!qn(n.validatingFields)}))},w=($,B=[],G,he,re=!0,ce=!0)=>{if(he&&G&&!t.disabled){if(a.action=!0,ce&&Array.isArray(De(r,$))){const Oe=G(De(r,$),he.argA,he.argB);re&&Mt(r,$,Oe)}if(ce&&Array.isArray(De(n.errors,$))){const Oe=G(De(n.errors,$),he.argA,he.argB);re&&Mt(n.errors,$,Oe),Ime(n.errors,$)}if((d.touchedFields||f.touchedFields)&&ce&&Array.isArray(De(n.touchedFields,$))){const Oe=G(De(n.touchedFields,$),he.argA,he.argB);re&&Mt(n.touchedFields,$,Oe)}(d.dirtyFields||f.dirtyFields)&&(n.dirtyFields=Ml(o,i)),p.state.next({name:$,isDirty:D($,B),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Mt(i,$,B)},x=($,B)=>{Mt(n.errors,$,B),p.state.next({errors:n.errors})},S=$=>{n.errors=$,p.state.next({errors:n.errors,isValid:!1})},C=($,B,G,he)=>{const re=De(r,$);if(re){const ce=De(i,$,Vt(G)?De(o,$):G);Vt(ce)||he&&he.defaultChecked||B?Mt(i,$,B?ce:eL(re._f)):U($,ce),a.mount&&!a.action&&v()}},E=($,B,G,he,re)=>{let ce=!1,Oe=!1;const Ge={name:$};if(!t.disabled){if(!G||he){(d.isDirty||f.isDirty)&&(Oe=n.isDirty,n.isDirty=Ge.isDirty=D(),ce=Oe!==Ge.isDirty);const Qe=lo(De(o,$),B);Oe=!!De(n.dirtyFields,$),Qe?Zt(n.dirtyFields,$):Mt(n.dirtyFields,$,!0),Ge.dirtyFields=n.dirtyFields,ce=ce||(d.dirtyFields||f.dirtyFields)&&Oe!==!Qe}if(G){const Qe=De(n.touchedFields,$);Qe||(Mt(n.touchedFields,$,G),Ge.touchedFields=n.touchedFields,ce=ce||(d.touchedFields||f.touchedFields)&&Qe!==G)}ce&&re&&p.state.next(Ge)}return ce?Ge:{}},P=($,B,G,he)=>{const re=De(n.errors,$),ce=(d.isValid||f.isValid)&&gr(B)&&n.isValid!==B;if(t.delayError&&G?(l=m(()=>x($,G)),l(t.delayError)):(clearTimeout(c),l=null,G?Mt(n.errors,$,G):Zt(n.errors,$)),(G?!lo(re,G):re)||!qn(he)||ce){const Oe={...he,...ce&&gr(B)?{isValid:B}:{},errors:n.errors,name:$};n={...n,...Oe},p.state.next(Oe)}},_=async $=>(y($,!0),await t.resolver(i,t.context,Mme($||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),T=async $=>{const{errors:B}=await _($);if(y($),$)for(const G of $){const he=De(B,G);he?Mt(n.errors,G,he):Zt(n.errors,G)}else n.errors=B;return B},M=async($,B,G={valid:!0})=>{for(const he in $){const re=$[he];if(re){const{_f:ce,...Oe}=re;if(ce){const Ge=s.array.has(ce.name),Qe=re._f&&kme(re._f);Qe&&d.validatingFields&&y([ce.name],!0);const et=await aL(re,s.disabled,i,h,t.shouldUseNativeValidation&&!B,Ge);if(Qe&&d.validatingFields&&y([ce.name]),et[ce.name]&&(G.valid=!1,B))break;!B&&(De(et,ce.name)?Ge?Lme(n.errors,et,ce.name):Mt(n.errors,ce.name,et[ce.name]):Zt(n.errors,ce.name))}!qn(Oe)&&await M(Oe,B,G)}}return G.valid},A=()=>{for(const $ of s.unMount){const B=De(r,$);B&&(B._f.refs?B._f.refs.every(G=>!bx(G)):!bx(B._f.ref))&&J($)}s.unMount=new Set},D=($,B)=>!t.disabled&&($&&B&&Mt(i,$,B),!lo(pe(),o)),N=($,B,G)=>gx($,s,{...a.mount?i:Vt(B)?o:mr($)?{[$]:B}:B},G,B),R=$=>ux(De(a.mount?i:o,$,t.shouldUnregister?De(o,$,[]):[])),U=($,B,G={})=>{const he=De(r,$);let re=B;if(he){const ce=he._f;ce&&(!ce.disabled&&Mt(i,$,Q4(B,ce)),re=$g(ce.ref)&&Qn(B)?"":B,W4(ce.ref)?[...ce.ref.options].forEach(Oe=>Oe.selected=re.includes(Oe.value)):ce.refs?wd(ce.ref)?ce.refs.forEach(Oe=>{(!Oe.defaultChecked||!Oe.disabled)&&(Array.isArray(re)?Oe.checked=!!re.find(Ge=>Ge===Oe.value):Oe.checked=re===Oe.value||!!re)}):ce.refs.forEach(Oe=>Oe.checked=Oe.value===re):vx(ce.ref)?ce.ref.value="":(ce.ref.value=re,ce.ref.type||p.state.next({name:$,values:ln(i)})))}(G.shouldDirty||G.shouldTouch)&&E($,re,G.shouldTouch,G.shouldDirty,!0),G.shouldValidate&&se($)},L=($,B,G)=>{for(const he in B){if(!B.hasOwnProperty(he))return;const re=B[he],ce=$+"."+he,Oe=De(r,ce);(s.array.has($)||Qt(re)||Oe&&!Oe._f)&&!ts(re)?L(ce,re,G):U(ce,re,G)}},V=($,B,G={})=>{const he=De(r,$),re=s.array.has($),ce=ln(B);Mt(i,$,ce),re?(p.array.next({name:$,values:ln(i)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&G.shouldDirty&&p.state.next({name:$,dirtyFields:Ml(o,i),isDirty:D($,ce)})):he&&!he._f&&!Qn(ce)?L($,ce,G):U($,ce,G),rL($,s)&&p.state.next({...n,name:$}),p.state.next({name:a.mount?$:void 0,values:ln(i)})},j=async $=>{a.mount=!0;const B=$.target;let G=B.name,he=!0;const re=De(r,G),ce=Qe=>{he=Number.isNaN(Qe)||ts(Qe)&&isNaN(Qe.getTime())||lo(Qe,De(i,G,Qe))},Oe=tL(t.mode),Ge=tL(t.reValidateMode);if(re){let Qe,et;const $t=B.type?eL(re._f):z4($),rt=$.type===Ng.BLUR||$.type===Ng.FOCUS_OUT,gt=!Ame(re._f)&&!t.resolver&&!De(n.errors,G)&&!re._f.deps||$me(rt,De(n.touchedFields,G),n.isSubmitted,Ge,Oe),Jt=rL(G,s,rt);Mt(i,G,$t),rt?(!B||!B.readOnly)&&(re._f.onBlur&&re._f.onBlur($),l&&l(0)):re._f.onChange&&re._f.onChange($);const en=E(G,$t,rt),Wn=!qn(en)||Jt;if(!rt&&p.state.next({name:G,type:$.type,values:ln(i)}),gt)return(d.isValid||f.isValid)&&(t.mode==="onBlur"?rt&&v():rt||v()),Wn&&p.state.next({name:G,...Jt?{}:en});if(!rt&&Jt&&p.state.next({...n}),t.resolver){const{errors:vn}=await _([G]);if(y([G]),ce($t),he){const $n=oL(n.errors,r,G),Ne=oL(vn,r,$n.name||G);Qe=Ne.error,G=Ne.name,et=qn(vn)}}else y([G],!0),Qe=(await aL(re,s.disabled,i,h,t.shouldUseNativeValidation))[G],y([G]),ce($t),he&&(Qe?et=!1:(d.isValid||f.isValid)&&(et=await M(r,!0)));he&&(re._f.deps&&(!Array.isArray(re._f.deps)||re._f.deps.length>0)&&se(re._f.deps),P(G,et,Qe,en))}},H=($,B)=>{if(De(n.errors,B)&&$.focus)return $.focus(),1},se=async($,B={})=>{let G,he;const re=xd($);if(t.resolver){const ce=await T(Vt($)?$:re);G=qn(ce),he=$?!re.some(Oe=>De(ce,Oe)):G}else $?(he=(await Promise.all(re.map(async ce=>{const Oe=De(r,ce);return await M(Oe&&Oe._f?{[ce]:Oe}:Oe)}))).every(Boolean),!(!he&&!n.isValid)&&v()):he=G=await M(r);return p.state.next({...!mr($)||(d.isValid||f.isValid)&&G!==n.isValid?{}:{name:$},...t.resolver||!$?{isValid:G}:{},errors:n.errors}),B.shouldFocus&&!he&&Cd(r,H,$?re:s.mount),he},pe=($,B)=>{let G={...a.mount?i:o};return B&&(G=H4(B.dirtyFields?n.dirtyFields:n.touchedFields,G)),Vt($)?G:mr($)?De(G,$):$.map(he=>De(G,he))},W=($,B)=>({invalid:!!De((B||n).errors,$),isDirty:!!De((B||n).dirtyFields,$),error:De((B||n).errors,$),isValidating:!!De(n.validatingFields,$),isTouched:!!De((B||n).touchedFields,$)}),Y=$=>{$&&xd($).forEach(B=>Zt(n.errors,B)),p.state.next({errors:$?n.errors:{}})},F=($,B,G)=>{const he=(De(r,$,{_f:{}})._f||{}).ref,re=De(n.errors,$)||{},{ref:ce,message:Oe,type:Ge,...Qe}=re;Mt(n.errors,$,{...Qe,...B,ref:he}),p.state.next({name:$,errors:n.errors,isValid:!1}),G&&G.shouldFocus&&he&&he.focus&&he.focus()},ee=($,B)=>zn($)?p.state.subscribe({next:G=>"values"in G&&$(N(void 0,B),G)}):N($,B,!0),fe=$=>p.state.subscribe({next:B=>{Nme($.name,B.name,$.exact)&&Dme(B,$.formState||d,ae,$.reRenderRoot)&&$.callback({values:{...i},...n,...B,defaultValues:o})}}).unsubscribe,Z=$=>(a.mount=!0,f={...f,...$.formState},fe({...$,formState:{...u,...$.formState}})),J=($,B={})=>{for(const G of $?xd($):s.mount)s.mount.delete(G),s.array.delete(G),B.keepValue||(Zt(r,G),Zt(i,G)),!B.keepError&&Zt(n.errors,G),!B.keepDirty&&Zt(n.dirtyFields,G),!B.keepTouched&&Zt(n.touchedFields,G),!B.keepIsValidating&&Zt(n.validatingFields,G),!t.shouldUnregister&&!B.keepDefaultValue&&Zt(o,G);p.state.next({values:ln(i)}),p.state.next({...n,...B.keepDirty?{isDirty:D()}:{}}),!B.keepIsValid&&v()},Q=({disabled:$,name:B})=>{(gr($)&&a.mount||$||s.disabled.has(B))&&($?s.disabled.add(B):s.disabled.delete(B))},oe=($,B={})=>{let G=De(r,$);const he=gr(B.disabled)||gr(t.disabled);return Mt(r,$,{...G||{},_f:{...G&&G._f?G._f:{ref:{name:$}},name:$,mount:!0,...B}}),s.mount.add($),G?Q({disabled:gr(B.disabled)?B.disabled:t.disabled,name:$}):C($,!0,B.value),{...he?{disabled:B.disabled||t.disabled}:{},...t.progressive?{required:!!B.required,min:Sd(B.min),max:Sd(B.max),minLength:Sd(B.minLength),maxLength:Sd(B.maxLength),pattern:Sd(B.pattern)}:{},name:$,onChange:j,onBlur:j,ref:re=>{if(re){oe($,B),G=De(r,$);const ce=Vt(re.value)&&re.querySelectorAll&&re.querySelectorAll("input,select,textarea")[0]||re,Oe=Pme(ce),Ge=G._f.refs||[];if(Oe?Ge.find(Qe=>Qe===ce):ce===G._f.ref)return;Mt(r,$,{_f:{...G._f,...Oe?{refs:[...Ge.filter(bx),ce,...Array.isArray(De(o,$))?[{}]:[]],ref:{type:ce.type,name:$}}:{ref:ce}}}),C($,!1,void 0,ce)}else G=De(r,$,{}),G._f&&(G._f.mount=!1),(t.shouldUnregister||B.shouldUnregister)&&!(q4(s.array,$)&&a.action)&&s.unMount.add($)}}},le=()=>t.shouldFocusError&&Cd(r,H,s.mount),z=$=>{gr($)&&(p.state.next({disabled:$}),Cd(r,(B,G)=>{const he=De(r,G);he&&(B.disabled=he._f.disabled||$,Array.isArray(he._f.refs)&&he._f.refs.forEach(re=>{re.disabled=he._f.disabled||$}))},0,!1))},_e=($,B)=>async G=>{let he;G&&(G.preventDefault&&G.preventDefault(),G.persist&&G.persist());let re=ln(i);if(p.state.next({isSubmitting:!0}),t.resolver){const{errors:ce,values:Oe}=await _();y(),n.errors=ce,re=ln(Oe)}else await M(r);if(s.disabled.size)for(const ce of s.disabled)Zt(re,ce);if(Zt(n.errors,"root"),qn(n.errors)){p.state.next({errors:{}});try{await $(re,G)}catch(ce){he=ce}}else B&&await B({...n.errors},G),le(),setTimeout(le);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:qn(n.errors)&&!he,submitCount:n.submitCount+1,errors:n.errors}),he)throw he},X=($,B={})=>{De(r,$)&&(Vt(B.defaultValue)?V($,ln(De(o,$))):(V($,B.defaultValue),Mt(o,$,ln(B.defaultValue))),B.keepTouched||Zt(n.touchedFields,$),B.keepDirty||(Zt(n.dirtyFields,$),n.isDirty=B.defaultValue?D($,ln(De(o,$))):D()),B.keepError||(Zt(n.errors,$),d.isValid&&v()),p.state.next({...n}))},be=($,B={})=>{const G=$?ln($):o,he=ln(G),re=qn($),ce=re?o:he;if(B.keepDefaultValues||(o=G),!B.keepValues){if(B.keepDirtyValues){const Oe=new Set([...s.mount,...Object.keys(Ml(o,i))]);for(const Ge of Array.from(Oe))De(n.dirtyFields,Ge)?Mt(ce,Ge,De(i,Ge)):V(Ge,De(ce,Ge))}else{if(cx&&Vt($))for(const Oe of s.mount){const Ge=De(r,Oe);if(Ge&&Ge._f){const Qe=Array.isArray(Ge._f.refs)?Ge._f.refs[0]:Ge._f.ref;if($g(Qe)){const et=Qe.closest("form");if(et){et.reset();break}}}}if(B.keepFieldsRef)for(const Oe of s.mount)V(Oe,De(ce,Oe));else r={}}i=t.shouldUnregister?B.keepDefaultValues?ln(o):{}:ln(ce),p.array.next({values:{...ce}}),p.state.next({values:{...ce}})}s={mount:B.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!B.keepIsValid||!!B.keepDirtyValues||!t.shouldUnregister&&!qn(ce),a.watch=!!t.shouldUnregister,a.keepIsValid=!!B.keepIsValid,a.action=!1,B.keepErrors||(n.errors={}),p.state.next({submitCount:B.keepSubmitCount?n.submitCount:0,isDirty:re?!1:B.keepDirty?n.isDirty:!!(B.keepDefaultValues&&!lo($,o)),isSubmitted:B.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:re?{}:B.keepDirtyValues?B.keepDefaultValues&&i?Ml(o,i):n.dirtyFields:B.keepDefaultValues&&$?Ml(o,$):B.keepDirty?n.dirtyFields:{},touchedFields:B.keepTouched?n.touchedFields:{},errors:B.keepErrors?n.errors:{},isSubmitSuccessful:B.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},$e=($,B)=>be(zn($)?$(i):$,{...t.resetOptions,...B}),Ve=($,B={})=>{const G=De(r,$),he=G&&G._f;if(he){const re=he.refs?he.refs[0]:he.ref;re.focus&&setTimeout(()=>{re.focus(),B.shouldSelect&&zn(re.select)&&re.select()})}},ae=$=>{n={...n,...$}},Xe={control:{register:oe,unregister:J,getFieldState:W,handleSubmit:_e,setError:F,_subscribe:fe,_runSchema:_,_updateIsValidating:y,_focusError:le,_getWatch:N,_getDirty:D,_setValid:v,_setFieldArray:w,_setDisabledField:Q,_setErrors:S,_getFieldArray:R,_reset:be,_resetDefaultValues:()=>zn(t.defaultValues)&&t.defaultValues().then($=>{$e($,t.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:A,_disableForm:z,_subjects:p,_proxyFormState:d,get _fields(){return r},get _formValues(){return i},get _state(){return a},set _state($){a=$},get _defaultValues(){return o},get _names(){return s},set _names($){s=$},get _formState(){return n},get _options(){return t},set _options($){t={...t,...$}}},subscribe:Z,trigger:se,register:oe,handleSubmit:_e,watch:ee,setValue:V,getValues:pe,reset:$e,resetField:X,clearErrors:Y,unregister:J,setError:F,setFocus:Ve,getFieldState:W};return{...Xe,formControl:Xe}}function Bme(e={}){const t=O.useRef(void 0),n=O.useRef(void 0),[r,o]=O.useState({isDirty:!1,isValidating:!1,isLoading:zn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:zn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!zn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...s}=Rme(e);t.current={...s,formState:r}}const i=t.current.control;return i._options=e,px(()=>{const a=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),i._formState.isReady=!0,a},[i]),O.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),O.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),O.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),O.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),O.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==r.isDirty&&i._subjects.state.next({isDirty:a})}},[i,r.isDirty]),O.useEffect(()=>{var a;e.values&&!lo(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),!((a=i._options.resetOptions)===null||a===void 0)&&a.keepIsValid||i._setValid(),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[i,e.values]),O.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=V4(r,i),t.current}var jme=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],zme=jme.reduce((e,t)=>{const n=Ys(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),qme="Label",sL=g.forwardRef((e,t)=>b.jsx(zme.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));sL.displayName=qme;var lL=sL;const Vme=ei("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xx=g.forwardRef(({className:e,...t},n)=>b.jsx(lL,{ref:n,className:q(Vme(),e),...t}));xx.displayName=lL.displayName;const Ume=O.createContext({}),Hme=bme,cL=g.createContext({}),Wme=({...e})=>b.jsx(cL.Provider,{value:{name:e.name},children:b.jsx(Cme,{...e})}),Al=()=>{const e=g.useContext(cL),t=g.useContext(uL);let{getFieldState:n,formState:r}=g.useContext(Ume);const o=Bme();n||(n=o.getFieldState,r=o.formState);const i=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},uL=g.createContext({}),dL=g.forwardRef(({className:e,...t},n)=>{const r=g.useId();return b.jsx(uL.Provider,{value:{id:r},children:b.jsx("div",{ref:n,className:q("space-y-1",e),...t})})});dL.displayName="FormItem";const fL=g.forwardRef(({className:e,...t},n)=>{const{formItemId:r}=Al();return b.jsx(xx,{ref:n,className:q("text-slate-600 dark:text-slate-400 mb-0",e),htmlFor:r,...t})});fL.displayName="FormLabel";const hL=g.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=Al();return b.jsx(Fi,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})});hL.displayName="FormControl";const pL=g.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=Al();return b.jsx("p",{ref:n,id:r,className:q("text-[0.8rem] text-muted-foreground",e),...t})});pL.displayName="FormDescription";const gL=g.forwardRef(({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=Al(),a=o?String(o==null?void 0:o.message):t;return b.jsx("p",{ref:r,id:i,className:q("text-xs h-2 text-red-600",e),...n,children:a})});gL.displayName="FormMessage";var Sx,Lg="HoverCard",[mL]=kt(Lg,[Io]),Fg=Io(),[Kme,Cx]=mL(Lg),vL=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:i,openDelay:a=700,closeDelay:s=300}=e,l=Fg(t),c=g.useRef(0),u=g.useRef(0),d=g.useRef(!1),f=g.useRef(!1),[p,h]=Ot({prop:r,defaultProp:o??!1,onChange:i,caller:Lg}),m=g.useCallback(()=>{clearTimeout(u.current),c.current=window.setTimeout(()=>h(!0),a)},[a,h]),v=g.useCallback(()=>{clearTimeout(c.current),!d.current&&!f.current&&(u.current=window.setTimeout(()=>h(!1),s))},[s,h]),y=g.useCallback(()=>h(!1),[h]);return g.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(u.current)},[]),b.jsx(Kme,{scope:t,open:p,onOpenChange:h,onOpen:m,onClose:v,onDismiss:y,hasSelectionRef:d,isPointerDownOnContentRef:f,children:b.jsx(Tl,{...l,children:n})})};vL.displayName=Lg;var yL="HoverCardTrigger",bL=g.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Cx(yL,n),i=Fg(n);return b.jsx(_l,{asChild:!0,...i,children:b.jsx(ye.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:ne(e.onPointerEnter,Bg(o.onOpen)),onPointerLeave:ne(e.onPointerLeave,Bg(o.onClose)),onFocus:ne(e.onFocus,o.onOpen),onBlur:ne(e.onBlur,o.onClose),onTouchStart:ne(e.onTouchStart,a=>a.preventDefault())})})});bL.displayName=yL;var Gme="HoverCardPortal",[f_e,Yme]=mL(Gme,{forceMount:void 0}),Rg="HoverCardContent",wL=g.forwardRef((e,t)=>{const n=Yme(Rg,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=Cx(Rg,e.__scopeHoverCard);return b.jsx(Tt,{present:r||i.open,children:b.jsx(Xme,{"data-state":i.open?"open":"closed",...o,onPointerEnter:ne(e.onPointerEnter,Bg(i.onOpen)),onPointerLeave:ne(e.onPointerLeave,Bg(i.onClose)),ref:t})})});wL.displayName=Rg;var Xme=g.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,...s}=e,l=Cx(Rg,n),c=Fg(n),u=g.useRef(null),d=je(t,u),[f,p]=g.useState(!1);return g.useEffect(()=>{if(f){const h=document.body;return Sx=h.style.userSelect||h.style.webkitUserSelect,h.style.userSelect="none",h.style.webkitUserSelect="none",()=>{h.style.userSelect=Sx,h.style.webkitUserSelect=Sx}}},[f]),g.useEffect(()=>{if(u.current){const h=()=>{p(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var v;((v=document.getSelection())==null?void 0:v.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",h),()=>{document.removeEventListener("pointerup",h),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),g.useEffect(()=>{u.current&&Jme(u.current).forEach(m=>m.setAttribute("tabindex","-1"))}),b.jsx(li,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:a,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:ne(i,h=>{h.preventDefault()}),onDismiss:l.onDismiss,children:b.jsx(id,{...c,...s,onPointerDown:ne(s.onPointerDown,h=>{h.currentTarget.contains(h.target)&&p(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:d,style:{...s.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),Qme="HoverCardArrow",Zme=g.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Fg(n);return b.jsx(ad,{...o,...r,ref:t})});Zme.displayName=Qme;function Bg(e){return t=>t.pointerType==="touch"?void 0:e()}function Jme(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var eve=vL,tve=bL,xL=wL;const nve=eve,rve=tve,SL=g.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>b.jsx(xL,{ref:o,align:t,sideOffset:n,className:q("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));SL.displayName=xL.displayName;const ove={dashboard:QX,logo:UX,login:JX,close:Eh,profile:uQ,spinner:ZX,kanban:VX,chevronLeft:Ch,chevronRight:_a,trash:aQ,employee:cQ,post:KX,page:GX,media:YX,settings:oQ,billing:HX,ellipsis:WX,add:nQ,warning:sQ,user:dQ,arrowRight:jX,help:qX,pizza:tQ,sun:iQ,moon:eQ,laptop:XX,gitHub:({...e})=>b.jsx("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fab","data-icon":"github",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 496 512",...e,children:b.jsx("path",{fill:"currentColor",d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3 .3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5 .3-6.2 2.3zm44.2-1.7c-2.9 .7-4.9 2.6-4.6 4.9 .3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3 .7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3 .3 2.9 2.3 3.9 1.6 1 3.6 .7 4.3-.7 .7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3 .7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3 .7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"})}),twitter:lQ,check:Qc},Ex=g.forwardRef(({className:e,type:t,...n},r)=>{const{error:o}=Al();return b.jsx("input",{type:t,className:q(o?"border-red-300":"border-input","flex border h-9 w-full rounded-md bg-transparent px-3 py-1 text-base transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n})});Ex.displayName="Input";var ive=Object.defineProperty,ave=Object.defineProperties,sve=Object.getOwnPropertyDescriptors,jg=Object.getOwnPropertySymbols,CL=Object.prototype.hasOwnProperty,EL=Object.prototype.propertyIsEnumerable,PL=(e,t,n)=>t in e?ive(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lve=(e,t)=>{for(var n in t||(t={}))CL.call(t,n)&&PL(e,n,t[n]);if(jg)for(var n of jg(t))EL.call(t,n)&&PL(e,n,t[n]);return e},cve=(e,t)=>ave(e,sve(t)),uve=(e,t)=>{var n={};for(var r in e)CL.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&jg)for(var r of jg(e))t.indexOf(r)<0&&EL.call(e,r)&&(n[r]=e[r]);return n};function dve(e){let t=setTimeout(e,0),n=setTimeout(e,10),r=setTimeout(e,50);return[t,n,r]}function fve(e){let t=g.useRef();return g.useEffect(()=>{t.current=e}),t.current}var hve=18,OL=40,pve=`${OL}px`,gve=["[data-lastpass-icon-root]","com-1password-button","[data-dashlanecreated]",'[style$="2147483647 !important;"]'].join(",");function mve({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[o,i]=g.useState(!1),[a,s]=g.useState(!1),[l,c]=g.useState(!1),u=g.useMemo(()=>n==="none"?!1:(n==="increase-width"||n==="experimental-no-flickering")&&o&&a,[o,a,n]),d=g.useCallback(()=>{let f=e.current,p=t.current;if(!f||!p||l||n==="none")return;let h=f,m=h.getBoundingClientRect().left+h.offsetWidth,v=h.getBoundingClientRect().top+h.offsetHeight/2,y=m-hve,w=v;document.querySelectorAll(gve).length===0&&document.elementFromPoint(y,w)===f||(i(!0),c(!0))},[e,t,l,n]);return g.useEffect(()=>{let f=e.current;if(!f||n==="none")return;function p(){let m=window.innerWidth-f.getBoundingClientRect().right;s(m>=OL)}p();let h=setInterval(p,1e3);return()=>{clearInterval(h)}},[e,n]),g.useEffect(()=>{let f=r||document.activeElement===t.current;if(n==="none"||!f)return;let p=setTimeout(d,0),h=setTimeout(d,2e3),m=setTimeout(d,5e3),v=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(p),clearTimeout(h),clearTimeout(m),clearTimeout(v)}},[t,r,n,d]),{hasPWMBadge:o,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:pve}}var TL=g.createContext({}),_L=g.forwardRef((e,t)=>{var n=e,{value:r,onChange:o,maxLength:i,textAlign:a="left",pattern:s,placeholder:l,inputMode:c="numeric",onComplete:u,pushPasswordManagerStrategy:d="increase-width",pasteTransformer:f,containerClassName:p,noScriptCSSFallback:h=vve,render:m,children:v}=n,y=uve(n,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]),w,x,S,C,E;let[P,_]=g.useState(typeof y.defaultValue=="string"?y.defaultValue:""),T=r??P,M=fve(T),A=g.useCallback(X=>{o==null||o(X),_(X)},[o]),D=g.useMemo(()=>s?typeof s=="string"?new RegExp(s):s:null,[s]),N=g.useRef(null),R=g.useRef(null),U=g.useRef({value:T,onChange:A,isIOS:typeof window<"u"&&((x=(w=window==null?void 0:window.CSS)==null?void 0:w.supports)==null?void 0:x.call(w,"-webkit-touch-callout","none"))}),L=g.useRef({prev:[(S=N.current)==null?void 0:S.selectionStart,(C=N.current)==null?void 0:C.selectionEnd,(E=N.current)==null?void 0:E.selectionDirection]});g.useImperativeHandle(t,()=>N.current,[]),g.useEffect(()=>{let X=N.current,be=R.current;if(!X||!be)return;U.current.value!==X.value&&U.current.onChange(X.value),L.current.prev=[X.selectionStart,X.selectionEnd,X.selectionDirection];function $e(){if(document.activeElement!==X){W(null),F(null);return}let Ee=X.selectionStart,Xe=X.selectionEnd,$=X.selectionDirection,B=X.maxLength,G=X.value,he=L.current.prev,re=-1,ce=-1,Oe;if(G.length!==0&&Ee!==null&&Xe!==null){let $t=Ee===Xe,rt=Ee===G.length&&G.length<B;if($t&&!rt){let gt=Ee;if(gt===0)re=0,ce=1,Oe="forward";else if(gt===B)re=gt-1,ce=gt,Oe="backward";else if(B>1&&G.length>1){let Jt=0;if(he[0]!==null&&he[1]!==null){Oe=gt<he[1]?"backward":"forward";let en=he[0]===he[1]&&he[0]<B;Oe==="backward"&&!en&&(Jt=-1)}re=Jt+gt,ce=Jt+gt+1}}re!==-1&&ce!==-1&&re!==ce&&N.current.setSelectionRange(re,ce,Oe)}let Ge=re!==-1?re:Ee,Qe=ce!==-1?ce:Xe,et=Oe??$;W(Ge),F(Qe),L.current.prev=[Ge,Qe,et]}if(document.addEventListener("selectionchange",$e,{capture:!0}),$e(),document.activeElement===X&&se(!0),!document.getElementById("input-otp-style")){let Ee=document.createElement("style");if(Ee.id="input-otp-style",document.head.appendChild(Ee),Ee.sheet){let Xe="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";Ed(Ee.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),Ed(Ee.sheet,`[data-input-otp]:autofill { ${Xe} }`),Ed(Ee.sheet,`[data-input-otp]:-webkit-autofill { ${Xe} }`),Ed(Ee.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),Ed(Ee.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let Ve=()=>{be&&be.style.setProperty("--root-height",`${X.clientHeight}px`)};Ve();let ae=new ResizeObserver(Ve);return ae.observe(X),()=>{document.removeEventListener("selectionchange",$e,{capture:!0}),ae.disconnect()}},[]);let[V,j]=g.useState(!1),[H,se]=g.useState(!1),[pe,W]=g.useState(null),[Y,F]=g.useState(null);g.useEffect(()=>{dve(()=>{var X,be,$e,Ve;(X=N.current)==null||X.dispatchEvent(new Event("input"));let ae=(be=N.current)==null?void 0:be.selectionStart,Ee=($e=N.current)==null?void 0:$e.selectionEnd,Xe=(Ve=N.current)==null?void 0:Ve.selectionDirection;ae!==null&&Ee!==null&&(W(ae),F(Ee),L.current.prev=[ae,Ee,Xe])})},[T,H]),g.useEffect(()=>{M!==void 0&&T!==M&&M.length<i&&T.length===i&&(u==null||u(T))},[i,u,M,T]);let ee=mve({containerRef:R,inputRef:N,pushPasswordManagerStrategy:d,isFocused:H}),fe=g.useCallback(X=>{let be=X.currentTarget.value.slice(0,i);if(be.length>0&&D&&!D.test(be)){X.preventDefault();return}typeof M=="string"&&be.length<M.length&&document.dispatchEvent(new Event("selectionchange")),A(be)},[i,A,M,D]),Z=g.useCallback(()=>{var X;if(N.current){let be=Math.min(N.current.value.length,i-1),$e=N.current.value.length;(X=N.current)==null||X.setSelectionRange(be,$e),W(be),F($e)}se(!0)},[i]),J=g.useCallback(X=>{var be,$e;let Ve=N.current;if(!f&&(!U.current.isIOS||!X.clipboardData||!Ve))return;let ae=X.clipboardData.getData("text/plain"),Ee=f?f(ae):ae;X.preventDefault();let Xe=(be=N.current)==null?void 0:be.selectionStart,$=($e=N.current)==null?void 0:$e.selectionEnd,B=(Xe!==$?T.slice(0,Xe)+Ee+T.slice($):T.slice(0,Xe)+Ee+T.slice(Xe)).slice(0,i);if(B.length>0&&D&&!D.test(B))return;Ve.value=B,A(B);let G=Math.min(B.length,i-1),he=B.length;Ve.setSelectionRange(G,he),W(G),F(he)},[i,A,D,T]),Q=g.useMemo(()=>({position:"relative",cursor:y.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[y.disabled]),oe=g.useMemo(()=>({position:"absolute",inset:0,width:ee.willPushPWMBadge?`calc(100% + ${ee.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:ee.willPushPWMBadge?`inset(0 ${ee.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:a,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[ee.PWM_BADGE_SPACE_WIDTH,ee.willPushPWMBadge,a]),le=g.useMemo(()=>g.createElement("input",cve(lve({autoComplete:y.autoComplete||"one-time-code"},y),{"data-input-otp":!0,"data-input-otp-placeholder-shown":T.length===0||void 0,"data-input-otp-mss":pe,"data-input-otp-mse":Y,inputMode:c,pattern:D==null?void 0:D.source,"aria-placeholder":l,style:oe,maxLength:i,value:T,ref:N,onPaste:X=>{var be;J(X),(be=y.onPaste)==null||be.call(y,X)},onChange:fe,onMouseOver:X=>{var be;j(!0),(be=y.onMouseOver)==null||be.call(y,X)},onMouseLeave:X=>{var be;j(!1),(be=y.onMouseLeave)==null||be.call(y,X)},onFocus:X=>{var be;Z(),(be=y.onFocus)==null||be.call(y,X)},onBlur:X=>{var be;se(!1),(be=y.onBlur)==null||be.call(y,X)}})),[fe,Z,J,c,oe,i,Y,pe,y,D==null?void 0:D.source,T]),z=g.useMemo(()=>({slots:Array.from({length:i}).map((X,be)=>{var $e;let Ve=H&&pe!==null&&Y!==null&&(pe===Y&&be===pe||be>=pe&&be<Y),ae=T[be]!==void 0?T[be]:null,Ee=T[0]!==void 0?null:($e=l==null?void 0:l[be])!=null?$e:null;return{char:ae,placeholderChar:Ee,isActive:Ve,hasFakeCaret:Ve&&ae===null}}),isFocused:H,isHovering:!y.disabled&&V}),[H,V,i,Y,pe,y.disabled,T]),_e=g.useMemo(()=>m?m(z):g.createElement(TL.Provider,{value:z},v),[v,z,m]);return g.createElement(g.Fragment,null,h!==null&&g.createElement("noscript",null,g.createElement("style",null,h)),g.createElement("div",{ref:R,"data-input-otp-container":!0,style:Q,className:p},_e,g.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},le)))});_L.displayName="Input";function Ed(e,t){try{e.insertRule(t)}catch{console.error("input-otp could not insert CSS rule:",t)}}var vve=`
327
+ [data-input-otp] {
328
+ --nojs-bg: white !important;
329
+ --nojs-fg: black !important;
330
+
331
+ background-color: var(--nojs-bg) !important;
332
+ color: var(--nojs-fg) !important;
333
+ caret-color: var(--nojs-fg) !important;
334
+ letter-spacing: .25em !important;
335
+ text-align: center !important;
336
+ border: 1px solid var(--nojs-fg) !important;
337
+ border-radius: 4px !important;
338
+ width: 100% !important;
339
+ }
340
+ @media (prefers-color-scheme: dark) {
341
+ [data-input-otp] {
342
+ --nojs-bg: black !important;
343
+ --nojs-fg: white !important;
344
+ }
345
+ }`;const ML=g.forwardRef(({className:e,containerClassName:t,...n},r)=>b.jsx(_L,{ref:r,containerClassName:q("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:q("disabled:cursor-not-allowed",e),...n}));ML.displayName="InputOTP";const kL=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,className:q("flex items-center",e),...t}));kL.displayName="InputOTPGroup";const AL=g.forwardRef(({index:e,className:t,...n},r)=>{const o=g.useContext(TL),{char:i,hasFakeCaret:a,isActive:s}=o.slots[e];return b.jsxs("div",{ref:r,className:q("relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",s&&"z-10 ring-1 ring-ring",t),...n,children:[i,a&&b.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:b.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})});AL.displayName="InputOTPSlot";const DL=g.forwardRef(({...e},t)=>b.jsx("div",{ref:t,role:"separator",...e,children:b.jsx(yV,{})}));DL.displayName="InputOTPSeparator";var Pd="Menubar",[Px,yve,bve]=Qo(Pd),[NL]=kt(Pd,[bve,Lo]),kn=fd(),$L=Lo(),[wve,Ox]=NL(Pd),IL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,value:r,onValueChange:o,defaultValue:i,loop:a=!0,dir:s,...l}=e,c=Wr(s),u=$L(n),[d,f]=Ot({prop:r,onChange:o,defaultProp:i??"",caller:Pd}),[p,h]=g.useState(null);return b.jsx(wve,{scope:n,value:d,onMenuOpen:g.useCallback(m=>{f(m),h(m)},[f]),onMenuClose:g.useCallback(()=>f(""),[f]),onMenuToggle:g.useCallback(m=>{f(v=>v?"":m),h(m)},[f]),dir:c,loop:a,children:b.jsx(Px.Provider,{scope:n,children:b.jsx(Px.Slot,{scope:n,children:b.jsx(ld,{asChild:!0,...u,orientation:"horizontal",loop:a,dir:c,currentTabStopId:p,onCurrentTabStopIdChange:h,children:b.jsx(ye.div,{role:"menubar",...l,ref:t})})})})})});IL.displayName=Pd;var Tx="MenubarMenu",[xve,LL]=NL(Tx),FL=e=>{const{__scopeMenubar:t,value:n,...r}=e,o=Et(),i=n||o||"LEGACY_REACT_AUTO_VALUE",a=Ox(Tx,t),s=kn(t),l=g.useRef(null),c=g.useRef(!1),u=a.value===i;return g.useEffect(()=>{u||(c.current=!1)},[u]),b.jsx(xve,{scope:t,value:i,triggerId:Et(),triggerRef:l,contentId:Et(),wasKeyboardTriggerOpenRef:c,children:b.jsx(F1,{...s,open:u,onOpenChange:d=>{d||a.onMenuClose()},modal:!1,dir:a.dir,...r})})};FL.displayName=Tx;var _x="MenubarTrigger",RL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,disabled:r=!1,...o}=e,i=$L(n),a=kn(n),s=Ox(_x,n),l=LL(_x,n),c=g.useRef(null),u=je(t,c,l.triggerRef),[d,f]=g.useState(!1),p=s.value===l.value;return b.jsx(Px.ItemSlot,{scope:n,value:l.value,disabled:r,children:b.jsx(cd,{asChild:!0,...i,focusable:!r,tabStopId:l.value,children:b.jsx(R1,{asChild:!0,...a,children:b.jsx(ye.button,{type:"button",role:"menuitem",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":p,"aria-controls":p?l.contentId:void 0,"data-highlighted":d?"":void 0,"data-state":p?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:u,onPointerDown:ne(e.onPointerDown,h=>{!r&&h.button===0&&h.ctrlKey===!1&&(s.onMenuOpen(l.value),p||h.preventDefault())}),onPointerEnter:ne(e.onPointerEnter,()=>{var m;!!s.value&&!p&&(s.onMenuOpen(l.value),(m=c.current)==null||m.focus())}),onKeyDown:ne(e.onKeyDown,h=>{r||(["Enter"," "].includes(h.key)&&s.onMenuToggle(l.value),h.key==="ArrowDown"&&s.onMenuOpen(l.value),["Enter"," ","ArrowDown"].includes(h.key)&&(l.wasKeyboardTriggerOpenRef.current=!0,h.preventDefault()))}),onFocus:ne(e.onFocus,()=>f(!0)),onBlur:ne(e.onBlur,()=>f(!1))})})})})});RL.displayName=_x;var Sve="MenubarPortal",BL=e=>{const{__scopeMenubar:t,...n}=e,r=kn(t);return b.jsx(B1,{...r,...n})};BL.displayName=Sve;var Mx="MenubarContent",jL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,align:r="start",...o}=e,i=kn(n),a=Ox(Mx,n),s=LL(Mx,n),l=yve(n),c=g.useRef(!1);return b.jsx(j1,{id:s.contentId,"aria-labelledby":s.triggerId,"data-radix-menubar-content":"",...i,...o,ref:t,align:r,onCloseAutoFocus:ne(e.onCloseAutoFocus,u=>{var f;!!!a.value&&!c.current&&((f=s.triggerRef.current)==null||f.focus()),c.current=!1,u.preventDefault()}),onFocusOutside:ne(e.onFocusOutside,u=>{const d=u.target;l().some(p=>{var h;return(h=p.ref.current)==null?void 0:h.contains(d)})&&u.preventDefault()}),onInteractOutside:ne(e.onInteractOutside,()=>{c.current=!0}),onEntryFocus:u=>{s.wasKeyboardTriggerOpenRef.current||u.preventDefault()},onKeyDown:ne(e.onKeyDown,u=>{if(["ArrowRight","ArrowLeft"].includes(u.key)){const d=u.target,f=d.hasAttribute("data-radix-menubar-subtrigger"),p=d.closest("[data-radix-menubar-content]")!==u.currentTarget,m=(a.dir==="rtl"?"ArrowRight":"ArrowLeft")===u.key;if(!m&&f||p&&m)return;let w=l().filter(C=>!C.disabled).map(C=>C.value);m&&w.reverse();const x=w.indexOf(s.value);w=a.loop?Ive(w,x+1):w.slice(x+1);const[S]=w;S&&a.onMenuOpen(S)}},{checkForDefaultPrevented:!1}),style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});jL.displayName=Mx;var Cve="MenubarGroup",zL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(z1,{...o,...r,ref:t})});zL.displayName=Cve;var Eve="MenubarLabel",qL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(q1,{...o,...r,ref:t})});qL.displayName=Eve;var Pve="MenubarItem",VL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(V1,{...o,...r,ref:t})});VL.displayName=Pve;var Ove="MenubarCheckboxItem",UL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(U1,{...o,...r,ref:t})});UL.displayName=Ove;var Tve="MenubarRadioGroup",HL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(H1,{...o,...r,ref:t})});HL.displayName=Tve;var _ve="MenubarRadioItem",WL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(W1,{...o,...r,ref:t})});WL.displayName=_ve;var Mve="MenubarItemIndicator",KL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(K1,{...o,...r,ref:t})});KL.displayName=Mve;var kve="MenubarSeparator",GL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(G1,{...o,...r,ref:t})});GL.displayName=kve;var Ave="MenubarArrow",Dve=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(Y1,{...o,...r,ref:t})});Dve.displayName=Ave;var YL="MenubarSub",XL=e=>{const{__scopeMenubar:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=kn(t),[s,l]=Ot({prop:r,defaultProp:i??!1,onChange:o,caller:YL});return b.jsx(X1,{...a,open:s,onOpenChange:l,children:n})};XL.displayName=YL;var Nve="MenubarSubTrigger",QL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(Q1,{"data-radix-menubar-subtrigger":"",...o,...r,ref:t})});QL.displayName=Nve;var $ve="MenubarSubContent",ZL=g.forwardRef((e,t)=>{const{__scopeMenubar:n,...r}=e,o=kn(n);return b.jsx(Z1,{...o,"data-radix-menubar-content":"",...r,ref:t,style:{...e.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});ZL.displayName=$ve;function Ive(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var JL=IL,Lve=FL,eF=RL,tF=BL,nF=jL,Fve=zL,rF=qL,oF=VL,iF=UL,Rve=HL,aF=WL,sF=KL,lF=GL,Bve=XL,cF=QL,uF=ZL;const jve=Lve,zve=Fve,qve=tF,Vve=Bve,Uve=Rve,dF=g.forwardRef(({className:e,...t},n)=>b.jsx(JL,{ref:n,className:q("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm",e),...t}));dF.displayName=JL.displayName;const fF=g.forwardRef(({className:e,...t},n)=>b.jsx(eF,{ref:n,className:q("flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e),...t}));fF.displayName=eF.displayName;const hF=g.forwardRef(({className:e,inset:t,children:n,...r},o)=>b.jsxs(cF,{ref:o,className:q("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...r,children:[n,b.jsx(_a,{className:"ml-auto h-4 w-4"})]}));hF.displayName=cF.displayName;const pF=g.forwardRef(({className:e,...t},n)=>b.jsx(uF,{ref:n,className:q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));pF.displayName=uF.displayName;const gF=g.forwardRef(({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...o},i)=>b.jsx(tF,{children:b.jsx(nF,{ref:i,align:t,alignOffset:n,sideOffset:r,className:q("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));gF.displayName=nF.displayName;const mF=g.forwardRef(({className:e,inset:t,...n},r)=>b.jsx(oF,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));mF.displayName=oF.displayName;const vF=g.forwardRef(({className:e,children:t,checked:n,...r},o)=>b.jsxs(iF,{ref:o,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(sF,{children:b.jsx(Qc,{className:"h-4 w-4"})})}),t]}));vF.displayName=iF.displayName;const yF=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(aF,{ref:r,className:q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[b.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(sF,{children:b.jsx(yy,{className:"h-4 w-4 fill-current"})})}),t]}));yF.displayName=aF.displayName;const bF=g.forwardRef(({className:e,inset:t,...n},r)=>b.jsx(rF,{ref:r,className:q("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));bF.displayName=rF.displayName;const wF=g.forwardRef(({className:e,...t},n)=>b.jsx(lF,{ref:n,className:q("-mx-1 my-1 h-px bg-muted",e),...t}));wF.displayName=lF.displayName;const xF=({className:e,...t})=>b.jsx("span",{className:q("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});xF.displayname="MenubarShortcut";const kx=Gc,Hve=wh,Wve=Oa,SF=Yc,Ax=g.forwardRef(({className:e,...t},n)=>b.jsx(Ea,{className:q("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Ax.displayName=Ea.displayName;const Kve=ei("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),zg=g.forwardRef(({side:e="right",className:t,children:n,...r},o)=>b.jsxs(SF,{children:[b.jsx(Ax,{}),b.jsxs(Pa,{ref:o,className:q(Kve({side:e}),t),...r,children:[b.jsxs(Oa,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[b.jsx(Eh,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));zg.displayName=Pa.displayName;const qg=({className:e,...t})=>b.jsx("div",{className:q("flex flex-col space-y-2 text-center sm:text-left",e),...t});qg.displayName="SheetHeader";const Dx=({className:e,...t})=>b.jsx("div",{className:q("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Dx.displayName="SheetFooter";const Vg=g.forwardRef(({className:e,...t},n)=>b.jsx(Ws,{ref:n,className:q("text-lg font-semibold text-foreground",e),...t}));Vg.displayName=Ws.displayName;const Ug=g.forwardRef(({className:e,...t},n)=>b.jsx(Ks,{ref:n,className:q("text-sm text-muted-foreground",e),...t}));Ug.displayName=Ks.displayName;function Od(e,[t,n]){return Math.min(n,Math.max(t,e))}function Gve(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Nx="ScrollArea",[CF]=kt(Nx),[Yve,Dr]=CF(Nx),EF=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:i=600,...a}=e,[s,l]=g.useState(null),[c,u]=g.useState(null),[d,f]=g.useState(null),[p,h]=g.useState(null),[m,v]=g.useState(null),[y,w]=g.useState(0),[x,S]=g.useState(0),[C,E]=g.useState(!1),[P,_]=g.useState(!1),T=je(t,A=>l(A)),M=Wr(o);return b.jsx(Yve,{scope:n,type:r,dir:M,scrollHideDelay:i,scrollArea:s,viewport:c,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:h,scrollbarXEnabled:C,onScrollbarXEnabledChange:E,scrollbarY:m,onScrollbarYChange:v,scrollbarYEnabled:P,onScrollbarYEnabledChange:_,onCornerWidthChange:w,onCornerHeightChange:S,children:b.jsx(ye.div,{dir:M,...a,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});EF.displayName=Nx;var PF="ScrollAreaViewport",OF=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...i}=e,a=Dr(PF,n),s=g.useRef(null),l=je(t,s,a.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),b.jsx(ye.div,{"data-radix-scroll-area-viewport":"",...i,ref:l,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:b.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});OF.displayName=PF;var Fo="ScrollAreaScrollbar",$x=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Dr(Fo,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=e.orientation==="horizontal";return g.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?b.jsx(Xve,{...r,ref:t,forceMount:n}):o.type==="scroll"?b.jsx(Qve,{...r,ref:t,forceMount:n}):o.type==="auto"?b.jsx(TF,{...r,ref:t,forceMount:n}):o.type==="always"?b.jsx(Ix,{...r,ref:t}):null});$x.displayName=Fo;var Xve=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Dr(Fo,e.__scopeScrollArea),[i,a]=g.useState(!1);return g.useEffect(()=>{const s=o.scrollArea;let l=0;if(s){const c=()=>{window.clearTimeout(l),a(!0)},u=()=>{l=window.setTimeout(()=>a(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),b.jsx(Tt,{present:n||i,children:b.jsx(TF,{"data-state":i?"visible":"hidden",...r,ref:t})})}),Qve=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Dr(Fo,e.__scopeScrollArea),i=e.orientation==="horizontal",a=Gg(()=>l("SCROLL_END"),100),[s,l]=Gve("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return g.useEffect(()=>{if(s==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,o.scrollHideDelay,l]),g.useEffect(()=>{const c=o.viewport,u=i?"scrollLeft":"scrollTop";if(c){let d=c[u];const f=()=>{const p=c[u];d!==p&&(l("SCROLL"),a()),d=p};return c.addEventListener("scroll",f),()=>c.removeEventListener("scroll",f)}},[o.viewport,i,l,a]),b.jsx(Tt,{present:n||s!=="hidden",children:b.jsx(Ix,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ne(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:ne(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),TF=g.forwardRef((e,t)=>{const n=Dr(Fo,e.__scopeScrollArea),{forceMount:r,...o}=e,[i,a]=g.useState(!1),s=e.orientation==="horizontal",l=Gg(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;a(s?c:u)}},10);return Dl(n.viewport,l),Dl(n.content,l),b.jsx(Tt,{present:r||i,children:b.jsx(Ix,{"data-state":i?"visible":"hidden",...o,ref:t})})}),Ix=g.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Dr(Fo,e.__scopeScrollArea),i=g.useRef(null),a=g.useRef(0),[s,l]=g.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=DF(s.viewport,s.content),u={...r,sizes:s,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function d(f,p){return rye(f,a.current,s,p)}return n==="horizontal"?b.jsx(Zve,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollLeft,p=NF(f,s,o.dir);i.current.style.transform=`translate3d(${p}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=d(f,o.dir))}}):n==="vertical"?b.jsx(Jve,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollTop,p=NF(f,s);i.current.style.transform=`translate3d(0, ${p}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=d(f))}}):null}),Zve=g.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=Dr(Fo,e.__scopeScrollArea),[a,s]=g.useState(),l=g.useRef(null),c=je(t,l,i.onScrollbarXChange);return g.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),b.jsx(MF,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Kg(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,d)=>{if(i.viewport){const f=i.viewport.scrollLeft+u.deltaX;e.onWheelScroll(f),IF(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Wg(a.paddingLeft),paddingEnd:Wg(a.paddingRight)}})}})}),Jve=g.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,i=Dr(Fo,e.__scopeScrollArea),[a,s]=g.useState(),l=g.useRef(null),c=je(t,l,i.onScrollbarYChange);return g.useEffect(()=>{l.current&&s(getComputedStyle(l.current))},[l]),b.jsx(MF,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Kg(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,d)=>{if(i.viewport){const f=i.viewport.scrollTop+u.deltaY;e.onWheelScroll(f),IF(f,d)&&u.preventDefault()}},onResize:()=>{l.current&&i.viewport&&a&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Wg(a.paddingTop),paddingEnd:Wg(a.paddingBottom)}})}})}),[eye,_F]=CF(Fo),MF=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:d,...f}=e,p=Dr(Fo,n),[h,m]=g.useState(null),v=je(t,T=>m(T)),y=g.useRef(null),w=g.useRef(""),x=p.viewport,S=r.content-r.viewport,C=ht(u),E=ht(l),P=Gg(d,10);function _(T){if(y.current){const M=T.clientX-y.current.left,A=T.clientY-y.current.top;c({x:M,y:A})}}return g.useEffect(()=>{const T=M=>{const A=M.target;(h==null?void 0:h.contains(A))&&C(M,S)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[x,h,S,C]),g.useEffect(E,[r,E]),Dl(h,P),Dl(p.content,P),b.jsx(eye,{scope:n,scrollbar:h,hasThumb:o,onThumbChange:ht(i),onThumbPointerUp:ht(a),onThumbPositionChange:E,onThumbPointerDown:ht(s),children:b.jsx(ye.div,{...f,ref:v,style:{position:"absolute",...f.style},onPointerDown:ne(e.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),y.current=h.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",p.viewport&&(p.viewport.style.scrollBehavior="auto"),_(T))}),onPointerMove:ne(e.onPointerMove,_),onPointerUp:ne(e.onPointerUp,T=>{const M=T.target;M.hasPointerCapture(T.pointerId)&&M.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=w.current,p.viewport&&(p.viewport.style.scrollBehavior=""),y.current=null})})})}),Hg="ScrollAreaThumb",kF=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=_F(Hg,e.__scopeScrollArea);return b.jsx(Tt,{present:n||o.hasThumb,children:b.jsx(tye,{ref:t,...r})})}),tye=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,i=Dr(Hg,n),a=_F(Hg,n),{onThumbPositionChange:s}=a,l=je(t,d=>a.onThumbChange(d)),c=g.useRef(void 0),u=Gg(()=>{c.current&&(c.current(),c.current=void 0)},100);return g.useEffect(()=>{const d=i.viewport;if(d){const f=()=>{if(u(),!c.current){const p=oye(d,s);c.current=p,s()}};return s(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[i.viewport,u,s]),b.jsx(ye.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ne(e.onPointerDownCapture,d=>{const p=d.target.getBoundingClientRect(),h=d.clientX-p.left,m=d.clientY-p.top;a.onThumbPointerDown({x:h,y:m})}),onPointerUp:ne(e.onPointerUp,a.onThumbPointerUp)})});kF.displayName=Hg;var Lx="ScrollAreaCorner",AF=g.forwardRef((e,t)=>{const n=Dr(Lx,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?b.jsx(nye,{...e,ref:t}):null});AF.displayName=Lx;var nye=g.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Dr(Lx,n),[i,a]=g.useState(0),[s,l]=g.useState(0),c=!!(i&&s);return Dl(o.scrollbarX,()=>{var d;const u=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(u),l(u)}),Dl(o.scrollbarY,()=>{var d;const u=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(u),a(u)}),c?b.jsx(ye.div,{...r,ref:t,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Wg(e){return e?parseInt(e,10):0}function DF(e,t){const n=e/t;return isNaN(n)?0:n}function Kg(e){const t=DF(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function rye(e,t,n,r="ltr"){const o=Kg(n),i=o/2,a=t||i,s=o-a,l=n.scrollbar.paddingStart+a,c=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r==="ltr"?[0,u]:[u*-1,0];return $F([l,c],d)(e)}function NF(e,t,n="ltr"){const r=Kg(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,s=i-r,l=n==="ltr"?[0,a]:[a*-1,0],c=Od(e,l);return $F([0,a],[0,s])(c)}function $F(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function IF(e,t){return e>0&&e<t}var oye=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,s=n.top!==i.top;(a||s)&&t(),n=i,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function Gg(e,t){const n=ht(e),r=g.useRef(0);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),g.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Dl(e,t){const n=ht(t);At(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var LF=EF,iye=OF,aye=AF;const Fx=g.forwardRef(({className:e,children:t,scrollTo:n,...r},o)=>{const i=g.useRef(null);return g.useEffect(()=>{i.current&&n&&i.current.scrollTo({left:n,behavior:"smooth"})},[n]),b.jsxs(LF,{type:"always",ref:o,className:q("relative overflow-hidden",e),...r,children:[b.jsx("div",{className:"w-full mt-1"}),b.jsx(iye,{className:"h-full w-full rounded-[inherit] snap-y snap-mandatory ",ref:i,children:t}),b.jsx("div",{className:"w-full mt-1"}),b.jsx(Yg,{orientation:"vertical"}),b.jsx(Yg,{orientation:"horizontal"}),b.jsx(aye,{})]})});Fx.displayName=LF.displayName;const Yg=g.forwardRef(({className:e,orientation:t="vertical",...n},r)=>b.jsx($x,{ref:r,orientation:t,className:q("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:b.jsx(kF,{className:"relative flex-1 rounded-full bg-border bg-stone-300"})}));Yg.displayName=$x.displayName;const sye=({title:e,description:t,isOpen:n,onClose:r,children:o,className:i,allowDismissal:a=!0,userPopup:s=!1})=>{const l=c=>{c||r()};return s?b.jsx(l1,{open:n,onOpenChange:l,children:b.jsxs(hg,{className:i,onPointerDownOutside:a?()=>{}:c=>c.preventDefault(),children:[b.jsxs(u1,{children:[b.jsx(pg,{}),b.jsx(d1,{})]}),b.jsx("div",{children:o})]})}):b.jsx(kx,{open:n,onOpenChange:l,children:b.jsxs(zg,{className:" w-[1000px] sm:w-[700px] max-w-md lg:max-w-3xl "+i,onPointerDownOutside:a?()=>{}:c=>c.preventDefault(),children:[b.jsxs(qg,{children:[b.jsx(Vg,{className:"ml-4",children:e}),b.jsx(Ug,{children:t})]}),b.jsx(Fx,{className:"px-6",children:b.jsx("div",{children:o})}),b.jsx(Dx,{})]})})};var FF=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),lye="VisuallyHidden",Xg=g.forwardRef((e,t)=>b.jsx(ye.span,{...e,ref:t,style:{...FF,...e.style}}));Xg.displayName=lye;var RF=Xg,ns="NavigationMenu",[Rx,BF,cye]=Qo(ns),[Bx,uye,dye]=Qo(ns),[jx]=kt(ns,[cye,dye]),[fye,Nr]=jx(ns),[hye,pye]=jx(ns),jF=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,delayDuration:a=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...u}=e,[d,f]=g.useState(null),p=je(t,T=>f(T)),h=Wr(c),m=g.useRef(0),v=g.useRef(0),y=g.useRef(0),[w,x]=g.useState(!0),[S,C]=Ot({prop:r,onChange:T=>{const M=T!=="",A=s>0;M?(window.clearTimeout(y.current),A&&x(!1)):(window.clearTimeout(y.current),y.current=window.setTimeout(()=>x(!0),s)),o==null||o(T)},defaultProp:i??"",caller:ns}),E=g.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>C(""),150)},[C]),P=g.useCallback(T=>{window.clearTimeout(v.current),C(T)},[C]),_=g.useCallback(T=>{S===T?window.clearTimeout(v.current):m.current=window.setTimeout(()=>{window.clearTimeout(v.current),C(T)},a)},[S,C,a]);return g.useEffect(()=>()=>{window.clearTimeout(m.current),window.clearTimeout(v.current),window.clearTimeout(y.current)},[]),b.jsx(zF,{scope:n,isRootMenu:!0,value:S,dir:h,orientation:l,rootNavigationMenu:d,onTriggerEnter:T=>{window.clearTimeout(m.current),w?_(T):P(T)},onTriggerLeave:()=>{window.clearTimeout(m.current),E()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:E,onItemSelect:T=>{C(M=>M===T?"":T)},onItemDismiss:()=>C(""),children:b.jsx(ye.nav,{"aria-label":"Main","data-orientation":l,dir:h,...u,ref:p})})});jF.displayName=ns;var zx="NavigationMenuSub",gye=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...s}=e,l=Nr(zx,n),[c,u]=Ot({prop:r,onChange:o,defaultProp:i??"",caller:zx});return b.jsx(zF,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:a,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:d=>u(d),onItemSelect:d=>u(d),onItemDismiss:()=>u(""),children:b.jsx(ye.div,{"data-orientation":a,...s,ref:t})})});gye.displayName=zx;var zF=e=>{const{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:i,children:a,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:d,onContentEnter:f,onContentLeave:p}=e,[h,m]=g.useState(null),[v,y]=g.useState(new Map),[w,x]=g.useState(null);return b.jsx(fye,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:wl(s),baseId:Et(),dir:o,orientation:i,viewport:h,onViewportChange:m,indicatorTrack:w,onIndicatorTrackChange:x,onTriggerEnter:ht(u),onTriggerLeave:ht(d),onContentEnter:ht(f),onContentLeave:ht(p),onItemSelect:ht(l),onItemDismiss:ht(c),onViewportContentChange:g.useCallback((S,C)=>{y(E=>(E.set(S,C),new Map(E)))},[]),onViewportContentRemove:g.useCallback(S=>{y(C=>C.has(S)?(C.delete(S),new Map(C)):C)},[]),children:b.jsx(Rx.Provider,{scope:t,children:b.jsx(hye,{scope:t,items:v,children:a})})})},qF="NavigationMenuList",VF=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(qF,n),i=b.jsx(ye.ul,{"data-orientation":o.orientation,...r,ref:t});return b.jsx(ye.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:b.jsx(Rx.Slot,{scope:n,children:o.isRootMenu?b.jsx(e6,{asChild:!0,children:i}):i})})});VF.displayName=qF;var UF="NavigationMenuItem",[mye,HF]=jx(UF),WF=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,...o}=e,i=Et(),a=r||i||"LEGACY_REACT_AUTO_VALUE",s=g.useRef(null),l=g.useRef(null),c=g.useRef(null),u=g.useRef(()=>{}),d=g.useRef(!1),f=g.useCallback((h="start")=>{if(s.current){u.current();const m=Hx(s.current);m.length&&Wx(h==="start"?m:m.reverse())}},[]),p=g.useCallback(()=>{if(s.current){const h=Hx(s.current);h.length&&(u.current=Cye(h))}},[]);return b.jsx(mye,{scope:n,value:a,triggerRef:l,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:d,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:p,onContentFocusOutside:p,children:b.jsx(ye.li,{...o,ref:t})})});WF.displayName=UF;var qx="NavigationMenuTrigger",KF=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,disabled:r,...o}=e,i=Nr(qx,e.__scopeNavigationMenu),a=HF(qx,e.__scopeNavigationMenu),s=g.useRef(null),l=je(s,a.triggerRef,t),c=r6(i.baseId,a.value),u=o6(i.baseId,a.value),d=g.useRef(!1),f=g.useRef(!1),p=a.value===i.value;return b.jsxs(b.Fragment,{children:[b.jsx(Rx.ItemSlot,{scope:n,value:a.value,children:b.jsx(n6,{asChild:!0,children:b.jsx(ye.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":Gx(p),"aria-expanded":p,"aria-controls":u,...o,ref:l,onPointerEnter:ne(e.onPointerEnter,()=>{f.current=!1,a.wasEscapeCloseRef.current=!1}),onPointerMove:ne(e.onPointerMove,Zg(()=>{r||f.current||a.wasEscapeCloseRef.current||d.current||(i.onTriggerEnter(a.value),d.current=!0)})),onPointerLeave:ne(e.onPointerLeave,Zg(()=>{r||(i.onTriggerLeave(),d.current=!1)})),onClick:ne(e.onClick,()=>{i.onItemSelect(a.value),f.current=p}),onKeyDown:ne(e.onKeyDown,h=>{const v={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];p&&h.key===v&&(a.onEntryKeyDown(),h.preventDefault())})})})}),p&&b.jsxs(b.Fragment,{children:[b.jsx(RF,{"aria-hidden":!0,tabIndex:0,ref:a.focusProxyRef,onFocus:h=>{const m=a.contentRef.current,v=h.relatedTarget,y=v===s.current,w=m==null?void 0:m.contains(v);(y||!w)&&a.onFocusProxyEnter(y?"start":"end")}}),i.viewport&&b.jsx("span",{"aria-owns":u})]})]})});KF.displayName=qx;var vye="NavigationMenuLink",GF="navigationMenu.linkSelect",YF=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return b.jsx(n6,{asChild:!0,children:b.jsx(ye.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:ne(e.onClick,a=>{const s=a.target,l=new CustomEvent(GF,{bubbles:!0,cancelable:!0});if(s.addEventListener(GF,c=>o==null?void 0:o(c),{once:!0}),Tc(s,l),!l.defaultPrevented&&!a.metaKey){const c=new CustomEvent(Qg,{bubbles:!0,cancelable:!0});Tc(s,c)}},{checkForDefaultPrevented:!1})})})});YF.displayName=vye;var Vx="NavigationMenuIndicator",XF=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Nr(Vx,e.__scopeNavigationMenu),i=!!o.value;return o.indicatorTrack?xr.createPortal(b.jsx(Tt,{present:n||i,children:b.jsx(yye,{...r,ref:t})}),o.indicatorTrack):null});XF.displayName=Vx;var yye=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(Vx,n),i=BF(n),[a,s]=g.useState(null),[l,c]=g.useState(null),u=o.orientation==="horizontal",d=!!o.value;g.useEffect(()=>{var m;const h=(m=i().find(v=>v.value===o.value))==null?void 0:m.ref.current;h&&s(h)},[i,o.value]);const f=()=>{a&&c({size:u?a.offsetWidth:a.offsetHeight,offset:u?a.offsetLeft:a.offsetTop})};return Kx(a,f),Kx(o.indicatorTrack,f),l?b.jsx(ye.div,{"aria-hidden":!0,"data-state":d?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...u?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`},...r.style}}):null}),Nl="NavigationMenuContent",QF=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Nr(Nl,e.__scopeNavigationMenu),i=HF(Nl,e.__scopeNavigationMenu),a=je(i.contentRef,t),s=i.value===o.value,l={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?b.jsx(bye,{forceMount:n,...l,ref:a}):b.jsx(Tt,{present:n||s,children:b.jsx(ZF,{"data-state":Gx(s),...l,ref:a,onPointerEnter:ne(e.onPointerEnter,o.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Zg(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})});QF.displayName=Nl;var bye=g.forwardRef((e,t)=>{const n=Nr(Nl,e.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:o}=n;return At(()=>{r(e.value,{ref:t,...e})},[e,t,r]),At(()=>()=>o(e.value),[e.value,o]),null}),Qg="navigationMenu.rootContentDismiss",ZF=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:i,wasEscapeCloseRef:a,onRootContentClose:s,onContentFocusOutside:l,...c}=e,u=Nr(Nl,n),d=g.useRef(null),f=je(d,t),p=r6(u.baseId,r),h=o6(u.baseId,r),m=BF(n),v=g.useRef(null),{onItemDismiss:y}=u;g.useEffect(()=>{const x=d.current;if(u.isRootMenu&&x){const S=()=>{var C;y(),s(),x.contains(document.activeElement)&&((C=o.current)==null||C.focus())};return x.addEventListener(Qg,S),()=>x.removeEventListener(Qg,S)}},[u.isRootMenu,e.value,o,y,s]);const w=g.useMemo(()=>{const S=m().map(M=>M.value);u.dir==="rtl"&&S.reverse();const C=S.indexOf(u.value),E=S.indexOf(u.previousValue),P=r===u.value,_=E===S.indexOf(r);if(!P&&!_)return v.current;const T=(()=>{if(C!==E){if(P&&E!==-1)return C>E?"from-end":"from-start";if(_&&C!==-1)return C>E?"to-start":"to-end"}return null})();return v.current=T,T},[u.previousValue,u.value,u.dir,m,r]);return b.jsx(e6,{asChild:!0,children:b.jsx(li,{id:h,"aria-labelledby":p,"data-motion":w,"data-orientation":u.orientation,...c,ref:f,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;const x=new Event(Qg,{bubbles:!0,cancelable:!0});(S=d.current)==null||S.dispatchEvent(x)},onFocusOutside:ne(e.onFocusOutside,x=>{var C;l();const S=x.target;(C=u.rootNavigationMenu)!=null&&C.contains(S)&&x.preventDefault()}),onPointerDownOutside:ne(e.onPointerDownOutside,x=>{var P;const S=x.target,C=m().some(_=>{var T;return(T=_.ref.current)==null?void 0:T.contains(S)}),E=u.isRootMenu&&((P=u.viewport)==null?void 0:P.contains(S));(C||E||!u.isRootMenu)&&x.preventDefault()}),onKeyDown:ne(e.onKeyDown,x=>{var E;const S=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!S){const P=Hx(x.currentTarget),_=document.activeElement,T=P.findIndex(D=>D===_),A=x.shiftKey?P.slice(0,T).reverse():P.slice(T+1,P.length);Wx(A)?x.preventDefault():(E=i.current)==null||E.focus()}}),onEscapeKeyDown:ne(e.onEscapeKeyDown,x=>{a.current=!0})})})}),Ux="NavigationMenuViewport",JF=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=!!Nr(Ux,e.__scopeNavigationMenu).value;return b.jsx(Tt,{present:n||i,children:b.jsx(wye,{...r,ref:t})})});JF.displayName=Ux;var wye=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,children:r,...o}=e,i=Nr(Ux,n),a=je(t,i.onViewportChange),s=pye(Nl,e.__scopeNavigationMenu),[l,c]=g.useState(null),[u,d]=g.useState(null),f=l?(l==null?void 0:l.width)+"px":void 0,p=l?(l==null?void 0:l.height)+"px":void 0,h=!!i.value,m=h?i.value:i.previousValue;return Kx(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),b.jsx(ye.div,{"data-state":Gx(h),"data-orientation":i.orientation,...o,ref:a,style:{pointerEvents:!h&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":p,...o.style},onPointerEnter:ne(e.onPointerEnter,i.onContentEnter),onPointerLeave:ne(e.onPointerLeave,Zg(i.onContentLeave)),children:Array.from(s.items).map(([y,{ref:w,forceMount:x,...S}])=>{const C=m===y;return b.jsx(Tt,{present:x||C,children:b.jsx(ZF,{...S,ref:Pn(w,E=>{C&&E&&d(E)})})},y)})})}),xye="FocusGroup",e6=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=Nr(xye,n);return b.jsx(Bx.Provider,{scope:n,children:b.jsx(Bx.Slot,{scope:n,children:b.jsx(ye.div,{dir:o.dir,...r,ref:t})})})}),t6=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],Sye="FocusGroupItem",n6=g.forwardRef((e,t)=>{const{__scopeNavigationMenu:n,...r}=e,o=uye(n),i=Nr(Sye,n);return b.jsx(Bx.ItemSlot,{scope:n,children:b.jsx(ye.button,{...r,ref:t,onKeyDown:ne(e.onKeyDown,a=>{if(["Home","End",...t6].includes(a.key)){let l=o().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(a.key)&&l.reverse(),t6.includes(a.key)){const d=l.indexOf(a.currentTarget);l=l.slice(d+1)}setTimeout(()=>Wx(l)),a.preventDefault()}})})})});function Hx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Wx(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}function Cye(e){return e.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{e.forEach(t=>{const n=t.dataset.tabindex;t.setAttribute("tabindex",n)})}}function Kx(e,t){const n=ht(t);At(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}function Gx(e){return e?"open":"closed"}function r6(e,t){return`${e}-trigger-${t}`}function o6(e,t){return`${e}-content-${t}`}function Zg(e){return t=>t.pointerType==="mouse"?e(t):void 0}var i6=jF,a6=VF,Eye=WF,s6=KF,Pye=YF,l6=XF,c6=QF,u6=JF;const d6=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(i6,{ref:r,className:q("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...n,children:[t,b.jsx(Yx,{})]}));d6.displayName=i6.displayName;const f6=g.forwardRef(({className:e,...t},n)=>b.jsx(a6,{ref:n,className:q("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));f6.displayName=a6.displayName;const Oye=Eye,h6=ei(" group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-slate-400 hover:cursor-pointer focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:text-white data-[active]:bg-slate-600 data-[state=open]:bg-accent/50"),p6=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(s6,{ref:r,className:q(h6(),"group",e),...n,children:[t," ",b.jsx(vy,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));p6.displayName=s6.displayName;const g6=g.forwardRef(({className:e,...t},n)=>b.jsx(c6,{ref:n,className:q("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...t}));g6.displayName=c6.displayName;const Tye=Pye,Yx=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{className:q("absolute left-0 top-full flex justify-center"),children:b.jsx(u6,{className:q("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:n,...t})}));Yx.displayName=u6.displayName;const m6=g.forwardRef(({className:e,...t},n)=>b.jsx(l6,{ref:n,className:q("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:b.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));m6.displayName=l6.displayName;const v6=({className:e,...t})=>b.jsx("nav",{role:"navigation","aria-label":"pagination",className:q("mx-auto flex w-full justify-center",e),...t});v6.displayName="Pagination";const y6=g.forwardRef(({className:e,...t},n)=>b.jsx("ul",{ref:n,className:q("flex flex-row items-center gap-1",e),...t}));y6.displayName="PaginationContent";const b6=g.forwardRef(({className:e,...t},n)=>b.jsx("li",{ref:n,className:q("",e),...t}));b6.displayName="PaginationItem";const $l=({className:e,isActive:t,size:n="icon",...r})=>b.jsx("a",{"aria-current":t?"page":void 0,className:q(Ta({variant:t?"outline":"ghost",size:n}),e),...r});$l.displayName="PaginationLink";const w6=({className:e,...t})=>b.jsxs($l,{"aria-label":"Go to previous page",size:"default",className:q("gap-1 pl-2.5",e),...t,children:[b.jsx(Ch,{className:"h-4 w-4"}),b.jsx("span",{children:"Previous"})]});w6.displayName="PaginationPrevious";const x6=({className:e,...t})=>b.jsxs($l,{"aria-label":"Go to next page",size:"default",className:q("gap-1 pr-2.5",e),...t,children:[b.jsx("span",{children:"Next"}),b.jsx(_a,{className:"h-4 w-4"})]});x6.displayName="PaginationNext";const S6=({className:e,...t})=>b.jsxs("span",{"aria-hidden":!0,className:q("flex h-9 w-9 items-center justify-center",e),...t,children:[b.jsx(lT,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"More pages"})]});S6.displayName="PaginationEllipsis";const C6=({className:e,...t})=>b.jsxs($l,{"aria-label":"Go to next page",size:"default",className:q("gap-1 pr-2.5",e),...t,children:[b.jsx("span",{className:"sr-only",children:"Next Last"}),b.jsx(_a,{className:"h-4 w-4"})]});C6.displayName="PaginationNextLast";const E6=({className:e,...t})=>b.jsxs($l,{"aria-label":"Go to previous page",size:"default",className:q("gap-1 pl-2.5",e),...t,children:[b.jsx(Ch,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Previous Last"})]});E6.displayName="PaginationPreviousLast";function _ye(e){const t=Mye(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(Aye);if(l){const c=l.props.children,u=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Mye(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=Nye(o),s=Dye(i,o.props);return o.type!==g.Fragment&&(s.ref=r?Pn(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kye=Symbol("radix.slottable");function Aye(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kye}function Dye(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Nye(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Jg="Popover",[P6]=kt(Jg,[Io]),Td=Io(),[$ye,na]=P6(Jg),O6=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Td(t),l=g.useRef(null),[c,u]=g.useState(!1),[d,f]=Ot({prop:r,defaultProp:o??!1,onChange:i,caller:Jg});return b.jsx(Tl,{...s,children:b.jsx($ye,{scope:t,contentId:Et(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:c,onCustomAnchorAdd:g.useCallback(()=>u(!0),[]),onCustomAnchorRemove:g.useCallback(()=>u(!1),[]),modal:a,children:n})})};O6.displayName=Jg;var T6="PopoverAnchor",_6=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=na(T6,n),i=Td(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:s}=o;return g.useEffect(()=>(a(),()=>s()),[a,s]),b.jsx(_l,{...i,...r,ref:t})});_6.displayName=T6;var M6="PopoverTrigger",k6=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=na(M6,n),i=Td(n),a=je(t,o.triggerRef),s=b.jsx(ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":I6(o.open),...r,ref:a,onClick:ne(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?s:b.jsx(_l,{asChild:!0,...i,children:s})});k6.displayName=M6;var Xx="PopoverPortal",[Iye,Lye]=P6(Xx,{forceMount:void 0}),A6=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=na(Xx,t);return b.jsx(Iye,{scope:t,forceMount:n,children:b.jsx(Tt,{present:n||i.open,children:b.jsx(Sa,{asChild:!0,container:o,children:r})})})};A6.displayName=Xx;var Il="PopoverContent",D6=g.forwardRef((e,t)=>{const n=Lye(Il,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=na(Il,e.__scopePopover);return b.jsx(Tt,{present:r||i.open,children:i.modal?b.jsx(Rye,{...o,ref:t}):b.jsx(Bye,{...o,ref:t})})});D6.displayName=Il;var Fye=_ye("PopoverContent.RemoveScroll"),Rye=g.forwardRef((e,t)=>{const n=na(Il,e.__scopePopover),r=g.useRef(null),o=je(t,r),i=g.useRef(!1);return g.useEffect(()=>{const a=r.current;if(a)return vh(a)},[]),b.jsx(Kc,{as:Fye,allowPinchZoom:!0,children:b.jsx(N6,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:ne(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,c=s.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ne(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Bye=g.forwardRef((e,t)=>{const n=na(Il,e.__scopePopover),r=g.useRef(!1),o=g.useRef(!1);return b.jsx(N6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),N6=g.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,f=na(Il,n),p=Td(n);return ch(),b.jsx(Wc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(li,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>f.onOpenChange(!1),children:b.jsx(id,{"data-state":I6(f.open),role:"dialog",id:f.contentId,...p,...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)"}})})})}),$6="PopoverClose",jye=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=na($6,n);return b.jsx(ye.button,{type:"button",...r,ref:t,onClick:ne(e.onClick,()=>o.onOpenChange(!1))})});jye.displayName=$6;var zye="PopoverArrow",qye=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Td(n);return b.jsx(ad,{...o,...r,ref:t})});qye.displayName=zye;function I6(e){return e?"open":"closed"}var Vye=O6,Uye=_6,Hye=k6,Wye=A6,L6=D6;const Kye=Vye,Gye=Hye,Yye=Uye,F6=g.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>b.jsx(Wye,{children:b.jsx(L6,{ref:o,align:t,sideOffset:n,className:q("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));F6.displayName=L6.displayName;function Xye(e,t=[]){let n=[];function r(i,a){const s=g.createContext(a);s.displayName=i+"Context";const l=n.length;n=[...n,a];const c=d=>{var y;const{scope:f,children:p,...h}=d,m=((y=f==null?void 0:f[e])==null?void 0:y[l])||s,v=g.useMemo(()=>h,Object.values(h));return b.jsx(m.Provider,{value:v,children:p})};c.displayName=i+"Provider";function u(d,f){var m;const p=((m=f==null?void 0:f[e])==null?void 0:m[l])||s,h=g.useContext(p);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(a=>g.createContext(a));return function(s){const l=(s==null?void 0:s[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return o.scopeName=e,[r,Qye(o,...t)]}function Qye(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Zye=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],R6=Zye.reduce((e,t)=>{const n=Ys(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Qx="Progress",Zx=100,[Jye]=Xye(Qx),[e0e,t0e]=Jye(Qx),B6=g.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=n0e,...a}=e;(o||o===0)&&!V6(o)&&console.error(r0e(`${o}`,"Progress"));const s=V6(o)?o:Zx;r!==null&&!U6(r,s)&&console.error(o0e(`${r}`,"Progress"));const l=U6(r,s)?r:null,c=em(l)?i(l,s):void 0;return b.jsx(e0e,{scope:n,value:l,max:s,children:b.jsx(R6.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":em(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":q6(l,s),"data-value":l??void 0,"data-max":s,...a,ref:t})})});B6.displayName=Qx;var j6="ProgressIndicator",z6=g.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=t0e(j6,n);return b.jsx(R6.div,{"data-state":q6(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});z6.displayName=j6;function n0e(e,t){return`${Math.round(e/t*100)}%`}function q6(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function em(e){return typeof e=="number"}function V6(e){return em(e)&&!isNaN(e)&&e>0}function U6(e,t){return em(e)&&!isNaN(e)&&e<=t&&e>=0}function r0e(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Zx}\`.`}function o0e(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
346
+ - a positive number
347
+ - less than the value passed to \`max\` (or ${Zx} if no \`max\` prop is set)
348
+ - \`null\` or \`undefined\` if the progress is indeterminate.
349
+
350
+ Defaulting to \`null\`.`}var H6=B6,i0e=z6;const W6=g.forwardRef(({className:e,value:t,...n},r)=>b.jsx(H6,{ref:r,className:q("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),...n,children:b.jsx(i0e,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));W6.displayName=H6.displayName;var _d=(e=>(e.Manage="manage",e.Create="create",e.Read="read",e.Update="update",e.Delete="delete",e))(_d||{}),Md=(e=>(e.Undefined="d.e.f.a.u.l.t",e.Auth="auth",e.Users="users",e.UserGroups="user-groups",e.Clients="clients",e.Shared="shared",e.Reports="reports",e.Preferences="preferences",e.Locations="locations",e.IssueTypes="issue-types",e.Checkpoint="checkpoints",e.LocationShift="location",e.Employees="employees",e.EmployeeAvailabilities="employee-availabilities",e.EmployeeShift="employee-shifts",e.UserDevice="user-devices",e.EmployeeShift_SelfSchedule="employee-shifts/self-schedule",e.Map="map",e.Issue="issues",e))(Md||{}),K6=(e=>(e.Admin="admin",e.Manager="manager",e.Reader="reader",e.Client="client",e))(K6||{});const a0e=[{label:"Admin",value:"admin"},{label:"Manager",value:"manager"},{label:"Viewer",value:"reader"},{label:"Client",value:"client"}],G6={admin:{manage:{can:"all"},create:{can:"all"},read:{can:"all"},update:{can:"all"},delete:{can:"all"}},manager:{manage:{can:["users","preferences","clients","shared","issue-types","checkpoints","user-devices","reports","map","locations"]},create:{can:["users","preferences","clients","shared","issue-types","checkpoints","user-devices","reports","map","locations"]},read:{can:["users","preferences","clients","shared","issue-types","checkpoints","user-devices","reports","map","locations"]},update:{can:["users","preferences","clients","shared","issue-types","checkpoints","user-devices","reports","map","locations"]},delete:{can:["users","preferences","clients","shared","issue-types","checkpoints","user-devices","reports","map","locations"]}},reader:{read:{can:["users","preferences","clients","shared","locations","issue-types","checkpoints","user-devices"]}},client:{manage:{can:["users","preferences","clients","shared"]},create:{can:["users","preferences","clients","shared"]},read:{can:["users","preferences","clients","shared"]},update:{can:["users","preferences","clients","shared"]},delete:{can:["users","preferences","clients","shared"]}}},Y6=(e,t,n)=>{var r;for(const o of e){const i=G6[o];if(n==="d.e.f.a.u.l.t"||!i)return!1;const a=i[t];if(!a)return!1;if((a.can==="all"||a.can.includes(n))&&!((r=a.cannot)!=null&&r.includes(n)))return!0}return!1},tm=()=>{const{user:e}=Zv();return{isAllowed:(r,o)=>{if(o===Md.Auth)return!0;if(!e)return!1;const i=e.role;return Y6([i],r,o)},getResourceByUrl:r=>{const o=Object.entries(Md);for(const[,i]of o)if(r.startsWith("/"+i))return i;return Md.Undefined}}},s0e=({children:e,resource:t,action:n=_d.Read,fallback:r=null})=>{const{isAllowed:o}=tm();return o(n,t)?e:r},nm=e=>O.forwardRef((t,n)=>{const{isAllowed:r}=tm(),{accessedResource:o,accessAction:i=_d.Read,...a}=t;return r(i,o)?b.jsx(e,{ref:n,...a}):null}),l0e=({children:e,resource:t,fallback:n=null})=>{const{isAllowed:r}=tm();return r(_d.Update,t)?e:n},c0e=nm(lx),u0e=nm(Xv),d0e=nm(Xc);var Jx="Radio",[f0e,X6]=kt(Jx),[h0e,p0e]=f0e(Jx),Q6=g.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,form:c,...u}=e,[d,f]=g.useState(null),p=je(t,v=>f(v)),h=g.useRef(!1),m=d?c||!!d.closest("form"):!0;return b.jsxs(h0e,{scope:n,checked:o,disabled:a,children:[b.jsx(ye.button,{type:"button",role:"radio","aria-checked":o,"data-state":t8(o),"data-disabled":a?"":void 0,disabled:a,value:s,...u,ref:p,onClick:ne(e.onClick,v=>{o||l==null||l(),m&&(h.current=v.isPropagationStopped(),h.current||v.stopPropagation())})}),m&&b.jsx(e8,{control:d,bubbles:!h.current,name:r,value:s,checked:o,required:i,disabled:a,form:c,style:{transform:"translateX(-100%)"}})]})});Q6.displayName=Jx;var Z6="RadioIndicator",J6=g.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=p0e(Z6,n);return b.jsx(Tt,{present:r||i.checked,children:b.jsx(ye.span,{"data-state":t8(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});J6.displayName=Z6;var g0e="RadioBubbleInput",e8=g.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const a=g.useRef(null),s=je(a,i),l=wl(n),c=Ju(t);return g.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&p){const h=new Event("click",{bubbles:r});p.call(u,n),u.dispatchEvent(h)}},[l,n,r]),b.jsx(ye.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});e8.displayName=g0e;function t8(e){return e?"checked":"unchecked"}var m0e=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],rm="RadioGroup",[v0e]=kt(rm,[Lo,X6]),n8=Lo(),r8=X6(),[y0e,b0e]=v0e(rm),o8=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:c,loop:u=!0,onValueChange:d,...f}=e,p=n8(n),h=Wr(c),[m,v]=Ot({prop:i,defaultProp:o??null,onChange:d,caller:rm});return b.jsx(y0e,{scope:n,name:r,required:a,disabled:s,value:m,onValueChange:v,children:b.jsx(ld,{asChild:!0,...p,orientation:l,dir:h,loop:u,children:b.jsx(ye.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:h,...f,ref:t})})})});o8.displayName=rm;var i8="RadioGroupItem",a8=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=b0e(i8,n),a=i.disabled||r,s=n8(n),l=r8(n),c=g.useRef(null),u=je(t,c),d=i.value===o.value,f=g.useRef(!1);return g.useEffect(()=>{const p=m=>{m0e.includes(m.key)&&(f.current=!0)},h=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",h),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",h)}},[]),b.jsx(cd,{asChild:!0,...s,focusable:!a,active:d,children:b.jsx(Q6,{disabled:a,required:i.required,checked:d,...l,...o,name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:ne(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:ne(o.onFocus,()=>{var p;f.current&&((p=c.current)==null||p.click())})})})});a8.displayName=i8;var w0e="RadioGroupIndicator",s8=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=r8(n);return b.jsx(J6,{...o,...r,ref:t})});s8.displayName=w0e;var l8=o8,c8=a8,x0e=s8;const u8=g.forwardRef(({className:e,...t},n)=>b.jsx(l8,{className:q("grid gap-2",e),...t,ref:n}));u8.displayName=l8.displayName;const d8=g.forwardRef(({className:e,...t},n)=>b.jsx(c8,{ref:n,className:q("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:b.jsx(x0e,{className:"flex items-center justify-center",children:b.jsx(yy,{className:"h-3.5 w-3.5 fill-primary"})})}));d8.displayName=c8.displayName;function Ct(e,t="Assertion error"){if(!e)throw Error(t)}function Ll({group:e}){const{orientation:t,panels:n}=e;return n.reduce((r,o)=>(r+=t==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,r),0)}function eS(e,t){return t.sort(e==="horizontal"?S0e:C0e)}function S0e(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function C0e(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function f8(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function h8(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function E0e({orientation:e,rects:t,targetRect:n}){const r={x:n.x+n.width/2,y:n.y+n.height/2};let o,i=Number.MAX_VALUE;for(const a of t){const{x:s,y:l}=h8(r,a),c=e==="horizontal"?s:l;c<i&&(i=c,o=a)}return Ct(o,"No rect found"),o}function p8(e){const{element:t,orientation:n,panels:r,separators:o}=e,i=eS(n,Array.from(t.children).filter(f8).map(u=>({element:u}))).map(({element:u})=>u),a=[];let s=!1,l,c=[];for(const u of i)if(u.hasAttribute("data-panel")){const d=r.find(f=>f.element===u);if(d){if(l){const f=l.element.getBoundingClientRect(),p=u.getBoundingClientRect();let h;if(s){const m=n==="horizontal"?new DOMRect(f.right,f.top,0,f.height):new DOMRect(f.left,f.bottom,f.width,0),v=n==="horizontal"?new DOMRect(p.left,p.top,0,p.height):new DOMRect(p.left,p.top,p.width,0);switch(c.length){case 0:{h=[m,v];break}case 1:{const y=c[0],w=E0e({orientation:n,rects:[f,p],targetRect:y.element.getBoundingClientRect()});h=[y,w===f?v:m];break}default:{h=c;break}}}else c.length?h=c:h=[n==="horizontal"?new DOMRect(f.right,p.top,p.left-f.right,p.height):new DOMRect(p.left,f.bottom,p.width,p.top-f.bottom)];for(const m of h)a.push({group:e,groupSize:Ll({group:e}),panels:[l,d],separator:"width"in m?void 0:m,rect:"width"in m?m:m.element.getBoundingClientRect()})}s=!1,l=d,c=[]}}else if(u.hasAttribute("data-separator")){const d=o.find(f=>f.element===u);d?c.push(d):(l=void 0,c=[])}else s=!0;return a}function P0e(e,t){const n=getComputedStyle(e),r=parseFloat(n.fontSize);return t*r}function O0e(e,t){const n=getComputedStyle(e.ownerDocument.body),r=parseFloat(n.fontSize);return t*r}function T0e(e){return e/100*window.innerHeight}function _0e(e){return e/100*window.innerWidth}function M0e(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function om({groupSize:e,panelElement:t,styleProp:n}){let r;const[o,i]=M0e(n);switch(i){case"%":{r=o/100*e;break}case"px":{r=o;break}case"rem":{r=O0e(t,o);break}case"em":{r=P0e(t,o);break}case"vh":{r=T0e(o);break}case"vw":{r=_0e(o);break}}return r}function co(e){return parseFloat(e.toFixed(3))}function g8(e){const{panels:t}=e,n=Ll({group:e});return n===0?t.map(r=>({collapsedSize:0,collapsible:r.panelConstraints.collapsible===!0,defaultSize:void 0,minSize:0,maxSize:100,panelId:r.id})):t.map(r=>{const{element:o,panelConstraints:i}=r;let a=0;if(i.collapsedSize){const u=om({groupSize:n,panelElement:o,styleProp:i.collapsedSize});a=co(u/n*100)}let s;if(i.defaultSize){const u=om({groupSize:n,panelElement:o,styleProp:i.defaultSize});s=co(u/n*100)}let l=0;if(i.minSize){const u=om({groupSize:n,panelElement:o,styleProp:i.minSize});l=co(u/n*100)}let c=100;if(i.maxSize){const u=om({groupSize:n,panelElement:o,styleProp:i.maxSize});c=co(u/n*100)}return{collapsedSize:a,collapsible:i.collapsible===!0,defaultSize:s,minSize:l,maxSize:c,panelId:r.id}})}class k0e{constructor(){Le(this,va,{})}addListener(t,n){const r=K(this,va)[t];return r===void 0?K(this,va)[t]=[n]:r.includes(n)||r.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const r=K(this,va)[t];if(r!==void 0)if(r.length===1)r[0].call(null,n);else{let o=!1,i=null;const a=Array.from(r);for(let s=0;s<a.length;s++){const l=a[s];try{l.call(null,n)}catch(c){i===null&&(o=!0,i=c)}}if(o)throw i}}removeAllListeners(){Pe(this,va,{})}removeListener(t,n){const r=K(this,va)[t];if(r!==void 0){const o=r.indexOf(n);o>=0&&r.splice(o,1)}}}va=new WeakMap;function Vn(e,t,n=0){return Math.abs(co(e)-co(t))<=n}let $r={cursorFlags:0,interactionState:{state:"inactive"},mountedGroups:new Map};const rs=new k0e;function Ro(){return $r}function Ir(e){const t=typeof e=="function"?e($r):e;if($r===t)return $r;const n=$r;return $r={...$r,...t},t.cursorFlags!==void 0&&rs.emit("cursorFlagsChange",$r.cursorFlags),t.interactionState!==void 0&&rs.emit("interactionStateChange",$r.interactionState),t.mountedGroups!==void 0&&($r.mountedGroups.forEach((r,o)=>{r.derivedPanelConstraints.forEach(i=>{if(i.collapsible){const{layout:a}=n.mountedGroups.get(o)??{};if(a){const s=Vn(i.collapsedSize,r.layout[i.panelId]),l=Vn(i.collapsedSize,a[i.panelId]);s&&!l&&(o.inMemoryLastExpandedPanelSizes[i.panelId]=a[i.panelId])}}})}),rs.emit("mountedGroupsChange",$r.mountedGroups)),$r}function A0e(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function kd(e,t){return Vn(e,t)?0:e>t?1:-1}function Fl({panelConstraints:e,size:t}){const{collapsedSize:n=0,collapsible:r,maxSize:o=100,minSize:i=0}=e;if(kd(t,i)<0)if(r){const a=(n+i)/2;kd(t,a)<0?t=n:t=i}else t=i;return t=Math.min(o,t),t=co(t),t}function Ad({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:o,trigger:i}){if(Vn(e,0))return t;const a=Object.values(t),s=Object.values(o),l=[...a],[c,u]=r;Ct(c!=null,"Invalid first pivot index"),Ct(u!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const h=e<0?u:c,m=n[h];Ct(m,`Panel constraints not found for index ${h}`);const{collapsedSize:v=0,collapsible:y,minSize:w=0}=m;if(y){const x=a[h];if(Ct(x!=null,`Previous layout not found for panel index ${h}`),Vn(x,v)){const S=w-x;kd(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}{const h=e<0?c:u,m=n[h];Ct(m,`No panel constraints found for index ${h}`);const{collapsedSize:v=0,collapsible:y,minSize:w=0}=m;if(y){const x=a[h];if(Ct(x!=null,`Previous layout not found for panel index ${h}`),Vn(x,w)){const S=x-v;kd(S,Math.abs(e))>0&&(e=e<0?0-S:S)}}}}{const h=e<0?1:-1;let m=e<0?u:c,v=0;for(;;){const w=a[m];Ct(w!=null,`Previous layout not found for panel index ${m}`);const x=Fl({panelConstraints:n[m],size:100})-w;if(v+=x,m+=h,m<0||m>=n.length)break}const y=Math.min(Math.abs(e),Math.abs(v));e=e<0?0-y:y}{let h=e<0?c:u;for(;h>=0&&h<n.length;){const m=Math.abs(e)-Math.abs(d),v=a[h];Ct(v!=null,`Previous layout not found for panel index ${h}`);const y=v-m,w=Fl({panelConstraints:n[h],size:y});if(!Vn(v,w)&&(d+=v-w,l[h]=w,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?h--:h++}}if(A0e(s,l))return o;{const h=e<0?u:c,m=a[h];Ct(m!=null,`Previous layout not found for panel index ${h}`);const v=m+d,y=Fl({panelConstraints:n[h],size:v});if(l[h]=y,!Vn(y,v)){let w=v-y,x=e<0?u:c;for(;x>=0&&x<n.length;){const S=l[x];Ct(S!=null,`Previous layout not found for panel index ${x}`);const C=S+w,E=Fl({panelConstraints:n[x],size:C});if(Vn(S,E)||(w-=E-S,l[x]=E),Vn(w,0))break;e>0?x--:x++}}}const f=Object.values(l).reduce((h,m)=>m+h,0);if(!Vn(f,100,.1))return o;const p=Object.keys(o);return l.reduce((h,m,v)=>(h[p[v]]=m,h),{})}function im(e){const t=e.parentElement;Ct(t,"Parent group element not found");const{mountedGroups:n}=Ro();for(const[r]of n)if(r.element===t)return r;throw Error("Could not find parent Group for separator element")}function Rl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||kd(e[n],t[n])!==0)return!1;return!0}function os({layout:e,panelConstraints:t}){const n=[...Object.values(e)],r=n.reduce((a,s)=>a+s,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(a=>`${a}%`).join(", ")}`);if(!Vn(r,100)&&n.length>0)for(let a=0;a<t.length;a++){const s=n[a];Ct(s!=null,`No layout data found for index ${a}`);const l=100/r*s;n[a]=l}let o=0;for(let a=0;a<t.length;a++){const s=n[a];Ct(s!=null,`No layout data found for index ${a}`);const l=Fl({panelConstraints:t[a],size:s});s!=l&&(o+=s-l,n[a]=l)}if(!Vn(o,0))for(let a=0;a<t.length;a++){const s=n[a];Ct(s!=null,`No layout data found for index ${a}`);const l=s+o,c=Fl({panelConstraints:t[a],size:l});if(s!==c&&(o-=c-s,n[a]=c,Vn(o,0)))break}const i=Object.keys(e);return n.reduce((a,s,l)=>(a[i[l]]=s,a),{})}function m8({groupId:e}){const t=()=>{const{mountedGroups:n}=Ro();for(const[r,o]of n)if(r.id===e)return{group:r,...o};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:r}=t();return n?{}:r},setLayout(n){const{defaultLayoutDeferred:r,derivedPanelConstraints:o,group:i,layout:a,separatorToPanels:s}=t(),l=os({layout:n,panelConstraints:o});return r?a:(Rl(a,l)||Ir(c=>({mountedGroups:new Map(c.mountedGroups).set(i,{defaultLayoutDeferred:r,derivedPanelConstraints:o,layout:l,separatorToPanels:s})})),l)}}}function v8(e){const{mountedGroups:t}=Ro(),n=t.get(e);return Ct(n,`Mounted Group ${e.id} not found`),n}function is(e,t){const n=im(e),r=v8(n),o=n.separators.find(u=>u.element===e);Ct(o,"Matching separator not found");const i=r.separatorToPanels.get(o);Ct(i,"Matching panels not found");const a=i.map(u=>n.panels.indexOf(u)),s=m8({groupId:n.id}).getLayout(),l=Ad({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:a,prevLayout:s,trigger:"keyboard"}),c=os({layout:l,panelConstraints:r.derivedPanelConstraints});Rl(s,c)||Ir(u=>({mountedGroups:new Map(u.mountedGroups).set(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,layout:c,separatorToPanels:r.separatorToPanels})}))}function y8(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=im(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&is(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&is(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&is(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&is(t,-5);break}case"End":{e.preventDefault(),is(t,100);break}case"Enter":{e.preventDefault();const r=im(t),{derivedPanelConstraints:o,layout:i,separatorToPanels:a}=v8(r),s=r.separators.find(d=>d.element===t);Ct(s,"Matching separator not found");const l=a.get(s);Ct(l,"Matching panels not found");const c=l[0],u=o.find(d=>d.panelId===c.id);if(Ct(u,"Panel metadata not found"),u.collapsible){const d=i[c.id],f=u.collapsedSize===d?r.inMemoryLastExpandedPanelSizes[c.id]??u.minSize:u.collapsedSize;is(t,f-d)}break}case"F6":{e.preventDefault();const r=im(t).separators.map(a=>a.element),o=Array.from(r).findIndex(a=>a===e.currentTarget);Ct(o!==null,"Index not found");const i=e.shiftKey?o>0?o-1:r.length-1:o+1<r.length?o+1:0;r[i].focus();break}case"Home":{e.preventDefault(),is(t,-100);break}}}const D0e=e=>e,tS=()=>{},b8=1,w8=2,x8=4,S8=8,C8={coarse:10,precise:5};function N0e(e,t,n){let r,o={x:1/0,y:1/0};for(const i of t){const a=h8(n,i.rect);switch(e){case"horizontal":{a.x<=o.x&&(r=i,o=a);break}case"vertical":{a.y<=o.y&&(r=i,o=a);break}}}return r?{distance:o,hitRegion:r}:void 0}let am;function $0e(){return am===void 0&&(typeof matchMedia=="function"?am=!!matchMedia("(pointer:coarse)").matches:am=!1),am}function I0e(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function L0e(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:O8(e),b:O8(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;Ct(r,"Stacking order can only be calculated for elements with a common ancestor");const o={a:P8(E8(n.a)),b:P8(E8(n.b))};if(o.a===o.b){const i=r.childNodes,a={a:n.a.at(-1),b:n.b.at(-1)};let s=i.length;for(;s--;){const l=i[s];if(l===a.a)return 1;if(l===a.b)return-1}}return Math.sign(o.a-o.b)}const F0e=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function R0e(e){const t=getComputedStyle(T8(e)??e).display;return t==="flex"||t==="inline-flex"}function B0e(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||R0e(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||F0e.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function E8(e){let t=e.length;for(;t--;){const n=e[t];if(Ct(n,"Missing node"),B0e(n))return n}return null}function P8(e){return e&&Number(getComputedStyle(e).zIndex)||0}function O8(e){const t=[];for(;e;)t.push(e),e=T8(e);return t}function T8(e){const{parentNode:t}=e;return I0e(t)?t.host:t}function j0e(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function z0e({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!f8(n)||n.contains(e)||e.contains(n))return!0;if(L0e(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(j0e(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function _8(e,t){const n=[];return t.forEach((r,o)=>{if(o.disabled)return;const i=$0e()?C8.coarse:C8.precise,a=p8(o),s=N0e(o.orientation,a,{x:e.clientX,y:e.clientY});s&&s.distance.x<=i&&s.distance.y<=i&&z0e({groupElement:o.element,hitRegion:s.hitRegion.rect,pointerEventTarget:e.target})&&n.push(s.hitRegion)}),n}function M8(e){if(e.defaultPrevented)return;const{mountedGroups:t}=Ro(),n=_8(e,t),r=new Set,o=new Set,i=new Set,a=new Map;let s=!1;n.forEach(l=>{r.add(l.group),l.panels.forEach(u=>{o.add(u)}),l.separator&&(i.add(l.separator),s||(s=!0,l.separator.element.focus()));const c=t.get(l.group);c&&a.set(l.group,c.layout)}),Ir({interactionState:{hitRegions:n,initialLayoutMap:a,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}}),n.length&&e.preventDefault()}function q0e({cursorFlags:e,groups:t,state:n}){let r=0,o=0;switch(n){case"active":case"hover":t.forEach(i=>{if(!i.disableCursor)switch(i.orientation){case"horizontal":{r++;break}case"vertical":{o++;break}}})}if(r===0&&o===0)return null;switch(n){case"active":{const i=(e&b8)!==0,a=(e&w8)!==0,s=(e&x8)!==0,l=(e&S8)!==0;if(e){if(i)return s?"se-resize":l?"ne-resize":"e-resize";if(a)return s?"sw-resize":l?"nw-resize":"w-resize";if(s)return"s-resize";if(l)return"n-resize"}break}}return r>0&&o>0?"move":r>0?"ew-resize":"ns-resize"}const k8=new WeakMap;function nS(e){if(e.defaultView===null)return;let{prevStyle:t,styleSheet:n}=k8.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets=[n]);const{cursorFlags:r,interactionState:o}=Ro();switch(o.state){case"active":case"hover":{const i=q0e({cursorFlags:r,groups:o.hitRegions.map(s=>s.group),state:o.state}),a=`*{cursor: ${i} !important; ${o.state==="active"?"touch-action: none;":""} }`;if(t===a)return;t=a,i?n.cssRules.length===0?n.insertRule(a):n.replaceSync(a):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}k8.set(e,{prevStyle:t,styleSheet:n})}function A8({document:e,event:t,hitRegions:n,initialLayoutMap:r,mountedGroups:o,pointerDownAtPoint:i}){let a=0;const s=new Map(o);n.forEach(l=>{const{group:c,groupSize:u}=l,{disableCursor:d,orientation:f,panels:p}=c;let h=0;i?f==="horizontal"?h=(t.clientX-i.x)/u*100:h=(t.clientY-i.y)/u*100:f==="horizontal"?h=t.clientX<0?-100:100:h=t.clientY<0?-100:100;const m=r.get(c),{defaultLayoutDeferred:v,derivedPanelConstraints:y,layout:w,separatorToPanels:x}=o.get(c)??{defaultLayoutDeferred:!1};if(y&&m&&w&&x){const S=Ad({delta:h,initialLayout:m,panelConstraints:y,pivotIndices:l.panels.map(C=>p.indexOf(C)),prevLayout:w,trigger:"mouse-or-touch"});if(Rl(S,w)){if(h!==0&&!d)switch(f){case"horizontal":{a|=h<0?b8:w8;break}case"vertical":{a|=h<0?x8:S8;break}}}else{s.set(l.group,{defaultLayoutDeferred:v,derivedPanelConstraints:y,layout:S,separatorToPanels:x});const C=l.group.panels.map(({id:E})=>E).join(",");l.group.inMemoryLayouts[C]=S}}}),Ir({cursorFlags:a,mountedGroups:s}),nS(e)}function D8(e){const{interactionState:t,mountedGroups:n}=Ro();switch(t.state){case"active":A8({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n})}}function N8(e){if(e.defaultPrevented)return;const{interactionState:t,mountedGroups:n}=Ro();switch(t.state){case"active":{if(e.buttons===0){Ir(r=>r.interactionState.state==="inactive"?r:{cursorFlags:0,interactionState:{state:"inactive"}});return}A8({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint});break}default:{const r=_8(e,n);r.length===0?t.state!=="inactive"&&Ir({interactionState:{state:"inactive"}}):Ir({interactionState:{hitRegions:r,state:"hover"}}),nS(e.currentTarget);break}}}function $8(e){if(e.defaultPrevented)return;e.preventDefault();const{interactionState:t}=Ro();switch(t.state){case"active":Ir({cursorFlags:0,interactionState:{state:"inactive"}}),nS(e.currentTarget)}}function I8(e){let t=0,n=0;const r={};for(const i of e)if(i.defaultSize!==void 0){t++;const a=co(i.defaultSize);n+=a,r[i.panelId]=a}else r[i.panelId]=void 0;const o=e.length-t;if(o!==0){const i=co((100-n)/o);for(const a of e)a.defaultSize===void 0&&(r[a.panelId]=i)}return r}function V0e(e,t,n){const r=n[0];if(!r)return;const o=e.panels.find(a=>a.element===t);if(!o||!o.onResize)return;const i=Ll({group:e});o.onResize({asPercentage:co(r.inlineSize/i*100),inPixels:r.inlineSize},o.id)}function U0e(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function H0e(e,t){const n=e.map(o=>o.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o))return!1;return!0}const Bl=new Map;function W0e(e){let t=!0;Ct(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,o=new Set,i=new n(h=>{for(const m of h){const{borderBoxSize:v,target:y}=m;if(y===e.element){if(t){if(Ll({group:e})===0)return;Ir(w=>{const x=w.mountedGroups.get(e);if(x){const S=g8(e),C=x.defaultLayoutDeferred?I8(S):x.layout,E=os({layout:C,panelConstraints:S});return!x.defaultLayoutDeferred&&Rl(C,E)&&U0e(x.derivedPanelConstraints,S)?w:{mountedGroups:new Map(w.mountedGroups).set(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:S,layout:E,separatorToPanels:x.separatorToPanels})}}return w})}}else V0e(e,y,v)}});i.observe(e.element),e.panels.forEach(h=>{Ct(!r.has(h.id),`Panel ids must be unique; id "${h.id}" was used more than once`),r.add(h.id),h.onResize&&i.observe(h.element)});const a=Ll({group:e}),s=g8(e),l=e.panels.map(({id:h})=>h).join(",");let c=e.defaultLayout;c&&(H0e(e.panels,c)||(c=void 0));const u=e.inMemoryLayouts[l]??c??I8(s),d=os({layout:u,panelConstraints:s}),f=p8(e),p=e.element.ownerDocument;return Ir(h=>{const m=new Map;return Bl.set(p,(Bl.get(p)??0)+1),f.forEach(v=>{v.separator&&m.set(v.separator,v.panels)}),{mountedGroups:new Map(h.mountedGroups).set(e,{defaultLayoutDeferred:a===0,derivedPanelConstraints:s,layout:d,separatorToPanels:m})}}),e.separators.forEach(h=>{Ct(!o.has(h.id),`Separator ids must be unique; id "${h.id}" was used more than once`),o.add(h.id),h.element.addEventListener("keydown",y8)}),Bl.get(p)===1&&(p.addEventListener("pointerdown",M8),p.addEventListener("pointerleave",D8),p.addEventListener("pointermove",N8),p.addEventListener("pointerup",$8)),function(){t=!1,Bl.set(p,Math.max(0,(Bl.get(p)??0)-1)),Ir(h=>{const m=new Map(h.mountedGroups);return m.delete(e),{mountedGroups:m}}),e.separators.forEach(h=>{h.element.removeEventListener("keydown",y8)}),Bl.get(p)||(p.removeEventListener("pointerdown",M8),p.removeEventListener("pointerleave",D8),p.removeEventListener("pointermove",N8),p.removeEventListener("pointerup",$8)),i.disconnect()}}function rS(e){const t=O.useId();return`${e??t}`}const as=typeof window<"u"?O.useLayoutEffect:O.useEffect;function oS(e){const t=O.useRef(e);return as(()=>{t.current=e},[e]),O.useCallback(n=>{var r;return(r=t.current)==null?void 0:r.call(t,n)},[t])}function iS(...e){return oS(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function K0e(e){const t=O.useRef({...e});return as(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const L8="--react-resizable-panels--panel--pointer-events";function F8(e,t){const n=e.replace(/[^a-zA-Z0-9\-_]/g,""),r=t.replace(/[^a-zA-Z0-9\-_]/g,"");return`--react-resizable-panels--${n}--${r}`}const R8=O.createContext(null);function G0e(e,t){const n=O.useRef({getLayout:()=>({}),setLayout:D0e});O.useImperativeHandle(t,()=>n.current,[]),as(()=>{Object.assign(n.current,m8({groupId:e}))})}function Y0e({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:o,elementRef:i,groupRef:a,id:s,onLayoutChange:l,orientation:c="horizontal",style:u,...d}){const f=O.useRef({}),p=oS(U=>{Rl(f.current,U)||(f.current=U,l==null||l(U))}),h=rS(s),[m,v]=O.useState(!1),[y,w]=O.useState(null),[x,S]=O.useState(n??{}),[C,E]=O.useState([]),[P,_]=O.useState([]),T=O.useRef({lastExpandedPanelSizes:{},layouts:{}}),M=iS(w,i);G0e(h,a);const A=O.useMemo(()=>({id:h,orientation:c,registerPanel:U=>(E(L=>eS(c,[...L,U])),()=>{E(L=>L.filter(V=>V!==U))}),registerSeparator:U=>(_(L=>eS(c,[...L,U])),()=>{_(L=>L.filter(V=>V!==U))})}),[h,c]),D=K0e({defaultLayout:n,disableCursor:r}),N=O.useRef(null);as(()=>{if(y===null)return;const U={defaultLayout:D.defaultLayout,disableCursor:!!D.disableCursor,disabled:!!o,element:y,id:h,inMemoryLastExpandedPanelSizes:T.current.lastExpandedPanelSizes,inMemoryLayouts:T.current.layouts,orientation:c,panels:C,separators:P};N.current=U;const L=W0e(U),V=Ro().mountedGroups.get(U);if(V){const{defaultLayoutDeferred:se,derivedPanelConstraints:pe,layout:W}=V;!se&&pe.length>0&&(S(W),p==null||p(W))}const j=rs.addListener("interactionStateChange",se=>{switch(se.state){case"active":{v(se.hitRegions.some(pe=>pe.group===U));break}default:{v(!1);break}}}),H=rs.addListener("mountedGroupsChange",se=>{const pe=se.get(U);if(pe){const{defaultLayoutDeferred:W,derivedPanelConstraints:Y,layout:F}=pe;if(W||Y.length===0)return;S(F),p==null||p(F)}});return()=>{N.current=null,L(),j(),H()}},[o,y,h,p,c,C,P,D]),O.useEffect(()=>{const U=N.current;U&&(U.defaultLayout=n,U.disableCursor=!!r)});const R={[L8]:m?"none":void 0};for(const U in x){const L=F8(h,U),V=x[U];R[L]=V}return b.jsx(R8.Provider,{value:A,children:b.jsx("div",{...d,"aria-orientation":c,className:t,"data-group":!0,"data-testid":h,id:h,ref:M,style:{...u,...R,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap"},children:e})})}function aS(){const e=O.useContext(R8);return Ct(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function X0e({groupId:e,panelId:t}){const n=()=>{const{mountedGroups:s}=Ro();for(const[l,{defaultLayoutDeferred:c,derivedPanelConstraints:u,layout:d,separatorToPanels:f}]of s)if(l.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:u,group:l,layout:d,separatorToPanels:f};throw Error(`Group ${e} not found`)},r=()=>{const s=n().derivedPanelConstraints.find(l=>l.panelId===t);if(s!==void 0)return s;throw Error(`Panel constraints not found for Panel ${t}`)},o=()=>{const s=n().group.panels.find(l=>l.id===t);if(s!==void 0)return s;throw Error(`Layout not found for Panel ${t}`)},i=()=>{const s=n().layout[t];if(s!==void 0)return s;throw Error(`Layout not found for Panel ${t}`)},a=s=>{const l=i();if(s===l)return;const{defaultLayoutDeferred:c,derivedPanelConstraints:u,group:d,layout:f,separatorToPanels:p}=n(),h=d.panels.findIndex(w=>w.id===t),m=h===d.panels.length-1,v=Ad({delta:m?l-s:s-l,initialLayout:f,panelConstraints:u,pivotIndices:m?[h-1,h]:[h,h+1],prevLayout:f,trigger:"imperative-api"}),y=os({layout:v,panelConstraints:u});Rl(f,y)||Ir(w=>({mountedGroups:new Map(w.mountedGroups).set(d,{defaultLayoutDeferred:c,derivedPanelConstraints:u,layout:y,separatorToPanels:p})}))};return{collapse:()=>{const{collapsible:s,collapsedSize:l}=r(),c=i();s&&c!==l&&a(l)},expand:()=>{const{collapsible:s,collapsedSize:l,minSize:c}=r(),u=i();s&&u===l&&a(c)},getSize:()=>{const{group:s}=n(),l=i(),{element:c}=o(),u=s.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:l,inPixels:u}},isCollapsed:()=>{const{collapsible:s,collapsedSize:l}=r(),c=i();return s&&Vn(l,c)},resize:s=>{if(i()!==s){let l;switch(typeof s){case"number":{const{group:c}=n(),u=Ll({group:c});l=co(s/u*100);break}case"string":{l=parseFloat(s);break}}a(l)}}}}function Q0e(e,t){const{id:n}=aS(),r=O.useRef({collapse:tS,expand:tS,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:tS});O.useImperativeHandle(t,()=>r.current,[]),as(()=>{Object.assign(r.current,X0e({groupId:n,panelId:e}))})}function Z0e({children:e,className:t,collapsedSize:n="0%",collapsible:r=!1,defaultSize:o,elementRef:i,id:a,maxSize:s="100%",minSize:l="0%",onResize:c,panelRef:u,style:d,...f}){const p=!!a,h=rS(a),[m,v]=O.useState(null),y=iS(v,i),{id:w,registerPanel:x}=aS(),S=c!==null,C=oS(P=>{c==null||c(P,a)});as(()=>{if(m!==null)return x({element:m,id:h,idIsStable:p,onResize:S?C:void 0,panelConstraints:{collapsedSize:n,collapsible:r,defaultSize:o,maxSize:s,minSize:l}})},[n,r,o,m,S,h,p,s,l,C,x]),Q0e(h,u);const E=F8(w,h);return b.jsx("div",{...f,"data-panel":!0,"data-testid":h,id:h,ref:y,style:{...J0e,flexBasis:0,flexGrow:`var(${E}, 1)`,flexShrink:1,overflow:"hidden",pointerEvents:`var(${L8})`},children:b.jsx("div",{className:t,style:{width:"100%",height:"100%",...d},children:e})})}const J0e={minHeight:"unset",maxHeight:"unset",height:"unset",minWidth:"unset",maxWidth:"unset",width:"unset",flex:"unset",flexBasis:"unset",flexShrink:"unset",flexGrow:"unset",border:"unset",borderWidth:"unset",padding:"unset",margin:"unset"};function ebe({layout:e,panelConstraints:t,panelId:n,panelIndex:r}){let o,i;const a=e[n],s=t.find(l=>l.panelId===n);if(s){const l=s.maxSize,c=i=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];i=os({layout:Ad({delta:c-a,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e,trigger:"keyboard"}),panelConstraints:t})[n],o=os({layout:Ad({delta:l-a,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e,trigger:"keyboard"}),panelConstraints:t})[n]}return{valueControls:n,valueMax:o,valueMin:i,valueNow:a}}function tbe({children:e,className:t,elementRef:n,id:r,style:o,...i}){const a=rS(r),[s,l]=O.useState({}),[c,u]=O.useState("inactive"),[d,f]=O.useState(null),p=iS(f,n),{id:h,orientation:m,registerSeparator:v}=aS(),y=m==="horizontal"?"vertical":"horizontal";return as(()=>{if(d!==null){const w={element:d,id:a},x=v(w),S=rs.addListener("interactionStateChange",E=>{u(E.state!=="inactive"&&E.hitRegions.some(P=>P.separator===w)?E.state:"inactive")}),C=rs.addListener("mountedGroupsChange",E=>{E.forEach(({derivedPanelConstraints:P,layout:_,separatorToPanels:T},M)=>{if(M.id===h){const A=T.get(w);if(A){const D=A[0],N=M.panels.indexOf(D);l(ebe({layout:_,panelConstraints:P,panelId:D.id,panelIndex:N}))}}})});return()=>{S(),C(),x()}}},[d,h,a,v]),b.jsx("div",{...i,"aria-controls":s.valueControls,"aria-orientation":y,"aria-valuemax":s.valueMax,"aria-valuemin":s.valueMin,"aria-valuenow":s.valueNow,children:e,className:t,"data-separator":c,"data-testid":a,id:a,ref:p,role:"separator",style:{flexBasis:"auto",...o,flexGrow:0,flexShrink:0},tabIndex:0})}const nbe=({className:e,...t})=>b.jsx(Y0e,{className:q("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),rbe=Z0e,obe=({withHandle:e,className:t,...n})=>b.jsx(tbe,{className:q("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...n,children:e&&b.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:b.jsx(SV,{className:"h-2.5 w-2.5"})})});function ibe(e){const t=abe(e),n=g.forwardRef((r,o)=>{const{children:i,...a}=r,s=g.Children.toArray(i),l=s.find(lbe);if(l){const c=l.props.children,u=s.map(d=>d===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:d);return b.jsx(t,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,u):null})}return b.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function abe(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const a=ube(o),s=cbe(i,o.props);return o.type!==g.Fragment&&(s.ref=r?Pn(r,a):a),g.cloneElement(o,s)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sbe=Symbol("radix.slottable");function lbe(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sbe}function cbe(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const l=i(...s);return o(...s),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ube(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dbe=[" ","Enter","ArrowUp","ArrowDown"],fbe=[" ","Enter"],ss="Select",[sm,lm,hbe]=Qo(ss),[jl]=kt(ss,[hbe,Io]),cm=Io(),[pbe,ra]=jl(ss),[gbe,mbe]=jl(ss),B8=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:f,required:p,form:h}=e,m=cm(t),[v,y]=g.useState(null),[w,x]=g.useState(null),[S,C]=g.useState(!1),E=Wr(c),[P,_]=Ot({prop:r,defaultProp:o??!1,onChange:i,caller:ss}),[T,M]=Ot({prop:a,defaultProp:s,onChange:l,caller:ss}),A=g.useRef(null),D=v?h||!!v.closest("form"):!0,[N,R]=g.useState(new Set),U=Array.from(N).map(L=>L.props.value).join(";");return b.jsx(Tl,{...m,children:b.jsxs(pbe,{required:p,scope:t,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:Et(),value:T,onValueChange:M,open:P,onOpenChange:_,dir:E,triggerPointerDownPosRef:A,disabled:f,children:[b.jsx(sm.Provider,{scope:t,children:b.jsx(gbe,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(L=>{R(V=>new Set(V).add(L))},[]),onNativeOptionRemove:g.useCallback(L=>{R(V=>{const j=new Set(V);return j.delete(L),j})},[]),children:n})}),D?b.jsxs(uR,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:T,onChange:L=>M(L.target.value),disabled:f,form:h,children:[T===void 0?b.jsx("option",{value:""}):null,Array.from(N)]},U):null]})})};B8.displayName=ss;var j8="SelectTrigger",z8=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=cm(n),a=ra(j8,n),s=a.disabled||r,l=je(t,a.onTriggerChange),c=lm(n),u=g.useRef("touch"),[d,f,p]=fR(m=>{const v=c().filter(x=>!x.disabled),y=v.find(x=>x.value===a.value),w=hR(v,m,y);w!==void 0&&a.onValueChange(w.value)}),h=m=>{s||(a.onOpenChange(!0),p()),m&&(a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return b.jsx(_l,{asChild:!0,...i,children:b.jsx(ye.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":dR(a.value)?"":void 0,...o,ref:l,onClick:ne(o.onClick,m=>{m.currentTarget.focus(),u.current!=="mouse"&&h(m)}),onPointerDown:ne(o.onPointerDown,m=>{u.current=m.pointerType;const v=m.target;v.hasPointerCapture(m.pointerId)&&v.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(h(m),m.preventDefault())}),onKeyDown:ne(o.onKeyDown,m=>{const v=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(v&&m.key===" ")&&dbe.includes(m.key)&&(h(),m.preventDefault())})})})});z8.displayName=j8;var q8="SelectValue",V8=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,l=ra(q8,n),{onValueNodeHasChildrenChange:c}=l,u=i!==void 0,d=je(t,l.onValueNodeChange);return At(()=>{c(u)},[c,u]),b.jsx(ye.span,{...s,ref:d,style:{pointerEvents:"none"},children:dR(l.value)?b.jsx(b.Fragment,{children:a}):i})});V8.displayName=q8;var vbe="SelectIcon",U8=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return b.jsx(ye.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});U8.displayName=vbe;var ybe="SelectPortal",H8=e=>b.jsx(Sa,{asChild:!0,...e});H8.displayName=ybe;var ls="SelectContent",W8=g.forwardRef((e,t)=>{const n=ra(ls,e.__scopeSelect),[r,o]=g.useState();if(At(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Oc.createPortal(b.jsx(K8,{scope:e.__scopeSelect,children:b.jsx(sm.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),i):null}return b.jsx(G8,{...e,ref:t})});W8.displayName=ls;var uo=10,[K8,oa]=jl(ls),bbe="SelectContentImpl",wbe=ibe("SelectContent.RemoveScroll"),G8=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v,...y}=e,w=ra(ls,n),[x,S]=g.useState(null),[C,E]=g.useState(null),P=je(t,Z=>S(Z)),[_,T]=g.useState(null),[M,A]=g.useState(null),D=lm(n),[N,R]=g.useState(!1),U=g.useRef(!1);g.useEffect(()=>{if(x)return vh(x)},[x]),ch();const L=g.useCallback(Z=>{const[J,...Q]=D().map(z=>z.ref.current),[oe]=Q.slice(-1),le=document.activeElement;for(const z of Z)if(z===le||(z==null||z.scrollIntoView({block:"nearest"}),z===J&&C&&(C.scrollTop=0),z===oe&&C&&(C.scrollTop=C.scrollHeight),z==null||z.focus(),document.activeElement!==le))return},[D,C]),V=g.useCallback(()=>L([_,x]),[L,_,x]);g.useEffect(()=>{N&&V()},[N,V]);const{onOpenChange:j,triggerPointerDownPosRef:H}=w;g.useEffect(()=>{if(x){let Z={x:0,y:0};const J=oe=>{var le,z;Z={x:Math.abs(Math.round(oe.pageX)-(((le=H.current)==null?void 0:le.x)??0)),y:Math.abs(Math.round(oe.pageY)-(((z=H.current)==null?void 0:z.y)??0))}},Q=oe=>{Z.x<=10&&Z.y<=10?oe.preventDefault():x.contains(oe.target)||j(!1),document.removeEventListener("pointermove",J),H.current=null};return H.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",Q,{capture:!0})}}},[x,j,H]),g.useEffect(()=>{const Z=()=>j(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[j]);const[se,pe]=fR(Z=>{const J=D().filter(le=>!le.disabled),Q=J.find(le=>le.ref.current===document.activeElement),oe=hR(J,Z,Q);oe&&setTimeout(()=>oe.ref.current.focus())}),W=g.useCallback((Z,J,Q)=>{const oe=!U.current&&!Q;(w.value!==void 0&&w.value===J||oe)&&(T(Z),oe&&(U.current=!0))},[w.value]),Y=g.useCallback(()=>x==null?void 0:x.focus(),[x]),F=g.useCallback((Z,J,Q)=>{const oe=!U.current&&!Q;(w.value!==void 0&&w.value===J||oe)&&A(Z)},[w.value]),ee=r==="popper"?sS:Y8,fe=ee===sS?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v}:{};return b.jsx(K8,{scope:n,content:x,viewport:C,onViewportChange:E,itemRefCallback:W,selectedItem:_,onItemLeave:Y,itemTextRefCallback:F,focusSelectedItem:V,selectedItemText:M,position:r,isPositioned:N,searchRef:se,children:b.jsx(Kc,{as:wbe,allowPinchZoom:!0,children:b.jsx(Wc,{asChild:!0,trapped:w.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:ne(o,Z=>{var J;(J=w.trigger)==null||J.focus({preventScroll:!0}),Z.preventDefault()}),children:b.jsx(li,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:b.jsx(ee,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:Z=>Z.preventDefault(),...y,...fe,onPlaced:()=>R(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:ne(y.onKeyDown,Z=>{const J=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!J&&Z.key.length===1&&pe(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let oe=D().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const le=Z.target,z=oe.indexOf(le);oe=oe.slice(z+1)}setTimeout(()=>L(oe)),Z.preventDefault()}})})})})})})});G8.displayName=bbe;var xbe="SelectItemAlignedPosition",Y8=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=ra(ls,n),a=oa(ls,n),[s,l]=g.useState(null),[c,u]=g.useState(null),d=je(t,P=>u(P)),f=lm(n),p=g.useRef(!1),h=g.useRef(!0),{viewport:m,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=a,x=g.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&c&&m&&v&&y){const P=i.trigger.getBoundingClientRect(),_=c.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),M=y.getBoundingClientRect();if(i.dir!=="rtl"){const le=M.left-_.left,z=T.left-le,_e=P.left-z,X=P.width+_e,be=Math.max(X,_.width),$e=window.innerWidth-uo,Ve=Od(z,[uo,Math.max(uo,$e-be)]);s.style.minWidth=X+"px",s.style.left=Ve+"px"}else{const le=_.right-M.right,z=window.innerWidth-T.right-le,_e=window.innerWidth-P.right-z,X=P.width+_e,be=Math.max(X,_.width),$e=window.innerWidth-uo,Ve=Od(z,[uo,Math.max(uo,$e-be)]);s.style.minWidth=X+"px",s.style.right=Ve+"px"}const A=f(),D=window.innerHeight-uo*2,N=m.scrollHeight,R=window.getComputedStyle(c),U=parseInt(R.borderTopWidth,10),L=parseInt(R.paddingTop,10),V=parseInt(R.borderBottomWidth,10),j=parseInt(R.paddingBottom,10),H=U+L+N+j+V,se=Math.min(v.offsetHeight*5,H),pe=window.getComputedStyle(m),W=parseInt(pe.paddingTop,10),Y=parseInt(pe.paddingBottom,10),F=P.top+P.height/2-uo,ee=D-F,fe=v.offsetHeight/2,Z=v.offsetTop+fe,J=U+L+Z,Q=H-J;if(J<=F){const le=A.length>0&&v===A[A.length-1].ref.current;s.style.bottom="0px";const z=c.clientHeight-m.offsetTop-m.offsetHeight,_e=Math.max(ee,fe+(le?Y:0)+z+V),X=J+_e;s.style.height=X+"px"}else{const le=A.length>0&&v===A[0].ref.current;s.style.top="0px";const _e=Math.max(F,U+m.offsetTop+(le?W:0)+fe)+Q;s.style.height=_e+"px",m.scrollTop=J-F+m.offsetTop}s.style.margin=`${uo}px 0`,s.style.minHeight=se+"px",s.style.maxHeight=D+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,s,c,m,v,y,i.dir,r]);At(()=>x(),[x]);const[S,C]=g.useState();At(()=>{c&&C(window.getComputedStyle(c).zIndex)},[c]);const E=g.useCallback(P=>{P&&h.current===!0&&(x(),w==null||w(),h.current=!1)},[x,w]);return b.jsx(Cbe,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:E,children:b.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:b.jsx(ye.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Y8.displayName=xbe;var Sbe="SelectPopperPosition",sS=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=uo,...i}=e,a=cm(n);return b.jsx(id,{...a,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});sS.displayName=Sbe;var[Cbe,lS]=jl(ls,{}),cS="SelectViewport",X8=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=oa(cS,n),a=lS(cS,n),s=je(t,i.onViewportChange),l=g.useRef(0);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),b.jsx(sm.Slot,{scope:n,children:b.jsx(ye.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ne(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=a;if(f!=null&&f.current&&d){const p=Math.abs(l.current-u.scrollTop);if(p>0){const h=window.innerHeight-uo*2,m=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),y=Math.max(m,v);if(y<h){const w=y+p,x=Math.min(h,w),S=w-x;d.style.height=x+"px",d.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});X8.displayName=cS;var Q8="SelectGroup",[Ebe,Pbe]=jl(Q8),Z8=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Et();return b.jsx(Ebe,{scope:n,id:o,children:b.jsx(ye.div,{role:"group","aria-labelledby":o,...r,ref:t})})});Z8.displayName=Q8;var J8="SelectLabel",eR=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pbe(J8,n);return b.jsx(ye.div,{id:o.id,...r,ref:t})});eR.displayName=J8;var um="SelectItem",[Obe,tR]=jl(um),nR=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=ra(um,n),l=oa(um,n),c=s.value===r,[u,d]=g.useState(i??""),[f,p]=g.useState(!1),h=je(t,w=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,w,r,o)}),m=Et(),v=g.useRef("touch"),y=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return b.jsx(Obe,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:g.useCallback(w=>{d(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:b.jsx(sm.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:b.jsx(ye.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:h,onFocus:ne(a.onFocus,()=>p(!0)),onBlur:ne(a.onBlur,()=>p(!1)),onClick:ne(a.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:ne(a.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:ne(a.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:ne(a.onPointerMove,w=>{var x;v.current=w.pointerType,o?(x=l.onItemLeave)==null||x.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(a.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:ne(a.onKeyDown,w=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(fbe.includes(w.key)&&y(),w.key===" "&&w.preventDefault())})})})})});nR.displayName=um;var Dd="SelectItemText",rR=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=ra(Dd,n),s=oa(Dd,n),l=tR(Dd,n),c=mbe(Dd,n),[u,d]=g.useState(null),f=je(t,y=>d(y),l.onItemTextChange,y=>{var w;return(w=s.itemTextRefCallback)==null?void 0:w.call(s,y,l.value,l.disabled)}),p=u==null?void 0:u.textContent,h=g.useMemo(()=>b.jsx("option",{value:l.value,disabled:l.disabled,children:p},l.value),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=c;return At(()=>(m(h),()=>v(h)),[m,v,h]),b.jsxs(b.Fragment,{children:[b.jsx(ye.span,{id:l.textId,...i,ref:f}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Oc.createPortal(i.children,a.valueNode):null]})});rR.displayName=Dd;var oR="SelectItemIndicator",iR=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return tR(oR,n).isSelected?b.jsx(ye.span,{"aria-hidden":!0,...r,ref:t}):null});iR.displayName=oR;var uS="SelectScrollUpButton",aR=g.forwardRef((e,t)=>{const n=oa(uS,e.__scopeSelect),r=lS(uS,e.__scopeSelect),[o,i]=g.useState(!1),a=je(t,r.onScrollButtonChange);return At(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollTop>0;i(c)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?b.jsx(lR,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});aR.displayName=uS;var dS="SelectScrollDownButton",sR=g.forwardRef((e,t)=>{const n=oa(dS,e.__scopeSelect),r=lS(dS,e.__scopeSelect),[o,i]=g.useState(!1),a=je(t,r.onScrollButtonChange);return At(()=>{if(n.viewport&&n.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;i(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?b.jsx(lR,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});sR.displayName=dS;var lR=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=oa("SelectScrollButton",n),a=g.useRef(null),s=lm(n),l=g.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return g.useEffect(()=>()=>l(),[l]),At(()=>{var u;const c=s().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[s]),b.jsx(ye.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:ne(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:ne(o.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:ne(o.onPointerLeave,()=>{l()})})}),Tbe="SelectSeparator",cR=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return b.jsx(ye.div,{"aria-hidden":!0,...r,ref:t})});cR.displayName=Tbe;var fS="SelectArrow",_be=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cm(n),i=ra(fS,n),a=oa(fS,n);return i.open&&a.position==="popper"?b.jsx(ad,{...o,...r,ref:t}):null});_be.displayName=fS;var Mbe="SelectBubbleInput",uR=g.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=g.useRef(null),i=je(r,o),a=wl(t);return g.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),b.jsx(ye.select,{...n,style:{...FF,...n.style},ref:i,defaultValue:t})});uR.displayName=Mbe;function dR(e){return e===""||e===void 0}function fR(e){const t=ht(e),n=g.useRef(""),r=g.useRef(0),o=g.useCallback(a=>{const s=n.current+a;t(s),(function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(s)},[t]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function hR(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=kbe(e,Math.max(i,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function kbe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Abe=B8,pR=z8,Dbe=V8,Nbe=U8,$be=H8,gR=W8,Ibe=X8,Lbe=Z8,mR=eR,vR=nR,Fbe=rR,Rbe=iR,yR=aR,bR=sR,wR=cR;const Bbe=Abe,jbe=Lbe,zbe=Dbe,xR=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(pR,{ref:r,className:q("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,b.jsx(Nbe,{asChild:!0,children:b.jsx(vy,{className:"h-4 w-4 opacity-50"})})]}));xR.displayName=pR.displayName;const hS=g.forwardRef(({className:e,...t},n)=>b.jsx(yR,{ref:n,className:q("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(zX,{className:"h-4 w-4"})}));hS.displayName=yR.displayName;const pS=g.forwardRef(({className:e,...t},n)=>b.jsx(bR,{ref:n,className:q("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(vy,{className:"h-4 w-4"})}));pS.displayName=bR.displayName;const SR=g.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>b.jsx($be,{children:b.jsxs(gR,{ref:o,className:q("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[b.jsx(hS,{}),b.jsx(Ibe,{className:q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),b.jsx(pS,{})]})}));SR.displayName=gR.displayName;const CR=g.forwardRef(({className:e,...t},n)=>b.jsx(mR,{ref:n,className:q("px-2 py-1.5 text-sm font-semibold",e),...t}));CR.displayName=mR.displayName;const ER=g.forwardRef(({className:e,children:t,...n},r)=>b.jsxs(vR,{ref:r,className:q("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[b.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:b.jsx(Rbe,{children:b.jsx(Qc,{className:"h-4 w-4"})})}),b.jsx(Fbe,{children:t})]}));ER.displayName=vR.displayName;const PR=g.forwardRef(({className:e,...t},n)=>b.jsx(wR,{ref:n,className:q("-mx-1 my-1 h-px bg-muted",e),...t}));PR.displayName=wR.displayName;var qbe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Vbe=qbe.reduce((e,t)=>{const n=Ys(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:a,...s}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ube="Separator",OR="horizontal",Hbe=["horizontal","vertical"],TR=g.forwardRef((e,t)=>{const{decorative:n,orientation:r=OR,...o}=e,i=Wbe(r)?r:OR,s=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return b.jsx(Vbe.div,{"data-orientation":i,...s,...o,ref:t})});TR.displayName=Ube;function Wbe(e){return Hbe.includes(e)}var _R=TR;const gS=g.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>b.jsx(_R,{ref:o,decorative:n,orientation:t,className:q("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));gS.displayName=_R.displayName;function Lr({className:e,...t}){return b.jsx("div",{className:q("animate-pulse rounded-md ",e),...t})}function Kbe(){return b.jsxs("div",{className:"p-5",children:[b.jsx("h5",{className:"text-center font-bold",children:"Please Wait..."}),b.jsx(Lr,{className:"h-40 w-full mb-4 bg-gray-300"}),b.jsx(Lr,{className:"h-10 w-full mb-4 bg-gray-300"}),b.jsx(Lr,{className:"h-10 w-full mb-4 bg-gray-300"}),b.jsx(Lr,{className:"h-10 w-full mb-4 bg-gray-300"}),b.jsx(Lr,{className:"h-10 w-full mb-4 bg-gray-300"}),b.jsx(Lr,{className:"h-10 w-full mb-4 bg-gray-300"}),b.jsx(Lr,{className:"h-10 w-full mb-4 bg-gray-300"}),b.jsx(Lr,{className:"h-10 w-full mb-4 bg-gray-300"}),b.jsx(Lr,{className:"h-10 w-full mb-4 bg-gray-300"})]})}var Gbe=Symbol("radix.slottable");function Ybe(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Gbe,t}var[dm]=kt("Tooltip",[Io]),fm=Io(),MR="TooltipProvider",Xbe=700,mS="tooltip.open",[Qbe,vS]=dm(MR),kR=e=>{const{__scopeTooltip:t,delayDuration:n=Xbe,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,a=g.useRef(!0),s=g.useRef(!1),l=g.useRef(0);return g.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),b.jsx(Qbe,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:g.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:g.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:g.useCallback(c=>{s.current=c},[]),disableHoverableContent:o,children:i})};kR.displayName=MR;var Nd="Tooltip",[Zbe,$d]=dm(Nd),AR=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,l=vS(Nd,e.__scopeTooltip),c=fm(t),[u,d]=g.useState(null),f=Et(),p=g.useRef(0),h=a??l.disableHoverableContent,m=s??l.delayDuration,v=g.useRef(!1),[y,w]=Ot({prop:r,defaultProp:o??!1,onChange:P=>{P?(l.onOpen(),document.dispatchEvent(new CustomEvent(mS))):l.onClose(),i==null||i(P)},caller:Nd}),x=g.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),S=g.useCallback(()=>{window.clearTimeout(p.current),p.current=0,v.current=!1,w(!0)},[w]),C=g.useCallback(()=>{window.clearTimeout(p.current),p.current=0,w(!1)},[w]),E=g.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{v.current=!0,w(!0),p.current=0},m)},[m,w]);return g.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),b.jsx(Tl,{...c,children:b.jsx(Zbe,{scope:t,contentId:f,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:g.useCallback(()=>{l.isOpenDelayedRef.current?E():S()},[l.isOpenDelayedRef,E,S]),onTriggerLeave:g.useCallback(()=>{h?C():(window.clearTimeout(p.current),p.current=0)},[C,h]),onOpen:S,onClose:C,disableHoverableContent:h,children:n})})};AR.displayName=Nd;var yS="TooltipTrigger",DR=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=$d(yS,n),i=vS(yS,n),a=fm(n),s=g.useRef(null),l=je(t,s,o.onTriggerChange),c=g.useRef(!1),u=g.useRef(!1),d=g.useCallback(()=>c.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),b.jsx(_l,{asChild:!0,...a,children:b.jsx(ye.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:ne(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:ne(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:ne(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:ne(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:ne(e.onBlur,o.onClose),onClick:ne(e.onClick,o.onClose)})})});DR.displayName=yS;var bS="TooltipPortal",[Jbe,ewe]=dm(bS,{forceMount:void 0}),NR=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=$d(bS,t);return b.jsx(Jbe,{scope:t,forceMount:n,children:b.jsx(Tt,{present:n||i.open,children:b.jsx(Sa,{asChild:!0,container:o,children:r})})})};NR.displayName=bS;var zl="TooltipContent",$R=g.forwardRef((e,t)=>{const n=ewe(zl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=$d(zl,e.__scopeTooltip);return b.jsx(Tt,{present:r||a.open,children:a.disableHoverableContent?b.jsx(IR,{side:o,...i,ref:t}):b.jsx(twe,{side:o,...i,ref:t})})}),twe=g.forwardRef((e,t)=>{const n=$d(zl,e.__scopeTooltip),r=vS(zl,e.__scopeTooltip),o=g.useRef(null),i=je(t,o),[a,s]=g.useState(null),{trigger:l,onClose:c}=n,u=o.current,{onPointerInTransitChange:d}=r,f=g.useCallback(()=>{s(null),d(!1)},[d]),p=g.useCallback((h,m)=>{const v=h.currentTarget,y={x:h.clientX,y:h.clientY},w=awe(y,v.getBoundingClientRect()),x=swe(y,w),S=lwe(m.getBoundingClientRect()),C=uwe([...x,...S]);s(C),d(!0)},[d]);return g.useEffect(()=>()=>f(),[f]),g.useEffect(()=>{if(l&&u){const h=v=>p(v,u),m=v=>p(v,l);return l.addEventListener("pointerleave",h),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",m)}}},[l,u,p,f]),g.useEffect(()=>{if(a){const h=m=>{const v=m.target,y={x:m.clientX,y:m.clientY},w=(l==null?void 0:l.contains(v))||(u==null?void 0:u.contains(v)),x=!cwe(y,a);w?f():x&&(f(),c())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[l,u,a,c,f]),b.jsx(IR,{...e,ref:i})}),[nwe,rwe]=dm(Nd,{isInside:!1}),owe=Ybe("TooltipContent"),IR=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,l=$d(zl,n),c=fm(n),{onClose:u}=l;return g.useEffect(()=>(document.addEventListener(mS,u),()=>document.removeEventListener(mS,u)),[u]),g.useEffect(()=>{if(l.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),b.jsx(li,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:b.jsxs(id,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(owe,{children:r}),b.jsx(nwe,{scope:n,isInside:!0,children:b.jsx(RF,{id:l.contentId,role:"tooltip",children:o||r})})]})})});$R.displayName=zl;var LR="TooltipArrow",iwe=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fm(n);return rwe(LR,n).isInside?null:b.jsx(ad,{...o,...r,ref:t})});iwe.displayName=LR;function awe(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function swe(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function lwe(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function cwe(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],l=t[a],c=s.x,u=s.y,d=l.x,f=l.y;u>r!=f>r&&n<(d-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function uwe(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),dwe(t)}function dwe(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var fwe=kR,hwe=AR,pwe=DR,gwe=NR,FR=$R;const RR=fwe,BR=hwe,jR=pwe,wS=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>b.jsx(gwe,{children:b.jsx(FR,{ref:r,sideOffset:t,className:q("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));wS.displayName=FR.displayName;const xS=768;function zR(){const[e,t]=O.useState(void 0);return O.useEffect(()=>{const n=window.matchMedia(`(max-width: ${xS-1}px)`),r=()=>{t(window.innerWidth<xS)};return n.addEventListener("change",r),t(window.innerWidth<xS),()=>n.removeEventListener("change",r)},[]),!!e}const mwe="sidebar_state",vwe=3600*24*7,ywe="16rem",bwe="18rem",wwe="3rem",xwe="b",qR=g.createContext(null);function Id(){const e=g.useContext(qR);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const VR=g.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:i,...a},s)=>{const l=zR(),[c,u]=g.useState(!1),[d,f]=g.useState(e),p=t??d,h=g.useCallback(w=>{const x=typeof w=="function"?w(p):w;n?n(x):f(x),document.cookie=`${mwe}=${x}; path=/; max-age=${vwe}`},[n,p]),m=g.useCallback(()=>l?u(w=>!w):h(w=>!w),[l,h,u]);g.useEffect(()=>{const w=x=>{x.key===xwe&&(x.metaKey||x.ctrlKey)&&(x.preventDefault(),m())};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[m]);const v=p?"expanded":"collapsed",y=g.useMemo(()=>({state:v,open:p,setOpen:h,isMobile:l,openMobile:c,setOpenMobile:u,toggleSidebar:m}),[v,p,h,l,c,u,m]);return b.jsx(qR.Provider,{value:y,children:b.jsx(RR,{delayDuration:0,children:b.jsx("div",{style:{"--sidebar-width":ywe,"--sidebar-width-icon":wwe,...o},className:q("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:s,...a,children:i})})})});VR.displayName="SidebarProvider";const UR=g.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:o,...i},a)=>{const{isMobile:s,state:l,openMobile:c,setOpenMobile:u}=Id();return n==="none"?b.jsx("div",{className:q("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:a,...i,children:o}):s?b.jsx(kx,{open:c,onOpenChange:u,...i,children:b.jsxs(zg,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":bwe},side:e,children:[b.jsxs(qg,{className:"sr-only",children:[b.jsx(Vg,{children:"Sidebar"}),b.jsx(Ug,{children:"Displays the mobile sidebar."})]}),b.jsx("div",{className:"flex h-full w-full flex-col",children:o})]})}):b.jsxs("div",{ref:a,className:"group peer hidden text-sidebar-foreground md:block","data-state":l,"data-collapsible":l==="collapsed"?n:"","data-variant":t,"data-side":e,children:[b.jsx("div",{className:q("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),b.jsx("div",{className:q("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...i,children:b.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:o})})]})});UR.displayName="Sidebar";const HR=g.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:o}=Id();return b.jsxs(Xc,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:q("h-7 w-7",e),onClick:i=>{t==null||t(i),o()},...n,children:[b.jsx(EV,{}),b.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});HR.displayName="SidebarTrigger";const WR=g.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Id();return b.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:q("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});WR.displayName="SidebarRail";const KR=g.forwardRef(({className:e,...t},n)=>b.jsx("main",{ref:n,className:q("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));KR.displayName="SidebarInset";const GR=g.forwardRef(({className:e,...t},n)=>b.jsx(Ex,{ref:n,"data-sidebar":"input",className:q("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));GR.displayName="SidebarInput";const YR=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,"data-sidebar":"header",className:q("flex flex-col gap-2 p-2",e),...t}));YR.displayName="SidebarHeader";const XR=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,"data-sidebar":"footer",className:q("flex flex-col gap-2 p-2",e),...t}));XR.displayName="SidebarFooter";const QR=g.forwardRef(({className:e,...t},n)=>b.jsx(gS,{ref:n,"data-sidebar":"separator",className:q("mx-2 w-auto bg-sidebar-border",e),...t}));QR.displayName="SidebarSeparator";const ZR=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,"data-sidebar":"content",className:q("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ZR.displayName="SidebarContent";const JR=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,"data-sidebar":"group",className:q("relative flex w-full min-w-0 flex-col p-2",e),...t}));JR.displayName="SidebarGroup";const e7=g.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Fi:"div";return b.jsx(o,{ref:r,"data-sidebar":"group-label",className:q("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...n})});e7.displayName="SidebarGroupLabel";const t7=g.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Fi:"button";return b.jsx(o,{ref:r,"data-sidebar":"group-action",className:q("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});t7.displayName="SidebarGroupAction";const n7=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,"data-sidebar":"group-content",className:q("w-full text-sm",e),...t}));n7.displayName="SidebarGroupContent";const r7=g.forwardRef(({className:e,...t},n)=>b.jsx("ul",{ref:n,"data-sidebar":"menu",className:q("flex w-full min-w-0 flex-col gap-1",e),...t}));r7.displayName="SidebarMenu";const o7=g.forwardRef(({className:e,...t},n)=>b.jsx("li",{ref:n,"data-sidebar":"menu-item",className:q("group/menu-item relative",e),...t}));o7.displayName="SidebarMenuItem";const Swe=ei("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),i7=g.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a},s)=>{const l=e?Fi:"button",{isMobile:c,state:u}=Id(),d=b.jsx(l,{ref:s,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:q(Swe({variant:n,size:r}),i),...a});return o?(typeof o=="string"&&(o={children:o}),b.jsxs(BR,{children:[b.jsx(jR,{asChild:!0,children:d}),b.jsx(wS,{side:"right",align:"center",hidden:u!=="collapsed"||c,...o})]})):d});i7.displayName="SidebarMenuButton";const a7=g.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const i=t?Fi:"button";return b.jsx(i,{ref:o,"data-sidebar":"menu-action",className:q("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...r})});a7.displayName="SidebarMenuAction";const s7=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:q("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));s7.displayName="SidebarMenuBadge";const l7=g.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=g.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return b.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:q("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&b.jsx(Lr,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),b.jsx(Lr,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});l7.displayName="SidebarMenuSkeleton";const c7=g.forwardRef(({className:e,...t},n)=>b.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:q("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));c7.displayName="SidebarMenuSub";const u7=g.forwardRef(({...e},t)=>b.jsx("li",{ref:t,...e}));u7.displayName="SidebarMenuSubItem";const d7=g.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},i)=>{const a=e?Fi:"a";return b.jsx(a,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,className:q("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",`${n?"font-bold bg-white rounded-lg shadow-md text-[12px]":""}`,r),...o})});d7.displayName="SidebarMenuSubButton";var f7=["PageUp","PageDown"],h7=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],p7={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},ql="Slider",[SS,Cwe,Ewe]=Qo(ql),[g7]=kt(ql,[Ewe]),[Pwe,hm]=g7(ql),m7=g.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:a="horizontal",disabled:s=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:h,...m}=e,v=g.useRef(new Set),y=g.useRef(0),x=a==="horizontal"?Owe:Twe,[S=[],C]=Ot({prop:u,defaultProp:c,onChange:A=>{var N;(N=[...v.current][y.current])==null||N.focus(),d(A)}}),E=g.useRef(S);function P(A){const D=Dwe(S,A);M(A,D)}function _(A){M(A,y.current)}function T(){const A=E.current[y.current];S[y.current]!==A&&f(S)}function M(A,D,{commit:N}={commit:!1}){const R=Lwe(i),U=Fwe(Math.round((A-r)/i)*i+r,R),L=Od(U,[r,o]);C((V=[])=>{const j=kwe(V,L,D);if(Iwe(j,l*i)){y.current=j.indexOf(L);const H=String(j)!==String(V);return H&&N&&f(j),H?j:V}else return V})}return b.jsx(Pwe,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:o,valueIndexToChangeRef:y,thumbs:v.current,values:S,orientation:a,form:h,children:b.jsx(SS.Provider,{scope:e.__scopeSlider,children:b.jsx(SS.Slot,{scope:e.__scopeSlider,children:b.jsx(x,{"aria-disabled":s,"data-disabled":s?"":void 0,...m,ref:t,onPointerDown:ne(m.onPointerDown,()=>{s||(E.current=S)}),min:r,max:o,inverted:p,onSlideStart:s?void 0:P,onSlideMove:s?void 0:_,onSlideEnd:s?void 0:T,onHomeKeyDown:()=>!s&&M(r,0,{commit:!0}),onEndKeyDown:()=>!s&&M(o,S.length-1,{commit:!0}),onStepKeyDown:({event:A,direction:D})=>{if(!s){const U=f7.includes(A.key)||A.shiftKey&&h7.includes(A.key)?10:1,L=y.current,V=S[L],j=i*U*D;M(V+j,L,{commit:!0})}}})})})})});m7.displayName=ql;var[v7,y7]=g7(ql,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Owe=g.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:a,onSlideMove:s,onSlideEnd:l,onStepKeyDown:c,...u}=e,[d,f]=g.useState(null),p=je(t,x=>f(x)),h=g.useRef(void 0),m=Wr(o),v=m==="ltr",y=v&&!i||!v&&i;function w(x){const S=h.current||d.getBoundingClientRect(),C=[0,S.width],P=PS(C,y?[n,r]:[r,n]);return h.current=S,P(x-S.left)}return b.jsx(v7,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:b.jsx(b7,{dir:m,"data-orientation":"horizontal",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=w(x.clientX);a==null||a(S)},onSlideMove:x=>{const S=w(x.clientX);s==null||s(S)},onSlideEnd:()=>{h.current=void 0,l==null||l()},onStepKeyDown:x=>{const C=p7[y?"from-left":"from-right"].includes(x.key);c==null||c({event:x,direction:C?-1:1})}})})}),Twe=g.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:a,onSlideEnd:s,onStepKeyDown:l,...c}=e,u=g.useRef(null),d=je(t,u),f=g.useRef(void 0),p=!o;function h(m){const v=f.current||u.current.getBoundingClientRect(),y=[0,v.height],x=PS(y,p?[r,n]:[n,r]);return f.current=v,x(m-v.top)}return b.jsx(v7,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:b.jsx(b7,{"data-orientation":"vertical",...c,ref:d,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:m=>{const v=h(m.clientY);i==null||i(v)},onSlideMove:m=>{const v=h(m.clientY);a==null||a(v)},onSlideEnd:()=>{f.current=void 0,s==null||s()},onStepKeyDown:m=>{const y=p7[p?"from-bottom":"from-top"].includes(m.key);l==null||l({event:m,direction:y?-1:1})}})})}),b7=g.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:a,onEndKeyDown:s,onStepKeyDown:l,...c}=e,u=hm(ql,n);return b.jsx(ye.span,{...c,ref:t,onKeyDown:ne(e.onKeyDown,d=>{d.key==="Home"?(a(d),d.preventDefault()):d.key==="End"?(s(d),d.preventDefault()):f7.concat(h7).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:ne(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(f)?f.focus():r(d)}),onPointerMove:ne(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:ne(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),i(d))})})}),w7="SliderTrack",x7=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=hm(w7,n);return b.jsx(ye.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});x7.displayName=w7;var CS="SliderRange",S7=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=hm(CS,n),i=y7(CS,n),a=g.useRef(null),s=je(t,a),l=o.values.length,c=o.values.map(f=>P7(f,o.min,o.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return b.jsx(ye.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:s,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:d+"%"}})});S7.displayName=CS;var ES="SliderThumb",C7=g.forwardRef((e,t)=>{const n=Cwe(e.__scopeSlider),[r,o]=g.useState(null),i=je(t,s=>o(s)),a=g.useMemo(()=>r?n().findIndex(s=>s.ref.current===r):-1,[n,r]);return b.jsx(_we,{...e,ref:i,index:a})}),_we=g.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,a=hm(ES,n),s=y7(ES,n),[l,c]=g.useState(null),u=je(t,w=>c(w)),d=l?a.form||!!l.closest("form"):!0,f=Ju(l),p=a.values[r],h=p===void 0?0:P7(p,a.min,a.max),m=Awe(r,a.values.length),v=f==null?void 0:f[s.size],y=v?Nwe(v,h,s.direction):0;return g.useEffect(()=>{if(l)return a.thumbs.add(l),()=>{a.thumbs.delete(l)}},[l,a.thumbs]),b.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${h}% + ${y}px)`},children:[b.jsx(SS.ItemSlot,{scope:e.__scopeSlider,children:b.jsx(ye.span,{role:"slider","aria-label":e["aria-label"]||m,"aria-valuemin":a.min,"aria-valuenow":p,"aria-valuemax":a.max,"aria-orientation":a.orientation,"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,tabIndex:a.disabled?void 0:0,...i,ref:u,style:p===void 0?{display:"none"}:e.style,onFocus:ne(e.onFocus,()=>{a.valueIndexToChangeRef.current=r})})}),d&&b.jsx(E7,{name:o??(a.name?a.name+(a.values.length>1?"[]":""):void 0),form:a.form,value:p},r)]})});C7.displayName=ES;var Mwe="RadioBubbleInput",E7=g.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=g.useRef(null),i=je(o,r),a=wl(t);return g.useEffect(()=>{const s=o.current;if(!s)return;const l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==t&&u){const d=new Event("input",{bubbles:!0});u.call(s,t),s.dispatchEvent(d)}},[a,t]),b.jsx(ye.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});E7.displayName=Mwe;function kwe(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function P7(e,t,n){const i=100/(n-t)*(e-t);return Od(i,[0,100])}function Awe(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function Dwe(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Nwe(e,t,n){const r=e/2,i=PS([0,50],[0,r]);return(r-i(t)*n)*n}function $we(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Iwe(e,t){if(t>0){const n=$we(e);return Math.min(...n)>=t}return!0}function PS(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Lwe(e){return(String(e).split(".")[1]||"").length}function Fwe(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var O7=m7,Rwe=x7,Bwe=S7,jwe=C7;const T7=g.forwardRef(({className:e,...t},n)=>b.jsxs(O7,{ref:n,className:q("relative flex w-full touch-none select-none items-center",e),...t,children:[b.jsx(Rwe,{className:"relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",children:b.jsx(Bwe,{className:"absolute h-full bg-primary"})}),b.jsx(jwe,{className:"block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"})]}));T7.displayName=O7.displayName;var zwe=(e,t,n,r,o,i,a,s)=>{let l=document.documentElement,c=["light","dark"];function u(p){(Array.isArray(e)?e:[e]).forEach(h=>{let m=h==="class",v=m&&i?o.map(y=>i[y]||y):o;m?(l.classList.remove(...v),l.classList.add(i&&i[p]?i[p]:p)):l.setAttribute(h,p)}),d(p)}function d(p){s&&c.includes(p)&&(l.style.colorScheme=p)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)u(r);else try{let p=localStorage.getItem(t)||n,h=a&&p==="system"?f():p;u(h)}catch{}},qwe=g.createContext(void 0),Vwe={setTheme:e=>{},themes:[]},Uwe=()=>{var e;return(e=g.useContext(qwe))!=null?e:Vwe};g.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:a,themes:s,nonce:l,scriptProps:c})=>{let u=JSON.stringify([n,t,i,e,s,a,r,o]).slice(1,-1);return g.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${zwe.toString()})(${u})`}})});function Hwe(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Wwe=e=>{switch(e){case"success":return Ywe;case"info":return Qwe;case"warning":return Xwe;case"error":return Zwe;default:return null}},Kwe=Array(12).fill(0),Gwe=({visible:e,className:t})=>O.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},O.createElement("div",{className:"sonner-spinner"},Kwe.map((n,r)=>O.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Ywe=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Xwe=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Qwe=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Zwe=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Jwe=O.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},O.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),O.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),e1e=()=>{const[e,t]=O.useState(document.hidden);return O.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let OS=1;class t1e{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:OS++,a=this.toasts.find(l=>l.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...o,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,a;const s=o.then(async c=>{if(a=["resolve",c],O.isValidElement(c))i=!1,this.create({id:r,type:"default",message:c});else if(r1e(c)&&!c.ok){i=!1;const d=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,h=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...h})}else if(c instanceof Error){i=!1;const d=typeof n.error=="function"?await n.error(c):n.error,f=typeof n.description=="function"?await n.description(c):n.description,h=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:f,...h})}else if(n.success!==void 0){i=!1;const d=typeof n.success=="function"?await n.success(c):n.success,f=typeof n.description=="function"?await n.description(c):n.description,h=typeof d=="object"&&!O.isValidElement(d)?d:{message:d};this.create({id:r,type:"success",description:f,...h})}}).catch(async c=>{if(a=["reject",c],n.error!==void 0){i=!1;const u=typeof n.error=="function"?await n.error(c):n.error,d=typeof n.description=="function"?await n.description(c):n.description,p=typeof u=="object"&&!O.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:d,...p})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,u)=>s.then(()=>a[0]==="reject"?u(a[1]):c(a[1])).catch(u));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||OS++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Zn=new t1e,n1e=(e,t)=>{const n=(t==null?void 0:t.id)||OS++;return Zn.addToast({title:e,...t,id:n}),n},r1e=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",o1e=n1e,i1e=()=>Zn.toasts,a1e=()=>Zn.getActiveToasts();Object.assign(o1e,{success:Zn.success,info:Zn.info,warning:Zn.warning,error:Zn.error,custom:Zn.custom,message:Zn.message,promise:Zn.promise,dismiss:Zn.dismiss,loading:Zn.loading},{getHistory:i1e,getToasts:a1e}),Hwe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function pm(e){return e.label!==void 0}const s1e=3,l1e="24px",c1e="16px",_7=4e3,u1e=356,d1e=14,f1e=45,h1e=200;function Bo(...e){return e.filter(Boolean).join(" ")}function p1e(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const g1e=e=>{var t,n,r,o,i,a,s,l,c;const{invert:u,toast:d,unstyled:f,interacting:p,setHeights:h,visibleToasts:m,heights:v,index:y,toasts:w,expanded:x,removeToast:S,defaultRichColors:C,closeButton:E,style:P,cancelButtonStyle:_,actionButtonStyle:T,className:M="",descriptionClassName:A="",duration:D,position:N,gap:R,expandByDefault:U,classNames:L,icons:V,closeButtonAriaLabel:j="Close toast"}=e,[H,se]=O.useState(null),[pe,W]=O.useState(null),[Y,F]=O.useState(!1),[ee,fe]=O.useState(!1),[Z,J]=O.useState(!1),[Q,oe]=O.useState(!1),[le,z]=O.useState(!1),[_e,X]=O.useState(0),[be,$e]=O.useState(0),Ve=O.useRef(d.duration||D||_7),ae=O.useRef(null),Ee=O.useRef(null),Xe=y===0,$=y+1<=m,B=d.type,G=d.dismissible!==!1,he=d.className||"",re=d.descriptionClassName||"",ce=O.useMemo(()=>v.findIndex(Me=>Me.toastId===d.id)||0,[v,d.id]),Oe=O.useMemo(()=>{var Me;return(Me=d.closeButton)!=null?Me:E},[d.closeButton,E]),Ge=O.useMemo(()=>d.duration||D||_7,[d.duration,D]),Qe=O.useRef(0),et=O.useRef(0),$t=O.useRef(0),rt=O.useRef(null),[gt,Jt]=N.split("-"),en=O.useMemo(()=>v.reduce((Me,ke,ct)=>ct>=ce?Me:Me+ke.height,0),[v,ce]),Wn=e1e(),vn=d.invert||u,$n=B==="loading";et.current=O.useMemo(()=>ce*R+en,[ce,en]),O.useEffect(()=>{Ve.current=Ge},[Ge]),O.useEffect(()=>{F(!0)},[]),O.useEffect(()=>{const Me=Ee.current;if(Me){const ke=Me.getBoundingClientRect().height;return $e(ke),h(ct=>[{toastId:d.id,height:ke,position:d.position},...ct]),()=>h(ct=>ct.filter(ft=>ft.toastId!==d.id))}},[h,d.id]),O.useLayoutEffect(()=>{if(!Y)return;const Me=Ee.current,ke=Me.style.height;Me.style.height="auto";const ct=Me.getBoundingClientRect().height;Me.style.height=ke,$e(ct),h(ft=>ft.find(ut=>ut.toastId===d.id)?ft.map(ut=>ut.toastId===d.id?{...ut,height:ct}:ut):[{toastId:d.id,height:ct,position:d.position},...ft])},[Y,d.title,d.description,h,d.id,d.jsx,d.action,d.cancel]);const Ne=O.useCallback(()=>{fe(!0),X(et.current),h(Me=>Me.filter(ke=>ke.toastId!==d.id)),setTimeout(()=>{S(d)},h1e)},[d,S,h,et]);O.useEffect(()=>{if(d.promise&&B==="loading"||d.duration===1/0||d.type==="loading")return;let Me;return x||p||Wn?(()=>{if($t.current<Qe.current){const ft=new Date().getTime()-Qe.current;Ve.current=Ve.current-ft}$t.current=new Date().getTime()})():(()=>{Ve.current!==1/0&&(Qe.current=new Date().getTime(),Me=setTimeout(()=>{d.onAutoClose==null||d.onAutoClose.call(d,d),Ne()},Ve.current))})(),()=>clearTimeout(Me)},[x,p,d,B,Wn,Ne]),O.useEffect(()=>{d.delete&&(Ne(),d.onDismiss==null||d.onDismiss.call(d,d))},[Ne,d.delete]);function Te(){var Me;if(V!=null&&V.loading){var ke;return O.createElement("div",{className:Bo(L==null?void 0:L.loader,d==null||(ke=d.classNames)==null?void 0:ke.loader,"sonner-loader"),"data-visible":B==="loading"},V.loading)}return O.createElement(Gwe,{className:Bo(L==null?void 0:L.loader,d==null||(Me=d.classNames)==null?void 0:Me.loader),visible:B==="loading"})}const Ie=d.icon||(V==null?void 0:V[B])||Wwe(B);var we,ze;return O.createElement("li",{tabIndex:0,ref:Ee,className:Bo(M,he,L==null?void 0:L.toast,d==null||(t=d.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[B],d==null||(n=d.classNames)==null?void 0:n[B]),"data-sonner-toast":"","data-rich-colors":(we=d.richColors)!=null?we:C,"data-styled":!(d.jsx||d.unstyled||f),"data-mounted":Y,"data-promise":!!d.promise,"data-swiped":le,"data-removed":ee,"data-visible":$,"data-y-position":gt,"data-x-position":Jt,"data-index":y,"data-front":Xe,"data-swiping":Z,"data-dismissible":G,"data-type":B,"data-invert":vn,"data-swipe-out":Q,"data-swipe-direction":pe,"data-expanded":!!(x||U&&Y),"data-testid":d.testId,style:{"--index":y,"--toasts-before":y,"--z-index":w.length-y,"--offset":`${ee?_e:et.current}px`,"--initial-height":U?"auto":`${be}px`,...P,...d.style},onDragEnd:()=>{J(!1),se(null),rt.current=null},onPointerDown:Me=>{Me.button!==2&&($n||!G||(ae.current=new Date,X(et.current),Me.target.setPointerCapture(Me.pointerId),Me.target.tagName!=="BUTTON"&&(J(!0),rt.current={x:Me.clientX,y:Me.clientY})))},onPointerUp:()=>{var Me,ke,ct;if(Q||!G)return;rt.current=null;const ft=Number(((Me=Ee.current)==null?void 0:Me.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cn=Number(((ke=Ee.current)==null?void 0:ke.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ut=new Date().getTime()-((ct=ae.current)==null?void 0:ct.getTime()),mt=H==="x"?ft:Cn,Hr=Math.abs(mt)/ut;if(Math.abs(mt)>=f1e||Hr>.11){X(et.current),d.onDismiss==null||d.onDismiss.call(d,d),W(H==="x"?ft>0?"right":"left":Cn>0?"down":"up"),Ne(),oe(!0);return}else{var En,nr;(En=Ee.current)==null||En.style.setProperty("--swipe-amount-x","0px"),(nr=Ee.current)==null||nr.style.setProperty("--swipe-amount-y","0px")}z(!1),J(!1),se(null)},onPointerMove:Me=>{var ke,ct,ft;if(!rt.current||!G||((ke=window.getSelection())==null?void 0:ke.toString().length)>0)return;const ut=Me.clientY-rt.current.y,mt=Me.clientX-rt.current.x;var Hr;const En=(Hr=e.swipeDirections)!=null?Hr:p1e(N);!H&&(Math.abs(mt)>1||Math.abs(ut)>1)&&se(Math.abs(mt)>Math.abs(ut)?"x":"y");let nr={x:0,y:0};const xf=Xo=>1/(1.5+Math.abs(Xo)/20);if(H==="y"){if(En.includes("top")||En.includes("bottom"))if(En.includes("top")&&ut<0||En.includes("bottom")&&ut>0)nr.y=ut;else{const Xo=ut*xf(ut);nr.y=Math.abs(Xo)<Math.abs(ut)?Xo:ut}}else if(H==="x"&&(En.includes("left")||En.includes("right")))if(En.includes("left")&&mt<0||En.includes("right")&&mt>0)nr.x=mt;else{const Xo=mt*xf(mt);nr.x=Math.abs(Xo)<Math.abs(mt)?Xo:mt}(Math.abs(nr.x)>0||Math.abs(nr.y)>0)&&z(!0),(ct=Ee.current)==null||ct.style.setProperty("--swipe-amount-x",`${nr.x}px`),(ft=Ee.current)==null||ft.style.setProperty("--swipe-amount-y",`${nr.y}px`)}},Oe&&!d.jsx&&B!=="loading"?O.createElement("button",{"aria-label":j,"data-disabled":$n,"data-close-button":!0,onClick:$n||!G?()=>{}:()=>{Ne(),d.onDismiss==null||d.onDismiss.call(d,d)},className:Bo(L==null?void 0:L.closeButton,d==null||(r=d.classNames)==null?void 0:r.closeButton)},(ze=V==null?void 0:V.close)!=null?ze:Jwe):null,(B||d.icon||d.promise)&&d.icon!==null&&((V==null?void 0:V[B])!==null||d.icon)?O.createElement("div",{"data-icon":"",className:Bo(L==null?void 0:L.icon,d==null||(o=d.classNames)==null?void 0:o.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Te():null,d.type!=="loading"?Ie:null):null,O.createElement("div",{"data-content":"",className:Bo(L==null?void 0:L.content,d==null||(i=d.classNames)==null?void 0:i.content)},O.createElement("div",{"data-title":"",className:Bo(L==null?void 0:L.title,d==null||(a=d.classNames)==null?void 0:a.title)},d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title),d.description?O.createElement("div",{"data-description":"",className:Bo(A,re,L==null?void 0:L.description,d==null||(s=d.classNames)==null?void 0:s.description)},typeof d.description=="function"?d.description():d.description):null),O.isValidElement(d.cancel)?d.cancel:d.cancel&&pm(d.cancel)?O.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||_,onClick:Me=>{pm(d.cancel)&&G&&(d.cancel.onClick==null||d.cancel.onClick.call(d.cancel,Me),Ne())},className:Bo(L==null?void 0:L.cancelButton,d==null||(l=d.classNames)==null?void 0:l.cancelButton)},d.cancel.label):null,O.isValidElement(d.action)?d.action:d.action&&pm(d.action)?O.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||T,onClick:Me=>{pm(d.action)&&(d.action.onClick==null||d.action.onClick.call(d.action,Me),!Me.defaultPrevented&&Ne())},className:Bo(L==null?void 0:L.actionButton,d==null||(c=d.classNames)==null?void 0:c.actionButton)},d.action.label):null)};function M7(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function m1e(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,a=i?"--mobile-offset":"--offset",s=i?c1e:l1e;function l(c){["top","right","bottom","left"].forEach(u=>{n[`${a}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${a}-${c}`]=s:n[`${a}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(s)}),n}const v1e=O.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:c,offset:u,mobileOffset:d,theme:f="light",richColors:p,duration:h,style:m,visibleToasts:v=s1e,toastOptions:y,dir:w=M7(),gap:x=d1e,icons:S,containerAriaLabel:C="Notifications"}=t,[E,P]=O.useState([]),_=O.useMemo(()=>r?E.filter(Y=>Y.toasterId===r):E.filter(Y=>!Y.toasterId),[E,r]),T=O.useMemo(()=>Array.from(new Set([i].concat(_.filter(Y=>Y.position).map(Y=>Y.position)))),[_,i]),[M,A]=O.useState([]),[D,N]=O.useState(!1),[R,U]=O.useState(!1),[L,V]=O.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),j=O.useRef(null),H=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),se=O.useRef(null),pe=O.useRef(!1),W=O.useCallback(Y=>{P(F=>{var ee;return(ee=F.find(fe=>fe.id===Y.id))!=null&&ee.delete||Zn.dismiss(Y.id),F.filter(({id:fe})=>fe!==Y.id)})},[]);return O.useEffect(()=>Zn.subscribe(Y=>{if(Y.dismiss){requestAnimationFrame(()=>{P(F=>F.map(ee=>ee.id===Y.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{xr.flushSync(()=>{P(F=>{const ee=F.findIndex(fe=>fe.id===Y.id);return ee!==-1?[...F.slice(0,ee),{...F[ee],...Y},...F.slice(ee+1)]:[Y,...F]})})})}),[E]),O.useEffect(()=>{if(f!=="system"){V(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:F})=>{V(F?"dark":"light")})}catch{Y.addListener(({matches:ee})=>{try{V(ee?"dark":"light")}catch(fe){console.error(fe)}})}},[f]),O.useEffect(()=>{E.length<=1&&N(!1)},[E]),O.useEffect(()=>{const Y=F=>{var ee;if(a.every(J=>F[J]||F.code===J)){var Z;N(!0),(Z=j.current)==null||Z.focus()}F.code==="Escape"&&(document.activeElement===j.current||(ee=j.current)!=null&&ee.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[a]),O.useEffect(()=>{if(j.current)return()=>{se.current&&(se.current.focus({preventScroll:!0}),se.current=null,pe.current=!1)}},[j.current]),O.createElement("section",{ref:n,"aria-label":`${C} ${H}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((Y,F)=>{var ee;const[fe,Z]=Y.split("-");return _.length?O.createElement("ol",{key:Y,dir:w==="auto"?M7():w,tabIndex:-1,ref:j,className:c,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":fe,"data-x-position":Z,style:{"--front-toast-height":`${((ee=M[0])==null?void 0:ee.height)||0}px`,"--width":`${u1e}px`,"--gap":`${x}px`,...m,...m1e(u,d)},onBlur:J=>{pe.current&&!J.currentTarget.contains(J.relatedTarget)&&(pe.current=!1,se.current&&(se.current.focus({preventScroll:!0}),se.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||pe.current||(pe.current=!0,se.current=J.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{R||N(!1)},onDragEnd:()=>N(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||U(!0)},onPointerUp:()=>U(!1)},_.filter(J=>!J.position&&F===0||J.position===Y).map((J,Q)=>{var oe,le;return O.createElement(g1e,{key:J.id,icons:S,index:Q,toast:J,defaultRichColors:p,duration:(oe=y==null?void 0:y.duration)!=null?oe:h,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:o,visibleToasts:v,closeButton:(le=y==null?void 0:y.closeButton)!=null?le:l,interacting:R,position:Y,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,closeButtonAriaLabel:y==null?void 0:y.closeButtonAriaLabel,removeToast:W,toasts:_.filter(z=>z.position==J.position),heights:M.filter(z=>z.position==J.position),setHeights:A,expandByDefault:s,gap:x,expanded:D,swipeDirections:t.swipeDirections})})):null}))}),y1e=({...e})=>{const{theme:t="system"}=Uwe();return b.jsx(v1e,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var gm="Switch",[b1e]=kt(gm),[w1e,x1e]=b1e(gm),k7=g.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:c,form:u,...d}=e,[f,p]=g.useState(null),h=je(t,x=>p(x)),m=g.useRef(!1),v=f?u||!!f.closest("form"):!0,[y,w]=Ot({prop:o,defaultProp:i??!1,onChange:c,caller:gm});return b.jsxs(w1e,{scope:n,checked:y,disabled:s,children:[b.jsx(ye.button,{type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":$7(y),"data-disabled":s?"":void 0,disabled:s,value:l,...d,ref:h,onClick:ne(e.onClick,x=>{w(S=>!S),v&&(m.current=x.isPropagationStopped(),m.current||x.stopPropagation())})}),v&&b.jsx(N7,{control:f,bubbles:!m.current,name:r,value:l,checked:y,required:a,disabled:s,form:u,style:{transform:"translateX(-100%)"}})]})});k7.displayName=gm;var A7="SwitchThumb",D7=g.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=x1e(A7,n);return b.jsx(ye.span,{"data-state":$7(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});D7.displayName=A7;var S1e="SwitchBubbleInput",N7=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const a=g.useRef(null),s=je(a,i),l=wl(n),c=Ju(t);return g.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&p){const h=new Event("click",{bubbles:r});p.call(u,n),u.dispatchEvent(h)}},[l,n,r]),b.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});N7.displayName=S1e;function $7(e){return e?"checked":"unchecked"}var I7=k7,C1e=D7;const L7=g.forwardRef(({className:e,...t},n)=>b.jsx(I7,{className:q("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:b.jsx(C1e,{className:q("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));L7.displayName=I7.displayName;const F7=g.forwardRef(({className:e,...t},n)=>b.jsx("div",{className:"relative w-full overflow-auto",children:b.jsx("table",{ref:n,className:q("w-full caption-bottom text-sm",e),...t})}));F7.displayName="Table";const R7=g.forwardRef(({className:e,...t},n)=>b.jsx("thead",{ref:n,className:q("[&_tr]:border-b",e),...t}));R7.displayName="TableHeader";const B7=g.forwardRef(({className:e,...t},n)=>b.jsx("tbody",{ref:n,className:q("[&_tr:last-child]:border-0",e),...t}));B7.displayName="TableBody";const j7=g.forwardRef(({className:e,...t},n)=>b.jsx("tfoot",{ref:n,className:q("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));j7.displayName="TableFooter";const z7=g.forwardRef(({className:e,...t},n)=>b.jsx("tr",{ref:n,className:q("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));z7.displayName="TableRow";const q7=g.forwardRef(({className:e,...t},n)=>b.jsx("th",{ref:n,className:q("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));q7.displayName="TableHead";const V7=g.forwardRef(({className:e,...t},n)=>b.jsx("td",{ref:n,className:q("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t}));V7.displayName="TableCell";const U7=g.forwardRef(({className:e,...t},n)=>b.jsx("caption",{ref:n,className:q("mt-4 text-sm text-muted-foreground",e),...t}));U7.displayName="TableCaption";var mm="Tabs",[E1e]=kt(mm,[Lo]),H7=Lo(),[P1e,TS]=E1e(mm),W7=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...c}=e,u=Wr(s),[d,f]=Ot({prop:r,onChange:o,defaultProp:i??"",caller:mm});return b.jsx(P1e,{scope:n,baseId:Et(),value:d,onValueChange:f,orientation:a,dir:u,activationMode:l,children:b.jsx(ye.div,{dir:u,"data-orientation":a,...c,ref:t})})});W7.displayName=mm;var K7="TabsList",G7=g.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=TS(K7,n),a=H7(n);return b.jsx(ld,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:b.jsx(ye.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});G7.displayName=K7;var Y7="TabsTrigger",X7=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=TS(Y7,n),s=H7(n),l=J7(a.baseId,r),c=e9(a.baseId,r),u=r===a.value;return b.jsx(cd,{asChild:!0,...s,focusable:!o,active:u,children:b.jsx(ye.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...i,ref:t,onMouseDown:ne(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?a.onValueChange(r):d.preventDefault()}),onKeyDown:ne(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&a.onValueChange(r)}),onFocus:ne(e.onFocus,()=>{const d=a.activationMode!=="manual";!u&&!o&&d&&a.onValueChange(r)})})})});X7.displayName=Y7;var Q7="TabsContent",Z7=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=TS(Q7,n),l=J7(s.baseId,r),c=e9(s.baseId,r),u=r===s.value,d=g.useRef(u);return g.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),b.jsx(Tt,{present:o||u,children:({present:f})=>b.jsx(ye.div,{"data-state":u?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:c,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});Z7.displayName=Q7;function J7(e,t){return`${e}-trigger-${t}`}function e9(e,t){return`${e}-content-${t}`}var O1e=W7,t9=G7,n9=X7,r9=Z7;const T1e=O1e,o9=g.forwardRef(({className:e,...t},n)=>b.jsx(t9,{ref:n,className:q("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));o9.displayName=t9.displayName;const i9=g.forwardRef(({className:e,...t},n)=>b.jsx(n9,{ref:n,className:q("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));i9.displayName=n9.displayName;const a9=g.forwardRef(({className:e,...t},n)=>b.jsx(r9,{ref:n,className:q("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));a9.displayName=r9.displayName;const s9=g.forwardRef(({className:e,...t},n)=>b.jsx("textarea",{className:q("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));s9.displayName="Textarea";var _S="ToastProvider",[MS,_1e,M1e]=Qo("Toast"),[l9]=kt("Toast",[M1e]),[k1e,vm]=l9(_S),c9=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,l]=g.useState(null),[c,u]=g.useState(0),d=g.useRef(!1),f=g.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${_S}\`. Expected non-empty \`string\`.`),b.jsx(MS.Provider,{scope:t,children:b.jsx(k1e,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:c,viewport:s,onViewportChange:l,onToastAdd:g.useCallback(()=>u(p=>p+1),[]),onToastRemove:g.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:a})})};c9.displayName=_S;var u9="ToastViewport",A1e=["F8"],kS="toast.viewportPause",AS="toast.viewportResume",d9=g.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=A1e,label:o="Notifications ({hotkey})",...i}=e,a=vm(u9,n),s=_1e(n),l=g.useRef(null),c=g.useRef(null),u=g.useRef(null),d=g.useRef(null),f=je(t,d,a.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=a.toastCount>0;g.useEffect(()=>{const v=y=>{var x;r.length!==0&&r.every(S=>y[S]||y.code===S)&&((x=d.current)==null||x.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),g.useEffect(()=>{const v=l.current,y=d.current;if(h&&v&&y){const w=()=>{if(!a.isClosePausedRef.current){const E=new CustomEvent(kS);y.dispatchEvent(E),a.isClosePausedRef.current=!0}},x=()=>{if(a.isClosePausedRef.current){const E=new CustomEvent(AS);y.dispatchEvent(E),a.isClosePausedRef.current=!1}},S=E=>{!v.contains(E.relatedTarget)&&x()},C=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",w),v.addEventListener("focusout",S),v.addEventListener("pointermove",w),v.addEventListener("pointerleave",C),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",w),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",w),v.removeEventListener("pointerleave",C),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[h,a.isClosePausedRef]);const m=g.useCallback(({tabbingDirection:v})=>{const w=s().map(x=>{const S=x.ref.current,C=[S,...U1e(S)];return v==="forwards"?C:C.reverse()});return(v==="forwards"?w.reverse():w).flat()},[s]);return g.useEffect(()=>{const v=d.current;if(v){const y=w=>{var C,E,P;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const _=document.activeElement,T=w.shiftKey;if(w.target===v&&T){(C=c.current)==null||C.focus();return}const D=m({tabbingDirection:T?"backwards":"forwards"}),N=D.findIndex(R=>R===_);$S(D.slice(N+1))?w.preventDefault():T?(E=c.current)==null||E.focus():(P=u.current)==null||P.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[s,m]),b.jsxs(BG,{ref:l,role:"region","aria-label":o.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:h?void 0:"none"},children:[h&&b.jsx(DS,{ref:c,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"forwards"});$S(v)}}),b.jsx(MS.Slot,{scope:n,children:b.jsx(ye.ol,{tabIndex:-1,...i,ref:f})}),h&&b.jsx(DS,{ref:u,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"backwards"});$S(v)}})]})});d9.displayName=u9;var f9="ToastFocusProxy",DS=g.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=vm(f9,n);return b.jsx(Xg,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var c;const s=a.relatedTarget;!((c=i.viewport)!=null&&c.contains(s))&&r()}})});DS.displayName=f9;var Ld="Toast",D1e="toast.swipeStart",N1e="toast.swipeMove",$1e="toast.swipeCancel",I1e="toast.swipeEnd",h9=g.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[s,l]=Ot({prop:r,defaultProp:o??!0,onChange:i,caller:Ld});return b.jsx(Tt,{present:n||s,children:b.jsx(R1e,{open:s,...a,ref:t,onClose:()=>l(!1),onPause:ht(e.onPause),onResume:ht(e.onResume),onSwipeStart:ne(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ne(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:ne(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ne(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});h9.displayName=Ld;var[L1e,F1e]=l9(Ld,{onClose(){}}),R1e=g.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:p,...h}=e,m=vm(Ld,n),[v,y]=g.useState(null),w=je(t,R=>y(R)),x=g.useRef(null),S=g.useRef(null),C=o||m.duration,E=g.useRef(0),P=g.useRef(C),_=g.useRef(0),{onToastAdd:T,onToastRemove:M}=m,A=ht(()=>{var U;(v==null?void 0:v.contains(document.activeElement))&&((U=m.viewport)==null||U.focus()),a()}),D=g.useCallback(R=>{!R||R===1/0||(window.clearTimeout(_.current),E.current=new Date().getTime(),_.current=window.setTimeout(A,R))},[A]);g.useEffect(()=>{const R=m.viewport;if(R){const U=()=>{D(P.current),c==null||c()},L=()=>{const V=new Date().getTime()-E.current;P.current=P.current-V,window.clearTimeout(_.current),l==null||l()};return R.addEventListener(kS,L),R.addEventListener(AS,U),()=>{R.removeEventListener(kS,L),R.removeEventListener(AS,U)}}},[m.viewport,C,l,c,D]),g.useEffect(()=>{i&&!m.isClosePausedRef.current&&D(C)},[i,C,m.isClosePausedRef,D]),g.useEffect(()=>(T(),()=>M()),[T,M]);const N=g.useMemo(()=>v?w9(v):null,[v]);return m.viewport?b.jsxs(b.Fragment,{children:[N&&b.jsx(B1e,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:N}),b.jsx(L1e,{scope:n,onClose:A,children:Oc.createPortal(b.jsx(MS.ItemSlot,{scope:n,children:b.jsx(RG,{asChild:!0,onEscapeKeyDown:ne(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||A(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(ye.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection,...h,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ne(e.onKeyDown,R=>{R.key==="Escape"&&(s==null||s(R.nativeEvent),R.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,A()))}),onPointerDown:ne(e.onPointerDown,R=>{R.button===0&&(x.current={x:R.clientX,y:R.clientY})}),onPointerMove:ne(e.onPointerMove,R=>{if(!x.current)return;const U=R.clientX-x.current.x,L=R.clientY-x.current.y,V=!!S.current,j=["left","right"].includes(m.swipeDirection),H=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,se=j?H(0,U):0,pe=j?0:H(0,L),W=R.pointerType==="touch"?10:2,Y={x:se,y:pe},F={originalEvent:R,delta:Y};V?(S.current=Y,ym(N1e,d,F,{discrete:!1})):x9(Y,m.swipeDirection,W)?(S.current=Y,ym(D1e,u,F,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(U)>W||Math.abs(L)>W)&&(x.current=null)}),onPointerUp:ne(e.onPointerUp,R=>{const U=S.current,L=R.target;if(L.hasPointerCapture(R.pointerId)&&L.releasePointerCapture(R.pointerId),S.current=null,x.current=null,U){const V=R.currentTarget,j={originalEvent:R,delta:U};x9(U,m.swipeDirection,m.swipeThreshold)?ym(I1e,p,j,{discrete:!0}):ym($1e,f,j,{discrete:!0}),V.addEventListener("click",H=>H.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),B1e=e=>{const{__scopeToast:t,children:n,...r}=e,o=vm(Ld,t),[i,a]=g.useState(!1),[s,l]=g.useState(!1);return q1e(()=>a(!0)),g.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),s?null:b.jsx(Sa,{asChild:!0,children:b.jsx(Xg,{...r,children:i&&b.jsxs(b.Fragment,{children:[o.label," ",n]})})})},j1e="ToastTitle",p9=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(ye.div,{...r,ref:t})});p9.displayName=j1e;var z1e="ToastDescription",g9=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(ye.div,{...r,ref:t})});g9.displayName=z1e;var m9="ToastAction",v9=g.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(b9,{altText:n,asChild:!0,children:b.jsx(NS,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${m9}\`. Expected non-empty \`string\`.`),null)});v9.displayName=m9;var y9="ToastClose",NS=g.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=F1e(y9,n);return b.jsx(b9,{asChild:!0,children:b.jsx(ye.button,{type:"button",...r,ref:t,onClick:ne(e.onClick,o.onClose)})})});NS.displayName=y9;var b9=g.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return b.jsx(ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function w9(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),V1e(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...w9(r))}}),t}function ym(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Tc(o,i):o.dispatchEvent(i)}var x9=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function q1e(e=()=>{}){const t=ht(e);At(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function V1e(e){return e.nodeType===e.ELEMENT_NODE}function U1e(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $S(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var H1e=c9,S9=d9,C9=h9,E9=p9,P9=g9,O9=v9,T9=NS;const _9=H1e,IS=g.forwardRef(({className:e,...t},n)=>b.jsx(S9,{ref:n,className:q("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));IS.displayName=S9.displayName;const W1e=ei("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground",success:"success group border-success bg-success text-success-foreground"}},defaultVariants:{variant:"default"}}),LS=g.forwardRef(({className:e,variant:t,...n},r)=>b.jsx(C9,{ref:r,className:q(W1e({variant:t}),e),...n}));LS.displayName=C9.displayName;const M9=g.forwardRef(({className:e,...t},n)=>b.jsx(O9,{ref:n,className:q("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));M9.displayName=O9.displayName;const FS=g.forwardRef(({className:e,...t},n)=>b.jsx(T9,{ref:n,className:q("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:b.jsx(Eh,{className:"h-4 w-4"})}));FS.displayName=T9.displayName;const RS=g.forwardRef(({className:e,...t},n)=>b.jsx(E9,{ref:n,className:q("text-sm font-semibold [&+div]:text-xs",e),...t}));RS.displayName=E9.displayName;const BS=g.forwardRef(({className:e,...t},n)=>b.jsx(P9,{ref:n,className:q("text-sm opacity-90",e),...t}));BS.displayName=P9.displayName;const K1e=1,G1e=1e6;let jS=0;function Y1e(){return jS=(jS+1)%Number.MAX_SAFE_INTEGER,jS.toString()}const zS=new Map,k9=e=>{if(zS.has(e))return;const t=setTimeout(()=>{zS.delete(e),Fd({type:"REMOVE_TOAST",toastId:e})},G1e);zS.set(e,t)},A9=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,K1e)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?k9(n):e.toasts.forEach(r=>{k9(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},bm=[];let wm={toasts:[]};function Fd(e){wm=A9(wm,e),bm.forEach(t=>{t(wm)})}function D9({...e}){const t=Y1e(),n=o=>Fd({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Fd({type:"DISMISS_TOAST",toastId:t});return Fd({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function N9(){const[e,t]=g.useState(wm);return g.useEffect(()=>(bm.push(t),()=>{const n=bm.indexOf(t);n>-1&&bm.splice(n,1)}),[e]),{...e,toast:D9,dismiss:n=>Fd({type:"DISMISS_TOAST",toastId:n})}}function X1e(){const{toasts:e}=N9();return b.jsxs(_9,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return b.jsxs(LS,{...i,className:"shadow-lg pointer-events-auto",children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(RS,{children:n}),r&&b.jsx(BS,{children:r})]}),o,b.jsx(FS,{})]},t)}),b.jsx(IS,{style:{position:"fixed",bottom:"10px"}})]})}var $9="Toggle",qS=g.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...i}=e,[a,s]=Ot({prop:n,onChange:o,defaultProp:r??!1,caller:$9});return b.jsx(ye.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:ne(e.onClick,()=>{e.disabled||s(!a)})})});qS.displayName=$9;var I9=qS;const VS=ei("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),L9=g.forwardRef(({className:e,variant:t,size:n,...r},o)=>b.jsx(I9,{ref:o,className:q(VS({variant:t,size:n,className:e})),...r}));L9.displayName=I9.displayName;var ia="ToggleGroup",[F9]=kt(ia,[Lo]),R9=Lo(),US=O.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return b.jsx(Q1e,{...o,ref:t})}if(n==="multiple"){const o=r;return b.jsx(Z1e,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${ia}\``)});US.displayName=ia;var[B9,j9]=F9(ia),Q1e=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a,s]=Ot({prop:n,defaultProp:r??"",onChange:o,caller:ia});return b.jsx(B9,{scope:e.__scopeToggleGroup,type:"single",value:O.useMemo(()=>a?[a]:[],[a]),onItemActivate:s,onItemDeactivate:O.useCallback(()=>s(""),[s]),children:b.jsx(z9,{...i,ref:t})})}),Z1e=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[a,s]=Ot({prop:n,defaultProp:r??[],onChange:o,caller:ia}),l=O.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=O.useCallback(u=>s((d=[])=>d.filter(f=>f!==u)),[s]);return b.jsx(B9,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:l,onItemDeactivate:c,children:b.jsx(z9,{...i,ref:t})})});US.displayName=ia;var[J1e,exe]=F9(ia),z9=O.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:i,dir:a,loop:s=!0,...l}=e,c=R9(n),u=Wr(a),d={role:"group",dir:u,...l};return b.jsx(J1e,{scope:n,rovingFocus:o,disabled:r,children:o?b.jsx(ld,{asChild:!0,...c,orientation:i,dir:u,loop:s,children:b.jsx(ye.div,{...d,ref:t})}):b.jsx(ye.div,{...d,ref:t})})}),xm="ToggleGroupItem",q9=O.forwardRef((e,t)=>{const n=j9(xm,e.__scopeToggleGroup),r=exe(xm,e.__scopeToggleGroup),o=R9(e.__scopeToggleGroup),i=n.value.includes(e.value),a=r.disabled||e.disabled,s={...e,pressed:i,disabled:a},l=O.useRef(null);return r.rovingFocus?b.jsx(cd,{asChild:!0,...o,focusable:!a,active:i,ref:l,children:b.jsx(V9,{...s,ref:t})}):b.jsx(V9,{...s,ref:t})});q9.displayName=xm;var V9=O.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,i=j9(xm,n),a={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=i.type==="single"?a:void 0;return b.jsx(qS,{...s,...o,ref:t,onPressedChange:l=>{l?i.onItemActivate(r):i.onItemDeactivate(r)}})}),U9=US,H9=q9;const W9=g.createContext({size:"default",variant:"default"}),K9=g.forwardRef(({className:e,variant:t,size:n,children:r,...o},i)=>b.jsx(U9,{ref:i,className:q("flex items-center justify-center gap-1",e),...o,children:b.jsx(W9.Provider,{value:{variant:t,size:n},children:r})}));K9.displayName=U9.displayName;const G9=g.forwardRef(({className:e,children:t,variant:n,size:r,...o},i)=>{const a=g.useContext(W9);return b.jsx(H9,{ref:i,className:q(VS({variant:a.variant||n,size:a.size||r}),e),...o,children:t})});G9.displayName=H9.displayName;const txe=({children:e,variant:t="primary",size:n="medium",loading:r=!1,disabled:o,className:i="",...a})=>{const l=`btn btn--${t} btn--${n} ${i}`.trim();return b.jsx("button",{className:l,disabled:o||r,...a,children:r?b.jsx("span",{className:"btn__spinner",children:"⏳"}):e})},nxe=({title:e,children:t,footer:n,className:r="",elevation:o="medium"})=>{const i="card",a=`${i} ${i}--${o} ${r}`.trim();return b.jsxs("div",{className:a,children:[e&&b.jsx("div",{className:"card__header",children:b.jsx("h3",{className:"card__title",children:e})}),b.jsx("div",{className:"card__body",children:t}),n&&b.jsx("div",{className:"card__footer",children:n})]})},Y9=O.createContext(void 0),rxe=({children:e,initialSidebarOpen:t=!1,initialTheme:n="light"})=>{const[r,o]=O.useState(t),[i,a]=O.useState(n),c={sidebarOpen:r,toggleSidebar:()=>{o(u=>!u)},theme:i,toggleTheme:()=>{a(u=>u==="light"?"dark":"light")},setSidebarOpen:o,setTheme:a};return b.jsx(Y9.Provider,{value:c,children:e})},oxe=()=>{const e=O.useContext(Y9);if(e===void 0)throw new Error("useLayout must be used within a LayoutProvider");return e},ixe=({redirectTo:e="/login"})=>{var r;const t=Zv(),n=xo();return t!=null&&t.user&&((r=t==null?void 0:t.user)!=null&&r.verified)?b.jsx(LK,{}):b.jsx(IK,{to:e,state:{from:n},replace:!0})};function axe(){const{pathname:e}=xo();return O.useMemo(()=>e,[e])}function sxe(){const e=Vv();return O.useMemo(()=>({back:()=>e(-1),forward:()=>e(1),reload:()=>window.location.reload(),push:n=>e(n),replace:n=>e(n,{replace:!0})}),[e])}function X9(e,t){return function(){return e.apply(t,arguments)}}const{toString:lxe}=Object.prototype,{getPrototypeOf:HS}=Object,{iterator:Sm,toStringTag:Q9}=Symbol,Cm=(e=>t=>{const n=lxe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),fo=e=>(e=e.toLowerCase(),t=>Cm(t)===e),Em=e=>t=>typeof t===e,{isArray:Vl}=Array,Ul=Em("undefined");function Rd(e){return e!==null&&!Ul(e)&&e.constructor!==null&&!Ul(e.constructor)&&Jn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Z9=fo("ArrayBuffer");function cxe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Z9(e.buffer),t}const uxe=Em("string"),Jn=Em("function"),J9=Em("number"),Bd=e=>e!==null&&typeof e=="object",dxe=e=>e===!0||e===!1,Pm=e=>{if(Cm(e)!=="object")return!1;const t=HS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Q9 in e)&&!(Sm in e)},fxe=e=>{if(!Bd(e)||Rd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},hxe=fo("Date"),pxe=fo("File"),gxe=fo("Blob"),mxe=fo("FileList"),vxe=e=>Bd(e)&&Jn(e.pipe),yxe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Jn(e.append)&&((t=Cm(e))==="formdata"||t==="object"&&Jn(e.toString)&&e.toString()==="[object FormData]"))},bxe=fo("URLSearchParams"),[wxe,xxe,Sxe,Cxe]=["ReadableStream","Request","Response","Headers"].map(fo),Exe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Vl(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Rd(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function eB(e,t){if(Rd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const cs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,tB=e=>!Ul(e)&&e!==cs;function WS(){const{caseless:e,skipUndefined:t}=tB(this)&&this||{},n={},r=(o,i)=>{const a=e&&eB(n,i)||i;Pm(n[a])&&Pm(o)?n[a]=WS(n[a],o):Pm(o)?n[a]=WS({},o):Vl(o)?n[a]=o.slice():(!t||!Ul(o))&&(n[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&jd(arguments[o],r);return n}const Pxe=(e,t,n,{allOwnKeys:r}={})=>(jd(t,(o,i)=>{n&&Jn(o)?e[i]=X9(o,n):e[i]=o},{allOwnKeys:r}),e),Oxe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Txe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},_xe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&HS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Mxe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},kxe=e=>{if(!e)return null;if(Vl(e))return e;let t=e.length;if(!J9(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Axe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&HS(Uint8Array)),Dxe=(e,t)=>{const r=(e&&e[Sm]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Nxe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$xe=fo("HTMLFormElement"),Ixe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),nB=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Lxe=fo("RegExp"),rB=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};jd(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Fxe=e=>{rB(e,(t,n)=>{if(Jn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Jn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Rxe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Vl(e)?r(e):r(String(e).split(t)),n},Bxe=()=>{},jxe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zxe(e){return!!(e&&Jn(e.append)&&e[Q9]==="FormData"&&e[Sm])}const qxe=e=>{const t=new Array(10),n=(r,o)=>{if(Bd(r)){if(t.indexOf(r)>=0)return;if(Rd(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Vl(r)?[]:{};return jd(r,(a,s)=>{const l=n(a,o+1);!Ul(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Vxe=fo("AsyncFunction"),Uxe=e=>e&&(Bd(e)||Jn(e))&&Jn(e.then)&&Jn(e.catch),oB=((e,t)=>e?setImmediate:t?((n,r)=>(cs.addEventListener("message",({source:o,data:i})=>{o===cs&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),cs.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Jn(cs.postMessage)),Hxe=typeof queueMicrotask<"u"?queueMicrotask.bind(cs):typeof process<"u"&&process.nextTick||oB,te={isArray:Vl,isArrayBuffer:Z9,isBuffer:Rd,isFormData:yxe,isArrayBufferView:cxe,isString:uxe,isNumber:J9,isBoolean:dxe,isObject:Bd,isPlainObject:Pm,isEmptyObject:fxe,isReadableStream:wxe,isRequest:xxe,isResponse:Sxe,isHeaders:Cxe,isUndefined:Ul,isDate:hxe,isFile:pxe,isBlob:gxe,isRegExp:Lxe,isFunction:Jn,isStream:vxe,isURLSearchParams:bxe,isTypedArray:Axe,isFileList:mxe,forEach:jd,merge:WS,extend:Pxe,trim:Exe,stripBOM:Oxe,inherits:Txe,toFlatObject:_xe,kindOf:Cm,kindOfTest:fo,endsWith:Mxe,toArray:kxe,forEachEntry:Dxe,matchAll:Nxe,isHTMLForm:$xe,hasOwnProperty:nB,hasOwnProp:nB,reduceDescriptors:rB,freezeMethods:Fxe,toObjectSet:Rxe,toCamelCase:Ixe,noop:Bxe,toFiniteNumber:jxe,findKey:eB,global:cs,isContextDefined:tB,isSpecCompliantForm:zxe,toJSONObject:qxe,isAsyncFn:Vxe,isThenable:Uxe,setImmediate:oB,asap:Hxe,isIterable:e=>e!=null&&Jn(e[Sm])};function tt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}te.inherits(tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:te.toJSONObject(this.config),code:this.code,status:this.status}}});const iB=tt.prototype,aB={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{aB[e]={value:e}}),Object.defineProperties(tt,aB),Object.defineProperty(iB,"isAxiosError",{value:!0}),tt.from=(e,t,n,r,o,i)=>{const a=Object.create(iB);te.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return tt.call(a,s,l,n,r,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const Wxe=null;function KS(e){return te.isPlainObject(e)||te.isArray(e)}function sB(e){return te.endsWith(e,"[]")?e.slice(0,-2):e}function lB(e,t,n){return e?e.concat(t).map(function(o,i){return o=sB(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Kxe(e){return te.isArray(e)&&!e.some(KS)}const Gxe=te.toFlatObject(te,{},null,function(t){return/^is[A-Z]/.test(t)});function Om(e,t,n){if(!te.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=te.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!te.isUndefined(v[m])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&te.isSpecCompliantForm(t);if(!te.isFunction(o))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(te.isDate(h))return h.toISOString();if(te.isBoolean(h))return h.toString();if(!l&&te.isBlob(h))throw new tt("Blob is not supported. Use a Buffer instead.");return te.isArrayBuffer(h)||te.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,m,v){let y=h;if(h&&!v&&typeof h=="object"){if(te.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(te.isArray(h)&&Kxe(h)||(te.isFileList(h)||te.endsWith(m,"[]"))&&(y=te.toArray(h)))return m=sB(m),y.forEach(function(x,S){!(te.isUndefined(x)||x===null)&&t.append(a===!0?lB([m],S,i):a===null?m:m+"[]",c(x))}),!1}return KS(h)?!0:(t.append(lB(v,m,i),c(h)),!1)}const d=[],f=Object.assign(Gxe,{defaultVisitor:u,convertValue:c,isVisitable:KS});function p(h,m){if(!te.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(h),te.forEach(h,function(y,w){(!(te.isUndefined(y)||y===null)&&o.call(t,y,te.isString(w)?w.trim():w,m,f))===!0&&p(y,m?m.concat(w):[w])}),d.pop()}}if(!te.isObject(e))throw new TypeError("data must be an object");return p(e),t}function cB(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function GS(e,t){this._pairs=[],e&&Om(e,this,t)}const uB=GS.prototype;uB.append=function(t,n){this._pairs.push([t,n])},uB.toString=function(t){const n=t?function(r){return t.call(this,r,cB)}:cB;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Yxe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dB(e,t,n){if(!t)return e;const r=n&&n.encode||Yxe;te.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=te.isURLSearchParams(t)?t.toString():new GS(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class fB{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){te.forEach(this.handlers,function(r){r!==null&&t(r)})}}const hB={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xxe={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:GS,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},YS=typeof window<"u"&&typeof document<"u",XS=typeof navigator=="object"&&navigator||void 0,Qxe=YS&&(!XS||["ReactNative","NativeScript","NS"].indexOf(XS.product)<0),Zxe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jxe=YS&&window.location.href||"http://localhost",An={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:YS,hasStandardBrowserEnv:Qxe,hasStandardBrowserWebWorkerEnv:Zxe,navigator:XS,origin:Jxe},Symbol.toStringTag,{value:"Module"})),...Xxe};function eSe(e,t){return Om(e,new An.classes.URLSearchParams,{visitor:function(n,r,o,i){return An.isNode&&te.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function tSe(e){return te.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nSe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function pB(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&te.isArray(o)?o.length:a,l?(te.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!te.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&te.isArray(o[a])&&(o[a]=nSe(o[a])),!s)}if(te.isFormData(e)&&te.isFunction(e.entries)){const n={};return te.forEachEntry(e,(r,o)=>{t(tSe(r),o,n,0)}),n}return null}function rSe(e,t,n){if(te.isString(e))try{return(t||JSON.parse)(e),te.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const zd={transitional:hB,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=te.isObject(t);if(i&&te.isHTMLForm(t)&&(t=new FormData(t)),te.isFormData(t))return o?JSON.stringify(pB(t)):t;if(te.isArrayBuffer(t)||te.isBuffer(t)||te.isStream(t)||te.isFile(t)||te.isBlob(t)||te.isReadableStream(t))return t;if(te.isArrayBufferView(t))return t.buffer;if(te.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return eSe(t,this.formSerializer).toString();if((s=te.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Om(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),rSe(t)):t}],transformResponse:[function(t){const n=this.transitional||zd.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(te.isResponse(t)||te.isReadableStream(t))return t;if(t&&te.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?tt.from(s,tt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:An.classes.FormData,Blob:An.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};te.forEach(["delete","get","head","post","put","patch"],e=>{zd.headers[e]={}});const oSe=te.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),iSe=e=>{const t={};let n,r,o;return e&&e.split(`
351
+ `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&oSe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},gB=Symbol("internals");function qd(e){return e&&String(e).trim().toLowerCase()}function Tm(e){return e===!1||e==null?e:te.isArray(e)?e.map(Tm):String(e)}function aSe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const sSe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function QS(e,t,n,r,o){if(te.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!te.isString(t)){if(te.isString(r))return t.indexOf(r)!==-1;if(te.isRegExp(r))return r.test(t)}}function lSe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cSe(e,t){const n=te.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let er=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=qd(l);if(!u)throw new Error("header name must be a non-empty string");const d=te.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Tm(s))}const a=(s,l)=>te.forEach(s,(c,u)=>i(c,u,l));if(te.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(te.isString(t)&&(t=t.trim())&&!sSe(t))a(iSe(t),n);else if(te.isObject(t)&&te.isIterable(t)){let s={},l,c;for(const u of t){if(!te.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?te.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=qd(t),t){const r=te.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return aSe(o);if(te.isFunction(n))return n.call(this,o,r);if(te.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qd(t),t){const r=te.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||QS(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=qd(a),a){const s=te.findKey(r,a);s&&(!n||QS(r,r[s],s,n))&&(delete r[s],o=!0)}}return te.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||QS(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return te.forEach(this,(o,i)=>{const a=te.findKey(r,i);if(a){n[a]=Tm(o),delete n[i];return}const s=t?lSe(i):String(i).trim();s!==i&&delete n[i],n[s]=Tm(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return te.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&te.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
352
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[gB]=this[gB]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=qd(a);r[s]||(cSe(o,a),r[s]=!0)}return te.isArray(t)?t.forEach(i):i(t),this}};er.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),te.reduceDescriptors(er.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),te.freezeMethods(er);function ZS(e,t){const n=this||zd,r=t||n,o=er.from(r.headers);let i=r.data;return te.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function mB(e){return!!(e&&e.__CANCEL__)}function Hl(e,t,n){tt.call(this,e??"canceled",tt.ERR_CANCELED,t,n),this.name="CanceledError"}te.inherits(Hl,tt,{__CANCEL__:!0});function vB(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new tt("Request failed with status code "+n.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function uSe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dSe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let d=i,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a<t)return;const p=u&&c-u;return p?Math.round(f*1e3/p):void 0}}function fSe(e,t){let n=0,r=1e3/t,o,i;const a=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-d)))},()=>o&&a(o)]}const _m=(e,t,n=3)=>{let r=0;const o=dSe(50,250);return fSe(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},n)},yB=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},bB=e=>(...t)=>te.asap(()=>e(...t)),hSe=An.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,An.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(An.origin),An.navigator&&/(msie|trident)/i.test(An.navigator.userAgent)):()=>!0,pSe=An.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];te.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),te.isString(r)&&s.push(`path=${r}`),te.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),te.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function gSe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mSe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wB(e,t,n){let r=!gSe(t);return e&&(r||n==!1)?mSe(e,t):t}const xB=e=>e instanceof er?{...e}:e;function us(e,t){t=t||{};const n={};function r(c,u,d,f){return te.isPlainObject(c)&&te.isPlainObject(u)?te.merge.call({caseless:f},c,u):te.isPlainObject(u)?te.merge({},u):te.isArray(u)?u.slice():u}function o(c,u,d,f){if(te.isUndefined(u)){if(!te.isUndefined(c))return r(void 0,c,d,f)}else return r(c,u,d,f)}function i(c,u){if(!te.isUndefined(u))return r(void 0,u)}function a(c,u){if(te.isUndefined(u)){if(!te.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,d)=>o(xB(c),xB(u),d,!0)};return te.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,f=d(e[u],t[u],u);te.isUndefined(f)&&d!==s||(n[u]=f)}),n}const SB=e=>{const t=us({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=er.from(a),t.url=dB(wB(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),te.isFormData(n)){if(An.hasStandardBrowserEnv||An.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(te.isFunction(n.getHeaders)){const l=n.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&a.set(u,d)})}}if(An.hasStandardBrowserEnv&&(r&&te.isFunction(r)&&(r=r(t)),r||r!==!1&&hSe(t.url))){const l=o&&i&&pSe.read(i);l&&a.set(o,l)}return t},vSe=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=SB(e);let i=o.data;const a=er.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,d,f,p,h;function m(){p&&p(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function y(){if(!v)return;const x=er.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};vB(function(P){n(P),m()},function(P){r(P),m()},C),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new tt("Request aborted",tt.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const C=S&&S.message?S.message:"Network Error",E=new tt(C,tt.ERR_NETWORK,e,v);E.event=S||null,r(E),v=null},v.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||hB;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),r(new tt(S,C.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&te.forEach(a.toJSON(),function(S,C){v.setRequestHeader(C,S)}),te.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),c&&([f,h]=_m(c,!0),v.addEventListener("progress",f)),l&&v.upload&&([d,p]=_m(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=x=>{v&&(r(!x||x.type?new Hl(null,e,v):x),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const w=uSe(o.url);if(w&&An.protocols.indexOf(w)===-1){r(new tt("Unsupported protocol "+w+":",tt.ERR_BAD_REQUEST,e));return}v.send(i||null)})},ySe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof tt?u:new Hl(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new tt(`timeout ${t} of ms exceeded`,tt.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>te.asap(s),l}},bSe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},wSe=async function*(e,t){for await(const n of xSe(e))yield*bSe(n,t)},xSe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},CB=(e,t,n,r)=>{const o=wSe(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let d=u.byteLength;if(n){let f=i+=d;n(f)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},EB=64*1024,{isFunction:Mm}=te,SSe=(({Request:e,Response:t})=>({Request:e,Response:t}))(te.global),{ReadableStream:PB,TextEncoder:OB}=te.global,TB=(e,...t)=>{try{return!!e(...t)}catch{return!1}},CSe=e=>{e=te.merge.call({skipUndefined:!0},SSe,e);const{fetch:t,Request:n,Response:r}=e,o=t?Mm(t):typeof fetch=="function",i=Mm(n),a=Mm(r);if(!o)return!1;const s=o&&Mm(PB),l=o&&(typeof OB=="function"?(h=>m=>h.encode(m))(new OB):async h=>new Uint8Array(await new n(h).arrayBuffer())),c=i&&s&&TB(()=>{let h=!1;const m=new n(An.origin,{body:new PB,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!m}),u=a&&s&&TB(()=>te.isReadableStream(new r("").body)),d={stream:u&&(h=>h.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!d[h]&&(d[h]=(m,v)=>{let y=m&&m[h];if(y)return y.call(m);throw new tt(`Response type '${h}' is not supported`,tt.ERR_NOT_SUPPORT,v)})});const f=async h=>{if(h==null)return 0;if(te.isBlob(h))return h.size;if(te.isSpecCompliantForm(h))return(await new n(An.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(te.isArrayBufferView(h)||te.isArrayBuffer(h))return h.byteLength;if(te.isURLSearchParams(h)&&(h=h+""),te.isString(h))return(await l(h)).byteLength},p=async(h,m)=>{const v=te.toFiniteNumber(h.getContentLength());return v??f(m)};return async h=>{let{url:m,method:v,data:y,signal:w,cancelToken:x,timeout:S,onDownloadProgress:C,onUploadProgress:E,responseType:P,headers:_,withCredentials:T="same-origin",fetchOptions:M}=SB(h),A=t||fetch;P=P?(P+"").toLowerCase():"text";let D=ySe([w,x&&x.toAbortSignal()],S),N=null;const R=D&&D.unsubscribe&&(()=>{D.unsubscribe()});let U;try{if(E&&c&&v!=="get"&&v!=="head"&&(U=await p(_,y))!==0){let pe=new n(m,{method:"POST",body:y,duplex:"half"}),W;if(te.isFormData(y)&&(W=pe.headers.get("content-type"))&&_.setContentType(W),pe.body){const[Y,F]=yB(U,_m(bB(E)));y=CB(pe.body,EB,Y,F)}}te.isString(T)||(T=T?"include":"omit");const L=i&&"credentials"in n.prototype,V={...M,signal:D,method:v.toUpperCase(),headers:_.normalize().toJSON(),body:y,duplex:"half",credentials:L?T:void 0};N=i&&new n(m,V);let j=await(i?A(N,M):A(m,V));const H=u&&(P==="stream"||P==="response");if(u&&(C||H&&R)){const pe={};["status","statusText","headers"].forEach(ee=>{pe[ee]=j[ee]});const W=te.toFiniteNumber(j.headers.get("content-length")),[Y,F]=C&&yB(W,_m(bB(C),!0))||[];j=new r(CB(j.body,EB,Y,()=>{F&&F(),R&&R()}),pe)}P=P||"text";let se=await d[te.findKey(d,P)||"text"](j,h);return!H&&R&&R(),await new Promise((pe,W)=>{vB(pe,W,{data:se,headers:er.from(j.headers),status:j.status,statusText:j.statusText,config:h,request:N})})}catch(L){throw R&&R(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,h,N),{cause:L.cause||L}):tt.from(L,L&&L.code,h,N)}}},ESe=new Map,_B=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a=i.length,s=a,l,c,u=ESe;for(;s--;)l=i[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:CSe(t)),u=c;return c};_B();const JS={http:Wxe,xhr:vSe,fetch:{get:_B}};te.forEach(JS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const MB=e=>`- ${e}`,PSe=e=>te.isFunction(e)||e===null||e===!1;function OSe(e,t){e=te.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){r=e[a];let s;if(o=r,!PSe(r)&&(o=JS[(s=String(r)).toLowerCase()],o===void 0))throw new tt(`Unknown adapter '${s}'`);if(o&&(te.isFunction(o)||(o=o.get(t))))break;i[s||"#"+a]=o}if(!o){const a=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
353
+ `+a.map(MB).join(`
354
+ `):" "+MB(a[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const kB={getAdapter:OSe,adapters:JS};function eC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hl(null,e)}function AB(e){return eC(e),e.headers=er.from(e.headers),e.data=ZS.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kB.getAdapter(e.adapter||zd.adapter,e)(e).then(function(r){return eC(e),r.data=ZS.call(e,e.transformResponse,r),r.headers=er.from(r.headers),r},function(r){return mB(r)||(eC(e),r&&r.response&&(r.response.data=ZS.call(e,e.transformResponse,r.response),r.response.headers=er.from(r.response.headers))),Promise.reject(r)})}const DB="1.13.2",km={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{km[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const NB={};km.transitional=function(t,n,r){function o(i,a){return"[Axios v"+DB+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new tt(o(a," has been removed"+(n?" in "+n:"")),tt.ERR_DEPRECATED);return n&&!NB[a]&&(NB[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}},km.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function TSe(e,t,n){if(typeof e!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new tt("option "+i+" must be "+l,tt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tt("Unknown option "+i,tt.ERR_BAD_OPTION)}}const Am={assertOptions:TSe,validators:km},jo=Am.validators;let ds=class{constructor(t){this.defaults=t||{},this.interceptors={request:new fB,response:new fB}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
355
+ `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=us(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Am.assertOptions(r,{silentJSONParsing:jo.transitional(jo.boolean),forcedJSONParsing:jo.transitional(jo.boolean),clarifyTimeoutError:jo.transitional(jo.boolean)},!1),o!=null&&(te.isFunction(o)?n.paramsSerializer={serialize:o}:Am.assertOptions(o,{encode:jo.function,serialize:jo.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Am.assertOptions(n,{baseUrl:jo.spelling("baseURL"),withXsrfToken:jo.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&te.merge(i.common,i[n.method]);i&&te.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=er.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,f;if(!l){const h=[AB.bind(this),void 0];for(h.unshift(...s),h.push(...c),f=h.length,u=Promise.resolve(n);d<f;)u=u.then(h[d++],h[d++]);return u}f=s.length;let p=n;for(;d<f;){const h=s[d++],m=s[d++];try{p=h(p)}catch(v){m.call(this,v);break}}try{u=AB.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,f=c.length;d<f;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=us(this.defaults,t);const n=wB(t.baseURL,t.url,t.allowAbsoluteUrls);return dB(n,t.params,t.paramsSerializer)}};te.forEach(["delete","get","head","options"],function(t){ds.prototype[t]=function(n,r){return this.request(us(r||{},{method:t,url:n,data:(r||{}).data}))}}),te.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(us(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}ds.prototype[t]=n(),ds.prototype[t+"Form"]=n(!0)});let _Se=class bq{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new Hl(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new bq(function(o){t=o}),cancel:t}}};function MSe(e){return function(n){return e.apply(null,n)}}function kSe(e){return te.isObject(e)&&e.isAxiosError===!0}const tC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tC).forEach(([e,t])=>{tC[t]=e});function $B(e){const t=new ds(e),n=X9(ds.prototype.request,t);return te.extend(n,ds.prototype,t,{allOwnKeys:!0}),te.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return $B(us(e,o))},n}const Ht=$B(zd);Ht.Axios=ds,Ht.CanceledError=Hl,Ht.CancelToken=_Se,Ht.isCancel=mB,Ht.VERSION=DB,Ht.toFormData=Om,Ht.AxiosError=tt,Ht.Cancel=Ht.CanceledError,Ht.all=function(t){return Promise.all(t)},Ht.spread=MSe,Ht.isAxiosError=kSe,Ht.mergeConfig=us,Ht.AxiosHeaders=er,Ht.formToJSON=e=>pB(te.isHTMLForm(e)?new FormData(e):e),Ht.getAdapter=kB.getAdapter,Ht.HttpStatusCode=tC,Ht.default=Ht;const{Axios:b_e,AxiosError:w_e,CanceledError:x_e,isCancel:S_e,CancelToken:C_e,VERSION:E_e,all:P_e,Cancel:O_e,isAxiosError:T_e,spread:__e,toFormData:M_e,AxiosHeaders:k_e,HttpStatusCode:A_e,formToJSON:D_e,getAdapter:N_e,mergeConfig:$_e}=Ht;class ASe{constructor(t){cn(this,"axiosInstance");this.axiosInstance=Ht.create({baseURL:t||"",timeout:3e4,headers:{"Content-Type":"application/json"}}),this.axiosInstance.interceptors.request.use(n=>n,n=>Promise.reject(n)),this.axiosInstance.interceptors.response.use(n=>n,n=>(n.response?console.error("API Error:",n.response.data):n.request?console.error("Network Error:",n.request):console.error("Request Error:",n.message),Promise.reject(n)))}async get(t,n){return(await this.axiosInstance.get(t,n)).data}async post(t,n,r){return(await this.axiosInstance.post(t,n,r)).data}async put(t,n,r){return(await this.axiosInstance.put(t,n,r)).data}async patch(t,n,r){return(await this.axiosInstance.patch(t,n,r)).data}async delete(t,n){return(await this.axiosInstance.delete(t,n)).data}setBaseURL(t){this.axiosInstance.defaults.baseURL=t}setAuthToken(t){this.axiosInstance.defaults.headers.common.Authorization=`Bearer ${t}`}removeAuthToken(){delete this.axiosInstance.defaults.headers.common.Authorization}}const DSe=new ASe;var NSe=e=>e!=null,$Se=e=>e.filter(NSe);function ISe(e){return(...t)=>{for(const n of e)n&&n(...t)}}var ge=e=>typeof e=="function"&&!e.length?e():e,nC=e=>Array.isArray(e)?e:e?[e]:[];function LSe(e,...t){return typeof e=="function"?e(...t):e}var FSe=Ye;function RSe(e,t,n,r){const o=e.length,i=t.length;let a=0;if(!i){for(;a<o;a++)n(e[a]);return}if(!o){for(;a<i;a++)r(t[a]);return}for(;a<i&&t[a]===e[a];a++);let s,l;t=t.slice(a),e=e.slice(a);for(s of t)e.includes(s)||r(s);for(l of e)t.includes(l)||n(l)}function BSe(e){const[t,n]=Se(),r=e!=null&&e.throw?(f,p)=>{throw n(f instanceof Error?f:new Error(p)),f}:(f,p)=>{n(f instanceof Error?f:new Error(p))},o=e!=null&&e.api?Array.isArray(e.api)?e.api:[e.api]:[globalThis.localStorage].filter(Boolean),i=e!=null&&e.prefix?`${e.prefix}.`:"",a=new Map,s=new Proxy({},{get(f,p){let h=a.get(p);h||(h=Se(void 0,{equals:!1}),a.set(p,h)),h[0]();const m=o.reduce((v,y)=>{if(v!==null||!y)return v;try{return y.getItem(`${i}${p}`)}catch(w){return r(w,`Error reading ${i}${p} from ${y.name}`),null}},null);return m!==null&&(e!=null&&e.deserializer)?e.deserializer(m,p,e.options):m}}),l=(f,p,h)=>{const m=e!=null&&e.serializer?e.serializer(p,f,h??e.options):p,v=`${i}${f}`;o.forEach(w=>{try{w.getItem(v)!==m&&w.setItem(v,m)}catch(x){r(x,`Error setting ${i}${f} to ${m} in ${w.name}`)}});const y=a.get(f);y&&y[1]()},c=f=>o.forEach(p=>{try{p.removeItem(`${i}${f}`)}catch(h){r(h,`Error removing ${i}${f} from ${p.name}`)}}),u=()=>o.forEach(f=>{try{f.clear()}catch(p){r(p,`Error clearing ${f.name}`)}}),d=()=>{const f={},p=(h,m)=>{if(!f.hasOwnProperty(h)){const v=m&&(e!=null&&e.deserializer)?e.deserializer(m,h,e.options):m;v&&(f[h]=v)}};return o.forEach(h=>{if(typeof h.getAll=="function"){let m;try{m=h.getAll()}catch(v){r(v,`Error getting all values from in ${h.name}`)}for(const v of m)p(v,m[v])}else{let m=0,v;try{for(;v=h.key(m++);)f.hasOwnProperty(v)||p(v,h.getItem(v))}catch(y){r(y,`Error getting all values from ${h.name}`)}}}),f};return(e==null?void 0:e.sync)!==!1&&ii(()=>{const f=p=>{var m;let h=!1;o.forEach(v=>{try{v!==p.storageArea&&p.key&&p.newValue!==v.getItem(p.key)&&(p.newValue?v.setItem(p.key,p.newValue):v.removeItem(p.key),h=!0)}catch(y){r(y,`Error synching api ${v.name} from storage event (${p.key}=${p.newValue})`)}}),h&&p.key&&((m=a.get(p.key))==null||m[1]())};"addEventListener"in globalThis?(globalThis.addEventListener("storage",f),Ye(()=>globalThis.removeEventListener("storage",f))):(o.forEach(p=>{var h;return(h=p.addEventListener)==null?void 0:h.call(p,"storage",f)}),Ye(()=>o.forEach(p=>{var h;return(h=p.removeEventListener)==null?void 0:h.call(p,"storage",f)})))}),[s,l,{clear:u,error:t,remove:c,toJSON:d}]}var IB=BSe,jSe=e=>(typeof e.clear=="function"||(e.clear=()=>{let t;for(;t=e.key(0);)e.removeItem(t)}),e),LB=e=>{if(!e)return"";let t="";for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t+=r instanceof Date?`; ${n}=${r.toUTCString()}`:typeof r=="boolean"?`; ${n}`:`; ${n}=${r}`}return t},Fr=jSe({_cookies:[globalThis.document,"cookie"],getItem:e=>{var t;return((t=Fr._cookies[0][Fr._cookies[1]].match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))==null?void 0:t.pop())??null},setItem:(e,t,n)=>{const r=Fr.getItem(e);Fr._cookies[0][Fr._cookies[1]]=`${e}=${t}${LB(n)}`;const o=Object.assign(new Event("storage"),{key:e,oldValue:r,newValue:t,url:globalThis.document.URL,storageArea:Fr});window.dispatchEvent(o)},removeItem:e=>{Fr._cookies[0][Fr._cookies[1]]=`${e}=deleted${LB({expires:new Date(0)})}`},key:e=>{let t=null,n=0;return Fr._cookies[0][Fr._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g,(r,o)=>(!t&&o&&n++===e&&(t=o),"")),t},get length(){let e=0;return Fr._cookies[0][Fr._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g,t=>(e+=t?1:0,"")),e}}),zSe=1024,fs=796,rC=700,qSe="bottom-right",oC="bottom",FB="system",VSe=!1,RB=500,USe=500,BB=500,HSe=Object.keys(Av)[0],jB=1,WSe=Object.keys(Dv)[0],iC=yn({client:void 0,onlineManager:void 0,queryFlavor:"",version:"",shadowDOMTarget:void 0});function Ue(){return bn(iC)}var zB=yn(void 0),qB=e=>{const[t,n]=Se(null),r=()=>{const a=t();a!=null&&(a.close(),n(null))},o=(a,s)=>{if(t()!=null)return;const l=window.open("","TSQD-Devtools-Panel",`width=${a},height=${s},popup`);if(!l)throw new Error("Failed to open popup. Please allow popups for this site to view the devtools in picture-in-picture mode.");l.document.head.innerHTML="",l.document.body.innerHTML="",CH(l.document),l.document.title="TanStack Query Devtools",l.document.body.style.margin="0",l.addEventListener("pagehide",()=>{e.setLocalStore("pip_open","false"),n(null)}),[...(Ue().shadowDOMTarget||document).styleSheets].forEach(c=>{try{const u=[...c.cssRules].map(h=>h.cssText).join(""),d=document.createElement("style"),f=c.ownerNode;let p="";f&&"id"in f&&(p=f.id),p&&d.setAttribute("id",p),d.textContent=u,l.document.head.appendChild(d)}catch{const d=document.createElement("link");if(c.href==null)return;d.rel="stylesheet",d.type=c.type,d.media=c.media.toString(),d.href=c.href,l.document.head.appendChild(d)}}),Wf(["focusin","focusout","pointermove","keydown","pointerdown","pointerup","click","mousedown","input"],l.document),e.setLocalStore("pip_open","true"),n(l)};We(()=>{(e.localStore.pip_open??"false")==="true"&&!e.disabled&&o(Number(window.innerWidth),Number(e.localStore.height||USe))}),We(()=>{const a=(Ue().shadowDOMTarget||document).querySelector("#_goober"),s=t();if(a&&s){const l=new MutationObserver(()=>{const c=(Ue().shadowDOMTarget||s.document).querySelector("#_goober");c&&(c.textContent=a.textContent)});l.observe(a,{childList:!0,subtree:!0,characterDataOldValue:!0}),Ye(()=>{l.disconnect()})}});const i=me(()=>({pipWindow:t(),requestPipWindow:o,closePipWindow:r,disabled:e.disabled??!1}));return I(zB.Provider,{value:i,get children(){return e.children}})},aC=()=>me(()=>{const t=bn(zB);if(!t)throw new Error("usePiPWindow must be used within a PiPProvider");return t()}),sC=yn(()=>"dark");function hn(){return bn(sC)}var VB={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},KSe=Object.keys(VB).join("|"),GSe=new RegExp(KSe,"g");function YSe(e){return e.replace(GSe,t=>VB[t])}var tr={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function UB(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:tr.MATCHES,!n.accessors){const a=HB(e,t,n);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:n.threshold,passed:a>=n.threshold}}const o=JSe(e,n.accessors),i={rankedValue:e,rank:tr.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let a=0;a<o.length;a++){const s=o[a];let l=HB(s.itemValue,t,n);const{minRanking:c,maxRanking:u,threshold:d=n.threshold}=s.attributes;l<c&&l>=tr.MATCHES?l=c:l>u&&(l=u),l=Math.min(l,u),l>=d&&l>i.rank&&(i.rank=l,i.passed=!0,i.accessorIndex=a,i.accessorThreshold=d,i.rankedValue=s.itemValue)}return i}function HB(e,t,n){return e=WB(e,n),t=WB(t,n),t.length>e.length?tr.NO_MATCH:e===t?tr.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?tr.EQUAL:e.startsWith(t)?tr.STARTS_WITH:e.includes(` ${t}`)?tr.WORD_STARTS_WITH:e.includes(t)?tr.CONTAINS:t.length===1?tr.NO_MATCH:XSe(e).includes(t)?tr.ACRONYM:QSe(e,t))}function XSe(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(i=>{t+=i.substr(0,1)})}),t}function QSe(e,t){let n=0,r=0;function o(l,c,u){for(let d=u,f=c.length;d<f;d++)if(c[d]===l)return n+=1,d+1;return-1}function i(l){const c=1/l,u=n/t.length;return tr.MATCHES+u*c}const a=o(t[0],e,0);if(a<0)return tr.NO_MATCH;r=a;for(let l=1,c=t.length;l<c;l++){const u=t[l];if(r=o(u,e,r),!(r>-1))return tr.NO_MATCH}const s=r-a;return i(s)}function WB(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=YSe(e)),e}function ZSe(e,t){let n=t;typeof t=="object"&&(n=t.accessor);const r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function JSe(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const i=t[r],a=eCe(i),s=ZSe(e,i);for(let l=0,c=s.length;l<c;l++)n.push({itemValue:s[l],attributes:a})}return n}var KB={maxRanking:1/0,minRanking:-1/0};function eCe(e){return typeof e=="function"?KB:{...KB,...e}}var tCe={data:""},nCe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||tCe,rCe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,oCe=/\/\*[^]*?\*\/| +/g,GB=/\n+/g,hs=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?hs(a,i):i+"{"+hs(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=hs(a,t?t.replace(/([^,])+/g,s=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=hs.p?hs.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Oi={},YB=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+YB(e[n]);return t}return e},iCe=(e,t,n,r,o)=>{let i=YB(e),a=Oi[i]||(Oi[i]=(l=>{let c=0,u=11;for(;c<l.length;)u=101*u+l.charCodeAt(c++)>>>0;return"go"+u})(i));if(!Oi[a]){let l=i!==e?e:(c=>{let u,d,f=[{}];for(;u=rCe.exec(c.replace(oCe,""));)u[4]?f.shift():u[3]?(d=u[3].replace(GB," ").trim(),f.unshift(f[0][d]=f[0][d]||{})):f[0][u[1]]=u[2].replace(GB," ").trim();return f[0]})(e);Oi[a]=hs(o?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&Oi.g?Oi.g:null;return n&&(Oi.g=Oi[a]),((l,c,u,d)=>{d?c.data=c.data.replace(d,l):c.data.indexOf(l)===-1&&(c.data=u?l+c.data:c.data+l)})(Oi[a],t,r,s),a},aCe=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":hs(s,""):s===!1?"":s}return r+o+(a??"")},"");function ot(e){let t=this||{},n=e.call?e(t.p):e;return iCe(n.unshift?n.raw?aCe(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,nCe(t.target),t.g,t.o,t.k)}ot.bind({g:1}),ot.bind({k:1});function XB(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=XB(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ce(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=XB(e))&&(r&&(r+=" "),r+=t);return r}function sCe(e,t){const n=Rt(e),{onChange:r}=t;let o=new Set(t.appear?void 0:n);const i=new WeakSet,[a,s]=Se([],{equals:!1}),[l]=eH(),c=d=>{s(f=>(f.push.apply(f,d),f));for(const f of d)i.delete(f)},u=(d,f,p)=>d.splice(p,0,f);return me(d=>{const f=a(),p=e();if(p[Lf],Rt(l))return l(),d;if(f.length){const h=d.filter(m=>!f.includes(m));return f.length=0,r({list:h,added:[],removed:[],unchanged:h,finishRemoved:c}),h}return Rt(()=>{const h=new Set(p),m=p.slice(),v=[],y=[],w=[];for(const S of p)(o.has(S)?w:v).push(S);let x=!v.length;for(let S=0;S<d.length;S++){const C=d[S];h.has(C)||(i.has(C)||(y.push(C),i.add(C)),u(m,C,S)),x&&C!==m[S]&&(x=!1)}return!y.length&&x?d:(r({list:m,added:v,removed:y,unchanged:w,finishRemoved:c}),o=h,m)})},t.appear?[]:n.slice())}function Un(...e){return ISe(e)}var QB=e=>e instanceof Element;function lC(e,t){if(t(e))return e;if(typeof e=="function"&&!e.length)return lC(e(),t);if(Array.isArray(e)){const n=[];for(const r of e){const o=lC(r,t);o&&(Array.isArray(o)?n.push.apply(n,o):n.push(o))}return n.length?n:null}return null}function lCe(e,t=QB,n=QB){const r=me(e),o=me(()=>lC(r(),t));return o.toArray=()=>{const i=o();return Array.isArray(i)?i:i?[i]:[]},o}function cCe(e){return me(()=>{const t=e.name||"s";return{enterActive:(e.enterActiveClass||t+"-enter-active").split(" "),enter:(e.enterClass||t+"-enter").split(" "),enterTo:(e.enterToClass||t+"-enter-to").split(" "),exitActive:(e.exitActiveClass||t+"-exit-active").split(" "),exit:(e.exitClass||t+"-exit").split(" "),exitTo:(e.exitToClass||t+"-exit-to").split(" "),move:(e.moveClass||t+"-move").split(" ")}})}function ZB(e){requestAnimationFrame(()=>requestAnimationFrame(e))}function uCe(e,t,n,r){const{onBeforeEnter:o,onEnter:i,onAfterEnter:a}=t;o==null||o(n),n.classList.add(...e.enter),n.classList.add(...e.enterActive),queueMicrotask(()=>{if(!n.parentNode)return r==null?void 0:r();i==null||i(n,()=>s())}),ZB(()=>{n.classList.remove(...e.enter),n.classList.add(...e.enterTo),(!i||i.length<2)&&(n.addEventListener("transitionend",s),n.addEventListener("animationend",s))});function s(l){(!l||l.target===n)&&(n.removeEventListener("transitionend",s),n.removeEventListener("animationend",s),n.classList.remove(...e.enterActive),n.classList.remove(...e.enterTo),a==null||a(n))}}function dCe(e,t,n,r){const{onBeforeExit:o,onExit:i,onAfterExit:a}=t;if(!n.parentNode)return r==null?void 0:r();o==null||o(n),n.classList.add(...e.exit),n.classList.add(...e.exitActive),i==null||i(n,()=>s()),ZB(()=>{n.classList.remove(...e.exit),n.classList.add(...e.exitTo),(!i||i.length<2)&&(n.addEventListener("transitionend",s),n.addEventListener("animationend",s))});function s(l){(!l||l.target===n)&&(r==null||r(),n.removeEventListener("transitionend",s),n.removeEventListener("animationend",s),n.classList.remove(...e.exitActive),n.classList.remove(...e.exitTo),a==null||a(n))}}var JB=e=>{const t=cCe(e);return sCe(lCe(()=>e.children).toArray,{appear:e.appear,onChange({added:n,removed:r,finishRemoved:o,list:i}){const a=t();for(const l of n)uCe(a,e,l);const s=[];for(const l of i)l.isConnected&&(l instanceof HTMLElement||l instanceof SVGElement)&&s.push({el:l,rect:l.getBoundingClientRect()});queueMicrotask(()=>{const l=[];for(const{el:c,rect:u}of s)if(c.isConnected){const d=c.getBoundingClientRect(),f=u.left-d.left,p=u.top-d.top;(f||p)&&(c.style.transform=`translate(${f}px, ${p}px)`,c.style.transitionDuration="0s",l.push(c))}document.body.offsetHeight;for(const c of l){let u=function(d){(d.target===c||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",u),c.classList.remove(...a.move))};c.classList.add(...a.move),c.style.transform=c.style.transitionDuration="",c.addEventListener("transitionend",u)}});for(const l of r)dCe(a,e,l,()=>o([l]))}})},cC=Symbol("fallback");function ej(e){for(const t of e)t.dispose()}function fCe(e,t,n,r={}){const o=new Map;return Ye(()=>ej(o.values())),()=>{const a=e()||[];return a[Lf],Rt(()=>{var u,d;if(!a.length)return ej(o.values()),o.clear(),r.fallback?[ri(p=>(o.set(cC,{dispose:p}),r.fallback()))]:[];const s=new Array(a.length),l=o.get(cC);if(!o.size||l){l==null||l.dispose(),o.delete(cC);for(let f=0;f<a.length;f++){const p=a[f],h=t(p,f);i(s,p,f,h)}return s}const c=new Set(o.keys());for(let f=0;f<a.length;f++){const p=a[f],h=t(p,f);c.delete(h);const m=o.get(h);m?(s[f]=m.mapped,(u=m.setIndex)==null||u.call(m,f),m.setItem(()=>p)):i(s,p,f,h)}for(const f of c)(d=o.get(f))==null||d.dispose(),o.delete(f);return s})};function i(a,s,l,c){ri(u=>{const[d,f]=Se(s),p={setItem:f,dispose:u};if(n.length>1){const[h,m]=Se(l);p.setIndex=m,p.mapped=n(d,h)}else p.mapped=n(d);o.set(c,p),a[l]=p.mapped})}}function Dm(e){const{by:t}=e;return me(fCe(()=>e.each,typeof t=="function"?t:n=>n[t],e.children,"fallback"in e?{fallback:()=>e.fallback}:void 0))}function hCe(e,t,n,r){return e.addEventListener(t,n,r),FSe(e.removeEventListener.bind(e,t,n,r))}function pCe(e,t,n,r){const o=()=>{nC(ge(e)).forEach(i=>{i&&nC(ge(t)).forEach(a=>hCe(i,a,n,r))})};typeof e=="function"?We(o):He(o)}function gCe(e,t){const n=new ResizeObserver(e);return Ye(n.disconnect.bind(n)),{observe:r=>n.observe(r,t),unobserve:n.unobserve.bind(n)}}function tj(e,t,n){const r=new WeakMap,{observe:o,unobserve:i}=gCe(a=>{for(const s of a){const{contentRect:l,target:c}=s,u=Math.round(l.width),d=Math.round(l.height),f=r.get(c);(!f||f.width!==u||f.height!==d)&&(t(l,c,s),r.set(c,{width:u,height:d}))}},n);We(a=>{const s=$Se(nC(ge(e)));return RSe(s,a,o,i),s},[])}var mCe=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function nj(e){const t={};let n;for(;n=mCe.exec(e);)t[n[1]]=n[2];return t}function Nm(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=nj(e)}else typeof t=="string"&&(t=nj(t));return{...e,...t}}function vCe(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function uC(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function yCe(e){return typeof e=="number"}function Wl(e){return Object.prototype.toString.call(e)==="[object String]"}function bCe(e){return typeof e=="function"}function Vd(e){return t=>`${e()}-${t}`}function Rr(e,t){return e?e===t||e.contains(t):!1}function Ud(e,t=!1){const{activeElement:n}=zo(e);if(!(n!=null&&n.nodeName))return null;if(rj(n)&&n.contentDocument)return Ud(n.contentDocument.body,t);if(t){const r=n.getAttribute("aria-activedescendant");if(r){const o=zo(n).getElementById(r);if(o)return o}}return n}function wCe(e){return zo(e).defaultView||window}function zo(e){return e?e.ownerDocument||e:document}function rj(e){return e.tagName==="IFRAME"}var dC=(e=>(e.Escape="Escape",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.PageDown="PageDown",e.PageUp="PageUp",e))(dC||{});function fC(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)==null?void 0:t.platform)||window.navigator.platform):!1}function $m(){return fC(/^Mac/i)}function xCe(){return fC(/^iPhone/i)}function SCe(){return fC(/^iPad/i)||$m()&&navigator.maxTouchPoints>1}function CCe(){return xCe()||SCe()}function ECe(){return $m()||CCe()}function Lt(e,t){return t&&(bCe(t)?t(e):t[0](t[1],e)),e==null?void 0:e.defaultPrevented}function pn(e){return t=>{for(const n of e)Lt(t,n)}}function PCe(e){return $m()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function Dn(e){if(e)if(OCe())e.focus({preventScroll:!0});else{const t=TCe(e);e.focus(),_Ce(t)}}var Im=null;function OCe(){if(Im==null){Im=!1;try{document.createElement("div").focus({get preventScroll(){return Im=!0,!0}})}catch{}}return Im}function TCe(e){let t=e.parentNode;const n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function _Ce(e){for(const{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var oj=["input:not([type='hidden']):not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","[tabindex]","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]:not([contenteditable='false'])"],MCe=[...oj,'[tabindex]:not([tabindex="-1"]):not([disabled])'],hC=oj.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])",kCe=MCe.join(':not([hidden]):not([tabindex="-1"]),');function ij(e,t){const r=Array.from(e.querySelectorAll(hC)).filter(aj);return t&&aj(e)&&r.unshift(e),r.forEach((o,i)=>{if(rj(o)&&o.contentDocument){const a=o.contentDocument.body,s=ij(a,!1);r.splice(i,1,...s)}}),r}function aj(e){return sj(e)&&!ACe(e)}function sj(e){return e.matches(hC)&&pC(e)}function ACe(e){return parseInt(e.getAttribute("tabindex")||"0",10)<0}function pC(e,t){return e.nodeName!=="#comment"&&DCe(e)&&NCe(e,t)&&(!e.parentElement||pC(e.parentElement,e))}function DCe(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;const{display:t,visibility:n}=e.style;let r=t!=="none"&&n!=="hidden"&&n!=="collapse";if(r){if(!e.ownerDocument.defaultView)return r;const{getComputedStyle:o}=e.ownerDocument.defaultView,{display:i,visibility:a}=o(e);r=i!=="none"&&a!=="hidden"&&a!=="collapse"}return r}function NCe(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function $Ce(e,t,n){const r=t!=null&&t.tabbable?kCe:hC,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var a;return(a=t==null?void 0:t.from)!=null&&a.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&pC(i)&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}function lj(e){for(;e&&!ICe(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function ICe(e){const t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function LCe(){}function FCe(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=i,s=0,l=a-1;s<a;l=s++){const[c,u]=t[s],[d,f]=t[l],[,p]=t[l===0?a-1:l-1]||[0,0],h=(u-f)*(n-c)-(c-d)*(r-u);if(f<u){if(r>=f&&r<u){if(h===0)return!0;h>0&&(r===f?r>p&&(o=!o):o=!o)}}else if(u<f){if(r>u&&r<=f){if(h===0)return!0;h<0&&(r===f?r<p&&(o=!o):o=!o)}}else if(r==u&&(n>=d&&n<=c||n>=c&&n<=d))return!0}return o}function lt(e,t){return Je(e,t)}var Hd=new Map,cj=new Set;function uj(){if(typeof window>"u")return;const e=n=>{if(!n.target)return;let r=Hd.get(n.target);r||(r=new Set,Hd.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=Hd.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Hd.delete(n.target)),Hd.size===0)){for(const o of cj)o();cj.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?uj():document.addEventListener("DOMContentLoaded",uj));function gC(e,t){const n=dj(e,t,"left"),r=dj(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight;let a=e.scrollLeft,s=e.scrollTop;const l=a+e.offsetWidth,c=s+e.offsetHeight;n<=a?a=n:n+o>l&&(a+=n+o-l),r<=s?s=r:r+i>c&&(s+=r+i-c),e.scrollLeft=a,e.scrollTop=s}function dj(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function RCe(e,t){var n,r;if(document.contains(e)){const o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let a=lj(e);for(;e&&a&&e!==o&&a!==o;)gC(a,e),e=a,a=lj(e)}else{const{left:a,top:s}=e.getBoundingClientRect();(n=e==null?void 0:e.scrollIntoView)==null||n.call(e,{block:"nearest"});const{left:l,top:c}=e.getBoundingClientRect();(Math.abs(a-l)>1||Math.abs(s-c)>1)&&((r=e.scrollIntoView)==null||r.call(e,{block:"nearest"}))}}}var fj={border:"0",clip:"rect(0 0 0 0)","clip-path":"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:"0",position:"absolute",width:"1px","white-space":"nowrap"};function Br(e){return t=>(e(t),()=>e(void 0))}function Lm(e,t){const[n,r]=Se(hj(t==null?void 0:t()));return We(()=>{var o;r(((o=e())==null?void 0:o.tagName.toLowerCase())||hj(t==null?void 0:t()))}),n}function hj(e){return Wl(e)?e:void 0}function Ft(e){const[t,n]=pt(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return I($H,Je(n,{get component(){return t.as}}))}var BCe=["id","name","validationState","required","disabled","readOnly"];function jCe(e){const t=`form-control-${rr()}`,n=lt({id:t},e),[r,o]=Se(),[i,a]=Se(),[s,l]=Se(),[c,u]=Se(),d=(m,v,y)=>{const w=y!=null||r()!=null;return[y,r(),w&&v!=null?m:void 0].filter(Boolean).join(" ")||void 0},f=m=>[s(),c(),m].filter(Boolean).join(" ")||void 0,p=me(()=>({"data-valid":ge(n.validationState)==="valid"?"":void 0,"data-invalid":ge(n.validationState)==="invalid"?"":void 0,"data-required":ge(n.required)?"":void 0,"data-disabled":ge(n.disabled)?"":void 0,"data-readonly":ge(n.readOnly)?"":void 0}));return{formControlContext:{name:()=>ge(n.name)??ge(n.id),dataset:p,validationState:()=>ge(n.validationState),isRequired:()=>ge(n.required),isDisabled:()=>ge(n.disabled),isReadOnly:()=>ge(n.readOnly),labelId:r,fieldId:i,descriptionId:s,errorMessageId:c,getAriaLabelledBy:d,getAriaDescribedBy:f,generateId:Vd(()=>ge(n.id)),registerLabel:Br(o),registerField:Br(a),registerDescription:Br(l),registerErrorMessage:Br(u)}}}var pj=yn();function Wd(){const e=bn(pj);if(e===void 0)throw new Error("[kobalte]: `useFormControlContext` must be used within a `FormControlContext.Provider` component");return e}function gj(e){const t=Wd(),n=lt({id:t.generateId("description")},e);return We(()=>Ye(t.registerDescription(n.id))),I(Ft,Je({as:"div"},()=>t.dataset(),n))}function mj(e){const t=Wd(),n=lt({id:t.generateId("error-message")},e),[r,o]=pt(n,["forceMount"]),i=()=>t.validationState()==="invalid";return We(()=>{i()&&Ye(t.registerErrorMessage(o.id))}),I(qe,{get when(){return r.forceMount||i()},get children(){return I(Ft,Je({as:"div"},()=>t.dataset(),o))}})}function zCe(e){let t;const n=Wd(),r=lt({id:n.generateId("label")},e),[o,i]=pt(r,["ref"]),a=Lm(()=>t,()=>"label");return We(()=>Ye(n.registerLabel(i.id))),I(Ft,Je({as:"label",ref(s){const l=Un(c=>t=c,o.ref);typeof l=="function"&&l(s)},get for(){return Wt(()=>a()==="label")()?n.fieldId():void 0}},()=>n.dataset(),i))}function qCe(e,t){We(oi(e,n=>{if(n==null)return;const r=VCe(n);r!=null&&(r.addEventListener("reset",t,{passive:!0}),Ye(()=>{r.removeEventListener("reset",t)}))}))}function VCe(e){return UCe(e)?e.form:e.closest("form")}function UCe(e){return e.matches("textarea, input, select, button")}function Kd(e){var a;const[t,n]=Se((a=e.defaultValue)==null?void 0:a.call(e)),r=me(()=>{var s;return((s=e.value)==null?void 0:s.call(e))!==void 0}),o=me(()=>{var s;return r()?(s=e.value)==null?void 0:s.call(e):t()});return[o,s=>{Rt(()=>{var c;const l=LSe(s,o());return Object.is(l,o())||(r()||n(l),(c=e.onChange)==null||c.call(e,l)),l})}]}function vj(e){const[t,n]=Kd(e);return[()=>t()??!1,n]}function HCe(e){const[t,n]=Kd(e);return[()=>t()??[],n]}function WCe(e={}){const[t,n]=vj({value:()=>ge(e.isSelected),defaultValue:()=>!!ge(e.defaultIsSelected),onChange:i=>{var a;return(a=e.onSelectedChange)==null?void 0:a.call(e,i)}});return{isSelected:t,setIsSelected:i=>{!ge(e.isReadOnly)&&!ge(e.isDisabled)&&n(i)},toggle:()=>{!ge(e.isReadOnly)&&!ge(e.isDisabled)&&n(!t())}}}var KCe=Object.defineProperty,Fm=(e,t)=>{for(var n in t)KCe(e,n,{get:t[n],enumerable:!0})},yj=yn();function bj(){return bn(yj)}function GCe(){const e=bj();if(e===void 0)throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");return e}function wj(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function YCe(e,t){var o;const n=t.ref();if(!n)return-1;let r=e.length;if(!r)return-1;for(;r--;){const i=(o=e[r])==null?void 0:o.ref();if(i&&wj(i,n))return r+1}return 0}function XCe(e){const t=e.map((r,o)=>[o,r]);let n=!1;return t.sort(([r,o],[i,a])=>{const s=o.ref(),l=a.ref();return s===l||!s||!l?0:wj(s,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1)}),n?t.map(([r,o])=>o):e}function xj(e,t){const n=XCe(e);e!==n&&t(n)}function QCe(e){var o,i;const t=e[0],n=(o=e[e.length-1])==null?void 0:o.ref();let r=(i=t==null?void 0:t.ref())==null?void 0:i.parentElement;for(;r;){if(n&&r.contains(n))return r;r=r.parentElement}return zo(r).body}function ZCe(e,t){We(()=>{const n=setTimeout(()=>{xj(e(),t)});Ye(()=>clearTimeout(n))})}function JCe(e,t){if(typeof IntersectionObserver!="function"){ZCe(e,t);return}let n=[];We(()=>{const r=()=>{const a=!!n.length;n=e(),a&&xj(e(),t)},o=QCe(e()),i=new IntersectionObserver(r,{root:o});for(const a of e()){const s=a.ref();s&&i.observe(s)}Ye(()=>i.disconnect())})}function eEe(e={}){const[t,n]=HCe({value:()=>ge(e.items),onChange:i=>{var a;return(a=e.onItemsChange)==null?void 0:a.call(e,i)}});JCe(t,n);const r=i=>(n(a=>{const s=YCe(a,i);return vCe(a,i,s)}),()=>{n(a=>{const s=a.filter(l=>l.ref()!==i.ref());return a.length===s.length?a:s})});return{DomCollectionProvider:i=>I(yj.Provider,{value:{registerItem:r},get children(){return i.children}})}}function tEe(e){const t=GCe(),n=lt({shouldRegisterItem:!0},e);We(()=>{if(!n.shouldRegisterItem)return;const r=t.registerItem(n.getItem());Ye(r)})}function Sj(e){let t=e.startIndex??0;const n=e.startLevel??0,r=[],o=l=>{if(l==null)return"";const c=e.getKey??"key",u=Wl(c)?l[c]:c(l);return u!=null?String(u):""},i=l=>{if(l==null)return"";const c=e.getTextValue??"textValue",u=Wl(c)?l[c]:c(l);return u!=null?String(u):""},a=l=>{if(l==null)return!1;const c=e.getDisabled??"disabled";return(Wl(c)?l[c]:c(l))??!1},s=l=>{var c;if(l!=null)return Wl(e.getSectionChildren)?l[e.getSectionChildren]:(c=e.getSectionChildren)==null?void 0:c.call(e,l)};for(const l of e.dataSource){if(Wl(l)||yCe(l)){r.push({type:"item",rawValue:l,key:String(l),textValue:String(l),disabled:a(l),level:n,index:t}),t++;continue}if(s(l)!=null){r.push({type:"section",rawValue:l,key:"",textValue:"",disabled:!1,level:n,index:t}),t++;const c=s(l)??[];if(c.length>0){const u=Sj({dataSource:c,getKey:e.getKey,getTextValue:e.getTextValue,getDisabled:e.getDisabled,getSectionChildren:e.getSectionChildren,startIndex:t,startLevel:n+1});r.push(...u),t+=u.length}}else r.push({type:"item",rawValue:l,key:o(l),textValue:i(l),disabled:a(l),level:n,index:t}),t++}return r}function nEe(e,t=[]){return me(()=>{const n=Sj({dataSource:ge(e.dataSource),getKey:ge(e.getKey),getTextValue:ge(e.getTextValue),getDisabled:ge(e.getDisabled),getSectionChildren:ge(e.getSectionChildren)});for(let r=0;r<t.length;r++)t[r]();return e.factory(n)})}var rEe=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),oEe=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function iEe(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return rEe.has(n)}const t=e.split("-")[0];return oEe.has(t)}function aEe(e){return iEe(e)?"rtl":"ltr"}function Cj(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:aEe(e)}}var mC=Cj(),Gd=new Set;function Ej(){mC=Cj();for(const e of Gd)e(mC)}function sEe(){const[e,t]=Se(mC),n=me(()=>e());return ii(()=>{Gd.size===0&&window.addEventListener("languagechange",Ej),Gd.add(t),Ye(()=>{Gd.delete(t),Gd.size===0&&window.removeEventListener("languagechange",Ej)})}),{locale:()=>n().locale,direction:()=>n().direction}}var lEe=yn();function aa(){const e=sEe();return bn(lEe)||e}var vC=new Map;function cEe(e){const{locale:t}=aa(),n=me(()=>t()+(e?Object.entries(e).sort((r,o)=>r[0]<o[0]?-1:1).join():""));return me(()=>{const r=n();let o;return vC.has(r)&&(o=vC.get(r)),o||(o=new Intl.Collator(t(),e),vC.set(r,o)),o})}var Ti=class wq extends Set{constructor(n,r,o){super(n);cn(this,"anchorKey");cn(this,"currentKey");n instanceof wq?(this.anchorKey=r||n.anchorKey,this.currentKey=o||n.currentKey):(this.anchorKey=r,this.currentKey=o)}};function uEe(e){const[t,n]=Kd(e);return[()=>t()??new Ti,n]}function Pj(e){return ECe()?e.altKey:e.ctrlKey}function Kl(e){return $m()?e.metaKey:e.ctrlKey}function Oj(e){return new Ti(e)}function dEe(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function fEe(e){const t=lt({selectionMode:"none",selectionBehavior:"toggle"},e),[n,r]=Se(!1),[o,i]=Se(),a=me(()=>{const m=ge(t.selectedKeys);return m!=null?Oj(m):m}),s=me(()=>{const m=ge(t.defaultSelectedKeys);return m!=null?Oj(m):new Ti}),[l,c]=uEe({value:a,defaultValue:s,onChange:m=>{var v;return(v=t.onSelectionChange)==null?void 0:v.call(t,m)}}),[u,d]=Se(ge(t.selectionBehavior)),f=()=>ge(t.selectionMode),p=()=>ge(t.disallowEmptySelection)??!1,h=m=>{(ge(t.allowDuplicateSelectionEvents)||!dEe(m,l()))&&c(m)};return We(()=>{const m=l();ge(t.selectionBehavior)==="replace"&&u()==="toggle"&&typeof m=="object"&&m.size===0&&d("replace")}),We(()=>{d(ge(t.selectionBehavior)??"toggle")}),{selectionMode:f,disallowEmptySelection:p,selectionBehavior:u,setSelectionBehavior:d,isFocused:n,setFocused:r,focusedKey:o,setFocusedKey:i,selectedKeys:l,setSelectedKeys:h}}function hEe(e){const[t,n]=Se(""),[r,o]=Se(-1);return{typeSelectHandlers:{onKeyDown:a=>{var f;if(ge(e.isDisabled))return;const s=ge(e.keyboardDelegate),l=ge(e.selectionManager);if(!s.getKeyForSearch)return;const c=pEe(a.key);if(!c||a.ctrlKey||a.metaKey)return;c===" "&&t().trim().length>0&&(a.preventDefault(),a.stopPropagation());let u=n(p=>p+c),d=s.getKeyForSearch(u,l.focusedKey())??s.getKeyForSearch(u);d==null&&gEe(u)&&(u=u[0],d=s.getKeyForSearch(u,l.focusedKey())??s.getKeyForSearch(u)),d!=null&&(l.setFocusedKey(d),(f=e.onTypeSelect)==null||f.call(e,d)),clearTimeout(r()),o(window.setTimeout(()=>n(""),500))}}}}function pEe(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function gEe(e){return e.split("").every(t=>t===e[0])}function mEe(e,t,n){const o=Je({selectOnFocus:()=>ge(e.selectionManager).selectionBehavior()==="replace"},e),i=()=>t(),{direction:a}=aa();let s={top:0,left:0};pCe(()=>ge(o.isVirtualized)?void 0:i(),"scroll",()=>{const v=i();v&&(s={top:v.scrollTop,left:v.scrollLeft})});const{typeSelectHandlers:l}=hEe({isDisabled:()=>ge(o.disallowTypeAhead),keyboardDelegate:()=>ge(o.keyboardDelegate),selectionManager:()=>ge(o.selectionManager)}),c=()=>ge(o.orientation)??"vertical",u=v=>{var _,T,M,A,D,N,R,U;Lt(v,l.onKeyDown),v.altKey&&v.key==="Tab"&&v.preventDefault();const y=t();if(!(y!=null&&y.contains(v.target)))return;const w=ge(o.selectionManager),x=ge(o.selectOnFocus),S=L=>{L!=null&&(w.setFocusedKey(L),v.shiftKey&&w.selectionMode()==="multiple"?w.extendSelection(L):x&&!Pj(v)&&w.replaceSelection(L))},C=ge(o.keyboardDelegate),E=ge(o.shouldFocusWrap),P=w.focusedKey();switch(v.key){case(c()==="vertical"?"ArrowDown":"ArrowRight"):{if(C.getKeyBelow){v.preventDefault();let L;P!=null?L=C.getKeyBelow(P):L=(_=C.getFirstKey)==null?void 0:_.call(C),L==null&&E&&(L=(T=C.getFirstKey)==null?void 0:T.call(C,P)),S(L)}break}case(c()==="vertical"?"ArrowUp":"ArrowLeft"):{if(C.getKeyAbove){v.preventDefault();let L;P!=null?L=C.getKeyAbove(P):L=(M=C.getLastKey)==null?void 0:M.call(C),L==null&&E&&(L=(A=C.getLastKey)==null?void 0:A.call(C,P)),S(L)}break}case(c()==="vertical"?"ArrowLeft":"ArrowUp"):{if(C.getKeyLeftOf){v.preventDefault();const L=a()==="rtl";let V;P!=null?V=C.getKeyLeftOf(P):V=L?(D=C.getFirstKey)==null?void 0:D.call(C):(N=C.getLastKey)==null?void 0:N.call(C),S(V)}break}case(c()==="vertical"?"ArrowRight":"ArrowDown"):{if(C.getKeyRightOf){v.preventDefault();const L=a()==="rtl";let V;P!=null?V=C.getKeyRightOf(P):V=L?(R=C.getLastKey)==null?void 0:R.call(C):(U=C.getFirstKey)==null?void 0:U.call(C),S(V)}break}case"Home":if(C.getFirstKey){v.preventDefault();const L=C.getFirstKey(P,Kl(v));L!=null&&(w.setFocusedKey(L),Kl(v)&&v.shiftKey&&w.selectionMode()==="multiple"?w.extendSelection(L):x&&w.replaceSelection(L))}break;case"End":if(C.getLastKey){v.preventDefault();const L=C.getLastKey(P,Kl(v));L!=null&&(w.setFocusedKey(L),Kl(v)&&v.shiftKey&&w.selectionMode()==="multiple"?w.extendSelection(L):x&&w.replaceSelection(L))}break;case"PageDown":if(C.getKeyPageBelow&&P!=null){v.preventDefault();const L=C.getKeyPageBelow(P);S(L)}break;case"PageUp":if(C.getKeyPageAbove&&P!=null){v.preventDefault();const L=C.getKeyPageAbove(P);S(L)}break;case"a":Kl(v)&&w.selectionMode()==="multiple"&&ge(o.disallowSelectAll)!==!0&&(v.preventDefault(),w.selectAll());break;case"Escape":v.defaultPrevented||(v.preventDefault(),ge(o.disallowEmptySelection)||w.clearSelection());break;case"Tab":if(!ge(o.allowsTabNavigation)){if(v.shiftKey)y.focus();else{const L=$Ce(y,{tabbable:!0});let V,j;do j=L.lastChild(),j&&(V=j);while(j);V&&!V.contains(document.activeElement)&&Dn(V)}break}}},d=v=>{var S,C;const y=ge(o.selectionManager),w=ge(o.keyboardDelegate),x=ge(o.selectOnFocus);if(y.isFocused()){v.currentTarget.contains(v.target)||y.setFocused(!1);return}if(v.currentTarget.contains(v.target)){if(y.setFocused(!0),y.focusedKey()==null){const E=_=>{_!=null&&(y.setFocusedKey(_),x&&y.replaceSelection(_))},P=v.relatedTarget;P&&v.currentTarget.compareDocumentPosition(P)&Node.DOCUMENT_POSITION_FOLLOWING?E(y.lastSelectedKey()??((S=w.getLastKey)==null?void 0:S.call(w))):E(y.firstSelectedKey()??((C=w.getFirstKey)==null?void 0:C.call(w)))}else if(!ge(o.isVirtualized)){const E=i();if(E){E.scrollTop=s.top,E.scrollLeft=s.left;const P=E.querySelector(`[data-key="${y.focusedKey()}"]`);P&&(Dn(P),gC(E,P))}}}},f=v=>{const y=ge(o.selectionManager);v.currentTarget.contains(v.relatedTarget)||y.setFocused(!1)},p=v=>{i()===v.target&&v.preventDefault()},h=()=>{var E,P;const v=ge(o.autoFocus);if(!v)return;const y=ge(o.selectionManager),w=ge(o.keyboardDelegate);let x;v==="first"&&(x=(E=w.getFirstKey)==null?void 0:E.call(w)),v==="last"&&(x=(P=w.getLastKey)==null?void 0:P.call(w));const S=y.selectedKeys();S.size&&(x=S.values().next().value),y.setFocused(!0),y.setFocusedKey(x);const C=t();C&&x==null&&!ge(o.shouldUseVirtualFocus)&&Dn(C)};return ii(()=>{o.deferAutoFocus?setTimeout(h,0):h()}),We(oi([i,()=>ge(o.isVirtualized),()=>ge(o.selectionManager).focusedKey()],v=>{var S;const[y,w,x]=v;if(w)x&&((S=o.scrollToKey)==null||S.call(o,x));else if(x&&y){const C=y.querySelector(`[data-key="${x}"]`);C&&gC(y,C)}})),{tabIndex:me(()=>{if(!ge(o.shouldUseVirtualFocus))return ge(o.selectionManager).focusedKey()==null?0:-1}),onKeyDown:u,onMouseDown:p,onFocusIn:d,onFocusOut:f}}function Tj(e,t){const n=()=>ge(e.selectionManager),r=()=>ge(e.key),o=()=>ge(e.shouldUseVirtualFocus),i=w=>{n().selectionMode()!=="none"&&(n().selectionMode()==="single"?n().isSelected(r())&&!n().disallowEmptySelection()?n().toggleSelection(r()):n().replaceSelection(r()):w!=null&&w.shiftKey?n().extendSelection(r()):n().selectionBehavior()==="toggle"||Kl(w)||"pointerType"in w&&w.pointerType==="touch"?n().toggleSelection(r()):n().replaceSelection(r()))},a=()=>n().isSelected(r()),s=()=>ge(e.disabled)||n().isDisabled(r()),l=()=>!s()&&n().canSelectItem(r());let c=null;const u=w=>{l()&&(c=w.pointerType,w.pointerType==="mouse"&&w.button===0&&!ge(e.shouldSelectOnPressUp)&&i(w))},d=w=>{l()&&w.pointerType==="mouse"&&w.button===0&&ge(e.shouldSelectOnPressUp)&&ge(e.allowsDifferentPressOrigin)&&i(w)},f=w=>{l()&&(ge(e.shouldSelectOnPressUp)&&!ge(e.allowsDifferentPressOrigin)||c!=="mouse")&&i(w)},p=w=>{!l()||!["Enter"," "].includes(w.key)||(Pj(w)?n().toggleSelection(r()):i(w))},h=w=>{s()&&w.preventDefault()},m=w=>{const x=t();o()||s()||!x||w.target===x&&n().setFocusedKey(r())},v=me(()=>{if(!(o()||s()))return r()===n().focusedKey()?0:-1}),y=me(()=>ge(e.virtualized)?void 0:r());return We(oi([t,r,o,()=>n().focusedKey(),()=>n().isFocused()],([w,x,S,C,E])=>{w&&x===C&&E&&!S&&document.activeElement!==w&&(e.focus?e.focus():Dn(w))})),{isSelected:a,isDisabled:s,allowsSelection:l,tabIndex:v,dataKey:y,onPointerDown:u,onPointerUp:d,onClick:f,onKeyDown:p,onMouseDown:h,onFocus:m}}var vEe=class{constructor(e,t){cn(this,"collection");cn(this,"state");this.collection=e,this.state=t}selectionMode(){return this.state.selectionMode()}disallowEmptySelection(){return this.state.disallowEmptySelection()}selectionBehavior(){return this.state.selectionBehavior()}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}isFocused(){return this.state.isFocused()}setFocused(e){this.state.setFocused(e)}focusedKey(){return this.state.focusedKey()}setFocusedKey(e){(e==null||this.collection().getItem(e))&&this.state.setFocusedKey(e)}selectedKeys(){return this.state.selectedKeys()}isSelected(e){if(this.state.selectionMode()==="none")return!1;const t=this.getKey(e);return t==null?!1:this.state.selectedKeys().has(t)}isEmpty(){return this.state.selectedKeys().size===0}isSelectAll(){if(this.isEmpty())return!1;const e=this.state.selectedKeys();return this.getAllSelectableKeys().every(t=>e.has(t))}firstSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=(n==null?void 0:n.index)!=null&&(e==null?void 0:e.index)!=null&&n.index<e.index;(!e||r)&&(e=n)}return e==null?void 0:e.key}lastSelectedKey(){let e;for(const t of this.state.selectedKeys()){const n=this.collection().getItem(t),r=(n==null?void 0:n.index)!=null&&(e==null?void 0:e.index)!=null&&n.index>e.index;(!e||r)&&(e=n)}return e==null?void 0:e.key}extendSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=this.state.selectedKeys(),r=n.anchorKey||t,o=new Ti(n,r,t);for(const i of this.getKeyRange(r,n.currentKey||t))o.delete(i);for(const i of this.getKeyRange(t,r))this.canSelectItem(i)&&o.add(i);this.state.setSelectedKeys(o)}getKeyRange(e,t){const n=this.collection().getItem(e),r=this.collection().getItem(t);return n&&r?n.index!=null&&r.index!=null&&n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){const n=[];let r=e;for(;r!=null;){const o=this.collection().getItem(r);if(o&&o.type==="item"&&n.push(r),r===t)return n;r=this.collection().getKeyAfter(r)}return[]}getKey(e){const t=this.collection().getItem(e);return t?!t||t.type!=="item"?null:t.key:e}toggleSelection(e){if(this.selectionMode()==="none")return;if(this.selectionMode()==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}const t=this.getKey(e);if(t==null)return;const n=new Ti(this.state.selectedKeys());n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection()&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(e){if(this.selectionMode()==="none")return;const t=this.getKey(e);if(t==null)return;const n=this.canSelectItem(t)?new Ti([t],t,t):new Ti;this.state.setSelectedKeys(n)}setSelectedKeys(e){if(this.selectionMode()==="none")return;const t=new Ti;for(const n of e){const r=this.getKey(n);if(r!=null&&(t.add(r),this.selectionMode()==="single"))break}this.state.setSelectedKeys(t)}selectAll(){this.selectionMode()==="multiple"&&this.state.setSelectedKeys(new Set(this.getAllSelectableKeys()))}clearSelection(){const e=this.state.selectedKeys();!this.disallowEmptySelection()&&e.size>0&&this.state.setSelectedKeys(new Ti)}toggleSelectAll(){this.isSelectAll()?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode()!=="none"&&(this.selectionMode()==="single"?this.isSelected(e)&&!this.disallowEmptySelection()?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior()==="toggle"||t&&t.pointerType==="touch"?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys())return!0;const t=this.selectedKeys();if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;for(const n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if(this.state.selectionMode()==="none")return!1;const t=this.collection().getItem(e);return t!=null&&!t.disabled}isDisabled(e){const t=this.collection().getItem(e);return!t||t.disabled}getAllSelectableKeys(){const e=[];return(n=>{for(;n!=null;){if(this.canSelectItem(n)){const r=this.collection().getItem(n);if(!r)continue;r.type==="item"&&e.push(n)}n=this.collection().getKeyAfter(n)}})(this.collection().getFirstKey()),e}},_j=class{constructor(e){cn(this,"keyMap",new Map);cn(this,"iterable");cn(this,"firstKey");cn(this,"lastKey");this.iterable=e;for(const r of e)this.keyMap.set(r.key,r);if(this.keyMap.size===0)return;let t,n=0;for(const[r,o]of this.keyMap)t?(t.nextKey=r,o.prevKey=t.key):(this.firstKey=r,o.prevKey=void 0),o.type==="item"&&(o.index=n++),t=o,t.nextKey=void 0;this.lastKey=t.key}*[Symbol.iterator](){yield*this.iterable}getSize(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;return(t=this.keyMap.get(e))==null?void 0:t.prevKey}getKeyAfter(e){var t;return(t=this.keyMap.get(e))==null?void 0:t.nextKey}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}};function yEe(e){const t=fEe(e),r=nEe({dataSource:()=>ge(e.dataSource),getKey:()=>ge(e.getKey),getTextValue:()=>ge(e.getTextValue),getDisabled:()=>ge(e.getDisabled),getSectionChildren:()=>ge(e.getSectionChildren),factory:i=>e.filter?new _j(e.filter(i)):new _j(i)},[()=>e.filter]),o=new vEe(r,t);return JE(()=>{const i=t.focusedKey();i!=null&&!r().getItem(i)&&t.setFocusedKey(void 0)}),{collection:r,selectionManager:()=>o}}var Nn=e=>typeof e=="function"?e():e,bEe=e=>{const t=me(()=>{const a=Nn(e.element);if(a)return getComputedStyle(a)}),n=()=>{var a;return((a=t())==null?void 0:a.animationName)??"none"},[r,o]=Se(Nn(e.show)?"present":"hidden");let i="none";return We(a=>{const s=Nn(e.show);return Rt(()=>{var u;if(a===s)return s;const l=i,c=n();s?o("present"):c==="none"||((u=t())==null?void 0:u.display)==="none"?o("hidden"):o(a===!0&&l!==c?"hiding":"hidden")}),s}),We(()=>{const a=Nn(e.element);if(!a)return;const s=c=>{c.target===a&&(i=n())},l=c=>{const d=n().includes(c.animationName);c.target===a&&d&&r()==="hiding"&&o("hidden")};a.addEventListener("animationstart",s),a.addEventListener("animationcancel",l),a.addEventListener("animationend",l),Ye(()=>{a.removeEventListener("animationstart",s),a.removeEventListener("animationcancel",l),a.removeEventListener("animationend",l)})}),{present:()=>r()==="present"||r()==="hiding",state:r}},wEe=bEe,Mj=wEe,Rm="data-kb-top-layer",kj,yC=!1,_i=[];function Yd(e){return _i.findIndex(t=>t.node===e)}function xEe(e){return _i[Yd(e)]}function SEe(e){return _i[_i.length-1].node===e}function Aj(){return _i.filter(e=>e.isPointerBlocking)}function CEe(){return[...Aj()].slice(-1)[0]}function bC(){return Aj().length>0}function Dj(e){var n;const t=Yd((n=CEe())==null?void 0:n.node);return Yd(e)<t}function EEe(e){_i.push(e)}function PEe(e){const t=Yd(e);t<0||_i.splice(t,1)}function OEe(){for(const{node:e}of _i)e.style.pointerEvents=Dj(e)?"none":"auto"}function TEe(e){if(bC()&&!yC){const t=zo(e);kj=document.body.style.pointerEvents,t.body.style.pointerEvents="none",yC=!0}}function _Ee(e){if(bC())return;const t=zo(e);t.body.style.pointerEvents=kj,t.body.style.length===0&&t.body.removeAttribute("style"),yC=!1}var vr={layers:_i,isTopMostLayer:SEe,hasPointerBlockingLayer:bC,isBelowPointerBlockingLayer:Dj,addLayer:EEe,removeLayer:PEe,indexOf:Yd,find:xEe,assignPointerEventToLayers:OEe,disableBodyPointerEvents:TEe,restoreBodyPointerEvents:_Ee},MEe={};Fm(MEe,{Button:()=>DEe,Root:()=>wC});var kEe=["button","color","file","image","reset","submit"];function AEe(e){const t=e.tagName.toLowerCase();return t==="button"?!0:t==="input"&&e.type?kEe.indexOf(e.type)!==-1:!1}function wC(e){let t;const n=lt({type:"button"},e),[r,o]=pt(n,["ref","type","disabled"]),i=Lm(()=>t,()=>"button"),a=me(()=>{const c=i();return c==null?!1:AEe({tagName:c,type:r.type})}),s=me(()=>i()==="input"),l=me(()=>i()==="a"&&(t==null?void 0:t.getAttribute("href"))!=null);return I(Ft,Je({as:"button",ref(c){const u=Un(d=>t=d,r.ref);typeof u=="function"&&u(c)},get type(){return a()||s()?r.type:void 0},get role(){return!a()&&!l()?"button":void 0},get tabIndex(){return!a()&&!l()&&!r.disabled?0:void 0},get disabled(){return a()||s()?r.disabled:void 0},get"aria-disabled"(){return!a()&&!s()&&r.disabled?!0:void 0},get"data-disabled"(){return r.disabled?"":void 0}},o))}var DEe=wC,NEe=["top","right","bottom","left"],qo=Math.min,yr=Math.max,Bm=Math.round,jm=Math.floor,sa=e=>({x:e,y:e}),$Ee={left:"right",right:"left",bottom:"top",top:"bottom"},IEe={start:"end",end:"start"};function xC(e,t,n){return yr(e,qo(t,n))}function ps(e,t){return typeof e=="function"?e(t):e}function la(e){return e.split("-")[0]}function Gl(e){return e.split("-")[1]}function Nj(e){return e==="x"?"y":"x"}function SC(e){return e==="y"?"height":"width"}function gs(e){return["top","bottom"].includes(la(e))?"y":"x"}function CC(e){return Nj(gs(e))}function LEe(e,t,n){n===void 0&&(n=!1);const r=Gl(e),o=CC(e),i=SC(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=zm(a)),[a,zm(a)]}function FEe(e){const t=zm(e);return[EC(e),t,EC(t)]}function EC(e){return e.replace(/start|end/g,t=>IEe[t])}function REe(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function BEe(e,t,n,r){const o=Gl(e);let i=REe(la(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(EC)))),i}function zm(e){return e.replace(/left|right|bottom|top/g,t=>$Ee[t])}function jEe(e){return{top:0,right:0,bottom:0,left:0,...e}}function $j(e){return typeof e!="number"?jEe(e):{top:e,right:e,bottom:e,left:e}}function qm(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ij(e,t,n){let{reference:r,floating:o}=e;const i=gs(t),a=CC(t),s=SC(a),l=la(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Gl(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1);break}return p}var zEe=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ij(c,r,l),f=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:v,fn:y}=s[m],{x:w,y:x,data:S,reset:C}=await y({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=w??u,d=x??d,p={...p,[v]:{...p[v],...S}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(c=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:u,y:d}=Ij(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}};async function Xd(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ps(t,e),h=$j(p),v=s[f?d==="floating"?"reference":"floating":d],y=qm(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),w=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},C=qm(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:l}):w);return{top:(y.top-C.top+h.top)/S.y,bottom:(C.bottom-y.bottom+h.bottom)/S.y,left:(y.left-C.left+h.left)/S.x,right:(C.right-y.right+h.right)/S.x}}var qEe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=ps(e,t)||{};if(c==null)return{};const d=$j(u),f={x:n,y:r},p=CC(o),h=SC(p),m=await a.getDimensions(c),v=p==="y",y=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[p]-f[p]-i.floating[h],C=f[p]-i.reference[p],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let P=E?E[x]:0;(!P||!await(a.isElement==null?void 0:a.isElement(E)))&&(P=s.floating[x]||i.floating[h]);const _=S/2-C/2,T=P/2-m[h]/2-1,M=qo(d[y],T),A=qo(d[w],T),D=M,N=P-m[h]-A,R=P/2-m[h]/2+_,U=xC(D,R,N),L=!l.arrow&&Gl(o)!=null&&R!==U&&i.reference[h]/2-(R<D?M:A)-m[h]/2<0,V=L?R<D?R-D:R-N:0;return{[p]:f[p]+V,data:{[p]:U,centerOffset:R-U-V,...L&&{alignmentOffset:V}},reset:L}}}),VEe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=ps(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=la(o),w=gs(s),x=la(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=f||(x||!m?[zm(s)]:FEe(s)),E=h!=="none";!f&&E&&C.push(...BEe(s,m,h,S));const P=[s,...C],_=await Xd(t,v),T=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&T.push(_[y]),d){const R=LEe(o,a,S);T.push(_[R[0]],_[R[1]])}if(M=[...M,{placement:o,overflows:T}],!T.every(R=>R<=0)){var A,D;const R=(((A=i.flip)==null?void 0:A.index)||0)+1,U=P[R];if(U)return{data:{index:R,overflows:M},reset:{placement:U}};let L=(D=M.filter(V=>V.overflows[0]<=0).sort((V,j)=>V.overflows[1]-j.overflows[1])[0])==null?void 0:D.placement;if(!L)switch(p){case"bestFit":{var N;const V=(N=M.filter(j=>{if(E){const H=gs(j.placement);return H===w||H==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(H=>H>0).reduce((H,se)=>H+se,0)]).sort((j,H)=>j[1]-H[1])[0])==null?void 0:N[0];V&&(L=V);break}case"initialPlacement":L=s;break}if(o!==L)return{reset:{placement:L}}}return{}}}};function Lj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Fj(e){return NEe.some(t=>e[t]>=0)}var UEe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ps(e,t);switch(r){case"referenceHidden":{const i=await Xd(t,{...o,elementContext:"reference"}),a=Lj(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Fj(a)}}}case"escaped":{const i=await Xd(t,{...o,altBoundary:!0}),a=Lj(i,n.floating);return{data:{escapedOffsets:a,escaped:Fj(a)}}}default:return{}}}}};async function HEe(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=la(n),s=Gl(n),l=gs(n)==="y",c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=ps(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}var WEe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await HEe(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},KEe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x:y,y:w}=v;return{x:y,y:w}}},...l}=ps(e,t),c={x:n,y:r},u=await Xd(t,l),d=gs(la(o)),f=Nj(d);let p=c[f],h=c[d];if(i){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",w=p+u[v],x=p-u[y];p=xC(w,p,x)}if(a){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",w=h+u[v],x=h-u[y];h=xC(w,h,x)}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},GEe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=ps(e,t),l=await Xd(t,s),c=la(n),u=Gl(n),d=gs(n)==="y",{width:f,height:p}=r.floating;let h,m;c==="top"||c==="bottom"?(h=c,m=u===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,h=u==="end"?"top":"bottom");const v=p-l.top-l.bottom,y=f-l.left-l.right,w=qo(p-l[h],v),x=qo(f-l[m],y),S=!t.middlewareData.shift;let C=w,E=x;if(d?E=u||S?qo(x,y):y:C=u||S?qo(w,v):v,S&&!u){const _=yr(l.left,0),T=yr(l.right,0),M=yr(l.top,0),A=yr(l.bottom,0);d?E=f-2*(_!==0||T!==0?_+T:yr(l.left,l.right)):C=p-2*(M!==0||A!==0?M+A:yr(l.top,l.bottom))}await a({...t,availableWidth:E,availableHeight:C});const P=await o.getDimensions(i.floating);return f!==P.width||p!==P.height?{reset:{rects:!0}}:{}}}};function Yl(e){return Rj(e)?(e.nodeName||"").toLowerCase():"#document"}function br(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mi(e){var t;return(t=(Rj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Rj(e){return e instanceof Node||e instanceof br(e).Node}function ho(e){return e instanceof Element||e instanceof br(e).Element}function Vo(e){return e instanceof HTMLElement||e instanceof br(e).HTMLElement}function Bj(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof br(e).ShadowRoot}function Qd(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=po(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function YEe(e){return["table","td","th"].includes(Yl(e))}function Vm(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function PC(e){const t=OC(),n=ho(e)?po(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function XEe(e){let t=ca(e);for(;Vo(t)&&!Xl(t);){if(PC(t))return t;if(Vm(t))return null;t=ca(t)}return null}function OC(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xl(e){return["html","body","#document"].includes(Yl(e))}function po(e){return br(e).getComputedStyle(e)}function Um(e){return ho(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ca(e){if(Yl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bj(e)&&e.host||Mi(e);return Bj(t)?t.host:t}function jj(e){const t=ca(e);return Xl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vo(t)&&Qd(t)?t:jj(t)}function Zd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jj(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=br(o);return i?t.concat(a,a.visualViewport||[],Qd(o)?o:[],a.frameElement&&n?Zd(a.frameElement):[]):t.concat(o,Zd(o,[],n))}function zj(e){const t=po(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Vo(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Bm(n)!==i||Bm(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function TC(e){return ho(e)?e:e.contextElement}function Ql(e){const t=TC(e);if(!Vo(t))return sa(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=zj(t);let a=(i?Bm(n.width):n.width)/r,s=(i?Bm(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}var QEe=sa(0);function qj(e){const t=br(e);return!OC()||!t.visualViewport?QEe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ZEe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==br(e)?!1:t}function ms(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=TC(e);let a=sa(1);t&&(r?ho(r)&&(a=Ql(r)):a=Ql(e));const s=ZEe(i,n,r)?qj(i):sa(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const f=br(i),p=r&&ho(r)?br(r):r;let h=f,m=h.frameElement;for(;m&&r&&p!==h;){const v=Ql(m),y=m.getBoundingClientRect(),w=po(m),x=y.left+(m.clientLeft+parseFloat(w.paddingLeft))*v.x,S=y.top+(m.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=x,c+=S,h=br(m),m=h.frameElement}}return qm({width:u,height:d,x:l,y:c})}function JEe(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Mi(r),s=t?Vm(t.floating):!1;if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=sa(1);const u=sa(0),d=Vo(r);if((d||!d&&!i)&&((Yl(r)!=="body"||Qd(a))&&(l=Um(r)),Vo(r))){const f=ms(r);c=Ql(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function e2e(e){return Array.from(e.getClientRects())}function Vj(e){return ms(Mi(e)).left+Um(e).scrollLeft}function t2e(e){const t=Mi(e),n=Um(e),r=e.ownerDocument.body,o=yr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=yr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Vj(e);const s=-n.scrollTop;return po(r).direction==="rtl"&&(a+=yr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function n2e(e,t){const n=br(e),r=Mi(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const c=OC();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function r2e(e,t){const n=ms(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Vo(e)?Ql(e):sa(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:a,height:s,x:l,y:c}}function Uj(e,t,n){let r;if(t==="viewport")r=n2e(e,n);else if(t==="document")r=t2e(Mi(e));else if(ho(t))r=r2e(t,n);else{const o=qj(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return qm(r)}function Hj(e,t){const n=ca(e);return n===t||!ho(n)||Xl(n)?!1:po(n).position==="fixed"||Hj(n,t)}function o2e(e,t){const n=t.get(e);if(n)return n;let r=Zd(e,[],!1).filter(s=>ho(s)&&Yl(s)!=="body"),o=null;const i=po(e).position==="fixed";let a=i?ca(e):e;for(;ho(a)&&!Xl(a);){const s=po(a),l=PC(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Qd(a)&&!l&&Hj(e,a))?r=r.filter(u=>u!==a):o=s,a=ca(a)}return t.set(e,r),r}function i2e(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Vm(t)?[]:o2e(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((c,u)=>{const d=Uj(t,u,o);return c.top=yr(d.top,c.top),c.right=qo(d.right,c.right),c.bottom=qo(d.bottom,c.bottom),c.left=yr(d.left,c.left),c},Uj(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function a2e(e){const{width:t,height:n}=zj(e);return{width:t,height:n}}function s2e(e,t,n){const r=Vo(t),o=Mi(t),i=n==="fixed",a=ms(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=sa(0);if(r||!r&&!i)if((Yl(t)!=="body"||Qd(o))&&(s=Um(t)),r){const d=ms(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=Vj(o));const c=a.left+s.scrollLeft-l.x,u=a.top+s.scrollTop-l.y;return{x:c,y:u,width:a.width,height:a.height}}function _C(e){return po(e).position==="static"}function Wj(e,t){return!Vo(e)||po(e).position==="fixed"?null:t?t(e):e.offsetParent}function Kj(e,t){const n=br(e);if(Vm(e))return n;if(!Vo(e)){let o=ca(e);for(;o&&!Xl(o);){if(ho(o)&&!_C(o))return o;o=ca(o)}return n}let r=Wj(e,t);for(;r&&YEe(r)&&_C(r);)r=Wj(r,t);return r&&Xl(r)&&_C(r)&&!PC(r)?n:r||XEe(e)||n}var l2e=async function(e){const t=this.getOffsetParent||Kj,n=this.getDimensions,r=await n(e.floating);return{reference:s2e(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function c2e(e){return po(e).direction==="rtl"}var Gj={convertOffsetParentRelativeRectToViewportRelativeRect:JEe,getDocumentElement:Mi,getClippingRect:i2e,getOffsetParent:Kj,getElementRects:l2e,getClientRects:e2e,getDimensions:a2e,getScale:Ql,isElement:ho,isRTL:c2e};function u2e(e,t){let n=null,r;const o=Mi(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p=jm(u),h=jm(o.clientWidth-(c+d)),m=jm(o.clientHeight-(u+f)),v=jm(c),w={rootMargin:-p+"px "+-h+"px "+-m+"px "+-v+"px",threshold:yr(0,qo(1,l))||1};let x=!0;function S(C){const E=C[0].intersectionRatio;if(E!==l){if(!x)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return a(!0),i}function d2e(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=TC(e),u=o||i?[...c?Zd(c):[],...Zd(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=c&&s?u2e(c,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(y=>{let[w]=y;w&&w.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let h,m=l?ms(e):null;l&&v();function v(){const y=ms(e);m&&(y.x!==m.x||y.y!==m.y||y.width!==m.width||y.height!==m.height)&&n(),m=y,h=requestAnimationFrame(v)}return n(),()=>{var y;u.forEach(w=>{o&&w.removeEventListener("scroll",n),i&&w.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(h)}}var f2e=WEe,h2e=KEe,p2e=VEe,g2e=GEe,m2e=UEe,v2e=qEe,y2e=(e,t,n)=>{const r=new Map,o={platform:Gj,...n},i={...o.platform,_c:r};return zEe(e,t,{...o,platform:i})},MC=yn();function kC(){const e=bn(MC);if(e===void 0)throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");return e}var b2e=Ae('<svg display="block" viewBox="0 0 30 30" style="transform:scale(1.02)"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">'),AC=30,Yj=AC/2,w2e={top:180,right:-90,bottom:0,left:90};function DC(e){const t=kC(),n=lt({size:AC},e),[r,o]=pt(n,["ref","style","size"]),i=()=>t.currentPlacement().split("-")[0],a=x2e(t.contentRef),s=()=>{var f;return((f=a())==null?void 0:f.getPropertyValue("background-color"))||"none"},l=()=>{var f;return((f=a())==null?void 0:f.getPropertyValue(`border-${i()}-color`))||"none"},c=()=>{var f;return((f=a())==null?void 0:f.getPropertyValue(`border-${i()}-width`))||"0px"},u=()=>Number.parseInt(c())*2*(AC/r.size),d=()=>`rotate(${w2e[i()]} ${Yj} ${Yj}) translate(0 2)`;return I(Ft,Je({as:"div",ref(f){const p=Un(t.setArrowRef,r.ref);typeof p=="function"&&p(f)},"aria-hidden":"true",get style(){return Nm({position:"absolute","font-size":`${r.size}px`,width:"1em",height:"1em","pointer-events":"none",fill:s(),stroke:l(),"stroke-width":u()},r.style)}},o,{get children(){const f=b2e(),p=f.firstChild;return He(()=>ve(p,"transform",d())),f}}))}function x2e(e){const[t,n]=Se();return We(()=>{const r=e();r&&n(wCe(r).getComputedStyle(r))}),t}function S2e(e){const t=kC(),[n,r]=pt(e,["ref","style"]);return I(Ft,Je({as:"div",ref(o){const i=Un(t.setPositionerRef,n.ref);typeof i=="function"&&i(o)},"data-popper-positioner":"",get style(){return Nm({position:"absolute",top:0,left:0,"min-width":"max-content"},n.style)}},r))}function Xj(e){const{x:t=0,y:n=0,width:r=0,height:o=0}=e??{};if(typeof DOMRect=="function")return new DOMRect(t,n,r,o);const i={x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:n+o,left:t};return{...i,toJSON:()=>i}}function C2e(e,t){return{contextElement:e,getBoundingClientRect:()=>{const r=t(e);return r?Xj(r):e?e.getBoundingClientRect():Xj()}}}function E2e(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}var P2e={top:"bottom",right:"left",bottom:"top",left:"right"};function O2e(e,t){const[n,r]=e.split("-"),o=P2e[n];return r?n==="left"||n==="right"?`${o} ${r==="start"?"top":"bottom"}`:r==="start"?`${o} ${t==="rtl"?"right":"left"}`:`${o} ${t==="rtl"?"left":"right"}`:`${o} center`}function T2e(e){const t=lt({getAnchorRect:f=>f==null?void 0:f.getBoundingClientRect(),placement:"bottom",gutter:0,shift:0,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,hideWhenDetached:!1,detachedPadding:0,arrowPadding:4,overflowPadding:8},e),[n,r]=Se(),[o,i]=Se(),[a,s]=Se(t.placement),l=()=>{var f;return C2e((f=t.anchorRef)==null?void 0:f.call(t),t.getAnchorRect)},{direction:c}=aa();async function u(){var E,P;const f=l(),p=n(),h=o();if(!f||!p)return;const m=((h==null?void 0:h.clientHeight)||0)/2,v=typeof t.gutter=="number"?t.gutter+m:t.gutter??m;p.style.setProperty("--kb-popper-content-overflow-padding",`${t.overflowPadding}px`),f.getBoundingClientRect();const y=[f2e(({placement:_})=>{const T=!!_.split("-")[1];return{mainAxis:v,crossAxis:T?void 0:t.shift,alignmentAxis:t.shift}})];if(t.flip!==!1){const _=typeof t.flip=="string"?t.flip.split(" "):void 0;if(_!==void 0&&!_.every(E2e))throw new Error("`flip` expects a spaced-delimited list of placements");y.push(p2e({padding:t.overflowPadding,fallbackPlacements:_}))}(t.slide||t.overlap)&&y.push(h2e({mainAxis:t.slide,crossAxis:t.overlap,padding:t.overflowPadding})),y.push(g2e({padding:t.overflowPadding,apply({availableWidth:_,availableHeight:T,rects:M}){const A=Math.round(M.reference.width);_=Math.floor(_),T=Math.floor(T),p.style.setProperty("--kb-popper-anchor-width",`${A}px`),p.style.setProperty("--kb-popper-content-available-width",`${_}px`),p.style.setProperty("--kb-popper-content-available-height",`${T}px`),t.sameWidth&&(p.style.width=`${A}px`),t.fitViewport&&(p.style.maxWidth=`${_}px`,p.style.maxHeight=`${T}px`)}})),t.hideWhenDetached&&y.push(m2e({padding:t.detachedPadding})),h&&y.push(v2e({element:h,padding:t.arrowPadding}));const w=await y2e(f,p,{placement:t.placement,strategy:"absolute",middleware:y,platform:{...Gj,isRTL:()=>c()==="rtl"}});if(s(w.placement),(E=t.onCurrentPlacementChange)==null||E.call(t,w.placement),!p)return;p.style.setProperty("--kb-popper-content-transform-origin",O2e(w.placement,c()));const x=Math.round(w.x),S=Math.round(w.y);let C;if(t.hideWhenDetached&&(C=(P=w.middlewareData.hide)!=null&&P.referenceHidden?"hidden":"visible"),Object.assign(p.style,{top:"0",left:"0",transform:`translate3d(${x}px, ${S}px, 0)`,visibility:C}),h&&w.middlewareData.arrow){const{x:_,y:T}=w.middlewareData.arrow,M=w.placement.split("-")[0];Object.assign(h.style,{left:_!=null?`${_}px`:"",top:T!=null?`${T}px`:"",[M]:"100%"})}}We(()=>{const f=l(),p=n();if(!f||!p)return;const h=d2e(f,p,u,{elementResize:typeof ResizeObserver=="function"});Ye(h)}),We(()=>{var h;const f=n(),p=(h=t.contentRef)==null?void 0:h.call(t);!f||!p||queueMicrotask(()=>{f.style.zIndex=getComputedStyle(p).zIndex})});const d={currentPlacement:a,contentRef:()=>{var f;return(f=t.contentRef)==null?void 0:f.call(t)},setPositionerRef:r,setArrowRef:i};return I(MC.Provider,{value:d,get children(){return t.children}})}var Qj=Object.assign(T2e,{Arrow:DC,Context:MC,usePopperContext:kC,Positioner:S2e});function _2e(e){const t=n=>{var r;n.key===dC.Escape&&((r=e.onEscapeKeyDown)==null||r.call(e,n))};We(()=>{var r;if(ge(e.isDisabled))return;const n=((r=e.ownerDocument)==null?void 0:r.call(e))??zo();n.addEventListener("keydown",t),Ye(()=>{n.removeEventListener("keydown",t)})})}var Zj="interactOutside.pointerDownOutside",Jj="interactOutside.focusOutside";function M2e(e,t){let n,r=LCe;const o=()=>zo(t()),i=d=>{var f;return(f=e.onPointerDownOutside)==null?void 0:f.call(e,d)},a=d=>{var f;return(f=e.onFocusOutside)==null?void 0:f.call(e,d)},s=d=>{var f;return(f=e.onInteractOutside)==null?void 0:f.call(e,d)},l=d=>{var p;const f=d.target;return!(f instanceof HTMLElement)||f.closest(`[${Rm}]`)||!Rr(o(),f)||Rr(t(),f)?!1:!((p=e.shouldExcludeElement)!=null&&p.call(e,f))},c=d=>{function f(){const p=t(),h=d.target;if(!p||!h||!l(d))return;const m=pn([i,s]);h.addEventListener(Zj,m,{once:!0});const v=new CustomEvent(Zj,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:d.button===2||PCe(d)&&d.button===0}});h.dispatchEvent(v)}d.pointerType==="touch"?(o().removeEventListener("click",f),r=f,o().addEventListener("click",f,{once:!0})):f()},u=d=>{const f=t(),p=d.target;if(!f||!p||!l(d))return;const h=pn([a,s]);p.addEventListener(Jj,h,{once:!0});const m=new CustomEvent(Jj,{bubbles:!1,cancelable:!0,detail:{originalEvent:d,isContextMenu:!1}});p.dispatchEvent(m)};We(()=>{ge(e.isDisabled)||(n=window.setTimeout(()=>{o().addEventListener("pointerdown",c,!0)},0),o().addEventListener("focusin",u,!0),Ye(()=>{window.clearTimeout(n),o().removeEventListener("click",r),o().removeEventListener("pointerdown",c,!0),o().removeEventListener("focusin",u,!0)}))})}var ez=yn();function k2e(){return bn(ez)}function A2e(e){let t;const n=k2e(),[r,o]=pt(e,["ref","disableOutsidePointerEvents","excludedElements","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","bypassTopMostLayerCheck"]),i=new Set([]),a=d=>{i.add(d);const f=n==null?void 0:n.registerNestedLayer(d);return()=>{i.delete(d),f==null||f()}};M2e({shouldExcludeElement:d=>{var f;return t?((f=r.excludedElements)==null?void 0:f.some(p=>Rr(p(),d)))||[...i].some(p=>Rr(p,d)):!1},onPointerDownOutside:d=>{var f,p,h;!t||vr.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!vr.isTopMostLayer(t)||((f=r.onPointerDownOutside)==null||f.call(r,d),(p=r.onInteractOutside)==null||p.call(r,d),d.defaultPrevented||(h=r.onDismiss)==null||h.call(r))},onFocusOutside:d=>{var f,p,h;(f=r.onFocusOutside)==null||f.call(r,d),(p=r.onInteractOutside)==null||p.call(r,d),d.defaultPrevented||(h=r.onDismiss)==null||h.call(r)}},()=>t),_2e({ownerDocument:()=>zo(t),onEscapeKeyDown:d=>{var f;!t||!vr.isTopMostLayer(t)||((f=r.onEscapeKeyDown)==null||f.call(r,d),!d.defaultPrevented&&r.onDismiss&&(d.preventDefault(),r.onDismiss()))}}),ii(()=>{if(!t)return;vr.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});const d=n==null?void 0:n.registerNestedLayer(t);vr.assignPointerEventToLayers(),vr.disableBodyPointerEvents(t),Ye(()=>{t&&(vr.removeLayer(t),d==null||d(),vr.assignPointerEventToLayers(),vr.restoreBodyPointerEvents(t))})}),We(oi([()=>t,()=>r.disableOutsidePointerEvents],([d,f])=>{if(!d)return;const p=vr.find(d);p&&p.isPointerBlocking!==f&&(p.isPointerBlocking=f,vr.assignPointerEventToLayers()),f&&vr.disableBodyPointerEvents(d),Ye(()=>{vr.restoreBodyPointerEvents(d)})},{defer:!0}));const u={registerNestedLayer:a};return I(ez.Provider,{value:u,get children(){return I(Ft,Je({as:"div",ref(d){const f=Un(p=>t=p,r.ref);typeof f=="function"&&f(d)}},o))}})}function tz(e={}){const[t,n]=vj({value:()=>ge(e.open),defaultValue:()=>!!ge(e.defaultOpen),onChange:a=>{var s;return(s=e.onOpenChange)==null?void 0:s.call(e,a)}}),r=()=>{n(!0)},o=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:o,toggle:()=>{t()?o():r()}}}var jr={};Fm(jr,{Description:()=>gj,ErrorMessage:()=>mj,Item:()=>iz,ItemControl:()=>az,ItemDescription:()=>sz,ItemIndicator:()=>lz,ItemInput:()=>cz,ItemLabel:()=>uz,Label:()=>dz,RadioGroup:()=>D2e,Root:()=>fz});var nz=yn();function rz(){const e=bn(nz);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");return e}var oz=yn();function Jd(){const e=bn(oz);if(e===void 0)throw new Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");return e}function iz(e){const t=Wd(),n=rz(),r=`${t.generateId("item")}-${rr()}`,o=lt({id:r},e),[i,a]=pt(o,["value","disabled","onPointerDown"]),[s,l]=Se(),[c,u]=Se(),[d,f]=Se(),[p,h]=Se(),[m,v]=Se(!1),y=me(()=>n.isSelectedValue(i.value)),w=me(()=>i.disabled||t.isDisabled()||!1),x=E=>{Lt(E,i.onPointerDown),m()&&E.preventDefault()},S=me(()=>({...t.dataset(),"data-disabled":w()?"":void 0,"data-checked":y()?"":void 0})),C={value:()=>i.value,dataset:S,isSelected:y,isDisabled:w,inputId:s,labelId:c,descriptionId:d,inputRef:p,select:()=>n.setSelectedValue(i.value),generateId:Vd(()=>a.id),registerInput:Br(l),registerLabel:Br(u),registerDescription:Br(f),setIsFocused:v,setInputRef:h};return I(oz.Provider,{value:C,get children(){return I(Ft,Je({as:"div",role:"group",onPointerDown:x},S,a))}})}function az(e){const t=Jd(),n=lt({id:t.generateId("control")},e),[r,o]=pt(n,["onClick","onKeyDown"]);return I(Ft,Je({as:"div",onClick:s=>{var l;Lt(s,r.onClick),t.select(),(l=t.inputRef())==null||l.focus()},onKeyDown:s=>{var l;Lt(s,r.onKeyDown),s.key===dC.Space&&(t.select(),(l=t.inputRef())==null||l.focus())}},()=>t.dataset(),o))}function sz(e){const t=Jd(),n=lt({id:t.generateId("description")},e);return We(()=>Ye(t.registerDescription(n.id))),I(Ft,Je({as:"div"},()=>t.dataset(),n))}function lz(e){const t=Jd(),n=lt({id:t.generateId("indicator")},e),[r,o]=pt(n,["ref","forceMount"]),[i,a]=Se(),{present:s}=Mj({show:()=>r.forceMount||t.isSelected(),element:()=>i()??null});return I(qe,{get when(){return s()},get children(){return I(Ft,Je({as:"div",ref(l){const c=Un(a,r.ref);typeof c=="function"&&c(l)}},()=>t.dataset(),o))}})}function cz(e){const t=Wd(),n=rz(),r=Jd(),o=lt({id:r.generateId("input")},e),[i,a]=pt(o,["ref","style","aria-labelledby","aria-describedby","onChange","onFocus","onBlur"]),s=()=>[i["aria-labelledby"],r.labelId(),i["aria-labelledby"]!=null&&a["aria-label"]!=null?a.id:void 0].filter(Boolean).join(" ")||void 0,l=()=>[i["aria-describedby"],r.descriptionId(),n.ariaDescribedBy()].filter(Boolean).join(" ")||void 0,[c,u]=Se(!1),d=h=>{if(Lt(h,i.onChange),h.stopPropagation(),!c()){n.setSelectedValue(r.value());const m=h.target;m.checked=r.isSelected()}u(!1)},f=h=>{Lt(h,i.onFocus),r.setIsFocused(!0)},p=h=>{Lt(h,i.onBlur),r.setIsFocused(!1)};return We(oi([()=>r.isSelected(),()=>r.value()],h=>{if(!h[0]&&h[1]===r.value())return;u(!0);const m=r.inputRef();m==null||m.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0})),m==null||m.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))},{defer:!0})),We(()=>Ye(r.registerInput(a.id))),I(Ft,Je({as:"input",ref(h){const m=Un(r.setInputRef,i.ref);typeof m=="function"&&m(h)},type:"radio",get name(){return t.name()},get value(){return r.value()},get checked(){return r.isSelected()},get required(){return t.isRequired()},get disabled(){return r.isDisabled()},get readonly(){return t.isReadOnly()},get style(){return Nm({...fj},i.style)},get"aria-labelledby"(){return s()},get"aria-describedby"(){return l()},onChange:d,onFocus:f,onBlur:p},()=>r.dataset(),a))}function uz(e){const t=Jd(),n=lt({id:t.generateId("label")},e);return We(()=>Ye(t.registerLabel(n.id))),I(Ft,Je({as:"label",get for(){return t.inputId()}},()=>t.dataset(),n))}function dz(e){return I(zCe,Je({as:"span"},e))}function fz(e){let t;const n=`radiogroup-${rr()}`,r=lt({id:n,orientation:"vertical"},e),[o,i,a]=pt(r,["ref","value","defaultValue","onChange","orientation","aria-labelledby","aria-describedby"],BCe),[s,l]=Kd({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:h=>{var m;return(m=o.onChange)==null?void 0:m.call(o,h)}}),{formControlContext:c}=jCe(i);qCe(()=>t,()=>l(o.defaultValue??""));const u=()=>c.getAriaLabelledBy(ge(i.id),a["aria-label"],o["aria-labelledby"]),d=()=>c.getAriaDescribedBy(o["aria-describedby"]),f=h=>h===s(),p={ariaDescribedBy:d,isSelectedValue:f,setSelectedValue:h=>{if(!(c.isReadOnly()||c.isDisabled())&&(l(h),t))for(const m of t.querySelectorAll("[type='radio']")){const v=m;v.checked=f(v.value)}}};return I(pj.Provider,{value:c,get children(){return I(nz.Provider,{value:p,get children(){return I(Ft,Je({as:"div",ref(h){const m=Un(v=>t=v,o.ref);typeof m=="function"&&m(h)},role:"radiogroup",get id(){return ge(i.id)},get"aria-invalid"(){return c.validationState()==="invalid"||void 0},get"aria-required"(){return c.isRequired()||void 0},get"aria-disabled"(){return c.isDisabled()||void 0},get"aria-readonly"(){return c.isReadOnly()||void 0},get"aria-orientation"(){return o.orientation},get"aria-labelledby"(){return u()},get"aria-describedby"(){return d()}},()=>c.dataset(),a))}})}})}var D2e=Object.assign(fz,{Description:gj,ErrorMessage:mj,Item:iz,ItemControl:az,ItemDescription:sz,ItemIndicator:lz,ItemInput:cz,ItemLabel:uz,Label:dz}),N2e=class{constructor(e,t,n){cn(this,"collection");cn(this,"ref");cn(this,"collator");this.collection=e,this.ref=t,this.collator=n}getKeyBelow(e){let t=this.collection().getKeyAfter(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyAfter(t)}}getKeyAbove(e){let t=this.collection().getKeyBefore(e);for(;t!=null;){const n=this.collection().getItem(t);if(n&&n.type==="item"&&!n.disabled)return t;t=this.collection().getKeyBefore(t)}}getFirstKey(){let e=this.collection().getFirstKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyAfter(e)}}getLastKey(){let e=this.collection().getLastKey();for(;e!=null;){const t=this.collection().getItem(e);if(t&&t.type==="item"&&!t.disabled)return e;e=this.collection().getKeyBefore(e)}}getItem(e){var t,n;return((n=(t=this.ref)==null?void 0:t.call(this))==null?void 0:n.querySelector(`[data-key="${e}"]`))??null}getKeyPageAbove(e){var i;const t=(i=this.ref)==null?void 0:i.call(this);let n=this.getItem(e);if(!t||!n)return;const r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);let o=e;for(;o&&n&&n.offsetTop>r;)o=this.getKeyAbove(o),n=o!=null?this.getItem(o):null;return o}getKeyPageBelow(e){var i;const t=(i=this.ref)==null?void 0:i.call(this);let n=this.getItem(e);if(!t||!n)return;const r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);let o=e;for(;o&&n&&n.offsetTop<r;)o=this.getKeyBelow(o),n=o!=null?this.getItem(o):null;return o}getKeyForSearch(e,t){var o;const n=(o=this.collator)==null?void 0:o.call(this);if(!n)return;let r=t!=null?this.getKeyBelow(t):this.getFirstKey();for(;r!=null;){const i=this.collection().getItem(r);if(i){const a=i.textValue.slice(0,e.length);if(i.textValue&&n.compare(a,e)===0)return r}r=this.getKeyBelow(r)}}};function $2e(e,t,n){const r=cEe({usage:"search",sensitivity:"base"}),o=me(()=>{const i=ge(e.keyboardDelegate);return i||new N2e(e.collection,t,r)});return mEe({selectionManager:()=>ge(e.selectionManager),keyboardDelegate:o,autoFocus:()=>ge(e.autoFocus),deferAutoFocus:()=>ge(e.deferAutoFocus),shouldFocusWrap:()=>ge(e.shouldFocusWrap),disallowEmptySelection:()=>ge(e.disallowEmptySelection),selectOnFocus:()=>ge(e.selectOnFocus),disallowTypeAhead:()=>ge(e.disallowTypeAhead),shouldUseVirtualFocus:()=>ge(e.shouldUseVirtualFocus),allowsTabNavigation:()=>ge(e.allowsTabNavigation),isVirtualized:()=>ge(e.isVirtualized),scrollToKey:i=>{var a;return(a=ge(e.scrollToKey))==null?void 0:a(i)},orientation:()=>ge(e.orientation)},t)}var NC="focusScope.autoFocusOnMount",$C="focusScope.autoFocusOnUnmount",hz={bubbles:!1,cancelable:!0},pz={stack:[],active(){return this.stack[0]},add(e){var t;e!==this.active()&&((t=this.active())==null||t.pause()),this.stack=uC(this.stack,e),this.stack.unshift(e)},remove(e){var t;this.stack=uC(this.stack,e),(t=this.active())==null||t.resume()}};function I2e(e,t){const[n,r]=Se(!1),o={pause(){r(!0)},resume(){r(!1)}};let i=null;const a=h=>{var m;return(m=e.onMountAutoFocus)==null?void 0:m.call(e,h)},s=h=>{var m;return(m=e.onUnmountAutoFocus)==null?void 0:m.call(e,h)},l=()=>zo(t()),c=()=>{const h=l().createElement("span");return h.setAttribute("data-focus-trap",""),h.tabIndex=0,Object.assign(h.style,fj),h},u=()=>{const h=t();return h?ij(h,!0).filter(m=>!m.hasAttribute("data-focus-trap")):[]},d=()=>{const h=u();return h.length>0?h[0]:null},f=()=>{const h=u();return h.length>0?h[h.length-1]:null},p=()=>{const h=t();if(!h)return!1;const m=Ud(h);return!m||Rr(h,m)?!1:sj(m)};We(()=>{const h=t();if(!h)return;pz.add(o);const m=Ud(h);if(!Rr(h,m)){const y=new CustomEvent(NC,hz);h.addEventListener(NC,a),h.dispatchEvent(y),y.defaultPrevented||setTimeout(()=>{Dn(d()),Ud(h)===m&&Dn(h)},0)}Ye(()=>{h.removeEventListener(NC,a),setTimeout(()=>{const y=new CustomEvent($C,hz);p()&&y.preventDefault(),h.addEventListener($C,s),h.dispatchEvent(y),y.defaultPrevented||Dn(m??l().body),h.removeEventListener($C,s),pz.remove(o)},0)})}),We(()=>{const h=t();if(!h||!ge(e.trapFocus)||n())return;const m=y=>{const w=y.target;w!=null&&w.closest(`[${Rm}]`)||(Rr(h,w)?i=w:Dn(i))},v=y=>{const x=y.relatedTarget??Ud(h);x!=null&&x.closest(`[${Rm}]`)||Rr(h,x)||Dn(i)};l().addEventListener("focusin",m),l().addEventListener("focusout",v),Ye(()=>{l().removeEventListener("focusin",m),l().removeEventListener("focusout",v)})}),We(()=>{const h=t();if(!h||!ge(e.trapFocus)||n())return;const m=c();h.insertAdjacentElement("afterbegin",m);const v=c();h.insertAdjacentElement("beforeend",v);function y(x){const S=d(),C=f();x.relatedTarget===S?Dn(C):Dn(S)}m.addEventListener("focusin",y),v.addEventListener("focusin",y);const w=new MutationObserver(x=>{for(const S of x)S.previousSibling===v&&(v.remove(),h.insertAdjacentElement("beforeend",v)),S.nextSibling===m&&(m.remove(),h.insertAdjacentElement("afterbegin",m))});w.observe(h,{childList:!0,subtree:!1}),Ye(()=>{m.removeEventListener("focusin",y),v.removeEventListener("focusin",y),m.remove(),v.remove(),w.disconnect()})})}var L2e="data-live-announcer";function F2e(e){We(()=>{ge(e.isDisabled)||Ye(R2e(ge(e.targets),ge(e.root)))})}var ef=new WeakMap,zr=[];function R2e(e,t=document.body){const n=new Set(e),r=new Set,o=l=>{for(const f of l.querySelectorAll(`[${L2e}], [${Rm}]`))n.add(f);const c=f=>{if(n.has(f)||f.parentElement&&r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(const p of n)if(f.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),d=c(l);if(d===NodeFilter.FILTER_ACCEPT&&i(l),d!==NodeFilter.FILTER_REJECT){let f=u.nextNode();for(;f!=null;)i(f),f=u.nextNode()}},i=l=>{const c=ef.get(l)??0;l.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&l.setAttribute("aria-hidden","true"),r.add(l),ef.set(l,c+1))};zr.length&&zr[zr.length-1].disconnect(),o(t);const a=new MutationObserver(l=>{for(const c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...n,...r].some(u=>u.contains(c.target))){for(const u of c.removedNodes)u instanceof Element&&(n.delete(u),r.delete(u));for(const u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?n.add(u):u instanceof Element&&o(u)}});a.observe(t,{childList:!0,subtree:!0});const s={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return zr.push(s),()=>{a.disconnect();for(const l of r){const c=ef.get(l);if(c==null)return;c===1?(l.removeAttribute("aria-hidden"),ef.delete(l)):ef.set(l,c-1)}s===zr[zr.length-1]?(zr.pop(),zr.length&&zr[zr.length-1].observe()):zr.splice(zr.indexOf(s),1)}}var Hm=new Map,B2e=e=>{We(()=>{const t=Nn(e.style)??{},n=Nn(e.properties)??[],r={};for(const i in t)r[i]=e.element.style[i];const o=Hm.get(e.key);o?o.activeCount++:Hm.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(i=>i.key)}),Object.assign(e.element.style,e.style);for(const i of n)e.element.style.setProperty(i.key,i.value);Ye(()=>{var a;const i=Hm.get(e.key);if(i){if(i.activeCount!==1){i.activeCount--;return}Hm.delete(e.key);for(const[s,l]of Object.entries(i.originalStyles))e.element.style[s]=l;for(const s of i.properties)e.element.style.removeProperty(s);e.element.style.length===0&&e.element.removeAttribute("style"),(a=e.cleanup)==null||a.call(e)}})})},gz=B2e,j2e=(e,t)=>{switch(t){case"x":return[e.clientWidth,e.scrollLeft,e.scrollWidth];case"y":return[e.clientHeight,e.scrollTop,e.scrollHeight]}},z2e=(e,t)=>{const n=getComputedStyle(e),r=t==="x"?n.overflowX:n.overflowY;return r==="auto"||r==="scroll"||e.tagName==="HTML"&&r==="visible"},q2e=(e,t,n)=>{const r=t==="x"&&window.getComputedStyle(e).direction==="rtl"?-1:1;let o=e,i=0,a=0,s=!1;do{const[l,c,u]=j2e(o,t),d=u-l-r*c;(c!==0||d!==0)&&z2e(o,t)&&(i+=d,a+=c),o===(n??document.documentElement)?s=!0:o=o._$host??o.parentElement}while(o&&!s);return[i,a]},[mz,vz]=Se([]),V2e=e=>mz().indexOf(e)===mz().length-1,U2e=e=>{const t=Je({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:"padding",restoreScrollPosition:!0,allowPinchZoom:!1},e),n=rr();let r=[0,0],o=null,i=null;We(()=>{Nn(t.enabled)&&(vz(c=>[...c,n]),Ye(()=>{vz(c=>c.filter(u=>u!==n))}))}),We(()=>{if(!Nn(t.enabled)||!Nn(t.hideScrollbar))return;const{body:c}=document,u=window.innerWidth-c.offsetWidth;if(Nn(t.preventScrollbarShift)){const d={overflow:"hidden"},f=[];u>0&&(Nn(t.preventScrollbarShiftMode)==="padding"?d.paddingRight=`calc(${window.getComputedStyle(c).paddingRight} + ${u}px)`:d.marginRight=`calc(${window.getComputedStyle(c).marginRight} + ${u}px)`,f.push({key:"--scrollbar-width",value:`${u}px`}));const p=window.scrollY,h=window.scrollX;gz({key:"prevent-scroll",element:c,style:d,properties:f,cleanup:()=>{Nn(t.restoreScrollPosition)&&u>0&&window.scrollTo(h,p)}})}else gz({key:"prevent-scroll",element:c,style:{overflow:"hidden"}})}),We(()=>{!V2e(n)||!Nn(t.enabled)||(document.addEventListener("wheel",s,{passive:!1}),document.addEventListener("touchstart",a,{passive:!1}),document.addEventListener("touchmove",l,{passive:!1}),Ye(()=>{document.removeEventListener("wheel",s),document.removeEventListener("touchstart",a),document.removeEventListener("touchmove",l)}))});const a=c=>{r=yz(c),o=null,i=null},s=c=>{const u=c.target,d=Nn(t.element),f=H2e(c),p=Math.abs(f[0])>Math.abs(f[1])?"x":"y",h=p==="x"?f[0]:f[1],m=bz(u,p,h,d);let v;d&&IC(d,u)?v=!m:v=!0,v&&c.cancelable&&c.preventDefault()},l=c=>{const u=Nn(t.element),d=c.target;let f;if(c.touches.length===2)f=!Nn(t.allowPinchZoom);else{if(o==null||i===null){const p=yz(c).map((m,v)=>r[v]-m),h=Math.abs(p[0])>Math.abs(p[1])?"x":"y";o=h,i=h==="x"?p[0]:p[1]}if(d.type==="range")f=!1;else{const p=bz(d,o,i,u);u&&IC(u,d)?f=!p:f=!0}}f&&c.cancelable&&c.preventDefault()}},H2e=e=>[e.deltaX,e.deltaY],yz=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],bz=(e,t,n,r)=>{const o=r!==null&&IC(r,e),[i,a]=q2e(e,t,o?r:void 0);return!(n>0&&Math.abs(i)<=1||n<0&&Math.abs(a)<1)},IC=(e,t)=>{if(e.contains(t))return!0;let n=t;for(;n;){if(n===e)return!0;n=n._$host??n.parentElement}return!1},W2e=U2e,K2e=W2e,wz=yn();function xz(){return bn(wz)}function ki(){const e=xz();if(e===void 0)throw new Error("[kobalte]: `useMenuContext` must be used within a `Menu` component");return e}var Sz=yn();function LC(){const e=bn(Sz);if(e===void 0)throw new Error("[kobalte]: `useMenuItemContext` must be used within a `Menu.Item` component");return e}var Cz=yn();function Uo(){const e=bn(Cz);if(e===void 0)throw new Error("[kobalte]: `useMenuRootContext` must be used within a `MenuRoot` component");return e}function FC(e){let t;const n=Uo(),r=ki(),o=lt({id:n.generateId(`item-${rr()}`)},e),[i,a]=pt(o,["ref","textValue","disabled","closeOnSelect","checked","indeterminate","onSelect","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]),[s,l]=Se(),[c,u]=Se(),[d,f]=Se(),p=()=>r.listState().selectionManager(),h=()=>a.id,m=()=>p().focusedKey()===h(),v=()=>{var T;(T=i.onSelect)==null||T.call(i),i.closeOnSelect&&setTimeout(()=>{r.close(!0)})};tEe({getItem:()=>{var T;return{ref:()=>t,type:"item",key:h(),textValue:i.textValue??((T=d())==null?void 0:T.textContent)??(t==null?void 0:t.textContent)??"",disabled:i.disabled??!1}}});const y=Tj({key:h,selectionManager:p,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),w=T=>{Lt(T,i.onPointerMove),T.pointerType==="mouse"&&(i.disabled?r.onItemLeave(T):(r.onItemEnter(T),T.defaultPrevented||(Dn(T.currentTarget),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(h()))))},x=T=>{Lt(T,i.onPointerLeave),T.pointerType==="mouse"&&r.onItemLeave(T)},S=T=>{Lt(T,i.onPointerUp),!i.disabled&&T.button===0&&v()},C=T=>{if(Lt(T,i.onKeyDown),!T.repeat&&!i.disabled)switch(T.key){case"Enter":case" ":v();break}},E=me(()=>{if(i.indeterminate)return"mixed";if(i.checked!=null)return i.checked}),P=me(()=>({"data-indeterminate":i.indeterminate?"":void 0,"data-checked":i.checked&&!i.indeterminate?"":void 0,"data-disabled":i.disabled?"":void 0,"data-highlighted":m()?"":void 0})),_={isChecked:()=>i.checked,dataset:P,setLabelRef:f,generateId:Vd(()=>a.id),registerLabel:Br(l),registerDescription:Br(u)};return I(Sz.Provider,{value:_,get children(){return I(Ft,Je({as:"div",ref(T){const M=Un(A=>t=A,i.ref);typeof M=="function"&&M(T)},get tabIndex(){return y.tabIndex()},get"aria-checked"(){return E()},get"aria-disabled"(){return i.disabled},get"aria-labelledby"(){return s()},get"aria-describedby"(){return c()},get"data-key"(){return y.dataKey()},get onPointerDown(){return pn([i.onPointerDown,y.onPointerDown])},get onPointerUp(){return pn([S,y.onPointerUp])},get onClick(){return pn([i.onClick,y.onClick])},get onKeyDown(){return pn([C,y.onKeyDown])},get onMouseDown(){return pn([i.onMouseDown,y.onMouseDown])},get onFocus(){return pn([i.onFocus,y.onFocus])},onPointerMove:w,onPointerLeave:x},P,a))}})}function Ez(e){const t=lt({closeOnSelect:!1},e),[n,r]=pt(t,["checked","defaultChecked","onChange","onSelect"]),o=WCe({isSelected:()=>n.checked,defaultIsSelected:()=>n.defaultChecked,onSelectedChange:a=>{var s;return(s=n.onChange)==null?void 0:s.call(n,a)},isDisabled:()=>r.disabled});return I(FC,Je({role:"menuitemcheckbox",get checked(){return o.isSelected()},onSelect:()=>{var a;(a=n.onSelect)==null||a.call(n),o.toggle()}},r))}var G2e=yn();function Wm(){return bn(G2e)}var tf={next:(e,t)=>e==="ltr"?t==="horizontal"?"ArrowRight":"ArrowDown":t==="horizontal"?"ArrowLeft":"ArrowUp",previous:(e,t)=>tf.next(e==="ltr"?"rtl":"ltr",t)},Pz={first:e=>e==="horizontal"?"ArrowDown":"ArrowRight",last:e=>e==="horizontal"?"ArrowUp":"ArrowLeft"};function Oz(e){const t=Uo(),n=ki(),r=Wm(),{direction:o}=aa(),i=lt({id:t.generateId("trigger")},e),[a,s]=pt(i,["ref","id","disabled","onPointerDown","onClick","onKeyDown","onMouseOver","onFocus"]);let l=()=>t.value();r!==void 0&&(l=()=>t.value()??a.id,r.lastValue()===void 0&&r.setLastValue(l));const c=Lm(()=>n.triggerRef(),()=>"button"),u=me(()=>{var y;return c()==="a"&&((y=n.triggerRef())==null?void 0:y.getAttribute("href"))!=null});We(oi(()=>r==null?void 0:r.value(),y=>{var w;u()&&y===l()&&((w=n.triggerRef())==null||w.focus())}));const d=()=>{r!==void 0?n.isOpen()?r.value()===l()&&r.closeMenu():(r.autoFocusMenu()||r.setAutoFocusMenu(!0),n.open(!1)):n.toggle(!0)},f=y=>{Lt(y,a.onPointerDown),y.currentTarget.dataset.pointerType=y.pointerType,!a.disabled&&y.pointerType!=="touch"&&y.button===0&&d()},p=y=>{Lt(y,a.onClick),a.disabled||y.currentTarget.dataset.pointerType==="touch"&&d()},h=y=>{if(Lt(y,a.onKeyDown),!a.disabled){if(u())switch(y.key){case"Enter":case" ":return}switch(y.key){case"Enter":case" ":case Pz.first(t.orientation()):y.stopPropagation(),y.preventDefault(),RCe(y.currentTarget),n.open("first"),r==null||r.setAutoFocusMenu(!0),r==null||r.setValue(l);break;case Pz.last(t.orientation()):y.stopPropagation(),y.preventDefault(),n.open("last");break;case tf.next(o(),t.orientation()):if(r===void 0)break;y.stopPropagation(),y.preventDefault(),r.nextMenu();break;case tf.previous(o(),t.orientation()):if(r===void 0)break;y.stopPropagation(),y.preventDefault(),r.previousMenu();break}}},m=y=>{var w;Lt(y,a.onMouseOver),((w=n.triggerRef())==null?void 0:w.dataset.pointerType)!=="touch"&&!a.disabled&&r!==void 0&&r.value()!==void 0&&r.setValue(l)},v=y=>{Lt(y,a.onFocus),r!==void 0&&y.currentTarget.dataset.pointerType!=="touch"&&r.setValue(l)};return We(()=>Ye(n.registerTriggerId(a.id))),I(wC,Je({ref(y){const w=Un(n.setTriggerRef,a.ref);typeof w=="function"&&w(y)},get"data-kb-menu-value-trigger"(){return t.value()},get id(){return a.id},get disabled(){return a.disabled},"aria-haspopup":"true",get"aria-expanded"(){return n.isOpen()},get"aria-controls"(){return Wt(()=>!!n.isOpen())()?n.contentId():void 0},get"data-highlighted"(){return l()!==void 0&&(r==null?void 0:r.value())===l()?!0:void 0},get tabIndex(){return r!==void 0?r.value()===l()||r.lastValue()===l()?0:-1:void 0},onPointerDown:f,onMouseOver:m,onClick:p,onKeyDown:h,onFocus:v,role:r!==void 0?"menuitem":void 0},()=>n.dataset(),s))}var Y2e=yn();function Tz(){return bn(Y2e)}function _z(e){let t;const n=Uo(),r=ki(),o=Wm(),i=Tz(),{direction:a}=aa(),s=lt({id:n.generateId(`content-${rr()}`)},e),[l,c]=pt(s,["ref","id","style","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onFocusOutside","onPointerEnter","onPointerMove","onKeyDown","onMouseDown","onFocusIn","onFocusOut"]);let u=0;const d=()=>r.parentMenuContext()==null&&o===void 0&&n.isModal(),f=$2e({selectionManager:r.listState().selectionManager,collection:r.listState().collection,autoFocus:r.autoFocus,deferAutoFocus:!0,shouldFocusWrap:!0,disallowTypeAhead:()=>!r.listState().selectionManager().isFocused(),orientation:()=>n.orientation()==="horizontal"?"vertical":"horizontal"},()=>t);I2e({trapFocus:()=>d()&&r.isOpen(),onMountAutoFocus:x=>{var S;o===void 0&&((S=l.onOpenAutoFocus)==null||S.call(l,x))},onUnmountAutoFocus:l.onCloseAutoFocus},()=>t);const p=x=>{if(Rr(x.currentTarget,x.target)&&(x.key==="Tab"&&r.isOpen()&&x.preventDefault(),o!==void 0&&x.currentTarget.getAttribute("aria-haspopup")!=="true"))switch(x.key){case tf.next(a(),n.orientation()):x.stopPropagation(),x.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.nextMenu();break;case tf.previous(a(),n.orientation()):if(x.currentTarget.hasAttribute("data-closed"))break;x.stopPropagation(),x.preventDefault(),r.close(!0),o.setAutoFocusMenu(!0),o.previousMenu();break}},h=x=>{var S;(S=l.onEscapeKeyDown)==null||S.call(l,x),o==null||o.setAutoFocusMenu(!1),r.close(!0)},m=x=>{var S;(S=l.onFocusOutside)==null||S.call(l,x),n.isModal()&&x.preventDefault()},v=x=>{var S,C;Lt(x,l.onPointerEnter),r.isOpen()&&((S=r.parentMenuContext())==null||S.listState().selectionManager().setFocused(!1),(C=r.parentMenuContext())==null||C.listState().selectionManager().setFocusedKey(void 0))},y=x=>{if(Lt(x,l.onPointerMove),x.pointerType!=="mouse")return;const S=x.target,C=u!==x.clientX;Rr(x.currentTarget,S)&&C&&(r.setPointerDir(x.clientX>u?"right":"left"),u=x.clientX)};We(()=>Ye(r.registerContentId(l.id)));const w={ref:Un(x=>{r.setContentRef(x),t=x},l.ref),role:"menu",get id(){return l.id},get tabIndex(){return f.tabIndex()},get"aria-labelledby"(){return r.triggerId()},onKeyDown:pn([l.onKeyDown,f.onKeyDown,p]),onMouseDown:pn([l.onMouseDown,f.onMouseDown]),onFocusIn:pn([l.onFocusIn,f.onFocusIn]),onFocusOut:pn([l.onFocusOut,f.onFocusOut]),onPointerEnter:v,onPointerMove:y,get"data-orientation"(){return n.orientation()}};return I(qe,{get when(){return r.contentPresent()},get children(){return I(qe,{get when(){return i===void 0||r.parentMenuContext()!=null},get fallback(){return I(Ft,Je({as:"div"},()=>r.dataset(),w,c))},get children(){return I(Qj.Positioner,{get children(){return I(A2e,Je({get disableOutsidePointerEvents(){return Wt(()=>!!d())()&&r.isOpen()},get excludedElements(){return[r.triggerRef]},bypassTopMostLayerCheck:!0,get style(){return Nm({"--kb-menu-content-transform-origin":"var(--kb-popper-content-transform-origin)",position:"relative"},l.style)},onEscapeKeyDown:h,onFocusOutside:m,get onDismiss(){return r.close}},()=>r.dataset(),w,c))}})}})}})}function X2e(e){let t;const n=Uo(),r=ki(),[o,i]=pt(e,["ref"]);return K2e({element:()=>t??null,enabled:()=>r.contentPresent()&&n.preventScroll()}),I(_z,Je({ref(a){const s=Un(l=>{t=l},o.ref);typeof s=="function"&&s(a)}},i))}var Mz=yn();function Q2e(){const e=bn(Mz);if(e===void 0)throw new Error("[kobalte]: `useMenuGroupContext` must be used within a `Menu.Group` component");return e}function RC(e){const t=Uo(),n=lt({id:t.generateId(`group-${rr()}`)},e),[r,o]=Se(),i={generateId:Vd(()=>n.id),registerLabelId:Br(o)};return I(Mz.Provider,{value:i,get children(){return I(Ft,Je({as:"div",role:"group",get"aria-labelledby"(){return r()}},n))}})}function kz(e){const t=Q2e(),n=lt({id:t.generateId("label")},e),[r,o]=pt(n,["id"]);return We(()=>Ye(t.registerLabelId(r.id))),I(Ft,Je({as:"span",get id(){return r.id},"aria-hidden":"true"},o))}function Az(e){const t=ki(),n=lt({children:"▼"},e);return I(Ft,Je({as:"span","aria-hidden":"true"},()=>t.dataset(),n))}function Dz(e){return I(FC,Je({role:"menuitem",closeOnSelect:!0},e))}function Nz(e){const t=LC(),n=lt({id:t.generateId("description")},e),[r,o]=pt(n,["id"]);return We(()=>Ye(t.registerDescription(r.id))),I(Ft,Je({as:"div",get id(){return r.id}},()=>t.dataset(),o))}function $z(e){const t=LC(),n=lt({id:t.generateId("indicator")},e),[r,o]=pt(n,["forceMount"]);return I(qe,{get when(){return r.forceMount||t.isChecked()},get children(){return I(Ft,Je({as:"div"},()=>t.dataset(),o))}})}function Iz(e){const t=LC(),n=lt({id:t.generateId("label")},e),[r,o]=pt(n,["ref","id"]);return We(()=>Ye(t.registerLabel(r.id))),I(Ft,Je({as:"div",ref(i){const a=Un(t.setLabelRef,r.ref);typeof a=="function"&&a(i)},get id(){return r.id}},()=>t.dataset(),o))}function Lz(e){const t=ki();return I(qe,{get when(){return t.contentPresent()},get children(){return I(v2,e)}})}var Fz=yn();function Z2e(){const e=bn(Fz);if(e===void 0)throw new Error("[kobalte]: `useMenuRadioGroupContext` must be used within a `Menu.RadioGroup` component");return e}function Rz(e){const n=Uo().generateId(`radiogroup-${rr()}`),r=lt({id:n},e),[o,i]=pt(r,["value","defaultValue","onChange","disabled"]),[a,s]=Kd({value:()=>o.value,defaultValue:()=>o.defaultValue,onChange:c=>{var u;return(u=o.onChange)==null?void 0:u.call(o,c)}}),l={isDisabled:()=>o.disabled,isSelectedValue:c=>c===a(),setSelectedValue:s};return I(Fz.Provider,{value:l,get children(){return I(RC,i)}})}function Bz(e){const t=Z2e(),n=lt({closeOnSelect:!1},e),[r,o]=pt(n,["value","onSelect"]);return I(FC,Je({role:"menuitemradio",get checked(){return t.isSelectedValue(r.value)},onSelect:()=>{var a;(a=r.onSelect)==null||a.call(r),t.setSelectedValue(r.value)}},o))}function J2e(e,t,n){const r=e.split("-")[0],o=n.getBoundingClientRect(),i=[],a=t.clientX,s=t.clientY;switch(r){case"top":i.push([a,s+5]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]);break;case"right":i.push([a-5,s]),i.push([o.left,o.top]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]);break;case"bottom":i.push([a,s-5]),i.push([o.right,o.top]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]);break;case"left":i.push([a+5,s]),i.push([o.right,o.bottom]),i.push([o.left,o.bottom]),i.push([o.left,o.top]),i.push([o.right,o.top]);break}return i}function ePe(e,t){return t?FCe([e.clientX,e.clientY],t):!1}function jz(e){const t=Uo(),n=bj(),r=xz(),o=Wm(),i=Tz(),a=lt({placement:t.orientation()==="horizontal"?"bottom-start":"right-start"},e),[s,l]=pt(a,["open","defaultOpen","onOpenChange"]);let c=0,u=null,d="right";const[f,p]=Se(),[h,m]=Se(),[v,y]=Se(),[w,x]=Se(),[S,C]=Se(!0),[E,P]=Se(l.placement),[_,T]=Se([]),[M,A]=Se([]),{DomCollectionProvider:D}=eEe({items:M,onItemsChange:A}),N=tz({open:()=>s.open,defaultOpen:()=>s.defaultOpen,onOpenChange:J=>{var Q;return(Q=s.onOpenChange)==null?void 0:Q.call(s,J)}}),{present:R}=Mj({show:()=>t.forceMount()||N.isOpen(),element:()=>w()??null}),U=yEe({selectionMode:"none",dataSource:M}),L=J=>{C(J),N.open()},V=(J=!1)=>{N.close(),J&&r&&r.close(!0)},j=J=>{C(J),N.toggle()},H=()=>{const J=w();J&&(Dn(J),U.selectionManager().setFocused(!0),U.selectionManager().setFocusedKey(void 0))},se=()=>{i!=null?setTimeout(()=>H()):H()},pe=J=>{T(oe=>[...oe,J]);const Q=r==null?void 0:r.registerNestedMenu(J);return()=>{T(oe=>uC(oe,J)),Q==null||Q()}},W=J=>d===(u==null?void 0:u.side)&&ePe(J,u==null?void 0:u.area),Y=J=>{W(J)&&J.preventDefault()},F=J=>{W(J)||se()},ee=J=>{W(J)&&J.preventDefault()};F2e({isDisabled:()=>!(r==null&&N.isOpen()&&t.isModal()),targets:()=>[w(),..._()].filter(Boolean)}),We(()=>{const J=w();if(!J||!r)return;const Q=r.registerNestedMenu(J);Ye(()=>{Q()})}),We(()=>{r===void 0&&(o==null||o.registerMenu(t.value(),[w(),..._()]))}),We(()=>{var J;r!==void 0||o===void 0||(o.value()===t.value()?((J=v())==null||J.focus(),o.autoFocusMenu()&&L(!0)):V())}),We(()=>{r!==void 0||o===void 0||N.isOpen()&&o.setValue(t.value())}),Ye(()=>{r===void 0&&(o==null||o.unregisterMenu(t.value()))});const Z={dataset:me(()=>({"data-expanded":N.isOpen()?"":void 0,"data-closed":N.isOpen()?void 0:""})),isOpen:N.isOpen,contentPresent:R,nestedMenus:_,currentPlacement:E,pointerGraceTimeoutId:()=>c,autoFocus:S,listState:()=>U,parentMenuContext:()=>r,triggerRef:v,contentRef:w,triggerId:f,contentId:h,setTriggerRef:y,setContentRef:x,open:L,close:V,toggle:j,focusContent:se,onItemEnter:Y,onItemLeave:F,onTriggerLeave:ee,setPointerDir:J=>d=J,setPointerGraceTimeoutId:J=>c=J,setPointerGraceIntent:J=>u=J,registerNestedMenu:pe,registerItemToParentDomCollection:n==null?void 0:n.registerItem,registerTriggerId:Br(p),registerContentId:Br(m)};return I(D,{get children(){return I(wz.Provider,{value:Z,get children(){return I(qe,{when:i===void 0,get fallback(){return l.children},get children(){return I(Qj,Je({anchorRef:v,contentRef:w,onCurrentPlacementChange:P},l))}})}})}})}function zz(e){const{direction:t}=aa();return I(jz,Je({get placement(){return t()==="rtl"?"left-start":"right-start"},flip:!0},e))}var tPe={close:(e,t)=>e==="ltr"?[t==="horizontal"?"ArrowLeft":"ArrowUp"]:[t==="horizontal"?"ArrowRight":"ArrowDown"]};function qz(e){const t=ki(),n=Uo(),[r,o]=pt(e,["onFocusOutside","onKeyDown"]),{direction:i}=aa();return I(_z,Je({onOpenAutoFocus:u=>{u.preventDefault()},onCloseAutoFocus:u=>{u.preventDefault()},onFocusOutside:u=>{var f;(f=r.onFocusOutside)==null||f.call(r,u);const d=u.target;Rr(t.triggerRef(),d)||t.close()},onKeyDown:u=>{Lt(u,r.onKeyDown);const d=Rr(u.currentTarget,u.target),f=tPe.close(i(),n.orientation()).includes(u.key),p=t.parentMenuContext()!=null;d&&f&&p&&(t.close(),Dn(t.triggerRef()))}},o))}var Vz=["Enter"," "],nPe={open:(e,t)=>e==="ltr"?[...Vz,t==="horizontal"?"ArrowRight":"ArrowDown"]:[...Vz,t==="horizontal"?"ArrowLeft":"ArrowUp"]};function Uz(e){let t;const n=Uo(),r=ki(),o=lt({id:n.generateId(`sub-trigger-${rr()}`)},e),[i,a]=pt(o,["ref","id","textValue","disabled","onPointerMove","onPointerLeave","onPointerDown","onPointerUp","onClick","onKeyDown","onMouseDown","onFocus"]);let s=null;const l=()=>{s&&window.clearTimeout(s),s=null},{direction:c}=aa(),u=()=>i.id,d=()=>{const x=r.parentMenuContext();if(x==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");return x.listState().selectionManager()},f=()=>r.listState().collection(),p=()=>d().focusedKey()===u(),h=Tj({key:u,selectionManager:d,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,disabled:()=>i.disabled},()=>t),m=x=>{Lt(x,i.onClick),!r.isOpen()&&!i.disabled&&r.open(!0)},v=x=>{var C;if(Lt(x,i.onPointerMove),x.pointerType!=="mouse")return;const S=r.parentMenuContext();if(S==null||S.onItemEnter(x),!x.defaultPrevented){if(i.disabled){S==null||S.onItemLeave(x);return}!r.isOpen()&&!s&&((C=r.parentMenuContext())==null||C.setPointerGraceIntent(null),s=window.setTimeout(()=>{r.open(!1),l()},100)),S==null||S.onItemEnter(x),x.defaultPrevented||(r.listState().selectionManager().isFocused()&&(r.listState().selectionManager().setFocused(!1),r.listState().selectionManager().setFocusedKey(void 0)),Dn(x.currentTarget),S==null||S.listState().selectionManager().setFocused(!0),S==null||S.listState().selectionManager().setFocusedKey(u()))}},y=x=>{if(Lt(x,i.onPointerLeave),x.pointerType!=="mouse")return;l();const S=r.parentMenuContext(),C=r.contentRef();if(C){S==null||S.setPointerGraceIntent({area:J2e(r.currentPlacement(),x,C),side:r.currentPlacement().split("-")[0]}),window.clearTimeout(S==null?void 0:S.pointerGraceTimeoutId());const E=window.setTimeout(()=>{S==null||S.setPointerGraceIntent(null)},300);S==null||S.setPointerGraceTimeoutId(E)}else{if(S==null||S.onTriggerLeave(x),x.defaultPrevented)return;S==null||S.setPointerGraceIntent(null)}S==null||S.onItemLeave(x)},w=x=>{Lt(x,i.onKeyDown),!x.repeat&&(i.disabled||nPe.open(c(),n.orientation()).includes(x.key)&&(x.stopPropagation(),x.preventDefault(),d().setFocused(!1),d().setFocusedKey(void 0),r.isOpen()||r.open("first"),r.focusContent(),r.listState().selectionManager().setFocused(!0),r.listState().selectionManager().setFocusedKey(f().getFirstKey())))};return We(()=>{if(r.registerItemToParentDomCollection==null)throw new Error("[kobalte]: `Menu.SubTrigger` must be used within a `Menu.Sub` component");const x=r.registerItemToParentDomCollection({ref:()=>t,type:"item",key:u(),textValue:i.textValue??(t==null?void 0:t.textContent)??"",disabled:i.disabled??!1});Ye(x)}),We(oi(()=>{var x;return(x=r.parentMenuContext())==null?void 0:x.pointerGraceTimeoutId()},x=>{Ye(()=>{var S;window.clearTimeout(x),(S=r.parentMenuContext())==null||S.setPointerGraceIntent(null)})})),We(()=>Ye(r.registerTriggerId(i.id))),Ye(()=>{l()}),I(Ft,Je({as:"div",ref(x){const S=Un(C=>{r.setTriggerRef(C),t=C},i.ref);typeof S=="function"&&S(x)},get id(){return i.id},role:"menuitem",get tabIndex(){return h.tabIndex()},"aria-haspopup":"true",get"aria-expanded"(){return r.isOpen()},get"aria-controls"(){return Wt(()=>!!r.isOpen())()?r.contentId():void 0},get"aria-disabled"(){return i.disabled},get"data-key"(){return h.dataKey()},get"data-highlighted"(){return p()?"":void 0},get"data-disabled"(){return i.disabled?"":void 0},get onPointerDown(){return pn([i.onPointerDown,h.onPointerDown])},get onPointerUp(){return pn([i.onPointerUp,h.onPointerUp])},get onClick(){return pn([m,h.onClick])},get onKeyDown(){return pn([w,h.onKeyDown])},get onMouseDown(){return pn([i.onMouseDown,h.onMouseDown])},get onFocus(){return pn([i.onFocus,h.onFocus])},onPointerMove:v,onPointerLeave:y},()=>r.dataset(),a))}function rPe(e){const t=Wm(),n=`menu-${rr()}`,r=lt({id:n,modal:!0},e),[o,i]=pt(r,["id","modal","preventScroll","forceMount","open","defaultOpen","onOpenChange","value","orientation"]),a=tz({open:()=>o.open,defaultOpen:()=>o.defaultOpen,onOpenChange:l=>{var c;return(c=o.onOpenChange)==null?void 0:c.call(o,l)}}),s={isModal:()=>o.modal??!0,preventScroll:()=>o.preventScroll??s.isModal(),forceMount:()=>o.forceMount??!1,generateId:Vd(()=>o.id),value:()=>o.value,orientation:()=>o.orientation??(t==null?void 0:t.orientation())??"horizontal"};return I(Cz.Provider,{value:s,get children(){return I(jz,Je({get open(){return a.isOpen()},get onOpenChange(){return a.setIsOpen}},i))}})}var oPe={};Fm(oPe,{Root:()=>Km,Separator:()=>iPe});function Km(e){let t;const n=lt({orientation:"horizontal"},e),[r,o]=pt(n,["ref","orientation"]),i=Lm(()=>t,()=>"hr");return I(Ft,Je({as:"hr",ref(a){const s=Un(l=>t=l,r.ref);typeof s=="function"&&s(a)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},o))}var iPe=Km,bt={};Fm(bt,{Arrow:()=>DC,CheckboxItem:()=>Ez,Content:()=>Hz,DropdownMenu:()=>aPe,Group:()=>RC,GroupLabel:()=>kz,Icon:()=>Az,Item:()=>Dz,ItemDescription:()=>Nz,ItemIndicator:()=>$z,ItemLabel:()=>Iz,Portal:()=>Lz,RadioGroup:()=>Rz,RadioItem:()=>Bz,Root:()=>Wz,Separator:()=>Km,Sub:()=>zz,SubContent:()=>qz,SubTrigger:()=>Uz,Trigger:()=>Oz});function Hz(e){const t=Uo(),n=ki(),[r,o]=pt(e,["onCloseAutoFocus","onInteractOutside"]);let i=!1;return I(X2e,Je({onCloseAutoFocus:l=>{var c;(c=r.onCloseAutoFocus)==null||c.call(r,l),i||Dn(n.triggerRef()),i=!1,l.preventDefault()},onInteractOutside:l=>{var c;(c=r.onInteractOutside)==null||c.call(r,l),(!t.isModal()||l.detail.isContextMenu)&&(i=!0)}},o))}function Wz(e){const t=`dropdownmenu-${rr()}`,n=lt({id:t},e);return I(rPe,n)}var aPe=Object.assign(Wz,{Arrow:DC,CheckboxItem:Ez,Content:Hz,Group:RC,GroupLabel:kz,Icon:Az,Item:Dz,ItemDescription:Nz,ItemIndicator:$z,ItemLabel:Iz,Portal:Lz,RadioGroup:Rz,RadioItem:Bz,Separator:Km,Sub:zz,SubContent:qz,SubTrigger:Uz,Trigger:Oz}),ue={colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000000",white:"#ffffff",neutral:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},darkGray:{50:"#525c7a",100:"#49536e",200:"#414962",300:"#394056",400:"#313749",500:"#292e3d",600:"#212530",700:"#191c24",800:"#111318",900:"#0b0d10"},gray:{50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#344054",800:"#1d2939",900:"#101828"},blue:{25:"#F5FAFF",50:"#EFF8FF",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185"},green:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},yellow:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},purple:{25:"#FAFAFF",50:"#F4F3FF",100:"#EBE9FE",200:"#D9D6FE",300:"#BDB4FE",400:"#9B8AFB",500:"#7A5AF8",600:"#6938EF",700:"#5925DC",800:"#4A1FB8",900:"#3E1C96"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},pink:{25:"#fdf2f8",50:"#fce7f3",100:"#fbcfe8",200:"#f9a8d4",300:"#f472b6",400:"#ec4899",500:"#db2777",600:"#be185d",700:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{90:"e5",80:"cc"},font:{size:{xs:"calc(var(--tsqd-font-size) * 0.75)",sm:"calc(var(--tsqd-font-size) * 0.875)",md:"var(--tsqd-font-size)"},lineHeight:{xs:"calc(var(--tsqd-font-size) * 1)",sm:"calc(var(--tsqd-font-size) * 1.25)",md:"calc(var(--tsqd-font-size) * 1.5)"},weight:{medium:"500",semibold:"600",bold:"700"}},border:{radius:{xs:"calc(var(--tsqd-font-size) * 0.125)",sm:"calc(var(--tsqd-font-size) * 0.25)",full:"9999px"}},size:{.25:"calc(var(--tsqd-font-size) * 0.0625)",.5:"calc(var(--tsqd-font-size) * 0.125)",1:"calc(var(--tsqd-font-size) * 0.25)",1.5:"calc(var(--tsqd-font-size) * 0.375)",2:"calc(var(--tsqd-font-size) * 0.5)",2.5:"calc(var(--tsqd-font-size) * 0.625)",3:"calc(var(--tsqd-font-size) * 0.75)",3.5:"calc(var(--tsqd-font-size) * 0.875)",4:"calc(var(--tsqd-font-size) * 1)",4.5:"calc(var(--tsqd-font-size) * 1.125)",5:"calc(var(--tsqd-font-size) * 1.25)",6:"calc(var(--tsqd-font-size) * 1.5)",6.5:"calc(var(--tsqd-font-size) * 1.625)",14:"calc(var(--tsqd-font-size) * 3.5)"},shadow:{xs:(e="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(e="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${e}, 0 1px 2px -1px ${e}`,md:(e="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${e}, 0 2px 4px -2px ${e}`,lg:(e="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${e}, 0 4px 6px -4px ${e}`,xl:(e="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${e}, 0 8px 10px -6px ${e}`,"2xl":(e="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${e}`,inner:(e="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${e}`,none:()=>"none"}},sPe=Ae('<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),lPe=Ae('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),cPe=Ae('<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),uPe=Ae('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),BC=Ae('<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>'),dPe=Ae('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),fPe=Ae('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),hPe=Ae('<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),pPe=Ae('<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">'),gPe=Ae('<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">'),mPe=Ae('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),vPe=Ae('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M16 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V8M11.5 12.5L17 7M17 7H12M17 7V12M6.2 21H8.8C9.9201 21 10.4802 21 10.908 20.782C11.2843 20.5903 11.5903 20.2843 11.782 19.908C12 19.4802 12 18.9201 12 17.8V15.2C12 14.0799 12 13.5198 11.782 13.092C11.5903 12.7157 11.2843 12.4097 10.908 12.218C10.4802 12 9.92011 12 8.8 12H6.2C5.0799 12 4.51984 12 4.09202 12.218C3.71569 12.4097 3.40973 12.7157 3.21799 13.092C3 13.5198 3 14.0799 3 15.2V17.8C3 18.9201 3 19.4802 3.21799 19.908C3.40973 20.2843 3.71569 20.5903 4.09202 20.782C4.51984 21 5.07989 21 6.2 21Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),yPe=Ae('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>'),bPe=Ae('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M2.5 21.4998L8.04927 19.3655C8.40421 19.229 8.58168 19.1607 8.74772 19.0716C8.8952 18.9924 9.0358 18.901 9.16804 18.7984C9.31692 18.6829 9.45137 18.5484 9.72028 18.2795L21 6.99982C22.1046 5.89525 22.1046 4.10438 21 2.99981C19.8955 1.89525 18.1046 1.89524 17 2.99981L5.72028 14.2795C5.45138 14.5484 5.31692 14.6829 5.20139 14.8318C5.09877 14.964 5.0074 15.1046 4.92823 15.2521C4.83911 15.4181 4.77085 15.5956 4.63433 15.9506L2.5 21.4998ZM2.5 21.4998L4.55812 16.1488C4.7054 15.7659 4.77903 15.5744 4.90534 15.4867C5.01572 15.4101 5.1523 15.3811 5.2843 15.4063C5.43533 15.4351 5.58038 15.5802 5.87048 15.8703L8.12957 18.1294C8.41967 18.4195 8.56472 18.5645 8.59356 18.7155C8.61877 18.8475 8.58979 18.9841 8.51314 19.0945C8.42545 19.2208 8.23399 19.2944 7.85107 19.4417L2.5 21.4998Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),Kz=Ae('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),wPe=Ae('<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),xPe=Ae('<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>'),SPe=Ae('<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),CPe=Ae('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),EPe=Ae('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2V6M12 18V22M6 12H2M22 12H18M19.0784 19.0784L16.25 16.25M19.0784 4.99994L16.25 7.82837M4.92157 19.0784L7.75 16.25M4.92157 4.99994L7.75 7.82837"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><animateTransform attributeName=transform attributeType=XML type=rotate from=0 to=360 dur=2s repeatCount=indefinite>'),PPe=Ae('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M15 9L9 15M9 9L15 15M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),OPe=Ae('<svg width=14 height=14 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.5 15V9M14.5 15V9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),TPe=Ae('<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>');function _Pe(){return sPe()}function Gz(){return lPe()}function Zl(){return cPe()}function Yz(){return uPe()}function Xz(){return BC()}function MPe(){return(()=>{var e=BC();return e.style.setProperty("transform","rotate(90deg)"),e})()}function kPe(){return(()=>{var e=BC();return e.style.setProperty("transform","rotate(-90deg)"),e})()}function APe(){return dPe()}function DPe(){return fPe()}function NPe(){return hPe()}function $Pe(){return pPe()}function IPe(){return gPe()}function LPe(){return mPe()}function FPe(){return vPe()}function RPe(){return yPe()}function BPe(){return bPe()}function jPe(e){return(()=>{var t=Kz(),n=t.firstChild;return He(()=>ve(n,"stroke",e.theme==="dark"?"#12B76A":"#027A48")),t})()}function zPe(){return wPe()}function qPe(){return xPe()}function VPe(e){return[I(qe,{get when(){return e.checked},get children(){var t=Kz(),n=t.firstChild;return He(()=>ve(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}}),I(qe,{get when(){return!e.checked},get children(){var t=SPe(),n=t.firstChild;return He(()=>ve(n,"stroke",e.theme==="dark"?"#9B8AFB":"#6938EF")),t}})]}function jC(){return CPe()}function UPe(){return EPe()}function HPe(){return PPe()}function WPe(){return OPe()}function Qz(){const e=rr();return(()=>{var t=TPe(),n=t.firstChild,r=n.nextSibling,o=r.nextSibling,i=o.firstChild,a=o.nextSibling,s=a.firstChild,l=a.nextSibling,c=l.nextSibling,u=c.firstChild,d=c.nextSibling,f=d.firstChild,p=d.nextSibling,h=p.nextSibling,m=h.firstChild,v=h.nextSibling,y=v.firstChild,w=v.nextSibling,x=w.nextSibling,S=x.firstChild,C=x.nextSibling,E=C.firstChild,P=C.nextSibling,_=P.nextSibling,T=_.firstChild,M=_.nextSibling,A=M.firstChild,D=M.nextSibling,N=D.nextSibling,R=N.firstChild,U=N.nextSibling,L=U.firstChild,V=U.nextSibling,j=V.nextSibling,H=j.firstChild,se=j.nextSibling,pe=se.firstChild,W=se.nextSibling,Y=W.firstChild,F=Y.nextSibling,ee=F.nextSibling,fe=ee.nextSibling,Z=fe.nextSibling,J=W.nextSibling,Q=J.firstChild,oe=J.nextSibling,le=oe.firstChild,z=oe.nextSibling,_e=z.firstChild,X=_e.nextSibling,be=X.nextSibling,$e=be.firstChild,Ve=$e.nextSibling,ae=Ve.nextSibling,Ee=ae.nextSibling,Xe=Ee.nextSibling,$=Xe.nextSibling,B=$.nextSibling,G=B.nextSibling,he=G.nextSibling,re=he.nextSibling,ce=re.nextSibling,Oe=ce.nextSibling,Ge=z.nextSibling,Qe=Ge.firstChild,et=Ge.nextSibling,$t=et.firstChild,rt=et.nextSibling,gt=rt.firstChild,Jt=gt.nextSibling,en=rt.nextSibling,Wn=en.firstChild,vn=en.nextSibling,$n=vn.firstChild,Ne=vn.nextSibling,Te=Ne.firstChild,Ie=Te.nextSibling,we=Ie.nextSibling,ze=we.nextSibling,Me=ze.nextSibling,ke=Me.nextSibling,ct=ke.nextSibling,ft=ct.nextSibling,Cn=ft.nextSibling,ut=Cn.nextSibling,mt=ut.nextSibling,Hr=mt.nextSibling,En=Hr.nextSibling,nr=En.nextSibling,xf=nr.nextSibling,Xo=xf.nextSibling,VC=Xo.nextSibling,lTe=VC.nextSibling;return ve(n,"id",`a-${e}`),ve(r,"fill",`url(#a-${e})`),ve(i,"id",`am-${e}`),ve(a,"id",`b-${e}`),ve(s,"filter",`url(#am-${e})`),ve(l,"mask",`url(#b-${e})`),ve(u,"id",`ah-${e}`),ve(d,"id",`k-${e}`),ve(f,"filter",`url(#ah-${e})`),ve(p,"mask",`url(#k-${e})`),ve(m,"id",`ae-${e}`),ve(v,"id",`j-${e}`),ve(y,"filter",`url(#ae-${e})`),ve(w,"mask",`url(#j-${e})`),ve(S,"id",`ai-${e}`),ve(C,"id",`i-${e}`),ve(E,"filter",`url(#ai-${e})`),ve(P,"mask",`url(#i-${e})`),ve(T,"id",`aj-${e}`),ve(M,"id",`h-${e}`),ve(A,"filter",`url(#aj-${e})`),ve(D,"mask",`url(#h-${e})`),ve(R,"id",`ag-${e}`),ve(U,"id",`g-${e}`),ve(L,"filter",`url(#ag-${e})`),ve(V,"mask",`url(#g-${e})`),ve(H,"id",`af-${e}`),ve(se,"id",`f-${e}`),ve(pe,"filter",`url(#af-${e})`),ve(W,"mask",`url(#f-${e})`),ve(fe,"id",`m-${e}`),ve(Z,"fill",`url(#m-${e})`),ve(Q,"id",`ak-${e}`),ve(oe,"id",`e-${e}`),ve(le,"filter",`url(#ak-${e})`),ve(z,"mask",`url(#e-${e})`),ve(_e,"id",`n-${e}`),ve(X,"fill",`url(#n-${e})`),ve($e,"id",`r-${e}`),ve(Ve,"fill",`url(#r-${e})`),ve(ae,"id",`s-${e}`),ve(Ee,"fill",`url(#s-${e})`),ve(Xe,"id",`q-${e}`),ve($,"fill",`url(#q-${e})`),ve(B,"id",`p-${e}`),ve(G,"fill",`url(#p-${e})`),ve(he,"id",`o-${e}`),ve(re,"fill",`url(#o-${e})`),ve(ce,"id",`l-${e}`),ve(Oe,"fill",`url(#l-${e})`),ve(Qe,"id",`al-${e}`),ve(et,"id",`d-${e}`),ve($t,"filter",`url(#al-${e})`),ve(rt,"mask",`url(#d-${e})`),ve(gt,"id",`u-${e}`),ve(Jt,"fill",`url(#u-${e})`),ve(Wn,"id",`ad-${e}`),ve(vn,"id",`c-${e}`),ve($n,"filter",`url(#ad-${e})`),ve(Ne,"mask",`url(#c-${e})`),ve(Te,"id",`t-${e}`),ve(Ie,"fill",`url(#t-${e})`),ve(we,"id",`v-${e}`),ve(ze,"stroke",`url(#v-${e})`),ve(Me,"id",`aa-${e}`),ve(ke,"stroke",`url(#aa-${e})`),ve(ct,"id",`w-${e}`),ve(ft,"stroke",`url(#w-${e})`),ve(Cn,"id",`ac-${e}`),ve(ut,"stroke",`url(#ac-${e})`),ve(mt,"id",`ab-${e}`),ve(Hr,"stroke",`url(#ab-${e})`),ve(En,"id",`y-${e}`),ve(nr,"stroke",`url(#y-${e})`),ve(xf,"id",`x-${e}`),ve(Xo,"stroke",`url(#x-${e})`),ve(VC,"id",`z-${e}`),ve(lTe,"stroke",`url(#z-${e})`),t})()}var KPe=Ae('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'),GPe=Ae('<button title="Copy object to clipboard">'),YPe=Ae('<button title="Remove all items"aria-label="Remove all items">'),XPe=Ae('<button title="Delete item"aria-label="Delete item">'),QPe=Ae('<button title="Toggle value"aria-label="Toggle value">'),ZPe=Ae('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'),nf=Ae("<div>"),JPe=Ae("<div><button> <span></span> <span> "),eOe=Ae("<input>"),Zz=Ae("<span>"),tOe=Ae("<div><label>:"),nOe=Ae("<div><div><button> [<!>...<!>]");function rOe(e,t){let n=0;const r=[];for(;n<e.length;)r.push(e.slice(n,n+t)),n=n+t;return r}var Jz=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?ec(n):Jl(n));return(()=>{var o=KPe();return He(()=>xe(o,Ce(r().expander,n`
356
+ transform: rotate(${e.expanded?90:0}deg);
357
+ `,e.expanded&&n`
358
+ & svg {
359
+ top: -1px;
360
+ }
361
+ `))),o})()},oOe=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?ec(n):Jl(n)),[o,i]=Se("NoCopy");return(()=>{var a=GPe();return u2(a,"click",o()==="NoCopy"?()=>{navigator.clipboard.writeText(uW(e.value)).then(()=>{i("SuccessCopy"),setTimeout(()=>{i("NoCopy")},1500)},s=>{i("ErrorCopy"),setTimeout(()=>{i("NoCopy")},1500)})}:void 0,!0),de(a,I(fH,{get children(){return[I(Ev,{get when(){return o()==="NoCopy"},get children(){return I(RPe,{})}}),I(Ev,{get when(){return o()==="SuccessCopy"},get children(){return I(jPe,{get theme(){return t()}})}}),I(Ev,{get when(){return o()==="ErrorCopy"},get children(){return I(zPe,{})}})]}})),He(s=>{var l=r().actionButton,c=`${o()==="NoCopy"?"Copy object to clipboard":o()==="SuccessCopy"?"Object copied to clipboard":"Error copying object to clipboard"}`;return l!==s.e&&xe(a,s.e=l),c!==s.t&&ve(a,"aria-label",s.t=c),s},{e:void 0,t:void 0}),a})()},iOe=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?ec(n):Jl(n)),o=Ue().client;return(()=>{var i=YPe();return i.$$click=()=>{const a=e.activeQuery.state.data,s=xa(a,e.dataPath,[]);o.setQueryData(e.activeQuery.queryKey,s)},de(i,I(qPe,{})),He(()=>xe(i,r().actionButton)),i})()},eq=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?ec(n):Jl(n)),o=Ue().client;return(()=>{var i=XPe();return i.$$click=()=>{const a=e.activeQuery.state.data,s=Bc(a,e.dataPath);o.setQueryData(e.activeQuery.queryKey,s)},de(i,I(Gz,{})),He(()=>xe(i,Ce(r().actionButton))),i})()},aOe=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?ec(n):Jl(n)),o=Ue().client;return(()=>{var i=QPe();return i.$$click=()=>{const a=e.activeQuery.state.data,s=xa(a,e.dataPath,!e.value);o.setQueryData(e.activeQuery.queryKey,s)},de(i,I(VPe,{get theme(){return t()},get checked(){return e.value}})),He(()=>xe(i,Ce(r().actionButton,n`
362
+ width: ${ue.size[3.5]};
363
+ height: ${ue.size[3.5]};
364
+ `))),i})()};function tq(e){return Symbol.iterator in e}function ua(e){const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?ec(n):Jl(n)),o=Ue().client,[i,a]=Se((e.defaultExpanded||[]).includes(e.label)),s=()=>a(m=>!m),[l,c]=Se([]),u=me(()=>Array.isArray(e.value)?e.value.map((m,v)=>({label:v.toString(),value:m})):e.value!==null&&typeof e.value=="object"&&tq(e.value)&&typeof e.value[Symbol.iterator]=="function"?e.value instanceof Map?Array.from(e.value,([m,v])=>({label:m,value:v})):Array.from(e.value,(m,v)=>({label:v.toString(),value:m})):typeof e.value=="object"&&e.value!==null?Object.entries(e.value).map(([m,v])=>({label:m,value:v})):[]),d=me(()=>Array.isArray(e.value)?"array":e.value!==null&&typeof e.value=="object"&&tq(e.value)&&typeof e.value[Symbol.iterator]=="function"?"Iterable":typeof e.value=="object"&&e.value!==null?"object":typeof e.value),f=me(()=>rOe(u(),100)),p=e.dataPath??[],h=rr();return(()=>{var m=nf();return de(m,I(qe,{get when(){return f().length},get children(){return[(()=>{var v=JPe(),y=v.firstChild,w=y.firstChild,x=w.nextSibling,S=x.nextSibling,C=S.nextSibling,E=C.firstChild;return y.$$click=()=>s(),de(y,I(Jz,{get expanded(){return i()}}),w),de(x,()=>e.label),de(C,()=>String(d()).toLowerCase()==="iterable"?"(Iterable) ":"",E),de(C,()=>u().length,E),de(C,()=>u().length>1?"items":"item",null),de(v,I(qe,{get when(){return e.editable},get children(){var P=nf();return de(P,I(oOe,{get value(){return e.value}}),null),de(P,I(qe,{get when(){return e.itemsDeletable&&e.activeQuery!==void 0},get children(){return I(eq,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),de(P,I(qe,{get when(){return d()==="array"&&e.activeQuery!==void 0},get children(){return I(iOe,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),de(P,I(qe,{get when(){return Wt(()=>!!e.onEdit)()&&!L2(e.value).meta},get children(){var _=ZPe();return _.$$click=()=>{var T;(T=e.onEdit)==null||T.call(e)},de(_,I(BPe,{})),He(()=>xe(_,r().actionButton)),_}}),null),He(()=>xe(P,r().actions)),P}}),null),He(P=>{var _=r().expanderButtonContainer,T=r().expanderButton,M=i()?"true":"false",A=r().info;return _!==P.e&&xe(v,P.e=_),T!==P.t&&xe(y,P.t=T),M!==P.a&&ve(y,"aria-expanded",P.a=M),A!==P.o&&xe(C,P.o=A),P},{e:void 0,t:void 0,a:void 0,o:void 0}),v})(),I(qe,{get when(){return i()},get children(){return[I(qe,{get when(){return f().length===1},get children(){var v=nf();return de(v,I(Dm,{get each(){return u()},by:y=>y.label,children:y=>I(ua,{get defaultExpanded(){return e.defaultExpanded},get label(){return y().label},get value(){return y().value},get editable(){return e.editable},get dataPath(){return[...p,y().label]},get activeQuery(){return e.activeQuery},get itemsDeletable(){return d()==="array"||d()==="Iterable"||d()==="object"}})})),He(()=>xe(v,r().subEntry)),v}}),I(qe,{get when(){return f().length>1},get children(){var v=nf();return de(v,I(dH,{get each(){return f()},children:(y,w)=>(()=>{var x=nOe(),S=x.firstChild,C=S.firstChild,E=C.firstChild,P=E.nextSibling,_=P.nextSibling,T=_.nextSibling;return T.nextSibling,C.$$click=()=>c(M=>M.includes(w)?M.filter(A=>A!==w):[...M,w]),de(C,I(Jz,{get expanded(){return l().includes(w)}}),E),de(C,w*100,P),de(C,w*100+100-1,T),de(S,I(qe,{get when(){return l().includes(w)},get children(){var M=nf();return de(M,I(Dm,{get each(){return y()},by:A=>A.label,children:A=>I(ua,{get defaultExpanded(){return e.defaultExpanded},get label(){return A().label},get value(){return A().value},get editable(){return e.editable},get dataPath(){return[...p,A().label]},get activeQuery(){return e.activeQuery}})})),He(()=>xe(M,r().subEntry)),M}}),null),He(M=>{var A=r().entry,D=r().expanderButton;return A!==M.e&&xe(S,M.e=A),D!==M.t&&xe(C,M.t=D),M},{e:void 0,t:void 0}),x})()})),He(()=>xe(v,r().subEntry)),v}})]}})]}}),null),de(m,I(qe,{get when(){return f().length===0},get children(){var v=tOe(),y=v.firstChild,w=y.firstChild;return ve(y,"for",h),de(y,()=>e.label,w),de(v,I(qe,{get when(){return Wt(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number"||d()==="boolean")},get fallback(){return(()=>{var x=Zz();return de(x,()=>Yf(e.value)),He(()=>xe(x,r().value)),x})()},get children(){return[I(qe,{get when(){return Wt(()=>!!(e.editable&&e.activeQuery!==void 0))()&&(d()==="string"||d()==="number")},get children(){var x=eOe();return x.addEventListener("change",S=>{const C=e.activeQuery.state.data,E=xa(C,p,d()==="number"?S.target.valueAsNumber:S.target.value);o.setQueryData(e.activeQuery.queryKey,E)}),ve(x,"id",h),He(S=>{var C=d()==="number"?"number":"text",E=Ce(r().value,r().editableInput);return C!==S.e&&ve(x,"type",S.e=C),E!==S.t&&xe(x,S.t=E),S},{e:void 0,t:void 0}),He(()=>x.value=e.value),x}}),I(qe,{get when(){return d()==="boolean"},get children(){var x=Zz();return de(x,I(aOe,{get activeQuery(){return e.activeQuery},dataPath:p,get value(){return e.value}}),null),de(x,()=>Yf(e.value),null),He(()=>xe(x,Ce(r().value,r().actions,r().editableInput))),x}})]}}),null),de(v,I(qe,{get when(){return e.editable&&e.itemsDeletable&&e.activeQuery!==void 0},get children(){return I(eq,{get activeQuery(){return e.activeQuery},dataPath:p})}}),null),He(x=>{var S=r().row,C=r().label;return S!==x.e&&xe(v,x.e=S),C!==x.t&&xe(y,x.t=C),x},{e:void 0,t:void 0}),v}}),null),He(()=>xe(m,r().entry)),m})()}var nq=(e,t)=>{const{colors:n,font:r,size:o,border:i}=ue,a=(s,l)=>e==="light"?s:l;return{entry:t`
365
+ & * {
366
+ font-size: ${r.size.xs};
367
+ font-family:
368
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
369
+ 'Liberation Mono', 'Courier New', monospace;
370
+ }
371
+ position: relative;
372
+ outline: none;
373
+ word-break: break-word;
374
+ `,subEntry:t`
375
+ margin: 0 0 0 0.5em;
376
+ padding-left: 0.75em;
377
+ border-left: 2px solid ${a(n.gray[300],n.darkGray[400])};
378
+ /* outline: 1px solid ${n.teal[400]}; */
379
+ `,expander:t`
380
+ & path {
381
+ stroke: ${n.gray[400]};
382
+ }
383
+ & svg {
384
+ width: ${o[3]};
385
+ height: ${o[3]};
386
+ }
387
+ display: inline-flex;
388
+ align-items: center;
389
+ transition: all 0.1s ease;
390
+ /* outline: 1px solid ${n.blue[400]}; */
391
+ `,expanderButtonContainer:t`
392
+ display: flex;
393
+ align-items: center;
394
+ line-height: ${o[4]};
395
+ min-height: ${o[4]};
396
+ gap: ${o[2]};
397
+ `,expanderButton:t`
398
+ cursor: pointer;
399
+ color: inherit;
400
+ font: inherit;
401
+ outline: inherit;
402
+ height: ${o[5]};
403
+ background: transparent;
404
+ border: none;
405
+ padding: 0;
406
+ display: inline-flex;
407
+ align-items: center;
408
+ gap: ${o[1]};
409
+ position: relative;
410
+ /* outline: 1px solid ${n.green[400]}; */
411
+
412
+ &:focus-visible {
413
+ border-radius: ${i.radius.xs};
414
+ outline: 2px solid ${n.blue[800]};
415
+ }
416
+
417
+ & svg {
418
+ position: relative;
419
+ left: 1px;
420
+ }
421
+ `,info:t`
422
+ color: ${a(n.gray[500],n.gray[500])};
423
+ font-size: ${r.size.xs};
424
+ margin-left: ${o[1]};
425
+ /* outline: 1px solid ${n.yellow[400]}; */
426
+ `,label:t`
427
+ color: ${a(n.gray[700],n.gray[300])};
428
+ white-space: nowrap;
429
+ `,value:t`
430
+ color: ${a(n.purple[600],n.purple[400])};
431
+ flex-grow: 1;
432
+ `,actions:t`
433
+ display: inline-flex;
434
+ gap: ${o[2]};
435
+ align-items: center;
436
+ `,row:t`
437
+ display: inline-flex;
438
+ gap: ${o[2]};
439
+ width: 100%;
440
+ margin: ${o[.25]} 0px;
441
+ line-height: ${o[4.5]};
442
+ align-items: center;
443
+ `,editableInput:t`
444
+ border: none;
445
+ padding: ${o[.5]} ${o[1]} ${o[.5]} ${o[1.5]};
446
+ flex-grow: 1;
447
+ border-radius: ${i.radius.xs};
448
+ background-color: ${a(n.gray[200],n.darkGray[500])};
449
+
450
+ &:hover {
451
+ background-color: ${a(n.gray[300],n.darkGray[600])};
452
+ }
453
+ `,actionButton:t`
454
+ background-color: transparent;
455
+ color: ${a(n.gray[500],n.gray[500])};
456
+ border: none;
457
+ display: inline-flex;
458
+ padding: 0px;
459
+ align-items: center;
460
+ justify-content: center;
461
+ cursor: pointer;
462
+ width: ${o[3]};
463
+ height: ${o[3]};
464
+ position: relative;
465
+ z-index: 1;
466
+
467
+ &:hover svg {
468
+ color: ${a(n.gray[600],n.gray[400])};
469
+ }
470
+
471
+ &:focus-visible {
472
+ border-radius: ${i.radius.xs};
473
+ outline: 2px solid ${n.blue[800]};
474
+ outline-offset: 2px;
475
+ }
476
+ `}},Jl=e=>nq("light",e),ec=e=>nq("dark",e);Wf(["click"]);var sOe=Ae('<div><div aria-hidden=true></div><button type=button aria-label="Open Tanstack query devtools"class=tsqd-open-btn>'),rf=Ae("<div>"),lOe=Ae('<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">'),cOe=Ae("<select name=tsqd-queries-filter-sort>"),uOe=Ae("<select name=tsqd-mutations-filter-sort>"),dOe=Ae("<span>Asc"),fOe=Ae("<span>Desc"),hOe=Ae('<button aria-label="Open in picture-in-picture mode"title="Open in picture-in-picture mode">'),pOe=Ae("<div>Settings"),gOe=Ae("<span>Position"),mOe=Ae("<span>Top"),vOe=Ae("<span>Bottom"),yOe=Ae("<span>Left"),bOe=Ae("<span>Right"),wOe=Ae("<span>Theme"),xOe=Ae("<span>Light"),SOe=Ae("<span>Dark"),COe=Ae("<span>System"),EOe=Ae("<span>Disabled Queries"),POe=Ae("<span>Show"),OOe=Ae("<span>Hide"),TOe=Ae("<div><div class=tsqd-queries-container>"),_Oe=Ae("<div><div class=tsqd-mutations-container>"),MOe=Ae('<div><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter name=tsqd-query-filter-input></div><div></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"></button><button>'),rq=Ae("<option>Sort by "),kOe=Ae("<div class=tsqd-query-disabled-indicator>disabled"),AOe=Ae("<div class=tsqd-query-static-indicator>static"),oq=Ae("<button><div></div><code class=tsqd-query-hash>"),DOe=Ae("<div role=tooltip id=tsqd-status-tooltip>"),NOe=Ae("<span>"),$Oe=Ae("<button><span></span><span>"),IOe=Ae("<button><span></span> Error"),LOe=Ae('<div><span></span>Trigger Error<select><option value=""disabled selected>'),FOe=Ae('<div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer">'),ROe=Ae("<form><textarea name=data></textarea><div><span></span><div><button type=button>Cancel</button><button>Save"),BOe=Ae('<div><div>Query Details</div><div role=status aria-live=polite aria-atomic=true><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data </div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),jOe=Ae("<option>"),zOe=Ae('<div><div>Mutation Details</div><div role=status aria-live=polite aria-atomic=true><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-last-updated><span>Submitted At:</span><span></span></div></div><div>Variables Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Context Details</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"></div><div>Mutations Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">'),[wr,Gm]=Se(null),[da,iq]=Se(null),[go,zC]=Se(0),[of,qOe]=Se(!1),VOe=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?Vr(n):qr(n)),o=me(()=>Ue().onlineManager);ii(()=>{const d=o().subscribe(f=>{qOe(!f)});Ye(()=>{d()})});const i=aC(),a=me(()=>Ue().buttonPosition||qSe),s=me(()=>e.localStore.open==="true"?!0:e.localStore.open==="false"?!1:Ue().initialIsOpen||VSe),l=me(()=>e.localStore.position||Ue().position||oC);let c;We(()=>{const d=c.parentElement,f=e.localStore.height||RB,p=e.localStore.width||BB,h=l();d.style.setProperty("--tsqd-panel-height",`${h==="top"?"-":""}${f}px`),d.style.setProperty("--tsqd-panel-width",`${h==="left"?"-":""}${p}px`)}),ii(()=>{const d=()=>{const f=c.parentElement,p=getComputedStyle(f).fontSize;f.style.setProperty("--tsqd-font-size",p)};d(),window.addEventListener("focus",d),Ye(()=>{window.removeEventListener("focus",d)})});const u=me(()=>e.localStore.pip_open??"false");return[I(qe,{get when(){return Wt(()=>!!i().pipWindow)()&&u()=="true"},get children(){return I(v2,{get mount(){var d;return(d=i().pipWindow)==null?void 0:d.document.body},get children(){return I(UOe,{get children(){return I(qC,e)}})}})}}),(()=>{var d=rf(),f=c;return typeof f=="function"?Ds(f,d):c=d,de(d,I(JB,{name:"tsqd-panel-transition",get children(){return I(qe,{get when(){return Wt(()=>!!(s()&&!i().pipWindow))()&&u()=="false"},get children(){return I(WOe,{get localStore(){return e.localStore},get setLocalStore(){return e.setLocalStore}})}})}}),null),de(d,I(JB,{name:"tsqd-button-transition",get children(){return I(qe,{get when(){return!s()},get children(){var p=sOe(),h=p.firstChild,m=h.nextSibling;return de(h,I(Qz,{})),m.$$click=()=>e.setLocalStore("open","true"),de(m,I(Qz,{})),He(()=>xe(p,Ce(r().devtoolsBtn,r()[`devtoolsBtn-position-${a()}`],"tsqd-open-btn-container"))),p}})}}),null),He(()=>xe(d,Ce(n`
477
+ & .tsqd-panel-transition-exit-active,
478
+ & .tsqd-panel-transition-enter-active {
479
+ transition:
480
+ opacity 0.3s,
481
+ transform 0.3s;
482
+ }
483
+
484
+ & .tsqd-panel-transition-exit-to,
485
+ & .tsqd-panel-transition-enter {
486
+ ${l()==="top"||l()==="bottom"?"transform: translateY(var(--tsqd-panel-height));":"transform: translateX(var(--tsqd-panel-width));"}
487
+ }
488
+
489
+ & .tsqd-button-transition-exit-active,
490
+ & .tsqd-button-transition-enter-active {
491
+ transition:
492
+ opacity 0.3s,
493
+ transform 0.3s;
494
+ opacity: 1;
495
+ }
496
+
497
+ & .tsqd-button-transition-exit-to,
498
+ & .tsqd-button-transition-enter {
499
+ transform: ${a()==="relative"?"none;":a()==="top-left"?"translateX(-72px);":a()==="top-right"?"translateX(72px);":"translateY(72px);"};
500
+ opacity: 0;
501
+ }
502
+ `,"tsqd-transitions-container"))),d})()]},UOe=e=>{const t=aC(),n=hn(),r=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,o=me(()=>n()==="dark"?Vr(r):qr(r)),i=()=>{const{colors:a}=ue,s=(l,c)=>n()==="dark"?c:l;return go()<fs?r`
503
+ flex-direction: column;
504
+ background-color: ${s(a.gray[300],a.gray[600])};
505
+ `:r`
506
+ flex-direction: row;
507
+ background-color: ${s(a.gray[200],a.darkGray[900])};
508
+ `};return We(()=>{const a=t().pipWindow,s=()=>{a&&zC(a.innerWidth)};a&&(a.addEventListener("resize",s),s()),Ye(()=>{a&&a.removeEventListener("resize",s)})}),(()=>{var a=rf();return a.style.setProperty("--tsqd-font-size","16px"),a.style.setProperty("max-height","100vh"),a.style.setProperty("height","100vh"),a.style.setProperty("width","100vw"),de(a,()=>e.children),He(()=>xe(a,Ce(o().panel,i(),{[r`
509
+ min-width: min-content;
510
+ `]:go()<rC},"tsqd-main-panel"))),a})()},HOe=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?Vr(n):qr(n));let o;ii(()=>{tj(o,({width:a},s)=>{s===o&&zC(a)})});const i=()=>{const{colors:a}=ue,s=(l,c)=>t()==="dark"?c:l;return go()<fs?n`
511
+ flex-direction: column;
512
+ background-color: ${s(a.gray[300],a.gray[600])};
513
+ `:n`
514
+ flex-direction: row;
515
+ background-color: ${s(a.gray[200],a.darkGray[900])};
516
+ `};return(()=>{var a=rf(),s=o;return typeof s=="function"?Ds(s,a):o=a,a.style.setProperty("--tsqd-font-size","16px"),de(a,()=>e.children),He(()=>xe(a,Ce(r().parentPanel,i(),{[n`
517
+ min-width: min-content;
518
+ `]:go()<rC},"tsqd-main-panel"))),a})()},WOe=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?Vr(n):qr(n)),[o,i]=Se(!1),a=me(()=>e.localStore.position||Ue().position||oC),s=u=>{const d=u.currentTarget.parentElement;if(!d)return;i(!0);const{height:f,width:p}=d.getBoundingClientRect(),h=u.clientX,m=u.clientY;let v=0;const y=B2(3.5),w=B2(12),x=C=>{if(C.preventDefault(),a()==="left"||a()==="right"){const E=a()==="right"?h-C.clientX:C.clientX-h;v=Math.round(p+E),v<w&&(v=w),e.setLocalStore("width",String(Math.round(v)));const P=d.getBoundingClientRect().width;Number(e.localStore.width)<P&&e.setLocalStore("width",String(P))}else{const E=a()==="bottom"?m-C.clientY:C.clientY-m;v=Math.round(f+E),v<y&&(v=y,Gm(null)),e.setLocalStore("height",String(Math.round(v)))}},S=()=>{o()&&i(!1),document.removeEventListener("mousemove",x,!1),document.removeEventListener("mouseUp",S,!1)};document.addEventListener("mousemove",x,!1),document.addEventListener("mouseup",S,!1)};let l;ii(()=>{tj(l,({width:u},d)=>{d===l&&zC(u)})}),We(()=>{var m,v;const u=(v=(m=l.parentElement)==null?void 0:m.parentElement)==null?void 0:v.parentElement;if(!u)return;const d=e.localStore.position||oC,f=dW("padding",d),p=e.localStore.position==="left"||e.localStore.position==="right",h=(({padding:y,paddingTop:w,paddingBottom:x,paddingLeft:S,paddingRight:C})=>({padding:y,paddingTop:w,paddingBottom:x,paddingLeft:S,paddingRight:C}))(u.style);u.style[f]=`${p?e.localStore.width:e.localStore.height}px`,Ye(()=>{Object.entries(h).forEach(([y,w])=>{u.style[y]=w})})});const c=()=>{const{colors:u}=ue,d=(f,p)=>t()==="dark"?p:f;return go()<fs?n`
519
+ flex-direction: column;
520
+ background-color: ${d(u.gray[300],u.gray[600])};
521
+ `:n`
522
+ flex-direction: row;
523
+ background-color: ${d(u.gray[200],u.darkGray[900])};
524
+ `};return(()=>{var u=lOe(),d=u.firstChild,f=d.nextSibling,p=l;return typeof p=="function"?Ds(p,u):l=u,d.$$mousedown=s,f.$$click=()=>e.setLocalStore("open","false"),de(f,I(Zl,{})),de(u,I(qC,e),null),He(h=>{var m=Ce(r().panel,r()[`panel-position-${a()}`],c(),{[n`
525
+ min-width: min-content;
526
+ `]:go()<rC&&(a()==="right"||a()==="left")},"tsqd-main-panel"),v=a()==="bottom"||a()==="top"?`${e.localStore.height||RB}px`:"auto",y=a()==="right"||a()==="left"?`${e.localStore.width||BB}px`:"auto",w=Ce(r().dragHandle,r()[`dragHandle-position-${a()}`],"tsqd-drag-handle"),x=Ce(r().closeBtn,r()[`closeBtn-position-${a()}`],"tsqd-minimize-btn");return m!==h.e&&xe(u,h.e=m),v!==h.t&&((h.t=v)!=null?u.style.setProperty("height",v):u.style.removeProperty("height")),y!==h.a&&((h.a=y)!=null?u.style.setProperty("width",y):u.style.removeProperty("width")),w!==h.o&&xe(d,h.o=w),x!==h.i&&xe(f,h.i=x),h},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),u})()},qC=e=>{JOe(),eTe();let t;const n=hn(),r=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,o=me(()=>n()==="dark"?Vr(r):qr(r)),i=aC(),[a,s]=Se("queries"),l=me(()=>e.localStore.sort||HSe),c=me(()=>Number(e.localStore.sortOrder)||jB),u=me(()=>e.localStore.mutationSort||WSe),d=me(()=>Number(e.localStore.mutationSortOrder)||jB),f=me(()=>Av[l()]),p=me(()=>Dv[u()]),h=me(()=>Ue().onlineManager),m=me(()=>Ue().client.getQueryCache()),v=me(()=>Ue().client.getMutationCache()),y=gn(P=>P().getAll().length,!1),w=me(oi(()=>[y(),e.localStore.filter,l(),c(),e.localStore.hideDisabledQueries],()=>{const P=m().getAll();let _=e.localStore.filter?P.filter(M=>UB(M.queryHash,e.localStore.filter||"").passed):[...P];return e.localStore.hideDisabledQueries==="true"&&(_=_.filter(M=>!M.isDisabled())),f()?_.sort((M,A)=>f()(M,A)*c()):_})),x=mo(P=>P().getAll().length,!1),S=me(oi(()=>[x(),e.localStore.mutationFilter,u(),d()],()=>{const P=v().getAll(),_=e.localStore.mutationFilter?P.filter(M=>{const A=`${M.options.mutationKey?JSON.stringify(M.options.mutationKey)+" - ":""}${new Date(M.state.submittedAt).toLocaleString()}`;return UB(A,e.localStore.mutationFilter||"").passed}):[...P];return p()?_.sort((M,A)=>p()(M,A)*d()):_})),C=P=>{e.setLocalStore("position",P)},E=P=>{const T=getComputedStyle(t).getPropertyValue("--tsqd-font-size");P.style.setProperty("--tsqd-font-size",T)};return[(()=>{var P=MOe(),_=P.firstChild,T=_.firstChild,M=T.firstChild,A=M.firstChild,D=A.nextSibling,N=D.firstChild,R=_.nextSibling,U=R.firstChild,L=U.firstChild,V=L.firstChild,j=L.nextSibling,H=j.nextSibling,se=U.nextSibling,pe=se.firstChild,W=pe.nextSibling,Y=t;return typeof Y=="function"?Ds(Y,P):t=P,M.$$click=()=>{if(!i().pipWindow&&!e.showPanelViewOnly){e.setLocalStore("open","false");return}e.onClose&&e.onClose()},de(D,()=>Ue().queryFlavor,N),de(D,()=>Ue().version,null),de(T,I(jr.Root,{get class(){return Ce(o().viewToggle)},get value(){return a()},onChange:F=>{s(F),Gm(null),iq(null)},get children(){return[I(jr.Item,{value:"queries",class:"tsqd-radio-toggle",get children(){return[I(jr.ItemInput,{}),I(jr.ItemControl,{get children(){return I(jr.ItemIndicator,{})}}),I(jr.ItemLabel,{title:"Toggle Queries View",children:"Queries"})]}}),I(jr.Item,{value:"mutations",class:"tsqd-radio-toggle",get children(){return[I(jr.ItemInput,{}),I(jr.ItemControl,{get children(){return I(jr.ItemIndicator,{})}}),I(jr.ItemLabel,{title:"Toggle Mutations View",children:"Mutations"})]}})]}}),null),de(_,I(qe,{get when(){return a()==="queries"},get children(){return I(YOe,{})}}),null),de(_,I(qe,{get when(){return a()==="mutations"},get children(){return I(XOe,{})}}),null),de(L,I(_Pe,{}),V),V.$$input=F=>{a()==="queries"?e.setLocalStore("filter",F.currentTarget.value):e.setLocalStore("mutationFilter",F.currentTarget.value)},de(j,I(qe,{get when(){return a()==="queries"},get children(){var F=cOe();return F.addEventListener("change",ee=>{e.setLocalStore("sort",ee.currentTarget.value)}),de(F,()=>Object.keys(Av).map(ee=>(()=>{var fe=rq();return fe.firstChild,fe.value=ee,de(fe,ee,null),fe})())),He(()=>F.value=l()),F}}),null),de(j,I(qe,{get when(){return a()==="mutations"},get children(){var F=uOe();return F.addEventListener("change",ee=>{e.setLocalStore("mutationSort",ee.currentTarget.value)}),de(F,()=>Object.keys(Dv).map(ee=>(()=>{var fe=rq();return fe.firstChild,fe.value=ee,de(fe,ee,null),fe})())),He(()=>F.value=u()),F}}),null),de(j,I(Zl,{}),null),H.$$click=()=>{a()==="queries"?e.setLocalStore("sortOrder",String(c()*-1)):e.setLocalStore("mutationSortOrder",String(d()*-1))},de(H,I(qe,{get when(){return(a()==="queries"?c():d())===1},get children(){return[dOe(),I(Yz,{})]}}),null),de(H,I(qe,{get when(){return(a()==="queries"?c():d())===-1},get children(){return[fOe(),I(Xz,{})]}}),null),pe.$$click=()=>{a()==="queries"?(Ho({type:"CLEAR_QUERY_CACHE"}),m().clear()):(Ho({type:"CLEAR_MUTATION_CACHE"}),v().clear())},de(pe,I(Gz,{})),W.$$click=()=>{h().setOnline(!h().isOnline())},de(W,(()=>{var F=Wt(()=>!!of());return()=>F()?I(IPe,{}):I($Pe,{})})()),de(se,I(qe,{get when(){return Wt(()=>!i().pipWindow)()&&!i().disabled},get children(){var F=hOe();return F.$$click=()=>{i().requestPipWindow(Number(window.innerWidth),Number(e.localStore.height??500))},de(F,I(FPe,{})),He(()=>xe(F,Ce(o().actionsBtn,"tsqd-actions-btn","tsqd-action-open-pip"))),F}}),null),de(se,I(bt.Root,{gutter:4,get children(){return[I(bt.Trigger,{get class(){return Ce(o().actionsBtn,"tsqd-actions-btn","tsqd-action-settings")},"aria-label":"Open settings menu",title:"Open settings menu",get children(){return I(LPe,{})}}),I(bt.Portal,{ref:F=>E(F),get mount(){return Wt(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return I(bt.Content,{get class(){return Ce(o().settingsMenu,"tsqd-settings-menu")},get children(){return[(()=>{var F=pOe();return He(()=>xe(F,Ce(o().settingsMenuHeader,"tsqd-settings-menu-header"))),F})(),I(qe,{get when(){return!e.showPanelViewOnly},get children(){return I(bt.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[I(bt.SubTrigger,{get class(){return Ce(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[gOe(),I(Zl,{})]}}),I(bt.Portal,{ref:F=>E(F),get mount(){return Wt(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return I(bt.SubContent,{get class(){return Ce(o().settingsMenu,"tsqd-settings-submenu")},get children(){return I(bt.RadioGroup,{"aria-label":"Position settings",get value(){return e.localStore.position},onChange:F=>C(F),get children(){return[I(bt.RadioItem,{value:"top",get class(){return Ce(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[mOe(),I(Yz,{})]}}),I(bt.RadioItem,{value:"bottom",get class(){return Ce(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[vOe(),I(Xz,{})]}}),I(bt.RadioItem,{value:"left",get class(){return Ce(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[yOe(),I(MPe,{})]}}),I(bt.RadioItem,{value:"right",get class(){return Ce(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-right")},get children(){return[bOe(),I(kPe,{})]}})]}})}})}})]}})}}),I(bt.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[I(bt.SubTrigger,{get class(){return Ce(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-position")},get children(){return[wOe(),I(Zl,{})]}}),I(bt.Portal,{ref:F=>E(F),get mount(){return Wt(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return I(bt.SubContent,{get class(){return Ce(o().settingsMenu,"tsqd-settings-submenu")},get children(){return I(bt.RadioGroup,{get value(){return e.localStore.theme_preference},onChange:F=>{e.setLocalStore("theme_preference",F)},"aria-label":"Theme preference",get children(){return[I(bt.RadioItem,{value:"light",get class(){return Ce(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-top")},get children(){return[xOe(),I(APe,{})]}}),I(bt.RadioItem,{value:"dark",get class(){return Ce(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-bottom")},get children(){return[SOe(),I(DPe,{})]}}),I(bt.RadioItem,{value:"system",get class(){return Ce(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-left")},get children(){return[COe(),I(NPe,{})]}})]}})}})}})]}}),I(bt.Sub,{overlap:!0,gutter:8,shift:-4,get children(){return[I(bt.SubTrigger,{get class(){return Ce(o().settingsSubTrigger,"tsqd-settings-menu-sub-trigger","tsqd-settings-menu-sub-trigger-disabled-queries")},get children(){return[EOe(),I(Zl,{})]}}),I(bt.Portal,{ref:F=>E(F),get mount(){return Wt(()=>!!i().pipWindow)()?i().pipWindow.document.body:document.body},get children(){return I(bt.SubContent,{get class(){return Ce(o().settingsMenu,"tsqd-settings-submenu")},"aria-label":"Hide disabled queries setting",get children(){return I(bt.RadioGroup,{get value(){return e.localStore.hideDisabledQueries},onChange:F=>e.setLocalStore("hideDisabledQueries",F),get children(){return[I(bt.RadioItem,{value:"false",get class(){return Ce(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-show")},get children(){return[POe(),I(qe,{get when(){return e.localStore.hideDisabledQueries!=="true"},get children(){return I(jC,{})}})]}}),I(bt.RadioItem,{value:"true",get class(){return Ce(o().settingsSubButton,"tsqd-settings-menu-position-btn","tsqd-settings-menu-position-btn-hide")},get children(){return[OOe(),I(qe,{get when(){return e.localStore.hideDisabledQueries==="true"},get children(){return I(jC,{})}})]}})]}})}})}})]}})]}})}})]}}),null),de(P,I(qe,{get when(){return a()==="queries"},get children(){var F=TOe(),ee=F.firstChild;return de(ee,I(Dm,{by:fe=>fe.queryHash,get each(){return w()},children:fe=>I(KOe,{get query(){return fe()}})})),He(()=>xe(F,Ce(o().overflowQueryContainer,"tsqd-queries-overflow-container"))),F}}),null),de(P,I(qe,{get when(){return a()==="mutations"},get children(){var F=_Oe(),ee=F.firstChild;return de(ee,I(Dm,{by:fe=>fe.mutationId,get each(){return S()},children:fe=>I(GOe,{get mutation(){return fe()}})})),He(()=>xe(F,Ce(o().overflowQueryContainer,"tsqd-mutations-overflow-container"))),F}}),null),He(F=>{var ee=Ce(o().queriesContainer,go()<fs&&(wr()||da())&&r`
527
+ height: 50%;
528
+ max-height: 50%;
529
+ `,go()<fs&&!(wr()||da())&&r`
530
+ height: 100%;
531
+ max-height: 100%;
532
+ `,"tsqd-queries-container"),fe=Ce(o().row,"tsqd-header"),Z=o().logoAndToggleContainer,J=Ce(o().logo,"tsqd-text-logo-container"),Q=Ce(o().tanstackLogo,"tsqd-text-logo-tanstack"),oe=Ce(o().queryFlavorLogo,"tsqd-text-logo-query-flavor"),le=Ce(o().row,"tsqd-filters-actions-container"),z=Ce(o().filtersContainer,"tsqd-filters-container"),_e=Ce(o().filterInput,"tsqd-query-filter-textfield-container"),X=Ce("tsqd-query-filter-textfield"),be=Ce(o().filterSelect,"tsqd-query-filter-sort-container"),$e=`Sort order ${(a()==="queries"?c():d())===-1?"descending":"ascending"}`,Ve=(a()==="queries"?c():d())===-1,ae=Ce(o().actionsContainer,"tsqd-actions-container"),Ee=Ce(o().actionsBtn,"tsqd-actions-btn","tsqd-action-clear-cache"),Xe=`Clear ${a()} cache`,$=Ce(o().actionsBtn,of()&&o().actionsBtnOffline,"tsqd-actions-btn","tsqd-action-mock-offline-behavior"),B=`${of()?"Unset offline mocking behavior":"Mock offline behavior"}`,G=of(),he=`${of()?"Unset offline mocking behavior":"Mock offline behavior"}`;return ee!==F.e&&xe(P,F.e=ee),fe!==F.t&&xe(_,F.t=fe),Z!==F.a&&xe(T,F.a=Z),J!==F.o&&xe(M,F.o=J),Q!==F.i&&xe(A,F.i=Q),oe!==F.n&&xe(D,F.n=oe),le!==F.s&&xe(R,F.s=le),z!==F.h&&xe(U,F.h=z),_e!==F.r&&xe(L,F.r=_e),X!==F.d&&xe(V,F.d=X),be!==F.l&&xe(j,F.l=be),$e!==F.u&&ve(H,"aria-label",F.u=$e),Ve!==F.c&&ve(H,"aria-pressed",F.c=Ve),ae!==F.w&&xe(se,F.w=ae),Ee!==F.m&&xe(pe,F.m=Ee),Xe!==F.f&&ve(pe,"title",F.f=Xe),$!==F.y&&xe(W,F.y=$),B!==F.g&&ve(W,"aria-label",F.g=B),G!==F.p&&ve(W,"aria-pressed",F.p=G),he!==F.b&&ve(W,"title",F.b=he),F},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0}),He(()=>V.value=a()==="queries"?e.localStore.filter||"":e.localStore.mutationFilter||""),P})(),I(qe,{get when(){return Wt(()=>a()==="queries")()&&wr()},get children(){return I(QOe,{})}}),I(qe,{get when(){return Wt(()=>a()==="mutations")()&&da()},get children(){return I(ZOe,{})}})]},KOe=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?Vr(n):qr(n)),{colors:o,alpha:i}=ue,a=(h,m)=>t()==="dark"?m:h,s=gn(h=>{var m;return(m=h().find({queryKey:e.query.queryKey}))==null?void 0:m.state},!0,h=>h.query.queryHash===e.query.queryHash),l=gn(h=>{var m;return((m=h().find({queryKey:e.query.queryKey}))==null?void 0:m.isDisabled())??!1},!0,h=>h.query.queryHash===e.query.queryHash),c=gn(h=>{var m;return((m=h().find({queryKey:e.query.queryKey}))==null?void 0:m.isStatic())??!1},!0,h=>h.query.queryHash===e.query.queryHash),u=gn(h=>{var m;return((m=h().find({queryKey:e.query.queryKey}))==null?void 0:m.isStale())??!1},!0,h=>h.query.queryHash===e.query.queryHash),d=gn(h=>{var m;return((m=h().find({queryKey:e.query.queryKey}))==null?void 0:m.getObserversCount())??0},!0,h=>h.query.queryHash===e.query.queryHash),f=me(()=>fW({queryState:s(),observerCount:d(),isStale:u()})),p=()=>f()==="gray"?n`
533
+ background-color: ${a(o[f()][200],o[f()][700])};
534
+ color: ${a(o[f()][700],o[f()][300])};
535
+ `:n`
536
+ background-color: ${a(o[f()][200]+i[80],o[f()][900])};
537
+ color: ${a(o[f()][800],o[f()][300])};
538
+ `;return I(qe,{get when(){return s()},get children(){var h=oq(),m=h.firstChild,v=m.nextSibling;return h.$$click=()=>Gm(e.query.queryHash===wr()?null:e.query.queryHash),de(m,d),de(v,()=>e.query.queryHash),de(h,I(qe,{get when(){return l()},get children(){return kOe()}}),null),de(h,I(qe,{get when(){return c()},get children(){return AOe()}}),null),He(y=>{var w=Ce(r().queryRow,wr()===e.query.queryHash&&r().selectedQueryRow,"tsqd-query-row"),x=`Query key ${e.query.queryHash}`,S=Ce(p(),"tsqd-query-observer-count");return w!==y.e&&xe(h,y.e=w),x!==y.t&&ve(h,"aria-label",y.t=x),S!==y.a&&xe(m,y.a=S),y},{e:void 0,t:void 0,a:void 0}),h}})},GOe=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?Vr(n):qr(n)),{colors:o,alpha:i}=ue,a=(f,p)=>t()==="dark"?p:f,s=mo(f=>{const h=f().getAll().find(m=>m.mutationId===e.mutation.mutationId);return h==null?void 0:h.state}),l=mo(f=>{const h=f().getAll().find(m=>m.mutationId===e.mutation.mutationId);return h?h.state.isPaused:!1}),c=mo(f=>{const h=f().getAll().find(m=>m.mutationId===e.mutation.mutationId);return h?h.state.status:"idle"}),u=me(()=>Fs({isPaused:l(),status:c()})),d=()=>u()==="gray"?n`
539
+ background-color: ${a(o[u()][200],o[u()][700])};
540
+ color: ${a(o[u()][700],o[u()][300])};
541
+ `:n`
542
+ background-color: ${a(o[u()][200]+i[80],o[u()][900])};
543
+ color: ${a(o[u()][800],o[u()][300])};
544
+ `;return I(qe,{get when(){return s()},get children(){var f=oq(),p=f.firstChild,h=p.nextSibling;return f.$$click=()=>{iq(e.mutation.mutationId===da()?null:e.mutation.mutationId)},de(p,I(qe,{get when(){return u()==="purple"},get children(){return I(WPe,{})}}),null),de(p,I(qe,{get when(){return u()==="green"},get children(){return I(jC,{})}}),null),de(p,I(qe,{get when(){return u()==="red"},get children(){return I(HPe,{})}}),null),de(p,I(qe,{get when(){return u()==="yellow"},get children(){return I(UPe,{})}}),null),de(h,I(qe,{get when(){return e.mutation.options.mutationKey},get children(){return[Wt(()=>JSON.stringify(e.mutation.options.mutationKey))," -"," "]}}),null),de(h,()=>new Date(e.mutation.state.submittedAt).toLocaleString(),null),He(m=>{var v=Ce(r().queryRow,da()===e.mutation.mutationId&&r().selectedQueryRow,"tsqd-query-row"),y=`Mutation submitted at ${new Date(e.mutation.state.submittedAt).toLocaleString()}`,w=Ce(d(),"tsqd-query-observer-count");return v!==m.e&&xe(f,m.e=v),y!==m.t&&ve(f,"aria-label",m.t=y),w!==m.a&&xe(p,m.a=w),m},{e:void 0,t:void 0,a:void 0}),f}})},YOe=()=>{const e=gn(l=>l().getAll().filter(c=>Ls(c)==="stale").length),t=gn(l=>l().getAll().filter(c=>Ls(c)==="fresh").length),n=gn(l=>l().getAll().filter(c=>Ls(c)==="fetching").length),r=gn(l=>l().getAll().filter(c=>Ls(c)==="paused").length),o=gn(l=>l().getAll().filter(c=>Ls(c)==="inactive").length),i=hn(),a=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,s=me(()=>i()==="dark"?Vr(a):qr(a));return(()=>{var l=rf();return de(l,I(Ai,{label:"Fresh",color:"green",get count(){return t()}}),null),de(l,I(Ai,{label:"Fetching",color:"blue",get count(){return n()}}),null),de(l,I(Ai,{label:"Paused",color:"purple",get count(){return r()}}),null),de(l,I(Ai,{label:"Stale",color:"yellow",get count(){return e()}}),null),de(l,I(Ai,{label:"Inactive",color:"gray",get count(){return o()}}),null),He(()=>xe(l,Ce(s().queryStatusContainer,"tsqd-query-status-container"))),l})()},XOe=()=>{const e=mo(s=>s().getAll().filter(l=>Fs({isPaused:l.state.isPaused,status:l.state.status})==="green").length),t=mo(s=>s().getAll().filter(l=>Fs({isPaused:l.state.isPaused,status:l.state.status})==="yellow").length),n=mo(s=>s().getAll().filter(l=>Fs({isPaused:l.state.isPaused,status:l.state.status})==="purple").length),r=mo(s=>s().getAll().filter(l=>Fs({isPaused:l.state.isPaused,status:l.state.status})==="red").length),o=hn(),i=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,a=me(()=>o()==="dark"?Vr(i):qr(i));return(()=>{var s=rf();return de(s,I(Ai,{label:"Paused",color:"purple",get count(){return n()}}),null),de(s,I(Ai,{label:"Pending",color:"yellow",get count(){return t()}}),null),de(s,I(Ai,{label:"Success",color:"green",get count(){return e()}}),null),de(s,I(Ai,{label:"Error",color:"red",get count(){return r()}}),null),He(()=>xe(s,Ce(a().queryStatusContainer,"tsqd-query-status-container"))),s})()},Ai=e=>{const t=hn(),n=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,r=me(()=>t()==="dark"?Vr(n):qr(n)),{colors:o,alpha:i}=ue,a=(p,h)=>t()==="dark"?h:p;let s;const[l,c]=Se(!1),[u,d]=Se(!1),f=me(()=>!(wr()&&go()<zSe&&go()>fs||go()<fs));return(()=>{var p=$Oe(),h=p.firstChild,m=h.nextSibling,v=s;return typeof v=="function"?Ds(v,p):s=p,p.addEventListener("mouseleave",()=>{c(!1),d(!1)}),p.addEventListener("mouseenter",()=>c(!0)),p.addEventListener("blur",()=>d(!1)),p.addEventListener("focus",()=>d(!0)),d2(p,Je({get disabled(){return f()},get class(){return Ce(r().queryStatusTag,!f()&&n`
545
+ cursor: pointer;
546
+ &:hover {
547
+ background: ${a(o.gray[200],o.darkGray[400])}${i[80]};
548
+ }
549
+ `,"tsqd-query-status-tag",`tsqd-query-status-tag-${e.label.toLowerCase()}`)}},()=>l()||u()?{"aria-describedby":"tsqd-status-tooltip"}:{}),!1,!0),de(p,I(qe,{get when(){return Wt(()=>!f())()&&(l()||u())},get children(){var y=DOe();return de(y,()=>e.label),He(()=>xe(y,Ce(r().statusTooltip,"tsqd-query-status-tooltip"))),y}}),h),de(p,I(qe,{get when(){return f()},get children(){var y=NOe();return de(y,()=>e.label),He(()=>xe(y,Ce(r().queryStatusTagLabel,"tsqd-query-status-tag-label"))),y}}),m),de(m,()=>e.count),He(y=>{var w=Ce(n`
550
+ width: ${ue.size[1.5]};
551
+ height: ${ue.size[1.5]};
552
+ border-radius: ${ue.border.radius.full};
553
+ background-color: ${ue.colors[e.color][500]};
554
+ `,"tsqd-query-status-tag-dot"),x=Ce(r().queryStatusCount,e.count>0&&e.color!=="gray"&&n`
555
+ background-color: ${a(o[e.color][100],o[e.color][900])};
556
+ color: ${a(o[e.color][700],o[e.color][300])};
557
+ `,"tsqd-query-status-tag-count");return w!==y.e&&xe(h,y.e=w),x!==y.t&&xe(m,y.t=x),y},{e:void 0,t:void 0}),p})()},QOe=()=>{const e=hn(),t=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,n=me(()=>e()==="dark"?Vr(t):qr(t)),{colors:r}=ue,o=(T,M)=>e()==="dark"?M:T,i=Ue().client,[a,s]=Se(!1),[l,c]=Se("view"),[u,d]=Se(!1),f=me(()=>Ue().errorTypes||[]),p=gn(T=>T().getAll().find(M=>M.queryHash===wr()),!1),h=gn(T=>T().getAll().find(M=>M.queryHash===wr()),!1),m=gn(T=>{var M;return(M=T().getAll().find(A=>A.queryHash===wr()))==null?void 0:M.state},!1),v=gn(T=>{var M;return(M=T().getAll().find(A=>A.queryHash===wr()))==null?void 0:M.state.data},!1),y=gn(T=>{const M=T().getAll().find(A=>A.queryHash===wr());return M?Ls(M):"inactive"}),w=gn(T=>{const M=T().getAll().find(A=>A.queryHash===wr());return M?M.state.status:"pending"}),x=gn(T=>{var M;return((M=T().getAll().find(A=>A.queryHash===wr()))==null?void 0:M.getObserversCount())??0}),S=me(()=>hW(y())),C=()=>{var M,A;Ho({type:"REFETCH",queryHash:(M=p())==null?void 0:M.queryHash});const T=(A=p())==null?void 0:A.fetch();T==null||T.catch(()=>{})},E=T=>{const M=p();if(!M)return;Ho({type:"TRIGGER_ERROR",queryHash:M.queryHash,metadata:{error:T==null?void 0:T.name}});const A=(T==null?void 0:T.initializer(M))??new Error("Unknown error from devtools"),D=M.options;M.setState({status:"error",error:A,fetchMeta:{...M.state.fetchMeta,__previousQueryOptions:D}})},P=()=>{const T=p();if(!T)return;Ho({type:"RESTORE_LOADING",queryHash:T.queryHash});const M=T.state,A=T.state.fetchMeta?T.state.fetchMeta.__previousQueryOptions:null;T.cancel({silent:!0}),T.setState({...M,fetchStatus:"idle",fetchMeta:null}),A&&T.fetch(A)};We(()=>{y()!=="fetching"&&s(!1)});const _=()=>S()==="gray"?t`
558
+ background-color: ${o(r[S()][200],r[S()][700])};
559
+ color: ${o(r[S()][700],r[S()][300])};
560
+ border-color: ${o(r[S()][400],r[S()][600])};
561
+ `:t`
562
+ background-color: ${o(r[S()][100],r[S()][900])};
563
+ color: ${o(r[S()][700],r[S()][300])};
564
+ border-color: ${o(r[S()][400],r[S()][600])};
565
+ `;return I(qe,{get when(){return Wt(()=>!!p())()&&m()},get children(){var T=BOe(),M=T.firstChild,A=M.nextSibling,D=A.firstChild,N=D.firstChild,R=N.firstChild,U=N.nextSibling,L=D.nextSibling,V=L.firstChild,j=V.nextSibling,H=L.nextSibling,se=H.firstChild,pe=se.nextSibling,W=A.nextSibling,Y=W.nextSibling,F=Y.firstChild,ee=F.firstChild,fe=F.nextSibling,Z=fe.firstChild,J=fe.nextSibling,Q=J.firstChild,oe=J.nextSibling,le=oe.firstChild,z=oe.nextSibling,_e=z.firstChild,X=_e.nextSibling,be=Y.nextSibling;be.firstChild;var $e=be.nextSibling,Ve=$e.nextSibling;return de(R,()=>Yf(p().queryKey,!0)),de(U,y),de(j,x),de(pe,()=>new Date(m().dataUpdatedAt).toLocaleTimeString()),F.$$click=C,fe.$$click=()=>{var ae;Ho({type:"INVALIDATE",queryHash:(ae=p())==null?void 0:ae.queryHash}),i.invalidateQueries(p())},J.$$click=()=>{var ae;Ho({type:"RESET",queryHash:(ae=p())==null?void 0:ae.queryHash}),i.resetQueries(p())},oe.$$click=()=>{var ae;Ho({type:"REMOVE",queryHash:(ae=p())==null?void 0:ae.queryHash}),i.removeQueries(p()),Gm(null)},z.$$click=()=>{var ae;if(((ae=p())==null?void 0:ae.state.data)===void 0)s(!0),P();else{const Ee=p();if(!Ee)return;Ho({type:"TRIGGER_LOADING",queryHash:Ee.queryHash});const Xe=Ee.options;Ee.fetch({...Xe,queryFn:()=>new Promise(()=>{}),gcTime:-1}),Ee.setState({data:void 0,status:"pending",fetchMeta:{...Ee.state.fetchMeta,__previousQueryOptions:Xe}})}},de(z,()=>w()==="pending"?"Restore":"Trigger",X),de(Y,I(qe,{get when(){return f().length===0||w()==="error"},get children(){var ae=IOe(),Ee=ae.firstChild,Xe=Ee.nextSibling;return ae.$$click=()=>{var $;p().state.error?(Ho({type:"RESTORE_ERROR",queryHash:($=p())==null?void 0:$.queryHash}),i.resetQueries(p())):E()},de(ae,()=>w()==="error"?"Restore":"Trigger",Xe),He($=>{var B=Ce(t`
566
+ color: ${o(r.red[500],r.red[400])};
567
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-error"),G=w()==="pending",he=t`
568
+ background-color: ${o(r.red[500],r.red[400])};
569
+ `;return B!==$.e&&xe(ae,$.e=B),G!==$.t&&(ae.disabled=$.t=G),he!==$.a&&xe(Ee,$.a=he),$},{e:void 0,t:void 0,a:void 0}),ae}}),null),de(Y,I(qe,{get when(){return!(f().length===0||w()==="error")},get children(){var ae=LOe(),Ee=ae.firstChild,Xe=Ee.nextSibling,$=Xe.nextSibling;return $.firstChild,$.addEventListener("change",B=>{const G=f().find(he=>he.name===B.currentTarget.value);E(G)}),de($,I(uH,{get each(){return f()},children:B=>(()=>{var G=jOe();return de(G,()=>B.name),He(()=>G.value=B.name),G})()}),null),de(ae,I(Zl,{}),null),He(B=>{var G=Ce(n().actionsSelect,"tsqd-query-details-actions-btn","tsqd-query-details-action-error-multiple"),he=t`
570
+ background-color: ${ue.colors.red[400]};
571
+ `,re=w()==="pending";return G!==B.e&&xe(ae,B.e=G),he!==B.t&&xe(Ee,B.t=he),re!==B.a&&($.disabled=B.a=re),B},{e:void 0,t:void 0,a:void 0}),ae}}),null),de(be,()=>l()==="view"?"Explorer":"Editor",null),de(T,I(qe,{get when(){return l()==="view"},get children(){var ae=FOe();return de(ae,I(ua,{label:"Data",defaultExpanded:["Data"],get value(){return v()},editable:!0,onEdit:()=>c("edit"),get activeQuery(){return p()}})),He(Ee=>(Ee=ue.size[2])!=null?ae.style.setProperty("padding",Ee):ae.style.removeProperty("padding")),ae}}),$e),de(T,I(qe,{get when(){return l()==="edit"},get children(){var ae=ROe(),Ee=ae.firstChild,Xe=Ee.nextSibling,$=Xe.firstChild,B=$.nextSibling,G=B.firstChild,he=G.nextSibling;return ae.addEventListener("submit",re=>{re.preventDefault();const Oe=new FormData(re.currentTarget).get("data");try{const Ge=JSON.parse(Oe);p().setState({...p().state,data:Ge}),c("view")}catch{d(!0)}}),Ee.addEventListener("focus",()=>d(!1)),de($,()=>u()?"Invalid Value":""),G.$$click=()=>c("view"),He(re=>{var ce=Ce(n().devtoolsEditForm,"tsqd-query-details-data-editor"),Oe=n().devtoolsEditTextarea,Ge=u(),Qe=n().devtoolsEditFormActions,et=n().devtoolsEditFormError,$t=n().devtoolsEditFormActionContainer,rt=Ce(n().devtoolsEditFormAction,t`
572
+ color: ${o(r.gray[600],r.gray[300])};
573
+ `),gt=Ce(n().devtoolsEditFormAction,t`
574
+ color: ${o(r.blue[600],r.blue[400])};
575
+ `);return ce!==re.e&&xe(ae,re.e=ce),Oe!==re.t&&xe(Ee,re.t=Oe),Ge!==re.a&&ve(Ee,"data-error",re.a=Ge),Qe!==re.o&&xe(Xe,re.o=Qe),et!==re.i&&xe($,re.i=et),$t!==re.n&&xe(B,re.n=$t),rt!==re.s&&xe(G,re.s=rt),gt!==re.h&&xe(he,re.h=gt),re},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),He(()=>Ee.value=JSON.stringify(v(),null,2)),ae}}),$e),de(Ve,I(ua,{label:"Query",defaultExpanded:["Query","queryKey"],get value(){return h()}})),He(ae=>{var Ee=Ce(n().detailsContainer,"tsqd-query-details-container"),Xe=Ce(n().detailsHeader,"tsqd-query-details-header"),$=Ce(n().detailsBody,"tsqd-query-details-summary-container"),B=Ce(n().queryDetailsStatus,_()),G=Ce(n().detailsHeader,"tsqd-query-details-header"),he=Ce(n().actionsBody,"tsqd-query-details-actions-container"),re=Ce(t`
576
+ color: ${o(r.blue[600],r.blue[400])};
577
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-refetch"),ce=y()==="fetching",Oe=t`
578
+ background-color: ${o(r.blue[600],r.blue[400])};
579
+ `,Ge=Ce(t`
580
+ color: ${o(r.yellow[600],r.yellow[400])};
581
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-invalidate"),Qe=w()==="pending",et=t`
582
+ background-color: ${o(r.yellow[600],r.yellow[400])};
583
+ `,$t=Ce(t`
584
+ color: ${o(r.gray[600],r.gray[300])};
585
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-reset"),rt=w()==="pending",gt=t`
586
+ background-color: ${o(r.gray[600],r.gray[400])};
587
+ `,Jt=Ce(t`
588
+ color: ${o(r.pink[500],r.pink[400])};
589
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-remove"),en=y()==="fetching",Wn=t`
590
+ background-color: ${o(r.pink[500],r.pink[400])};
591
+ `,vn=Ce(t`
592
+ color: ${o(r.cyan[500],r.cyan[400])};
593
+ `,"tsqd-query-details-actions-btn","tsqd-query-details-action-loading"),$n=a(),Ne=t`
594
+ background-color: ${o(r.cyan[500],r.cyan[400])};
595
+ `,Te=Ce(n().detailsHeader,"tsqd-query-details-header"),Ie=Ce(n().detailsHeader,"tsqd-query-details-header"),we=ue.size[2];return Ee!==ae.e&&xe(T,ae.e=Ee),Xe!==ae.t&&xe(M,ae.t=Xe),$!==ae.a&&xe(A,ae.a=$),B!==ae.o&&xe(U,ae.o=B),G!==ae.i&&xe(W,ae.i=G),he!==ae.n&&xe(Y,ae.n=he),re!==ae.s&&xe(F,ae.s=re),ce!==ae.h&&(F.disabled=ae.h=ce),Oe!==ae.r&&xe(ee,ae.r=Oe),Ge!==ae.d&&xe(fe,ae.d=Ge),Qe!==ae.l&&(fe.disabled=ae.l=Qe),et!==ae.u&&xe(Z,ae.u=et),$t!==ae.c&&xe(J,ae.c=$t),rt!==ae.w&&(J.disabled=ae.w=rt),gt!==ae.m&&xe(Q,ae.m=gt),Jt!==ae.f&&xe(oe,ae.f=Jt),en!==ae.y&&(oe.disabled=ae.y=en),Wn!==ae.g&&xe(le,ae.g=Wn),vn!==ae.p&&xe(z,ae.p=vn),$n!==ae.b&&(z.disabled=ae.b=$n),Ne!==ae.T&&xe(_e,ae.T=Ne),Te!==ae.A&&xe(be,ae.A=Te),Ie!==ae.O&&xe($e,ae.O=Ie),we!==ae.I&&((ae.I=we)!=null?Ve.style.setProperty("padding",we):Ve.style.removeProperty("padding")),ae},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0,p:void 0,b:void 0,T:void 0,A:void 0,O:void 0,I:void 0}),T}})},ZOe=()=>{const e=hn(),t=Ue().shadowDOMTarget?ot.bind({target:Ue().shadowDOMTarget}):ot,n=me(()=>e()==="dark"?Vr(t):qr(t)),{colors:r}=ue,o=(u,d)=>e()==="dark"?d:u,i=mo(u=>{const f=u().getAll().find(p=>p.mutationId===da());return f?f.state.isPaused:!1}),a=mo(u=>{const f=u().getAll().find(p=>p.mutationId===da());return f?f.state.status:"idle"}),s=me(()=>Fs({isPaused:i(),status:a()})),l=mo(u=>u().getAll().find(d=>d.mutationId===da()),!1),c=()=>s()==="gray"?t`
596
+ background-color: ${o(r[s()][200],r[s()][700])};
597
+ color: ${o(r[s()][700],r[s()][300])};
598
+ border-color: ${o(r[s()][400],r[s()][600])};
599
+ `:t`
600
+ background-color: ${o(r[s()][100],r[s()][900])};
601
+ color: ${o(r[s()][700],r[s()][300])};
602
+ border-color: ${o(r[s()][400],r[s()][600])};
603
+ `;return I(qe,{get when(){return l()},get children(){var u=zOe(),d=u.firstChild,f=d.nextSibling,p=f.firstChild,h=p.firstChild,m=h.firstChild,v=h.nextSibling,y=p.nextSibling,w=y.firstChild,x=w.nextSibling,S=f.nextSibling,C=S.nextSibling,E=C.nextSibling,P=E.nextSibling,_=P.nextSibling,T=_.nextSibling,M=T.nextSibling,A=M.nextSibling;return de(m,I(qe,{get when(){return l().options.mutationKey},fallback:"No mutationKey found",get children(){return Yf(l().options.mutationKey,!0)}})),de(v,I(qe,{get when(){return s()==="purple"},children:"pending"}),null),de(v,I(qe,{get when(){return s()!=="purple"},get children(){return a()}}),null),de(x,()=>new Date(l().state.submittedAt).toLocaleTimeString()),de(C,I(ua,{label:"Variables",defaultExpanded:["Variables"],get value(){return l().state.variables}})),de(P,I(ua,{label:"Context",defaultExpanded:["Context"],get value(){return l().state.context}})),de(T,I(ua,{label:"Data",defaultExpanded:["Data"],get value(){return l().state.data}})),de(A,I(ua,{label:"Mutation",defaultExpanded:["Mutation"],get value(){return l()}})),He(D=>{var N=Ce(n().detailsContainer,"tsqd-query-details-container"),R=Ce(n().detailsHeader,"tsqd-query-details-header"),U=Ce(n().detailsBody,"tsqd-query-details-summary-container"),L=Ce(n().queryDetailsStatus,c()),V=Ce(n().detailsHeader,"tsqd-query-details-header"),j=ue.size[2],H=Ce(n().detailsHeader,"tsqd-query-details-header"),se=ue.size[2],pe=Ce(n().detailsHeader,"tsqd-query-details-header"),W=ue.size[2],Y=Ce(n().detailsHeader,"tsqd-query-details-header"),F=ue.size[2];return N!==D.e&&xe(u,D.e=N),R!==D.t&&xe(d,D.t=R),U!==D.a&&xe(f,D.a=U),L!==D.o&&xe(v,D.o=L),V!==D.i&&xe(S,D.i=V),j!==D.n&&((D.n=j)!=null?C.style.setProperty("padding",j):C.style.removeProperty("padding")),H!==D.s&&xe(E,D.s=H),se!==D.h&&((D.h=se)!=null?P.style.setProperty("padding",se):P.style.removeProperty("padding")),pe!==D.r&&xe(_,D.r=pe),W!==D.d&&((D.d=W)!=null?T.style.setProperty("padding",W):T.style.removeProperty("padding")),Y!==D.l&&xe(M,D.l=Y),F!==D.u&&((D.u=F)!=null?A.style.setProperty("padding",F):A.style.removeProperty("padding")),D},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0}),u}})},Ym=new Map,JOe=()=>{const e=me(()=>Ue().client.getQueryCache()),t=e().subscribe(n=>{QU(()=>{for(const[r,o]of Ym.entries())o.shouldUpdate(n)&&o.setter(r(e))})});return Ye(()=>{Ym.clear(),t()}),t},gn=(e,t=!0,n=()=>!0)=>{const r=me(()=>Ue().client.getQueryCache()),[o,i]=Se(e(r),t?void 0:{equals:!1});return We(()=>{i(e(r))}),Ym.set(e,{setter:i,shouldUpdate:n}),Ye(()=>{Ym.delete(e)}),o},Xm=new Map,eTe=()=>{const e=me(()=>Ue().client.getMutationCache()),t=e().subscribe(()=>{for(const[n,r]of Xm.entries())queueMicrotask(()=>{r(n(e))})});return Ye(()=>{Xm.clear(),t()}),t},mo=(e,t=!0)=>{const n=me(()=>Ue().client.getMutationCache()),[r,o]=Se(e(n),t?void 0:{equals:!1});return We(()=>{o(e(n))}),Xm.set(e,o),Ye(()=>{Xm.delete(e)}),r},tTe="@tanstack/query-devtools-event",Ho=({type:e,queryHash:t,metadata:n})=>{const r=new CustomEvent(tTe,{detail:{type:e,queryHash:t,metadata:n},bubbles:!0,cancelable:!0});window.dispatchEvent(r)},aq=(e,t)=>{const{colors:n,font:r,size:o,alpha:i,shadow:a,border:s}=ue,l=(c,u)=>e==="light"?c:u;return{devtoolsBtn:t`
604
+ z-index: 100000;
605
+ position: fixed;
606
+ padding: 4px;
607
+ text-align: left;
608
+
609
+ display: flex;
610
+ align-items: center;
611
+ justify-content: center;
612
+ border-radius: 9999px;
613
+ box-shadow: ${a.md()};
614
+ overflow: hidden;
615
+
616
+ & div {
617
+ position: absolute;
618
+ top: -8px;
619
+ left: -8px;
620
+ right: -8px;
621
+ bottom: -8px;
622
+ border-radius: 9999px;
623
+
624
+ & svg {
625
+ position: absolute;
626
+ width: 100%;
627
+ height: 100%;
628
+ }
629
+ filter: blur(6px) saturate(1.2) contrast(1.1);
630
+ }
631
+
632
+ &:focus-within {
633
+ outline-offset: 2px;
634
+ outline: 3px solid ${n.green[600]};
635
+ }
636
+
637
+ & button {
638
+ position: relative;
639
+ z-index: 1;
640
+ padding: 0;
641
+ border-radius: 9999px;
642
+ background-color: transparent;
643
+ border: none;
644
+ height: 40px;
645
+ display: flex;
646
+ width: 40px;
647
+ overflow: hidden;
648
+ cursor: pointer;
649
+ outline: none;
650
+ & svg {
651
+ position: absolute;
652
+ width: 100%;
653
+ height: 100%;
654
+ }
655
+ }
656
+ `,panel:t`
657
+ position: fixed;
658
+ z-index: 9999;
659
+ display: flex;
660
+ gap: ${ue.size[.5]};
661
+ & * {
662
+ box-sizing: border-box;
663
+ text-transform: none;
664
+ }
665
+
666
+ & *::-webkit-scrollbar {
667
+ width: 7px;
668
+ }
669
+
670
+ & *::-webkit-scrollbar-track {
671
+ background: transparent;
672
+ }
673
+
674
+ & *::-webkit-scrollbar-thumb {
675
+ background: ${l(n.gray[300],n.darkGray[200])};
676
+ }
677
+
678
+ & *::-webkit-scrollbar-thumb:hover {
679
+ background: ${l(n.gray[400],n.darkGray[300])};
680
+ }
681
+ `,parentPanel:t`
682
+ z-index: 9999;
683
+ display: flex;
684
+ height: 100%;
685
+ gap: ${ue.size[.5]};
686
+ & * {
687
+ box-sizing: border-box;
688
+ text-transform: none;
689
+ }
690
+
691
+ & *::-webkit-scrollbar {
692
+ width: 7px;
693
+ }
694
+
695
+ & *::-webkit-scrollbar-track {
696
+ background: transparent;
697
+ }
698
+
699
+ & *::-webkit-scrollbar-thumb {
700
+ background: ${l(n.gray[300],n.darkGray[200])};
701
+ }
702
+
703
+ & *::-webkit-scrollbar-thumb:hover {
704
+ background: ${l(n.gray[400],n.darkGray[300])};
705
+ }
706
+ `,"devtoolsBtn-position-bottom-right":t`
707
+ bottom: 12px;
708
+ right: 12px;
709
+ `,"devtoolsBtn-position-bottom-left":t`
710
+ bottom: 12px;
711
+ left: 12px;
712
+ `,"devtoolsBtn-position-top-left":t`
713
+ top: 12px;
714
+ left: 12px;
715
+ `,"devtoolsBtn-position-top-right":t`
716
+ top: 12px;
717
+ right: 12px;
718
+ `,"devtoolsBtn-position-relative":t`
719
+ position: relative;
720
+ `,"panel-position-top":t`
721
+ top: 0;
722
+ right: 0;
723
+ left: 0;
724
+ max-height: 90%;
725
+ min-height: ${o[14]};
726
+ border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
727
+ `,"panel-position-bottom":t`
728
+ bottom: 0;
729
+ right: 0;
730
+ left: 0;
731
+ max-height: 90%;
732
+ min-height: ${o[14]};
733
+ border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
734
+ `,"panel-position-right":t`
735
+ bottom: 0;
736
+ right: 0;
737
+ top: 0;
738
+ border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
739
+ max-width: 90%;
740
+ `,"panel-position-left":t`
741
+ bottom: 0;
742
+ left: 0;
743
+ top: 0;
744
+ border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
745
+ max-width: 90%;
746
+ `,closeBtn:t`
747
+ position: absolute;
748
+ cursor: pointer;
749
+ z-index: 5;
750
+ display: flex;
751
+ align-items: center;
752
+ justify-content: center;
753
+ outline: none;
754
+ background-color: ${l(n.gray[50],n.darkGray[700])};
755
+ &:hover {
756
+ background-color: ${l(n.gray[200],n.darkGray[500])};
757
+ }
758
+ &:focus-visible {
759
+ outline: 2px solid ${n.blue[600]};
760
+ }
761
+ & svg {
762
+ color: ${l(n.gray[600],n.gray[400])};
763
+ width: ${o[2]};
764
+ height: ${o[2]};
765
+ }
766
+ `,"closeBtn-position-top":t`
767
+ bottom: 0;
768
+ right: ${o[2]};
769
+ transform: translate(0, 100%);
770
+ border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
771
+ border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
772
+ border-top: none;
773
+ border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
774
+ border-radius: 0px 0px ${s.radius.sm} ${s.radius.sm};
775
+ padding: ${o[.5]} ${o[1.5]} ${o[1]} ${o[1.5]};
776
+
777
+ &::after {
778
+ content: ' ';
779
+ position: absolute;
780
+ bottom: 100%;
781
+ left: -${o[2.5]};
782
+ height: ${o[1.5]};
783
+ width: calc(100% + ${o[5]});
784
+ }
785
+
786
+ & svg {
787
+ transform: rotate(180deg);
788
+ }
789
+ `,"closeBtn-position-bottom":t`
790
+ top: 0;
791
+ right: ${o[2]};
792
+ transform: translate(0, -100%);
793
+ border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
794
+ border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
795
+ border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
796
+ border-bottom: none;
797
+ border-radius: ${s.radius.sm} ${s.radius.sm} 0px 0px;
798
+ padding: ${o[1]} ${o[1.5]} ${o[.5]} ${o[1.5]};
799
+
800
+ &::after {
801
+ content: ' ';
802
+ position: absolute;
803
+ top: 100%;
804
+ left: -${o[2.5]};
805
+ height: ${o[1.5]};
806
+ width: calc(100% + ${o[5]});
807
+ }
808
+ `,"closeBtn-position-right":t`
809
+ bottom: ${o[2]};
810
+ left: 0;
811
+ transform: translate(-100%, 0);
812
+ border-right: none;
813
+ border-left: ${l(n.gray[400],n.darkGray[300])} 1px solid;
814
+ border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
815
+ border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
816
+ border-radius: ${s.radius.sm} 0px 0px ${s.radius.sm};
817
+ padding: ${o[1.5]} ${o[.5]} ${o[1.5]} ${o[1]};
818
+
819
+ &::after {
820
+ content: ' ';
821
+ position: absolute;
822
+ left: 100%;
823
+ height: calc(100% + ${o[5]});
824
+ width: ${o[1.5]};
825
+ }
826
+
827
+ & svg {
828
+ transform: rotate(-90deg);
829
+ }
830
+ `,"closeBtn-position-left":t`
831
+ bottom: ${o[2]};
832
+ right: 0;
833
+ transform: translate(100%, 0);
834
+ border-left: none;
835
+ border-right: ${l(n.gray[400],n.darkGray[300])} 1px solid;
836
+ border-top: ${l(n.gray[400],n.darkGray[300])} 1px solid;
837
+ border-bottom: ${l(n.gray[400],n.darkGray[300])} 1px solid;
838
+ border-radius: 0px ${s.radius.sm} ${s.radius.sm} 0px;
839
+ padding: ${o[1.5]} ${o[1]} ${o[1.5]} ${o[.5]};
840
+
841
+ &::after {
842
+ content: ' ';
843
+ position: absolute;
844
+ right: 100%;
845
+ height: calc(100% + ${o[5]});
846
+ width: ${o[1.5]};
847
+ }
848
+
849
+ & svg {
850
+ transform: rotate(90deg);
851
+ }
852
+ `,queriesContainer:t`
853
+ flex: 1 1 700px;
854
+ background-color: ${l(n.gray[50],n.darkGray[700])};
855
+ display: flex;
856
+ flex-direction: column;
857
+ & * {
858
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
859
+ }
860
+ `,dragHandle:t`
861
+ position: absolute;
862
+ transition: background-color 0.125s ease;
863
+ &:hover {
864
+ background-color: ${n.purple[400]}${l("",i[90])};
865
+ }
866
+ z-index: 4;
867
+ `,"dragHandle-position-top":t`
868
+ bottom: 0;
869
+ width: 100%;
870
+ height: 3px;
871
+ cursor: ns-resize;
872
+ `,"dragHandle-position-bottom":t`
873
+ top: 0;
874
+ width: 100%;
875
+ height: 3px;
876
+ cursor: ns-resize;
877
+ `,"dragHandle-position-right":t`
878
+ left: 0;
879
+ width: 3px;
880
+ height: 100%;
881
+ cursor: ew-resize;
882
+ `,"dragHandle-position-left":t`
883
+ right: 0;
884
+ width: 3px;
885
+ height: 100%;
886
+ cursor: ew-resize;
887
+ `,row:t`
888
+ display: flex;
889
+ justify-content: space-between;
890
+ align-items: center;
891
+ padding: ${ue.size[2]} ${ue.size[2.5]};
892
+ gap: ${ue.size[2.5]};
893
+ border-bottom: ${l(n.gray[300],n.darkGray[500])} 1px solid;
894
+ align-items: center;
895
+ & > button {
896
+ padding: 0;
897
+ background: transparent;
898
+ border: none;
899
+ display: flex;
900
+ gap: ${o[.5]};
901
+ flex-direction: column;
902
+ }
903
+ `,logoAndToggleContainer:t`
904
+ display: flex;
905
+ gap: ${ue.size[3]};
906
+ align-items: center;
907
+ `,logo:t`
908
+ cursor: pointer;
909
+ display: flex;
910
+ flex-direction: column;
911
+ background-color: transparent;
912
+ border: none;
913
+ gap: ${ue.size[.5]};
914
+ padding: 0px;
915
+ &:hover {
916
+ opacity: 0.7;
917
+ }
918
+ &:focus-visible {
919
+ outline-offset: 4px;
920
+ border-radius: ${s.radius.xs};
921
+ outline: 2px solid ${n.blue[800]};
922
+ }
923
+ `,tanstackLogo:t`
924
+ font-size: ${r.size.md};
925
+ font-weight: ${r.weight.bold};
926
+ line-height: ${r.lineHeight.xs};
927
+ white-space: nowrap;
928
+ color: ${l(n.gray[600],n.gray[300])};
929
+ `,queryFlavorLogo:t`
930
+ font-weight: ${r.weight.semibold};
931
+ font-size: ${r.size.xs};
932
+ background: linear-gradient(
933
+ to right,
934
+ ${l("#ea4037, #ff9b11","#dd524b, #e9a03b")}
935
+ );
936
+ background-clip: text;
937
+ -webkit-background-clip: text;
938
+ line-height: 1;
939
+ -webkit-text-fill-color: transparent;
940
+ white-space: nowrap;
941
+ `,queryStatusContainer:t`
942
+ display: flex;
943
+ gap: ${ue.size[2]};
944
+ height: min-content;
945
+ `,queryStatusTag:t`
946
+ display: flex;
947
+ gap: ${ue.size[1.5]};
948
+ box-sizing: border-box;
949
+ height: ${ue.size[6.5]};
950
+ background: ${l(n.gray[50],n.darkGray[500])};
951
+ color: ${l(n.gray[700],n.gray[300])};
952
+ border-radius: ${ue.border.radius.sm};
953
+ font-size: ${r.size.sm};
954
+ padding: ${ue.size[1]};
955
+ padding-left: ${ue.size[1.5]};
956
+ align-items: center;
957
+ font-weight: ${r.weight.medium};
958
+ border: ${l("1px solid "+n.gray[300],"1px solid transparent")};
959
+ user-select: none;
960
+ position: relative;
961
+ &:focus-visible {
962
+ outline-offset: 2px;
963
+ outline: 2px solid ${n.blue[800]};
964
+ }
965
+ `,queryStatusTagLabel:t`
966
+ font-size: ${r.size.xs};
967
+ `,queryStatusCount:t`
968
+ font-size: ${r.size.xs};
969
+ padding: 0 5px;
970
+ display: flex;
971
+ align-items: center;
972
+ justify-content: center;
973
+ color: ${l(n.gray[500],n.gray[400])};
974
+ background-color: ${l(n.gray[200],n.darkGray[300])};
975
+ border-radius: 2px;
976
+ font-variant-numeric: tabular-nums;
977
+ height: ${ue.size[4.5]};
978
+ `,statusTooltip:t`
979
+ position: absolute;
980
+ z-index: 1;
981
+ background-color: ${l(n.gray[50],n.darkGray[500])};
982
+ top: 100%;
983
+ left: 50%;
984
+ transform: translate(-50%, calc(${ue.size[2]}));
985
+ padding: ${ue.size[.5]} ${ue.size[2]};
986
+ border-radius: ${ue.border.radius.sm};
987
+ font-size: ${r.size.xs};
988
+ border: 1px solid ${l(n.gray[400],n.gray[600])};
989
+ color: ${l(n.gray[600],n.gray[300])};
990
+
991
+ &::before {
992
+ top: 0px;
993
+ content: ' ';
994
+ display: block;
995
+ left: 50%;
996
+ transform: translate(-50%, -100%);
997
+ position: absolute;
998
+ border-color: transparent transparent
999
+ ${l(n.gray[400],n.gray[600])} transparent;
1000
+ border-style: solid;
1001
+ border-width: 7px;
1002
+ /* transform: rotate(180deg); */
1003
+ }
1004
+
1005
+ &::after {
1006
+ top: 0px;
1007
+ content: ' ';
1008
+ display: block;
1009
+ left: 50%;
1010
+ transform: translate(-50%, calc(-100% + 2px));
1011
+ position: absolute;
1012
+ border-color: transparent transparent
1013
+ ${l(n.gray[100],n.darkGray[500])} transparent;
1014
+ border-style: solid;
1015
+ border-width: 7px;
1016
+ }
1017
+ `,filtersContainer:t`
1018
+ display: flex;
1019
+ gap: ${ue.size[2]};
1020
+ & > button {
1021
+ cursor: pointer;
1022
+ padding: ${ue.size[.5]} ${ue.size[1.5]} ${ue.size[.5]}
1023
+ ${ue.size[2]};
1024
+ border-radius: ${ue.border.radius.sm};
1025
+ background-color: ${l(n.gray[100],n.darkGray[400])};
1026
+ border: 1px solid ${l(n.gray[300],n.darkGray[200])};
1027
+ color: ${l(n.gray[700],n.gray[300])};
1028
+ font-size: ${r.size.xs};
1029
+ display: flex;
1030
+ align-items: center;
1031
+ line-height: ${r.lineHeight.sm};
1032
+ gap: ${ue.size[1.5]};
1033
+ max-width: 160px;
1034
+ &:focus-visible {
1035
+ outline-offset: 2px;
1036
+ border-radius: ${s.radius.xs};
1037
+ outline: 2px solid ${n.blue[800]};
1038
+ }
1039
+ & svg {
1040
+ width: ${ue.size[3]};
1041
+ height: ${ue.size[3]};
1042
+ color: ${l(n.gray[500],n.gray[400])};
1043
+ }
1044
+ }
1045
+ `,filterInput:t`
1046
+ padding: ${o[.5]} ${o[2]};
1047
+ border-radius: ${ue.border.radius.sm};
1048
+ background-color: ${l(n.gray[100],n.darkGray[400])};
1049
+ display: flex;
1050
+ box-sizing: content-box;
1051
+ align-items: center;
1052
+ gap: ${ue.size[1.5]};
1053
+ max-width: 160px;
1054
+ min-width: 100px;
1055
+ border: 1px solid ${l(n.gray[300],n.darkGray[200])};
1056
+ height: min-content;
1057
+ color: ${l(n.gray[600],n.gray[400])};
1058
+ & > svg {
1059
+ width: ${o[3]};
1060
+ height: ${o[3]};
1061
+ }
1062
+ & input {
1063
+ font-size: ${r.size.xs};
1064
+ width: 100%;
1065
+ background-color: ${l(n.gray[100],n.darkGray[400])};
1066
+ border: none;
1067
+ padding: 0;
1068
+ line-height: ${r.lineHeight.sm};
1069
+ color: ${l(n.gray[700],n.gray[300])};
1070
+ &::placeholder {
1071
+ color: ${l(n.gray[700],n.gray[300])};
1072
+ }
1073
+ &:focus {
1074
+ outline: none;
1075
+ }
1076
+ }
1077
+
1078
+ &:focus-within {
1079
+ outline-offset: 2px;
1080
+ border-radius: ${s.radius.xs};
1081
+ outline: 2px solid ${n.blue[800]};
1082
+ }
1083
+ `,filterSelect:t`
1084
+ padding: ${ue.size[.5]} ${ue.size[2]};
1085
+ border-radius: ${ue.border.radius.sm};
1086
+ background-color: ${l(n.gray[100],n.darkGray[400])};
1087
+ display: flex;
1088
+ align-items: center;
1089
+ gap: ${ue.size[1.5]};
1090
+ box-sizing: content-box;
1091
+ max-width: 160px;
1092
+ border: 1px solid ${l(n.gray[300],n.darkGray[200])};
1093
+ height: min-content;
1094
+ & > svg {
1095
+ color: ${l(n.gray[600],n.gray[400])};
1096
+ width: ${ue.size[2]};
1097
+ height: ${ue.size[2]};
1098
+ }
1099
+ & > select {
1100
+ appearance: none;
1101
+ color: ${l(n.gray[700],n.gray[300])};
1102
+ min-width: 100px;
1103
+ line-height: ${r.lineHeight.sm};
1104
+ font-size: ${r.size.xs};
1105
+ background-color: ${l(n.gray[100],n.darkGray[400])};
1106
+ border: none;
1107
+ &:focus {
1108
+ outline: none;
1109
+ }
1110
+ }
1111
+ &:focus-within {
1112
+ outline-offset: 2px;
1113
+ border-radius: ${s.radius.xs};
1114
+ outline: 2px solid ${n.blue[800]};
1115
+ }
1116
+ `,actionsContainer:t`
1117
+ display: flex;
1118
+ gap: ${ue.size[2]};
1119
+ `,actionsBtn:t`
1120
+ border-radius: ${ue.border.radius.sm};
1121
+ background-color: ${l(n.gray[100],n.darkGray[400])};
1122
+ border: 1px solid ${l(n.gray[300],n.darkGray[200])};
1123
+ width: ${ue.size[6.5]};
1124
+ height: ${ue.size[6.5]};
1125
+ justify-content: center;
1126
+ display: flex;
1127
+ align-items: center;
1128
+ gap: ${ue.size[1.5]};
1129
+ max-width: 160px;
1130
+ cursor: pointer;
1131
+ padding: 0;
1132
+ &:hover {
1133
+ background-color: ${l(n.gray[200],n.darkGray[500])};
1134
+ }
1135
+ & svg {
1136
+ color: ${l(n.gray[700],n.gray[300])};
1137
+ width: ${ue.size[3]};
1138
+ height: ${ue.size[3]};
1139
+ }
1140
+ &:focus-visible {
1141
+ outline-offset: 2px;
1142
+ border-radius: ${s.radius.xs};
1143
+ outline: 2px solid ${n.blue[800]};
1144
+ }
1145
+ `,actionsBtnOffline:t`
1146
+ & svg {
1147
+ stroke: ${l(n.yellow[700],n.yellow[500])};
1148
+ fill: ${l(n.yellow[700],n.yellow[500])};
1149
+ }
1150
+ `,overflowQueryContainer:t`
1151
+ flex: 1;
1152
+ overflow-y: auto;
1153
+ & > div {
1154
+ display: flex;
1155
+ flex-direction: column;
1156
+ }
1157
+ `,queryRow:t`
1158
+ display: flex;
1159
+ align-items: center;
1160
+ padding: 0;
1161
+ border: none;
1162
+ cursor: pointer;
1163
+ color: ${l(n.gray[700],n.gray[300])};
1164
+ background-color: ${l(n.gray[50],n.darkGray[700])};
1165
+ line-height: 1;
1166
+ &:focus {
1167
+ outline: none;
1168
+ }
1169
+ &:focus-visible {
1170
+ outline-offset: -2px;
1171
+ border-radius: ${s.radius.xs};
1172
+ outline: 2px solid ${n.blue[800]};
1173
+ }
1174
+ &:hover .tsqd-query-hash {
1175
+ background-color: ${l(n.gray[200],n.darkGray[600])};
1176
+ }
1177
+
1178
+ & .tsqd-query-observer-count {
1179
+ padding: 0 ${ue.size[1]};
1180
+ user-select: none;
1181
+ min-width: ${ue.size[6.5]};
1182
+ align-self: stretch;
1183
+ display: flex;
1184
+ align-items: center;
1185
+ justify-content: center;
1186
+ font-size: ${r.size.xs};
1187
+ font-weight: ${r.weight.medium};
1188
+ border-bottom-width: 1px;
1189
+ border-bottom-style: solid;
1190
+ border-bottom: 1px solid ${l(n.gray[300],n.darkGray[700])};
1191
+ }
1192
+ & .tsqd-query-hash {
1193
+ user-select: text;
1194
+ font-size: ${r.size.xs};
1195
+ display: flex;
1196
+ align-items: center;
1197
+ min-height: ${ue.size[6]};
1198
+ flex: 1;
1199
+ padding: ${ue.size[1]} ${ue.size[2]};
1200
+ font-family:
1201
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
1202
+ 'Liberation Mono', 'Courier New', monospace;
1203
+ border-bottom: 1px solid ${l(n.gray[300],n.darkGray[400])};
1204
+ text-align: left;
1205
+ text-overflow: clip;
1206
+ word-break: break-word;
1207
+ }
1208
+
1209
+ & .tsqd-query-disabled-indicator {
1210
+ align-self: stretch;
1211
+ display: flex;
1212
+ align-items: center;
1213
+ padding: 0 ${ue.size[2]};
1214
+ color: ${l(n.gray[800],n.gray[300])};
1215
+ background-color: ${l(n.gray[300],n.darkGray[600])};
1216
+ border-bottom: 1px solid ${l(n.gray[300],n.darkGray[400])};
1217
+ font-size: ${r.size.xs};
1218
+ }
1219
+
1220
+ & .tsqd-query-static-indicator {
1221
+ align-self: stretch;
1222
+ display: flex;
1223
+ align-items: center;
1224
+ padding: 0 ${ue.size[2]};
1225
+ color: ${l(n.teal[800],n.teal[300])};
1226
+ background-color: ${l(n.teal[100],n.teal[900])};
1227
+ border-bottom: 1px solid ${l(n.teal[300],n.teal[700])};
1228
+ font-size: ${r.size.xs};
1229
+ }
1230
+ `,selectedQueryRow:t`
1231
+ background-color: ${l(n.gray[200],n.darkGray[500])};
1232
+ `,detailsContainer:t`
1233
+ flex: 1 1 700px;
1234
+ background-color: ${l(n.gray[50],n.darkGray[700])};
1235
+ color: ${l(n.gray[700],n.gray[300])};
1236
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1237
+ display: flex;
1238
+ flex-direction: column;
1239
+ overflow-y: auto;
1240
+ display: flex;
1241
+ text-align: left;
1242
+ `,detailsHeader:t`
1243
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1244
+ position: sticky;
1245
+ top: 0;
1246
+ z-index: 2;
1247
+ background-color: ${l(n.gray[200],n.darkGray[600])};
1248
+ padding: ${ue.size[1.5]} ${ue.size[2]};
1249
+ font-weight: ${r.weight.medium};
1250
+ font-size: ${r.size.xs};
1251
+ line-height: ${r.lineHeight.xs};
1252
+ text-align: left;
1253
+ `,detailsBody:t`
1254
+ margin: ${ue.size[1.5]} 0px ${ue.size[2]} 0px;
1255
+ & > div {
1256
+ display: flex;
1257
+ align-items: stretch;
1258
+ padding: 0 ${ue.size[2]};
1259
+ line-height: ${r.lineHeight.sm};
1260
+ justify-content: space-between;
1261
+ & > span {
1262
+ font-size: ${r.size.xs};
1263
+ }
1264
+ & > span:nth-child(2) {
1265
+ font-variant-numeric: tabular-nums;
1266
+ }
1267
+ }
1268
+
1269
+ & > div:first-child {
1270
+ margin-bottom: ${ue.size[1.5]};
1271
+ }
1272
+
1273
+ & code {
1274
+ font-family:
1275
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
1276
+ 'Liberation Mono', 'Courier New', monospace;
1277
+ margin: 0;
1278
+ font-size: ${r.size.xs};
1279
+ line-height: ${r.lineHeight.xs};
1280
+ max-width: 100%;
1281
+ white-space: pre-wrap;
1282
+ overflow-wrap: anywhere;
1283
+ word-break: break-word;
1284
+ }
1285
+
1286
+ & pre {
1287
+ margin: 0;
1288
+ display: flex;
1289
+ align-items: center;
1290
+ }
1291
+ `,queryDetailsStatus:t`
1292
+ border: 1px solid ${n.darkGray[200]};
1293
+ border-radius: ${ue.border.radius.sm};
1294
+ font-weight: ${r.weight.medium};
1295
+ padding: ${ue.size[1]} ${ue.size[2.5]};
1296
+ `,actionsBody:t`
1297
+ flex-wrap: wrap;
1298
+ margin: ${ue.size[2]} 0px ${ue.size[2]} 0px;
1299
+ display: flex;
1300
+ gap: ${ue.size[2]};
1301
+ padding: 0px ${ue.size[2]};
1302
+ & > button {
1303
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1304
+ font-size: ${r.size.xs};
1305
+ padding: ${ue.size[1]} ${ue.size[2]};
1306
+ display: flex;
1307
+ border-radius: ${ue.border.radius.sm};
1308
+ background-color: ${l(n.gray[100],n.darkGray[600])};
1309
+ border: 1px solid ${l(n.gray[300],n.darkGray[400])};
1310
+ align-items: center;
1311
+ gap: ${ue.size[2]};
1312
+ font-weight: ${r.weight.medium};
1313
+ line-height: ${r.lineHeight.xs};
1314
+ cursor: pointer;
1315
+ &:focus-visible {
1316
+ outline-offset: 2px;
1317
+ border-radius: ${s.radius.xs};
1318
+ outline: 2px solid ${n.blue[800]};
1319
+ }
1320
+ &:hover {
1321
+ background-color: ${l(n.gray[200],n.darkGray[500])};
1322
+ }
1323
+
1324
+ &:disabled {
1325
+ opacity: 0.6;
1326
+ cursor: not-allowed;
1327
+ }
1328
+
1329
+ & > span {
1330
+ width: ${o[1.5]};
1331
+ height: ${o[1.5]};
1332
+ border-radius: ${ue.border.radius.full};
1333
+ }
1334
+ }
1335
+ `,actionsSelect:t`
1336
+ font-size: ${r.size.xs};
1337
+ padding: ${ue.size[.5]} ${ue.size[2]};
1338
+ display: flex;
1339
+ border-radius: ${ue.border.radius.sm};
1340
+ overflow: hidden;
1341
+ background-color: ${l(n.gray[100],n.darkGray[600])};
1342
+ border: 1px solid ${l(n.gray[300],n.darkGray[400])};
1343
+ align-items: center;
1344
+ gap: ${ue.size[2]};
1345
+ font-weight: ${r.weight.medium};
1346
+ line-height: ${r.lineHeight.sm};
1347
+ color: ${l(n.red[500],n.red[400])};
1348
+ cursor: pointer;
1349
+ position: relative;
1350
+ &:hover {
1351
+ background-color: ${l(n.gray[200],n.darkGray[500])};
1352
+ }
1353
+ & > span {
1354
+ width: ${o[1.5]};
1355
+ height: ${o[1.5]};
1356
+ border-radius: ${ue.border.radius.full};
1357
+ }
1358
+ &:focus-within {
1359
+ outline-offset: 2px;
1360
+ border-radius: ${s.radius.xs};
1361
+ outline: 2px solid ${n.blue[800]};
1362
+ }
1363
+ & select {
1364
+ position: absolute;
1365
+ top: 0;
1366
+ left: 0;
1367
+ width: 100%;
1368
+ height: 100%;
1369
+ appearance: none;
1370
+ background-color: transparent;
1371
+ border: none;
1372
+ color: transparent;
1373
+ outline: none;
1374
+ }
1375
+
1376
+ & svg path {
1377
+ stroke: ${ue.colors.red[400]};
1378
+ }
1379
+ & svg {
1380
+ width: ${ue.size[2]};
1381
+ height: ${ue.size[2]};
1382
+ }
1383
+ `,settingsMenu:t`
1384
+ display: flex;
1385
+ & * {
1386
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1387
+ }
1388
+ flex-direction: column;
1389
+ gap: ${o[.5]};
1390
+ border-radius: ${ue.border.radius.sm};
1391
+ border: 1px solid ${l(n.gray[300],n.gray[700])};
1392
+ background-color: ${l(n.gray[50],n.darkGray[600])};
1393
+ font-size: ${r.size.xs};
1394
+ color: ${l(n.gray[700],n.gray[300])};
1395
+ z-index: 99999;
1396
+ min-width: 120px;
1397
+ padding: ${o[.5]};
1398
+ `,settingsSubTrigger:t`
1399
+ display: flex;
1400
+ align-items: center;
1401
+ justify-content: space-between;
1402
+ border-radius: ${ue.border.radius.xs};
1403
+ padding: ${ue.size[1]} ${ue.size[1]};
1404
+ cursor: pointer;
1405
+ background-color: transparent;
1406
+ border: none;
1407
+ color: ${l(n.gray[700],n.gray[300])};
1408
+ & svg {
1409
+ color: ${l(n.gray[600],n.gray[400])};
1410
+ transform: rotate(-90deg);
1411
+ width: ${ue.size[2]};
1412
+ height: ${ue.size[2]};
1413
+ }
1414
+ &:hover {
1415
+ background-color: ${l(n.gray[200],n.darkGray[500])};
1416
+ }
1417
+ &:focus-visible {
1418
+ outline-offset: 2px;
1419
+ outline: 2px solid ${n.blue[800]};
1420
+ }
1421
+ &.data-disabled {
1422
+ opacity: 0.6;
1423
+ cursor: not-allowed;
1424
+ }
1425
+ `,settingsMenuHeader:t`
1426
+ padding: ${ue.size[1]} ${ue.size[1]};
1427
+ font-weight: ${r.weight.medium};
1428
+ border-bottom: 1px solid ${l(n.gray[300],n.darkGray[400])};
1429
+ color: ${l(n.gray[500],n.gray[400])};
1430
+ font-size: ${r.size.xs};
1431
+ `,settingsSubButton:t`
1432
+ display: flex;
1433
+ align-items: center;
1434
+ justify-content: space-between;
1435
+ color: ${l(n.gray[700],n.gray[300])};
1436
+ font-size: ${r.size.xs};
1437
+ border-radius: ${ue.border.radius.xs};
1438
+ padding: ${ue.size[1]} ${ue.size[1]};
1439
+ cursor: pointer;
1440
+ background-color: transparent;
1441
+ border: none;
1442
+ & svg {
1443
+ color: ${l(n.gray[600],n.gray[400])};
1444
+ }
1445
+ &:hover {
1446
+ background-color: ${l(n.gray[200],n.darkGray[500])};
1447
+ }
1448
+ &:focus-visible {
1449
+ outline-offset: 2px;
1450
+ outline: 2px solid ${n.blue[800]};
1451
+ }
1452
+ &[data-checked] {
1453
+ background-color: ${l(n.purple[100],n.purple[900])};
1454
+ color: ${l(n.purple[700],n.purple[300])};
1455
+ & svg {
1456
+ color: ${l(n.purple[700],n.purple[300])};
1457
+ }
1458
+ &:hover {
1459
+ background-color: ${l(n.purple[100],n.purple[900])};
1460
+ }
1461
+ }
1462
+ `,viewToggle:t`
1463
+ border-radius: ${ue.border.radius.sm};
1464
+ background-color: ${l(n.gray[200],n.darkGray[600])};
1465
+ border: 1px solid ${l(n.gray[300],n.darkGray[200])};
1466
+ display: flex;
1467
+ padding: 0;
1468
+ font-size: ${r.size.xs};
1469
+ color: ${l(n.gray[700],n.gray[300])};
1470
+ overflow: hidden;
1471
+
1472
+ &:has(:focus-visible) {
1473
+ outline: 2px solid ${n.blue[800]};
1474
+ }
1475
+
1476
+ & .tsqd-radio-toggle {
1477
+ opacity: 0.5;
1478
+ display: flex;
1479
+ & label {
1480
+ display: flex;
1481
+ align-items: center;
1482
+ cursor: pointer;
1483
+ line-height: ${r.lineHeight.md};
1484
+ }
1485
+
1486
+ & label:hover {
1487
+ background-color: ${l(n.gray[100],n.darkGray[500])};
1488
+ }
1489
+ }
1490
+
1491
+ & > [data-checked] {
1492
+ opacity: 1;
1493
+ background-color: ${l(n.gray[100],n.darkGray[400])};
1494
+ & label:hover {
1495
+ background-color: ${l(n.gray[100],n.darkGray[400])};
1496
+ }
1497
+ }
1498
+
1499
+ & .tsqd-radio-toggle:first-child {
1500
+ & label {
1501
+ padding: 0 ${ue.size[1.5]} 0 ${ue.size[2]};
1502
+ }
1503
+ border-right: 1px solid ${l(n.gray[300],n.darkGray[200])};
1504
+ }
1505
+
1506
+ & .tsqd-radio-toggle:nth-child(2) {
1507
+ & label {
1508
+ padding: 0 ${ue.size[2]} 0 ${ue.size[1.5]};
1509
+ }
1510
+ }
1511
+ `,devtoolsEditForm:t`
1512
+ padding: ${o[2]};
1513
+ & > [data-error='true'] {
1514
+ outline: 2px solid ${l(n.red[200],n.red[800])};
1515
+ outline-offset: 2px;
1516
+ border-radius: ${s.radius.xs};
1517
+ }
1518
+ `,devtoolsEditTextarea:t`
1519
+ width: 100%;
1520
+ max-height: 500px;
1521
+ font-family: 'Fira Code', monospace;
1522
+ font-size: ${r.size.xs};
1523
+ border-radius: ${s.radius.sm};
1524
+ field-sizing: content;
1525
+ padding: ${o[2]};
1526
+ background-color: ${l(n.gray[100],n.darkGray[800])};
1527
+ color: ${l(n.gray[900],n.gray[100])};
1528
+ border: 1px solid ${l(n.gray[200],n.gray[700])};
1529
+ resize: none;
1530
+ &:focus {
1531
+ outline-offset: 2px;
1532
+ border-radius: ${s.radius.xs};
1533
+ outline: 2px solid ${l(n.blue[200],n.blue[800])};
1534
+ }
1535
+ `,devtoolsEditFormActions:t`
1536
+ display: flex;
1537
+ justify-content: space-between;
1538
+ gap: ${o[2]};
1539
+ align-items: center;
1540
+ padding-top: ${o[1]};
1541
+ font-size: ${r.size.xs};
1542
+ `,devtoolsEditFormError:t`
1543
+ color: ${l(n.red[700],n.red[500])};
1544
+ `,devtoolsEditFormActionContainer:t`
1545
+ display: flex;
1546
+ gap: ${o[2]};
1547
+ `,devtoolsEditFormAction:t`
1548
+ font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
1549
+ font-size: ${r.size.xs};
1550
+ padding: ${o[1]} ${ue.size[2]};
1551
+ display: flex;
1552
+ border-radius: ${s.radius.sm};
1553
+ background-color: ${l(n.gray[100],n.darkGray[600])};
1554
+ border: 1px solid ${l(n.gray[300],n.darkGray[400])};
1555
+ align-items: center;
1556
+ gap: ${o[2]};
1557
+ font-weight: ${r.weight.medium};
1558
+ line-height: ${r.lineHeight.xs};
1559
+ cursor: pointer;
1560
+ &:focus-visible {
1561
+ outline-offset: 2px;
1562
+ border-radius: ${s.radius.xs};
1563
+ outline: 2px solid ${n.blue[800]};
1564
+ }
1565
+ &:hover {
1566
+ background-color: ${l(n.gray[200],n.darkGray[500])};
1567
+ }
1568
+
1569
+ &:disabled {
1570
+ opacity: 0.6;
1571
+ cursor: not-allowed;
1572
+ }
1573
+ `}},qr=e=>aq("light",e),Vr=e=>aq("dark",e);Wf(["click","mousedown","input"]);var nTe=e=>{const[t,n]=IB({prefix:"TanstackQueryDevtools"}),r=j2(),o=me(()=>{const i=e.theme||t.theme_preference||FB;return i!=="system"?i:r()});return I(iC.Provider,{value:e,get children(){return I(qB,{localStore:t,setLocalStore:n,get children(){return I(sC.Provider,{value:o,get children(){return I(VOe,{localStore:t,setLocalStore:n})}})}})}})},rTe=nTe;const oTe=Object.freeze(Object.defineProperty({__proto__:null,default:rTe},Symbol.toStringTag,{value:"Module"}));var iTe=e=>{const[t,n]=IB({prefix:"TanstackQueryDevtools"}),r=j2(),o=me(()=>{const i=e.theme||t.theme_preference||FB;return i!=="system"?i:r()});return I(iC.Provider,{value:e,get children(){return I(qB,{disabled:!0,localStore:t,setLocalStore:n,get children(){return I(sC.Provider,{value:o,get children(){return I(HOe,{get children(){return I(qC,{localStore:t,setLocalStore:n,get onClose(){return e.onClose},showPanelViewOnly:!0})}})}})}})}})},aTe=iTe;const sTe=Object.freeze(Object.defineProperty({__proto__:null,default:aTe},Symbol.toStringTag,{value:"Module"}));k.AccessControlWrapper=s0e,k.Accordion=bU,k.AccordionContent=kE,k.AccordionItem=_E,k.AccordionTrigger=ME,k.Action=_d,k.Alert=EP,k.AlertDescription=OP,k.AlertDialog=mX,k.AlertDialogAction=jO,k.AlertDialogCancel=zO,k.AlertDialogContent=IO,k.AlertDialogDescription=BO,k.AlertDialogFooter=FO,k.AlertDialogHeader=LO,k.AlertDialogOverlay=dy,k.AlertDialogPortal=$O,k.AlertDialogTitle=RO,k.AlertDialogTrigger=vX,k.AlertTitle=PP,k.AppProvider=TG,k.AspectRatio=SX,k.AuthProvider=bP,k.Avatar=nT,k.AvatarFallback=oT,k.AvatarImage=rT,k.Badge=$X,k.Breadcrumb=cT,k.BreadcrumbEllipsis=gT,k.BreadcrumbItem=dT,k.BreadcrumbLink=fT,k.BreadcrumbList=uT,k.BreadcrumbPage=hT,k.BreadcrumbSeparator=pT,k.Button=txe,k.Calendar=i_,k.Card=nxe,k.CardContent=c_,k.CardDescription=l_,k.CardFooter=u_,k.CardHeader=a_,k.CardTitle=s_,k.Carousel=b_,k.CarouselContent=w_,k.CarouselItem=x_,k.CarouselNext=C_,k.CarouselPrevious=S_,k.ChartContainer=hI,k.ChartLegend=efe,k.ChartLegendContent=mI,k.ChartStyle=pI,k.ChartTooltip=Jde,k.ChartTooltipContent=gI,k.Checkbox=EI,k.Collapsible=ife,k.CollapsibleContent=sfe,k.CollapsibleTrigger=afe,k.Command=f1,k.CommandDialog=$fe,k.CommandEmpty=jI,k.CommandGroup=zI,k.CommandInput=RI,k.CommandItem=VI,k.CommandList=BI,k.CommandSeparator=qI,k.CommandShortcut=UI,k.ContextMenu=lge,k.ContextMenuCheckboxItem=D3,k.ContextMenuContent=k3,k.ContextMenuGroup=uge,k.ContextMenuItem=A3,k.ContextMenuLabel=$3,k.ContextMenuPortal=dge,k.ContextMenuRadioGroup=hge,k.ContextMenuRadioItem=N3,k.ContextMenuSeparator=I3,k.ContextMenuShortcut=L3,k.ContextMenuSub=fge,k.ContextMenuSubContent=M3,k.ContextMenuSubTrigger=_3,k.ContextMenuTrigger=cge,k.Dialog=l1,k.DialogClose=Nfe,k.DialogContent=hg,k.DialogDescription=d1,k.DialogFooter=FI,k.DialogHeader=u1,k.DialogOverlay=c1,k.DialogPortal=LI,k.DialogTitle=pg,k.DialogTrigger=Dfe,k.Drawer=Z3,k.DrawerClose=Vge,k.DrawerContent=e4,k.DrawerDescription=o4,k.DrawerFooter=n4,k.DrawerHeader=t4,k.DrawerOverlay=sx,k.DrawerPortal=J3,k.DrawerTitle=r4,k.DrawerTrigger=qge,k.DropdownMenu=dme,k.DropdownMenuCheckboxItem=I4,k.DropdownMenuContent=$4,k.DropdownMenuGroup=hme,k.DropdownMenuItem=lx,k.DropdownMenuLabel=F4,k.DropdownMenuPortal=pme,k.DropdownMenuRadioGroup=mme,k.DropdownMenuRadioItem=L4,k.DropdownMenuSeparator=R4,k.DropdownMenuShortcut=B4,k.DropdownMenuSub=gme,k.DropdownMenuSubContent=N4,k.DropdownMenuSubTrigger=D4,k.DropdownMenuTrigger=fme,k.Form=Hme,k.FormControl=hL,k.FormDescription=pL,k.FormField=Wme,k.FormItem=dL,k.FormLabel=fL,k.FormMessage=gL,k.HoverCard=nve,k.HoverCardContent=SL,k.HoverCardTrigger=rve,k.Icons=ove,k.Input=Ex,k.InputOTP=ML,k.InputOTPGroup=kL,k.InputOTPSeparator=DL,k.InputOTPSlot=AL,k.Label=xx,k.LayoutProvider=rxe,k.Menubar=dF,k.MenubarCheckboxItem=vF,k.MenubarContent=gF,k.MenubarGroup=zve,k.MenubarItem=mF,k.MenubarLabel=bF,k.MenubarMenu=jve,k.MenubarPortal=qve,k.MenubarRadioGroup=Uve,k.MenubarRadioItem=yF,k.MenubarSeparator=wF,k.MenubarShortcut=xF,k.MenubarSub=Vve,k.MenubarSubContent=pF,k.MenubarSubTrigger=hF,k.MenubarTrigger=fF,k.Modal=sye,k.ModalProvider=CP,k.NavigationMenu=d6,k.NavigationMenuContent=g6,k.NavigationMenuIndicator=m6,k.NavigationMenuItem=Oye,k.NavigationMenuLink=Tye,k.NavigationMenuList=f6,k.NavigationMenuTrigger=p6,k.NavigationMenuViewport=Yx,k.OverlayProvider=xP,k.Pagination=v6,k.PaginationContent=y6,k.PaginationEllipsis=S6,k.PaginationItem=b6,k.PaginationLink=$l,k.PaginationNext=x6,k.PaginationNextLast=C6,k.PaginationPrevious=w6,k.PaginationPreviousLast=E6,k.Popover=Kye,k.PopoverAnchor=Yye,k.PopoverContent=F6,k.PopoverTrigger=Gye,k.Progress=W6,k.ProtectedButton=d0e,k.ProtectedDropdownMenuItem=c0e,k.ProtectedLink=u0e,k.RadioGroup=u8,k.RadioGroupItem=d8,k.RequiredAuth=ixe,k.ResizableHandle=obe,k.ResizablePanel=rbe,k.ResizablePanelGroup=nbe,k.Resource=Md,k.Role=K6,k.RolesNames=a0e,k.ScrollArea=Fx,k.ScrollBar=Yg,k.Select=Bbe,k.SelectContent=SR,k.SelectGroup=jbe,k.SelectItem=ER,k.SelectLabel=CR,k.SelectScrollDownButton=pS,k.SelectScrollUpButton=hS,k.SelectSeparator=PR,k.SelectTrigger=xR,k.SelectValue=zbe,k.Separator=gS,k.Sheet=kx,k.SheetClose=Wve,k.SheetContent=zg,k.SheetDescription=Ug,k.SheetFooter=Dx,k.SheetHeader=qg,k.SheetOverlay=Ax,k.SheetPortal=SF,k.SheetTitle=Vg,k.SheetTrigger=Hve,k.Sidebar=UR,k.SidebarContent=ZR,k.SidebarFooter=XR,k.SidebarGroup=JR,k.SidebarGroupAction=t7,k.SidebarGroupContent=n7,k.SidebarGroupLabel=e7,k.SidebarHeader=YR,k.SidebarInput=GR,k.SidebarInset=KR,k.SidebarMenu=r7,k.SidebarMenuAction=a7,k.SidebarMenuBadge=s7,k.SidebarMenuButton=i7,k.SidebarMenuItem=o7,k.SidebarMenuSkeleton=l7,k.SidebarMenuSub=c7,k.SidebarMenuSubButton=d7,k.SidebarMenuSubItem=u7,k.SidebarProvider=VR,k.SidebarRail=WR,k.SidebarSeparator=QR,k.SidebarTrigger=HR,k.Skeleton=Lr,k.SkeletonBig=Kbe,k.Slider=T7,k.Switch=L7,k.Table=F7,k.TableBody=B7,k.TableCaption=U7,k.TableCell=V7,k.TableFooter=j7,k.TableHead=q7,k.TableHeader=R7,k.TableRow=z7,k.Tabs=T1e,k.TabsContent=a9,k.TabsList=o9,k.TabsTrigger=i9,k.Textarea=s9,k.ThemeProvider=mP,k.Toast=LS,k.ToastAction=M9,k.ToastClose=FS,k.ToastDescription=BS,k.ToastProvider=_9,k.ToastTitle=RS,k.ToastToaster=X1e,k.ToastViewport=IS,k.Toaster=y1e,k.Toggle=L9,k.ToggleGroup=K9,k.ToggleGroupItem=G9,k.Tooltip=BR,k.TooltipContent=wS,k.TooltipProvider=RR,k.TooltipTrigger=jR,k.UpdateAccessControlWrapper=l0e,k.apiService=DSe,k.appendFormData=mU,k.badgeVariants=iT,k.buttonVariants=Ta,k.capitalize=fU,k.cn=q,k.convertToHourMinuteString=hU,k.debounce=vU,k.formatDate=gU,k.formatErrorToList=pU,k.handleEditCache=_G,k.handleSingleEditCache=MG,k.navigationMenuTriggerStyle=h6,k.queryClient=lh,k.reducer=A9,k.rules=G6,k.throttle=yU,k.toast=D9,k.toggleVariants=VS,k.useAccessControl=tm,k.useAuth=Zv,k.useFormField=Al,k.useIsMobile=zR,k.useLayout=oxe,k.useModal=PG,k.useOverlay=EG,k.usePathname=axe,k.useRouter=sxe,k.useSidebar=Id,k.useTheme=yG,k.useToast=N9,k.userCan=Y6,k.withAccessControl=nm,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})}));