https://sanctum.so/_next/static/chunks/3911-227708c0a0333294.js?dpl=dpl_HKRv5heV54pTAjYYkbhxtdkjsNnq
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3911],{5099:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(6121);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),l=e=>{let t=i(e);return t.charAt(0).toUpperCase()+t.slice(1)},a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()},u=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var s={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"};let c=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:c="",children:d,iconNode:f,...p}=e;return(0,r.createElement)("svg",{ref:t,...s,width:o,height:o,stroke:n,strokeWidth:l?24*Number(i)/Number(o):i,className:a("lucide",c),...!d&&!u(p)&&{"aria-hidden":"true"},...p},[...f.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])}),d=(e,t)=>{let n=(0,r.forwardRef)((n,i)=>{let{className:u,...s}=n;return(0,r.createElement)(c,{ref:i,iconNode:t,className:a("lucide-".concat(o(l(e))),"lucide-".concat(e),u),...s})});return n.displayName=l(e),n}},5667:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(5099).Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5955:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(5099).Z)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},2554:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(7811).Z)("ArrowDown01Icon",{"bulk.rounded":[["path",{opacity:"0.4",d:"M18.593,8.195 C19.038,8.522 19.133,9.148 18.805,9.593 C18.551,9.938 18.296,10.267 18.073,10.553 C17.628,11.124 17.014,11.888 16.348,12.656 C15.686,13.418 14.952,14.206 14.267,14.812 C13.925,15.114 13.572,15.391 13.228,15.599 C12.911,15.79 12.476,16 12,16 C11.524,16 11.088,15.79 10.772,15.599 C10.428,15.391 10.075,15.114 9.733,14.812 C9.048,14.206 8.314,13.418 7.652,12.656 C6.985,11.888 6.372,11.124 5.927,10.553 C5.703,10.267 5.449,9.938 5.195,9.593 C4.867,9.148 4.962,8.522 5.407,8.195 C5.586,8.063 5.794,8 6,8 L12,8 L18,8 C18.206,8 18.414,8.063 18.593,8.195 Z",fill:"currentColor",key:"k0"}],["path",{d:"M18.593,8.195 C19.038,8.522 19.133,9.148 18.805,9.593 C18.551,9.938 18.296,10.267 18.073,10.553 C17.628,11.124 17.014,11.888 16.348,12.656 C15.686,13.418 14.952,14.206 14.267,14.812 C13.925,15.114 13.572,15.391 13.228,15.599 C12.911,15.79 12.476,16 12,16 C11.524,16 11.088,15.79 10.772,15.599 C10.428,15.391 10.075,15.114 9.733,14.812 C9.151,14.297 8.533,13.651 7.954,13 L13,8 L18,8 C18.206,8 18.414,8.063 18.593,8.195 Z",fill:"currentColor",key:"k1"}]],"duotone.rounded":[["path",{opacity:"0.4",d:"M18.604,9.445 Q13.96,15.75 12,15.75 Q10.04,15.75 5.396,9.445 Q5.212,9.195 5.258,8.887 Q5.305,8.58 5.555,8.396 Q5.805,8.212 6.113,8.258 Q6.42,8.305 6.604,8.555 Q10.798,14.25 12,14.25 Q13.202,14.25 17.396,8.555 Q17.58,8.305 17.887,8.259 Q18.195,8.212 18.445,8.396 Q18.695,8.58 18.742,8.888 Q18.788,9.195 18.604,9.445 Z",fill:"currentColor",key:"k0"}]],"solid.rounded":[["path",{d:"M18.593,8.195 C19.038,8.522 19.133,9.148 18.805,9.593 C18.551,9.938 18.296,10.267 18.073,10.553 C17.628,11.124 17.014,11.888 16.348,12.656 C15.686,13.418 14.952,14.206 14.267,14.812 C13.925,15.114 13.572,15.391 13.228,15.599 C12.911,15.79 12.476,16 12,16 C11.524,16 11.088,15.79 10.772,15.599 C10.428,15.391 10.075,15.114 9.733,14.812 C9.048,14.206 8.314,13.418 7.652,12.656 C6.985,11.888 6.372,11.124 5.927,10.553 C5.703,10.267 5.449,9.938 5.195,9.593 C4.867,9.148 4.962,8.522 5.407,8.195 C5.586,8.063 5.794,8 6,8 L12,8 L18,8 C18.206,8 18.414,8.063 18.593,8.195 Z",fill:"currentColor",key:"k0"}]],"solid.sharp":[["path",{d:"M20.002,7.5 L4.002,7.5 L12.002,16.5 L20.002,7.5 Z",fill:"currentColor",key:"k0"}]],"solid.standard":[["path",{d:"M6,8.25 L18,8.25 C18.303,8.25 18.577,8.433 18.693,8.713 C18.809,8.993 18.745,9.316 18.53,9.53 L12.53,15.53 C12.237,15.823 11.762,15.823 11.469,15.53 L5.469,9.53 C5.255,9.316 5.191,8.993 5.307,8.713 C5.423,8.433 5.696,8.25 6,8.25 Z",fill:"currentColor",key:"k0"}]],"stroke.rounded":[["path",{d:"M18.604,9.445 Q13.96,15.75 12,15.75 Q10.04,15.75 5.396,9.445 Q5.212,9.195 5.258,8.887 Q5.305,8.58 5.555,8.396 Q5.805,8.212 6.113,8.258 Q6.42,8.305 6.604,8.555 Q10.798,14.25 12,14.25 Q13.202,14.25 17.396,8.555 Q17.58,8.305 17.887,8.259 Q18.195,8.212 18.445,8.396 Q18.695,8.58 18.742,8.888 Q18.788,9.195 18.604,9.445 Z",fill:"currentColor",key:"k0"}]],"stroke.sharp":[["path",{d:"M6.53,8.47 L12,13.939 L17.469,8.47 L18.53,9.53 L12,16.061 L5.469,9.53 Z",fill:"currentColor",key:"k0"}]],"stroke.standard":[["path",{d:"M6.53,8.47 L12,13.939 L17.469,8.47 Q17.689,8.25 18,8.25 Q18.31,8.25 18.53,8.47 Q18.75,8.689 18.75,9 Q18.75,9.311 18.53,9.53 L12.53,15.53 Q12.31,15.75 12,15.75 Q11.689,15.75 11.469,15.53 L5.469,9.53 Q5.25,9.311 5.25,9 Q5.25,8.689 5.469,8.47 Q5.689,8.25 6,8.25 Q6.31,8.25 6.53,8.47 Z",fill:"currentColor",key:"k0"}]],"twotone.rounded":[["path",{opacity:"0.4",d:"M18.604,9.445 Q13.96,15.75 12,15.75 Q10.04,15.75 5.396,9.445 Q5.212,9.195 5.258,8.887 Q5.305,8.58 5.555,8.396 Q5.805,8.212 6.113,8.258 Q6.42,8.305 6.604,8.555 Q10.798,14.25 12,14.25 Q13.202,14.25 17.396,8.555 Q17.58,8.305 17.887,8.259 Q18.195,8.212 18.445,8.396 Q18.695,8.58 18.742,8.888 Q18.788,9.195 18.604,9.445 Z",fill:"currentColor",key:"k0"}],["path",{d:"M12,14.25 Q13.202,14.25 17.396,8.555 Q17.58,8.305 17.887,8.259 Q18.195,8.212 18.445,8.396 Q18.695,8.58 18.742,8.888 Q18.788,9.195 18.604,9.445 Q13.96,15.75 12,15.75 Q11.689,15.75 11.47,15.53 Q11.25,15.311 11.25,15 Q11.25,14.689 11.47,14.47 Q11.689,14.25 12,14.25 Z",fill:"currentColor",key:"k1"}]]})},2211:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(7811).Z)("ArrowUpRight03Icon",{"bulk.rounded":[["path",{opacity:"0.4",d:"M17.207,6.793 C17.598,7.183 17.598,7.817 17.207,8.207 L6.707,18.707 C6.317,19.098 5.683,19.098 5.293,18.707 C4.902,18.317 4.902,17.683 5.293,17.293 L15.793,6.793 C16.183,6.402 16.817,6.402 17.207,6.793 Z",fill:"currentColor",key:"k0"}],["path",{d:"M16.8,5.397 C17.182,5.508 17.642,5.689 17.976,6.024 C18.311,6.359 18.492,6.818 18.603,7.2 C18.723,7.611 18.805,8.086 18.863,8.578 C18.978,9.565 19.007,10.733 18.999,11.831 C18.99,12.935 18.942,13.997 18.897,14.781 C18.875,15.173 18.809,16.083 18.809,16.083 C18.762,16.634
118.278,17.043 17.728,16.997 C17.178,16.95 16.769,16.466 16.816,15.916 C16.816,15.916 16.879,15.047 16.901,14.666 C16.945,13.902 16.99,12.876 16.999,11.816 C17.007,10.749 16.977,9.676 16.876,8.81 C16.825,8.376 16.76,8.022 16.683,7.76 C16.619,7.495 16.361,7.354 16.24,7.317 C15.978,7.24 15.624,7.175 15.19,7.124 C14.324,7.023 13.251,6.993 12.184,7.001 C11.124,7.01 10.098,7.055 9.334,7.099 C8.953,7.121 8.085,7.184 8.085,7.184 C7.535,7.231 7.05,6.822 7.004,6.272 C6.957,5.722 7.366,5.238 7.916,5.191 C7.916,5.191 8.827,5.125 9.219,5.103 C10.003,5.058 11.065,5.01 12.169,5.001 C13.267,4.993 14.435,5.022 15.422,5.137 C15.914,5.195 16.389,5.277 16.8,5.397 Z",fill:"currentColor",key:"k1"}]],"duotone.rounded":[["path",{d:"M17.03,8.03 L6.53,18.53 Q6.311,18.75 6,18.75 Q5.689,18.75 5.47,18.53 Q5.25,18.311 5.25,18 Q5.25,17.689 5.47,17.47 L15.97,6.97 Q16.189,6.75 16.5,6.75 Q16.811,6.75 17.03,6.97 Q17.25,7.189 17.25,7.5 Q17.25,7.811 17.03,8.03 Z",fill:"currentColor",key:"k0"}],["path",{d:"M7.937,5.441 Q16.332,4.733 17.8,6.2 Q19.267,7.668 18.559,16.063 Q18.533,16.373 18.296,16.573 Q18.059,16.773 17.749,16.747 Q17.439,16.721 17.239,16.484 Q17.039,16.247 17.065,15.937 Q17.714,8.236 16.739,7.261 Q15.764,6.286 8.063,6.935 Q7.753,6.961 7.516,6.761 Q7.279,6.56 7.253,6.251 Q7.227,5.941 7.427,5.704 Q7.627,5.467 7.937,5.441 Z",fill:"currentColor",key:"k1"}]],"solid.rounded":[["path",{d:"M17.976,6.024 C18.311,6.359 18.492,6.818 18.603,7.2 C18.723,7.611 18.805,8.086 18.863,8.578 C18.978,9.565 19.007,10.733 18.999,11.831 C18.99,12.936 18.942,13.997 18.897,14.781 C18.875,15.173 18.809,16.083 18.809,16.083 C18.762,16.634 18.278,17.043 17.728,16.997 C17.178,16.95 16.769,16.466 16.816,15.916 C16.816,15.916 16.879,15.047 16.901,14.666 C16.945,13.903 16.99,12.876 16.999,11.816 C17.007,10.749 16.977,9.676 16.876,8.81 C16.866,8.727 16.856,8.646 16.845,8.569 L6.707,18.707 C6.317,19.098 5.683,19.098 5.293,18.707 C4.902,18.317 4.902,17.683 5.293,17.293 L15.431,7.155 C15.354,7.144 15.273,7.134 15.19,7.124 C14.324,7.023 13.251,6.993 12.184,7.001 C11.124,7.01 10.097,7.055 9.334,7.099 C8.953,7.121 8.085,7.184 8.085,7.184 C7.535,7.231 7.05,6.822 7.004,6.272 C6.957,5.722 7.366,5.238 7.916,5.191 C7.916,5.191 8.827,5.125 9.219,5.103 C10.003,5.058 11.065,5.01 12.169,5.001 C13.267,4.993 14.435,5.022 15.422,5.137 C15.914,5.195 16.389,5.277 16.801,5.397 C17.182,5.508 17.642,5.689 17.976,6.024 Z",fill:"currentColor",key:"k0"}]],"solid.sharp":[["path",{d:"M18.5,6.914 L6.414,19 L5,17.586 L17.086,5.5 L18.5,6.914 Z",fill:"currentColor",key:"k0"}],["path",{d:"M7,5 L19,5 L19,17 L17,17 L17,7 L7,7 Z",fill:"currentColor",key:"k1"}]],"solid.standard":[["path",{d:"M8,5 L18,5 C18.552,5 19,5.448 19,6 L19,16 C19,16.552 18.552,17 18,17 C17.448,17 17,16.552 17,16 L17,8.414 L6.707,18.707 C6.317,19.098 5.683,19.098 5.293,18.707 C4.902,18.317 4.902,17.683 5.293,17.293 L15.586,7 L8,7 C7.448,7 7,6.552 7,6 C7,5.448 7.448,5 8,5 Z",fill:"currentColor",key:"k0"}]],"stroke.rounded":[["path",{d:"M17.03,8.03 L6.53,18.53 Q6.311,18.75 6,18.75 Q5.689,18.75 5.47,18.53 Q5.25,18.311 5.25,18 Q5.25,17.689 5.47,17.47 L15.97,6.97 Q16.189,6.75 16.5,6.75 Q16.811,6.75 17.03,6.97 Q17.25,7.189 17.25,7.5 Q17.25,7.811 17.03,8.03 Z",fill:"currentColor",key:"k0"}],["path",{d:"M7.937,5.441 Q16.332,4.733 17.8,6.2 Q19.267,7.668 18.559,16.063 Q18.533,16.373 18.296,16.573 Q18.059,16.773 17.749,16.747 Q17.439,16.721 17.239,16.484 Q17.039,16.247 17.065,15.937 Q17.714,8.236 16.739,7.261 Q15.764,6.286 8.063,6.935 Q7.753,6.961 7.516,6.761 Q7.279,6.56 7.253,6.251 Q7.227,5.941 7.427,5.704 Q7.627,5.467 7.937,5.441 Z",fill:"currentColor",key:"k1"}]],"stroke.sharp":[["path",{d:"M18.03,7.03 L6,19.061 L4.939,18 L17.5,5.439 L18.561,6.5 Z",fill:"currentColor",key:"k0"}],["path",{d:"M18.75,5.25 L18.75,16.75 L17.25,16.75 L17.25,6.75 L7.25,6.75 L7.25,5.25 L18.75,5.25 Z",fill:"currentColor",key:"k1"}]],"stroke.standard":[["path",{d:"M18.03,7.03 L6.53,18.53 Q6.311,18.75 6,18.75 Q5.689,18.75 5.47,18.53 Q5.25,18.311 5.25,18 Q5.25,17.689 5.47,17.47 L16.97,5.97 Q17.189,5.75 17.5,5.75 Q17.811,5.75 18.03,5.97 Q18.25,6.189 18.25,6.5 Q18.25,6.811 18.03,7.03 Z",fill:"currentColor",key:"k0"}],["path",{d:"M8,5.25 L18,5.25 Q18.311,5.25 18.53,5.47 Q18.75,5.689 18.75,6 L18.75,16 Q18.75,16.311 18.53,16.53 Q18.311,16.75 18,16.75 Q17.689,16.75 17.47,16.53 Q17.25,16.311 17.25,16 L17.25,6.75 L8,6.75 Q7.689,6.75 7.47,6.53 Q7.25,6.311 7.25,6 Q7.25,5.689 7.47,5.47 Q7.689,5.25 8,5.25 Z",fill:"currentColor",key:"k1"}]],"twotone.rounded":[["path",{opacity:"0.4",d:"M17.03,8.03 L6.53,18.53 Q6.311,18.75 6,18.75 Q5.689,18.75 5.47,18.53 Q5.25,18.311 5.25,18 Q5.25,17.689 5.47,17.47 L15.97,6.97 Q16.189,6.75 16.5,6.75 Q16.811,6.75 17.03,6.97 Q17.25,7.189 17.25,7.5 Q17.25,7.811 17.03,8.03 Z",fill:"currentColor",key:"k0"}],["path",{d:"M7.937,5.441 Q16.332,4.733 17.8,6.2 Q19.267,7.668 18.559,16.063 Q18.533,16.373 18.296,16.573 Q18.059,16.773 17.749,16.747 Q17.439,16.721 17.239,16.484 Q17.039,16.247 17.065,15.937 Q17.714,8.236 16.739,7.261 Q15.764,6.286 8.063,6.935 Q7.753,6.9
161 7.516,6.761 Q7.279,6.56 7.253,6.251 Q7.227,5.941 7.427,5.704 Q7.627,5.467 7.937,5.441 Z",fill:"currentColor",key:"k1"}]]})},3389:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(7811).Z)("Tick02Icon",{"bulk.rounded":[["path",{opacity:"0.4",d:"M4.29289 13.2929C4.68342 12.9024 5.31658 12.9024 5.70711 13.2929L9.20711 16.7929C9.59763 17.1834 9.59763 17.8166 9.20711 18.2071C8.81658 18.5976 8.18342 18.5976 7.79289 18.2071L4.29289 14.7071C3.90237 14.3166 3.90237 13.6834 4.29289 13.2929Z",fill:"currentColor",fillRule:"evenodd",key:"k0"}],["path",{d:"M19.6905 5.77665C20.09 6.15799 20.1047 6.79098 19.7234 7.19048L9.22336 18.1905C8.84202 18.59 8.20902 18.6047 7.80953 18.2234C7.41003 17.842 7.39531 17.209 7.77665 16.8095L18.2766 5.80953C18.658 5.41003 19.291 5.39531 19.6905 5.77665Z",fill:"currentColor",fillRule:"evenodd",key:"k1"}]],"duotone.rounded":[["path",{opacity:"0.4",d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"k0"}]],"solid.rounded":[["path",{d:"M19.6905 5.77665C20.09 6.15799 20.1047 6.79098 19.7234 7.19048L9.22336 18.1905C9.03745 18.3852 8.78086 18.4968 8.51163 18.4999C8.2424 18.5031 7.98328 18.3975 7.79289 18.2071L4.29289 14.7071C3.90237 14.3166 3.90237 13.6834 4.29289 13.2929C4.68342 12.9024 5.31658 12.9024 5.70711 13.2929L8.48336 16.0692L18.2766 5.80953C18.658 5.41003 19.291 5.39531 19.6905 5.77665Z",fill:"currentColor",fillRule:"evenodd",key:"k0"}]],"solid.sharp":[["path",{d:"M20.5 6.39644L8.48123 19L3.5 14.0138L4.92866 12.5838L8.44762 16.1062L19.0385 5L20.5 6.39644Z",fill:"currentColor",fillRule:"evenodd",key:"k0"}]],"solid.standard":[["path",{d:"M20.1757 5.26285C20.5828 5.63604 20.6103 6.26861 20.2372 6.67573L9.23715 18.6757C9.05285 18.8768 8.79441 18.9938 8.52172 18.9998C8.24903 19.0057 7.98576 18.9 7.79289 18.7071L3.29289 14.2071C2.90237 13.8166 2.90237 13.1834 3.29289 12.7929C3.68342 12.4024 4.31658 12.4024 4.70711 12.7929L8.46859 16.5544L18.7628 5.32428C19.136 4.91716 19.7686 4.88966 20.1757 5.26285Z",fill:"currentColor",fillRule:"evenodd",key:"k0"}]],"stroke.rounded":[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"k0"}]],"stroke.sharp":[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"1.5",key:"k0"}]],"stroke.standard":[["path",{d:"M4 13.5L8.5 18L19.5 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"k0"}]],"twotone.rounded":[["path",{opacity:"0.4",d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"k0"}],["path",{d:"M8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"k1"}]]})},2:function(e,t,n){n.d(t,{gm:function(){return i}});var r=n(6121);n(1996);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},2870:function(e,t,n){let r;n.d(t,{oC:function(){return nG},VY:function(){return nz},ZA:function(){return nH},ck:function(){return nU},wU:function(){return n$},__:function(){return nB},Uv:function(){return nK},Ee:function(){return nX},Rk:function(){return nY},fC:function(){return nV},Z0:function(){return nq},Tr:function(){return nJ},tu:function(){return n0},fF:function(){return n1},xz:function(){return nZ}});var o=n(6121),i=n(3965),l=n(4708),a=n(141),u=n(2213),s=n(131),c=n(4615),d=n(2),f=n(4126),p=n(7323),v=n(3921),h=n(6621);let m=["top","right","bottom","left"],g=Math.min,w=Math.max,y=Math.round,x=Math.floor,C=e=>({x:e,y:e}
1),b={left:"right",right:"left",bottom:"top",top:"bottom"};function M(e,t){return"function"==typeof e?e(t):e}function k(e){return e.split("-")[0]}function R(e){return e.split("-")[1]}function L(e){return"x"===e?"y":"x"}function j(e){return"y"===e?"height":"width"}function E(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function Q(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let T=["left","right"],A=["right","left"],D=["top","bottom"],P=["bottom","top"];function S(e){let t=k(e);return b[t]+e.slice(t.length)}function N(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function O(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function _(e,t,n){let r,{reference:o,floating:i}=e,l=E(t),a=L(E(t)),u=j(a),s=k(t),c="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(s){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(R(t)){case"start":r[a]-=p*(n&&c?-1:1);break;case"end":r[a]+=p*(n&&c?-1:1)}return r}async function I(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=M(t,e),v=N(p),h=a[f?"floating"===d?"reference":"floating":d],m=O(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:c,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=O(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:u}):g);return{top:(m.top-x.top+v.top)/y.y,bottom:(x.bottom-m.bottom+v.bottom)/y.y,left:(m.left-x.left+v.left)/y.x,right:(x.right-m.right+v.right)/y.x}}let F=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:I},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=_(s,r,u),f=r,p=0,v={};for(let n=0;n<i.length;n++){let h=i[n];if(!h)continue;let{name:m,fn:g}=h,{x:w,y:y,data:x,reset:C}=await g({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:v,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=w?w:c,d=null!=y?y:d,v[m]={...v[m],...x},C&&p<50&&(p++,"object"==typeof C&&(C.placement&&(f=C.placement),C.rects&&(s=!0===C.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:c,y:d}=_(s,f,u)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:v}};function W(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function V(e){return m.some(t=>e[t]>=0)}let Z=new Set(["left","top"]);async function K(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=k(n),a=R(n),u="y"===E(n),s=Z.has(l)?-1:1,c=i&&u?-1:1,d=M(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),u?{x:p*c,y:f*s}:{x:f*s,y:p*c}}function z(){return"undefined"!=typeof window}function H(e){return G(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function U(e){var t;return null==(t=(G(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function G(e){return!!z()&&(e instanceof Node||e instanceof B(e).Node)}function X(e){return!!z()&&(e instanceof Element||e instanceof B(e).Element)}function Y(e){return!!z()&&(e instanceof HTMLElement||e instanceof B(e).HTMLElement)}function $(e){return!!z()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof B(e).ShadowRoot)}function q(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=el(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function J(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ee=/transform|translate|scale|rotate|perspective|filter/,et=/paint|layout|strict|content/,en=e=>!!e&&"none"!==e;function er(e){let t=X(e)?el(e):e;return en(t.transform)||en(t.translate)||en(t.scale)||en(t.rotate)||en(t.perspective)||!eo()&&(en(t.backdropFilter)||en(t.filter))||ee.test(t.willChange||"")||et.test(t.contain||"")}function eo(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function ei(e){return/^(html|body|#document)$/.test(H(e))}function el(e){return B(e).getComputedStyle(e)}function ea(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eu(e){if("html"===H(e))return e;let t=e.assignedSlot||e.parentNode||$(e)&&e.host||U(e);return $(t)?t.host:t}
1function es(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eu(t);return ei(n)?t.ownerDocument?t.ownerDocument.body:t.body:Y(n)&&q(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=B(o);if(!i)return t.concat(o,es(o,[],n));{let e=ec(l);return t.concat(l,l.visualViewport||[],q(o)?o:[],e&&n?es(e):[])}}function ec(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ed(e){let t=el(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Y(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=y(n)!==i||y(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function ef(e){return X(e)?e:e.contextElement}function ep(e){let t=ef(e);if(!Y(t))return C(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ed(t),l=(i?y(n.width):n.width)/r,a=(i?y(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let ev=C(0);function eh(e){let t=B(e);return eo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ev}function em(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ef(e),a=C(1);t&&(r?X(r)&&(a=ep(r)):a=ep(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===B(l))&&o)?eh(l):C(0),s=(i.left+u.x)/a.x,c=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l){let e=B(l),t=r&&X(r)?B(r):r,n=e,o=ec(n);for(;o&&r&&t!==n;){let e=ep(o),t=o.getBoundingClientRect(),r=el(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,f*=e.y,s+=i,c+=l,o=ec(n=B(o))}}return O({width:d,height:f,x:s,y:c})}function eg(e,t){let n=ea(e).scrollLeft;return t?t.left+n:em(U(e)).left+n}function ew(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eg(e,n),y:n.top+t.scrollTop}}function ey(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=B(e),r=U(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=eo();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let s=eg(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=U(e),n=ea(e),r=e.ownerDocument.body,o=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+eg(e),a=-n.scrollTop;return"rtl"===el(r).direction&&(l+=w(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}(U(e));else if(X(t))r=function(e,t){let n=em(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Y(e)?ep(e):C(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=eh(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return O(r)}function ex(e){return"static"===el(e).position}function eC(e,t){if(!Y(e)||"fixed"===el(e).position)return null;if(t)return t(e);let n=e.offsetParent;return U(e)===n&&(n=n.ownerDocument.body),n}function eb(e,t){var n;let r=B(e);if(J(e))return r;if(!Y(e)){let t=eu(e);for(;t&&!ei(t);){if(X(t)&&!ex(t))return t;t=eu(t)}return r}let o=eC(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(H(n)))&&ex(o);)o=eC(o,t);return o&&ei(o)&&ex(o)&&!er(o)?r:o||function(e){let t=eu(e);for(;Y(t)&&!ei(t);){if(er(t))return t;if(J(t))break;t=eu(t)}return null}(e)||r}let eM=async function(e){let t=this.getOffsetParent||eb,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=Y(t),o=U(t),i="fixed"===n,l=em(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=C(0);if(r||!r&&!i){if(("body"!==H(t)||q(o))&&(a=ea(t)),r){let e=em(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=eg(o))}i&&!r&&o&&(u.x=eg(o));let s=!o||r||i?C(0):ew(o,a);return{x:l.left+a.scrollLeft-u.x-s.x,y:l.top+a.scrollTop-u.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ek={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=U(r),a=!!t&&J(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},s=C(1),c=C(0),d=Y(r);
1if((d||!d&&!i)&&(("body"!==H(r)||q(l))&&(u=ea(r)),d)){let e=em(r);s=ep(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||i?C(0):ew(l,u);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+f.x,y:n.y*s.y-u.scrollTop*s.y+c.y+f.y}},getDocumentElement:U,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?J(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=es(e,[],!1).filter(e=>X(e)&&"body"!==H(e)),o=null,i="fixed"===el(e).position,l=i?eu(e):e;for(;X(l)&&!ei(l);){let t=el(l),n=er(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||q(l)&&!n&&function e(t,n){let r=eu(t);return!(r===n||!X(r)||ei(r))&&("fixed"===el(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=eu(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=ey(t,i[0],o),a=l.top,u=l.right,s=l.bottom,c=l.left;for(let e=1;e<i.length;e++){let n=ey(t,i[e],o);a=w(n.top,a),u=g(n.right,u),s=g(n.bottom,s),c=w(n.left,c)}return{width:u-c,height:s-a,x:c,y:a}},getOffsetParent:eb,getElementRects:eM,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ed(e);return{width:t,height:n}},getScale:ep,isElement:X,isRTL:function(e){return"rtl"===el(e).direction}};function eR(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eL=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:s,padding:c=0}=M(e,t)||{};if(null==s)return{};let d=N(c),f={x:n,y:r},p=L(E(o)),v=j(p),h=await l.getDimensions(s),m="y"===p,y=m?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[p]-f[p]-i.floating[v],C=f[p]-i.reference[p],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s)),k=b?b[y]:0;k&&await (null==l.isElement?void 0:l.isElement(b))||(k=a.floating[y]||i.floating[v]);let Q=k/2-h[v]/2-1,T=g(d[m?"top":"left"],Q),A=g(d[m?"bottom":"right"],Q),D=k-h[v]-A,P=k/2-h[v]/2+(x/2-C/2),S=w(T,g(P,D)),O=!u.arrow&&null!=R(o)&&P!==S&&i.reference[v]/2-(P<T?T:A)-h[v]/2<0,_=O?P<T?P-T:P-D:0;return{[p]:f[p]+_,data:{[p]:S,centerOffset:P-S-_,...O&&{alignmentOffset:_}},reset:O}}}),ej=(e,t,n)=>{let r=new Map,o={platform:ek,...n},i={...o.platform,_c:r};return F(e,t,{...o,platform:i})};var eE=n(9149),eQ="undefined"!=typeof document?o.useLayoutEffect:function(){};function eT(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eT(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eT(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eA(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eD(e,t){let n=eA(e);return Math.round(t*n)/n}function eP(e){let t=o.useRef(e);return eQ(()=>{t.current=e}),t}let eS=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eL({element:n.current,padding:r}).fn(t):{}:n?eL({element:n,padding:r}).fn(t):{}}}),eN=(e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await K(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,t]}},eO=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:l=!0,crossAxis:a=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=M(n,e),c={x:t,y:r},d=await i.detectOverflow(e,s),f=E(k(o)),p=L(f),v=c[p],h=c[f];
1if(l){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=v+d[e],r=v-d[t];v=w(n,g(v,r))}if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+d[e],r=h-d[t];h=w(n,g(h,r))}let m=u.fn({...e,[p]:v,[f]:h});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[p]:l,[f]:a}}}}});return{name:r.name,fn:r.fn,options:[e,t]}},e_=(e,t)=>{var n;return{fn:(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=M(n,e),c={x:t,y:r},d=E(o),f=L(d),p=c[f],v=c[d],h=M(a,e),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var g,w;let e="y"===f?"width":"height",t=Z.has(k(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=l.offset)?void 0:g[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(w=l.offset)?void 0:w[d])||0)-(t?m.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[f]:p,[d]:v}}}).fn,options:[e,t]}},eI=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:v=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:w=!0,...y}=M(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let x=k(a),C=E(c),b=k(c)===c,N=await (null==d.isRTL?void 0:d.isRTL(f.floating)),O=h||(b||!w?[S(c)]:function(e){let t=S(e);return[Q(e),t,Q(t)]}(c)),_="none"!==g;!h&&_&&O.push(...function(e,t,n,r){let o=R(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?A:T;return t?T:A;case"left":case"right":return t?D:P;default:return[]}}(k(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Q)))),i}(c,w,g,N));let I=[c,...O],F=await d.detectOverflow(e,y),W=[],V=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&W.push(F[x]),v){let e=function(e,t,n){void 0===n&&(n=!1);let r=R(e),o=L(E(e)),i=j(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=S(l)),[l,S(l)]}(a,s,N);W.push(F[e[0]],F[e[1]])}if(V=[...V,{placement:a,overflows:W}],!W.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=I[e];if(t&&(!("alignment"===v&&C!==E(t))||V.every(e=>E(e.placement)!==C||e.overflows[0]>0)))return{data:{index:e,overflows:V},reset:{placement:t}};let n=null==(i=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(l=V.filter(e=>{if(_){let t=E(e.placement);return t===C||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}},eF=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,i;let{placement:l,rects:a,platform:u,elements:s}=e,{apply:c=()=>{},...d}=M(n,e),f=await u.detectOverflow(e,d),p=k(l),v=R(l),h="y"===E(l),{width:m,height:y}=a.floating;"top"===p||"bottom"===p?(o=p,i=v===(await (null==u.isRTL?void 0:u.isRTL(s.floating))?"start":"end")?"left":"right"):(i=p,o="end"===v?"top":"bottom");let x=y-f.top-f.bottom,C=m-f.left-f.right,b=g(y-f[o],x),L=g(m-f[i],C),j=!e.middlewareData.shift,Q=b,T=L;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(T=C),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(Q=x),j&&!v){let e=w(f.left,0),t=w(f.right,0),n=w(f.top,0),r=w(f.bottom,0);h?T=m-2*(0!==e||0!==t?e+t:w(f.left,f.right)):Q=y-2*(0!==n||0!==r?n+r:w(f.top,f.bottom))}await c({...e,availableWidth:T,availableHeight:Q});let A=await u.getDimensions(s.floating);return m!==A.width||y!==A.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,t]}},eW=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t,platform:r}=e,{strategy:o="referenceHidden",...i}=M(n,e);switch(o){case"referenceHidden":{let n=W(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:V(n)}}}case"escaped":{let n=W(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:V(n)}}}default:return{}}}});return{name:r.name,fn:r.fn,options:[e,t]}},eV=(e,t)=>{let n=eS(e);return{name:n.name,fn:n.fn,options:[e,t]}};var eZ=n(1996),eK=o.forwardRef((e,t)=>
1{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eZ.jsx)(s.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eZ.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eK.displayName="Arrow";var ez=n(8149),eH=n(2407),eB="Popper",[eU,eG]=(0,a.b)(eB),[eX,eY]=eU(eB),e$=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,eZ.jsx)(eX,{scope:t,anchor:r,onAnchorChange:i,children:n})};e$.displayName=eB;var eq="PopperAnchor",eJ=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=eY(eq,n),u=o.useRef(null),c=(0,l.e)(t,u),d=o.useRef(null);return o.useEffect(()=>{let e=d.current;d.current=(null==r?void 0:r.current)||u.current,e!==d.current&&a.onAnchorChange(d.current)}),r?null:(0,eZ.jsx)(s.WV.div,{...i,ref:c})});eJ.displayName=eq;var e1="PopperContent",[e0,e5]=eU(e1),e8=o.forwardRef((e,t)=>{var n,r,i,a,u,c,d,f;let{__scopePopper:p,side:v="bottom",sideOffset:h=0,align:m="center",alignOffset:y=0,arrowPadding:C=0,avoidCollisions:b=!0,collisionBoundary:M=[],collisionPadding:k=0,sticky:R="partial",hideWhenDetached:L=!1,updatePositionStrategy:j="optimized",onPlaced:E,...Q}=e,T=eY(e1,p),[A,D]=o.useState(null),P=(0,l.e)(t,e=>D(e)),[S,N]=o.useState(null),O=function(e){let[t,n]=o.useState(void 0);return(0,eH.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(S),_=null!==(d=null==O?void 0:O.width)&&void 0!==d?d:0,I=null!==(f=null==O?void 0:O.height)&&void 0!==f?f:0,F="number"==typeof k?k:{top:0,right:0,bottom:0,left:0,...k},W=Array.isArray(M)?M:[M],V=W.length>0,Z={padding:F,boundary:W.filter(e2),altBoundary:V},{refs:K,floatingStyles:z,placement:H,isPositioned:B,middlewareData:G}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[d,f]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=o.useState(r);eT(p,r)||v(r);let[h,m]=o.useState(null),[g,w]=o.useState(null),y=o.useCallback(e=>{e!==M.current&&(M.current=e,m(e))},[]),x=o.useCallback(e=>{e!==k.current&&(k.current=e,w(e))},[]),C=l||h,b=a||g,M=o.useRef(null),k=o.useRef(null),R=o.useRef(d),L=null!=s,j=eP(s),E=eP(i),Q=eP(c),T=o.useCallback(()=>{if(!M.current||!k.current)return;let e={placement:t,strategy:n,middleware:p};E.current&&(e.platform=E.current),ej(M.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==Q.current};A.current&&!eT(R.current,t)&&(R.current=t,eE.flushSync(()=>{f(t)}))})},[p,t,n,E,Q]);eQ(()=>{!1===c&&R.current.isPositioned&&(R.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let A=o.useRef(!1);eQ(()=>(A.current=!0,()=>{A.current=!1}),[]),eQ(()=>{if(C&&(M.current=C),b&&(k.current=b),C&&b){if(j.current)return j.current(C,b,T);T()}},[C,b,T,j,L]);let D=o.useMemo(()=>({reference:M,floating:k,setReference:y,setFloating:x}),[y,x]),P=o.useMemo(()=>({reference:C,floating:b}),[C,b]),S=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=eD(P.floating,d.x),r=eD(P.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eA(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,P.floating,d.x,d.y]);return o.useMemo(()=>({...d,update:T,refs:D,elements:P,floatingStyles:S}),[d,T,D,P,S])}({strategy:"fixed",placement:v+("center"!==m?"-"+m:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=ef(e),d=i||l?[...c?es(c):[],...t?es(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=c&&u?function(e,t){let n,r=null,o=U(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),i();let s=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=s;if(a||t(),!f||!p)return;let v=x(d),h=x(o.clientWidth-(c+f)),m={rootMargin:-v+"px "+-h+"px "+-x(o.clientHeight-(d+p))+"px "+-x(c)+"px",threshold:w(0,g(1,u))||1},y=!0;function C(t){let r=t[0].intersectionRatio;if(r!==u){if(!y)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||eR(s,e.getBoundingClientRect())||l(),y=!1}try{r=new IntersectionObserver(C,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(C,m)}r.observe(e)}(!0),i}(c,n):null,p=-1,v=null;a&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&v&&t&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),c&&!s&&v.observe(c),t&&v.observe(t));let h=s?em(e):null;return s&&function t(){let r=em(e);h&&!eR(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
1d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===j})},elements:{reference:T.anchor},middleware:[eN({mainAxis:h+I,alignmentAxis:y}),b&&eO({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?e_():void 0,...Z}),b&&eI({...Z}),eF({...Z,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),S&&eV({element:S,padding:C}),e3({arrowWidth:_,arrowHeight:I}),L&&eW({strategy:"referenceHidden",...Z})]}),[X,Y]=e4(H),$=(0,ez.W)(E);(0,eH.b)(()=>{B&&(null==$||$())},[B,$]);let q=null===(n=G.arrow)||void 0===n?void 0:n.x,J=null===(r=G.arrow)||void 0===r?void 0:r.y,ee=(null===(i=G.arrow)||void 0===i?void 0:i.centerOffset)!==0,[et,en]=o.useState();return(0,eH.b)(()=>{A&&en(window.getComputedStyle(A).zIndex)},[A]),(0,eZ.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:B?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(a=G.transformOrigin)||void 0===a?void 0:a.x,null===(u=G.transformOrigin)||void 0===u?void 0:u.y].join(" "),...(null===(c=G.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eZ.jsx)(e0,{scope:p,placedSide:X,onArrowChange:N,arrowX:q,arrowY:J,shouldHideArrow:ee,children:(0,eZ.jsx)(s.WV.div,{"data-side":X,"data-align":Y,...Q,ref:P,style:{...Q.style,animation:B?void 0:"none"}})})})});e8.displayName=e1;var e7="PopperArrow",e6={top:"bottom",right:"left",bottom:"top",left:"right"},e9=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e5(e7,n),i=e6[o.placedSide];return(0,eZ.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eZ.jsx)(eK,{...r,ref:t,style:{...r.style,display:"block"}})})});function e2(e){return null!==e}e9.displayName=e7;var e3=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,v]=e4(a),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(i=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(l=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+f/2,w="",y="";return"bottom"===p?(w=c?h:"".concat(m,"px"),y="".concat(-f,"px")):"top"===p?(w=c?h:"".concat(m,"px"),y="".concat(u.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),y=c?h:"".concat(g,"px")):"left"===p&&(w="".concat(u.floating.width+f,"px"),y=c?h:"".concat(g,"px")),{data:{x:w,y}}}});function e4(e){let[t,n="center"]=e.split("-");return[t,n]}var te=n(8874),tt=n(8053),tn="rovingFocusGroup.onEntryFocus",tr={bubbles:!1,cancelable:!0},to="RovingFocusGroup",[ti,tl,ta]=(0,c.B)(to),[tu,ts]=(0,a.b)(to,[ta]),[tc,td]=tu(to),tf=o.forwardRef((e,t)=>(0,eZ.jsx)(ti.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,eZ.jsx)(ti.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,eZ.jsx)(tp,{...e,ref:t})})}));tf.displayName=to;var tp=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:c,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:v,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...g}=e,w=o.useRef(null),y=(0,l.e)(t,w),x=(0,d.gm)(c),[C,b]=(0,u.T)({prop:f,defaultProp:null!=p?p:null,onChange:v,caller:to}),[M,k]=o.useState(!1),R=(0,ez.W)(h),L=tl(n),j=o.useRef(!1),[E,Q]=o.use
1State(0);return o.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(tn,R),()=>e.removeEventListener(tn,R)},[R]),(0,eZ.jsx)(tc,{scope:n,orientation:r,dir:x,loop:a,currentTabStopId:C,onItemFocus:o.useCallback(e=>b(e),[b]),onItemShiftTab:o.useCallback(()=>k(!0),[]),onFocusableItemAdd:o.useCallback(()=>Q(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>Q(e=>e-1),[]),children:(0,eZ.jsx)(s.WV.div,{tabIndex:M||0===E?-1:0,"data-orientation":r,...g,ref:y,style:{outline:"none",...e.style},onMouseDown:(0,i.Mj)(e.onMouseDown,()=>{j.current=!0}),onFocus:(0,i.Mj)(e.onFocus,e=>{let t=!j.current;if(e.target===e.currentTarget&&t&&!M){let t=new CustomEvent(tn,tr);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=L().filter(e=>e.focusable);tg([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),m)}}j.current=!1}),onBlur:(0,i.Mj)(e.onBlur,()=>k(!1))})})}),tv="RovingFocusGroupItem",th=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:l=!1,tabStopId:a,children:u,...c}=e,d=(0,h.M)(),f=a||d,p=td(tv,n),v=p.currentTabStopId===f,m=tl(n),{onFocusableItemAdd:g,onFocusableItemRemove:w,currentTabStopId:y}=p;return o.useEffect(()=>{if(r)return g(),()=>w()},[r,g,w]),(0,eZ.jsx)(ti.ItemSlot,{scope:n,id:f,focusable:r,active:l,children:(0,eZ.jsx)(s.WV.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,i.Mj)(e.onMouseDown,e=>{r?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,i.Mj)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,i.Mj)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return tm[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=p.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>tg(o))}}),children:"function"==typeof u?u({isCurrentTabStop:v,hasTabStop:null!=y}):u})})});th.displayName=tv;var tm={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tg(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var tw=n(9883),ty=n(3745),tx=n(6429),tC=["Enter"," "],tb=["ArrowUp","PageDown","End"],tM=["ArrowDown","PageUp","Home",...tb],tk={ltr:[...tC,"ArrowRight"],rtl:[...tC,"ArrowLeft"]},tR={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tL="Menu",[tj,tE,tQ]=(0,c.B)(tL),[tT,tA]=(0,a.b)(tL,[tQ,eG,ts]),tD=eG(),tP=ts(),[tS,tN]=tT(tL),[tO,t_]=tT(tL),tI=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:a=!0}=e,u=tD(t),[s,c]=o.useState(null),f=o.useRef(!1),p=(0,ez.W)(l),v=(0,d.gm)(i);return o.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,eZ.jsx)(e$,{...u,children:(0,eZ.jsx)(tS,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:c,children:(0,eZ.jsx)(tO,{scope:t,onClose:o.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:v,modal:a,children:r})})})};tI.displayName=tL;var tF=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tD(n);return(0,eZ.jsx)(eJ,{...o,...r,ref:t})});tF.displayName="MenuAnchor";var tW="MenuPortal",[tV,tZ]=tT(tW,{forceMount:void 0}),tK=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tN(tW,t);return(0,eZ.jsx)(tV,{scope:t,forceMount:n,children:(0,eZ.jsx)(tt.z,{present:n||i.open,children:(0,eZ.jsx)(te.h,{asChild:!0,container:o,children:r})})})};tK.displayName=tW;var tz="MenuContent",[tH,tB]=tT(tz),tU=o.forwardRef((e,t)=>
1{let n=tZ(tz,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tN(tz,e.__scopeMenu),l=t_(tz,e.__scopeMenu);return(0,eZ.jsx)(tj.Provider,{scope:e.__scopeMenu,children:(0,eZ.jsx)(tt.z,{present:r||i.open,children:(0,eZ.jsx)(tj.Slot,{scope:e.__scopeMenu,children:l.modal?(0,eZ.jsx)(tG,{...o,ref:t}):(0,eZ.jsx)(tX,{...o,ref:t})})})})}),tG=o.forwardRef((e,t)=>{let n=tN(tz,e.__scopeMenu),r=o.useRef(null),a=(0,l.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return(0,ty.Ry)(e)},[]),(0,eZ.jsx)(t$,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,i.Mj)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tX=o.forwardRef((e,t)=>{let n=tN(tz,e.__scopeMenu);return(0,eZ.jsx)(t$,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tY=(0,tw.Z8)("MenuContent.ScrollLock"),t$=o.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:w,onDismiss:y,disableOutsideScroll:x,...C}=e,b=tN(tz,n),M=t_(tz,n),k=tD(n),R=tP(n),L=tE(n),[j,E]=o.useState(null),Q=o.useRef(null),T=(0,l.e)(t,Q,b.onContentChange),A=o.useRef(0),D=o.useRef(""),P=o.useRef(0),S=o.useRef(null),N=o.useRef("right"),O=o.useRef(0),_=x?tx.Z:o.Fragment,I=e=>{var t,n;let r=D.current+e,o=L().filter(e=>!e.disabled),i=document.activeElement,l=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),u=null===(n=o.find(e=>e.textValue===a))||void 0===n?void 0:n.ref.current;!function e(t){D.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};o.useEffect(()=>()=>window.clearTimeout(A.current),[]),(0,p.EW)();let F=o.useCallback(e=>{var t,n,r;return N.current===(null===(t=S.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=S.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e],a=t[i],u=l.x,s=l.y,c=a.x,d=a.y;s>r!=d>r&&n<(c-u)*(r-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,eZ.jsx)(tH,{scope:n,searchRef:D,onItemEnter:o.useCallback(e=>{F(e)&&e.preventDefault()},[F]),onItemLeave:o.useCallback(e=>{var t;F(e)||(null===(t=Q.current)||void 0===t||t.focus(),E(null))},[F]),onTriggerLeave:o.useCallback(e=>{F(e)&&e.preventDefault()},[F]),pointerGraceTimerRef:P,onPointerGraceIntentChange:o.useCallback(e=>{S.current=e},[]),children:(0,eZ.jsx)(_,{...x?{as:tY,allowPinchZoom:!0}:void 0,children:(0,eZ.jsx)(v.M,{asChild:!0,trapped:a,onMountAutoFocus:(0,i.Mj)(u,e=>{var t;e.preventDefault(),null===(t=Q.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,eZ.jsx)(f.XB,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:w,onDismiss:y,children:(0,eZ.jsx)(tf,{asChild:!0,...R,dir:M.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:E,onEntryFocus:(0,i.Mj)(d,e=>{M.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,eZ.jsx)(e8,{role:"menu","aria-orientation":"vertical","data-state":nh(b.open),"data-radix-menu-content":"",dir:M.dir,...k,...C,ref:T,style:{outline:"none",...C.style},onKeyDown:(0,i.Mj)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&I(e.key));let o=Q.current;if(e.target!==o||!tM.includes(e.key))return;e.preventDefault();let i=L().filter(e=>!e.disabled).map(e=>e.ref.current);tb.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,i.Mj)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),D.current="")}),onPointerMove:(0,i.Mj)(e.onPointerMove,nw(e=>{let t=e.target,n=O.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>O.current?"right":"left";N.current=t,O.current=e.clientX}}))})})})})})})});tU.displayName=tz;var tq=o.forwardRef((e,t)=>
1{let{__scopeMenu:n,...r}=e;return(0,eZ.jsx)(s.WV.div,{role:"group",...r,ref:t})});tq.displayName="MenuGroup";var tJ=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eZ.jsx)(s.WV.div,{...r,ref:t})});tJ.displayName="MenuLabel";var t1="MenuItem",t0="menu.itemSelect",t5=o.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...a}=e,u=o.useRef(null),c=t_(t1,e.__scopeMenu),d=tB(t1,e.__scopeMenu),f=(0,l.e)(t,u),p=o.useRef(!1);return(0,eZ.jsx)(t8,{...a,ref:f,disabled:n,onClick:(0,i.Mj)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(t0,{bubbles:!0,cancelable:!0});e.addEventListener(t0,e=>null==r?void 0:r(e),{once:!0}),(0,s.jH)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,i.Mj)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,i.Mj)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&tC.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});t5.displayName=t1;var t8=o.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:a,...u}=e,c=tB(t1,n),d=tP(n),f=o.useRef(null),p=(0,l.e)(t,f),[v,h]=o.useState(!1),[m,g]=o.useState("");return o.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[u.children]),(0,eZ.jsx)(tj.ItemSlot,{scope:n,disabled:r,textValue:null!=a?a:m,children:(0,eZ.jsx)(th,{asChild:!0,...d,focusable:!r,children:(0,eZ.jsx)(s.WV.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...u,ref:p,onPointerMove:(0,i.Mj)(e.onPointerMove,nw(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,i.Mj)(e.onPointerLeave,nw(e=>c.onItemLeave(e))),onFocus:(0,i.Mj)(e.onFocus,()=>h(!0)),onBlur:(0,i.Mj)(e.onBlur,()=>h(!1))})})})}),t7=o.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,eZ.jsx)(nn,{scope:e.__scopeMenu,checked:n,children:(0,eZ.jsx)(t5,{role:"menuitemcheckbox","aria-checked":nm(n)?"mixed":n,...o,ref:t,"data-state":ng(n),onSelect:(0,i.Mj)(o.onSelect,()=>null==r?void 0:r(!!nm(n)||!n),{checkForDefaultPrevented:!1})})})});t7.displayName="MenuCheckboxItem";var t6="MenuRadioGroup",[t9,t2]=tT(t6,{value:void 0,onValueChange:()=>{}}),t3=o.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,ez.W)(r);return(0,eZ.jsx)(t9,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,eZ.jsx)(tq,{...o,ref:t})})});t3.displayName=t6;var t4="MenuRadioItem",ne=o.forwardRef((e,t)=>{let{value:n,...r}=e,o=t2(t4,e.__scopeMenu),l=n===o.value;return(0,eZ.jsx)(nn,{scope:e.__scopeMenu,checked:l,children:(0,eZ.jsx)(t5,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":ng(l),onSelect:(0,i.Mj)(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});ne.displayName=t4;var nt="MenuItemIndicator",[nn,nr]=tT(nt,{checked:!1}),no=o.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=nr(nt,n);return(0,eZ.jsx)(tt.z,{present:r||nm(i.checked)||!0===i.checked,children:(0,eZ.jsx)(s.WV.span,{...o,ref:t,"data-state":ng(i.checked)})})});no.displayName=nt;var ni=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,eZ.jsx)(s.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ni.displayName="MenuSeparator";var nl=o.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tD(n);return(0,eZ.jsx)(e9,{...o,...r,ref:t})});nl.displayName="MenuArrow";var na="MenuSub",[nu,ns]=tT(na),nc=e=>{let{__scopeMenu:t,children:n,open:r=!1,onOpenChange:i}=e,l=tN(na,t),a=tD(t),[u,s]=o.useState(null),[c,d]=o.useState(null),f=(0,ez.W)(i);return o.useEffect(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,eZ.jsx)(e$,{...a,children:(0,eZ.jsx)(tS,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:d,children:(0,eZ.jsx)(nu,{scope:t,contentId:(0,h.M)(),triggerId:(0,h.M)(),trigger:u,onTriggerChange:s,children:n})})})};nc.displayName=na;var nd="MenuSubTrigger",nf=o.forwardRef((e,t)=>{let n=tN(nd,e.__scopeMenu),r=t_(nd,e.__scopeMenu),a=ns(nd,e.__scopeMenu),u=tB(nd,e.__scopeMenu),s=o.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=o.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return o.useEffect(()=>p,[p]),o.useEffect(()=>
1{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,eZ.jsx)(tF,{asChild:!0,...f,children:(0,eZ.jsx)(t8,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":nh(n.open),...e,ref:(0,l.F)(t,a.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,i.Mj)(e.onPointerMove,nw(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,i.Mj)(e.onPointerLeave,nw(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],a=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:a,y:o.top},{x:a,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,i.Mj)(e.onKeyDown,t=>{let o=""!==u.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&tk[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault()}})})})});nf.displayName=nd;var np="MenuSubContent",nv=o.forwardRef((e,t)=>{let n=tZ(tz,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,u=tN(tz,e.__scopeMenu),s=t_(tz,e.__scopeMenu),c=ns(np,e.__scopeMenu),d=o.useRef(null),f=(0,l.e)(t,d);return(0,eZ.jsx)(tj.Provider,{scope:e.__scopeMenu,children:(0,eZ.jsx)(tt.z,{present:r||u.open,children:(0,eZ.jsx)(tj.Slot,{scope:e.__scopeMenu,children:(0,eZ.jsx)(t$,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:f,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,i.Mj)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,i.Mj)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,i.Mj)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tR[s.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null===(r=c.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function nh(e){return e?"open":"closed"}function nm(e){return"indeterminate"===e}function ng(e){return nm(e)?"indeterminate":e?"checked":"unchecked"}function nw(e){return t=>"mouse"===t.pointerType?e(t):void 0}nv.displayName=np;var ny="DropdownMenu",[nx,nC]=(0,a.b)(ny,[tA]),nb=tA(),[nM,nk]=nx(ny),nR=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:a,modal:s=!0}=e,c=nb(t),d=o.useRef(null),[f,p]=(0,u.T)({prop:i,defaultProp:null!=l&&l,onChange:a,caller:ny});return(0,eZ.jsx)(nM,{scope:t,triggerId:(0,h.M)(),triggerRef:d,contentId:(0,h.M)(),open:f,onOpenChange:p,onOpenToggle:o.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,eZ.jsx)(tI,{...c,open:f,onOpenChange:p,dir:r,modal:s,children:n})})};nR.displayName=ny;var nL="DropdownMenuTrigger",nj=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=nk(nL,n),u=nb(n);return(0,eZ.jsx)(tF,{asChild:!0,...u,children:(0,eZ.jsx)(s.WV.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,l.F)(t,a.triggerRef),onPointerDown:(0,i.Mj)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,i.Mj)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nj.displayName=nL;var nE=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nb(t);return(0,eZ.jsx)(tK,{...r,...n})};nE.displayName="DropdownMenuPortal";var nQ="DropdownMenuContent",nT=o.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,l=nk(nQ,n),a=nb(n),u=o.useRef(!1);return(0,eZ.jsx)(tU,{id:l.contentId,"aria-labelledby":l.triggerId,...a,...r,ref:t,onCloseAutoFocus:(0,i.Mj)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=l.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,i.Mj)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nT.displayName=nQ;var nA=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(tq,{...o,...r,ref:t})});nA.displayName="DropdownMenuGroup";var nD=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(tJ,{...o,...r,ref:t})});nD.displayName="DropdownMenuLabel";var nP=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(t5,{...o,...r,ref:t})});nP.displayName="DropdownMenuItem";var nS=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(t7,{...o,...r,ref:t})});nS.displayName="DropdownMenuCheckboxItem";var nN=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(t3,{...o,...r,ref:t})});nN.displayName="DropdownMenuRadioGroup";var nO=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(ne,{...o,...r,ref:t})});nO.displayName="DropdownMenuRadioItem";var n_=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(no,{...o,...r,ref:t})});n_.displayName="DropdownMenuItemIndicator";var nI=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(ni,{...o,...r,ref:t})});nI.displayName="DropdownMenuSeparator",o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(nl,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var nF=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(nf,{...o,...r,ref:t})});nF.displayName="DropdownMenuSubTrigger";var nW=o.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nb(n);return(0,eZ.jsx)(nv,{...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)"}})});nW.displayName="DropdownMenuSubContent";var nV=nR,nZ=nj,nK=nE,nz=nT,nH=nA,nB=nD,nU=nP,nG=nS,nX=nN,nY=nO,n$=n_,nq=nI,nJ=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,l=nb(t),[a,s]=(0,u.T)({prop:r,defaultProp:null!=i&&i,onChange:o,caller:"DropdownMenuSub"});return(0,eZ.jsx)(nc,{...l,open:a,onOpenChange:s,children:n})},n1=nF,n0=nW},9088:function(e,t,n){n.d(t,{VY:function(){return ew},z$:function(){return eg},ck:function(){return ev},rU:function(){return em},aV:function(){return ep},fC:function(){return ef},xz:function(){return eh},l_:function(){return ey}});var r=n(6121),o=n(9149),i=n(141),l=n(3965),a=n(131),u=n(2213),s=n(4708),c=n(2),d=n(8053),f=n(6621),p=n(4615),v=n(4126),h=n(2407),m=n(8149),g=n(6079),w=n(1996),y="NavigationMenu",[x,C,b]=(0,p.B)(y),[M,k,R]=(0,p.B)(y),[L,j]=(0,i.b)(y,[b,R]),[E,Q]=L(y),[T,A]=L(y),D=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:l,delayDuration:d=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:v,...h}=e,[m,g]=r.useState(null),x=(0,s.e)(t,e=>g(e)),C=(0,c.gm)(v),b=r.useRef(0),M=r.useRef(0),k=r.useRef(0),[R,L]=r.useState(!0),[j,E]=(0,u.T)({prop:o,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(k.current),t&&L(!1)):(window.clearTimeout(k.current),k.current=window.setTimeout(()=>L(!0),f)),null==i||i(e)},defaultProp:null!=l?l:"",caller:y}),Q=r.useCallback(()=>
1{window.clearTimeout(M.current),M.current=window.setTimeout(()=>E(""),150)},[E]),T=r.useCallback(e=>{window.clearTimeout(M.current),E(e)},[E]),A=r.useCallback(e=>{j===e?window.clearTimeout(M.current):b.current=window.setTimeout(()=>{window.clearTimeout(M.current),E(e)},d)},[j,E,d]);return r.useEffect(()=>()=>{window.clearTimeout(b.current),window.clearTimeout(M.current),window.clearTimeout(k.current)},[]),(0,w.jsx)(S,{scope:n,isRootMenu:!0,value:j,dir:C,orientation:p,rootNavigationMenu:m,onTriggerEnter:e=>{window.clearTimeout(b.current),R?A(e):T(e)},onTriggerLeave:()=>{window.clearTimeout(b.current),Q()},onContentEnter:()=>window.clearTimeout(M.current),onContentLeave:Q,onItemSelect:e=>{E(t=>t===e?"":e)},onItemDismiss:()=>E(""),children:(0,w.jsx)(a.WV.nav,{"aria-label":"Main","data-orientation":p,dir:C,...h,ref:x})})});D.displayName=y;var P="NavigationMenuSub";r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:l="horizontal",...s}=e,c=Q(P,n),[d,f]=(0,u.T)({prop:r,onChange:o,defaultProp:null!=i?i:"",caller:P});return(0,w.jsx)(S,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:l,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,w.jsx)(a.WV.div,{"data-orientation":l,...s,ref:t})})}).displayName=P;var S=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:i,orientation:l,children:a,value:u,onItemSelect:s,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:v,onContentLeave:h}=e,[g,y]=r.useState(null),[C,b]=r.useState(new Map),[M,k]=r.useState(null);return(0,w.jsx)(E,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:u,previousValue:function(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(u),baseId:(0,f.M)(),dir:i,orientation:l,viewport:g,onViewportChange:y,indicatorTrack:M,onIndicatorTrackChange:k,onTriggerEnter:(0,m.W)(d),onTriggerLeave:(0,m.W)(p),onContentEnter:(0,m.W)(v),onContentLeave:(0,m.W)(h),onItemSelect:(0,m.W)(s),onItemDismiss:(0,m.W)(c),onViewportContentChange:r.useCallback((e,t)=>{b(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:r.useCallback(e=>{b(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,w.jsx)(x.Provider,{scope:t,children:(0,w.jsx)(T,{scope:t,items:C,children:a})})})},N="NavigationMenuList",O=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=Q(N,n),i=(0,w.jsx)(a.WV.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,w.jsx)(a.WV.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,w.jsx)(x.Slot,{scope:n,children:o.isRootMenu?(0,w.jsx)(en,{asChild:!0,children:i}):i})})});O.displayName=N;var _="NavigationMenuItem",[I,F]=L(_),W=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,...i}=e,l=(0,f.M)(),u=r.useRef(null),s=r.useRef(null),c=r.useRef(null),d=r.useRef(()=>{}),p=r.useRef(!1),v=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(u.current){d.current();let t=ei(u.current);t.length&&el("start"===e?t:t.reverse())}},[]),h=r.useCallback(()=>{if(u.current){let e=ei(u.current);e.length&&(d.current=(e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}))}},[]);return(0,w.jsx)(I,{scope:n,value:o||l||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:u,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:h,onContentFocusOutside:h,children:(0,w.jsx)(a.WV.li,{...i,ref:t})})});W.displayName=_;var V="NavigationMenuTrigger",Z=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:o,...i}=e,u=Q(V,e.__scopeNavigationMenu),c=F(V,e.__scopeNavigationMenu),d=r.useRef(null),f=(0,s.e)(d,c.triggerRef,t),p=es(u.baseId,c.value),v=ec(u.baseId,c.value),h=r.useRef(!1),m=r.useRef(!1),y=c.value===u.value;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(x.ItemSlot,{scope:n,value:c.value,children:(0,w.jsx)(eo,{asChild:!0,children:(0,w.jsx)(a.WV.button,{id:p,disabled:o,"data-disabled":o?"":void 0,"data-state":eu(y),"aria-expanded":y,"aria-controls":v,...i,ref:f,onPointerEnter:(0,l.Mj)(e.onPointerEnter,()=>{m.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,l.Mj)(e.onPointerMove,ed(()=>{o||m.current||c.wasEscapeCloseRef.current||h.current||(u.onTriggerEnter(c.value),h.current=!0)})),onPointerLeave:(0,l.Mj)(e.onPointerLeave,ed(()=>{o||(u.onTriggerLeave(),h.current=!1)})),onClick:(0,l.Mj)(e.onClick,()=>{u.onItemSelect(c.value),m.current=y}),onKeyDown:(0,l.Mj)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===u.dir?"ArrowLeft":"ArrowRight"}[u.orientation];y&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),y&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(g.fC,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,r=n===d.current,o=null==t?void 0:t.contains(n);(r||!o)&&c.onFocusProxyEnter(r?"start":"end")}}),u.viewport&&(0,w.jsx)("span",{"aria-owns":v})]})]})});Z.displayName=V;var K="navigationMenu.linkSelect",z=r.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return(0,w.jsx)(eo,{asChild:!0,children:(0,w.jsx)(a.WV.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:(0,l.Mj)(e.onClick,e=>{let t=e.target,n=new CustomEvent(K,{bubbles:!0,cancelable:!0});if(t.addEventListener(K,e=>null==o?void 0:o(e),{once:!0}),(0,a.jH)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent($,{bubbles:!0,cancelable:!0});(0,a.jH)(t,e)}},{checkForDefaultPrevented:!1})})})});z.displayName="NavigationMenuLink";var H="NavigationMenuIndicator",B=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Q(H,e.__scopeNavigationMenu),l=!!i.value;return i.indicatorTrack?o.createPortal((0,w.jsx)(d.z,{present:n||l,children:(0,w.jsx)(U,{...r,ref:t})}),i.indicatorTrack):null});B.displayName=H;var U=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...o}=e,i=Q(H,n),l=C(n),[u,s]=r.useState(null),[c,d]=r.useState(null),f="horizontal"===i.orientation,p=!!i.value;r.useEffect(()=>{var e;let t=null===(e=l().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&s(t)},[l,i.value]);let v=()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})};return ea(u,v),ea(i.indicatorTrack,v),c?(0,w.jsx)(a.WV.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":i.orientation,...o,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:"translateX(".concat(c.offset,"px)")}:{top:0,height:c.size+"px",transform:"translateY(".concat(c.offset,"px)")},...o.style}}):null}),G="NavigationMenuContent",X=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=Q(G,e.__scopeNavigationMenu),i=F(G,e.__scopeNavigationMenu),a=(0,s.e)(i.contentRef,t),u=i.value===o.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?(0,w.jsx)(Y,{forceMount:n,...c,ref:a}):(0,w.jsx)(d.z,{present:n||u,children:(0,w.jsx)(q,{"data-state":eu(u),...c,ref:a,onPointerEnter:(0,l.Mj)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,l.Mj)(e.onPointerLeave,ed(o.onContentLeave)),style:{pointerEvents:!u&&o.isRootMenu?"none":void 0,...c.style}})})});X.displayName=G;var Y=r.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=Q(G,e.__scopeNavigationMenu);return(0,h.b)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,h.b)(()=>()=>r(e.value),[e.value,r]),null}),$="navigationMenu.rootContentDismiss",q=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:u,onRootContentClose:c,onContentFocusOutside:d,...f}=e,p=Q(G,n),h=r.useRef(null),m=(0,s.e)(h,t),g=es(p.baseId,o),y=ec(p.baseId,o),x=C(n),b=r.useRef(null),{onItemDismiss:M}=p;r.useEffect(()=>{let e=h.current;if(p.isRootMenu&&e){let t=()=>{var t;M(),c(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener($,t),()=>e.removeEventListener($,t)}},[p.isRootMenu,e.value,i,M,c]);let k=r.useMemo(()=>{let e=x().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),n=e.indexOf(p.previousValue),r=o===p.value,i=n===e.indexOf(o);if(!r&&!i)return b.current;let l=(()=>{if(t!==n){if(r&&-1!==n)return t>n?"from-end":"from-start";if(i&&-1!==t)return t>n?"to-start":"to-end"}return null})();return b.current=l,l},[p.previousValue,p.value,p.dir,x,o]);return(0,w.jsx)(en,{asChild:!0,children:(0,w.jsx)(v.XB,{id:y,"aria-labelledby":g,"data-motion":k,"data-orientation":p.orientation,...f,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event($,{bubbles:!0,cancelable:!0});null===(e=h.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:(0,l.Mj)(e.onFocusOutside,e=>{var t;d();let n=e.target;(null===(t=p.rootNavigationMenu)||void 0===t?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,l.Mj)(e.onPointerDownOutside,e=>{var t;let n=e.target,r=x().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),o=p.isRootMenu&&(null===(t=p.viewport)||void 0===t?void 0:t.contains(n));(r||o||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,l.Mj)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ei(e.currentTarget),r=document.activeElement,o=t.findIndex(e=>e===r);if(el(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var n;null===(n=a.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:(0,l.Mj)(e.onEscapeKeyDown,e=>{u.current=!0})})})}),J="NavigationMenuViewport",ee=r.forwardRef((e,t)=>
1{let{forceMount:n,...r}=e,o=!!Q(J,e.__scopeNavigationMenu).value;return(0,w.jsx)(d.z,{present:n||o,children:(0,w.jsx)(et,{...r,ref:t})})});ee.displayName=J;var et=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:o,...i}=e,u=Q(J,n),c=(0,s.e)(t,u.onViewportChange),f=A(G,e.__scopeNavigationMenu),[p,v]=r.useState(null),[h,m]=r.useState(null),g=p?(null==p?void 0:p.width)+"px":void 0,y=p?(null==p?void 0:p.height)+"px":void 0,x=!!u.value,C=x?u.value:u.previousValue;return ea(h,()=>{h&&v({width:h.offsetWidth,height:h.offsetHeight})}),(0,w.jsx)(a.WV.div,{"data-state":eu(x),"data-orientation":u.orientation,...i,ref:c,style:{pointerEvents:!x&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":y,...i.style},onPointerEnter:(0,l.Mj)(e.onPointerEnter,u.onContentEnter),onPointerLeave:(0,l.Mj)(e.onPointerLeave,ed(u.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:n,forceMount:r,...o}]=e,i=C===t;return(0,w.jsx)(d.z,{present:r||i,children:(0,w.jsx)(q,{...o,ref:(0,s.F)(n,e=>{i&&e&&m(e)})})},t)})})}),en=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=Q("FocusGroup",n);return(0,w.jsx)(M.Provider,{scope:n,children:(0,w.jsx)(M.Slot,{scope:n,children:(0,w.jsx)(a.WV.div,{dir:o.dir,...r,ref:t})})})}),er=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eo=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=k(n),i=Q("FocusGroupItem",n);return(0,w.jsx)(M.ItemSlot,{scope:n,children:(0,w.jsx)(a.WV.button,{...r,ref:t,onKeyDown:(0,l.Mj)(e.onKeyDown,e=>{if(["Home","End",...er].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===i.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),er.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>el(t)),e.preventDefault()}})})})});function ei(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function el(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e,t){let n=(0,m.W)(t);(0,h.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function eu(e){return e?"open":"closed"}function es(e,t){return"".concat(e,"-trigger-").concat(t)}function ec(e,t){return"".concat(e,"-content-").concat(t)}function ed(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ef=D,ep=O,ev=W,eh=Z,em=z,eg=B,ew=X,ey=ee},6079:function(e,t,n){n.d(t,{TX:function(){return a},fC:function(){return u}});var r=n(6121),o=n(131),i=n(1996),l=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"}),a=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{...l,...e.style}}));a.displayName="VisuallyHidden";var u=a},9855:function(e,t,n){function r(){return"undefined"!=typeof window}function o(){return(r()?window.vam:"production")||"production"}function i(){return"production"===o()}function l(e,t,n){var l,a;if(!r()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(i())console.warn(e);else throw Error(e);return}if(!t){null==(l=window.va)||l.call(window,"event",{name:e,options:n});return}try{let r=function(e,t){if(!e)return;let n=e,r=[];for(let[o,i]of Object.entries(e))"object"==typeof i&&null!==i&&(t.strip?n=function(e,{[e]:t,...n}){return n}(o,n):r.push(o));if(r.length>0&&!t.strip)throw Error(`The following properties are not valid: ${r.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return n}(t,{strip:i()});null==(a=window.va)||a.call(window,"event",{name:e,data:r,options:n})}catch(e){e instanceof Error&&"development"===o()&&console.error(e)}}n.d(t,{j:function(){return l}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.