UNPKG

ccdash

Version:

Claude Code Dashboard - A comprehensive monitoring dashboard for Claude Code

1 lines 67.4 kB
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[646],{514:(e,t,n)=>{n.d(t,{GP:()=>T});var r=n(3039);let o={},a=Symbol.for("constructDateFrom");function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&a in e?e[a](t):e instanceof Date?new e.constructor(t):new Date(t)}function l(e,t){return i(t||e,e)}function u(e){let t=l(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 d(e,t){let n=l(e,null==t?void 0:t.in);return n.setHours(0,0,0,0),n}function s(e,t){var n,r,a,i,u,d,s,c;let f=null!==(c=null!==(s=null!==(d=null!==(u=null==t?void 0:t.weekStartsOn)&&void 0!==u?u:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.weekStartsOn)&&void 0!==d?d:o.weekStartsOn)&&void 0!==s?s:null===(i=o.locale)||void 0===i?void 0:null===(a=i.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==c?c:0,h=l(e,null==t?void 0:t.in),m=h.getDay();return h.setDate(h.getDate()-(7*(m<f)+m-f)),h.setHours(0,0,0,0),h}function c(e,t){return s(e,{...t,weekStartsOn:1})}function f(e,t){let n=l(e,null==t?void 0:t.in),r=n.getFullYear(),o=i(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);let a=c(o),u=i(n,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);let d=c(u);return n.getTime()>=a.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function h(e,t){var n,r,a,u,d,c,f,h;let m=l(e,null==t?void 0:t.in),p=m.getFullYear(),v=null!==(h=null!==(f=null!==(c=null!==(d=null==t?void 0:t.firstWeekContainsDate)&&void 0!==d?d:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:o.firstWeekContainsDate)&&void 0!==f?f:null===(u=o.locale)||void 0===u?void 0:null===(a=u.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==h?h:1,g=i((null==t?void 0:t.in)||e,0);g.setFullYear(p+1,0,v),g.setHours(0,0,0,0);let y=s(g,t),w=i((null==t?void 0:t.in)||e,0);w.setFullYear(p,0,v),w.setHours(0,0,0,0);let b=s(w,t);return+m>=+y?p+1:+m>=+b?p:p-1}function m(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}let p={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return m("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):m(n+1,2)},d:(e,t)=>m(e.getDate(),t.length),a(e,t){let 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];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>m(e.getHours()%12||12,t.length),H:(e,t)=>m(e.getHours(),t.length),m:(e,t)=>m(e.getMinutes(),t.length),s:(e,t)=>m(e.getSeconds(),t.length),S(e,t){let n=t.length;return m(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},v={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return p.y(e,t)},Y:function(e,t,n,r){let o=h(e,r),a=o>0?o:1-o;return"YY"===t?m(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):m(a,t.length)},R:function(e,t){return m(f(e),t.length)},u:function(e,t){return m(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return m(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"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return m(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"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return p.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"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return m(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"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let a=function(e,t){let n=l(e,null==t?void 0:t.in);return Math.round((+s(n,t)-+function(e,t){var n,r,a,l,u,d,c,f;let m=null!==(f=null!==(c=null!==(d=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t?void 0:null===(r=t.locale)||void 0===r?void 0:null===(n=r.options)||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:o.firstWeekContainsDate)&&void 0!==c?c:null===(l=o.locale)||void 0===l?void 0:null===(a=l.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==f?f:1,p=h(e,t),v=i((null==t?void 0:t.in)||e,0);return v.setFullYear(p,0,m),v.setHours(0,0,0,0),s(v,t)}(n,t))/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):m(a,t.length)},I:function(e,t,n){let r=function(e,t){let n=l(e,void 0);return Math.round((+c(n)-+function(e,t){let n=f(e,void 0),r=i(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),c(r)}(n))/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):m(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):p.d(e,t)},D:function(e,t,n){let r=function(e,t){let n=l(e,void 0);return function(e,t,n){let[r,o]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let o=i.bind(null,e||n.find(e=>"object"==typeof e));return n.map(o)}(void 0,e,t),a=d(r),l=d(o);return Math.round((+a-u(a)-(+l-u(l)))/864e5)}(n,function(e,t){let n=l(e,void 0);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}(n))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):m(r,t.length)},E:function(e,t,n){let 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"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return m(a,2);case"eo":return n.ordinalNumber(a,{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"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let o=e.getDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return m(a,t.length);case"co":return n.ordinalNumber(a,{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"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return m(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"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r;let o=e.getHours();switch(r=12===o?v.noon:0===o?v.midnight:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r;let o=e.getHours();switch(r=o>=17?v.evening:o>=12?v.afternoon:o>=4?v.morning:v.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return p.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):p.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):m(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):m(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):p.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):p.s(e,t)},S:function(e,t){return p.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return w(r);case"XXXX":case"XX":return b(r);default:return b(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return w(r);case"xxxx":case"xx":return b(r);default:return b(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+y(r,":");default:return"GMT"+b(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+y(r,":");default:return"GMT"+b(r,":")}},t:function(e,t,n){return m(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return m(+e,t.length)}};function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),a=r%60;return 0===a?n+String(o):n+String(o)+t+m(a,2)}function w(e,t){return e%60==0?(e>0?"-":"+")+m(Math.abs(e)/60,2):b(e,t)}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+m(Math.trunc(n/60),2)+t+m(n%60,2)}let x=(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"});default:return t.date({width:"full"})}},M=(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"});default:return t.time({width:"full"})}},k={p:M,P:(e,t)=>{let n;let r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return x(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",x(o,t)).replace("{{time}}",M(a,t))}},C=/^D+$/,S=/^Y+$/,P=["D","DD","YY","YYYY"],A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,N=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,E=/^'([^]*?)'?$/,R=/''/g,D=/[a-zA-Z]/;function T(e,t,n){var a,i,u,d,s,c,f,h,m,p,v,y,w,b,x,M,T,j;let W=null!==(p=null!==(m=null==n?void 0:n.locale)&&void 0!==m?m:o.locale)&&void 0!==p?p:r.c,O=null!==(b=null!==(w=null!==(y=null!==(v=null==n?void 0:n.firstWeekContainsDate)&&void 0!==v?v:null==n?void 0:null===(i=n.locale)||void 0===i?void 0:null===(a=i.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==y?y:o.firstWeekContainsDate)&&void 0!==w?w:null===(d=o.locale)||void 0===d?void 0:null===(u=d.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==b?b:1,_=null!==(j=null!==(T=null!==(M=null!==(x=null==n?void 0:n.weekStartsOn)&&void 0!==x?x:null==n?void 0:null===(c=n.locale)||void 0===c?void 0:null===(s=c.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==M?M:o.weekStartsOn)&&void 0!==T?T:null===(h=o.locale)||void 0===h?void 0:null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==j?j:0,L=l(e,null==n?void 0:n.in);if(!(L instanceof Date||"object"==typeof L&&"[object Date]"===Object.prototype.toString.call(L))&&"number"!=typeof L||isNaN(+l(L)))throw RangeError("Invalid time value");let I=t.match(N).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,k[t])(e,W.formatLong):e}).join("").match(A).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(E);return t?t[1].replace(R,"'"):e}(e)};if(g[t])return{isToken:!0,value:e};if(t.match(D))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});W.localize.preprocessor&&(I=W.localize.preprocessor(L,I));let z={firstWeekContainsDate:O,weekStartsOn:_,locale:W};return I.map(r=>{if(!r.isToken)return r.value;let o=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&S.test(o)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&C.test(o))&&!function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),P.includes(e))throw RangeError(r)}(o,t,String(e)),(0,g[o[0]])(L,o,W.localize,z)}).join("")}},523:(e,t,n)=>{n.d(t,{Ke:()=>A,R6:()=>S,bL:()=>R});var r=n(2115),o=n.t(r,2),a=n(5155),i=globalThis?.document?r.useLayoutEffect:()=>{},l=o[" useInsertionEffect ".trim().toString()]||i;function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():u(e[t],null)}}}}function s(...e){return r.useCallback(d(...e),e)}Symbol("RADIX:SYNC_STATE"),n(7650);var c=Symbol("radix.slottable");function f(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var a;let e,i;let l=(a=n,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(u.ref=t?d(t,l):l),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...i}=e,l=r.Children.toArray(o),u=l.find(f);if(u){let e=u.props.children,o=l.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...i,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,a.jsx)(t,{...i,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),m=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,a]=r.useState(),l=r.useRef(null),u=r.useRef(e),d=r.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=p(l.current);d.current="mounted"===s?e:"none"},[s]),i(()=>{let t=l.current,n=u.current;if(n!==e){let r=d.current,o=p(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),u.current=e}},[e,c]),i(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=p(l.current).includes(e.animationName);if(e.target===o&&r&&(c("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(d.current=p(l.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}c("ANIMATION_END")},[o,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),a="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),l=s(o.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||o.isPresent?r.cloneElement(a,{ref:l}):null};function p(e){return(null==e?void 0:e.animationName)||"none"}m.displayName="Presence";var v=o[" useId ".trim().toString()]||(()=>void 0),g=0,y="Collapsible",[w,b]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;n=[...n,o];let u=t=>{let{scope:n,children:o,...u}=t,d=n?.[e]?.[l]||i,s=r.useMemo(()=>u,Object.values(u));return(0,a.jsx)(d.Provider,{value:s,children:o})};return u.displayName=t+"Provider",[u,function(n,a){let u=a?.[e]?.[l]||i,d=r.useContext(u);if(d)return d;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(y),[x,M]=w(y),k=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:u,disabled:d,onOpenChange:s,...c}=e,[f,m]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){let[a,i,u]=function({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),a=r.useRef(n),i=r.useRef(t);return l(()=>{i.current=t},[t]),r.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,o,i]}({defaultProp:t,onChange:n}),d=void 0!==e,s=d?e:a;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=d},[d,o])}return[s,r.useCallback(t=>{if(d){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else i(t)},[d,e,i,u])]}({prop:o,defaultProp:null!=u&&u,onChange:s,caller:y});return(0,a.jsx)(x,{scope:n,disabled:d,contentId:function(e){let[t,n]=r.useState(v());return i(()=>{n(e=>e??String(g++))},[void 0]),e||(t?`radix-${t}`:"")}(),open:f,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),children:(0,a.jsx)(h.div,{"data-state":E(f),"data-disabled":d?"":void 0,...c,ref:t})})});k.displayName=y;var C="CollapsibleTrigger",S=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=M(C,n);return(0,a.jsx)(h.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":E(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,o.onOpenToggle)})});S.displayName=C;var P="CollapsibleContent",A=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=M(P,e.__scopeCollapsible);return(0,a.jsx)(m,{present:n||o.open,children:e=>{let{present:n}=e;return(0,a.jsx)(N,{...r,ref:t,present:n})}})});A.displayName=P;var N=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:l,...u}=e,d=M(P,n),[c,f]=r.useState(o),m=r.useRef(null),p=s(t,m),v=r.useRef(0),g=v.current,y=r.useRef(0),w=y.current,b=d.open||c,x=r.useRef(b),k=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),i(()=>{let e=m.current;if(e){k.current=k.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,y.current=t.width,x.current||(e.style.transitionDuration=k.current.transitionDuration,e.style.animationName=k.current.animationName),f(o)}},[d.open,o]),(0,a.jsx)(h.div,{"data-state":E(d.open),"data-disabled":d.disabled?"":void 0,id:d.contentId,hidden:!b,...u,ref:p,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:b&&l})});function E(e){return e?"open":"closed"}var R=k},646:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},704:(e,t,n)=>{n.d(t,{B8:()=>E,UC:()=>D,bL:()=>N,l9:()=>R});var r=n(2115),o=n(5185),a=n(6081),i=n(9196),l=n(8905),u=n(3655),d=n(4315),s=n(5845),c=n(1285),f=n(5155),h="Tabs",[m,p]=(0,a.A)(h,[i.RG]),v=(0,i.RG)(),[g,y]=m(h),w=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",dir:l,activationMode:h="automatic",...m}=e,p=(0,d.jH)(l),[v,y]=(0,s.i)({prop:r,onChange:o,defaultProp:a});return(0,f.jsx)(g,{scope:n,baseId:(0,c.B)(),value:v,onValueChange:y,orientation:i,dir:p,activationMode:h,children:(0,f.jsx)(u.sG.div,{dir:p,"data-orientation":i,...m,ref:t})})});w.displayName=h;var b="TabsList",x=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,a=y(b,n),l=v(n);return(0,f.jsx)(i.bL,{asChild:!0,...l,orientation:a.orientation,dir:a.dir,loop:r,children:(0,f.jsx)(u.sG.div,{role:"tablist","aria-orientation":a.orientation,...o,ref:t})})});x.displayName=b;var M="TabsTrigger",k=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:a=!1,...l}=e,d=y(M,n),s=v(n),c=P(d.baseId,r),h=A(d.baseId,r),m=r===d.value;return(0,f.jsx)(i.q7,{asChild:!0,...s,focusable:!a,active:m,children:(0,f.jsx)(u.sG.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":h,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:c,...l,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():d.onValueChange(r)}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&d.onValueChange(r)}),onFocus:(0,o.m)(e.onFocus,()=>{let e="manual"!==d.activationMode;m||a||!e||d.onValueChange(r)})})})});k.displayName=M;var C="TabsContent",S=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,forceMount:a,children:i,...d}=e,s=y(C,n),c=P(s.baseId,o),h=A(s.baseId,o),m=o===s.value,p=r.useRef(m);return r.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(l.C,{present:a||m,children:n=>{let{present:r}=n;return(0,f.jsx)(u.sG.div,{"data-state":m?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!r,id:h,tabIndex:0,...d,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:r&&i})}})});function P(e,t){return"".concat(e,"-trigger-").concat(t)}function A(e,t){return"".concat(e,"-content-").concat(t)}S.displayName=C;var N=w,E=x,R=k,D=S},1154:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1243:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("TriangleAlert",[["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"}]])},1284:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},1482:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]])},1497:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]])},1539:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},2143:(e,t,n)=>{n.d(t,{k:()=>r});function r(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}},2178:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]])},2431:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]])},2525:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},3039:(e,t,n)=>{n.d(t,{c:()=>s});let r={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"}};var o=n(2143);let a={date:(0,o.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,o.k)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,o.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};var l=n(8265);let u={ordinalNumber:(e,t)=>{let 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:(0,l.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,l.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,l.o)({values:{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"]},defaultWidth:"wide"}),day:(0,l.o)({values:{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"]},defaultWidth:"wide"}),dayPeriod:(0,l.o)({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})};var d=n(7291);let s={code:"en-US",formatDistance:(e,t,n)=>{let o;let a=r[e];return(o="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),null==n?void 0:n.addSuffix)?n.comparison&&n.comparison>0?"in "+o:o+" ago":o},formatLong:a,formatRelative:(e,t,n,r)=>i[e],localize:u,match:{ordinalNumber:(0,n(6943).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,d.A)({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,d.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,d.A)({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:(0,d.A)({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:(0,d.A)({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},3109:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},3921:(e,t,n)=>{n.d(t,{UC:()=>Y,Kq:()=>z,bL:()=>H,l9:()=>F});var r=n(2115),o=n(5185),a=n(6101),i=n(6081),l=n(9178),u=n(1285),d=n(2197),s=(n(4378),n(8905)),c=n(3655),f=n(9708),h=n(5845),m=n(5155),p=r.forwardRef((e,t)=>(0,m.jsx)(c.sG.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));p.displayName="VisuallyHidden";var[v,g]=(0,i.A)("Tooltip",[d.Bk]),y=(0,d.Bk)(),w="TooltipProvider",b="tooltip.open",[x,M]=v(w),k=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=e,[l,u]=r.useState(!0),d=r.useRef(!1),s=r.useRef(0);return r.useEffect(()=>{let e=s.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(x,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(s.current),u(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>u(!0),o)},[o]),isPointerInTransitRef:d,onPointerInTransitChange:r.useCallback(e=>{d.current=e},[]),disableHoverableContent:a,children:i})};k.displayName=w;var C="Tooltip",[S,P]=v(C),A=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:s}=e,c=M(C,e.__scopeTooltip),f=y(t),[p,v]=r.useState(null),g=(0,u.B)(),w=r.useRef(0),x=null!=l?l:c.disableHoverableContent,k=null!=s?s:c.delayDuration,P=r.useRef(!1),[A=!1,N]=(0,h.i)({prop:o,defaultProp:a,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(b))):c.onClose(),null==i||i(e)}}),E=r.useMemo(()=>A?P.current?"delayed-open":"instant-open":"closed",[A]),R=r.useCallback(()=>{window.clearTimeout(w.current),w.current=0,P.current=!1,N(!0)},[N]),D=r.useCallback(()=>{window.clearTimeout(w.current),w.current=0,N(!1)},[N]),T=r.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{P.current=!0,N(!0),w.current=0},k)},[k,N]);return r.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),(0,m.jsx)(d.bL,{...f,children:(0,m.jsx)(S,{scope:t,contentId:g,open:A,stateAttribute:E,trigger:p,onTriggerChange:v,onTriggerEnter:r.useCallback(()=>{c.isOpenDelayed?T():R()},[c.isOpenDelayed,T,R]),onTriggerLeave:r.useCallback(()=>{x?D():(window.clearTimeout(w.current),w.current=0)},[D,x]),onOpen:R,onClose:D,disableHoverableContent:x,children:n})})};A.displayName=C;var N="TooltipTrigger",E=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...i}=e,l=P(N,n),u=M(N,n),s=y(n),f=r.useRef(null),h=(0,a.s)(t,f,l.onTriggerChange),p=r.useRef(!1),v=r.useRef(!1),g=r.useCallback(()=>p.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,m.jsx)(d.Mz,{asChild:!0,...s,children:(0,m.jsx)(c.sG.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...i,ref:h,onPointerMove:(0,o.m)(e.onPointerMove,e=>{"touch"===e.pointerType||v.current||u.isPointerInTransitRef.current||(l.onTriggerEnter(),v.current=!0)}),onPointerLeave:(0,o.m)(e.onPointerLeave,()=>{l.onTriggerLeave(),v.current=!1}),onPointerDown:(0,o.m)(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,o.m)(e.onFocus,()=>{p.current||l.onOpen()}),onBlur:(0,o.m)(e.onBlur,l.onClose),onClick:(0,o.m)(e.onClick,l.onClose)})})});E.displayName=N;var[R,D]=v("TooltipPortal",{forceMount:void 0}),T="TooltipContent",j=r.forwardRef((e,t)=>{let n=D(T,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,i=P(T,e.__scopeTooltip);return(0,m.jsx)(s.C,{present:r||i.open,children:i.disableHoverableContent?(0,m.jsx)(L,{side:o,...a,ref:t}):(0,m.jsx)(W,{side:o,...a,ref:t})})}),W=r.forwardRef((e,t)=>{let n=P(T,e.__scopeTooltip),o=M(T,e.__scopeTooltip),i=r.useRef(null),l=(0,a.s)(t,i),[u,d]=r.useState(null),{trigger:s,onClose:c}=n,f=i.current,{onPointerInTransitChange:h}=o,p=r.useCallback(()=>{d(null),h(!1)},[h]),v=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());d(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,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})}return r}(r,o),...function(e){let{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}]}(t.getBoundingClientRect())])),h(!0)},[h]);return r.useEffect(()=>()=>p(),[p]),r.useEffect(()=>{if(s&&f){let e=e=>v(e,f),t=e=>v(e,s);return s.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{s.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[s,f,v,p]),r.useEffect(()=>{if(u){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==s?void 0:s.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e].x,l=t[e].y,u=t[a].x,d=t[a].y;l>r!=d>r&&n<(u-i)*(r-l)/(d-l)+i&&(o=!o)}return o}(n,u);r?p():o&&(p(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[s,f,u,c,p]),(0,m.jsx)(L,{...e,ref:l})}),[O,_]=v(C,{isInside:!1}),L=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:u,...s}=e,c=P(T,n),h=y(n),{onClose:v}=c;return r.useEffect(()=>(document.addEventListener(b,v),()=>document.removeEventListener(b,v)),[v]),r.useEffect(()=>{if(c.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(c.trigger))&&v()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,v]),(0,m.jsx)(l.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:v,children:(0,m.jsxs)(d.UC,{"data-state":c.stateAttribute,...h,...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:[(0,m.jsx)(f.xV,{children:o}),(0,m.jsx)(O,{scope:n,isInside:!0,children:(0,m.jsx)(p,{id:c.contentId,role:"tooltip",children:a||o})})]})})});j.displayName=T;var I="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=y(n);return _(I,n).isInside?null:(0,m.jsx)(d.i3,{...o,...r,ref:t})}).displayName=I;var z=k,H=A,F=E,Y=j},4213:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},4861:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},5312:(e,t,n)=>{n.d(t,{C1:()=>k,bL:()=>M});var r=n(2115),o=n(5155);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}n(7650);var i=Symbol("radix.slottable");function l(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}var u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var i;let e,l;let u=(i=n,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),d=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(d.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}}}(t,u):u),r.cloneElement(n,d)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:a,...i}=e,u=r.Children.toArray(a),d=u.find(l);if(d){let e=d.props.children,a=u.map(t=>t!==d?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...i,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,a):null})}return(0,o.jsx)(t,{...i,ref:n,children:a})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:a,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(a?n:t,{...i,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),d="Progress",[s,c]=function(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return a.scopeName=e,[function(t,a){let i=r.createContext(a),l=n.length;n=[...n,a];let u=t=>{let{scope:n,children:a,...u}=t,d=n?.[e]?.[l]||i,s=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(d.Provider,{value:s,children:a})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[l]||i,d=r.useContext(u);if(d)return d;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(a,...t)]}(d),[f,h]=s(d),m=r.forwardRef((e,t)=>{var n,r,a,i;let{__scopeProgress:l,value:d=null,max:s,getValueLabel:c=g,...h}=e;(s||0===s)&&!b(s)&&console.error((n="".concat(s),r="Progress","Invalid prop `max` of value `".concat(n,"` supplied to `").concat(r,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let m=b(s)?s:100;null===d||x(d,m)||console.error((a="".concat(d),i="Progress","Invalid prop `value` of value `".concat(a,"` supplied to `").concat(i,"`. The `value` prop must be:\n  - a positive number\n  - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n  - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let p=x(d,m)?d:null,v=w(p)?c(p,m):void 0;return(0,o.jsx)(f,{scope:l,value:p,max:m,children:(0,o.jsx)(u.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":w(p)?p:void 0,"aria-valuetext":v,role:"progressbar","data-state":y(p,m),"data-value":null!=p?p:void 0,"data-max":m,...h,ref:t})})});m.displayName=d;var p="ProgressIndicator",v=r.forwardRef((e,t)=>{var n;let{__scopeProgress:r,...a}=e,i=h(p,r);return(0,o.jsx)(u.div,{"data-state":y(i.value,i.max),"data-value":null!==(n=i.value)&&void 0!==n?n:void 0,"data-max":i.max,...a,ref:t})});function g(e,t){return"".concat(Math.round(e/t*100),"%")}function y(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function w(e){return"number"==typeof e}function b(e){return w(e)&&!isNaN(e)&&e>0}function x(e,t){return w(e)&&!isNaN(e)&&e<=t&&e>=0}v.displayName=p;var M=m,k=v},5690:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},6618:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]])},6943:(e,t,n)=>{n.d(t,{K:()=>r});function r(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;let o=r[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];return{value:i=n.valueCallback?n.valueCallback(i):i,rest:t.slice(o.length)}}}},7291:(e,t,n)=>{function r(e){return function(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;let l=i[0],u=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(u,e=>e.test(l)):function(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(u,e=>e.test(l));return n=e.valueCallback?e.valueCallback(d):d,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(l.length)}}}n.d(t,{A:()=>r})},7434:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},8265:(e,t,n)=>{n.d(t,{o:()=>r});function r(e){return(t,n)=>{let r;if("formatting"===((null==n?void 0:n.context)?String(n.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,o=(null==n?void 0:n.width)?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{let t=e.defaultWidth,o=(null==n?void 0:n.width)?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}},8885:(e,t,n)=>{n.d(t,{ja:()=>c});let r={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}};var o=n(2143);let a={date:(0,o.k)({formats:{full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},defaultWidth:"full"}),time:(0,o.k)({formats:{full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},defaultWidth:"full"}),dateTime:(0,o.k)({formats:{full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},i={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"};var l=n(8265);let u={ordinalNumber:(e,t)=>{let n=Number(e);switch(String(null==t?void 0:t.unit)){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},era:(0,l.o)({values:{narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},defaultWidth:"wide"}),quarter:(0,l.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},defaultWidth:"wide",argumentCallback:e=>Number(e)-1}),month:(0,l.o)({values:{narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},defaultWidth:"wide"}),day:(0,l.o)({values:{narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},defaultWidth:"wide"}),dayPeriod:(0,l.o)({values:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultWidth:"wide",formattingValues:{narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},defaultFormattingWidth:"wide"})};var d=n(6943),s=n(7291);let c={code:"ja",formatDistance:(e,t,n)=>{let o;n=n||{};let a=r[e];return(o="string"==typeof a?a:1===t?n.addSuffix&&a.oneWithSuffix?a.oneWithSuffix:a.one:n.addSuffix&&a.otherWithSuffix?a.otherWithSuffix.replace("{{count}}",String(t)):a.other.replace("{{count}}",String(t)),n.addSuffix)?n.comparison&&n.comparison>0?o+"後":o+"前":o},formatLong:a,formatRelative:(e,t,n,r)=>i[e],localize:u,match:{ordinalNumber:(0,d.K)({matchPattern:/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,s.A)({matchPatterns:{narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},defaultParseWidth:"any"}),quarter:(0,s.A)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},defaultMatchWidth:"wide",parsePatterns:{any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,s.A)({matchPatterns:{narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},defaultParseWidth:"any"}),day:(0,s.A)({matchPatterns:{narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},defaultMatchWidth:"wide",parsePatterns:{any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},defaultParseWidth:"any"}),dayPeriod:(0,s.A)({matchPatterns:{any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},8979:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]])},9074:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},9583:(e,t,n)=>{n.d(t,{Q6:()=>en,bL:()=>ee,zi:()=>er,CC:()=>et});var r,o=n(2115),a=n.t(o,2);function i(e,[t,n]){return Math.min(n,Math.max(t,e))}function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():u(e[t],null)}}}}function s(...e){return o.useCallback(d(...e),e)}var c=n(5155);function f(e,t=[]){let n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let a=o.createContext(r),i=n.length;n=[...n,r];let l=t=>{let{scope:n,children:r,...l}=t,u=n?.[e]?.[i]||a,d=o.useMemo(()=>l,Object.values(l));return(0,c.jsx)(u.Provider,{value:d,children:r})};return l.displayName=t+"Provider",[l,function(n,l){let u=l?.[e]?.[i]||a,d=o.useContext(u);if(d)return d;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var h=globalThis?.document?o.useLayoutEffect:()=>{},m=a[" useInsertionEffect ".trim().toString()]||h,p=(Symbol("RADIX:SYNC_STATE"),o.createContext(void 0)),v=n(5503);function g(e){let t=function(e){let t=o.forwardRef((e,t)=>{let{children:n,...r}=e;if(o.isValidElement(n)){var a;let e,i;let l=(a=n,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==o.Fragment&&(u.ref=t?d(t,l):l),o.cloneElement(n,u)}return o.Children.count(n)>1?o.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=o.forwardRef((e,n)=>{let{children:r,...a}=e,i=o.Children.toArray(r),l=i.find(w);if(l){let e=l.props.children,r=i.map(t=>t!==l?t:o.Children.count(e)>1?o.Children.only(null):o.isValidElement(e)?e.props.children:null);return(0,c.jsx)(t,{...a,ref:n,children:o.isValidElement(e)?o.cloneElement(e,void 0,r):null})}return(0,c.jsx)(t,{...a,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}n(7650);var y=Symbol("radix.slottable");function w(e){return o.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===y}var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=g(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),x=n(4971),M=n(5920),k=n(6266),C=new WeakMap;function S(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=P(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function P(e){return e!=e||0===e?0:Math.trunc(e)}r=new WeakMap;var A=["PageUp","PageDown"],N=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],E={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},R="Slider",[D,T,j]=function(e){let t=e+"CollectionProvider",[n,r]=f(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return(0,c.jsx)(a,{scope:t,itemMap:i,collectionRef:r,children:n})};l.displayName=t;let u=e+"CollectionSlot",d=g(u),h=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(t,i(u,n).collectionRef);return(0,c.jsx)(d,{ref:o,children:r})});h.displayName=u;let m=e+"CollectionItemSlot",p="data-radix-collection-item",v=g(m),y=o.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,l=o.useRef(null),u=s(t,l),d=i(m,n);return o.useEffect(()=>(d.itemMap.set(l,{ref:l,...a}),()=>void d.itemMap.delete(l))),(0,c.jsx)(v,{[p]:"",ref:u,children:r})});return y.displayName=m,[{Provider:l,Slot:h,ItemSlot:y},function(t){let n=i(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(R),[W,O]=f(R,[j]),[_,L]=W(R),I=o.forwardRef((e,t)=>{let{name:n,min:r=0,max:a=100,step:u=1,orientation:d="horizontal",disabled:s=!1,minStepsBetweenThumbs:f=0,defaultValue:h=[r],value:p,onValueChange:v=()=>{},onValueCommit:g=()=>{},inverted:y=!1,form:w,...b}=e,x=o.useRef(new Set),M=o.useRef(0),k="horizontal"===d,[C=[],S]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[a,i,l]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),a=o.useRef(n),i=o.useRef(t);return m(()=>{i.current=t},[t]),o.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}({defaultProp:t,onChange:n}),u=void 0!==e,d=u?e:a;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,r])}return[d,o.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else i(t)},[u,e,i,l])]}({prop:p,defaultProp:h,onChange:e=>{var t;null===(t=[...x.current][M.current])||void 0===t||t.focus(),v(e)}}),P=o.useRef(C);function E(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},o=(String(u).split(".")[1]||"").length,l=i(function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-r)/u)*u+r,o),[r,a]);S(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,l,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=t;return!0}(r,f*u))return e;{M.current=r.indexOf(l);let t=String(r)!==String(e);return t&&n&&g(r),t?r:e}})}return(0,c.jsx)(_,{scope:e.__scopeSlider,name:n,disabled:s,min:r,max:a,valueIndexToChangeRef:M,thumbs:x.current,values:C,orientation:d,form:w,children:(0,c.jsx)(D.Provider,{scope:e.__scopeSlider,children:(0,c.jsx)(D.Slot,{scope:e.__scopeSlider,children:(0,c.jsx)(k?F:Y,{"aria-disabled":s,"data-disabled":s?"":void 0,...b,ref:t,onPointerDown:l(b.onPointerDown,()=>{s||(P.current=C)}),min:r,max:a,inverted:y,onSlideStart:s?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(C,e);E(e,t)},onSlideMove:s?void 0:function(e){E(e,M.current)},onSlideEnd:s?void 0:function(){let e=P.current[M.current];C[M.current]!==e&&g(C)},onHomeKeyDown:()=>!s&&E(r,0,{commit:!0}),onEndKeyDown:()=>!s&&E(a,C.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!s){let e=A.includes(t.key)||t.shiftKey&&N.includes(t.key),r=M.current;E(C[r]+u*(e?10:1)*n,r,{commit:!0})}}})})})})});I.displayName=R;var[z,H]=W(R,{startEdge:"left",endEdge:"right",size:"width",direction:1}),F=o.forwardRef((e,t)=>{let{min:n,max:r,dir:a,inverted:i,onSlideStart:l,onSlideMove:u,onSlideEnd:d,onStepKeyDown:f,...h}=e,[m,v]=o.useState(null),g=s(t,e=>v(e)),y=o.useRef(void 0),w=function(e){let t=o.useContext(p);return e||t||"ltr"}(a),b="ltr"===w,x=b&&!i||!b&&i;function M(e){let t=y.current||m.getBoundingClientRect(),o=Z([0,t.width],x?[n,r]:[r,n]);return y.current=t,o(e-t.left)}return(0,c.jsx)(z,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:(0,c.jsx)(q,{dir:w,"data-orientation":"horizontal",...h,ref:g,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=M(e.clientX);null==l||l(t)},onSlideMove:e=>{let t=M(e.clientX);null==u||u(t)},onSlideEnd:()=>{y.current=void 0,null==d||d()},onStepKeyDown:e=>{let t=E[x?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),Y=o.forwardRef((e,t)=>{let{min:n,max:r,inverted:a,onSlideStart:i,onSlideMove:l,onSlideEnd:u,onStepKeyDown:d,...f}=e,h=o.useRef(null),m=s(t,h),p=o.useRef(void 0),v=!a;function g(e){let t=p.current||h.current.getBoundingClientRect(),o=Z([0,t.height],v?[r,n]:[n,r]);return p.current=t,o(e-t.top)}return(0,c.jsx)(z,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:(0,c.jsx)(q,{"data-orientation":"vertical",...f,ref:m,style:{...f.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=g(e.clientY);null==i||i(t)},onSlideMove:e=>{let t=g(e.clientY);null==l||l(t)},onSlideEnd:()=>{p.current=void 0,null==u||u()},onStepKeyDown:e=>{let t=E[v?"from-bottom":"from-top"].includes(e.key);null==d||d({event:e,direction:t?-1:1})}})})}),q=o.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:i,onEndKeyDown:u,onStepKeyDown:d,...s}=e,f=L(R,n);return(0,c.jsx)(b.span,{...s,ref:t,onKeyDown:l(e.onKeyDown,e=>{"Home"===e.key?(i(e),e.preventDefault()):"End"===e.key?(u(e),e.preventDefault()):A.concat(N).includes(e.key)&&(d(e),e.preventDefault())}),onPointerDown:l(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),f.thumbs.has(t)?t.focus():r(e)}),onPointerMove:l(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:l(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),$="SliderTrack",B=o.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,o=L($,n);return(0,c.jsx)(b.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});B.displayName=$;var V="SliderRange",X=o.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,a=L(V,n),i=H(V,n),l=s(t,o.useRef(null)),u=a.values.length,d=a.values.map(e=>J(e,a.min,a.max)),f=u>1?Math.min(...d):0,h=100-Math.max(...d);return(0,c.jsx)(b.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...r,ref:l,style:{...e.style,[i.startEdge]:f+"%",[i.endEdge]:h+"%"}})});X.displayName=V;var G="SliderThumb",U=o.forwardRef((e,t)=>{let n=T(e.__scopeSlider),[r,a]=o.useState(null),i=s(t,e=>a(e)),l=o.useMemo(()=>r?n().findIndex(e=>e.ref.current===r):-1,[n,r]);return(0,c.jsx)(Q,{...e,ref:i,index:l})}),Q=o.forwardRef((e,t)=>{let{__scopeSlider:n,index:r,name:a,...i}=e,u=L(G,n),d=H(G,n),[f,m]=o.useState(null),p=s(t,e=>m(e)),v=!f||u.form||!!f.closest("form"),g=function(e){let[t,n]=o.useState(void 0);return h(()=>{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 a=t[0];if("borderBoxSize"in a){let e=a.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}(f),y=u.values[r],w=void 0===y?0:J(y,u.min,u.max),x=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(r,u.values.length),M=null==g?void 0:g[d.size],k=M?function(e,t,n){let r=e/2,o=Z([0,50],[0,r]);return(r-o(t)*n)*n}(M,w,d.direction):0;return o.useEffect(()=>{if(f)return u.thumbs.add(f),()=>{u.thumbs.delete(f)}},[f,u.thumbs]),(0,c.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[d.startEdge]:"calc(".concat(w,"% + ").concat(k,"px)")},children:[(0,c.jsx)(D.ItemSlot,{scope:e.__scopeSlider,children:(0,c.jsx)(b.span,{role:"slider","aria-label":e["aria-label"]||x,"aria-valuemin":u.min,"aria-valuenow":y,"aria-valuemax":u.max,"aria-orientation":u.orientation,"data-orientation":u.orientation,"data-disabled":u.disabled?"":void 0,tabIndex:u.disabled?void 0:0,...i,ref:p,style:void 0===y?{display:"none"}:e.style,onFocus:l(e.onFocus,()=>{u.valueIndexToChangeRef.current=r})})}),v&&(0,c.jsx)(K,{name:null!=a?a:u.name?u.name+(u.values.length>1?"[]":""):void 0,form:u.form,value:y},r)]})});U.displayName=G;var K=o.forwardRef((e,t)=>{let{__scopeSlider:n,value:r,...a}=e,i=o.useRef(null),l=s(i,t),u=(0,v.Z)(r);return o.useEffect(()=>{let e=i.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(u!==r&&t){let n=new Event("input",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[u,r]),(0,c.jsx)(b.input,{style:{display:"none"},...a,ref:l,defaultValue:r})});function J(e,t,n){return i(100/(n-t)*(e-t),[0,100])}function Z(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}K.displayName="RadioBubbleInput";var ee=I,et=B,en=X,er=U},9676:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(9946).A)("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])}}]);