PageSourceSearch

https://prepiqfrontend.vercel.app/assets/JobTrackerPage-Cx8Fe3xs.js

js prepiqfrontend.vercel.app collected 2026-10-03 07:32:05 UTC 117,059 bytes, 63 lines download raw bytes

vendor: 4,658 bytes, lines 1-11
1import{c as hr,r as l,D as Qe,k as Re,O as Da,Q as Ca,U as Na,V as Ea,W as Mt,j as i,s as et,H as mr,l as Ra,Y as ja,n as gr,o as jt,Z as pr,_ as vr,h as br,$ as ka,q as Aa,a0 as Oa,a1 as Pa,a2 as Ma,a3 as Ta,a4 as Ia,a5 as La,a6 as Fa,a7 as Wa,R as H,a8 as Rt,b as Ya,a as $a,u as Ba,I as Be,X as _a,a9 as $n,aa as za,B as _e,ab as Bn,ac as _n,ad as zn,ae as Xa,af as qa,ag as Ua,ah as Ha,y as Va}from"./index-CqaJ_QI4.js";import{L as pe}from"./label-B1MSSS0X.js";import{T as Ja}from"./textarea-B17kCSfH.js";import{B as Nn}from"./badge-sGbMbbTw.js";import{S as xt,a as yt,b as wt,c as St,d as Ge}from"./select-DXrpJjbg.js";import{A as Ga,a as Ka,b as Qa,c as Za,d as eo,e as to,f as no,g as ro}from"./alert-dialog-DxM_LL3q.js";import{P as Xn}from"./plus-C8B8X5Oj.js";import{C as ao}from"./chevron-left-DuBzMKQw.js";import{C as oo}from"./chevron-right-CpbuyBWg.js";import"./index-BHwqngWE.js";import"./index-D_U59KNd.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const so=hr("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const io=hr("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);function be(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function qe(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function lo(e,t){const n=be(e);return isNaN(t)?qe(e,NaN):(t&&n.setDate(n.getDate()+t),n)}const xr=6048e5,co=864e5;let uo={};function nn(){return uo}function ut(e,t){var c,u,d,f;const n=nn(),r=(t==null?void 0:t.weekStartsOn)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,a=be(e),o=a.getDay(),s=(o<r?7:0)+o-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function Vt(e){return ut(e,{weekStartsOn:1})}function yr(e){const t=be(e),n=t.getFullYear(),r=qe(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=Vt(r),o=qe(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const s=Vt(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Jt(e){const t=be(e);return t.setHours(0,0,0,0),t}function qn(e){const t=be(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 fo(e,t){const n=Jt(e),r=Jt(t),a=+n-qn(n),o=+r-qn(r);return Math.round((a-o)/co)}function ho(e){const t=yr(e),n=qe(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Vt(n)}function wr(e,t){const n=t*7;return lo(e,n)}function mo(e,t){const n=Jt(e),r=Jt(t);return+n==+r}function go(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function po(e){if(!go(e)&&typeof e!="number")return!1;const t=be(e);return!isNaN(Number(t))}function vo(e){const t=be(e),n=qe(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const bo={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"}},xo=(e,t,n)=>{let r;const a=bo[e];
vendor: 17,129 bytes, line 11
11return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function pn(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const yo={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wo={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},So={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Do={date:pn({formats:yo,defaultWidth:"full"}),time:pn({formats:wo,defaultWidth:"full"}),dateTime:pn({formats:So,defaultWidth:"full"})},Co={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},No=(e,t,n,r)=>Co[e];function Dt(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;a=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[c]||e.values[s]}const o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}const Eo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ro={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jo={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"]},ko={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"]},Ao={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"}},Oo={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"}},Po=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Mo={ordinalNumber:Po,era:Dt({values:Eo,defaultWidth:"wide"}),quarter:Dt({values:Ro,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Dt({values:jo,defaultWidth:"wide"}),day:Dt({values:ko,defaultWidth:"wide"}),dayPeriod:Dt({values:Ao,defaultWidth:"wide",formattingValues:Oo,defaultFormattingWidth:"wide"})};function Ct(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const s=o[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?Io(c,h=>h.test(s)):To(c,h=>h.test(s));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(s.length);return{value:d,rest:f}}}function To(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Io(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Lo(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(a.length);return{value:s,rest:c}}}const Fo=/^(\d+)(th|st|nd|rd)?/i,Wo=/\d+/i,Yo={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},$o={any:[/^b/i,/^(a|c)/i]},Bo={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_o={any:[/1/i,/2/i,/3/i,/4/i]},zo={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},Xo={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]},qo={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},Uo={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]},Ho={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},Vo={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}},Jo={ordinalNumber:Lo({matchPattern:Fo,parsePattern:Wo,valueCallback:e=>parseInt(e,10)}),era:Ct({matchPatterns:Yo,defaultMatchWidth:"wide",parsePatterns:$o,defaultParseWidth:"any"}),quarter:Ct({matchPatterns:Bo,defaultMatchWidth:"wide",parsePatterns:_o,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ct({matchPatterns:zo,defaultMatchWidth:"wide",parsePatterns:Xo,defaultParseWidth:"any"}),day:Ct({matchPatterns:qo,defaultMatchWidth:"wide",parsePatterns:Uo,defaultParseWidth:"any"}),dayPeriod:Ct({matchPatterns:Ho,defaultMatchWidth:"any",parsePatterns:Vo,defaultParseWidth:"any"})},Go={code:"en-US",formatDistance:xo,formatLong:Do,formatRelative:No,localize:Mo,match:Jo,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ko(e){const t=be(e);return fo(t,vo(t))+1}function Qo(e){const t=be(e),n=+Vt(t)-+ho(t);return Math.round(n/xr)+1}function Sr(e,t){var f,h,g,p;const n=be(e),r=n.getFullYear(),a=nn(),o=(t==null?void 0:t.firstWeekContainsDate)??((h=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??a.firstWeekContainsDate??((p=(g=a.locale)==null?void 0:g.options)==null?void 0:p.firstWeekContainsDate)??1,s=qe(e,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const c=ut(s,t),u=qe(e,0);u.setFullYear(r,0,o),u.setHours(0,0,0,0);const d=ut(u,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function Zo(e,t){var c,u,d,f;const n=nn(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,a=Sr(e,t),o=qe(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),ut(o,t)}function es(e,t){const n=be(e),r=+ut(n,t)-+Zo(n,t);return Math.round(r/xr)+1}function B(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const ze={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return B(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):B(n+1,2)},d(e,t){return B(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return B(e.getHours()%12||12,t.length)},H(e,t){return B(e.getHours(),t.length)},m(e,t){return B(e.getMinutes(),t.length)},s(e,t){return B(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return B(a,t.length)}},ot={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Un={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return ze.y(e,t)},Y:function(e,t,n,r){const a=Sr(e,r),o=a>0?a:1-a;if(t==="YY"){const s=o%100;return B(s,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):B(o,t.length)},R:function(e,t){const n=yr(e);return B(n,t.length)},u:function(e,t){const n=e.getFullYear();return B(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return B(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return B(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return ze.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return B(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=es(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):B(a,t.length)},I:function(e,t,n){const r=Qo(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):B(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):ze.d(e,t)},D:function(e,t,n){const r=Ko(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):B(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return B(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return B(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return B(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=ot.noon:r===0?a=ot.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=ot.evening:r>=12?a=ot.afternoon:r>=4?a=ot.morning:a=ot.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ze.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):ze.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):B(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):B(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):ze.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):ze.s(e,t)},S:function(e,t){return ze.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Vn(r);case"XXXX":case"XX":return Ke(r);case"XXXXX":case"XXX":default:return Ke(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Vn(r);case"xxxx":case"xx":return Ke(r);case"xxxxx":case"xxx":default:return Ke(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Hn(r,":");case"OOOO":default:return"GMT"+Ke(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Hn(r,":");case"zzzz":default:return"GMT"+Ke(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return B(r,t.length)},T:function(e,t,n){const r=e.getTime();return B(r,t.length)}};function Hn(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+t+B(o,2)}function Vn(e,t){return e%60===0?(e>0?"-":"+")+B(Math.abs(e)/60,2):Ke(e,t)}function Ke(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=B(Math.trunc(r/60),2),o=B(r%60,2);return n+a+t+o}const Jn=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Dr=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},ts=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return Jn(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Jn(r,t)).replace("{{time}}",Dr(a,t))},ns={p:Dr,P:ts},rs=/^D+$/,as=/^Y+$/,os=["D","DD","YY","YYYY"];function ss(e){return rs.test(e)}function is(e){return as.test(e)}function ls(e,t,n){const r=cs(e,t,n);if(console.warn(r),os.includes(e))throw new RangeError(r)}function cs(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const us=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ds=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fs=/^'([^]*?)'?$/,hs=/''/g,ms=/[a-zA-Z]/;function Nt(e,t,n){var f,h,g,p;const r=nn(),a=r.locale??Go,o=r.firstWeekContainsDate??((h=(f=r.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)??1,s=r.weekStartsOn??((p=(g=r.locale)==null?void 0:g.options)==null?void 0:p.weekStartsOn)??0,c=be(e);if(!po(c))throw new RangeError("Invalid time value");let u=t.match(ds).map(y=>{const b=y[0];if(b==="p"||b==="P"){const x=ns[b];return x(y,a.formatLong)}return y}).join("").match(us).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const b=y[0];if(b==="'")return{isToken:!1,value:gs(y)};if(Un[b])return{isToken:!0,value:y};
vendor: 17,260 bytes, line 11
11if(b.match(ms))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return{isToken:!1,value:y}});a.localize.preprocessor&&(u=a.localize.preprocessor(c,u));const d={firstWeekContainsDate:o,weekStartsOn:s,locale:a};return u.map(y=>{if(!y.isToken)return y.value;const b=y.value;(is(b)||ss(b))&&ls(b,t,String(e));const x=Un[b[0]];return x(c,b,a.localize,d)}).join("")}function gs(e){const t=e.match(fs);return t?t[1].replace(hs,"'"):e}function ps(e,t){return wr(e,-1)}var Gn=1,vs=.9,bs=.8,xs=.17,vn=.1,bn=.999,ys=.9999,ws=.99,Ss=/[\\\/_+.#"@\[\(\{&]/,Ds=/[\\\/_+.#"@\[\(\{&]/g,Cs=/[\s-]/,Cr=/[\s-]/g;function En(e,t,n,r,a,o,s){if(o===t.length)return a===e.length?Gn:ws;var c=`${a},${o}`;if(s[c]!==void 0)return s[c];for(var u=r.charAt(o),d=n.indexOf(u,a),f=0,h,g,p,y;d>=0;)h=En(e,t,n,r,d+1,o+1,s),h>f&&(d===a?h*=Gn:Ss.test(e.charAt(d-1))?(h*=bs,p=e.slice(a,d-1).match(Ds),p&&a>0&&(h*=Math.pow(bn,p.length))):Cs.test(e.charAt(d-1))?(h*=vs,y=e.slice(a,d-1).match(Cr),y&&a>0&&(h*=Math.pow(bn,y.length))):(h*=xs,a>0&&(h*=Math.pow(bn,d-a))),e.charAt(d)!==t.charAt(o)&&(h*=ys)),(h<vn&&n.charAt(d-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(d-1)!==r.charAt(o))&&(g=En(e,t,n,r,d+1,o+2,s),g*vn>h&&(h=g*vn)),h>f&&(f=h),d=n.indexOf(u,d+1);return s[c]=f,f}function Kn(e){return e.toLowerCase().replace(Cr," ")}function Ns(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,En(e,t,Kn(e),Kn(t),0,0,{})}var Et='[cmdk-group=""]',xn='[cmdk-group-items=""]',Es='[cmdk-group-heading=""]',Nr='[cmdk-item=""]',Qn=`${Nr}:not([aria-disabled="true"])`,Rn="cmdk-item-select",it="data-value",Rs=(e,t,n)=>Ns(e,t,n),Er=l.createContext(void 0),Ft=()=>l.useContext(Er),Rr=l.createContext(void 0),On=()=>l.useContext(Rr),jr=l.createContext(void 0),kr=l.forwardRef((e,t)=>{let n=lt(()=>{var v,S;return{search:"",value:(S=(v=e.value)!=null?v:e.defaultValue)!=null?S:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=lt(()=>new Set),a=lt(()=>new Map),o=lt(()=>new Map),s=lt(()=>new Set),c=Ar(e),{label:u,children:d,value:f,onValueChange:h,filter:g,shouldFilter:p,loop:y,disablePointerSelection:b=!1,vimBindings:x=!0,...j}=e,k=Qe(),R=Qe(),M=Qe(),O=l.useRef(null),D=Ws();Ze(()=>{if(f!==void 0){let v=f.trim();n.current.value=v,C.emit()}},[f]),Ze(()=>{D(6,ee)},[]);let C=l.useMemo(()=>({subscribe:v=>(s.current.add(v),()=>s.current.delete(v)),snapshot:()=>n.current,setState:(v,S,P)=>{var w,A,$,q;if(!Object.is(n.current[v],S)){if(n.current[v]=S,v==="search")J(),T(),D(1,Y);else if(v==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let _=document.getElementById(M);_?_.focus():(w=document.getElementById(k))==null||w.focus()}if(D(7,()=>{var _;n.current.selectedItemId=(_=V())==null?void 0:_.id,C.emit()}),P||D(5,ee),((A=c.current)==null?void 0:A.value)!==void 0){let _=S??"";(q=($=c.current).onValueChange)==null||q.call($,_);return}}C.emit()}},emit:()=>{s.current.forEach(v=>v())}}),[]),N=l.useMemo(()=>({value:(v,S,P)=>{var w;S!==((w=o.current.get(v))==null?void 0:w.value)&&(o.current.set(v,{value:S,keywords:P}),n.current.filtered.items.set(v,W(S,P)),D(2,()=>{T(),C.emit()}))},item:(v,S)=>(r.current.add(v),S&&(a.current.has(S)?a.current.get(S).add(v):a.current.set(S,new Set([v]))),D(3,()=>{J(),T(),n.current.value||Y(),C.emit()}),()=>{o.current.delete(v),r.current.delete(v),n.current.filtered.items.delete(v);let P=V();D(4,()=>{J(),(P==null?void 0:P.getAttribute("id"))===v&&Y(),C.emit()})}),group:v=>(a.current.has(v)||a.current.set(v,new Set),()=>{o.current.delete(v),a.current.delete(v)}),filter:()=>c.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>c.current.disablePointerSelection,listId:k,inputId:M,labelId:R,listInnerRef:O}),[]);function W(v,S){var P,w;let A=(w=(P=c.current)==null?void 0:P.filter)!=null?w:Rs;return v?A(v,n.current.search,S):0}function T(){if(!n.current.search||c.current.shouldFilter===!1)return;let v=n.current.filtered.items,S=[];n.current.filtered.groups.forEach(w=>{let A=a.current.get(w),$=0;A.forEach(q=>{let _=v.get(q);$=Math.max(_,$)}),S.push([w,$])});let P=O.current;oe().sort((w,A)=>{var $,q;let _=w.getAttribute("id"),I=A.getAttribute("id");return(($=v.get(I))!=null?$:0)-((q=v.get(_))!=null?q:0)}).forEach(w=>{let A=w.closest(xn);A?A.appendChild(w.parentElement===A?w:w.closest(`${xn} > *`)):P.appendChild(w.parentElement===P?w:w.closest(`${xn} > *`))}),S.sort((w,A)=>A[1]-w[1]).forEach(w=>{var A;let $=(A=O.current)==null?void 0:A.querySelector(`${Et}[${it}="${encodeURIComponent(w[0])}"]`);$==null||$.parentElement.appendChild($)})}function Y(){let v=oe().find(P=>P.getAttribute("aria-disabled")!=="true"),S=v==null?void 0:v.getAttribute(it);C.setState("value",S||void 0)}function J(){var v,S,P,w;if(!n.current.search||c.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let A=0;for(let $ of r.current){let q=(S=(v=o.current.get($))==null?void 0:v.value)!=null?S:"",_=(w=(P=o.current.get($))==null?void 0:P.keywords)!=null?w:[],I=W(q,_);n.current.filtered.items.set($,I),I>0&&A++}for(let[$,q]of a.current)for(let _ of q)if(n.current.filtered.items.get(_)>0){n.current.filtered.groups.add($);break}n.current.filtered.count=A}function ee(){var v,S,P;let w=V();w&&(((v=w.parentElement)==null?void 0:v.firstChild)===w&&((P=(S=w.closest(Et))==null?void 0:S.querySelector(Es))==null||P.scrollIntoView({block:"nearest"})),w.scrollIntoView({block:"nearest"}))}function V(){var v;return(v=O.current)==null?void 0:v.querySelector(`${Nr}[aria-selected="true"]`)}function oe(){var v;return Array.from(((v=O.current)==null?void 0:v.querySelectorAll(Qn))||[])}function X(v){let S=oe()[v];S&&C.setState("value",S.getAttribute(it))}function z(v){var S;let P=V(),w=oe(),A=w.findIndex(q=>q===P),$=w[A+v];(S=c.current)!=null&&S.loop&&($=A+v<0?w[w.length-1]:A+v===w.length?w[0]:w[A+v]),$&&C.setState("value",$.getAttribute(it))}function Se(v){let S=V(),P=S==null?void 0:S.closest(Et),w;for(;P&&!w;)P=v>0?Ls(P,Et):Fs(P,Et),w=P==null?void 0:P.querySelector(Qn);w?C.setState("value",w.getAttribute(it)):z(v)}let Q=()=>X(oe().length-1),de=v=>{v.preventDefault(),v.metaKey?Q():v.altKey?Se(1):z(1)},fe=v=>{v.preventDefault(),v.metaKey?X(0):v.altKey?Se(-1):z(-1)};return l.createElement(Re.div,{ref:t,tabIndex:-1,...j,"cmdk-root":"",onKeyDown:v=>{var S;(S=j.onKeyDown)==null||S.call(j,v);let P=v.nativeEvent.isComposing||v.keyCode===229;if(!(v.defaultPrevented||P))switch(v.key){case"n":case"j":{x&&v.ctrlKey&&de(v);break}case"ArrowDown":{de(v);break}case"p":case"k":{x&&v.ctrlKey&&fe(v);break}case"ArrowUp":{fe(v);break}case"Home":{v.preventDefault(),X(0);break}case"End":{v.preventDefault(),Q();break}case"Enter":{v.preventDefault();let w=V();if(w){let A=new Event(Rn);w.dispatchEvent(A)}}}}},l.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:$s},u),rn(e,v=>l.createElement(Rr.Provider,{value:C},l.createElement(Er.Provider,{value:N},v))))}),js=l.forwardRef((e,t)=>{var n,r;let a=Qe(),o=l.useRef(null),s=l.useContext(jr),c=Ft(),u=Ar(e),d=(r=(n=u.current)==null?void 0:n.forceMount)!=null?r:s==null?void 0:s.forceMount;Ze(()=>{if(!d)return c.item(a,s==null?void 0:s.id)},[d]);let f=Or(a,o,[e.value,e.children,o],e.keywords),h=On(),g=Ue(D=>D.value&&D.value===f.current),p=Ue(D=>d||c.filter()===!1?!0:D.search?D.filtered.items.get(a)>0:!0);l.useEffect(()=>{let D=o.current;if(!(!D||e.disabled))return D.addEventListener(Rn,y),()=>D.removeEventListener(Rn,y)},[p,e.onSelect,e.disabled]);function y(){var D,C;b(),(C=(D=u.current).onSelect)==null||C.call(D,f.current)}function b(){h.setState("value",f.current,!0)}if(!p)return null;let{disabled:x,value:j,onSelect:k,forceMount:R,keywords:M,...O}=e;return l.createElement(Re.div,{ref:Mt(o,t),...O,id:a,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!g,"data-disabled":!!x,"data-selected":!!g,onPointerMove:x||c.getDisablePointerSelection()?void 0:b,onClick:x?void 0:y},e.children)}),ks=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,s=Qe(),c=l.useRef(null),u=l.useRef(null),d=Qe(),f=Ft(),h=Ue(p=>a||f.filter()===!1?!0:p.search?p.filtered.groups.has(s):!0);Ze(()=>f.group(s),[]),Or(s,c,[e.value,e.heading,u]);let g=l.useMemo(()=>({id:s,forceMount:a}),[a]);return l.createElement(Re.div,{ref:Mt(c,t),...o,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},n&&l.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),rn(e,p=>l.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},l.createElement(jr.Provider,{value:g},p))))}),As=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=l.useRef(null),o=Ue(s=>!s.search);return!n&&!o?null:l.createElement(Re.div,{ref:Mt(a,t),...r,"cmdk-separator":"",role:"separator"})}),Os=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,o=On(),s=Ue(d=>d.search),c=Ue(d=>d.selectedItemId),u=Ft();return l.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),l.createElement(Re.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":c,id:u.inputId,type:"text",value:a?e.value:s,onChange:d=>{a||o.setState("search",d.target.value),n==null||n(d.target.value)}})}),Ps=l.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=l.useRef(null),s=l.useRef(null),c=Ue(d=>d.selectedItemId),u=Ft();return l.useEffect(()=>{if(s.current&&o.current){let d=s.current,f=o.current,h,g=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let p=d.offsetHeight;f.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return g.observe(d),()=>{cancelAnimationFrame(h),g.unobserve(d)}}},[]),l.createElement(Re.div,{ref:Mt(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":c,"aria-label":r,id:u.listId},rn(e,d=>l.createElement("div",{ref:Mt(s,u.listInnerRef),"cmdk-list-sizer":""},d)))}),Ms=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:s,...c}=e;return l.createElement(Da,{open:n,onOpenChange:r},l.createElement(Ca,{container:s},l.createElement(Na,{"cmdk-overlay":"",className:a}),l.createElement(Ea,{"aria-label":e.label,"cmdk-dialog":"",className:o},l.createElement(kr,{ref:t,...c}))))}),Ts=l.forwardRef((e,t)=>Ue(n=>n.filtered.count===0)?l.createElement(Re.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Is=l.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return l.createElement(Re.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},rn(e,s=>l.createElement("div",{"aria-hidden":!0},s)))}),se=Object.assign(kr,{List:Ps,Item:js,Input:Os,Group:ks,Separator:As,Dialog:Ms,Empty:Ts,Loading:Is});function Ls(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Fs(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Ar(e){let t=l.useRef(e);return Ze(()=>{t.current=e}),t}var Ze=typeof window>"u"?l.useEffect:l.useLayoutEffect;function lt(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function Ue(e){let t=On(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function Or(e,t,n,r=[]){let a=l.useRef(),o=Ft();return Ze(()=>{var s;let c=(()=>{var d;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():a.current}})(),u=r.map(d=>d.trim());o.value(e,c,u),(s=t.current)==null||s.setAttribute(it,c),a.current=c}),a}var Ws=()=>{let[e,t]=l.useState(),n=lt(()=>new Map);return Ze(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function Ys(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function rn({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(Ys(t),{ref:t.ref},n(t.props.children)):n(t)}var $s={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Pr=l.forwardRef(({className:e,...t},n)=>i.jsx(se,{ref:n,className:et("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Pr.displayName=se.displayName;const Mr=l.forwardRef(({className:e,...t},n)=>i.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[i.jsx(mr,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),i.jsx(se.Input,{ref:n,className:et("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Mr.displayName=se.Input.displayName;const Bs=l.forwardRef(({className:e,...t},n)=>i.jsx(se.List,{ref:n,className:et("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Bs.displayName=se.List.displayName;const Tr=l.forwardRef((e,t)=>i.jsx(se.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Tr.displayName=se.Empty.displayName;const Ir=l.forwardRef(({className:e,...t},n)=>i.jsx(se.Group,{ref:n,className:et("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ir.displayName=se.Group.displayName;const _s=l.forwardRef(({className:e,...t},n)=>i.jsx(se.Separator,{ref:n,className:et("-mx-1 h-px bg-border",e),...t}));_s.displayName=se.Separator.displayName;const Lr=l.forwardRef(({className:e,...t},n)=>i.jsx(se.Item,{ref:n,className:et("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));Lr.displayName=se.Item.displayName;var an="Popover",[Fr]=Aa(an,[vr]),Wt=vr(),[zs,Ve]=Fr(an),Wr=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:s=!1}=e,c=Wt(t),u=l.useRef(null),[d,f]=l.useState(!1),[h,g]=Ra({prop:r,defaultProp:a??!1,onChange:o,caller:an});return i.jsx(ja,{...c,children:i.jsx(zs,{scope:t,contentId:Qe(),triggerRef:u,open:h,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(p=>!p),[g]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:s,children:n})})};Wr.displayName=an;var Yr="PopoverAnchor",Xs=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Ve(Yr,n),o=Wt(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=a;return l.useEffect(()=>(s(),()=>c()),[s,c]),i.jsx(pr,{...o,...r,ref:t})});Xs.displayName=Yr;var $r="PopoverTrigger",Br=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Ve($r,n),o=Wt(n),s=gr(t,a.triggerRef),c=i.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Ur(a.open),...r,ref:s,onClick:jt(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?c:i.jsx(pr,{asChild:!0,...o,children:c})});Br.displayName=$r;var Pn="PopoverPortal",[qs,Us]=Fr(Pn,{forceMount:void 0}),_r=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,o=Ve(Pn,t);return i.jsx(qs,{scope:t,forceMount:n,children:i.jsx(br,{present:n||o.open,children:i.jsx(ka,{asChild:!0,container:a,children:r})})})};_r.displayName=Pn;var dt="PopoverContent",zr=l.forwardRef((e,t)=>{const n=Us(dt,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,o=Ve(dt,e.__scopePopover);return i.jsx(br,{present:r||o.open,children:o.modal?i.jsx(Vs,{...a,ref:t}):i.jsx(Js,{...a,ref:t})})});zr.displayName=dt;var Hs=Ma("PopoverContent.RemoveScroll"),Vs=l.forwardRef((e,t)=>{const n=Ve(dt,e.__scopePopover),r=l.useRef(null),a=gr(t,r),o=l.useRef(!1);return l.useEffect(()=>{const s=r.current;if(s)return Oa(s)},[]),i.jsx(Pa,{as:Hs,allowPinchZoom:!0,children:i.jsx(Xr,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:jt(e.onCloseAutoFocus,s=>{var c;s.preventDefault(),o.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:jt(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,d=c.button===2||u;o.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:jt(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),Js=l.forwardRef((e,t)=>{const n=Ve(dt,e.__scopePopover),r=l.useRef(!1),a=l.useRef(!1);return i.jsx(Xr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,o),o.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{var u,d;(u=e.onInteractOutside)==null||u.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const s=o.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),Xr=l.forwardRef((e,t)=>
11{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,...h}=e,g=Ve(dt,n),p=Wt(n);return Ta(),i.jsx(Ia,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:i.jsx(La,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:f,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onDismiss:()=>g.onOpenChange(!1),children:i.jsx(Fa,{"data-state":Ur(g.open),role:"dialog",id:g.contentId,...p,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),qr="PopoverClose",Gs=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Ve(qr,n);return i.jsx(Re.button,{type:"button",...r,ref:t,onClick:jt(e.onClick,()=>a.onOpenChange(!1))})});Gs.displayName=qr;var Ks="PopoverArrow",Qs=l.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Wt(n);return i.jsx(Wa,{...a,...r,ref:t})});Qs.displayName=Ks;function Ur(e){return e?"open":"closed"}var Zs=Wr,ei=Br,ti=_r,Hr=zr;const ni=Zs,ri=ei,Vr=l.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},a)=>i.jsx(ti,{children:i.jsx(Hr,{ref:a,align:t,sideOffset:n,className:et("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));Vr.displayName=Hr.displayName;function ai(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.useMemo(()=>r=>{t.forEach(a=>a(r))},t)}const on=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ft(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Mn(e){return"nodeType"in e}function ae(e){var t,n;return e?ft(e)?e:Mn(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Tn(e){const{Document:t}=ae(e);return e instanceof t}function Yt(e){return ft(e)?!1:e instanceof ae(e).HTMLElement}function Jr(e){return e instanceof ae(e).SVGElement}function ht(e){return e?ft(e)?e.document:Mn(e)?Tn(e)?e:Yt(e)||Jr(e)?e.ownerDocument:document:document:document}const ye=on?l.useLayoutEffect:l.useEffect;function sn(e){const t=l.useRef(e);return ye(()=>{t.current=e}),l.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current==null?void 0:t.current(...r)},[])}function oi(){const e=l.useRef(null),t=l.useCallback((r,a)=>{e.current=setInterval(r,a)},[]),n=l.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Tt(e,t){t===void 0&&(t=[e]);const n=l.useRef(e);return ye(()=>{n.current!==e&&(n.current=e)},t),n}function $t(e,t){const n=l.useRef();return l.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function Gt(e){const t=sn(e),n=l.useRef(null),r=l.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,r]}function Kt(e){const t=l.useRef();return l.useEffect(()=>{t.current=e},[e]),t.current}let yn={};function Bt(e,t){return l.useMemo(()=>{if(t)return t;const n=yn[e]==null?0:yn[e]+1;return yn[e]=n,e+"-"+n},[e,t])}function Gr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((o,s)=>{const c=Object.entries(s);for(const[u,d]of c){const f=o[u];f!=null&&(o[u]=f+e*d)}return o},{...t})}}const ct=Gr(1),It=Gr(-1);function si(e){return"clientX"in e&&"clientY"in e}function ln(e){if(!e)return!1;const{KeyboardEvent:t}=ae(e.target);return t&&e instanceof t}function ii(e){if(!e)return!1;const{TouchEvent:t}=ae(e.target);return t&&e instanceof t}function Qt(e){if(ii(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return si(e)?{x:e.clientX,y:e.clientY}:null}const He=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[He.Translate.toString(e),He.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Zn="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function li(e){return e.matches(Zn)?e:e.querySelector(Zn)}const ci={display:"none"};function ui(e){let{id:t,value:n}=e;return H.createElement("div",{id:t,style:ci},n)}function di(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return H.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function fi(){const[e,t]=l.useState("");return{announce:l.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Kr=l.createContext(null);function hi(e){const t=l.useContext(Kr);l.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function mi(){const[e]=l.useState(()=>new Set),t=l.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[l.useCallback(r=>{let{type:a,event:o}=r;e.forEach(s=>{var c;return(c=s[a])==null?void 0:c.call(s,o)})},[e]),t]}const gi={draggable:`
12    To pick up a draggable item, press the space bar.
13    While dragging, use the arrow keys to move the item.
14    Press space again to drop the item in its new position, or press escape to cancel.
15  `},pi={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function vi(e){let{announcements:t=pi,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=gi}=e;const{announce:o,announcement:s}=fi(),c=Bt("DndLiveRegion"),[u,d]=l.useState(!1);if(l.useEffect(()=>{d(!0)},[]),hi(l.useMemo(()=>({onDragStart(h){let{active:g}=h;o(t.onDragStart({active:g}))},onDragMove(h){let{active:g,over:p}=h;t.onDragMove&&o(t.onDragMove({active:g,over:p}))},onDragOver(h){let{active:g,over:p}=h;o(t.onDragOver({active:g,over:p}))},onDragEnd(h){let{active:g,over:p}=h;o(t.onDragEnd({active:g,over:p}))},onDragCancel(h){let{active:g,over:p}=h;
15o(t.onDragCancel({active:g,over:p}))}}),[o,t])),!u)return null;const f=H.createElement(H.Fragment,null,H.createElement(ui,{id:r,value:a.draggable}),H.createElement(di,{id:c,announcement:s}));return n?Rt.createPortal(f,n):f}var K;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(K||(K={}));function Zt(){}function wn(e,t){return l.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function bi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const we=Object.freeze({x:0,y:0});function xi(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function yi(e,t){const n=Qt(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function wi(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Si(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function er(e){let{left:t,top:n,height:r,width:a}=e;return[{x:t,y:n},{x:t+a,y:n},{x:t,y:n+r},{x:t+a,y:n+r}]}function Qr(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const Zr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=er(t),o=[];for(const s of r){const{id:c}=s,u=n.get(c);if(u){const d=er(u),f=a.reduce((g,p,y)=>g+xi(d[y],p),0),h=Number((f/4).toFixed(4));o.push({id:c,data:{droppableContainer:s,value:h}})}}return o.sort(wi)};function Di(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),s=a-r,c=o-n;if(r<a&&n<o){const u=t.width*t.height,d=e.width*e.height,f=s*c,h=f/(u+d-f);return Number(h.toFixed(4))}return 0}const Ci=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const o of r){const{id:s}=o,c=n.get(s);if(c){const u=Di(c,t);u>0&&a.push({id:s,data:{droppableContainer:o,value:u}})}}return a.sort(Si)};function Ni(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function ea(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:we}function Ei(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o<r;o++)a[o-1]=arguments[o];return a.reduce((s,c)=>({...s,top:s.top+e*c.y,bottom:s.bottom+e*c.y,left:s.left+e*c.x,right:s.right+e*c.x}),{...n})}}const Ri=Ei(1);function ta(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function ji(e,t,n){const r=ta(t);if(!r)return e;const{scaleX:a,scaleY:o,x:s,y:c}=r,u=e.left-s-(1-a)*parseFloat(n),d=e.top-c-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),f=a?e.width/a:e.width,h=o?e.height/o:e.height;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u}}const ki={ignoreTransform:!1};function mt(e,t){t===void 0&&(t=ki);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:f}=ae(e).getComputedStyle(e);d&&(n=ji(n,d,f))}const{top:r,left:a,width:o,height:s,bottom:c,right:u}=n;return{top:r,left:a,width:o,height:s,bottom:c,right:u}}function tr(e){return mt(e,{ignoreTransform:!0})}function Ai(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Oi(e,t){return t===void 0&&(t=ae(e).getComputedStyle(e)),t.position==="fixed"}function Pi(e,t){t===void 0&&(t=ae(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const o=t[a];return typeof o=="string"?n.test(o):!1})}function cn(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(Tn(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Yt(a)||Jr(a)||n.includes(a))return n;const o=ae(e).getComputedStyle(a);return a!==e&&Pi(a,o)&&n.push(a),Oi(a,o)?n:r(a.parentNode)}return e?r(e):n}function na(e){const[t]=cn(e,1);return t??null}function Sn(e){return!on||!e?null:ft(e)?e:Mn(e)?Tn(e)||e===ht(e).scrollingElement?window:Yt(e)?e:null:null}function ra(e){return ft(e)?e.scrollX:e.scrollLeft}function aa(e){return ft(e)?e.scrollY:e.scrollTop}function jn(e){return{x:ra(e),y:aa(e)}}var Z;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Z||(Z={}));function oa(e){return!on||!e?!1:e===document.scrollingElement}function sa(e){const t={x:0,y:0},n=oa(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:a,isLeft:o,isBottom:s,isRight:c,maxScroll:r,minScroll:t}}const Mi={x:.2,y:.2};function Ti(e,t,n,r,a){let{top:o,left:s,right:c,bottom:u}=n;r===void 0&&(r=10),a===void 0&&(a=Mi);const{isTop:d,isBottom:f,isLeft:h,isRight:g}=sa(e),p={x:0,y:0},y={x:0,y:0},b={height:t.height*a.y,width:t.width*a.x};
15return!d&&o<=t.top+b.height?(p.y=Z.Backward,y.y=r*Math.abs((t.top+b.height-o)/b.height)):!f&&u>=t.bottom-b.height&&(p.y=Z.Forward,y.y=r*Math.abs((t.bottom-b.height-u)/b.height)),!g&&c>=t.right-b.width?(p.x=Z.Forward,y.x=r*Math.abs((t.right-b.width-c)/b.width)):!h&&s<=t.left+b.width&&(p.x=Z.Backward,y.x=r*Math.abs((t.left+b.width-s)/b.width)),{direction:p,speed:y}}function Ii(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:s}=window;return{top:0,left:0,right:o,bottom:s,width:o,height:s}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function ia(e){return e.reduce((t,n)=>ct(t,jn(n)),we)}function Li(e){return e.reduce((t,n)=>t+ra(n),0)}function Fi(e){return e.reduce((t,n)=>t+aa(n),0)}function la(e,t){if(t===void 0&&(t=mt),!e)return;const{top:n,left:r,bottom:a,right:o}=t(e);na(e)&&(a<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Wi=[["x",["left","right"],Li],["y",["top","bottom"],Fi]];class In{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=cn(n),a=ia(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,s,c]of Wi)for(const u of s)Object.defineProperty(this,u,{get:()=>{const d=c(r),f=a[o]-d;return this.rect[u]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class kt{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function Yi(e){const{EventTarget:t}=ae(e);return e instanceof t?e:ht(e)}function Dn(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var ve;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ve||(ve={}));function nr(e){e.preventDefault()}function $i(e){e.stopPropagation()}var F;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(F||(F={}));const ca={start:[F.Space,F.Enter],cancel:[F.Esc],end:[F.Space,F.Enter,F.Tab]},Bi=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case F.Right:return{...n,x:n.x+25};case F.Left:return{...n,x:n.x-25};case F.Down:return{...n,y:n.y+25};case F.Up:return{...n,y:n.y-25}}};class Ln{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new kt(ht(n)),this.windowListeners=new kt(ae(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ve.Resize,this.handleCancel),this.windowListeners.add(ve.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ve.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&la(r),n(we)}handleKeyDown(t){if(ln(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:o=ca,coordinateGetter:s=Bi,scrollBehavior:c="smooth"}=a,{code:u}=t;if(o.end.includes(u)){this.handleEnd(t);return}if(o.cancel.includes(u)){this.handleCancel(t);return}const{collisionRect:d}=r.current,f=d?{x:d.left,y:d.top}:we;this.referenceCoordinates||(this.referenceCoordinates=f);const h=s(t,{active:n,context:r.current,currentCoordinates:f});if(h){const g=It(h,f),p={x:0,y:0},{scrollableAncestors:y}=r.current;for(const b of y){const x=t.code,{isTop:j,isRight:k,isLeft:R,isBottom:M,maxScroll:O,minScroll:D}=sa(b),C=Ii(b),N={x:Math.min(x===F.Right?C.right-C.width/2:C.right,Math.max(x===F.Right?C.left:C.left+C.width/2,h.x)),y:Math.min(x===F.Down?C.bottom-C.height/2:C.bottom,Math.max(x===F.Down?C.top:C.top+C.height/2,h.y))},W=x===F.Right&&!k||x===F.Left&&!R,T=x===F.Down&&!M||x===F.Up&&!j;if(W&&N.x!==h.x){const Y=b.scrollLeft+g.x,J=x===F.Right&&Y<=O.x||x===F.Left&&Y>=D.x;if(J&&!g.y){b.scrollTo({left:Y,behavior:c});return}J?p.x=b.scrollLeft-Y:p.x=x===F.Right?b.scrollLeft-O.x:b.scrollLeft-D.x,p.x&&b.scrollBy({left:-p.x,behavior:c});break}else if(T&&N.y!==h.y){const Y=b.scrollTop+g.y,J=x===F.Down&&Y<=O.y||x===F.Up&&Y>=D.y;if(J&&!g.x){b.scrollTo({top:Y,behavior:c});return}J?p.y=b.scrollTop-Y:p.y=x===F.Down?b.scrollTop-O.y:b.scrollTop-D.y,p.y&&b.scrollBy({top:-p.y,behavior:c});break}}this.handleMove(t,ct(It(h,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Ln.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ca,onActivation:a}=t,{active:o}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const c=o.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function rr(e){return!!(e&&"distance"in e)}function ar(e){return!!(e&&"delay"in e)}class Fn{constructor(t,n,r){var a;r===void 0&&(r=Yi(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:s}=o;this.props=t,this.events=n,this.document=ht(s),this.documentListeners=new kt(this.document),this.listeners=new kt(r),this.windowListeners=new kt(ae(s)),this.initialCoordinates=(a=Qt(o))!=null?a:we,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ve.Resize,this.handleCancel),this.windowListeners.add(ve.DragStart,nr),this.windowListeners.add(ve.VisibilityChange,this.handleCancel),this.windowListeners.add(ve.ContextMenu,nr),this.documentListeners.add(ve.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(ar(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(rr(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:a}=this.props;a(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ve.Click,$i,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ve.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:o}=this,{onMove:s,options:{activationConstraint:c}}=o;if(!a)return;const u=(n=Qt(t))!=null?n:we,d=It(a,u);if(!r&&c){if(rr(c)){if(c.tolerance!=null&&Dn(d,c.tolerance))return this.handleCancel();if(Dn(d,c.distance))return this.handleStart()}if(ar(c)&&Dn(d,c.tolerance))return this.handleCancel();this.handlePending(c,d);return}t.cancelable&&t.preventDefault(),s(u)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===F.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const _i={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Wn extends Fn{constructor(t){const{event:n}=t,r=ht(n.target);super(t,_i,r)}}Wn.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const zi={move:{name:"mousemove"},end:{name:"mouseup"}};var kn;(function(e){e[e.RightClick=2]="RightClick"})(kn||(kn={}));class Xi extends Fn{constructor(t){super(t,zi,ht(t.event.target))}}Xi.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===kn.RightClick?!1:(r==null||r({event:n}),!0)}}];const Cn={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class ua extends Fn{constructor(t){super(t,Cn)}static setup(){return window.addEventListener(Cn.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Cn.move.name,t)};function t(){}}}ua.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r==null||r({event:n}),!0)}}];var At;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(At||(At={}));var en;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
15sedTreeOrder"})(en||(en={}));function qi(e){let{acceleration:t,activator:n=At.Pointer,canScroll:r,draggingRect:a,enabled:o,interval:s=5,order:c=en.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:h,threshold:g}=e;const p=Hi({delta:h,disabled:!o}),[y,b]=oi(),x=l.useRef({x:0,y:0}),j=l.useRef({x:0,y:0}),k=l.useMemo(()=>{switch(n){case At.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case At.DraggableRect:return a}},[n,a,u]),R=l.useRef(null),M=l.useCallback(()=>{const D=R.current;if(!D)return;const C=x.current.x*j.current.x,N=x.current.y*j.current.y;D.scrollBy(C,N)},[]),O=l.useMemo(()=>c===en.TreeOrder?[...d].reverse():d,[c,d]);l.useEffect(()=>{if(!o||!d.length||!k){b();return}for(const D of O){if((r==null?void 0:r(D))===!1)continue;const C=d.indexOf(D),N=f[C];if(!N)continue;const{direction:W,speed:T}=Ti(D,N,k,t,g);for(const Y of["x","y"])p[Y][W[Y]]||(T[Y]=0,W[Y]=0);if(T.x>0||T.y>0){b(),R.current=D,y(M,s),x.current=T,j.current=W;return}}x.current={x:0,y:0},j.current={x:0,y:0},b()},[t,M,r,b,o,s,JSON.stringify(k),JSON.stringify(p),y,d,O,f,JSON.stringify(g)])}const Ui={x:{[Z.Backward]:!1,[Z.Forward]:!1},y:{[Z.Backward]:!1,[Z.Forward]:!1}};function Hi(e){let{delta:t,disabled:n}=e;const r=Kt(t);return $t(a=>{if(n||!r||!a)return Ui;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Z.Backward]:a.x[Z.Backward]||o.x===-1,[Z.Forward]:a.x[Z.Forward]||o.x===1},y:{[Z.Backward]:a.y[Z.Backward]||o.y===-1,[Z.Forward]:a.y[Z.Forward]||o.y===1}}},[n,t,r])}function Vi(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return $t(a=>{var o;return t==null?null:(o=r??a)!=null?o:null},[r,t])}function Ji(e,t){return l.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,o=a.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...o]},[]),[e,t])}var Lt;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Lt||(Lt={}));var An;(function(e){e.Optimized="optimized"})(An||(An={}));const or=new Map;function Gi(e,t){let{dragging:n,dependencies:r,config:a}=t;const[o,s]=l.useState(null),{frequency:c,measure:u,strategy:d}=a,f=l.useRef(e),h=x(),g=Tt(h),p=l.useCallback(function(j){j===void 0&&(j=[]),!g.current&&s(k=>k===null?j:k.concat(j.filter(R=>!k.includes(R))))},[g]),y=l.useRef(null),b=$t(j=>{if(h&&!n)return or;if(!j||j===or||f.current!==e||o!=null){const k=new Map;for(let R of e){if(!R)continue;if(o&&o.length>0&&!o.includes(R.id)&&R.rect.current){k.set(R.id,R.rect.current);continue}const M=R.node.current,O=M?new In(u(M),M):null;R.rect.current=O,O&&k.set(R.id,O)}return k}return j},[e,o,n,h,u]);return l.useEffect(()=>{f.current=e},[e]),l.useEffect(()=>{h||p()},[n,h]),l.useEffect(()=>{o&&o.length>0&&s(null)},[JSON.stringify(o)]),l.useEffect(()=>{h||typeof c!="number"||y.current!==null||(y.current=setTimeout(()=>{p(),y.current=null},c))},[c,h,p,...r]),{droppableRects:b,measureDroppableContainers:p,measuringScheduled:o!=null};function x(){switch(d){case Lt.Always:return!1;case Lt.BeforeDragging:return n;default:return!n}}}function Yn(e,t){return $t(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Ki(e,t){return Yn(e,t)}function Qi(e){let{callback:t,disabled:n}=e;const r=sn(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function un(e){let{callback:t,disabled:n}=e;const r=sn(t),a=l.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return l.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Zi(e){return new In(mt(e),e)}function sr(e,t,n){t===void 0&&(t=Zi);const[r,a]=l.useState(null);function o(){a(u=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=u??n)!=null?d:null}const f=t(e);return JSON.stringify(u)===JSON.stringify(f)?u:f})}const s=Qi({callback(u){if(e)for(const d of u){const{type:f,target:h}=d;if(f==="childList"&&h instanceof HTMLElement&&h.contains(e)){o();break}}}}),c=un({callback:o});return ye(()=>{o(),e?(c==null||c.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(c==null||c.disconnect(),s==null||s.disconnect())},[e]),r}function el(e){const t=Yn(e);return ea(e,t)}const ir=[];function tl(e){const t=l.useRef(e),n=$t(r=>e?r&&r!==ir&&e&&t.current&&e.parentNode===t.current.parentNode?r:cn(e):ir,[e]);return l.useEffect(()=>{t.current=e},[e]),n}function nl(e){const[t,n]=l.useState(null),r=l.useRef(e),a=l.useCallback(o=>{const s=Sn(o.target);s&&n(c=>c?(c.set(s,jn(s)),new Map(c)):null)},[]);return l.useEffect(()=>{const o=r.current;if(e!==o){s(o);const c=e.map(u=>{const d=Sn(u);return d?(d.addEventListener("scroll",a,{passive:!0}),[d,jn(d)]):null}).filter(u=>u!=null);n(c.length?new Map(c):null),r.current=e}return()=>{s(e),s(o)};
15function s(c){c.forEach(u=>{const d=Sn(u);d==null||d.removeEventListener("scroll",a)})}},[a,e]),l.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,s)=>ct(o,s),we):ia(e):we,[e,t])}function lr(e,t){t===void 0&&(t=[]);const n=l.useRef(null);return l.useEffect(()=>{n.current=null},t),l.useEffect(()=>{const r=e!==we;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?It(e,n.current):we}function rl(e){l.useEffect(()=>{if(!on)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function al(e,t){return l.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:o}=r;return n[a]=s=>{o(s,t)},n},{}),[e,t])}function da(e){return l.useMemo(()=>e?Ai(e):null,[e])}const cr=[];function ol(e,t){t===void 0&&(t=mt);const[n]=e,r=da(n?ae(n):null),[a,o]=l.useState(cr);function s(){o(()=>e.length?e.map(u=>oa(u)?r:new In(t(u),u)):cr)}const c=un({callback:s});return ye(()=>{c==null||c.disconnect(),s(),e.forEach(u=>c==null?void 0:c.observe(u))},[e]),a}function fa(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Yt(t)?t:e}function sl(e){let{measure:t}=e;const[n,r]=l.useState(null),a=l.useCallback(d=>{for(const{target:f}of d)if(Yt(f)){r(h=>{const g=t(f);return h?{...h,width:g.width,height:g.height}:g});break}},[t]),o=un({callback:a}),s=l.useCallback(d=>{const f=fa(d);o==null||o.disconnect(),f&&(o==null||o.observe(f)),r(f?t(f):null)},[t,o]),[c,u]=Gt(s);return l.useMemo(()=>({nodeRef:c,rect:n,setRef:u}),[n,c,u])}const il=[{sensor:Wn,options:{}},{sensor:Ln,options:{}}],ll={current:{}},Ht={draggable:{measure:tr},droppable:{measure:tr,strategy:Lt.WhileDragging,frequency:An.Optimized},dragOverlay:{measure:mt}};class Ot extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const cl={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ot,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Zt},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ht,measureDroppableContainers:Zt,windowRect:null,measuringScheduled:!1},ha={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Zt,draggableNodes:new Map,over:null,measureDroppableContainers:Zt},_t=l.createContext(ha),ma=l.createContext(cl);function ul(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ot}}}function dl(e,t){switch(t.type){case K.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case K.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case K.DragEnd:case K.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case K.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new Ot(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case K.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const s=new Ot(e.droppable.containers);return s.set(n,{...o,disabled:a}),{...e,droppable:{...e.droppable,containers:s}}}case K.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const o=new Ot(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function fl(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=l.useContext(_t),o=Kt(r),s=Kt(n==null?void 0:n.id);return l.useEffect(()=>{if(!t&&!r&&o&&s!=null){if(!ln(o)||document.activeElement===o.target)return;const c=a.get(s);if(!c)return;const{activatorNode:u,node:d}=c;if(!u.current&&!d.current)return;requestAnimationFrame(()=>{for(const f of[u.current,d.current]){if(!f)continue;const h=li(f);if(h){h.focus();break}}})}},[r,t,a,s,o]),null}function ga(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,o)=>o({transform:a,...r}),n):n}function hl(e){return l.useMemo(()=>({draggable:{...Ht.draggable,...e==null?void 0:e.draggable},droppable:{...Ht.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ht.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function ml(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const o=l.useRef(!1),{x:s,y:c}=typeof a=="boolean"?{x:a,y:a}:a;ye(()=>{if(!s&&!c||!t){o.current=!1;return}if(o.current||!r)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const f=n(d),h=ea(f,r);if(s||(h.x=0),c||(h.y=0),o.current=!0,Math.abs(h.x)>0||Math.abs(h.y)>0){const g=na(d);g&&g.scrollBy({top:h.y,left:h.x})}},[t,s,c,r,n])}const dn=l.createContext({...we,scaleX:1,scaleY:1}
15);var Xe;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Xe||(Xe={}));const gl=l.memo(function(t){var n,r,a,o;let{id:s,accessibility:c,autoScroll:u=!0,children:d,sensors:f=il,collisionDetection:h=Ci,measuring:g,modifiers:p,...y}=t;const b=l.useReducer(dl,void 0,ul),[x,j]=b,[k,R]=mi(),[M,O]=l.useState(Xe.Uninitialized),D=M===Xe.Initialized,{draggable:{active:C,nodes:N,translate:W},droppable:{containers:T}}=x,Y=C!=null?N.get(C):null,J=l.useRef({initial:null,translated:null}),ee=l.useMemo(()=>{var re;return C!=null?{id:C,data:(re=Y==null?void 0:Y.data)!=null?re:ll,rect:J}:null},[C,Y]),V=l.useRef(null),[oe,X]=l.useState(null),[z,Se]=l.useState(null),Q=Tt(y,Object.values(y)),de=Bt("DndDescribedBy",s),fe=l.useMemo(()=>T.getEnabled(),[T]),v=hl(g),{droppableRects:S,measureDroppableContainers:P,measuringScheduled:w}=Gi(fe,{dragging:D,dependencies:[W.x,W.y],config:v.droppable}),A=Vi(N,C),$=l.useMemo(()=>z?Qt(z):null,[z]),q=mn(),_=Ki(A,v.draggable.measure);ml({activeNode:C!=null?N.get(C):null,config:q.layoutShiftCompensation,initialRect:_,measure:v.draggable.measure});const I=sr(A,v.draggable.measure,_),Je=sr(A?A.parentElement:null),he=l.useRef({activatorEvent:null,active:null,activeNode:A,collisionRect:null,collisions:null,droppableRects:S,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Pe=T.getNodeFor((n=he.current.over)==null?void 0:n.id),xe=sl({measure:v.dragOverlay.measure}),Me=(r=xe.nodeRef.current)!=null?r:A,je=D?(a=xe.rect)!=null?a:I:null,zt=!!(xe.nodeRef.current&&xe.rect),Xt=el(zt?null:I),gt=da(Me?ae(Me):null),De=tl(D?Pe??A:null),tt=ol(De),nt=ga(p,{transform:{x:W.x-Xt.x,y:W.y-Xt.y,scaleX:1,scaleY:1},activatorEvent:z,active:ee,activeNodeRect:I,containerNodeRect:Je,draggingNodeRect:je,over:he.current.over,overlayNodeRect:xe.rect,scrollableAncestors:De,scrollableAncestorRects:tt,windowRect:gt}),m=$?ct($,W):null,L=nl(De),E=lr(L),G=lr(L,[I]),U=ct(nt,E),ke=je?Ri(je,nt):null,Ce=ee&&ke?h({active:ee,collisionRect:ke,droppableRects:S,droppableContainers:fe,pointerCoordinates:m}):null,Te=Qr(Ce,"id"),[te,Ie]=l.useState(null),Le=zt?nt:ct(nt,G),Ae=Ni(Le,(o=te==null?void 0:te.rect)!=null?o:null,I),me=l.useRef(null),Fe=l.useCallback((re,le)=>{let{sensor:ce,options:We}=le;if(V.current==null)return;const ge=N.get(V.current);if(!ge)return;const ue=re.nativeEvent,Ne=new ce({active:V.current,activeNode:ge,event:ue,options:We,context:he,onAbort(ne){if(!N.get(ne))return;const{onDragAbort:Ee}=Q.current,Oe={id:ne};Ee==null||Ee(Oe),k({type:"onDragAbort",event:Oe})},onPending(ne,Ye,Ee,Oe){if(!N.get(ne))return;const{onDragPending:vt}=Q.current,$e={id:ne,constraint:Ye,initialCoordinates:Ee,offset:Oe};vt==null||vt($e),k({type:"onDragPending",event:$e})},onStart(ne){const Ye=V.current;if(Ye==null)return;const Ee=N.get(Ye);if(!Ee)return;const{onDragStart:Oe}=Q.current,pt={activatorEvent:ue,active:{id:Ye,data:Ee.data,rect:J}};Rt.unstable_batchedUpdates(()=>{Oe==null||Oe(pt),O(Xe.Initializing),j({type:K.DragStart,initialCoordinates:ne,active:Ye}),k({type:"onDragStart",event:pt}),X(me.current),Se(ue)})},onMove(ne){j({type:K.DragMove,coordinates:ne})},onEnd:at(K.DragEnd),onCancel:at(K.DragCancel)});me.current=Ne;function at(ne){return async function(){const{active:Ee,collisions:Oe,over:pt,scrollAdjustedTranslate:vt}=he.current;let $e=null;if(Ee&&vt){const{cancelDrop:bt}=Q.current;$e={activatorEvent:ue,active:Ee,collisions:Oe,delta:vt,over:pt},ne===K.DragEnd&&typeof bt=="function"&&await Promise.resolve(bt($e))&&(ne=K.DragCancel)}V.current=null,Rt.unstable_batchedUpdates(()=>{j({type:ne}),O(Xe.Uninitialized),Ie(null),X(null),Se(null),me.current=null;const bt=ne===K.DragEnd?"onDragEnd":"onDragCancel";if($e){const gn=Q.current[bt];gn==null||gn($e),k({type:bt,event:$e})}})}}},[N]),ie=l.useCallback((re,le)=>(ce,We)=>{const ge=ce.nativeEvent,ue=N.get(We);if(V.current!==null||!ue||ge.dndKit||ge.defaultPrevented)return;const Ne={active:ue};re(ce,le.options,Ne)===!0&&(ge.dndKit={capturedBy:le.sensor},V.current=We,Fe(ce,le))},[N,Fe]),rt=Ji(f,ie);rl(f),ye(()=>{I&&M===Xe.Initializing&&O(Xe.Initialized)},[I,M]),l.useEffect(()=>{const{onDragMove:re}=Q.current,{active:le,activatorEvent:ce,collisions:We,over:ge}=he.current;if(!le||!ce)return;const ue={active:le,activatorEvent:ce,collisions:We,delta:{x:U.x,y:U.y},over:ge};Rt.unstable_batchedUpdates(()=>
15{re==null||re(ue),k({type:"onDragMove",event:ue})})},[U.x,U.y]),l.useEffect(()=>{const{active:re,activatorEvent:le,collisions:ce,droppableContainers:We,scrollAdjustedTranslate:ge}=he.current;if(!re||V.current==null||!le||!ge)return;const{onDragOver:ue}=Q.current,Ne=We.get(Te),at=Ne&&Ne.rect.current?{id:Ne.id,rect:Ne.rect.current,data:Ne.data,disabled:Ne.disabled}:null,ne={active:re,activatorEvent:le,collisions:ce,delta:{x:ge.x,y:ge.y},over:at};Rt.unstable_batchedUpdates(()=>{Ie(at),ue==null||ue(ne),k({type:"onDragOver",event:ne})})},[Te]),ye(()=>{he.current={activatorEvent:z,active:ee,activeNode:A,collisionRect:ke,collisions:Ce,droppableRects:S,draggableNodes:N,draggingNode:Me,draggingNodeRect:je,droppableContainers:T,over:te,scrollableAncestors:De,scrollAdjustedTranslate:U},J.current={initial:je,translated:ke}},[ee,A,Ce,ke,N,Me,je,S,T,te,De,U]),qi({...q,delta:W,draggingRect:ke,pointerCoordinates:m,scrollableAncestors:De,scrollableAncestorRects:tt});const fn=l.useMemo(()=>({active:ee,activeNode:A,activeNodeRect:I,activatorEvent:z,collisions:Ce,containerNodeRect:Je,dragOverlay:xe,draggableNodes:N,droppableContainers:T,droppableRects:S,over:te,measureDroppableContainers:P,scrollableAncestors:De,scrollableAncestorRects:tt,measuringConfiguration:v,measuringScheduled:w,windowRect:gt}),[ee,A,I,z,Ce,Je,xe,N,T,S,te,P,De,tt,v,w,gt]),hn=l.useMemo(()=>({activatorEvent:z,activators:rt,active:ee,activeNodeRect:I,ariaDescribedById:{draggable:de},dispatch:j,draggableNodes:N,over:te,measureDroppableContainers:P}),[z,rt,ee,I,j,de,N,te,P]);return H.createElement(Kr.Provider,{value:R},H.createElement(_t.Provider,{value:hn},H.createElement(ma.Provider,{value:fn},H.createElement(dn.Provider,{value:Ae},d)),H.createElement(fl,{disabled:(c==null?void 0:c.restoreFocus)===!1})),H.createElement(vi,{...c,hiddenTextDescribedById:de}));function mn(){const re=(oe==null?void 0:oe.autoScrollEnabled)===!1,le=typeof u=="object"?u.enabled===!1:u===!1,ce=D&&!re&&!le;return typeof u=="object"?{...u,enabled:ce}:{enabled:ce}}}),pl=l.createContext(null),ur="button",vl="Draggable";function bl(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const o=Bt(vl),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:h,over:g}=l.useContext(_t),{role:p=ur,roleDescription:y="draggable",tabIndex:b=0}=a??{},x=(u==null?void 0:u.id)===t,j=l.useContext(x?dn:pl),[k,R]=Gt(),[M,O]=Gt(),D=al(s,t),C=Tt(n);ye(()=>(h.set(t,{id:t,key:o,node:k,activatorNode:M,data:C}),()=>{const W=h.get(t);W&&W.key===o&&h.delete(t)}),[h,t]);const N=l.useMemo(()=>({role:p,tabIndex:b,"aria-disabled":r,"aria-pressed":x&&p===ur?!0:void 0,"aria-roledescription":y,"aria-describedby":f.draggable}),[r,p,b,x,y,f.draggable]);return{active:u,activatorEvent:c,activeNodeRect:d,attributes:N,isDragging:x,listeners:r?void 0:D,node:k,over:g,setNodeRef:R,setActivatorNodeRef:O,transform:j}}function pa(){return l.useContext(ma)}const xl="Droppable",yl={timeout:25};function va(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const o=Bt(xl),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=l.useContext(_t),f=l.useRef({disabled:n}),h=l.useRef(!1),g=l.useRef(null),p=l.useRef(null),{disabled:y,updateMeasurementsFor:b,timeout:x}={...yl,...a},j=Tt(b??r),k=l.useCallback(()=>{if(!h.current){h.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{d(Array.isArray(j.current)?j.current:[j.current]),p.current=null},x)},[x]),R=un({callback:k,disabled:y||!s}),M=l.useCallback((N,W)=>{R&&(W&&(R.unobserve(W),h.current=!1),N&&R.observe(N))},[R]),[O,D]=Gt(M),C=Tt(t);return l.useEffect(()=>{!R||!O.current||(R.disconnect(),h.current=!1,R.observe(O.current))},[O,R]),l.useEffect(()=>(c({type:K.RegisterDroppable,element:{id:r,key:o,disabled:n,node:O,rect:g,data:C}}),()=>c({type:K.UnregisterDroppable,key:o,id:r})),[r]),l.useEffect(()=>{n!==f.current.disabled&&(c({type:K.SetDroppableDisabled,id:r,key:o,disabled:n}),f.current.disabled=n)},[r,o,n,c]),{active:s,rect:g,isOver:(u==null?void 0:u.id)===r,node:O,over:u,setNodeRef:D}}function wl(e){let{animation:t,children:n}=e;const[r,a]=l.useState(null),[o,s]=l.useState(null),c=Kt(n);return!n&&!r&&c&&a(c),ye(()=>{if(!o)return;const u=r==null?void 0:r.key,d=r==null?void 0:r.props.id;if(u==null||d==null){a(null);return}Promise.resolve(t(d,o)).then(()=>{a(null)})},[t,r,o]),H.createElement(H.Fragment,null,n,r?l.cloneElement(r,{ref:s}):null)}const Sl={x:0,y:0,scaleX:1,scaleY:1};function Dl(e){let{children:t}=e;return H.createElement(_t.Provider,{value:ha},H.createElement(dn.Provider,{value:Sl},t))}const Cl={position:"fixed",touchAction:"none"},Nl=e=>
15ln(e)?"transform 250ms ease":void 0,El=l.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:o,className:s,rect:c,style:u,transform:d,transition:f=Nl}=e;if(!c)return null;const h=a?d:{...d,scaleX:1,scaleY:1},g={...Cl,width:c.width,height:c.height,top:c.top,left:c.left,transform:He.Transform.toString(h),transformOrigin:a&&r?yi(r,c):void 0,transition:typeof f=="function"?f(r):f,...u};return H.createElement(n,{className:s,style:g,ref:t},o)}),Rl=e=>t=>{let{active:n,dragOverlay:r}=t;const a={},{styles:o,className:s}=e;if(o!=null&&o.active)for(const[c,u]of Object.entries(o.active))u!==void 0&&(a[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,u));if(o!=null&&o.dragOverlay)for(const[c,u]of Object.entries(o.dragOverlay))u!==void 0&&r.node.style.setProperty(c,u);return s!=null&&s.active&&n.node.classList.add(s.active),s!=null&&s.dragOverlay&&r.node.classList.add(s.dragOverlay),function(){for(const[u,d]of Object.entries(a))n.node.style.setProperty(u,d);s!=null&&s.active&&n.node.classList.remove(s.active)}},jl=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:He.Transform.toString(t)},{transform:He.Transform.toString(n)}]},kl={duration:250,easing:"ease",keyframes:jl,sideEffects:Rl({styles:{active:{opacity:"0"}}})};function Al(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:a}=e;return sn((o,s)=>{if(t===null)return;const c=n.get(o);if(!c)return;const u=c.node.current;if(!u)return;const d=fa(s);if(!d)return;const{transform:f}=ae(s).getComputedStyle(s),h=ta(f);if(!h)return;const g=typeof t=="function"?t:Ol(t);return la(u,a.draggable.measure),g({active:{id:o,data:c.data,node:u,rect:a.draggable.measure(u)},draggableNodes:n,dragOverlay:{node:s,rect:a.dragOverlay.measure(d)},droppableContainers:r,measuringConfiguration:a,transform:h})})}function Ol(e){const{duration:t,easing:n,sideEffects:r,keyframes:a}={...kl,...e};return o=>{let{active:s,dragOverlay:c,transform:u,...d}=o;if(!t)return;const f={x:c.rect.left-s.rect.left,y:c.rect.top-s.rect.top},h={scaleX:u.scaleX!==1?s.rect.width*u.scaleX/c.rect.width:1,scaleY:u.scaleY!==1?s.rect.height*u.scaleY/c.rect.height:1},g={x:u.x-f.x,y:u.y-f.y,...h},p=a({...d,active:s,dragOverlay:c,transform:{initial:u,final:g}}),[y]=p,b=p[p.length-1];if(JSON.stringify(y)===JSON.stringify(b))return;const x=r==null?void 0:r({active:s,dragOverlay:c,...d}),j=c.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise(k=>{j.onfinish=()=>{x==null||x(),k()}})}}let dr=0;function Pl(e){return l.useMemo(()=>{if(e!=null)return dr++,dr},[e])}const Ml=H.memo(e=>
15{let{adjustScale:t=!1,children:n,dropAnimation:r,style:a,transition:o,modifiers:s,wrapperElement:c="div",className:u,zIndex:d=999}=e;const{activatorEvent:f,active:h,activeNodeRect:g,containerNodeRect:p,draggableNodes:y,droppableContainers:b,dragOverlay:x,over:j,measuringConfiguration:k,scrollableAncestors:R,scrollableAncestorRects:M,windowRect:O}=pa(),D=l.useContext(dn),C=Pl(h==null?void 0:h.id),N=ga(s,{activatorEvent:f,active:h,activeNodeRect:g,containerNodeRect:p,draggingNodeRect:x.rect,over:j,overlayNodeRect:x.rect,scrollableAncestors:R,scrollableAncestorRects:M,transform:D,windowRect:O}),W=Yn(g),T=Al({config:r,draggableNodes:y,droppableContainers:b,measuringConfiguration:k}),Y=W?x.setRef:void 0;return H.createElement(Dl,null,H.createElement(wl,{animation:T},h&&C?H.createElement(El,{key:C,id:h.id,ref:Y,as:c,activatorEvent:f,adjustScale:t,className:u,transition:o,rect:W,style:{zIndex:d,...a},transform:N},n):null))});function Pt(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Tl(e,t){return e.reduce((n,r,a)=>{const o=t.get(r);return o&&(n[a]=o),n},Array(e.length))}function qt(e){return e!==null&&e>=0}function Il(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ll(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const ba=e=>{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const o=Pt(t,r,n),s=t[a],c=o[a];return!c||!s?null:{x:c.left-s.left,y:c.top-s.top,scaleX:c.width/s.width,scaleY:c.height/s.height}},Ut={scaleX:1,scaleY:1},Fl=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:o,overIndex:s}=e;const c=(t=o[n])!=null?t:r;if(!c)return null;if(a===n){const d=o[s];return d?{x:0,y:n<s?d.top+d.height-(c.top+c.height):d.top-c.top,...Ut}:null}const u=Wl(o,a,n);return a>n&&a<=s?{x:0,y:-c.height-u,...Ut}:a<n&&a>=s?{x:0,y:c.height+u,...Ut}:{x:0,y:0,...Ut}};function Wl(e,t,n){const r=e[t],a=e[t-1],o=e[t+1];return r?n<t?a?r.top-(a.top+a.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):a?r.top-(a.top+a.height):0:0}const xa="Sortable",ya=H.createContext({activeIndex:-1,containerId:xa,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:ba,disabled:{draggable:!1,droppable:!1}});function Yl(e){let{children:t,id:n,items:r,strategy:a=ba,disabled:o=!1}=e;const{active:s,dragOverlay:c,droppableRects:u,over:d,measureDroppableContainers:f}=pa(),h=Bt(xa,n),g=c.rect!==null,p=l.useMemo(()=>r.map(D=>typeof D=="object"&&"id"in D?D.id:D),[r]),y=s!=null,b=s?p.indexOf(s.id):-1,x=d?p.indexOf(d.id):-1,j=l.useRef(p),k=!Il(p,j.current),R=x!==-1&&b===-1||k,M=Ll(o);ye(()=>{k&&y&&f(p)},[k,p,y,f]),l.useEffect(()=>{j.current=p},[p]);const O=l.useMemo(()=>({activeIndex:b,containerId:h,disabled:M,disableTransforms:R,items:p,overIndex:x,useDragOverlay:g,sortedRects:Tl(p,u),strategy:a}),[b,h,M.draggable,M.droppable,R,p,x,u,g,a]);return H.createElement(ya.Provider,{value:O},t)}const $l=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return Pt(n,r,a).indexOf(t)},Bl=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:o,newIndex:s,previousItems:c,previousContainerId:u,transition:d}=e;return!d||!r||c!==o&&a===s?!1:n?!0:s!==a&&t===u},_l={duration:200,easing:"ease"},wa="transform",zl=He.Transition.toString({property:wa,duration:0,easing:"linear"}),Xl={roleDescription:"sortable"};function ql(e){let{disabled:t,index:n,node:r,rect:a}=e;const[o,s]=l.useState(null),c=l.useRef(n);return ye(()=>{if(!t&&n!==c.current&&r.current){const u=a.current;if(u){const d=mt(r.current,{ignoreTransform:!0}),f={x:u.left-d.left,y:u.top-d.top,scaleX:u.width/d.width,scaleY:u.height/d.height};(f.x||f.y)&&s(f)}}n!==c.current&&(c.current=n)},[t,n,r,a]),l.useEffect(()=>{o&&s(null)},[o]),o}function Ul(e){let{animateLayoutChanges:t=Bl,attributes:n,disabled:r,data:a,getNewIndex:o=$l,id:s,strategy:c,resizeObserverConfig:u,transition:d=_l}=e;const{items:f,containerId:h,activeIndex:g,disabled:p,disableTransforms:y,sortedRects:b,overIndex:x,useDragOverlay:j,strategy:k}=l.useContext(ya),R=Hl(r,p),M=f.indexOf(s),O=l.useMemo(()=>({sortable:{containerId:h,index:M,items:f},...a}),[h,a,M,f]),D=l.useMemo(()=>f.slice(f.indexOf(s)),[f,s]),{rect:C,node:N,isOver:W,setNodeRef:T}=va({id:s,data:O,disabled:R.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...u}}),{active:Y,activatorEvent:J,activeNodeRect:ee,attributes:V,setNodeRef:oe,listeners:X,isDragging:z,over:Se,setActivatorNodeRef:Q,transform:de}=bl({id:s,data:O,attributes:{...Xl,...n},disabled:R.draggable}),fe=ai(T,oe),v=!!Y,S=v&&!y&&qt(g)&&qt(x),P=!j&&z,w=P&&S?de:null,$=S?w??(c??k)({rects:b,activeNodeRect:ee,activeIndex:g,overIndex:x,index:M}):null,q=qt(g)&&qt(x)?o({id:s,items:f,activeIndex:g,overIndex:x}):M,_=Y==null?void 0:Y.id,I=l.useRef({activeId:_,items:f,newIndex:q,containerId:h}),Je=f!==I.current.items,he=t({active:Y,containerId:h,isDragging:z,isSorting:v,id:s,index:M,items:f,newIndex:I.current.newIndex,previousItems:I.current.items,previousContainerId:I.current.containerId,transition:d,wasDragging:I.current.activeId!=null}),Pe=ql({disabled:!he,index:M,node:N,rect:C});return l.useEffect(()=>{v&&I.current.newIndex!==q&&(I.current.newIndex=q),h!==I.current.containerId&&(I.current.containerId=h),f!==I.current.items&&(I.current.items=f)},[v,q,h,f]),l.useEffect(()=>{if(_===I.current.activeId)return;if(_!=null&&I.current.activeId==null){I.current.activeId=_;return}const Me=setTimeout(()=>{I.current.activeId=_},50);return()=>
15clearTimeout(Me)},[_]),{active:Y,activeIndex:g,attributes:V,data:O,rect:C,index:M,newIndex:q,items:f,isOver:W,isSorting:v,isDragging:z,listeners:X,node:N,overIndex:x,over:Se,setNodeRef:fe,setActivatorNodeRef:Q,setDroppableNodeRef:T,setDraggableNodeRef:oe,transform:Pe??$,transition:xe()};function xe(){if(Pe||Je&&I.current.newIndex===M)return zl;if(!(P&&!ln(J)||!d)&&(v||he))return He.Transition.toString({...d,property:wa})}}function Hl(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}function tn(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Vl=[F.Down,F.Right,F.Up,F.Left],Jl=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:o,over:s,scrollableAncestors:c}}=t;if(Vl.includes(e.code)){if(e.preventDefault(),!n||!r)return;const u=[];o.getEnabled().forEach(h=>{if(!h||h!=null&&h.disabled)return;const g=a.get(h.id);if(g)switch(e.code){case F.Down:r.top<g.top&&u.push(h);break;case F.Up:r.top>g.top&&u.push(h);break;case F.Left:r.left>g.left&&u.push(h);break;case F.Right:r.left<g.left&&u.push(h);break}});const d=Zr({collisionRect:r,droppableRects:a,droppableContainers:u});let f=Qr(d,"id");if(f===(s==null?void 0:s.id)&&d.length>1&&(f=d[1].id),f!=null){const h=o.get(n.id),g=o.get(f),p=g?a.get(g.id):null,y=g==null?void 0:g.node.current;if(y&&p&&h&&g){const x=cn(y).some((D,C)=>c[C]!==D),j=Sa(h,g),k=Gl(h,g),R=x||!j?{x:0,y:0}:{x:k?r.width-p.width:0,y:k?r.height-p.height:0},M={x:p.left,y:p.top};return R.x&&R.y?M:It(M,R)}}}};function Sa(e,t){return!tn(e)||!tn(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function Gl(e,t){return!tn(e)||!tn(t)||!Sa(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}const st=["Applied","Screening","Interview","Offer","Rejected","Ghosted"],Kl=["Software Engineer","Software Developer","Frontend Developer","Backend Developer","Full Stack Developer","Web Developer","Mobile App Developer","Android Developer","iOS Developer","React Developer","Next.js Developer","Node.js Developer","Java Developer","Python Developer","C++ Developer","PHP Developer","Ruby Developer","Go Developer","Rust Developer","Scala Developer","Data Analyst","Business Analyst","Data Scientist","Data Engineer","Machine Learning Engineer","AI Engineer","Deep Learning Engineer","NLP Engineer","Computer Vision Engineer","Research Engineer","DevOps Engineer","Cloud Engineer","Site Reliability Engineer","Platform Engineer","Infrastructure Engineer","Systems Engineer","Cybersecurity Analyst","Security Engineer","Security Consultant","Ethical Hacker","SOC Analyst","Network Security Engineer","QA Engineer","Test Engineer","Automation Test Engineer","Manual Tester","Performance Tester","UI Designer","UX Designer","UI/UX Designer","Product Designer","Graphic Designer","Interaction Designer","Product Manager","Project Manager","Program Manager","Technical Product Manager","Scrum Master","Database Administrator","Database Engineer","SQL Developer","Cloud Architect","Solutions Architect","Enterprise Architect","Network Engineer","System Administrator","IT Support Engineer","Help Desk Engineer","Blockchain Developer","Game Developer","AR/VR Developer","Embedded Engineer","Firmware Engineer","IoT Engineer","Technical Writer","Consultant","Technology Analyst","Intern","Software Engineering Intern","Data Analyst Intern","Machine Learning Intern","Frontend Intern","Backend Intern"],fr={Applied:"bg-primary/20 text-primary border-primary/30",Screening:"bg-warning/20 text-warning border-warning/30",Interview:"bg-accent/20 text-accent-foreground border-accent/30",Offer:"bg-success/20 text-success border-success/30",Rejected:"bg-destructive/20 text-destructive border-destructive/30",Ghosted:"bg-muted text-muted-foreground border-border"},Ql=e=>{const t=e.trim();return!(t.length<2||/^[^a-zA-Z]+$/.test(t)||/^(.)\1{4,}$/.test(t))},Zl=e=>{try{const t=new URL(e.trim());return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}};function ec({id:e,children:t}){const{setNodeRef:n}=va({id:e});return i.jsx("div",{ref:n,className:"min-w-[260px] w-[260px] flex-shrink-0 flex flex-col max-h-full overflow-hidden",children:t})}function tc({job:e,onClick:t,isOverdue:n,prepScore:r}){const{setNodeRef:a,attributes:o,listeners:s,transform:c,transition:u,isDragging:d}=Ul({id:e.id,data:{type:"Job",job:e}}),f={transition:u,transform:He.Transform.toString(c),touchAction:"none"};return i.jsxs("div",{ref:a,style:f,...o,...s,onClick:t,className:`rounded-xl bg-card border p-3 cursor-pointer hover:border-primary/30 transition-all overflow-hidden min-w-0 ${n?"border-destructive/50 shadow-[0_0_10px_-3px_hsl(var(--destructive)/0.4)]":"border-border"} ${d?"opacity-50 scale-105 shadow-2xl z-50 relative":""}`,children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1 min-w-0",children:[i.jsx("div",{className:"w-8 h-8 rounded-lg bg-secondary flex items-center justify-center text-xs font-bold text-muted-foreground",children:e.companyName.charAt(0)}),i.jsxs("div",{className:"min-w-0 flex-1 overflow-hidden",children:[i.jsx("p",{className:"text-sm font-medium text-foreground overflow-hidden text-ellipsis whitespace-nowrap max-w-full",children:e.companyName}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("p",{className:"text-xs text-muted-foreground overflow-hidden text-ellipsis whitespace-nowrap max-w-full",children:e.jobTitle}),r!==void 0&&i.jsxs(Nn,{variant:"outline",className:"text-[9px] px-1.5 py-0 shrink-0 h-4",children:[r,"% Prep"]})]})]})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:e.dateApplied})]})}function nc({jobs:e,onDateClick:t}){const[n,r]=l.useState(ut(new Date,{weekStartsOn:1}
15)),a=Array.from({length:7},(s,c)=>{const u=new Date(n);return u.setDate(u.getDate()+c),u}),o=s=>e.some(c=>{if(!c.nextActionDate)return!1;const u=new Date(c.nextActionDate);return mo(u,s)});return i.jsxs("div",{className:"rounded-xl bg-card border border-border p-4 h-full flex flex-col justify-center",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsx("h3",{className:"font-semibold",children:"Upcoming Actions"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx("button",{onClick:()=>r(ps(n)),children:i.jsx(ao,{className:"w-4 h-4"})}),i.jsx("button",{onClick:()=>r(wr(n,1)),children:i.jsx(oo,{className:"w-4 h-4"})})]})]}),i.jsxs("h4",{className:"text-center font-semibold mb-4",children:[Nt(a[0],"d MMM")," - ",Nt(a[6],"d MMM yyyy")]}),i.jsx("div",{className:"grid grid-cols-7 gap-2 text-center",children:a.map(s=>i.jsxs("div",{children:[i.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:Nt(s,"EEE")}),i.jsx("button",{onClick:()=>t(Nt(s,"yyyy-MM-dd")),className:`
16                w-10 h-10 rounded-full
17                flex items-center justify-center
18                mx-auto transition-all
19                ${o(s)?"border-2 border-red-500 text-red-500":"hover:bg-secondary"}
20              `,children:Nt(s,"d")})]},s.toISOString()))})]})}function mc({jobs:e,sessions:t,onAddJob:n,onUpdateJob:r,onDeleteJob:a,userId:o}){const[s,c]=l.useState("kanban"),[u,d]=l.useState(!1),[f,h]=l.useState(null),[g,p]=l.useState(null),[y,b]=l.useState(!1),[x,j]=l.useState(!1),[k,R]=l.useState(null),[M,O]=l.useState(null),[D,C]=l.useState(!1),[N,W]=l.useState({companyName:"",jobTitle:"",jobUrl:"",status:"Applied"}),{toast:T}=Ya(),Y=$a(),J=Ba();l.useEffect(()=>{var m;if((m=J.state)!=null&&m.jobId&&e.length>0){const L=e.find(E=>E.id===J.state.jobId);L&&(h(L),window.history.replaceState({},document.title))}},[J.state,e]);const ee=(m,L,E)=>Ql(m)?L.trim()?Zl(E)?!0:(T({title:"Invalid job URL",description:"Please enter a valid application URL.",variant:"destructive"}),!1):(T({title:"Invalid job title",description:"Job title cannot be empty.",variant:"destructive"}),!1):(T({title:"Invalid company name",description:"Please enter a valid company name.",variant:"destructive"}),!1),[V,oe]=l.useState(!1),[X,z]=l.useState(e),Se=l.useRef(e),[Q,de]=l.useState(null),[fe,v]=l.useState(""),[S,P]=l.useState("All"),w=X.filter(m=>{const L=fe.toLowerCase(),E=!L||m.companyName.toLowerCase().includes(L)||m.jobTitle.toLowerCase().includes(L)||m.location&&m.location.toLowerCase().includes(L),G=S==="All"||m.status===S;return E&&G}),A=fe!==""||S!=="All",[$,q]=l.useState(!1);l.useEffect(()=>{const m=()=>{q(window.innerWidth<768)};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]),l.useEffect(()=>{z(e),Se.current=e},[e]),l.useEffect(()=>{p(f)},[f]);const _=bi(wn(Wn,{activationConstraint:{distance:5}}),wn(ua,{activationConstraint:{delay:250,tolerance:5}}),wn(Ln,{coordinateGetter:Jl})),I=async()=>{if(ee(N.companyName,N.jobTitle,N.jobUrl))try{const m=await n({companyName:N.companyName,jobTitle:N.jobTitle,jobUrl:N.jobUrl,status:N.status});d(!1),W({companyName:"",jobTitle:"",jobUrl:"",status:"Applied"}),T({title:"Application added!",description:`${m.companyName} — ${m.jobTitle}`})}catch(m){T({title:"Unable to add application",description:m instanceof Error?m.message:"Please try again.",variant:"destructive"})}},Je=X.filter(m=>!["Rejected","Ghosted"].includes(m.status)),he=X.filter(m=>m.status==="Interview"),Pe=X.filter(m=>m.status==="Offer"),xe=["Applied","Screening","Interview","Offer","Rejected","Ghosted"],Me=m=>m.nextActionDate?new Date(m.nextActionDate)<new Date:!1,je=async(m,L)=>{try{z(G=>G.map(U=>U.id===m.id?{...U,status:L}:U));const E=await r(m.id,{status:L});(f==null?void 0:f.id)===m.id&&(h(E),p(E)),T({title:"Status updated",description:`${E.companyName} is now ${E.status}.`})}catch(E){z(e),T({title:"Unable to update status",description:E instanceof Error?E.message:"Please try again.",variant:"destructive"})}},zt=async()=>{if(g&&ee(g.companyName,g.jobTitle,g.jobUrl)){b(!0);try{const m=await r(g.id,{status:g.status,location:g.location,salaryRange:g.salaryRange,notes:g.notes,resumeUsed:g.resumeUsed,contactPerson:g.contactPerson,nextAction:g.nextAction,nextActionDate:g.nextActionDate,linkedPrepSessionId:g.linkedPrepSessionId});
20h(m),p(m),T({title:"Application saved",description:`${m.companyName} details are up to date.`})}catch(m){T({title:"Unable to save changes",description:m instanceof Error?m.message:"Please try again.",variant:"destructive"})}finally{b(!1)}}},Xt=async m=>{j(!0);try{await a(m),z(L=>L.filter(E=>E.id!==m)),(f==null?void 0:f.id)===m&&(h(null),p(null)),T({title:"Deleted",description:"Job application has been removed."})}catch(L){T({title:"Unable to delete application",description:L instanceof Error?L.message:"Please try again.",variant:"destructive"})}finally{j(!1),R(null)}},gt=m=>{const{active:L}=m,E=X.find(G=>G.id===L.id);E&&de(E)},De=m=>{var te,Ie;const{active:L,over:E}=m;if(!E)return;const G=L.id,U=E.id,ke=((te=L.data.current)==null?void 0:te.type)==="Job",Ce=((Ie=E.data.current)==null?void 0:Ie.type)==="Job",Te=st.includes(U);ke&&z(Le=>{const Ae=Le.findIndex(ie=>ie.id===G);if(Ae===-1)return Le;const me=[...Le],Fe={...me[Ae]};if(me[Ae]=Fe,Ce){const ie=Le.findIndex(rt=>rt.id===U);if(ie!==-1&&Fe.status!==Le[ie].status)return Fe.status=Le[ie].status,Pt(me,Ae,ie);if(ie!==-1)return Pt(me,Ae,ie)}else if(Te&&Fe.status!==U){Fe.status=U;const ie=me.reduce((fn,hn,mn)=>hn.status===U?mn:fn,-1),rt=ie>=0?ie:Ae;return Pt(me,Ae,rt)}return Se.current=me,me})},tt=async m=>{var Ce;const{active:L,over:E}=m;if(de(null),!E){z(e);return}const G=e.find(Te=>Te.id===L.id);if(!G)return;let U=G.status;
20if(st.includes(E.id)?U=E.id:((Ce=E.data.current)==null?void 0:Ce.type)==="Job"&&(U=E.data.current.job.status),U!==G.status)je(G,U);else{const Te=X.filter(te=>te.status===G.status);await Promise.all(Te.map((te,Ie)=>te.sortOrder!==Ie?r(te.id,{sortOrder:Ie}):Promise.resolve(te)))}},nt=()=>{de(null),z(e)};return i.jsxs("div",{className:"space-y-6 animate-slide-up",children:[i.jsx("div",{className:"bg-background border-b border-border/40 pb-4 pt-2 space-y-6",children:i.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Job Tracker"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Track and manage your applications"})]}),i.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[i.jsxs("div",{className:"relative w-48 sm:w-64",children:[i.jsx(mr,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"}),i.jsx(Be,{type:"text",placeholder:"Search jobs or companies...",value:fe,onChange:m=>v(m.target.value),className:"pl-9 h-9 bg-secondary/50 border-border text-sm"}),fe&&i.jsx("button",{onClick:()=>v(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground","aria-label":"Clear search",children:i.jsx(_a,{className:"w-4 h-4"})})]}),i.jsxs(xt,{value:S,onValueChange:m=>P(m),children:[i.jsx(yt,{className:"w-32 h-9 bg-secondary/50 border-border text-sm",children:i.jsx(wt,{placeholder:"All Statuses"})}),i.jsxs(St,{children:[i.jsx(Ge,{value:"All",children:"All Statuses"}),st.map(m=>i.jsx(Ge,{value:m,children:m},m))]})]}),i.jsxs("div",{className:"flex bg-secondary rounded-lg p-0.5 h-9 items-center",children:[i.jsx("button",{onClick:()=>c("kanban"),className:`px-3 py-1.5 rounded-md text-sm transition-colors h-8 ${s==="kanban"?"bg-card text-foreground shadow-sm":"text-muted-foreground"}`,"aria-label":"Kanban view","aria-pressed":s==="kanban",children:i.jsx(so,{className:"w-4 h-4"})}),i.jsx("button",{onClick:()=>c("table"),className:`px-3 py-1.5 rounded-md text-sm transition-colors h-8 ${s==="table"?"bg-card text-foreground shadow-sm":"text-muted-foreground"}`,"aria-label":"Table view","aria-pressed":s==="table",children:i.jsx(io,{className:"w-4 h-4"})})]}),i.jsxs($n,{open:u,onOpenChange:d,children:[i.jsx(za,{asChild:!0,children:i.jsxs(_e,{className:"gradient-primary text-primary-foreground",children:[i.jsx(Xn,{className:"w-4 h-4 mr-2"})," Add Application"]})}),i.jsxs(Bn,{className:$?`
21                      fixed
22                      inset-x-0
23                      bottom-0
24                      top-auto
25                      z-50
26                      w-full
27                      max-w-none
28                      rounded-t-3xl
29                      rounded-b-none
30                      border-border
31                      bg-card
32                      p-6
33                      max-h-[90vh]
34                      overflow-y-auto
35
36                      data-[state=open]:animate-in
37                      data-[state=closed]:animate-out
38                      data-[state=open]:slide-in-from-bottom
39                      data-[state=closed]:slide-out-to-bottom
40                      data-[state=open]:duration-300
41                      data-[state=closed]:duration-200
42                      !left-0 !top-auto !translate-x-0 !translate-y-0
43
44                      translate-x-0
45                      translate-y-0
46                    `:"bg-card border-border sm:max-w-lg rounded-2xl",children:[i.jsx(_n,{children:i.jsx(zn,{children:"Add Job Application"})}),i.jsxs("div",{className:"space-y-4 mt-2",children:[i.jsxs("div",{children:[i.jsx(pe,{children:"Company"}),i.jsx(Be,{value:N.companyName,onChange:m=>W({...N,companyName:m.target.value}),className:"mt-1 bg-secondary/50"})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Job Title"}),i.jsxs(ni,{open:V,onOpenChange:oe,children:[i.jsx(ri,{asChild:!0,children:i.jsx(_e,{variant:"outline",role:"combobox","aria-expanded":V,className:"w-full mt-1 justify-between bg-secondary/50",children:N.jobTitle||"Select a job title"})}),i.jsx(Vr,{align:"start",side:"bottom",sideOffset:4,className:"w-[var(--radix-popover-trigger-width)] p-0",onWheel:m=>{m.stopPropagation()},children:i.jsxs(Pr,{children:[i.jsx(Mr,{placeholder:"Search job title..."}),i.jsx(Tr,{children:"No job title found."}),i.jsx(Ir,{className:"max-h-64 overflow-y-auto",children:Kl.map(m=>i.jsx(Lr,{value:m,onSelect:()=>{W({...N,jobTitle:m}),oe(!1)},children:m},m))})]})})]})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Job URL"}),i.jsx(Be,{type:"url",placeholder:"https://company.com/job",value:N.jobUrl,onChange:m=>W({...N,jobUrl:m.target.value}),className:"mt-1 bg-secondary/50"})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Status"}),i.jsxs(xt,{value:N.status,onValueChange:m=>W({...N,status:m}),children:[i.jsx(yt,{className:"mt-1 bg-secondary/50",children:i.jsx(wt,{})}),i.jsx(St,{children:st.map(m=>i.jsx(Ge,{value:m,children:m},m))})]})]}),i.jsx(_e,{onClick:I,className:"w-full gradient-primary text-primary-foreground",children:"Add Application"})]})]})]})]})]})}),i.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-[2fr_360px] gap-4 items-stretch",children:[i.jsx("div",{children:i.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[i.jsxs("div",{className:"rounded-xl bg-card border border-border py-5 px-4 text-center",children:[i.jsx("p",{className:"text-2xl font-bold text-foreground",children:X.length}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Total"})]}),i.jsxs("div",{className:"rounded-xl bg-card border border-border py-5 px-4 text-center",children:[i.jsx("p",{className:"text-2xl font-bold text-foreground",children:Je.length}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Active"})]}),i.jsxs("div",{className:"rounded-xl bg-card border border-border py-5 px-4 text-center",children:[i.jsxs("p",{className:"text-2xl font-bold text-foreground",children:[X.length?Math.round(he.length/X.length*100):0,"%"]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Interview Rate"})]}),i.jsxs("div",{className:"rounded-xl bg-card border border-border py-5 px-4 text-center",children:[i.jsxs("p",{className:"text-2xl font-bold text-foreground",children:[X.length?Math.round(Pe.length/X.length*100):0,"%"]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Offer Rate"})]})]})}),i.jsx("div",{className:"h-full",children:i.jsx(nc,{jobs:X,onDateClick:m=>{O(m),C(!0)}})})]}),i.jsx(Xa,{open:!!f,onOpenChange:m=>!m&&h(null),children:i.jsxs(qa,{side:$?"bottom":"right",className:`
47    bg-card border-border overflow-y-auto
48    ${$?"h-[90vh] rounded-t-3xl border-t":"w-full sm:max-w-lg"}
49  `,children:[i.jsx(Ua,{children:i.jsxs(Ha,{children:[f==null?void 0:f.companyName," — ",f==null?void 0:f.jobTitle]})}
49),g&&i.jsxs("div",{className:"space-y-4 mt-4",children:[i.jsxs("div",{children:[i.jsx(pe,{children:"Status"}),i.jsxs(xt,{value:g.status,onValueChange:m=>p({...g,status:m}),children:[i.jsx(yt,{className:"mt-1 bg-secondary/50",children:i.jsx(wt,{})}),i.jsx(St,{children:st.map(m=>i.jsx(Ge,{value:m,children:m},m))})]})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Location"}),i.jsx(Be,{value:g.location,onChange:m=>p({...g,location:m.target.value}),className:"mt-1 bg-secondary/50"})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Salary Range"}),i.jsx(Be,{value:g.salaryRange,onChange:m=>p({...g,salaryRange:m.target.value}),className:"mt-1 bg-secondary/50"})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Contact Person"}),i.jsx(Be,{value:g.contactPerson,onChange:m=>p({...g,contactPerson:m.target.value}),className:"mt-1 bg-secondary/50"})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Next Action"}),i.jsx(Be,{value:g.nextAction,onChange:m=>p({...g,nextAction:m.target.value}),className:"mt-1 bg-secondary/50"})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Next Action Date"}),i.jsx(Be,{type:"date",value:g.nextActionDate,onChange:m=>p({...g,nextActionDate:m.target.value}),className:"mt-1 bg-secondary/50"})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Linked Prep Session"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs(xt,{value:g.linkedPrepSessionId||"none",onValueChange:m=>p({...g,linkedPrepSessionId:m==="none"?null:m}),children:[i.jsx(yt,{className:"mt-1 bg-secondary/50 flex-1",children:i.jsx(wt,{placeholder:"Select a prep session"})}),i.jsxs(St,{children:[i.jsx(Ge,{value:"none",children:"None / No Prep Session"}),t==null?void 0:t.map(m=>i.jsxs(Ge,{value:m.id,children:[m.company," — ",m.jobTitle]},m.id))]})]}),g.linkedPrepSessionId&&i.jsx(_e,{type:"button",variant:"secondary",className:"mt-1 shrink-0 h-9",onClick:()=>Y("/interview-prep",{state:{sessionId:g.linkedPrepSessionId}}),children:"Go to Prep Plan"})]})]}),i.jsxs("div",{children:[i.jsx(pe,{children:"Notes"}),i.jsx(Ja,{value:g.notes,onChange:m=>p({...g,notes:m.target.value}),className:"mt-1 bg-secondary/50",rows:4})]}),i.jsxs("div",{className:"flex gap-3 mt-4",children:[i.jsx(_e,{onClick:zt,disabled:y||x,className:"gradient-primary text-primary-foreground",children:y?"Saving...":"Save Changes"}),i.jsx(_e,{type:"button",variant:"outline",onClick:()=>p(f),disabled:y||x,children:"Reset"}),i.jsx(_e,{type:"button",variant:"destructive",onClick:()=>R(g.id),disabled:y||x,children:x?"Deleting...":"Delete"})]})]})]})}),s==="kanban"&&i.jsxs(gl,{sensors:_,collisionDetection:Zr,onDragStart:gt,onDragOver:De,onDragEnd:tt,onDragCancel:nt,children:[i.jsx("div",{className:"flex gap-4 overflow-x-auto pb-4 max-h-[calc(100vh-320p
49x)] [scrollbar-width:thin] [scrollbar-color:hsl(var(--primary))_transparent] [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-secondary/30 [&::-webkit-scrollbar-track]:rounded-full [&::-webkit-scrollbar-thumb]:bg-primary/70 [&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:bg-primary",children:xe.map(m=>{const L=w.filter(E=>E.status===m);return i.jsxs(ec,{id:m,children:[i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsx(Nn,{className:fr[m],children:m}),i.jsx("span",{className:"text-xs text-muted-foreground",children:L.length})]}),i.jsxs("div",{className:"space-y-2 overflow-y-auto pr-1 max-h-[calc(100vh-320px)] [scrollbar-width:thin] [scrollbar-color:hsl(var(--primary))_transparent] [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-secondary/30 [&::-webkit-scrollbar-track]:rounded-full [&::-webkit-scrollbar-thumb]:bg-primary/70 [&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:bg-primary flex-grow min-h-[100px]",children:[i.jsx(Yl,{items:L.map(E=>E.id),strategy:Fl,children:L.map(E=>{const G=t.find(U=>U.id===E.linkedPrepSessionId);return i.jsx(tc,{job:E,onClick:()=>h(E),isOverdue:Me(E),prepScore:G==null?void 0:G.readinessScore},E.id)})}),L.length===0&&i.jsx("div",{className:"rounded-xl border border-dashed border-border p-4 text-center h-20 flex items-center justify-center",children:i.jsx("p",{className:"text-xs text-muted-foreground",children:"Drop here"})})]})]},m)})}),i.jsx(Ml,{children:Q?i.jsxs("div",{className:"rounded-xl bg-card border border-primary/50 p-3 shadow-2xl scale-105 opacity-90 cursor-grabbing",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx("div",{className:"w-8 h-8 rounded-lg bg-secondary flex items-center justify-center text-xs font-bold text-muted-foreground",children:Q.companyName.charAt(0)}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:Q.companyName}),i.jsx("p",{className:"text-xs text-muted-foreground truncate",children:Q.jobTitle})]})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:Q.dateApplied})]}):null})]}),s==="table"&&i.jsx("div",{className:"bg-card border border-border rounded-2xl overflow-hidden shadow-card",children:i.jsx("div",{className:"overflow-auto max-h-[calc(100vh-320p
49x)] [scrollbar-width:thin] [scrollbar-color:hsl(var(--primary))_transparent] [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-secondary/30 [&::-webkit-scrollbar-track]:rounded-full [&::-webkit-scrollbar-thumb]:bg-primary/70 [&::-webkit-scrollbar-thumb]:rounded-full hover:[&::-webkit-scrollbar-thumb]:bg-primary",children:i.jsxs("table",{className:"w-full text-sm",children:[i.jsx("thead",{className:"sticky top-0 z-10 bg-card",children:i.jsxs("tr",{className:"border-b border-border bg-secondary/30",children:[i.jsx("th",{className:"text-left py-3 px-4 text-muted-foreground font-medium",children:"Company"}),i.jsx("th",{className:"text-left py-3 px-4 text-muted-foreground font-medium",children:"Role"}),i.jsx("th",{className:"text-left py-3 px-4 text-muted-foreground font-medium",children:"Date"}),i.jsx("th",{className:"text-left py-3 px-4 text-muted-foreground font-medium",children:"Status"}),i.jsx("th",{className:"text-left py-3 px-4 text-muted-foreground font-medium",children:"Location"})]})}),i.jsx("tbody",{children:w.length===0?i.jsx("tr",{children:i.jsx("td",{colSpan:5,className:"py-12 text-center text-muted-foreground",children:A?"No matching applications found":"No applications tracked yet"})}):w.map(m=>{var L;return i.jsxs("tr",{className:"border-b border-border/50 hover:bg-secondary/20 cursor-pointer",onClick:()=>h(m),children:[i.jsx("td",{className:"py-3 px-4 font-medium text-foreground max-w-[220px] truncate",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"truncate",children:m.companyName}),m.linkedPrepSessionId&&i.jsxs(Nn,{variant:"outline",className:"text-[10px] py-0 h-5 shrink-0",children:[(L=t.find(E=>E.id===m.linkedPrepSessionId))==null?void 0:L.readinessScore,"% Prep"]})]})}),i.jsx("td",{className:"py-3 px-4 text-muted-foreground",children:m.jobTitle}),i.jsx("td",{className:"py-3 px-4 text-muted-foreground",children:m.dateApplied}),i.jsx("td",{className:"py-3 px-4",onClick:E=>E.stopPropagation(),children:i.jsxs(xt,{value:m.status,onValueChange:E=>{je(m,E)},children:[i.jsx(yt,{className:`w-[130px] h-8 text-xs border ${fr[m.status]}`,children:i.jsx(wt,{})}),i.jsx(St,{children:st.map(E=>i.jsx(Ge,{value:E,children:E},E))})]})}),i.jsx("td",{className:"py-3 px-4 text-muted-foreground max-w-[220px] truncate",children:m.location||"—"})]},m.id)})})]})})}),X.length===0&&!A&&i.jsxs("div",{className:"bg-card border border-border rounded-2xl p-12 text-center shadow-card",children:[i.jsx(Va,{className:"w-12 h-12 text-muted-foreground mx-auto mb-4"}),i.jsx("h3",{className:"text-lg font-semibold text-foreground mb-1",children:"No applications tracked"}),i.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Start tracking your job applications"}),i.jsxs(_e,{onClick:()=>d(!0),className:"gradient-primary text-primary-foreground",children:[i.jsx(Xn,{className:"w-4 h-4 mr-2"})," Add Your First Application"]})]}),i.jsx($n,{open:D,onOpenChange:C,children:i.jsxs(Bn,{className:`
50    w-[92vw]
51    max-w-md
52    max-h-[80vh]
53    p-4
54    rounded-2xl
55  `,children:[i.jsx(_n,{children:i.jsx(zn,{children:"Scheduled Actions"})}),X.filter(m=>m.nextActionDate===M).length===0?i.jsx("p",{children:"No scheduled actions for this date."}):i.jsx("div",{className:`space-y-3 max-h-[400px] overflow-y-auto pr-2
56                [scrollbar-width:thin]
57                [scrollbar-color:hsl(var(--primary))_transparent]
58                [&::-webkit-scrollbar]:w-2
59                [&::-webkit-scrollbar-track]:bg-secondary/30
60                [&::-webkit-scrollbar-track]:rounded-full
61                [&::-webkit-scrollbar-thumb]:bg-primary/70
62                [&::-webkit-scrollbar-thumb]:rounded-full
63                hover:[&::-webkit-scrollbar-thumb]:bg-primary`,children:X.filter(m=>m.nextActionDate===M).map(m=>i.jsxs("div",{className:"border rounded-lg p-3",children:[i.jsx("p",{className:"font-medium",children:m.companyName}),i.jsx("p",{className:"text-sm",children:m.jobTitle}),i.jsx("p",{className:"text-sm text-primary",children:m.nextAction})]},m.id))})]})}),i.jsx(Ga,{open:!!k,onOpenChange:m=>!m&&R(null),children:i.jsxs(Ka,{children:[i.jsxs(Qa,{children:[i.jsx(Za,{children:"Are you absolutely sure?"}),i.jsx(eo,{children:"This action cannot be undone. This will permanently delete the job application."})]}),i.jsxs(to,{children:[i.jsx(no,{disabled:x,children:"Cancel"}),i.jsx(ro,{onClick:m=>{m.preventDefault(),k&&Xt(k)},disabled:x,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:x?"Deleting...":"Delete"})]})]})})]})}export{mc as default};

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.