componentes-exagono 0.1.28 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -10695,7 +10695,7 @@ const pd = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
10695
10695
  /* @__PURE__ */ h.jsxs("div", { className: ve.eventDetails, children: [
10696
10696
  /* @__PURE__ */ h.jsx("div", { className: ve.eventTitle, children: m.titulo.length > 32 ? `${m.titulo.substring(0, 32)}...` : m.titulo }),
10697
10697
  /* @__PURE__ */ h.jsx("div", { className: ve.eventGroupDate, children: m.client }),
10698
- /* @__PURE__ */ h.jsx("div", { className: ve.eventTime, children: `${new Intl.DateTimeFormat("es-ES", { hour: "numeric", minute: "numeric" }).format(m.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES", { hour: "numeric", minute: "numeric" }).format(
10698
+ /* @__PURE__ */ h.jsx("div", { className: ve.eventTime, children: `${new Intl.DateTimeFormat("es-ES", { hour: "2-digit", minute: "numeric" }).format(m.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES", { hour: "2-digit", minute: "numeric" }).format(
10699
10699
  m.fechaFin
10700
10700
  )}` })
10701
10701
  ] }),
@@ -10788,7 +10788,7 @@ const pd = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
10788
10788
  },
10789
10789
  children: [
10790
10790
  /* @__PURE__ */ h.jsx("span", { className: er.eventTitle, children: p.titulo }),
10791
- /* @__PURE__ */ h.jsx("span", { className: er.eventTime, children: `${new Intl.DateTimeFormat("es-ES", { hour: "numeric", minute: "numeric" }).format(p.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES", { hour: "numeric", minute: "numeric" }).format(
10791
+ /* @__PURE__ */ h.jsx("span", { className: er.eventTime, children: `${new Intl.DateTimeFormat("es-ES", { hour: "2-digit", minute: "numeric" }).format(p.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES", { hour: "2-digit", minute: "numeric" }).format(
10792
10792
  p.fechaFin
10793
10793
  )}` })
10794
10794
  ]
@@ -16907,7 +16907,7 @@ const hf = /^([01][0-9]|2[0-3]):[0-5][0-9]$/, ED = eD({
16907
16907
  u(!1), f(null);
16908
16908
  }, U = async (X, K) => {
16909
16909
  let ae, se;
16910
- X.todoElDia ? (ae = /* @__PURE__ */ new Date(`${X.fechaInicio}T${X.horaInicio}`), se = /* @__PURE__ */ new Date(`${X.fechaInicio}T${X.horaFin}`)) : (ae = /* @__PURE__ */ new Date(`${X.fechaInicio}T${X.horaInicio}`), se = X.fechaFin && X.horaInicio2 ? /* @__PURE__ */ new Date(`${X.fechaFin}T${X.horaInicio2}`) : new Date(ae.getTime() + 3600 * 1e3));
16910
+ X.todoElDia ? (ae = /* @__PURE__ */ new Date(`${X.fechaInicio}T${X.horaInicio}`), se = /* @__PURE__ */ new Date(`${X.fechaInicio}T${X.horaFin}`)) : (ae = /* @__PURE__ */ new Date(`${X.fechaInicio}T${X.horaInicio}`), se = X.fechaFin && X.horaInicio2 ? /* @__PURE__ */ new Date(`${X.fechaFin}T${X.horaInicio2}`) : /* @__PURE__ */ new Date(`${X.fechaInicio}T${X.horaInicio2}`));
16911
16911
  const pe = Ke(ae, "yyyy-MM-dd HH:mm:ss.SSS"), ce = Ke(se, "yyyy-MM-dd HH:mm:ss.SSS");
16912
16912
  if (K) {
16913
16913
  const F = {
package/dist/index.umd.js CHANGED
@@ -163,7 +163,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const cb=co("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),rd=Symbol.for("constructDateFrom");function vs(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rd in e?e[rd](t):e instanceof Date?new e.constructor(t):new Date(t)}function Nr(e,t){return vs(t||e,e)}function nd(e,t,r){const[n,o]=[+Nr(e.start,r?.in),+Nr(e.end,r?.in)].sort((s,c)=>s-c),[i,a]=[+Nr(t.start,r?.in),+Nr(t.end,r?.in)].sort((s,c)=>s-c);return n<a&&i<o}function Pi(e){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}var lb=/^\s+/,ub=/\s+$/;function de(e,t){if(e=e||"",t=t||{},e instanceof de)return e;if(!(this instanceof de))return new de(e,t);var r=db(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}de.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,i,a,s;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(t){return this._a=ld(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=id(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=id(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=od(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=od(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ad(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return mb(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(We(this._r,255)*100)+"%",g:Math.round(We(this._g,255)*100)+"%",b:Math.round(We(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%)":"rgba("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Db[ad(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+sd(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=de(t);n="#"+sd(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,i=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return de(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(bb,arguments)},brighten:function(){return this._applyModification(wb,arguments)},darken:function(){return this._applyModification(_b,arguments)},desaturate:function(){return this._applyModification(gb,arguments)},saturate:function(){return this._applyModification(vb,arguments)},greyscale:function(){return this._applyModification(yb,arguments)},spin:function(){return this._applyModification(xb,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Eb,arguments)},complement:function(){return this._applyCombination(Sb,arguments)},monochromatic:function(){return this._applyCombination(kb,arguments)},splitcomplement:function(){return this._applyCombination(Cb,arguments)},triad:function(){return this._applyCombination(cd,[3])},tetrad:function(){return this._applyCombination(cd,[4])}},de.fromRatio=function(e,t){if(Pi(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=lo(e[n]));e=r}return de(e,t)};function db(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Pb(e)),Pi(e)=="object"&&(_r(e.r)&&_r(e.g)&&_r(e.b)?(t=fb(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_r(e.h)&&_r(e.s)&&_r(e.v)?(n=lo(e.s),o=lo(e.v),t=hb(e.h,n,o),a=!0,s="hsv"):_r(e.h)&&_r(e.s)&&_r(e.l)&&(n=lo(e.s),i=lo(e.l),t=pb(e.h,n,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=ld(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function fb(e,t,r){return{r:We(e,255)*255,g:We(t,255)*255,b:We(r,255)*255}}function od(e,t,r){e=We(e,255),t=We(t,255),r=We(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,a,s=(n+o)/2;if(n==o)i=a=0;else{var c=n-o;switch(a=s>.5?c/(2-n-o):c/(n+o),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:a,l:s}}function pb(e,t,r){var n,o,i;e=We(e,360),t=We(t,100),r=We(r,100);function a(l,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(u-l)*6*d:d<1/2?u:d<2/3?l+(u-l)*(2/3-d)*6:l}if(t===0)n=o=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function id(e,t,r){e=We(e,255),t=We(t,255),r=We(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,a,s=n,c=n-o;if(a=n===0?0:c/n,n==o)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:a,v:s}}function hb(e,t,r){e=We(e,360)*6,t=We(t,100),r=We(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),a=r*(1-o*t),s=r*(1-(1-o)*t),c=n%6,l=[r,a,i,i,s,r][c],u=[s,r,r,a,i,i][c],d=[i,i,s,r,r,a][c];return{r:l*255,g:u*255,b:d*255}}function ad(e,t,r,n){var o=[Kt(Math.round(e).toString(16)),Kt(Math.round(t).toString(16)),Kt(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function mb(e,t,r,n,o){var i=[Kt(Math.round(e).toString(16)),Kt(Math.round(t).toString(16)),Kt(Math.round(r).toString(16)),Kt(ud(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function sd(e,t,r,n){var o=[Kt(ud(n)),Kt(Math.round(e).toString(16)),Kt(Math.round(t).toString(16)),Kt(Math.round(r).toString(16))];return o.join("")}de.equals=function(e,t){return!e||!t?!1:de(e).toRgbString()==de(t).toRgbString()},de.random=function(){return de.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function gb(e,t){t=t===0?0:t||10;var r=de(e).toHsl();return r.s-=t/100,r.s=Ai(r.s),de(r)}function vb(e,t){t=t===0?0:t||10;var r=de(e).toHsl();return r.s+=t/100,r.s=Ai(r.s),de(r)}function yb(e){return de(e).desaturate(100)}function bb(e,t){t=t===0?0:t||10;var r=de(e).toHsl();return r.l+=t/100,r.l=Ai(r.l),de(r)}function wb(e,t){t=t===0?0:t||10;var r=de(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),de(r)}function _b(e,t){t=t===0?0:t||10;var r=de(e).toHsl();return r.l-=t/100,r.l=Ai(r.l),de(r)}function xb(e,t){var r=de(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,de(r)}function Sb(e){var t=de(e).toHsl();return t.h=(t.h+180)%360,de(t)}function cd(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=de(e).toHsl(),n=[de(e)],o=360/t,i=1;i<t;i++)n.push(de({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function Cb(e){var t=de(e).toHsl(),r=t.h;return[de(e),de({h:(r+72)%360,s:t.s,l:t.l}),de({h:(r+216)%360,s:t.s,l:t.l})]}function Eb(e,t,r){t=t||6,r=r||30;var n=de(e).toHsl(),o=360/r,i=[de(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(de(n));return i}function kb(e,t){t=t||6;for(var r=de(e).toHsv(),n=r.h,o=r.s,i=r.v,a=[],s=1/t;t--;)a.push(de({h:n,s:o,v:i})),i=(i+s)%1;return a}de.mix=function(e,t,r){r=r===0?0:r||50;var n=de(e).toRgb(),o=de(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return de(a)},de.readability=function(e,t){var r=de(e),n=de(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},de.isReadable=function(e,t,r){var n=de.readability(e,t),o,i;switch(i=!1,o=Ab(r),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},de.mostReadable=function(e,t,r){var n=null,o=0,i,a,s,c;r=r||{},a=r.includeFallbackColors,s=r.level,c=r.size;for(var l=0;l<t.length;l++)i=de.readability(e,t[l]),i>o&&(o=i,n=de(t[l]));return de.isReadable(e,n,{level:s,size:c})||!a?n:(r.includeFallbackColors=!1,de.mostReadable(e,["#fff","#000"],r))};var ys=de.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Db=de.hexNames=Tb(ys);function Tb(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function ld(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function We(e,t){Ob(e)&&(e="100%");var r=Mb(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Ai(e){return Math.min(1,Math.max(0,e))}function $t(e){return parseInt(e,16)}function Ob(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Mb(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Kt(e){return e.length==1?"0"+e:""+e}function lo(e){return e<=1&&(e=e*100+"%"),e}function ud(e){return Math.round(parseFloat(e)*255).toString(16)}function dd(e){return $t(e)/255}var Gt=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function _r(e){return!!Gt.CSS_UNIT.exec(e)}function Pb(e){e=e.replace(lb,"").replace(ub,"").toLowerCase();var t=!1;if(ys[e])e=ys[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Gt.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Gt.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Gt.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Gt.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Gt.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Gt.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Gt.hex8.exec(e))?{r:$t(r[1]),g:$t(r[2]),b:$t(r[3]),a:dd(r[4]),format:t?"name":"hex8"}:(r=Gt.hex6.exec(e))?{r:$t(r[1]),g:$t(r[2]),b:$t(r[3]),format:t?"name":"hex"}:(r=Gt.hex4.exec(e))?{r:$t(r[1]+""+r[1]),g:$t(r[2]+""+r[2]),b:$t(r[3]+""+r[3]),a:dd(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Gt.hex3.exec(e))?{r:$t(r[1]+""+r[1]),g:$t(r[2]+""+r[2]),b:$t(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function Ab(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}const fd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23C4D9F5'%20d='M36.667%2020c0%209.205-7.462%2016.667-16.667%2016.667S3.333%2029.205%203.333%2020%2010.795%203.333%2020%203.333%2036.667%2010.795%2036.667%2020'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M20%2012.083c.69%200%201.25.56%201.25%201.25v6.15l3.8%203.8a1.25%201.25%200%201%201-1.767%201.767l-4.167-4.166A1.25%201.25%200%200%201%2018.75%2020v-6.667c0-.69.56-1.25%201.25-1.25'%20clip-rule='evenodd'/%3e%3c/svg%3e",Ib="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='23'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M17.614%202.64h-.5v-.622c0-.566-.443-1.018-.998-1.018s-.998.452-.998%201.018v.622H7.893v-.622C7.894%201.452%207.45%201%206.895%201s-.999.452-.999%201.018v.622h-.5C2.946%202.64.959%204.665.959%207.165v11.31c0%202.5%201.987%204.525%204.439%204.525h12.206c2.452%200%204.439-2.025%204.439-4.524V7.165c0-2.5-1.987-4.525-4.439-4.525zm0%2018.098H5.408c-1.22%200-2.22-1.018-2.22-2.262V10.41h16.646v8.065c0%201.244-1%202.262-2.22%202.262'/%3e%3c/svg%3e",Rb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M12.667%204.667a3%203%200%200%201%203%203v8.667a3%203%200%200%201-3%203H4a3%203%200%200%201-3-3V7.667a3%203%200%200%201%203-3zM21.36%206.237a1%201%200%200%201%201.64.77V17a1%201%200%200%201-1.64.768L17%2014.135V9.867z'/%3e%3c/svg%3e",Nb=({onEventClick:e,upcomingEvents:t,onSyncGoogle:r,onSyncOutlook:n,leads30Days:o,leads90Days:i})=>{const a=d=>{const f=new Date,m={start:w.startOfDay(f),end:w.endOfDay(f)},g={start:d.fechaInicio,end:d.fechaFin};return nd(m,g)?"Hoy":w.isTomorrow(d.fechaInicio)?"Mañana":new Intl.DateTimeFormat("es-ES",{day:"numeric",month:"long"}).format(d.fechaInicio)},s={};t.forEach(d=>{const f=a(d);s[f]||(s[f]=[]),s[f].push(d)});const[c,l]=x.useState(!1),u=()=>{l(!c)};return h.jsxs("div",{className:we.sidebarContainer,children:[h.jsxs("div",{className:we.leadsSection,children:[h.jsxs("div",{className:we.leadCard,children:[h.jsx("div",{className:we.leadIcon,children:h.jsx("img",{src:fd})}),h.jsxs("div",{className:we.leadText,children:[h.jsx("div",{className:we.leadDays,children:"+30 días sin atender"}),h.jsxs("div",{className:we.leadCount,children:[o," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]}),h.jsxs("div",{className:we.leadCard,children:[h.jsx("div",{className:we.leadIcon,children:h.jsx("img",{src:fd})}),h.jsxs("div",{className:we.leadText,children:[h.jsx("div",{className:we.leadDays,children:"+90 días sin atender"}),h.jsxs("div",{className:we.leadCount,children:[i," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]})]}),h.jsxs("div",{className:we.eventsSection,children:[h.jsx("h3",{className:we.sidebarTitle,children:"Próximos eventos"}),h.jsx("div",{className:we.eventsContainer,children:Object.entries(s).map(([d,f])=>h.jsxs("div",{className:`${we.eventGroup}`,children:[h.jsxs("div",{className:we.eventGroupDate,children:[h.jsx("img",{src:Ib,width:15})," ",d]}),f.map(m=>{const g=de(m.color||"#ffcc00"),p=g.toString(),y=g.clone().darken(15).toString();return h.jsxs("div",{className:we.eventItem,style:{backgroundColor:p,borderLeftColor:y},onClick:()=>e(m),children:[h.jsxs("div",{className:we.eventDetails,children:[h.jsx("div",{className:we.eventTitle,children:m.titulo.length>32?`${m.titulo.substring(0,32)}...`:m.titulo}),h.jsx("div",{className:we.eventGroupDate,children:m.client}),h.jsx("div",{className:we.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"numeric",minute:"numeric"}).format(m.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"numeric",minute:"numeric"}).format(m.fechaFin)}`})]}),m.link&&h.jsx("a",{onClick:S=>{S.stopPropagation()},href:m?.link,target:"_blank",style:{textDecoration:"none"},children:h.jsx("img",{src:Rb,width:15,style:{marginLeft:"3px"}})})]},m.eventoID)})]},d))})]}),h.jsxs("div",{className:we.calendarsSection,hidden:!0,children:[h.jsxs("button",{onClick:u,className:we.collapsibleHeader,children:[h.jsxs("div",{className:we.headerTitle,children:[h.jsx("h3",{children:"Calendarios"}),h.jsx("span",{className:we.calendarCount,children:"1"})]}),h.jsx(ib,{className:`${we.chevronIcon} ${c?we.collapsed:""}`})]}),h.jsxs("div",{className:`${we.collapsibleContent} ${c?we.hidden:""}`,children:[h.jsxs("div",{className:we.calendarItem,children:[h.jsx("div",{className:we.circularCheckbox,children:h.jsx(ab,{size:24,className:we.checkedIcon})}),h.jsx(td,{size:24,className:we.calendarIcon}),h.jsx("span",{children:"Mi calendario"})]}),h.jsxs("div",{className:we.calendarItem,onClick:n,children:[h.jsx("div",{className:we.circularCheckbox,children:h.jsx(sb,{size:24,className:we.uncheckedIcon})}),h.jsx(cb,{size:24,className:we.calendarIcon}),h.jsx("span",{children:"Outlook"})]}),h.jsxs("div",{className:we.syncButton,onClick:r,children:[h.jsx(td,{size:24,className:we.googleIcon}),h.jsx("span",{children:"Sincronizar Google Calendar"})]})]})]})]})},Qt={dayCell:"_dayCell_ph891_1",dayCellContainer:"_dayCellContainer_ph891_23",dayNumber:"_dayNumber_ph891_55",dayNumberToday:"_dayNumberToday_ph891_69",notCurrentMonth:"_notCurrentMonth_ph891_91",CurrentDay:"_CurrentDay_ph891_129",eventsList:"_eventsList_ph891_137",eventItem:"_eventItem_ph891_155",eventTitle:"_eventTitle_ph891_187",eventTime:"_eventTime_ph891_217",seeMoreLink:"_seeMoreLink_ph891_245"},pd=25,$b=22,jb=({dayNumber:e,date:t,events:r,isToday:n,isCurrentMonth:o,onDayClick:i,onEventClick:a,onSeeMoreClick:s})=>{const c=[Qt.dayCell,o?"":Qt.notCurrentMonth,Qt.CurrentDay].join(" ").trim(),l=x.useRef(null),[u,d]=x.useState(r.length),f=()=>{i?.(t)};x.useLayoutEffect(()=>{const p=()=>{if(l.current){const y=l.current.clientHeight;let S=Math.floor(y/pd);if(S<r.length){const C=Math.floor((y-$b)/pd);S=Math.max(0,C)}d(S)}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[r.length]);const m=r.slice(0,u==0?1:u),g=r.length-(u==0?1:u);return h.jsxs("div",{className:`${c} ${Qt.dayCellContainer}`,onClick:f,children:[h.jsx("div",{className:n?Qt.dayNumber:Qt.dayNumberToday,children:e}),h.jsxs("div",{className:Qt.eventsList,ref:l,children:[m.map(p=>h.jsxs("div",{className:Qt.eventItem,style:{backgroundColor:p.color||"#007bff"},onClick:y=>{y.stopPropagation(),a?.(p)},children:[h.jsx("span",{className:Qt.eventTitle,children:p.titulo}),h.jsx("span",{className:Qt.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"numeric",minute:"numeric"}).format(p.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"numeric",minute:"numeric"}).format(p.fechaFin)}`})]},p.eventoID)),g>0&&h.jsxs("div",{className:Qt.seeMoreLink,onClick:p=>{p.stopPropagation(),s(r,t)},children:[g," más..."]})]})]})},hd={weekDaysContainer:"_weekDaysContainer_5h5ol_1",weekDay:"_weekDay_5h5ol_1"},Lb=()=>{const e=["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"];return h.jsx("div",{className:hd.weekDaysContainer,children:e.map(t=>h.jsx("div",{className:hd.weekDay,children:t},t))})},Ii={calendarGridContainer:"_calendarGridContainer_1expw_1",daysContainer:"_daysContainer_1expw_23",rows5:"_rows5_1expw_37",rows6:"_rows6_1expw_45"};function zb(e,...t){const r=vs.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Bb(e,t){const[r,n]=zb(e,t.start,t.end);return{start:r,end:n}}function Vb(e,t){const{start:r,end:n}=Bb(t?.in,e);let o=+r>+n;const i=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0);let s=1;const c=[];for(;+a<=i;)c.push(vs(r,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?c.reverse():c}function Fb(e,t){const r=t?.weekStartsOn,n=Nr(e,t?.in),o=n.getDay(),i=(o<r?-7:0)+6-(o-r);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function Yb(e,t,r){const n=+Nr(e,r?.in),[o,i]=[+Nr(t.start,r?.in),+Nr(t.end,r?.in)].sort((a,s)=>a-s);return n>=o&&n<=i}const Ub=({currentDate:e,events:t,onDayClick:r,onEventClick:n,onSeeMoreClick:o})=>{const i=w.startOfMonth(e),a=w.endOfMonth(e),s=w.startOfWeek(i,{weekStartsOn:1}),c=Fb(a,{weekStartsOn:1}),l=Vb({start:s,end:c}),u={},d=l.length/7,f=`${Ii.daysContainer} ${d===5?Ii.rows5:Ii.rows6}`;return t.forEach(m=>{const g=w.format(m.fechaInicio,"yyyy-MM-dd");u[g]||(u[g]=[]),u[g].push(m)}),h.jsxs("div",{className:Ii.calendarGridContainer,children:[h.jsx(Lb,{}),h.jsx("div",{className:f,children:l.map(m=>{const g=t.filter(p=>Yb(m,{start:w.startOfDay(p.fechaInicio),end:w.endOfDay(p.fechaFin)}));return h.jsx(jb,{dayNumber:m.getDate(),date:m,events:g,isToday:w.isToday(m),isCurrentMonth:w.isSameMonth(m,e),onDayClick:r,onEventClick:n,onSeeMoreClick:o},m.toISOString())})})]})};function md(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hb}=Object.prototype,{getPrototypeOf:bs}=Object,{iterator:Ri,toStringTag:gd}=Symbol,Ni=(e=>t=>{const r=Hb.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=e=>(e=e.toLowerCase(),t=>Ni(t)===e),$i=e=>t=>typeof t===e,{isArray:kn}=Array,uo=$i("undefined");function fo(e){return e!==null&&!uo(e)&&e.constructor!==null&&!uo(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vd=Xt("ArrayBuffer");function Wb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vd(e.buffer),t}const Zb=$i("string"),kt=$i("function"),yd=$i("number"),po=e=>e!==null&&typeof e=="object",qb=e=>e===!0||e===!1,ji=e=>{if(Ni(e)!=="object")return!1;const t=bs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gd in e)&&!(Ri in e)},Kb=e=>{if(!po(e)||fo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gb=Xt("Date"),Qb=Xt("File"),Xb=Xt("Blob"),Jb=Xt("FileList"),e1=e=>po(e)&&kt(e.pipe),t1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||kt(e.append)&&((t=Ni(e))==="formdata"||t==="object"&&kt(e.toString)&&e.toString()==="[object FormData]"))},r1=Xt("URLSearchParams"),[n1,o1,i1,a1]=["ReadableStream","Request","Response","Headers"].map(Xt),s1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ho(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),kn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(fo(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function bd(e,t){if(fo(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wd=e=>!uo(e)&&e!==Kr;function ws(){const{caseless:e}=wd(this)&&this||{},t={},r=(n,o)=>{const i=e&&bd(t,o)||o;ji(t[i])&&ji(n)?t[i]=ws(t[i],n):ji(n)?t[i]=ws({},n):kn(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&ho(arguments[n],r);return t}const c1=(e,t,r,{allOwnKeys:n}={})=>(ho(t,(o,i)=>{r&&kt(o)?e[i]=md(o,r):e[i]=o},{allOwnKeys:n}),e),l1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),u1=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},d1=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&bs(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},f1=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},p1=e=>{if(!e)return null;if(kn(e))return e;let t=e.length;if(!yd(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},h1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bs(Uint8Array)),m1=(e,t)=>{const n=(e&&e[Ri]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},g1=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},v1=Xt("HTMLFormElement"),y1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),_d=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),b1=Xt("RegExp"),xd=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ho(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},w1=e=>{xd(e,(t,r)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(kt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_1=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return kn(e)?n(e):n(String(e).split(t)),r},x1=()=>{},S1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function C1(e){return!!(e&&kt(e.append)&&e[gd]==="FormData"&&e[Ri])}const E1=e=>{const t=new Array(10),r=(n,o)=>{if(po(n)){if(t.indexOf(n)>=0)return;if(fo(n))return n;if(!("toJSON"in n)){t[o]=n;const i=kn(n)?[]:{};return ho(n,(a,s)=>{const c=r(a,o+1);!uo(c)&&(i[s]=c)}),t[o]=void 0,i}}return n};return r(e,0)},k1=Xt("AsyncFunction"),D1=e=>e&&(po(e)||kt(e))&&kt(e.then)&&kt(e.catch),Sd=((e,t)=>e?setImmediate:t?((r,n)=>(Kr.addEventListener("message",({source:o,data:i})=>{o===Kr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Kr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",kt(Kr.postMessage)),T1=typeof queueMicrotask<"u"?queueMicrotask.bind(Kr):typeof process<"u"&&process.nextTick||Sd,z={isArray:kn,isArrayBuffer:vd,isBuffer:fo,isFormData:t1,isArrayBufferView:Wb,isString:Zb,isNumber:yd,isBoolean:qb,isObject:po,isPlainObject:ji,isEmptyObject:Kb,isReadableStream:n1,isRequest:o1,isResponse:i1,isHeaders:a1,isUndefined:uo,isDate:Gb,isFile:Qb,isBlob:Xb,isRegExp:b1,isFunction:kt,isStream:e1,isURLSearchParams:r1,isTypedArray:h1,isFileList:Jb,forEach:ho,merge:ws,extend:c1,trim:s1,stripBOM:l1,inherits:u1,toFlatObject:d1,kindOf:Ni,kindOfTest:Xt,endsWith:f1,toArray:p1,forEachEntry:m1,matchAll:g1,isHTMLForm:v1,hasOwnProperty:_d,hasOwnProp:_d,reduceDescriptors:xd,freezeMethods:w1,toObjectSet:_1,toCamelCase:y1,noop:x1,toFiniteNumber:S1,findKey:bd,global:Kr,isContextDefined:wd,isSpecCompliantForm:C1,toJSONObject:E1,isAsyncFn:k1,isThenable:D1,setImmediate:Sd,asap:T1,isIterable:e=>e!=null&&kt(e[Ri])};function ye(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}z.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.status}}});const Cd=ye.prototype,Ed={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ed[e]={value:e}}),Object.defineProperties(ye,Ed),Object.defineProperty(Cd,"isAxiosError",{value:!0}),ye.from=(e,t,r,n,o,i)=>{const a=Object.create(Cd);return z.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),ye.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const O1=null;function _s(e){return z.isPlainObject(e)||z.isArray(e)}function kd(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Dd(e,t,r){return e?e.concat(t).map(function(o,i){return o=kd(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function M1(e){return z.isArray(e)&&!e.some(_s)}const P1=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function Li(e,t,r){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!z.isUndefined(y[p])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(z.isDate(g))return g.toISOString();if(z.isBoolean(g))return g.toString();if(!c&&z.isBlob(g))throw new ye("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,y){let S=g;if(g&&!y&&typeof g=="object"){if(z.endsWith(p,"{}"))p=n?p:p.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&M1(g)||(z.isFileList(g)||z.endsWith(p,"[]"))&&(S=z.toArray(g)))return p=kd(p),S.forEach(function(k,E){!(z.isUndefined(k)||k===null)&&t.append(a===!0?Dd([p],E,i):a===null?p:p+"[]",l(k))}),!1}return _s(g)?!0:(t.append(Dd(y,p,i),l(g)),!1)}const d=[],f=Object.assign(P1,{defaultVisitor:u,convertValue:l,isVisitable:_s});function m(g,p){if(!z.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),z.forEach(g,function(S,C){(!(z.isUndefined(S)||S===null)&&o.call(t,S,z.isString(C)?C.trim():C,p,f))===!0&&m(S,p?p.concat(C):[C])}),d.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Td(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function xs(e,t){this._pairs=[],e&&Li(e,this,t)}const Od=xs.prototype;Od.append=function(t,r){this._pairs.push([t,r])},Od.toString=function(t){const r=t?function(n){return t.call(this,n,Td)}:Td;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function A1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Md(e,t,r){if(!t)return e;const n=r&&r.encode||A1;z.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=z.isURLSearchParams(t)?t.toString():new xs(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Pd{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ad={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},I1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:xs,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ss=typeof window<"u"&&typeof document<"u",Cs=typeof navigator=="object"&&navigator||void 0,R1=Ss&&(!Cs||["ReactNative","NativeScript","NS"].indexOf(Cs.product)<0),N1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$1=Ss&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ss,hasStandardBrowserEnv:R1,hasStandardBrowserWebWorkerEnv:N1,navigator:Cs,origin:$1},Symbol.toStringTag,{value:"Module"})),...I1};function j1(e,t){return Li(e,new gt.classes.URLSearchParams,{visitor:function(r,n,o,i){return gt.isNode&&z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function L1(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function z1(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Id(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=r.length;return a=!a&&z.isArray(o)?o.length:a,c?(z.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!z.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&z.isArray(o[a])&&(o[a]=z1(o[a])),!s)}if(z.isFormData(e)&&z.isFunction(e.entries)){const r={};return z.forEachEntry(e,(n,o)=>{t(L1(n),o,r,0)}),r}return null}function B1(e,t,r){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const mo={transitional:Ad,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return o?JSON.stringify(Id(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return j1(t,this.formSerializer).toString();if((s=z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Li(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),B1(t)):t}],transformResponse:[function(t){const r=this.transitional||mo.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?ye.from(s,ye.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{mo.headers[e]={}});const V1=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),F1=e=>{const t={};let r,n,o;return e&&e.split(`
166
+ */const cb=co("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),rd=Symbol.for("constructDateFrom");function vs(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&rd in e?e[rd](t):e instanceof Date?new e.constructor(t):new Date(t)}function Nr(e,t){return vs(t||e,e)}function nd(e,t,r){const[n,o]=[+Nr(e.start,r?.in),+Nr(e.end,r?.in)].sort((s,c)=>s-c),[i,a]=[+Nr(t.start,r?.in),+Nr(t.end,r?.in)].sort((s,c)=>s-c);return n<a&&i<o}function Pi(e){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}var lb=/^\s+/,ub=/\s+$/;function de(e,t){if(e=e||"",t=t||{},e instanceof de)return e;if(!(this instanceof de))return new de(e,t);var r=db(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}de.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,o,i,a,s;return r=t.r/255,n=t.g/255,o=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(t){return this._a=ld(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=id(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=id(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=od(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=od(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+o+"%)":"hsla("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return ad(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return mb(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(We(this._r,255)*100)+"%",g:Math.round(We(this._g,255)*100)+"%",b:Math.round(We(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%)":"rgba("+Math.round(We(this._r,255)*100)+"%, "+Math.round(We(this._g,255)*100)+"%, "+Math.round(We(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Db[ad(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+sd(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=de(t);n="#"+sd(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,o=this._a<1&&this._a>=0,i=!r&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return de(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(bb,arguments)},brighten:function(){return this._applyModification(wb,arguments)},darken:function(){return this._applyModification(_b,arguments)},desaturate:function(){return this._applyModification(gb,arguments)},saturate:function(){return this._applyModification(vb,arguments)},greyscale:function(){return this._applyModification(yb,arguments)},spin:function(){return this._applyModification(xb,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Eb,arguments)},complement:function(){return this._applyCombination(Sb,arguments)},monochromatic:function(){return this._applyCombination(kb,arguments)},splitcomplement:function(){return this._applyCombination(Cb,arguments)},triad:function(){return this._applyCombination(cd,[3])},tetrad:function(){return this._applyCombination(cd,[4])}},de.fromRatio=function(e,t){if(Pi(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=lo(e[n]));e=r}return de(e,t)};function db(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=Pb(e)),Pi(e)=="object"&&(_r(e.r)&&_r(e.g)&&_r(e.b)?(t=fb(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_r(e.h)&&_r(e.s)&&_r(e.v)?(n=lo(e.s),o=lo(e.v),t=hb(e.h,n,o),a=!0,s="hsv"):_r(e.h)&&_r(e.s)&&_r(e.l)&&(n=lo(e.s),i=lo(e.l),t=pb(e.h,n,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=ld(r),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function fb(e,t,r){return{r:We(e,255)*255,g:We(t,255)*255,b:We(r,255)*255}}function od(e,t,r){e=We(e,255),t=We(t,255),r=We(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,a,s=(n+o)/2;if(n==o)i=a=0;else{var c=n-o;switch(a=s>.5?c/(2-n-o):c/(n+o),n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:a,l:s}}function pb(e,t,r){var n,o,i;e=We(e,360),t=We(t,100),r=We(r,100);function a(l,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?l+(u-l)*6*d:d<1/2?u:d<2/3?l+(u-l)*(2/3-d)*6:l}if(t===0)n=o=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function id(e,t,r){e=We(e,255),t=We(t,255),r=We(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i,a,s=n,c=n-o;if(a=n===0?0:c/n,n==o)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:a,v:s}}function hb(e,t,r){e=We(e,360)*6,t=We(t,100),r=We(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),a=r*(1-o*t),s=r*(1-(1-o)*t),c=n%6,l=[r,a,i,i,s,r][c],u=[s,r,r,a,i,i][c],d=[i,i,s,r,r,a][c];return{r:l*255,g:u*255,b:d*255}}function ad(e,t,r,n){var o=[Kt(Math.round(e).toString(16)),Kt(Math.round(t).toString(16)),Kt(Math.round(r).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function mb(e,t,r,n,o){var i=[Kt(Math.round(e).toString(16)),Kt(Math.round(t).toString(16)),Kt(Math.round(r).toString(16)),Kt(ud(n))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function sd(e,t,r,n){var o=[Kt(ud(n)),Kt(Math.round(e).toString(16)),Kt(Math.round(t).toString(16)),Kt(Math.round(r).toString(16))];return o.join("")}de.equals=function(e,t){return!e||!t?!1:de(e).toRgbString()==de(t).toRgbString()},de.random=function(){return de.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function gb(e,t){t=t===0?0:t||10;var r=de(e).toHsl();return r.s-=t/100,r.s=Ai(r.s),de(r)}function vb(e,t){t=t===0?0:t||10;var r=de(e).toHsl();return r.s+=t/100,r.s=Ai(r.s),de(r)}function yb(e){return de(e).desaturate(100)}function bb(e,t){t=t===0?0:t||10;var r=de(e).toHsl();return r.l+=t/100,r.l=Ai(r.l),de(r)}function wb(e,t){t=t===0?0:t||10;var r=de(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),de(r)}function _b(e,t){t=t===0?0:t||10;var r=de(e).toHsl();return r.l-=t/100,r.l=Ai(r.l),de(r)}function xb(e,t){var r=de(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,de(r)}function Sb(e){var t=de(e).toHsl();return t.h=(t.h+180)%360,de(t)}function cd(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=de(e).toHsl(),n=[de(e)],o=360/t,i=1;i<t;i++)n.push(de({h:(r.h+i*o)%360,s:r.s,l:r.l}));return n}function Cb(e){var t=de(e).toHsl(),r=t.h;return[de(e),de({h:(r+72)%360,s:t.s,l:t.l}),de({h:(r+216)%360,s:t.s,l:t.l})]}function Eb(e,t,r){t=t||6,r=r||30;var n=de(e).toHsl(),o=360/r,i=[de(e)];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(de(n));return i}function kb(e,t){t=t||6;for(var r=de(e).toHsv(),n=r.h,o=r.s,i=r.v,a=[],s=1/t;t--;)a.push(de({h:n,s:o,v:i})),i=(i+s)%1;return a}de.mix=function(e,t,r){r=r===0?0:r||50;var n=de(e).toRgb(),o=de(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return de(a)},de.readability=function(e,t){var r=de(e),n=de(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},de.isReadable=function(e,t,r){var n=de.readability(e,t),o,i;switch(i=!1,o=Ab(r),o.level+o.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i},de.mostReadable=function(e,t,r){var n=null,o=0,i,a,s,c;r=r||{},a=r.includeFallbackColors,s=r.level,c=r.size;for(var l=0;l<t.length;l++)i=de.readability(e,t[l]),i>o&&(o=i,n=de(t[l]));return de.isReadable(e,n,{level:s,size:c})||!a?n:(r.includeFallbackColors=!1,de.mostReadable(e,["#fff","#000"],r))};var ys=de.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Db=de.hexNames=Tb(ys);function Tb(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function ld(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function We(e,t){Ob(e)&&(e="100%");var r=Mb(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Ai(e){return Math.min(1,Math.max(0,e))}function $t(e){return parseInt(e,16)}function Ob(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Mb(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Kt(e){return e.length==1?"0"+e:""+e}function lo(e){return e<=1&&(e=e*100+"%"),e}function ud(e){return Math.round(parseFloat(e)*255).toString(16)}function dd(e){return $t(e)/255}var Gt=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",o="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+o),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function _r(e){return!!Gt.CSS_UNIT.exec(e)}function Pb(e){e=e.replace(lb,"").replace(ub,"").toLowerCase();var t=!1;if(ys[e])e=ys[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Gt.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Gt.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Gt.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Gt.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Gt.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Gt.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Gt.hex8.exec(e))?{r:$t(r[1]),g:$t(r[2]),b:$t(r[3]),a:dd(r[4]),format:t?"name":"hex8"}:(r=Gt.hex6.exec(e))?{r:$t(r[1]),g:$t(r[2]),b:$t(r[3]),format:t?"name":"hex"}:(r=Gt.hex4.exec(e))?{r:$t(r[1]+""+r[1]),g:$t(r[2]+""+r[2]),b:$t(r[3]+""+r[3]),a:dd(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Gt.hex3.exec(e))?{r:$t(r[1]+""+r[1]),g:$t(r[2]+""+r[2]),b:$t(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function Ab(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}const fd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20fill='none'%3e%3cpath%20fill='%23C4D9F5'%20d='M36.667%2020c0%209.205-7.462%2016.667-16.667%2016.667S3.333%2029.205%203.333%2020%2010.795%203.333%2020%203.333%2036.667%2010.795%2036.667%2020'/%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M20%2012.083c.69%200%201.25.56%201.25%201.25v6.15l3.8%203.8a1.25%201.25%200%201%201-1.767%201.767l-4.167-4.166A1.25%201.25%200%200%201%2018.75%2020v-6.667c0-.69.56-1.25%201.25-1.25'%20clip-rule='evenodd'/%3e%3c/svg%3e",Ib="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='23'%20height='24'%20fill='none'%3e%3cpath%20fill='%23333'%20d='M17.614%202.64h-.5v-.622c0-.566-.443-1.018-.998-1.018s-.998.452-.998%201.018v.622H7.893v-.622C7.894%201.452%207.45%201%206.895%201s-.999.452-.999%201.018v.622h-.5C2.946%202.64.959%204.665.959%207.165v11.31c0%202.5%201.987%204.525%204.439%204.525h12.206c2.452%200%204.439-2.025%204.439-4.524V7.165c0-2.5-1.987-4.525-4.439-4.525zm0%2018.098H5.408c-1.22%200-2.22-1.018-2.22-2.262V10.41h16.646v8.065c0%201.244-1%202.262-2.22%202.262'/%3e%3c/svg%3e",Rb="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M12.667%204.667a3%203%200%200%201%203%203v8.667a3%203%200%200%201-3%203H4a3%203%200%200%201-3-3V7.667a3%203%200%200%201%203-3zM21.36%206.237a1%201%200%200%201%201.64.77V17a1%201%200%200%201-1.64.768L17%2014.135V9.867z'/%3e%3c/svg%3e",Nb=({onEventClick:e,upcomingEvents:t,onSyncGoogle:r,onSyncOutlook:n,leads30Days:o,leads90Days:i})=>{const a=d=>{const f=new Date,m={start:w.startOfDay(f),end:w.endOfDay(f)},g={start:d.fechaInicio,end:d.fechaFin};return nd(m,g)?"Hoy":w.isTomorrow(d.fechaInicio)?"Mañana":new Intl.DateTimeFormat("es-ES",{day:"numeric",month:"long"}).format(d.fechaInicio)},s={};t.forEach(d=>{const f=a(d);s[f]||(s[f]=[]),s[f].push(d)});const[c,l]=x.useState(!1),u=()=>{l(!c)};return h.jsxs("div",{className:we.sidebarContainer,children:[h.jsxs("div",{className:we.leadsSection,children:[h.jsxs("div",{className:we.leadCard,children:[h.jsx("div",{className:we.leadIcon,children:h.jsx("img",{src:fd})}),h.jsxs("div",{className:we.leadText,children:[h.jsx("div",{className:we.leadDays,children:"+30 días sin atender"}),h.jsxs("div",{className:we.leadCount,children:[o," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]}),h.jsxs("div",{className:we.leadCard,children:[h.jsx("div",{className:we.leadIcon,children:h.jsx("img",{src:fd})}),h.jsxs("div",{className:we.leadText,children:[h.jsx("div",{className:we.leadDays,children:"+90 días sin atender"}),h.jsxs("div",{className:we.leadCount,children:[i," ",h.jsx("span",{style:{fontSize:10,fontWeight:"normal"},children:"leads"})]})]})]})]}),h.jsxs("div",{className:we.eventsSection,children:[h.jsx("h3",{className:we.sidebarTitle,children:"Próximos eventos"}),h.jsx("div",{className:we.eventsContainer,children:Object.entries(s).map(([d,f])=>h.jsxs("div",{className:`${we.eventGroup}`,children:[h.jsxs("div",{className:we.eventGroupDate,children:[h.jsx("img",{src:Ib,width:15})," ",d]}),f.map(m=>{const g=de(m.color||"#ffcc00"),p=g.toString(),y=g.clone().darken(15).toString();return h.jsxs("div",{className:we.eventItem,style:{backgroundColor:p,borderLeftColor:y},onClick:()=>e(m),children:[h.jsxs("div",{className:we.eventDetails,children:[h.jsx("div",{className:we.eventTitle,children:m.titulo.length>32?`${m.titulo.substring(0,32)}...`:m.titulo}),h.jsx("div",{className:we.eventGroupDate,children:m.client}),h.jsx("div",{className:we.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(m.fechaFin)}`})]}),m.link&&h.jsx("a",{onClick:S=>{S.stopPropagation()},href:m?.link,target:"_blank",style:{textDecoration:"none"},children:h.jsx("img",{src:Rb,width:15,style:{marginLeft:"3px"}})})]},m.eventoID)})]},d))})]}),h.jsxs("div",{className:we.calendarsSection,hidden:!0,children:[h.jsxs("button",{onClick:u,className:we.collapsibleHeader,children:[h.jsxs("div",{className:we.headerTitle,children:[h.jsx("h3",{children:"Calendarios"}),h.jsx("span",{className:we.calendarCount,children:"1"})]}),h.jsx(ib,{className:`${we.chevronIcon} ${c?we.collapsed:""}`})]}),h.jsxs("div",{className:`${we.collapsibleContent} ${c?we.hidden:""}`,children:[h.jsxs("div",{className:we.calendarItem,children:[h.jsx("div",{className:we.circularCheckbox,children:h.jsx(ab,{size:24,className:we.checkedIcon})}),h.jsx(td,{size:24,className:we.calendarIcon}),h.jsx("span",{children:"Mi calendario"})]}),h.jsxs("div",{className:we.calendarItem,onClick:n,children:[h.jsx("div",{className:we.circularCheckbox,children:h.jsx(sb,{size:24,className:we.uncheckedIcon})}),h.jsx(cb,{size:24,className:we.calendarIcon}),h.jsx("span",{children:"Outlook"})]}),h.jsxs("div",{className:we.syncButton,onClick:r,children:[h.jsx(td,{size:24,className:we.googleIcon}),h.jsx("span",{children:"Sincronizar Google Calendar"})]})]})]})]})},Qt={dayCell:"_dayCell_ph891_1",dayCellContainer:"_dayCellContainer_ph891_23",dayNumber:"_dayNumber_ph891_55",dayNumberToday:"_dayNumberToday_ph891_69",notCurrentMonth:"_notCurrentMonth_ph891_91",CurrentDay:"_CurrentDay_ph891_129",eventsList:"_eventsList_ph891_137",eventItem:"_eventItem_ph891_155",eventTitle:"_eventTitle_ph891_187",eventTime:"_eventTime_ph891_217",seeMoreLink:"_seeMoreLink_ph891_245"},pd=25,$b=22,jb=({dayNumber:e,date:t,events:r,isToday:n,isCurrentMonth:o,onDayClick:i,onEventClick:a,onSeeMoreClick:s})=>{const c=[Qt.dayCell,o?"":Qt.notCurrentMonth,Qt.CurrentDay].join(" ").trim(),l=x.useRef(null),[u,d]=x.useState(r.length),f=()=>{i?.(t)};x.useLayoutEffect(()=>{const p=()=>{if(l.current){const y=l.current.clientHeight;let S=Math.floor(y/pd);if(S<r.length){const C=Math.floor((y-$b)/pd);S=Math.max(0,C)}d(S)}};return p(),window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)},[r.length]);const m=r.slice(0,u==0?1:u),g=r.length-(u==0?1:u);return h.jsxs("div",{className:`${c} ${Qt.dayCellContainer}`,onClick:f,children:[h.jsx("div",{className:n?Qt.dayNumber:Qt.dayNumberToday,children:e}),h.jsxs("div",{className:Qt.eventsList,ref:l,children:[m.map(p=>h.jsxs("div",{className:Qt.eventItem,style:{backgroundColor:p.color||"#007bff"},onClick:y=>{y.stopPropagation(),a?.(p)},children:[h.jsx("span",{className:Qt.eventTitle,children:p.titulo}),h.jsx("span",{className:Qt.eventTime,children:`${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaInicio)} - ${new Intl.DateTimeFormat("es-ES",{hour:"2-digit",minute:"numeric"}).format(p.fechaFin)}`})]},p.eventoID)),g>0&&h.jsxs("div",{className:Qt.seeMoreLink,onClick:p=>{p.stopPropagation(),s(r,t)},children:[g," más..."]})]})]})},hd={weekDaysContainer:"_weekDaysContainer_5h5ol_1",weekDay:"_weekDay_5h5ol_1"},Lb=()=>{const e=["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"];return h.jsx("div",{className:hd.weekDaysContainer,children:e.map(t=>h.jsx("div",{className:hd.weekDay,children:t},t))})},Ii={calendarGridContainer:"_calendarGridContainer_1expw_1",daysContainer:"_daysContainer_1expw_23",rows5:"_rows5_1expw_37",rows6:"_rows6_1expw_45"};function zb(e,...t){const r=vs.bind(null,t.find(n=>typeof n=="object"));return t.map(r)}function Bb(e,t){const[r,n]=zb(e,t.start,t.end);return{start:r,end:n}}function Vb(e,t){const{start:r,end:n}=Bb(t?.in,e);let o=+r>+n;const i=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0);let s=1;const c=[];for(;+a<=i;)c.push(vs(r,a)),a.setDate(a.getDate()+s),a.setHours(0,0,0,0);return o?c.reverse():c}function Fb(e,t){const r=t?.weekStartsOn,n=Nr(e,t?.in),o=n.getDay(),i=(o<r?-7:0)+6-(o-r);return n.setDate(n.getDate()+i),n.setHours(23,59,59,999),n}function Yb(e,t,r){const n=+Nr(e,r?.in),[o,i]=[+Nr(t.start,r?.in),+Nr(t.end,r?.in)].sort((a,s)=>a-s);return n>=o&&n<=i}const Ub=({currentDate:e,events:t,onDayClick:r,onEventClick:n,onSeeMoreClick:o})=>{const i=w.startOfMonth(e),a=w.endOfMonth(e),s=w.startOfWeek(i,{weekStartsOn:1}),c=Fb(a,{weekStartsOn:1}),l=Vb({start:s,end:c}),u={},d=l.length/7,f=`${Ii.daysContainer} ${d===5?Ii.rows5:Ii.rows6}`;return t.forEach(m=>{const g=w.format(m.fechaInicio,"yyyy-MM-dd");u[g]||(u[g]=[]),u[g].push(m)}),h.jsxs("div",{className:Ii.calendarGridContainer,children:[h.jsx(Lb,{}),h.jsx("div",{className:f,children:l.map(m=>{const g=t.filter(p=>Yb(m,{start:w.startOfDay(p.fechaInicio),end:w.endOfDay(p.fechaFin)}));return h.jsx(jb,{dayNumber:m.getDate(),date:m,events:g,isToday:w.isToday(m),isCurrentMonth:w.isSameMonth(m,e),onDayClick:r,onEventClick:n,onSeeMoreClick:o},m.toISOString())})})]})};function md(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hb}=Object.prototype,{getPrototypeOf:bs}=Object,{iterator:Ri,toStringTag:gd}=Symbol,Ni=(e=>t=>{const r=Hb.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Xt=e=>(e=e.toLowerCase(),t=>Ni(t)===e),$i=e=>t=>typeof t===e,{isArray:kn}=Array,uo=$i("undefined");function fo(e){return e!==null&&!uo(e)&&e.constructor!==null&&!uo(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vd=Xt("ArrayBuffer");function Wb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vd(e.buffer),t}const Zb=$i("string"),kt=$i("function"),yd=$i("number"),po=e=>e!==null&&typeof e=="object",qb=e=>e===!0||e===!1,ji=e=>{if(Ni(e)!=="object")return!1;const t=bs(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(gd in e)&&!(Ri in e)},Kb=e=>{if(!po(e)||fo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gb=Xt("Date"),Qb=Xt("File"),Xb=Xt("Blob"),Jb=Xt("FileList"),e1=e=>po(e)&&kt(e.pipe),t1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||kt(e.append)&&((t=Ni(e))==="formdata"||t==="object"&&kt(e.toString)&&e.toString()==="[object FormData]"))},r1=Xt("URLSearchParams"),[n1,o1,i1,a1]=["ReadableStream","Request","Response","Headers"].map(Xt),s1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ho(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),kn(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(fo(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(n=0;n<a;n++)s=i[n],t.call(null,e[s],s,e)}}function bd(e,t){if(fo(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Kr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wd=e=>!uo(e)&&e!==Kr;function ws(){const{caseless:e}=wd(this)&&this||{},t={},r=(n,o)=>{const i=e&&bd(t,o)||o;ji(t[i])&&ji(n)?t[i]=ws(t[i],n):ji(n)?t[i]=ws({},n):kn(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&ho(arguments[n],r);return t}const c1=(e,t,r,{allOwnKeys:n}={})=>(ho(t,(o,i)=>{r&&kt(o)?e[i]=md(o,r):e[i]=o},{allOwnKeys:n}),e),l1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),u1=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},d1=(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&bs(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},f1=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},p1=e=>{if(!e)return null;if(kn(e))return e;let t=e.length;if(!yd(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},h1=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&bs(Uint8Array)),m1=(e,t)=>{const n=(e&&e[Ri]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},g1=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},v1=Xt("HTMLFormElement"),y1=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),_d=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),b1=Xt("RegExp"),xd=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ho(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},w1=e=>{xd(e,(t,r)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(kt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_1=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return kn(e)?n(e):n(String(e).split(t)),r},x1=()=>{},S1=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function C1(e){return!!(e&&kt(e.append)&&e[gd]==="FormData"&&e[Ri])}const E1=e=>{const t=new Array(10),r=(n,o)=>{if(po(n)){if(t.indexOf(n)>=0)return;if(fo(n))return n;if(!("toJSON"in n)){t[o]=n;const i=kn(n)?[]:{};return ho(n,(a,s)=>{const c=r(a,o+1);!uo(c)&&(i[s]=c)}),t[o]=void 0,i}}return n};return r(e,0)},k1=Xt("AsyncFunction"),D1=e=>e&&(po(e)||kt(e))&&kt(e.then)&&kt(e.catch),Sd=((e,t)=>e?setImmediate:t?((r,n)=>(Kr.addEventListener("message",({source:o,data:i})=>{o===Kr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Kr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",kt(Kr.postMessage)),T1=typeof queueMicrotask<"u"?queueMicrotask.bind(Kr):typeof process<"u"&&process.nextTick||Sd,z={isArray:kn,isArrayBuffer:vd,isBuffer:fo,isFormData:t1,isArrayBufferView:Wb,isString:Zb,isNumber:yd,isBoolean:qb,isObject:po,isPlainObject:ji,isEmptyObject:Kb,isReadableStream:n1,isRequest:o1,isResponse:i1,isHeaders:a1,isUndefined:uo,isDate:Gb,isFile:Qb,isBlob:Xb,isRegExp:b1,isFunction:kt,isStream:e1,isURLSearchParams:r1,isTypedArray:h1,isFileList:Jb,forEach:ho,merge:ws,extend:c1,trim:s1,stripBOM:l1,inherits:u1,toFlatObject:d1,kindOf:Ni,kindOfTest:Xt,endsWith:f1,toArray:p1,forEachEntry:m1,matchAll:g1,isHTMLForm:v1,hasOwnProperty:_d,hasOwnProp:_d,reduceDescriptors:xd,freezeMethods:w1,toObjectSet:_1,toCamelCase:y1,noop:x1,toFiniteNumber:S1,findKey:bd,global:Kr,isContextDefined:wd,isSpecCompliantForm:C1,toJSONObject:E1,isAsyncFn:k1,isThenable:D1,setImmediate:Sd,asap:T1,isIterable:e=>e!=null&&kt(e[Ri])};function ye(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}z.inherits(ye,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.status}}});const Cd=ye.prototype,Ed={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ed[e]={value:e}}),Object.defineProperties(ye,Ed),Object.defineProperty(Cd,"isAxiosError",{value:!0}),ye.from=(e,t,r,n,o,i)=>{const a=Object.create(Cd);return z.toFlatObject(e,a,function(c){return c!==Error.prototype},s=>s!=="isAxiosError"),ye.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const O1=null;function _s(e){return z.isPlainObject(e)||z.isArray(e)}function kd(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Dd(e,t,r){return e?e.concat(t).map(function(o,i){return o=kd(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function M1(e){return z.isArray(e)&&!e.some(_s)}const P1=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function Li(e,t,r){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!z.isUndefined(y[p])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(z.isDate(g))return g.toISOString();if(z.isBoolean(g))return g.toString();if(!c&&z.isBlob(g))throw new ye("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,y){let S=g;if(g&&!y&&typeof g=="object"){if(z.endsWith(p,"{}"))p=n?p:p.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&M1(g)||(z.isFileList(g)||z.endsWith(p,"[]"))&&(S=z.toArray(g)))return p=kd(p),S.forEach(function(k,E){!(z.isUndefined(k)||k===null)&&t.append(a===!0?Dd([p],E,i):a===null?p:p+"[]",l(k))}),!1}return _s(g)?!0:(t.append(Dd(y,p,i),l(g)),!1)}const d=[],f=Object.assign(P1,{defaultVisitor:u,convertValue:l,isVisitable:_s});function m(g,p){if(!z.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(g),z.forEach(g,function(S,C){(!(z.isUndefined(S)||S===null)&&o.call(t,S,z.isString(C)?C.trim():C,p,f))===!0&&m(S,p?p.concat(C):[C])}),d.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Td(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function xs(e,t){this._pairs=[],e&&Li(e,this,t)}const Od=xs.prototype;Od.append=function(t,r){this._pairs.push([t,r])},Od.toString=function(t){const r=t?function(n){return t.call(this,n,Td)}:Td;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function A1(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Md(e,t,r){if(!t)return e;const n=r&&r.encode||A1;z.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=z.isURLSearchParams(t)?t.toString():new xs(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Pd{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ad={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},I1={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:xs,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ss=typeof window<"u"&&typeof document<"u",Cs=typeof navigator=="object"&&navigator||void 0,R1=Ss&&(!Cs||["ReactNative","NativeScript","NS"].indexOf(Cs.product)<0),N1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$1=Ss&&window.location.href||"http://localhost",gt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ss,hasStandardBrowserEnv:R1,hasStandardBrowserWebWorkerEnv:N1,navigator:Cs,origin:$1},Symbol.toStringTag,{value:"Module"})),...I1};function j1(e,t){return Li(e,new gt.classes.URLSearchParams,{visitor:function(r,n,o,i){return gt.isNode&&z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function L1(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function z1(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Id(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),c=i>=r.length;return a=!a&&z.isArray(o)?o.length:a,c?(z.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!z.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&z.isArray(o[a])&&(o[a]=z1(o[a])),!s)}if(z.isFormData(e)&&z.isFunction(e.entries)){const r={};return z.forEachEntry(e,(n,o)=>{t(L1(n),o,r,0)}),r}return null}function B1(e,t,r){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const mo={transitional:Ad,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return o?JSON.stringify(Id(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return j1(t,this.formSerializer).toString();if((s=z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Li(s?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),B1(t)):t}],transformResponse:[function(t){const r=this.transitional||mo.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?ye.from(s,ye.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{mo.headers[e]={}});const V1=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),F1=e=>{const t={};let r,n,o;return e&&e.split(`
167
167
  `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&V1[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Rd=Symbol("internals");function go(e){return e&&String(e).trim().toLowerCase()}function zi(e){return e===!1||e==null?e:z.isArray(e)?e.map(zi):String(e)}function Y1(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const U1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Es(e,t,r,n,o){if(z.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!z.isString(t)){if(z.isString(n))return t.indexOf(n)!==-1;if(z.isRegExp(n))return n.test(t)}}function H1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function W1(e,t){const r=z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let Dt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(s,c,l){const u=go(c);if(!u)throw new Error("header name must be a non-empty string");const d=z.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||c]=zi(s))}const a=(s,c)=>z.forEach(s,(l,u)=>i(l,u,c));if(z.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(z.isString(t)&&(t=t.trim())&&!U1(t))a(F1(t),r);else if(z.isObject(t)&&z.isIterable(t)){let s={},c,l;for(const u of t){if(!z.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[l=u[0]]=(c=s[l])?z.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(s,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=go(t),t){const n=z.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Y1(o);if(z.isFunction(r))return r.call(this,o,n);if(z.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=go(t),t){const n=z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Es(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=go(a),a){const s=z.findKey(n,a);s&&(!r||Es(n,n[s],s,r))&&(delete n[s],o=!0)}}return z.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Es(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return z.forEach(this,(o,i)=>{const a=z.findKey(n,i);if(a){r[a]=zi(o),delete r[i];return}const s=t?H1(i):String(i).trim();s!==i&&delete r[i],r[s]=zi(o),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return z.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&z.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
168
168
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Rd]=this[Rd]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=go(a);n[s]||(W1(o,a),n[s]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}};Dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),z.reduceDescriptors(Dt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),z.freezeMethods(Dt);function ks(e,t){const r=this||mo,n=t||r,o=Dt.from(n.headers);let i=n.data;return z.forEach(e,function(s){i=s.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Nd(e){return!!(e&&e.__CANCEL__)}function Dn(e,t,r){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,r),this.name="CanceledError"}z.inherits(Dn,ye,{__CANCEL__:!0});function $d(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ye("Request failed with status code "+r.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Z1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function q1(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=n[i];a||(a=l),r[o]=c,n[o]=l;let d=i,f=0;for(;d!==o;)f+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const m=u&&l-u;return m?Math.round(f*1e3/m):void 0}}function K1(e,t){let r=0,n=1e3/t,o,i;const a=(l,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e(...l)};return[(...l)=>{const u=Date.now(),d=u-r;d>=n?a(l,u):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-d)))},()=>o&&a(o)]}const Bi=(e,t,r=3)=>{let n=0;const o=q1(50,250);return K1(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),u=a<=s;n=a;const d={loaded:a,total:s,progress:s?a/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},r)},jd=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ld=e=>(...t)=>z.asap(()=>e(...t)),G1=gt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,gt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,Q1=gt.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),z.isString(n)&&a.push("path="+n),z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function X1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function J1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zd(e,t,r){let n=!X1(t);return e&&(n||r==!1)?J1(e,t):t}const Bd=e=>e instanceof Dt?{...e}:e;function Gr(e,t){t=t||{};const r={};function n(l,u,d,f){return z.isPlainObject(l)&&z.isPlainObject(u)?z.merge.call({caseless:f},l,u):z.isPlainObject(u)?z.merge({},u):z.isArray(u)?u.slice():u}function o(l,u,d,f){if(z.isUndefined(u)){if(!z.isUndefined(l))return n(void 0,l,d,f)}else return n(l,u,d,f)}function i(l,u){if(!z.isUndefined(u))return n(void 0,u)}function a(l,u){if(z.isUndefined(u)){if(!z.isUndefined(l))return n(void 0,l)}else return n(void 0,u)}function s(l,u,d){if(d in t)return n(l,u);if(d in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,u,d)=>o(Bd(l),Bd(u),d,!0)};return z.forEach(Object.keys({...e,...t}),function(u){const d=c[u]||o,f=d(e[u],t[u],u);z.isUndefined(f)&&d!==s||(r[u]=f)}),r}const Vd=e=>{const t=Gr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Dt.from(a),t.url=Md(zd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(z.isFormData(r)){if(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...u]=c?c.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...u].join("; "))}}if(gt.hasStandardBrowserEnv&&(n&&z.isFunction(n)&&(n=n(t)),n||n!==!1&&G1(t.url))){const l=o&&i&&Q1.read(i);l&&a.set(o,l)}return t},e2=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Vd(e);let i=o.data;const a=Dt.from(o.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:l}=o,u,d,f,m,g;function p(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function S(){if(!y)return;const k=Dt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:k,config:e,request:y};$d(function(R){r(R),p()},function(R){n(R),p()},_),y=null}"onloadend"in y?y.onloadend=S:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(S)},y.onabort=function(){y&&(n(new ye("Request aborted",ye.ECONNABORTED,e,y)),y=null)},y.onerror=function(){n(new ye("Network Error",ye.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const _=o.transitional||Ad;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new ye(E,_.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,y)),y=null},i===void 0&&a.setContentType(null),"setRequestHeader"in y&&z.forEach(a.toJSON(),function(E,_){y.setRequestHeader(_,E)}),z.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),s&&s!=="json"&&(y.responseType=o.responseType),l&&([f,g]=Bi(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([d,m]=Bi(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=k=>{y&&(n(!k||k.type?new Dn(null,e,y):k),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const C=Z1(o.url);if(C&&gt.protocols.indexOf(C)===-1){n(new ye("Unsupported protocol "+C+":",ye.ERR_BAD_REQUEST,e));return}y.send(i||null)})},t2=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof ye?u:new Dn(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>z.asap(s),c}},r2=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},n2=async function*(e,t){for await(const r of o2(e))yield*r2(r,t)},o2=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Fd=(e,t,r,n)=>{const o=n2(e,t);let i=0,a,s=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await o.next();if(l){s(),c.close();return}let d=u.byteLength;if(r){let f=i+=d;r(f)}c.enqueue(new Uint8Array(u))}catch(l){throw s(l),l}},cancel(c){return s(c),o.return()}},{highWaterMark:2})},Vi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Yd=Vi&&typeof ReadableStream=="function",i2=Vi&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ud=(e,...t)=>{try{return!!e(...t)}catch{return!1}},a2=Yd&&Ud(()=>{let e=!1;const t=new Request(gt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Hd=64*1024,Ds=Yd&&Ud(()=>z.isReadableStream(new Response("").body)),Fi={stream:Ds&&(e=>e.body)};Vi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Fi[t]&&(Fi[t]=z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new ye(`Response type '${t}' is not supported`,ye.ERR_NOT_SUPPORT,n)})})})(new Response);const s2=async e=>{if(e==null)return 0;if(z.isBlob(e))return e.size;if(z.isSpecCompliantForm(e))return(await new Request(gt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(z.isArrayBufferView(e)||z.isArrayBuffer(e))return e.byteLength;if(z.isURLSearchParams(e)&&(e=e+""),z.isString(e))return(await i2(e)).byteLength},c2=async(e,t)=>{const r=z.toFiniteNumber(e.getContentLength());return r??s2(t)},Ts={http:O1,xhr:e2,fetch:Vi&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Vd(e);l=l?(l+"").toLowerCase():"text";let m=t2([o,i&&i.toAbortSignal()],a),g;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let y;try{if(c&&a2&&r!=="get"&&r!=="head"&&(y=await c2(u,n))!==0){let _=new Request(t,{method:"POST",body:n,duplex:"half"}),O;if(z.isFormData(n)&&(O=_.headers.get("content-type"))&&u.setContentType(O),_.body){const[R,q]=jd(y,Bi(Ld(c)));n=Fd(_.body,Hd,R,q)}}z.isString(d)||(d=d?"include":"omit");const S="credentials"in Request.prototype;g=new Request(t,{...f,signal:m,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:S?d:void 0});let C=await fetch(g,f);const k=Ds&&(l==="stream"||l==="response");if(Ds&&(s||k&&p)){const _={};["status","statusText","headers"].forEach(Z=>{_[Z]=C[Z]});const O=z.toFiniteNumber(C.headers.get("content-length")),[R,q]=s&&jd(O,Bi(Ld(s),!0))||[];C=new Response(Fd(C.body,Hd,R,()=>{q&&q(),p&&p()}),_)}l=l||"text";let E=await Fi[z.findKey(Fi,l)||"text"](C,e);return!k&&p&&p(),await new Promise((_,O)=>{$d(_,O,{data:E,headers:Dt.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(S){throw p&&p(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,e,g),{cause:S.cause||S}):ye.from(S,S&&S.code,e,g)}})};z.forEach(Ts,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wd=e=>`- ${e}`,l2=e=>z.isFunction(e)||e===null||e===!1,Zd={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!l2(r)&&(n=Ts[(a=String(r)).toLowerCase()],n===void 0))throw new ye(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
169
169
  `+i.map(Wd).join(`
@@ -185,7 +185,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
185
185
  } else {
186
186
  newResult[${_}] = ${E}.value;
187
187
  }
188
- `)}m.write("payload.value = newResult;"),m.write("return payload;");const C=m.compile();return(k,E)=>C(f,k,E)};let i;const a=Qi,s=!Of.jitless,l=s&&B2.value,u=t.catchall;let d;e._zod.parse=(f,m)=>{d??(d=n.value);const g=f.value;return a(g)?s&&l&&m?.async===!1&&m.jitless!==!0?(i||(i=o(t.shape)),f=i(f,m),u?Zf([],g,f,m,d,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function qf(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!An(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>tn(a,n,en())))}),t)}const M_=Y("$ZodUnion",(e,t)=>{et.init(e,t),Ye(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ye(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ye(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ye(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Ws(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let a=!1;const s=[];for(const c of t.options){const l=c._zod.run({value:o.value,issues:[]},i);if(l instanceof Promise)s.push(l),a=!0;else{if(l.issues.length===0)return l;s.push(l)}}return a?Promise.all(s).then(c=>qf(c,o,e,i)):qf(s,o,e,i)}}),P_=Y("$ZodIntersection",(e,t)=>{et.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),a=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>Kf(r,c,l)):Kf(r,i,a)}});function Gs(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xo(e)&&xo(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const a=Gs(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],a=Gs(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Kf(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),An(e))return e;const n=Gs(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const A_=Y("$ZodEnum",(e,t)=>{et.init(e,t);const r=j2(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>V2.has(typeof o)).map(o=>typeof o=="string"?Pn(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:r,input:a,inst:e}),o}}),I_=Y("$ZodLiteral",(e,t)=>{if(et.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Pn(r):r?Pn(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,n)=>{const o=r.value;return e._zod.values.has(o)||r.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),r}}),R_=Y("$ZodTransform",(e,t)=>{et.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Tf(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(r.value=a,r));if(o instanceof Promise)throw new On;return r.value=o,r}});function Gf(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const N_=Y("$ZodOptional",(e,t)=>{et.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ye(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ws(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Gf(i,r.value)):Gf(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),$_=Y("$ZodNullable",(e,t)=>{et.init(e,t),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),Ye(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ws(r.source)}|null)$`):void 0}),Ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),j_=Y("$ZodDefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Qf(i,t)):Qf(o,t)}});function Qf(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const L_=Y("$ZodPrefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),z_=Y("$ZodNonOptional",(e,t)=>{et.init(e,t),Ye(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Xf(i,e)):Xf(o,e)}});function Xf(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const B_=Y("$ZodCatch",(e,t)=>{et.init(e,t),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>tn(a,n,en()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>tn(i,n,en()))},input:r.value}),r.issues=[]),r)}}),V_=Y("$ZodPipe",(e,t)=>{et.init(e,t),Ye(e._zod,"values",()=>t.in._zod.values),Ye(e._zod,"optin",()=>t.in._zod.optin),Ye(e._zod,"optout",()=>t.out._zod.optout),Ye(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>aa(a,t.in,n)):aa(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>aa(i,t.out,n)):aa(o,t.out,n)}});function aa(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const F_=Y("$ZodReadonly",(e,t)=>{et.init(e,t),Ye(e._zod,"propValues",()=>t.innerType._zod.propValues),Ye(e._zod,"values",()=>t.innerType._zod.values),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(Jf):Jf(o)}});function Jf(e){return e.value=Object.freeze(e.value),e}const Y_=Y("$ZodCustom",(e,t)=>{Ot.init(e,t),et.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>ep(i,r,n,e));ep(o,r,n,e)}});function ep(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(So(o))}}class U_{constructor(){this._map=new Map,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function H_(){return new U_}const sa=H_();function W_(e,t){return new e({type:"string",...pe(t)})}function Z_(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...pe(t)})}function tp(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...pe(t)})}function q_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...pe(t)})}function K_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...pe(t)})}function G_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...pe(t)})}function Q_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...pe(t)})}function X_(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...pe(t)})}function J_(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...pe(t)})}function ex(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...pe(t)})}function tx(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...pe(t)})}function rx(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...pe(t)})}function nx(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...pe(t)})}function ox(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...pe(t)})}function ix(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...pe(t)})}function ax(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...pe(t)})}function sx(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...pe(t)})}function cx(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...pe(t)})}function lx(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...pe(t)})}function ux(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...pe(t)})}function dx(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...pe(t)})}function fx(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...pe(t)})}function px(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...pe(t)})}function hx(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...pe(t)})}function mx(e,t){return new e({type:"string",format:"date",check:"string_format",...pe(t)})}function gx(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...pe(t)})}function vx(e,t){return new e({type:"string",format:"duration",check:"string_format",...pe(t)})}function yx(e,t){return new e({type:"number",checks:[],...pe(t)})}function bx(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...pe(t)})}function wx(e,t){return new e({type:"boolean",...pe(t)})}function _x(e){return new e({type:"unknown"})}function xx(e,t){return new e({type:"never",...pe(t)})}function rp(e,t){return new Vf({check:"less_than",...pe(t),value:e,inclusive:!1})}function Qs(e,t){return new Vf({check:"less_than",...pe(t),value:e,inclusive:!0})}function np(e,t){return new Ff({check:"greater_than",...pe(t),value:e,inclusive:!1})}function Xs(e,t){return new Ff({check:"greater_than",...pe(t),value:e,inclusive:!0})}function op(e,t){return new Lw({check:"multiple_of",...pe(t),value:e})}function ip(e,t){return new Bw({check:"max_length",...pe(t),maximum:e})}function ca(e,t){return new Vw({check:"min_length",...pe(t),minimum:e})}function ap(e,t){return new Fw({check:"length_equals",...pe(t),length:e})}function Sx(e,t){return new Yw({check:"string_format",format:"regex",...pe(t),pattern:e})}function Cx(e){return new Uw({check:"string_format",format:"lowercase",...pe(e)})}function Ex(e){return new Hw({check:"string_format",format:"uppercase",...pe(e)})}function kx(e,t){return new Ww({check:"string_format",format:"includes",...pe(t),includes:e})}function Dx(e,t){return new Zw({check:"string_format",format:"starts_with",...pe(t),prefix:e})}function Tx(e,t){return new qw({check:"string_format",format:"ends_with",...pe(t),suffix:e})}function Co(e){return new Kw({check:"overwrite",tx:e})}function Ox(e){return Co(t=>t.normalize(e))}function Mx(){return Co(e=>e.trim())}function Px(){return Co(e=>e.toLowerCase())}function Ax(){return Co(e=>e.toUpperCase())}function Ix(e,t,r){return new e({type:"array",element:t,...pe(r)})}function Rx(e,t,r){return new e({type:"custom",check:"custom",fn:t,...pe(r)})}function Nx(e){const t=$x(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(So(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(So(o))}},e(r.value,r)));return t}function $x(e,t){const r=new Ot({check:"custom",...pe(t)});return r._zod.check=e,r}function sp(e,t){try{var r=e()}catch(n){return t(n)}return r&&r.then?r.then(void 0,t):r}function jx(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!r[a])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];r[a]={message:s.message,type:s.code}}else r[a]={message:i,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=r[a].types,l=c&&c[n.code];r[a]=Ls(a,t,r,o,l?[].concat(l,n.message):n.message)}e.shift()}return r}function Lx(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!r[a])if(n.code==="invalid_union"&&n.errors.length>0){var s=n.errors[0][0];r[a]={message:s.message,type:s.code}}else r[a]={message:i,type:o};if(n.code==="invalid_union"&&n.errors.forEach(function(u){return u.forEach(function(d){return e.push(d)})}),t){var c=r[a].types,l=c&&c[n.code];r[a]=Ls(a,t,r,o,l?[].concat(l,n.message):n.message)}e.shift()}return r}function zx(e,t,r){if(r===void 0&&(r={}),(function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def})(e))return function(n,o,i){try{return Promise.resolve(sp(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(a){return i.shouldUseNativeValidation&&Fs({},i),{errors:{},values:r.raw?Object.assign({},n):a}})},function(a){if((function(s){return Array.isArray(s?.issues)})(a))return{values:{},errors:kf(jx(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};if((function(n){return"_zod"in n&&typeof n._zod=="object"})(e))return function(n,o,i){try{return Promise.resolve(sp(function(){return Promise.resolve((r.mode==="sync"?J2:ew)(e,n,t)).then(function(a){return i.shouldUseNativeValidation&&Fs({},i),{errors:{},values:r.raw?Object.assign({},n):a}})},function(a){if((function(s){return s instanceof qs})(a))return{values:{},errors:kf(Lx(a.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const Bx=Y("ZodISODateTime",(e,t)=>{l_.init(e,t),Ge.init(e,t)});function Vx(e){return hx(Bx,e)}const Fx=Y("ZodISODate",(e,t)=>{u_.init(e,t),Ge.init(e,t)});function Yx(e){return mx(Fx,e)}const Ux=Y("ZodISOTime",(e,t)=>{d_.init(e,t),Ge.init(e,t)});function Hx(e){return gx(Ux,e)}const Wx=Y("ZodISODuration",(e,t)=>{f_.init(e,t),Ge.init(e,t)});function Zx(e){return vx(Wx,e)}const Ut=Y("ZodError",(e,t)=>{qs.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>X2(e,r)},flatten:{value:r=>Q2(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ys,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ys,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),qx=ea(Ut),Kx=ta(Ut),Gx=ra(Ut),Qx=na(Ut),Xx=nw(Ut),Jx=ow(Ut),eS=iw(Ut),tS=aw(Ut),rS=sw(Ut),nS=cw(Ut),oS=lw(Ut),iS=uw(Ut),it=Y("ZodType",(e,t)=>(et.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(r,n)=>jr(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>qx(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Gx(e,r,n),e.parseAsync=async(r,n)=>Kx(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Qx(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>Xx(e,r,n),e.decode=(r,n)=>Jx(e,r,n),e.encodeAsync=async(r,n)=>eS(e,r,n),e.decodeAsync=async(r,n)=>tS(e,r,n),e.safeEncode=(r,n)=>rS(e,r,n),e.safeDecode=(r,n)=>nS(e,r,n),e.safeEncodeAsync=async(r,n)=>oS(e,r,n),e.safeDecodeAsync=async(r,n)=>iS(e,r,n),e.refine=(r,n)=>e.check(eC(r,n)),e.superRefine=r=>e.check(tC(r)),e.overwrite=r=>e.check(Co(r)),e.optional=()=>mp(e),e.nullable=()=>gp(e),e.nullish=()=>mp(gp(e)),e.nonoptional=r=>ZS(e,r),e.array=()=>MS(e),e.or=r=>RS([e,r]),e.and=r=>$S(e,r),e.transform=r=>yp(e,VS(r)),e.default=r=>US(e,r),e.prefault=r=>WS(e,r),e.catch=r=>KS(e,r),e.pipe=r=>yp(e,r),e.readonly=()=>XS(e),e.describe=r=>{const n=e.clone();return sa.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return sa.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return sa.get(e);const n=e.clone();return sa.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),cp=Y("_ZodString",(e,t)=>{Ks.init(e,t),it.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(Sx(...n)),e.includes=(...n)=>e.check(kx(...n)),e.startsWith=(...n)=>e.check(Dx(...n)),e.endsWith=(...n)=>e.check(Tx(...n)),e.min=(...n)=>e.check(ca(...n)),e.max=(...n)=>e.check(ip(...n)),e.length=(...n)=>e.check(ap(...n)),e.nonempty=(...n)=>e.check(ca(1,...n)),e.lowercase=n=>e.check(Cx(n)),e.uppercase=n=>e.check(Ex(n)),e.trim=()=>e.check(Mx()),e.normalize=(...n)=>e.check(Ox(...n)),e.toLowerCase=()=>e.check(Px()),e.toUpperCase=()=>e.check(Ax())}),aS=Y("ZodString",(e,t)=>{Ks.init(e,t),cp.init(e,t),e.email=r=>e.check(Z_(sS,r)),e.url=r=>e.check(X_(cS,r)),e.jwt=r=>e.check(px(SS,r)),e.emoji=r=>e.check(J_(lS,r)),e.guid=r=>e.check(tp(lp,r)),e.uuid=r=>e.check(q_(la,r)),e.uuidv4=r=>e.check(K_(la,r)),e.uuidv6=r=>e.check(G_(la,r)),e.uuidv7=r=>e.check(Q_(la,r)),e.nanoid=r=>e.check(ex(uS,r)),e.guid=r=>e.check(tp(lp,r)),e.cuid=r=>e.check(tx(dS,r)),e.cuid2=r=>e.check(rx(fS,r)),e.ulid=r=>e.check(nx(pS,r)),e.base64=r=>e.check(ux(wS,r)),e.base64url=r=>e.check(dx(_S,r)),e.xid=r=>e.check(ox(hS,r)),e.ksuid=r=>e.check(ix(mS,r)),e.ipv4=r=>e.check(ax(gS,r)),e.ipv6=r=>e.check(sx(vS,r)),e.cidrv4=r=>e.check(cx(yS,r)),e.cidrv6=r=>e.check(lx(bS,r)),e.e164=r=>e.check(fx(xS,r)),e.datetime=r=>e.check(Vx(r)),e.date=r=>e.check(Yx(r)),e.time=r=>e.check(Hx(r)),e.duration=r=>e.check(Zx(r))});function rr(e){return W_(aS,e)}const Ge=Y("ZodStringFormat",(e,t)=>{Ze.init(e,t),cp.init(e,t)}),sS=Y("ZodEmail",(e,t)=>{e_.init(e,t),Ge.init(e,t)}),lp=Y("ZodGUID",(e,t)=>{Xw.init(e,t),Ge.init(e,t)}),la=Y("ZodUUID",(e,t)=>{Jw.init(e,t),Ge.init(e,t)}),cS=Y("ZodURL",(e,t)=>{t_.init(e,t),Ge.init(e,t)}),lS=Y("ZodEmoji",(e,t)=>{r_.init(e,t),Ge.init(e,t)}),uS=Y("ZodNanoID",(e,t)=>{n_.init(e,t),Ge.init(e,t)}),dS=Y("ZodCUID",(e,t)=>{o_.init(e,t),Ge.init(e,t)}),fS=Y("ZodCUID2",(e,t)=>{i_.init(e,t),Ge.init(e,t)}),pS=Y("ZodULID",(e,t)=>{a_.init(e,t),Ge.init(e,t)}),hS=Y("ZodXID",(e,t)=>{s_.init(e,t),Ge.init(e,t)}),mS=Y("ZodKSUID",(e,t)=>{c_.init(e,t),Ge.init(e,t)}),gS=Y("ZodIPv4",(e,t)=>{p_.init(e,t),Ge.init(e,t)}),vS=Y("ZodIPv6",(e,t)=>{h_.init(e,t),Ge.init(e,t)}),yS=Y("ZodCIDRv4",(e,t)=>{m_.init(e,t),Ge.init(e,t)}),bS=Y("ZodCIDRv6",(e,t)=>{g_.init(e,t),Ge.init(e,t)}),wS=Y("ZodBase64",(e,t)=>{v_.init(e,t),Ge.init(e,t)}),_S=Y("ZodBase64URL",(e,t)=>{b_.init(e,t),Ge.init(e,t)}),xS=Y("ZodE164",(e,t)=>{w_.init(e,t),Ge.init(e,t)}),SS=Y("ZodJWT",(e,t)=>{x_.init(e,t),Ge.init(e,t)}),up=Y("ZodNumber",(e,t)=>{Uf.init(e,t),it.init(e,t),e.gt=(n,o)=>e.check(np(n,o)),e.gte=(n,o)=>e.check(Xs(n,o)),e.min=(n,o)=>e.check(Xs(n,o)),e.lt=(n,o)=>e.check(rp(n,o)),e.lte=(n,o)=>e.check(Qs(n,o)),e.max=(n,o)=>e.check(Qs(n,o)),e.int=n=>e.check(fp(n)),e.safe=n=>e.check(fp(n)),e.positive=n=>e.check(np(0,n)),e.nonnegative=n=>e.check(Xs(0,n)),e.negative=n=>e.check(rp(0,n)),e.nonpositive=n=>e.check(Qs(0,n)),e.multipleOf=(n,o)=>e.check(op(n,o)),e.step=(n,o)=>e.check(op(n,o)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function dp(e){return yx(up,e)}const CS=Y("ZodNumberFormat",(e,t)=>{S_.init(e,t),up.init(e,t)});function fp(e){return bx(CS,e)}const ES=Y("ZodBoolean",(e,t)=>{C_.init(e,t),it.init(e,t)});function Js(e){return wx(ES,e)}const kS=Y("ZodUnknown",(e,t)=>{E_.init(e,t),it.init(e,t)});function pp(){return _x(kS)}const DS=Y("ZodNever",(e,t)=>{k_.init(e,t),it.init(e,t)});function TS(e){return xx(DS,e)}const OS=Y("ZodArray",(e,t)=>{D_.init(e,t),it.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(ca(r,n)),e.nonempty=r=>e.check(ca(1,r)),e.max=(r,n)=>e.check(ip(r,n)),e.length=(r,n)=>e.check(ap(r,n)),e.unwrap=()=>e.element});function MS(e,t){return Ix(OS,e,t)}const PS=Y("ZodObject",(e,t)=>{O_.init(e,t),it.init(e,t),Ye(e,"shape",()=>t.shape),e.keyof=()=>jS(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:pp()}),e.loose=()=>e.clone({...e._zod.def,catchall:pp()}),e.strict=()=>e.clone({...e._zod.def,catchall:TS()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>W2(e,r),e.safeExtend=r=>Z2(e,r),e.merge=r=>q2(e,r),e.pick=r=>U2(e,r),e.omit=r=>H2(e,r),e.partial=(...r)=>K2(hp,e,r[0]),e.required=(...r)=>G2(vp,e,r[0])});function AS(e,t){const r={type:"object",get shape(){return $r(this,"shape",e?z2(e):{}),this.shape},...pe(t)};return new PS(r)}const IS=Y("ZodUnion",(e,t)=>{M_.init(e,t),it.init(e,t),e.options=t.options});function RS(e,t){return new IS({type:"union",options:e,...pe(t)})}const NS=Y("ZodIntersection",(e,t)=>{P_.init(e,t),it.init(e,t)});function $S(e,t){return new NS({type:"intersection",left:e,right:t})}const ec=Y("ZodEnum",(e,t)=>{A_.init(e,t),it.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const a of n)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ec({...t,checks:[],...pe(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const a of n)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ec({...t,checks:[],...pe(o),entries:i})}});function jS(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ec({type:"enum",entries:r,...pe(t)})}const LS=Y("ZodLiteral",(e,t)=>{I_.init(e,t),it.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function zS(e,t){return new LS({type:"literal",values:Array.isArray(e)?e:[e],...pe(t)})}const BS=Y("ZodTransform",(e,t)=>{R_.init(e,t),it.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Tf(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(So(i,r.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(So(a))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function VS(e){return new BS({type:"transform",transform:e})}const hp=Y("ZodOptional",(e,t)=>{N_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mp(e){return new hp({type:"optional",innerType:e})}const FS=Y("ZodNullable",(e,t)=>{$_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function gp(e){return new FS({type:"nullable",innerType:e})}const YS=Y("ZodDefault",(e,t)=>{j_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function US(e,t){return new YS({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():If(t)}})}const HS=Y("ZodPrefault",(e,t)=>{L_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function WS(e,t){return new HS({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():If(t)}})}const vp=Y("ZodNonOptional",(e,t)=>{z_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ZS(e,t){return new vp({type:"nonoptional",innerType:e,...pe(t)})}const qS=Y("ZodCatch",(e,t)=>{B_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function KS(e,t){return new qS({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const GS=Y("ZodPipe",(e,t)=>{V_.init(e,t),it.init(e,t),e.in=t.in,e.out=t.out});function yp(e,t){return new GS({type:"pipe",in:e,out:t})}const QS=Y("ZodReadonly",(e,t)=>{F_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function XS(e){return new QS({type:"readonly",innerType:e})}const JS=Y("ZodCustom",(e,t)=>{Y_.init(e,t),it.init(e,t)});function eC(e,t={}){return Rx(JS,e,t)}function tC(e){return Nx(e)}const bp=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,rC=AS({titulo:rr().min(1,"El campo Título es requerido."),fechaInicio:rr().min(1,"El campo fecha inicio es requerido."),horaInicio:rr().min(1,"La hora de inicio es requerida.").regex(bp,{message:"Formato inválido"}),horaFin:rr().min(1,"La hora fin es requerida.").regex(bp,{message:"Formato inválido"}),todoElDia:Js(),fechaFin:rr().optional(),showEndDate:Js().optional(),horaInicio2:rr().optional(),TodoElDia2:Js().optional(),client:rr().optional().nullable(),repetir:rr().optional(),link:rr().url("Debe ser una URL válida ejemplo https://www.google.com.").or(zS("")).optional(),descripcion:rr().optional(),color:rr().optional(),solID:dp().optional().nullable(),disID:dp().optional().nullable()}).refine(e=>e.showEndDate?e.fechaFin&&e.fechaFin.length>0:!0,{message:"La fecha de fin es requerida.",path:["fechaFin"]}).refine(e=>e.fechaFin!==void 0?!!e.fechaFin&&!!e.horaInicio2:!0,{message:"La hora de fin son requeridas.",path:["horaInicio2"]}),wp=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("path",{fill:"#333",d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12"}),$.createElement("path",{fill:"#fff",d:"M16.703 7.275c.52.52.541 1.345.046 1.84l-2.874 2.874 2.874 2.873c.495.496.475 1.32-.046 1.841-.52.52-1.344.54-1.84.045l-2.873-2.873-2.874 2.873c-.496.496-1.32.475-1.84-.045-.521-.521-.541-1.345-.046-1.84l2.874-2.874L7.23 9.116c-.495-.496-.475-1.32.045-1.84.521-.521 1.345-.542 1.841-.046l2.874 2.873 2.873-2.873c.496-.496 1.32-.476 1.84.045"})),nC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M7.288%2022.986h-.147a6.2%206.2%200%200%201-4.28-1.85c-2.404-2.404-2.478-6.24-.16-8.557L4.28%2011a1.228%201.228%200%201%201%201.739%201.739L4.44%2014.317c-1.356%201.357-1.282%203.626.16%205.068a3.82%203.82%200%200%200%202.602%201.135c.95%200%201.825-.32%202.479-.974l1.578-1.579a1.23%201.23%200%200%201%201.739%200c.48.481.48%201.258%200%201.739l-1.579%201.578c-1.097%201.098-2.552%201.69-4.13%201.69zM17.98%2012.998a1.23%201.23%200%200%201%200-1.739l1.578-1.578c.654-.654.986-1.53.974-2.466a3.78%203.78%200%200%200-1.134-2.602c-1.443-1.443-3.712-1.517-5.068-.16L12.75%206.03c-.48.48-1.258.48-1.739%200a1.23%201.23%200%200%201%200-1.739l1.579-1.578c2.318-2.319%206.153-2.245%208.558.16a6.23%206.23%200%200%201%201.85%204.279%205.84%205.84%200%200%201-1.69%204.279l-1.578%201.578c-.481.481-1.258.481-1.74%200z'/%3e%3cpath%20d='M14.172%208.11%208.07%2014.214a1.233%201.233%200%200%200%201.743%201.744l6.104-6.104a1.233%201.233%200%201%200-1.744-1.744'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",oC=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("g",{clipPath:"url(#a)"},$.createElement("path",{fill:"#404756",d:"M21.24 5.72a2.98 2.98 0 0 0-2.97-2.96l-5.19-.06c-1.06-.03-2.12.41-2.87 1.17l-7.49 7.49c-.66.66-1.03 1.54-1.03 2.47s.36 1.81 1.03 2.47l4.97 4.97a3.5 3.5 0 0 0 2.47 1.02c.89 0 1.79-.34 2.47-1.02l7.49-7.49c.76-.76 1.18-1.81 1.17-2.88l-.06-5.19zm-4.2 4.43c-.44.44-1.02.66-1.6.66a2.256 2.256 0 1 1 0-4.51 2.256 2.256 0 0 1 1.6 3.85"})),$.createElement("defs",null,$.createElement("clipPath",{id:"a"},$.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),iC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M13.17%2013.68c2.06%200%204%20.8%205.46%202.27a7.7%207.7%200%200%201%202.26%205.47c0%20.79-.64%201.43-1.43%201.43l.01-.01H4.53c-.79%200-1.43-.64-1.43-1.43%200-4.27%203.46-7.73%207.72-7.73zM12%201.9c2.82%200%205.11%202.29%205.11%205.11s-2.29%205.11-5.11%205.11v-.01c-2.82%200-5.11-2.29-5.11-5.11S9.18%201.9%2012%201.9'/%3e%3c/svg%3e",aC=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("g",{fill:"#2571D6",clipPath:"url(#a)"},$.createElement("path",{d:"M13.085 7.331a1.096 1.096 0 1 0-2.192 0v9.316a1.096 1.096 0 0 0 2.192 0z"}),$.createElement("path",{d:"M16.647 10.893H7.33a1.096 1.096 0 1 0 0 2.192h9.316a1.096 1.096 0 0 0 0-2.192"}),$.createElement("path",{d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12m0-21.808c-5.414 0-9.808 4.394-9.808 9.808S6.586 21.808 12 21.808s9.808-4.394 9.808-9.808S17.403 2.192 12 2.192"})),$.createElement("defs",null,$.createElement("clipPath",{id:"a"},$.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),sC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.789%2017H3.21C2.542%2017%202%2017.56%202%2018.25s.542%201.25%201.211%201.25H13.79c.669%200%201.211-.56%201.211-1.25S14.458%2017%2013.789%2017M20.718%204H3.282C2.574%204%202%204.56%202%205.25S2.574%206.5%203.282%206.5h17.436C21.426%206.5%2022%205.94%2022%205.25S21.426%204%2020.718%204M20.718%2010.5H3.282C2.574%2010.5%202%2011.06%202%2011.75S2.574%2013%203.282%2013h17.436c.708%200%201.282-.56%201.282-1.25s-.574-1.25-1.282-1.25'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",cC=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("path",{fill:"#2571D6",fillRule:"evenodd",d:"M17.333 11a6.34 6.34 0 0 1 6.334 6.333 6.34 6.34 0 0 1-6.334 6.334c-3.493 0-6.333-2.846-6.333-6.334A6.343 6.343 0 0 1 17.333 11m-.005 2.37c-.437 0-.79.338-.79.754v2.412h-2.414c-.416 0-.754.355-.754.792s.338.792.754.792h2.413v2.412c0 .416.354.754.791.754s.792-.338.792-.754V18.12h2.413c.416 0 .754-.355.754-.792s-.338-.792-.754-.792H18.12v-2.412c0-.416-.355-.754-.792-.754",clipRule:"evenodd"}),$.createElement("path",{fill:"#2571D6",d:"M11.12 12.297a7.97 7.97 0 0 0-1.787 5.036c0 1.763.571 3.392 1.537 4.714H3.044c-.84 0-1.523-.682-1.523-1.523 0-4.544 3.683-8.227 8.217-8.227zM10.995.139c2.925 0 5.3 2.376 5.3 5.3s-2.376 5.3-5.3 5.3v-.01a5.303 5.303 0 0 1-5.3-5.3 5.295 5.295 0 0 1 5.3-5.29"})),_p=qt(h.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),tc=qt(h.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),lC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:450,md:500},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:3},borderRadius:2,maxHeight:"90vh",overflowY:"auto"},rc=["#dbe3fe","#fcebc7","#d9f1d2","#fdf5d1","#ebe3d7","#e1d6fb","#f7c7cc","#f9e7fb","#eaedf2","#d5d8dd"],xp=(()=>{const e=[];for(let t=0;t<24;t++)for(let r=0;r<60;r+=15){const n=t.toString().padStart(2,"0"),o=r.toString().padStart(2,"0");e.push(`${n}:${o}`)}return e})(),uC=({isVisible:e,onClose:t,onSave:r,onDelete:n,selectedDate:o,initialEvent:i,userId:a,masNombreBD:s,disId:c})=>{const[l,u]=x.useState(!1),[d,f]=x.useState(!1),m=w.format(new Date,"yyyy-MM-dd"),[g,p]=x.useState(""),[y,S]=x.useState([]),[C,k]=x.useState(!1),E=Ps(),[_,O]=x.useState([]),{control:R,handleSubmit:q,reset:Z,formState:{errors:j},watch:K,setValue:v}=N2({resolver:zx(rC),defaultValues:{titulo:"",fechaInicio:w.format(new Date,"yyyy-MM-dd"),horaInicio:w.format(new Date,"HH:mm"),horaFin:w.format(w.addHours(new Date,1),"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:rc[5],solID:null}}),A=K("fechaInicio"),P=K("fechaFin"),H=K("todoElDia");x.useEffect(()=>{if(g.trim()===""||!a||!c||!s){S([]);return}k(!0);const V=setTimeout(()=>{E.getClients(g,c,s,a).then(Q=>{k(!1);const L=Array.from(new Map(Q.map(U=>[U.nombreCliente,U])).values());if(L)S(L);else if(i?.client&&i.solID!==null){const U=[{solID:i.solID,nombreCliente:i.client}];S(U)}else S([])}).catch(Q=>{console.error("Error al buscar clientes:",Q),k(!1)})},500);return()=>clearTimeout(V)},[g,a,c,s]),x.useEffect(()=>{if(A&&P){const V=new Date(A),Q=new Date(P);(V===Q||V>Q)&&v("fechaFin",A)}},[A,P,v]),x.useEffect(()=>{A&&v("fechaFin",A)},[A]),x.useEffect(()=>{v("showEndDate",l)},[l,v]),x.useEffect(()=>{if(i){const V=w.format(i.fechaInicio,"yyyy-MM-dd")===w.format(i.fechaFin,"yyyy-MM-dd");u(!V),v("titulo",i?.titulo),v("fechaInicio",w.format(i.fechaInicio,"yyyy-MM-dd")),v("fechaFin",w.format(i.fechaFin,"yyyy-MM-dd")),v("horaInicio",w.format(i.fechaInicio,"HH:mm")),v("horaFin",w.format(i.fechaFin,"HH:mm")),v("horaInicio2",w.format(i.fechaFin,"HH:mm")),v("descripcion",i.descripcion),v("link",i.link),v("repetir",i.repetir),v("color",i.color),v("todoElDia",i.todoElDia),v("solID",i.solID),v("client",i.client),i.solID?f(!0):f(!1)}else{const V=o||new Date,Q=new Date,L=new Date(V.getFullYear(),V.getMonth(),V.getDate(),Q.getHours(),Q.getMinutes()),U=w.addHours(L,1);Z({titulo:"",fechaInicio:w.format(L,"yyyy-MM-dd"),horaInicio:w.format(L,"HH:mm"),fechaFin:w.format(U,"yyyy-MM-dd"),horaFin:w.format(U,"HH:mm"),horaInicio2:w.format(U,"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:rc[5],solID:null}),u(!1),f(!1)}},[i,e,o]);const W=q(V=>{r(V,i?.eventoID),t(),Z(),u(!1)},V=>{console.log("Errores de validación:",V)});x.useEffect(()=>{H&&(v("horaInicio","00:00"),v("horaFin","23:59"))},[H,v,K]);const J=()=>{const V=K("fechaInicio");if(V){const Q=new Date(`${V}T00:00:00`),L=w.addDays(Q,1);v("fechaFin",w.format(L,"yyyy-MM-dd"))}u(!0)};return h.jsx(N.Modal,{open:e,onClose:t,children:h.jsxs(N.Box,{sx:lC,children:[h.jsx(N.IconButton,{"aria-label":"close",onClick:t,sx:{position:"absolute",right:8,top:12},children:h.jsx(tc,{})}),h.jsx(N.Typography,{variant:"h6",mb:2,children:i?"Editar evento":"Agregar evento"}),h.jsxs(N.Grid,{container:!0,spacing:1,marginBottom:l?0:1,children:[h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"titulo",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,label:"Título",fullWidth:!0,variant:"outlined",size:"small",error:!!j.titulo,helperText:j.titulo?.message,inputProps:{maxLength:100},sx:{"& .MuiInputLabel-root.Mui-focused":{color:"black"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"black"},"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(N.Divider,{})}),h.jsx(N.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"fechaInicio",control:R,render:({field:V})=>h.jsx(N.TextField,{fullWidth:!0,...V,type:"date",placeholder:"Fecha de inicio",size:"small",InputLabelProps:{shrink:!0},error:!!j.fechaInicio,helperText:j.fechaInicio?.message})})}),l?h.jsxs(h.Fragment,{children:[h.jsx(N.Grid,{size:{xs:1,md:3},sx:{display:{xs:"none",sm:"block"}}}),h.jsx(N.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"fechaFin",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,type:"date",placeholder:"Fecha de fin",fullWidth:!!l,size:"small",InputLabelProps:{shrink:!0},inputProps:{min:A||m},error:!!j.fechaFin,helperText:j.fechaFin?.message})})}),!i&&h.jsx(N.Grid,{size:{xs:1,md:1},children:h.jsx(N.IconButton,{onClick:()=>u(!1),sx:{fontSize:18},children:h.jsx(wp,{})})})]}):h.jsx(N.Grid,{size:{xs:12,md:7}})]}),l&&h.jsx(h.Fragment,{children:h.jsxs(N.Grid,{container:!0,spacing:0,sx:{margin:0,padding:0,width:"100%"},children:[h.jsx(N.Grid,{size:{xs:6,md:5}}),h.jsx(N.Grid,{size:{xs:12,md:6},sx:{margin:0,padding:0,width:"100%",display:{xs:"none",sm:"block"}},children:h.jsx(_p,{sx:{color:"#757575",margin:0,padding:0}})})]})}),h.jsxs(N.Grid,{container:!0,spacing:1,marginBottom:1,marginTop:1,children:[h.jsx(N.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaInicio",control:R,render:({field:{onChange:V,value:Q,...L}})=>h.jsx(N.Autocomplete,{freeSolo:!0,options:xp,value:Q||"",onChange:(U,ce)=>V(ce||""),onInputChange:(U,ce)=>V(ce),renderInput:U=>h.jsx(N.TextField,{...U,...L,size:"small",error:!!j.horaInicio,helperText:j.horaInicio?.message,InputProps:{...U.InputProps,endAdornment:h.jsx(N.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(ef,{})})}}),disabled:K("todoElDia")})})}),h.jsx(N.Grid,{size:{xs:1,md:1},sx:{display:"flex",alignItems:j.horaInicio?"start":"center",marginTop:j.horaInicio?"5px":"0px"},children:!l&&h.jsx(_p,{sx:{color:"#757575"}})}),l&&h.jsx(N.Grid,{size:{xs:2,md:2}}),h.jsx(N.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaFin",control:R,render:({field:{onChange:V,value:Q,...L}})=>h.jsx(N.Autocomplete,{freeSolo:!0,options:xp,value:Q||"",onChange:(U,ce)=>V(ce||""),onInputChange:(U,ce)=>V(ce),renderInput:U=>h.jsx(N.TextField,{...U,...L,size:"small",error:!!j.horaFin,helperText:j.horaFin?.message,InputProps:{...U.InputProps,endAdornment:h.jsx(N.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(ef,{})})}}),disabled:K("todoElDia")})})}),h.jsx(N.Grid,{size:{xs:12,md:3},hidden:l,children:h.jsx(er,{name:"todoElDia",control:R,render:({field:V})=>h.jsx(N.FormControlLabel,{control:h.jsx(N.Checkbox,{checked:V.value,onChange:Q=>V.onChange(Q.target.checked)}),label:h.jsx("label",{style:{fontSize:"0.7rem",fontWeight:"normal"},children:"Todo el día"}),sx:{whiteSpace:"nowrap"}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:!l&&h.jsx(h.Fragment,{children:h.jsxs(N.Button,{onClick:J,size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(aC,{}),"  Agregar fecha final"]})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(N.Divider,{})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:!d&&h.jsxs(N.Button,{onClick:()=>f(!0),size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(cC,{}),"  Vincular cliente"]})}),d&&h.jsxs(h.Fragment,{children:[h.jsx(N.Grid,{size:{xs:12,md:7},children:h.jsx(er,{name:"client",control:R,render:({field:V})=>h.jsx(N.Autocomplete,{options:y,loading:C,getOptionLabel:Q=>Q.nombreCliente?.trim()||"",value:y.find(Q=>Q.nombreCliente===V.value)||(V.value&&typeof V.value=="string"?{solID:-1,nombreCliente:V.value}:null),noOptionsText:"",onInputChange:(Q,L)=>{p(L)},onChange:(Q,L)=>{if(V.onChange(L?L.nombreCliente:""),v("solID",L?L.solID:null),L&&L.nombreCliente){const U=y.filter(ce=>ce.nombreCliente===L.nombreCliente&&ce.solID).map(ce=>ce.solID);O([...new Set(U)])}else O([])},renderInput:Q=>h.jsx(N.TextField,{...Q,placeholder:"Buscar cliente...",size:"small",InputProps:{...Q.InputProps,startAdornment:h.jsx("img",{src:iC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"5px"}}),endAdornment:h.jsxs(h.Fragment,{children:[C?h.jsx(N.CircularProgress,{color:"inherit",size:20}):null,Q.InputProps.endAdornment]})}})})})}),h.jsx(N.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"solID",control:R,render:({field:V})=>h.jsx(N.Autocomplete,{options:_,getOptionLabel:Q=>Q.toString(),value:V.value??null,onChange:(Q,L)=>V.onChange(L),renderInput:Q=>h.jsx(N.TextField,{...Q,label:"#Registro",variant:"outlined",size:"small",sx:{"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}}),disabled:!y})})}),h.jsx(N.Grid,{size:{xs:1,md:1},children:h.jsx(N.IconButton,{onClick:()=>f(!1),sx:{fontSize:18},children:h.jsx(wp,{})})})]}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(N.Divider,{})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"link",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,placeholder:" Agregar enlace de reunión",fullWidth:!0,variant:"outlined",size:"small",error:!!j.link,helperText:j.link?.message,InputProps:{startAdornment:h.jsx("img",{src:nC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"8px"}})}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"descripcion",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,placeholder:" Agregar descripción aquí...",fullWidth:!0,multiline:!0,rows:3,inputProps:{maxLength:500},variant:"outlined",size:"small",InputProps:{startAdornment:h.jsx("img",{src:sC,width:20,style:{alignSelf:"flex-start",marginRight:"8px"}})}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap"},children:[h.jsx(oC,{}),rc.map(V=>h.jsx(er,{name:"color",control:R,render:({field:Q})=>h.jsx(N.IconButton,{onClick:()=>Q.onChange(V),sx:{width:24,height:24,borderRadius:"50%",bgcolor:V,border:Q.value===V?"2px solid":"none",borderColor:Q.value===V?"primary.main":"transparent"}})},V))]})})]}),h.jsxs(N.Box,{sx:{display:"flex",justifyContent:"flex-end",mt:3,gap:2},children:[i&&h.jsx(N.Button,{onClick:n,variant:"outlined",color:"error",children:"Eliminar"}),h.jsx(N.Button,{onClick:t,variant:"outlined",sx:{textTransform:"none"},children:"Cancelar"}),h.jsx(N.Button,{onClick:W,variant:"contained",sx:{textTransform:"none"},children:"Guardar"})]})]})})},dC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='49'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M34.559%2048.077c-7.413%200-13.44-6.039-13.44-13.44s6.027-13.44%2013.44-13.44%2013.44%206.027%2013.44%2013.44c0%207.414-6.027%2013.44-13.44%2013.44'/%3e%3cpath%20fill='%23fff'%20d='M39.827%2029.346c.583.583.605%201.505.05%202.06l-3.218%203.219%203.219%203.218c.555.556.532%201.48-.051%202.062-.584.583-1.506.605-2.062.05l-3.218-3.218-3.218%203.218c-.556.555-1.478.533-2.061-.05s-.606-1.506-.05-2.062l3.217-3.218-3.218-3.218c-.555-.555-.533-1.478.05-2.061.583-.584%201.507-.606%202.063-.05l3.217%203.217%203.218-3.218c.556-.555%201.478-.533%202.062.05'/%3e%3cpath%20fill='%23404756'%20d='M30.367.078c1.112%200%202.001.868%202.001%201.954v1.195h.979c4.913%200%208.892%203.887%208.892%208.686v9.237a15.4%2015.4%200%200%200-4.424-1.691v-1.312H4.468V33.63c0%202.389%202%204.343%204.446%204.343H19.4a15.4%2015.4%200%200%200%201.676%204.343H8.892C3.979%2042.317%200%2038.43%200%2033.631V11.913c0-4.8%203.979-8.686%208.892-8.686h1V2.032c0-1.086.89-1.954%202.002-1.954s2%20.868%202%201.954v1.195h14.473V2.032c0-1.085.889-1.954%202-1.954'/%3e%3c/svg%3e",fC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4,borderRadius:2,textAlign:"center"},pC=({isOpen:e,onClose:t,onConfirm:r,title:n,message:o})=>h.jsx(N.Modal,{open:e,onClose:t,children:h.jsxs(N.Box,{sx:fC,children:[h.jsx("img",{src:dC}),h.jsx(N.Typography,{variant:"h6",component:"h2",sx:{mt:1},children:n}),h.jsx(N.Typography,{sx:{mt:2},children:o}),h.jsxs(N.Box,{sx:{mt:4,display:"flex",justifyContent:"center",gap:2},children:[h.jsx(N.Button,{variant:"outlined",onClick:t,sx:{textTransform:"none"},children:"Regresar"}),h.jsxs(N.Button,{variant:"contained",color:"error",onClick:r,sx:{textTransform:"none"},children:[h.jsx("span",{className:"icon-eliminar",children:"  "})," Eliminar"]})]})]})}),hC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:450,bgcolor:"background.paper",boxShadow:24,p:2,borderRadius:2},mC=({isOpen:e,onClose:t,events:r,date:n,onEventClick:o})=>{if(!n)return null;const i=a=>{o(a),t()};return h.jsx(N.Modal,{open:e,onClose:t,children:h.jsxs(N.Box,{sx:hC,children:[h.jsxs(N.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[h.jsxs(N.Typography,{sx:{fontSize:"20px"},component:"h2",children:["Eventos del"," ",n.toLocaleDateString("es-ES",{weekday:"long",day:"numeric",month:"long"})]}),h.jsx(N.IconButton,{onClick:t,children:h.jsx(tc,{})})]}),h.jsx(N.Divider,{}),h.jsx(N.List,{children:r.map(a=>h.jsx(N.ListItem,{disablePadding:!0,children:h.jsxs(N.ListItemButton,{onClick:()=>i(a),sx:{py:.5},children:[h.jsx(N.Box,{sx:{width:"15px",height:"15px",borderRadius:"50%",backgroundColor:a.color||"#ccc",mr:2,flexShrink:0,minWidth:"10px"}}),h.jsx(N.ListItemText,{primary:a.titulo,secondary:`${w.format(a.fechaInicio,"HH:mm")} - ${w.format(a.fechaFin,"HH:mm")}`,sx:{my:0,"& .MuiListItemText-primary":{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},"& .MuiListItemText-secondary":{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"}}})]})},a.eventoID))})]})})},gC=qt(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),vC=qt(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),yC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M20.36%204.14H16c0-1.65-1.35-3-3-3h-2c-1.65%200-3%201.35-3%203H3.64c-.55%200-1%20.45-1%201s.45%201%201%201h1.04l.84%2013.91a3%203%200%200%200%202.99%202.82h6.98c1.58%200%202.9-1.24%203-2.82l.84-13.91h1.04c.55%200%201-.45%201-1s-.45-1-1-1zm-9.36-1h2c.55%200%201%20.45%201%201h-4c0-.55.45-1%201-1m-.39%2014.9c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201zm4.78%200c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201z'/%3e%3c/svg%3e",bC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M19.378%204.405a1.813%201.813%200%201%201%202.565%202.565L9.571%2019.342a1.813%201.813%200%200%201-2.565%200l-4.949-4.949a1.814%201.814%200%200%201%202.428-2.69l.137.126%203.666%203.666z'/%3e%3c/svg%3e",Sp=x.forwardRef(({id:e,message:t,variant:r},n)=>{const{closeSnackbar:o}=ga.useSnackbar(),i={success:{color:"#fff",icon:h.jsx("img",{width:25,src:bC,style:{borderRadius:"50%",backgroundColor:"#4caf50",color:"white",fontSize:"12px",padding:3}})},error:{color:"#f44336",icon:h.jsx(gC,{sx:{color:"#f44336"}})},info:{color:"#2196f3",icon:h.jsx(vC,{sx:{color:"#2196f3"}})},delete:{color:"#fff",icon:h.jsx("img",{src:yC,width:25,style:{borderRadius:"50%",backgroundColor:"#ffdfd4",color:"red",fontSize:"16px",padding:3}})}},a=i[r]||i.info;return h.jsx(ga.SnackbarContent,{ref:n,children:h.jsxs(N.Box,{sx:{backgroundColor:"white",color:"#333",padding:"8px 16px",borderRadius:"8px",boxShadow:"0 3px 10px rgba(0,0,0,0.2)",display:"flex",alignItems:"center",width:{xs:"90%",sm:"auto"},minWidth:"300px",borderLeft:`5px solid ${a.color}`},children:[h.jsx(N.Box,{sx:{mr:1.5},children:a.icon}),h.jsx(N.Typography,{variant:"body2",sx:{flexGrow:1},children:t}),h.jsx(N.IconButton,{size:"small",onClick:()=>o(e),children:h.jsx(tc,{fontSize:"small"})})]})})}),wC=({userId:e,leads30Days:t,leads90Days:r,disId:n,masNombreBD:o})=>{const[i,a]=x.useState(new Date),[s,c]=x.useState([]),[l,u]=x.useState(!1),[d,f]=x.useState(null),[m,g]=x.useState(!1),[p,y]=x.useState(null),[S,C]=x.useState([]),{enqueueSnackbar:k}=ga.useSnackbar(),E=Ps(),[_,O]=x.useState(!1),[R,q]=x.useState([]),[Z,j]=x.useState(null),K=(ee,G)=>{q(ee),j(G),O(!0)},v=x.useRef(null);x.useEffect(()=>{const ee=async()=>{try{if(e){const G=await E.getEventsByUser(e);c(G)}}catch{console.log("No se pudieron cargar los eventos. Revisa la consola para más detalles.")}finally{console.log("Eventos han sido cargados")}};return ee(),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{console.log("Iniciando recarga programada de eventos (2 segundos después del inicio)..."),ee()},4e3),()=>{v.current&&clearTimeout(v.current)}},[i,e]),x.useEffect(()=>{const ee=new Date,G=w.startOfDay(ee),se=w.endOfDay(w.addDays(G,6)),le={start:G,end:se},me=s.filter(ue=>{const Te={start:ue.fechaInicio,end:ue.fechaFin};return nd(Te,le)}).sort((ue,Te)=>ue.fechaInicio.getTime()-Te.fechaInicio.getTime());C(me)},[s]);const A=async ee=>{try{const G=await E.getEventById(ee.eventoID);f(G),u(!0)}catch(G){console.error(G)}},P=()=>{u(!1),f(null)},H=async(ee,G)=>{let se,le;ee.todoElDia?(se=new Date(`${ee.fechaInicio}T${ee.horaInicio}`),le=new Date(`${ee.fechaInicio}T${ee.horaFin}`)):(se=new Date(`${ee.fechaInicio}T${ee.horaInicio}`),le=ee.fechaFin&&ee.horaInicio2?new Date(`${ee.fechaFin}T${ee.horaInicio2}`):new Date(se.getTime()+3600*1e3));const me=w.format(se,"yyyy-MM-dd HH:mm:ss.SSS"),ue=w.format(le,"yyyy-MM-dd HH:mm:ss.SSS");if(G){const B={...ee,eventoID:G,fechaInicio:me,fechaFin:ue,solID:ee.solID??null,disID:n??null,client:ee.client};try{const Ve=await E.updateEvent(B);var Te=s.map(Qe=>Qe.eventoID===Ve.eventoID?Ve:Qe);c(Te),k("El evento se ha actualizado correctamente.",{variant:"success"}),P()}catch{k("Error al eliactualizar Evento",{variant:"error"})}}else{const B={...ee,fechaInicio:me,fechaFin:ue,todoElDia:ee.todoElDia,solID:ee.solID??null,disID:n??null,client:ee.client};try{const Ve=await E.createEvent(B,e);c(Qe=>[...Qe,Ve]),k("El evento se ha creado con éxito",{variant:"success"}),P()}catch{k("Error al guardar Evento",{variant:"error"})}}if(e){const B=await E.getEventsByUser(e);c(B)}},W=()=>{a(ee=>new Date(ee.getFullYear(),ee.getMonth()-1,1))},J=()=>{a(ee=>new Date(ee.getFullYear(),ee.getMonth()+1,1))},V=()=>{g(!0)},Q=()=>{y(new Date),u(!0)},L=()=>alert("Sincronizar con Google Calendar"),U=()=>alert("Sincronizar con Outlook Calendar"),ce=ee=>{ee&&a(ee)},ge=ee=>{y(ee),u(!0),f(null)},he=async()=>{if(d)try{await E.deleteEvent(d.eventoID),c(s.filter(ee=>ee.eventoID!==d.eventoID)),k("El evento se ha eliminado de tu calendario",{content:(ee,G)=>h.jsx(Sp,{id:ee,message:String(G),variant:"delete"})})}catch{k("Error al eliminar Evento",{variant:"error"})}finally{P(),g(!1)}};return h.jsxs("div",{id:"Agenda",style:{height:"100%",width:"100%"},children:[h.jsx(I0,{header:h.jsx(Jy,{currentDate:i,onPrevMonth:W,onNextMonth:J,onAddEvent:Q,onDateChange:ce}),sidebar:h.jsx(Nb,{onEventClick:A,upcomingEvents:S,onSyncGoogle:L,onSyncOutlook:U,leads30Days:t,leads90Days:r}),mainContent:h.jsx(Ub,{onSeeMoreClick:K,currentDate:i,events:s,onDayClick:ge,onEventClick:A})}),h.jsx(uC,{isVisible:l,onClose:P,onSave:H,onDelete:V,selectedDate:p,initialEvent:d,userId:e,masNombreBD:o,disId:n}),h.jsx(pC,{isOpen:m,onClose:()=>g(!1),onConfirm:he,title:"Eliminar evento",message:"¿De verdad deseas eliminar este evento? Esta acción no se puede deshacer."}),h.jsx(mC,{isOpen:_,onClose:()=>O(!1),events:R,date:Z,onEventClick:A})]})},_C="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%3e%3cpath%20fill='%23070c10'%20d='M18.575%203.172A10.829%2010.829%200%200%200%201.564%2016.284l-.028-.051L0%2021.843l5.739-1.506a10.7%2010.7%200%200%200%205.173%201.318%2010.83%2010.83%200%200%200%207.663-18.483m-7.658%2016.655a8.94%208.94%200%200%201-4.62-1.277l.041.023-.329-.194-3.405.894.908-3.321-.214-.34a8.9%208.9%200%200%201-1.376-4.782%209%209%200%201%201%209%209Zm4.935-6.736c-.27-.135-1.6-.789-1.848-.88s-.429-.135-.61.136-.7.879-.856%201.06-.316.2-.586.068a7.5%207.5%200%200%201-2.183-1.349l.007.007a8.2%208.2%200%200%201-1.483-1.842l-.02-.038c-.157-.27-.017-.417.118-.551s.271-.316.406-.473a1.9%201.9%200%200%200%20.267-.44v-.012a.5.5%200%200%200%20.05-.216.5.5%200%200%200-.074-.26c-.068-.135-.609-1.467-.834-2.009s-.444-.455-.609-.464-.338-.009-.519-.009a.99.99%200%200%200-.72.337%203.03%203.03%200%200%200-.947%202.2v.058a5.27%205.27%200%200%200%201.114%202.815v-.011a12.16%2012.16%200%200%200%204.553%204.053l.068.031a14%2014%200%200%200%201.434.539l.109.03a3.6%203.6%200%200%200%201.077.161%203.7%203.7%200%200%200%20.648-.057h-.023a2.8%202.8%200%200%200%201.819-1.274l.007-.012a2.2%202.2%200%200%200%20.19-.9%202.3%202.3%200%200%200-.034-.395v.014c-.067-.113-.248-.18-.519-.316Z'/%3e%3c/svg%3e",xC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25.085'%20height='18.5'%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='none'%20d='M0%200h25.085v18.5H0z'%20data-name='Rectángulo%204598'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23a)'%20data-name='Grupo%207946'%3e%3cpath%20d='M23.12%205.809V3.226a3.2%203.2%200%200%200-.068-.656l-3.141%202.21a7.8%207.8%200%200%201%203.209%201.032'%20data-name='Trazado%2013329'/%3e%3cpath%20d='M11.847%209.791c-.1.009-.2.023-.308.023a3.78%203.78%200%200%201-2.18-.688L.067%202.58A3.2%203.2%200%200%200%200%203.227V13.98a3.23%203.23%200%200%200%203.226%203.226h9.611a7.86%207.86%200%200%201-.99-7.414'%20data-name='Trazado%2013330'/%3e%3cpath%20d='M12.478%207.369%2021.92.737A3.2%203.2%200%200%200%2019.894%200H3.226a3.2%203.2%200%200%200-2.031.74l9.4%206.628a1.64%201.64%200%200%200%201.881%200'%20data-name='Trazado%2013331'/%3e%3cpath%20d='M23.356%208.407a5.914%205.914%200%201%200%200%208.364%205.92%205.92%200%200%200%200-8.364m-1.833%204.842a.54.54%200%200%201-1.081%200v-1.164l-2.513%202.516a.54.54%200%200%201-.765-.763l2.515-2.515h-1.167a.54.54%200%201%201%200-1.081h2.471a.54.54%200%200%201%20.54.54Z'%20data-name='Trazado%2013332'/%3e%3c/g%3e%3c/svg%3e";function nc(e,t,r){return e.accessor?e.accessor(t,r):e.field?t?.[e.field]:t?.[e?.key||""]}function SC(e,t){const r=e??"",n=t??"";return r instanceof Date&&n instanceof Date?r.getTime()-n.getTime():typeof r=="number"&&typeof n=="number"?r-n:typeof r=="boolean"&&typeof n=="boolean"?Number(r)-Number(n):String(r).localeCompare(String(n),void 0,{numeric:!0,sensitivity:"base"})}function oc(e,t,r=!0){return typeof e=="function"?e(t):e??r}function CC(e){return e.replace(/[^\d]/g,"")}function EC(e,t){return t}const Cp=qt(h.jsx("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFileOutlined"),kC=qt(h.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),DC=qt(h.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),TC=Et("MuiBox",["root"]),OC=ru(),ic=_g({themeId:Ga,defaultTheme:OC,defaultClassName:TC.root,generateClassName:Pc.generate});process.env.NODE_ENV!=="production"&&(ic.propTypes={children:b.node,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function Ep(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ac(e,t){return ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ac(e,t)}function kp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ac(e,t)}const Dp={disabled:!1};var MC=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const ua=x.createContext(null);var PC=function(t){return t.scrollTop},Eo="unmounted",rn="exited",nn="entering",In="entered",sc="exiting",Cr=(function(e){kp(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?s?(c=rn,i.appearStatus=nn):c=In:n.unmountOnExit||n.mountOnEnter?c=Eo:c=rn,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Eo?{status:rn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==nn&&a!==In&&(i=nn):(a===nn||a===In)&&(i=sc)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===nn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this);a&&PC(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rn&&this.setState({status:Eo})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[ln.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||Dp.disabled){this.safeSetState({status:In},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:nn},function(){i.props.onEntering(l,u),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(l,u)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:ln.findDOMNode(this);if(!i||Dp.disabled){this.safeSetState({status:rn},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:sc},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:rn},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Eo)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Ep(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(ua.Provider,{value:null},typeof a=="function"?a(o,s):x.cloneElement(x.Children.only(a),s))},t})(x.Component);Cr.contextType=ua,Cr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,t,r,n,o,i){var a=e[t];return b.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(t){var r=MC;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function Rn(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rn,onEntering:Rn,onEntered:Rn,onExit:Rn,onExiting:Rn,onExited:Rn},Cr.UNMOUNTED=Eo,Cr.EXITED=rn,Cr.ENTERING=nn,Cr.ENTERED=In,Cr.EXITING=sc;function AC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cc(e,t){var r=function(i){return t&&x.isValidElement(i)?t(i):i},n=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function IC(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var c in t){if(n[c])for(a=0;a<n[c].length;a++){var l=n[c][a];s[n[c][a]]=r(l)}s[c]=r(c)}for(a=0;a<o.length;a++)s[o[a]]=r(o[a]);return s}function on(e,t,r){return r[t]!=null?r[t]:e.props[t]}function RC(e,t){return cc(e.children,function(r){return x.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:on(r,"appear",e),enter:on(r,"enter",e),exit:on(r,"exit",e)})})}function NC(e,t,r){var n=cc(e.children),o=IC(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(x.isValidElement(a)){var s=i in t,c=i in n,l=t[i],u=x.isValidElement(l)&&!l.props.in;c&&(!s||u)?o[i]=x.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:on(a,"exit",e),enter:on(a,"enter",e)}):!c&&s&&!u?o[i]=x.cloneElement(a,{in:!1}):c&&s&&x.isValidElement(l)&&(o[i]=x.cloneElement(a,{onExited:r.bind(null,a),in:l.props.in,exit:on(a,"exit",e),enter:on(a,"enter",e)}))}}),o}var $C=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},jC={component:"div",childFactory:function(t){return t}},lc=(function(e){kp(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(AC(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,c=i.firstRender;return{children:c?RC(o,s):NC(o,a,s),firstRender:!1}},r.handleExited=function(o,i){var a=cc(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var c=Uo({},s.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=Ep(o,["component","childFactory"]),c=this.state.contextValue,l=$C(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?x.createElement(ua.Provider,{value:c},l):x.createElement(ua.Provider,{value:c},x.createElement(i,s,l))},t})(x.Component);lc.propTypes=process.env.NODE_ENV!=="production"?{component:b.any,children:b.node,appear:b.bool,enter:b.bool,exit:b.bool,childFactory:b.func}:{},lc.defaultProps=jC;const Tp={};function Op(e,t){const r=$.useRef(Tp);return r.current===Tp&&(r.current=e(t)),r}const LC=[];function zC(e){$.useEffect(e,LC)}class uc{static create(){return new uc}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Mp(){const e=Op(uc.create).current;return zC(e.disposeEffect),e}function da(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function BC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function VC(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!BC(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Pp=da(b.elementType,VC);function Ap(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function FC(e){return Ct("MuiCollapse",e)}Et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const YC=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Lt(n,FC,r)},UC=ut("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(cr(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),HC=ut("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),WC=ut("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),fa=$.forwardRef(function(t,r){const n=Rt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:c,easing:l,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:g,onExited:p,onExiting:y,orientation:S="vertical",style:C,timeout:k=Kl.standard,TransitionComponent:E=Cr,..._}=n,O={...n,orientation:S,collapsedSize:s},R=YC(O),q=ou(),Z=Mp(),j=$.useRef(null),K=$.useRef(),v=typeof s=="number"?`${s}px`:s,A=S==="horizontal",P=A?"width":"height",H=$.useRef(null),W=Qa(r,H),J=G=>se=>{if(G){const le=H.current;se===void 0?G(le):G(le,se)}},V=()=>j.current?j.current[A?"clientWidth":"clientHeight"]:0,Q=J((G,se)=>{j.current&&A&&(j.current.style.position="absolute"),G.style[P]=v,d&&d(G,se)}),L=J((G,se)=>{const le=V();j.current&&A&&(j.current.style.position="");const{duration:me,easing:ue}=Ap({style:C,timeout:k,easing:l},{mode:"enter"});if(k==="auto"){const Te=q.transitions.getAutoHeightDuration(le);G.style.transitionDuration=`${Te}ms`,K.current=Te}else G.style.transitionDuration=typeof me=="string"?me:`${me}ms`;G.style[P]=`${le}px`,G.style.transitionTimingFunction=ue,m&&m(G,se)}),U=J((G,se)=>{G.style[P]="auto",f&&f(G,se)}),ce=J(G=>{G.style[P]=`${V()}px`,g&&g(G)}),ge=J(p),he=J(G=>{const se=V(),{duration:le,easing:me}=Ap({style:C,timeout:k,easing:l},{mode:"exit"});if(k==="auto"){const ue=q.transitions.getAutoHeightDuration(se);G.style.transitionDuration=`${ue}ms`,K.current=ue}else G.style.transitionDuration=typeof le=="string"?le:`${le}ms`;G.style[P]=v,G.style.transitionTimingFunction=me,y&&y(G)}),ee=G=>{k==="auto"&&Z.start(K.current||0,G),o&&o(H.current,G)};return h.jsx(E,{in:u,onEnter:Q,onEntered:U,onEntering:L,onExit:ce,onExited:ge,onExiting:he,addEndListener:ee,nodeRef:H,timeout:k==="auto"?null:k,..._,children:(G,{ownerState:se,...le})=>h.jsx(UC,{as:c,className:be(R.root,a,{entered:R.entered,exited:!u&&v==="0px"&&R.hidden}[G]),style:{[A?"minWidth":"minHeight"]:v,...C},ref:W,ownerState:{...O,state:G},...le,children:h.jsx(HC,{ownerState:{...O,state:G},className:R.wrapper,ref:j,children:h.jsx(WC,{ownerState:{...O,state:G},className:R.wrapperInner,children:i})})})})});process.env.NODE_ENV!=="production"&&(fa.propTypes={addEndListener:b.func,children:b.node,classes:b.object,className:b.string,collapsedSize:b.oneOfType([b.number,b.string]),component:Pp,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,orientation:b.oneOf(["horizontal","vertical"]),style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),timeout:b.oneOfType([b.oneOf(["auto"]),b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])}),fa&&(fa.muiSupportAuto=!0);function ZC(e){return typeof e.main=="string"}function qC(e,t=[]){if(!ZC(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function dc(e=[]){return([,t])=>t&&qC(t,e)}const KC=b.oneOfType([b.func,b.object]);function Ip(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
188
+ `)}m.write("payload.value = newResult;"),m.write("return payload;");const C=m.compile();return(k,E)=>C(f,k,E)};let i;const a=Qi,s=!Of.jitless,l=s&&B2.value,u=t.catchall;let d;e._zod.parse=(f,m)=>{d??(d=n.value);const g=f.value;return a(g)?s&&l&&m?.async===!1&&m.jitless!==!0?(i||(i=o(t.shape)),f=i(f,m),u?Zf([],g,f,m,d,e):f):r(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function qf(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!An(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>tn(a,n,en())))}),t)}const M_=Y("$ZodUnion",(e,t)=>{et.init(e,t),Ye(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Ye(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Ye(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Ye(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Ws(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let a=!1;const s=[];for(const c of t.options){const l=c._zod.run({value:o.value,issues:[]},i);if(l instanceof Promise)s.push(l),a=!0;else{if(l.issues.length===0)return l;s.push(l)}}return a?Promise.all(s).then(c=>qf(c,o,e,i)):qf(s,o,e,i)}}),P_=Y("$ZodIntersection",(e,t)=>{et.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),a=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,l])=>Kf(r,c,l)):Kf(r,i,a)}});function Gs(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xo(e)&&xo(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const a=Gs(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],a=Gs(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Kf(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),An(e))return e;const n=Gs(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const A_=Y("$ZodEnum",(e,t)=>{et.init(e,t);const r=j2(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>V2.has(typeof o)).map(o=>typeof o=="string"?Pn(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return n.has(a)||o.issues.push({code:"invalid_value",values:r,input:a,inst:e}),o}}),I_=Y("$ZodLiteral",(e,t)=>{if(et.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Pn(r):r?Pn(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,n)=>{const o=r.value;return e._zod.values.has(o)||r.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),r}}),R_=Y("$ZodTransform",(e,t)=>{et.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Tf(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(r.value=a,r));if(o instanceof Promise)throw new On;return r.value=o,r}});function Gf(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const N_=Y("$ZodOptional",(e,t)=>{et.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ye(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ws(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Gf(i,r.value)):Gf(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),$_=Y("$ZodNullable",(e,t)=>{et.init(e,t),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),Ye(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ws(r.source)}|null)$`):void 0}),Ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),j_=Y("$ZodDefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Qf(i,t)):Qf(o,t)}});function Qf(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const L_=Y("$ZodPrefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),z_=Y("$ZodNonOptional",(e,t)=>{et.init(e,t),Ye(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Xf(i,e)):Xf(o,e)}});function Xf(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const B_=Y("$ZodCatch",(e,t)=>{et.init(e,t),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),Ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>tn(a,n,en()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>tn(i,n,en()))},input:r.value}),r.issues=[]),r)}}),V_=Y("$ZodPipe",(e,t)=>{et.init(e,t),Ye(e._zod,"values",()=>t.in._zod.values),Ye(e._zod,"optin",()=>t.in._zod.optin),Ye(e._zod,"optout",()=>t.out._zod.optout),Ye(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(a=>aa(a,t.in,n)):aa(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>aa(i,t.out,n)):aa(o,t.out,n)}});function aa(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const F_=Y("$ZodReadonly",(e,t)=>{et.init(e,t),Ye(e._zod,"propValues",()=>t.innerType._zod.propValues),Ye(e._zod,"values",()=>t.innerType._zod.values),Ye(e._zod,"optin",()=>t.innerType._zod.optin),Ye(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(Jf):Jf(o)}});function Jf(e){return e.value=Object.freeze(e.value),e}const Y_=Y("$ZodCustom",(e,t)=>{Ot.init(e,t),et.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>ep(i,r,n,e));ep(o,r,n,e)}});function ep(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(So(o))}}class U_{constructor(){this._map=new Map,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function H_(){return new U_}const sa=H_();function W_(e,t){return new e({type:"string",...pe(t)})}function Z_(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...pe(t)})}function tp(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...pe(t)})}function q_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...pe(t)})}function K_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...pe(t)})}function G_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...pe(t)})}function Q_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...pe(t)})}function X_(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...pe(t)})}function J_(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...pe(t)})}function ex(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...pe(t)})}function tx(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...pe(t)})}function rx(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...pe(t)})}function nx(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...pe(t)})}function ox(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...pe(t)})}function ix(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...pe(t)})}function ax(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...pe(t)})}function sx(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...pe(t)})}function cx(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...pe(t)})}function lx(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...pe(t)})}function ux(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...pe(t)})}function dx(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...pe(t)})}function fx(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...pe(t)})}function px(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...pe(t)})}function hx(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...pe(t)})}function mx(e,t){return new e({type:"string",format:"date",check:"string_format",...pe(t)})}function gx(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...pe(t)})}function vx(e,t){return new e({type:"string",format:"duration",check:"string_format",...pe(t)})}function yx(e,t){return new e({type:"number",checks:[],...pe(t)})}function bx(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...pe(t)})}function wx(e,t){return new e({type:"boolean",...pe(t)})}function _x(e){return new e({type:"unknown"})}function xx(e,t){return new e({type:"never",...pe(t)})}function rp(e,t){return new Vf({check:"less_than",...pe(t),value:e,inclusive:!1})}function Qs(e,t){return new Vf({check:"less_than",...pe(t),value:e,inclusive:!0})}function np(e,t){return new Ff({check:"greater_than",...pe(t),value:e,inclusive:!1})}function Xs(e,t){return new Ff({check:"greater_than",...pe(t),value:e,inclusive:!0})}function op(e,t){return new Lw({check:"multiple_of",...pe(t),value:e})}function ip(e,t){return new Bw({check:"max_length",...pe(t),maximum:e})}function ca(e,t){return new Vw({check:"min_length",...pe(t),minimum:e})}function ap(e,t){return new Fw({check:"length_equals",...pe(t),length:e})}function Sx(e,t){return new Yw({check:"string_format",format:"regex",...pe(t),pattern:e})}function Cx(e){return new Uw({check:"string_format",format:"lowercase",...pe(e)})}function Ex(e){return new Hw({check:"string_format",format:"uppercase",...pe(e)})}function kx(e,t){return new Ww({check:"string_format",format:"includes",...pe(t),includes:e})}function Dx(e,t){return new Zw({check:"string_format",format:"starts_with",...pe(t),prefix:e})}function Tx(e,t){return new qw({check:"string_format",format:"ends_with",...pe(t),suffix:e})}function Co(e){return new Kw({check:"overwrite",tx:e})}function Ox(e){return Co(t=>t.normalize(e))}function Mx(){return Co(e=>e.trim())}function Px(){return Co(e=>e.toLowerCase())}function Ax(){return Co(e=>e.toUpperCase())}function Ix(e,t,r){return new e({type:"array",element:t,...pe(r)})}function Rx(e,t,r){return new e({type:"custom",check:"custom",fn:t,...pe(r)})}function Nx(e){const t=$x(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(So(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(So(o))}},e(r.value,r)));return t}function $x(e,t){const r=new Ot({check:"custom",...pe(t)});return r._zod.check=e,r}function sp(e,t){try{var r=e()}catch(n){return t(n)}return r&&r.then?r.then(void 0,t):r}function jx(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!r[a])if("unionErrors"in n){var s=n.unionErrors[0].errors[0];r[a]={message:s.message,type:s.code}}else r[a]={message:i,type:o};if("unionErrors"in n&&n.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=r[a].types,l=c&&c[n.code];r[a]=Ls(a,t,r,o,l?[].concat(l,n.message):n.message)}e.shift()}return r}function Lx(e,t){for(var r={};e.length;){var n=e[0],o=n.code,i=n.message,a=n.path.join(".");if(!r[a])if(n.code==="invalid_union"&&n.errors.length>0){var s=n.errors[0][0];r[a]={message:s.message,type:s.code}}else r[a]={message:i,type:o};if(n.code==="invalid_union"&&n.errors.forEach(function(u){return u.forEach(function(d){return e.push(d)})}),t){var c=r[a].types,l=c&&c[n.code];r[a]=Ls(a,t,r,o,l?[].concat(l,n.message):n.message)}e.shift()}return r}function zx(e,t,r){if(r===void 0&&(r={}),(function(n){return"_def"in n&&typeof n._def=="object"&&"typeName"in n._def})(e))return function(n,o,i){try{return Promise.resolve(sp(function(){return Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](n,t)).then(function(a){return i.shouldUseNativeValidation&&Fs({},i),{errors:{},values:r.raw?Object.assign({},n):a}})},function(a){if((function(s){return Array.isArray(s?.issues)})(a))return{values:{},errors:kf(jx(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};if((function(n){return"_zod"in n&&typeof n._zod=="object"})(e))return function(n,o,i){try{return Promise.resolve(sp(function(){return Promise.resolve((r.mode==="sync"?J2:ew)(e,n,t)).then(function(a){return i.shouldUseNativeValidation&&Fs({},i),{errors:{},values:r.raw?Object.assign({},n):a}})},function(a){if((function(s){return s instanceof qs})(a))return{values:{},errors:kf(Lx(a.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const Bx=Y("ZodISODateTime",(e,t)=>{l_.init(e,t),Ge.init(e,t)});function Vx(e){return hx(Bx,e)}const Fx=Y("ZodISODate",(e,t)=>{u_.init(e,t),Ge.init(e,t)});function Yx(e){return mx(Fx,e)}const Ux=Y("ZodISOTime",(e,t)=>{d_.init(e,t),Ge.init(e,t)});function Hx(e){return gx(Ux,e)}const Wx=Y("ZodISODuration",(e,t)=>{f_.init(e,t),Ge.init(e,t)});function Zx(e){return vx(Wx,e)}const Ut=Y("ZodError",(e,t)=>{qs.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>X2(e,r)},flatten:{value:r=>Q2(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ys,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ys,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),qx=ea(Ut),Kx=ta(Ut),Gx=ra(Ut),Qx=na(Ut),Xx=nw(Ut),Jx=ow(Ut),eS=iw(Ut),tS=aw(Ut),rS=sw(Ut),nS=cw(Ut),oS=lw(Ut),iS=uw(Ut),it=Y("ZodType",(e,t)=>(et.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),e.clone=(r,n)=>jr(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>qx(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>Gx(e,r,n),e.parseAsync=async(r,n)=>Kx(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>Qx(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>Xx(e,r,n),e.decode=(r,n)=>Jx(e,r,n),e.encodeAsync=async(r,n)=>eS(e,r,n),e.decodeAsync=async(r,n)=>tS(e,r,n),e.safeEncode=(r,n)=>rS(e,r,n),e.safeDecode=(r,n)=>nS(e,r,n),e.safeEncodeAsync=async(r,n)=>oS(e,r,n),e.safeDecodeAsync=async(r,n)=>iS(e,r,n),e.refine=(r,n)=>e.check(eC(r,n)),e.superRefine=r=>e.check(tC(r)),e.overwrite=r=>e.check(Co(r)),e.optional=()=>mp(e),e.nullable=()=>gp(e),e.nullish=()=>mp(gp(e)),e.nonoptional=r=>ZS(e,r),e.array=()=>MS(e),e.or=r=>RS([e,r]),e.and=r=>$S(e,r),e.transform=r=>yp(e,VS(r)),e.default=r=>US(e,r),e.prefault=r=>WS(e,r),e.catch=r=>KS(e,r),e.pipe=r=>yp(e,r),e.readonly=()=>XS(e),e.describe=r=>{const n=e.clone();return sa.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return sa.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return sa.get(e);const n=e.clone();return sa.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),cp=Y("_ZodString",(e,t)=>{Ks.init(e,t),it.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(Sx(...n)),e.includes=(...n)=>e.check(kx(...n)),e.startsWith=(...n)=>e.check(Dx(...n)),e.endsWith=(...n)=>e.check(Tx(...n)),e.min=(...n)=>e.check(ca(...n)),e.max=(...n)=>e.check(ip(...n)),e.length=(...n)=>e.check(ap(...n)),e.nonempty=(...n)=>e.check(ca(1,...n)),e.lowercase=n=>e.check(Cx(n)),e.uppercase=n=>e.check(Ex(n)),e.trim=()=>e.check(Mx()),e.normalize=(...n)=>e.check(Ox(...n)),e.toLowerCase=()=>e.check(Px()),e.toUpperCase=()=>e.check(Ax())}),aS=Y("ZodString",(e,t)=>{Ks.init(e,t),cp.init(e,t),e.email=r=>e.check(Z_(sS,r)),e.url=r=>e.check(X_(cS,r)),e.jwt=r=>e.check(px(SS,r)),e.emoji=r=>e.check(J_(lS,r)),e.guid=r=>e.check(tp(lp,r)),e.uuid=r=>e.check(q_(la,r)),e.uuidv4=r=>e.check(K_(la,r)),e.uuidv6=r=>e.check(G_(la,r)),e.uuidv7=r=>e.check(Q_(la,r)),e.nanoid=r=>e.check(ex(uS,r)),e.guid=r=>e.check(tp(lp,r)),e.cuid=r=>e.check(tx(dS,r)),e.cuid2=r=>e.check(rx(fS,r)),e.ulid=r=>e.check(nx(pS,r)),e.base64=r=>e.check(ux(wS,r)),e.base64url=r=>e.check(dx(_S,r)),e.xid=r=>e.check(ox(hS,r)),e.ksuid=r=>e.check(ix(mS,r)),e.ipv4=r=>e.check(ax(gS,r)),e.ipv6=r=>e.check(sx(vS,r)),e.cidrv4=r=>e.check(cx(yS,r)),e.cidrv6=r=>e.check(lx(bS,r)),e.e164=r=>e.check(fx(xS,r)),e.datetime=r=>e.check(Vx(r)),e.date=r=>e.check(Yx(r)),e.time=r=>e.check(Hx(r)),e.duration=r=>e.check(Zx(r))});function rr(e){return W_(aS,e)}const Ge=Y("ZodStringFormat",(e,t)=>{Ze.init(e,t),cp.init(e,t)}),sS=Y("ZodEmail",(e,t)=>{e_.init(e,t),Ge.init(e,t)}),lp=Y("ZodGUID",(e,t)=>{Xw.init(e,t),Ge.init(e,t)}),la=Y("ZodUUID",(e,t)=>{Jw.init(e,t),Ge.init(e,t)}),cS=Y("ZodURL",(e,t)=>{t_.init(e,t),Ge.init(e,t)}),lS=Y("ZodEmoji",(e,t)=>{r_.init(e,t),Ge.init(e,t)}),uS=Y("ZodNanoID",(e,t)=>{n_.init(e,t),Ge.init(e,t)}),dS=Y("ZodCUID",(e,t)=>{o_.init(e,t),Ge.init(e,t)}),fS=Y("ZodCUID2",(e,t)=>{i_.init(e,t),Ge.init(e,t)}),pS=Y("ZodULID",(e,t)=>{a_.init(e,t),Ge.init(e,t)}),hS=Y("ZodXID",(e,t)=>{s_.init(e,t),Ge.init(e,t)}),mS=Y("ZodKSUID",(e,t)=>{c_.init(e,t),Ge.init(e,t)}),gS=Y("ZodIPv4",(e,t)=>{p_.init(e,t),Ge.init(e,t)}),vS=Y("ZodIPv6",(e,t)=>{h_.init(e,t),Ge.init(e,t)}),yS=Y("ZodCIDRv4",(e,t)=>{m_.init(e,t),Ge.init(e,t)}),bS=Y("ZodCIDRv6",(e,t)=>{g_.init(e,t),Ge.init(e,t)}),wS=Y("ZodBase64",(e,t)=>{v_.init(e,t),Ge.init(e,t)}),_S=Y("ZodBase64URL",(e,t)=>{b_.init(e,t),Ge.init(e,t)}),xS=Y("ZodE164",(e,t)=>{w_.init(e,t),Ge.init(e,t)}),SS=Y("ZodJWT",(e,t)=>{x_.init(e,t),Ge.init(e,t)}),up=Y("ZodNumber",(e,t)=>{Uf.init(e,t),it.init(e,t),e.gt=(n,o)=>e.check(np(n,o)),e.gte=(n,o)=>e.check(Xs(n,o)),e.min=(n,o)=>e.check(Xs(n,o)),e.lt=(n,o)=>e.check(rp(n,o)),e.lte=(n,o)=>e.check(Qs(n,o)),e.max=(n,o)=>e.check(Qs(n,o)),e.int=n=>e.check(fp(n)),e.safe=n=>e.check(fp(n)),e.positive=n=>e.check(np(0,n)),e.nonnegative=n=>e.check(Xs(0,n)),e.negative=n=>e.check(rp(0,n)),e.nonpositive=n=>e.check(Qs(0,n)),e.multipleOf=(n,o)=>e.check(op(n,o)),e.step=(n,o)=>e.check(op(n,o)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function dp(e){return yx(up,e)}const CS=Y("ZodNumberFormat",(e,t)=>{S_.init(e,t),up.init(e,t)});function fp(e){return bx(CS,e)}const ES=Y("ZodBoolean",(e,t)=>{C_.init(e,t),it.init(e,t)});function Js(e){return wx(ES,e)}const kS=Y("ZodUnknown",(e,t)=>{E_.init(e,t),it.init(e,t)});function pp(){return _x(kS)}const DS=Y("ZodNever",(e,t)=>{k_.init(e,t),it.init(e,t)});function TS(e){return xx(DS,e)}const OS=Y("ZodArray",(e,t)=>{D_.init(e,t),it.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(ca(r,n)),e.nonempty=r=>e.check(ca(1,r)),e.max=(r,n)=>e.check(ip(r,n)),e.length=(r,n)=>e.check(ap(r,n)),e.unwrap=()=>e.element});function MS(e,t){return Ix(OS,e,t)}const PS=Y("ZodObject",(e,t)=>{O_.init(e,t),it.init(e,t),Ye(e,"shape",()=>t.shape),e.keyof=()=>jS(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:pp()}),e.loose=()=>e.clone({...e._zod.def,catchall:pp()}),e.strict=()=>e.clone({...e._zod.def,catchall:TS()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>W2(e,r),e.safeExtend=r=>Z2(e,r),e.merge=r=>q2(e,r),e.pick=r=>U2(e,r),e.omit=r=>H2(e,r),e.partial=(...r)=>K2(hp,e,r[0]),e.required=(...r)=>G2(vp,e,r[0])});function AS(e,t){const r={type:"object",get shape(){return $r(this,"shape",e?z2(e):{}),this.shape},...pe(t)};return new PS(r)}const IS=Y("ZodUnion",(e,t)=>{M_.init(e,t),it.init(e,t),e.options=t.options});function RS(e,t){return new IS({type:"union",options:e,...pe(t)})}const NS=Y("ZodIntersection",(e,t)=>{P_.init(e,t),it.init(e,t)});function $S(e,t){return new NS({type:"intersection",left:e,right:t})}const ec=Y("ZodEnum",(e,t)=>{A_.init(e,t),it.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const a of n)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ec({...t,checks:[],...pe(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const a of n)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ec({...t,checks:[],...pe(o),entries:i})}});function jS(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new ec({type:"enum",entries:r,...pe(t)})}const LS=Y("ZodLiteral",(e,t)=>{I_.init(e,t),it.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function zS(e,t){return new LS({type:"literal",values:Array.isArray(e)?e:[e],...pe(t)})}const BS=Y("ZodTransform",(e,t)=>{R_.init(e,t),it.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Tf(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(So(i,r.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(So(a))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function VS(e){return new BS({type:"transform",transform:e})}const hp=Y("ZodOptional",(e,t)=>{N_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function mp(e){return new hp({type:"optional",innerType:e})}const FS=Y("ZodNullable",(e,t)=>{$_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function gp(e){return new FS({type:"nullable",innerType:e})}const YS=Y("ZodDefault",(e,t)=>{j_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function US(e,t){return new YS({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():If(t)}})}const HS=Y("ZodPrefault",(e,t)=>{L_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function WS(e,t){return new HS({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():If(t)}})}const vp=Y("ZodNonOptional",(e,t)=>{z_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ZS(e,t){return new vp({type:"nonoptional",innerType:e,...pe(t)})}const qS=Y("ZodCatch",(e,t)=>{B_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function KS(e,t){return new qS({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const GS=Y("ZodPipe",(e,t)=>{V_.init(e,t),it.init(e,t),e.in=t.in,e.out=t.out});function yp(e,t){return new GS({type:"pipe",in:e,out:t})}const QS=Y("ZodReadonly",(e,t)=>{F_.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function XS(e){return new QS({type:"readonly",innerType:e})}const JS=Y("ZodCustom",(e,t)=>{Y_.init(e,t),it.init(e,t)});function eC(e,t={}){return Rx(JS,e,t)}function tC(e){return Nx(e)}const bp=/^([01][0-9]|2[0-3]):[0-5][0-9]$/,rC=AS({titulo:rr().min(1,"El campo Título es requerido."),fechaInicio:rr().min(1,"El campo fecha inicio es requerido."),horaInicio:rr().min(1,"La hora de inicio es requerida.").regex(bp,{message:"Formato inválido"}),horaFin:rr().min(1,"La hora fin es requerida.").regex(bp,{message:"Formato inválido"}),todoElDia:Js(),fechaFin:rr().optional(),showEndDate:Js().optional(),horaInicio2:rr().optional(),TodoElDia2:Js().optional(),client:rr().optional().nullable(),repetir:rr().optional(),link:rr().url("Debe ser una URL válida ejemplo https://www.google.com.").or(zS("")).optional(),descripcion:rr().optional(),color:rr().optional(),solID:dp().optional().nullable(),disID:dp().optional().nullable()}).refine(e=>e.showEndDate?e.fechaFin&&e.fechaFin.length>0:!0,{message:"La fecha de fin es requerida.",path:["fechaFin"]}).refine(e=>e.fechaFin!==void 0?!!e.fechaFin&&!!e.horaInicio2:!0,{message:"La hora de fin son requeridas.",path:["horaInicio2"]}),wp=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("path",{fill:"#333",d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12"}),$.createElement("path",{fill:"#fff",d:"M16.703 7.275c.52.52.541 1.345.046 1.84l-2.874 2.874 2.874 2.873c.495.496.475 1.32-.046 1.841-.52.52-1.344.54-1.84.045l-2.873-2.873-2.874 2.873c-.496.496-1.32.475-1.84-.045-.521-.521-.541-1.345-.046-1.84l2.874-2.874L7.23 9.116c-.495-.496-.475-1.32.045-1.84.521-.521 1.345-.542 1.841-.046l2.874 2.873 2.873-2.873c.496-.496 1.32-.476 1.84.045"})),nC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M7.288%2022.986h-.147a6.2%206.2%200%200%201-4.28-1.85c-2.404-2.404-2.478-6.24-.16-8.557L4.28%2011a1.228%201.228%200%201%201%201.739%201.739L4.44%2014.317c-1.356%201.357-1.282%203.626.16%205.068a3.82%203.82%200%200%200%202.602%201.135c.95%200%201.825-.32%202.479-.974l1.578-1.579a1.23%201.23%200%200%201%201.739%200c.48.481.48%201.258%200%201.739l-1.579%201.578c-1.097%201.098-2.552%201.69-4.13%201.69zM17.98%2012.998a1.23%201.23%200%200%201%200-1.739l1.578-1.578c.654-.654.986-1.53.974-2.466a3.78%203.78%200%200%200-1.134-2.602c-1.443-1.443-3.712-1.517-5.068-.16L12.75%206.03c-.48.48-1.258.48-1.739%200a1.23%201.23%200%200%201%200-1.739l1.579-1.578c2.318-2.319%206.153-2.245%208.558.16a6.23%206.23%200%200%201%201.85%204.279%205.84%205.84%200%200%201-1.69%204.279l-1.578%201.578c-.481.481-1.258.481-1.74%200z'/%3e%3cpath%20d='M14.172%208.11%208.07%2014.214a1.233%201.233%200%200%200%201.743%201.744l6.104-6.104a1.233%201.233%200%201%200-1.744-1.744'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",oC=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("g",{clipPath:"url(#a)"},$.createElement("path",{fill:"#404756",d:"M21.24 5.72a2.98 2.98 0 0 0-2.97-2.96l-5.19-.06c-1.06-.03-2.12.41-2.87 1.17l-7.49 7.49c-.66.66-1.03 1.54-1.03 2.47s.36 1.81 1.03 2.47l4.97 4.97a3.5 3.5 0 0 0 2.47 1.02c.89 0 1.79-.34 2.47-1.02l7.49-7.49c.76-.76 1.18-1.81 1.17-2.88l-.06-5.19zm-4.2 4.43c-.44.44-1.02.66-1.6.66a2.256 2.256 0 1 1 0-4.51 2.256 2.256 0 0 1 1.6 3.85"})),$.createElement("defs",null,$.createElement("clipPath",{id:"a"},$.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),iC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23404756'%20d='M13.17%2013.68c2.06%200%204%20.8%205.46%202.27a7.7%207.7%200%200%201%202.26%205.47c0%20.79-.64%201.43-1.43%201.43l.01-.01H4.53c-.79%200-1.43-.64-1.43-1.43%200-4.27%203.46-7.73%207.72-7.73zM12%201.9c2.82%200%205.11%202.29%205.11%205.11s-2.29%205.11-5.11%205.11v-.01c-2.82%200-5.11-2.29-5.11-5.11S9.18%201.9%2012%201.9'/%3e%3c/svg%3e",aC=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("g",{fill:"#2571D6",clipPath:"url(#a)"},$.createElement("path",{d:"M13.085 7.331a1.096 1.096 0 1 0-2.192 0v9.316a1.096 1.096 0 0 0 2.192 0z"}),$.createElement("path",{d:"M16.647 10.893H7.33a1.096 1.096 0 1 0 0 2.192h9.316a1.096 1.096 0 0 0 0-2.192"}),$.createElement("path",{d:"M12 24C5.38 24 0 18.608 0 12S5.38 0 12 0s12 5.38 12 12-5.38 12-12 12m0-21.808c-5.414 0-9.808 4.394-9.808 9.808S6.586 21.808 12 21.808s9.808-4.394 9.808-9.808S17.403 2.192 12 2.192"})),$.createElement("defs",null,$.createElement("clipPath",{id:"a"},$.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),sC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cg%20fill='%23404756'%20clip-path='url(%23a)'%3e%3cpath%20d='M13.789%2017H3.21C2.542%2017%202%2017.56%202%2018.25s.542%201.25%201.211%201.25H13.79c.669%200%201.211-.56%201.211-1.25S14.458%2017%2013.789%2017M20.718%204H3.282C2.574%204%202%204.56%202%205.25S2.574%206.5%203.282%206.5h17.436C21.426%206.5%2022%205.94%2022%205.25S21.426%204%2020.718%204M20.718%2010.5H3.282C2.574%2010.5%202%2011.06%202%2011.75S2.574%2013%203.282%2013h17.436c.708%200%201.282-.56%201.282-1.25s-.574-1.25-1.282-1.25'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h24v24H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",cC=e=>$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},$.createElement("path",{fill:"#2571D6",fillRule:"evenodd",d:"M17.333 11a6.34 6.34 0 0 1 6.334 6.333 6.34 6.34 0 0 1-6.334 6.334c-3.493 0-6.333-2.846-6.333-6.334A6.343 6.343 0 0 1 17.333 11m-.005 2.37c-.437 0-.79.338-.79.754v2.412h-2.414c-.416 0-.754.355-.754.792s.338.792.754.792h2.413v2.412c0 .416.354.754.791.754s.792-.338.792-.754V18.12h2.413c.416 0 .754-.355.754-.792s-.338-.792-.754-.792H18.12v-2.412c0-.416-.355-.754-.792-.754",clipRule:"evenodd"}),$.createElement("path",{fill:"#2571D6",d:"M11.12 12.297a7.97 7.97 0 0 0-1.787 5.036c0 1.763.571 3.392 1.537 4.714H3.044c-.84 0-1.523-.682-1.523-1.523 0-4.544 3.683-8.227 8.217-8.227zM10.995.139c2.925 0 5.3 2.376 5.3 5.3s-2.376 5.3-5.3 5.3v-.01a5.303 5.303 0 0 1-5.3-5.3 5.295 5.295 0 0 1 5.3-5.29"})),_p=qt(h.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),tc=qt(h.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),lC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:{xs:"90%",sm:450,md:500},bgcolor:"background.paper",boxShadow:24,p:{xs:2,sm:3},borderRadius:2,maxHeight:"90vh",overflowY:"auto"},rc=["#dbe3fe","#fcebc7","#d9f1d2","#fdf5d1","#ebe3d7","#e1d6fb","#f7c7cc","#f9e7fb","#eaedf2","#d5d8dd"],xp=(()=>{const e=[];for(let t=0;t<24;t++)for(let r=0;r<60;r+=15){const n=t.toString().padStart(2,"0"),o=r.toString().padStart(2,"0");e.push(`${n}:${o}`)}return e})(),uC=({isVisible:e,onClose:t,onSave:r,onDelete:n,selectedDate:o,initialEvent:i,userId:a,masNombreBD:s,disId:c})=>{const[l,u]=x.useState(!1),[d,f]=x.useState(!1),m=w.format(new Date,"yyyy-MM-dd"),[g,p]=x.useState(""),[y,S]=x.useState([]),[C,k]=x.useState(!1),E=Ps(),[_,O]=x.useState([]),{control:R,handleSubmit:q,reset:Z,formState:{errors:j},watch:K,setValue:v}=N2({resolver:zx(rC),defaultValues:{titulo:"",fechaInicio:w.format(new Date,"yyyy-MM-dd"),horaInicio:w.format(new Date,"HH:mm"),horaFin:w.format(w.addHours(new Date,1),"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:rc[5],solID:null}}),A=K("fechaInicio"),P=K("fechaFin"),H=K("todoElDia");x.useEffect(()=>{if(g.trim()===""||!a||!c||!s){S([]);return}k(!0);const V=setTimeout(()=>{E.getClients(g,c,s,a).then(Q=>{k(!1);const L=Array.from(new Map(Q.map(U=>[U.nombreCliente,U])).values());if(L)S(L);else if(i?.client&&i.solID!==null){const U=[{solID:i.solID,nombreCliente:i.client}];S(U)}else S([])}).catch(Q=>{console.error("Error al buscar clientes:",Q),k(!1)})},500);return()=>clearTimeout(V)},[g,a,c,s]),x.useEffect(()=>{if(A&&P){const V=new Date(A),Q=new Date(P);(V===Q||V>Q)&&v("fechaFin",A)}},[A,P,v]),x.useEffect(()=>{A&&v("fechaFin",A)},[A]),x.useEffect(()=>{v("showEndDate",l)},[l,v]),x.useEffect(()=>{if(i){const V=w.format(i.fechaInicio,"yyyy-MM-dd")===w.format(i.fechaFin,"yyyy-MM-dd");u(!V),v("titulo",i?.titulo),v("fechaInicio",w.format(i.fechaInicio,"yyyy-MM-dd")),v("fechaFin",w.format(i.fechaFin,"yyyy-MM-dd")),v("horaInicio",w.format(i.fechaInicio,"HH:mm")),v("horaFin",w.format(i.fechaFin,"HH:mm")),v("horaInicio2",w.format(i.fechaFin,"HH:mm")),v("descripcion",i.descripcion),v("link",i.link),v("repetir",i.repetir),v("color",i.color),v("todoElDia",i.todoElDia),v("solID",i.solID),v("client",i.client),i.solID?f(!0):f(!1)}else{const V=o||new Date,Q=new Date,L=new Date(V.getFullYear(),V.getMonth(),V.getDate(),Q.getHours(),Q.getMinutes()),U=w.addHours(L,1);Z({titulo:"",fechaInicio:w.format(L,"yyyy-MM-dd"),horaInicio:w.format(L,"HH:mm"),fechaFin:w.format(U,"yyyy-MM-dd"),horaFin:w.format(U,"HH:mm"),horaInicio2:w.format(U,"HH:mm"),todoElDia:!1,client:"",repetir:"No repetir",link:"",descripcion:"",color:rc[5],solID:null}),u(!1),f(!1)}},[i,e,o]);const W=q(V=>{r(V,i?.eventoID),t(),Z(),u(!1)},V=>{console.log("Errores de validación:",V)});x.useEffect(()=>{H&&(v("horaInicio","00:00"),v("horaFin","23:59"))},[H,v,K]);const J=()=>{const V=K("fechaInicio");if(V){const Q=new Date(`${V}T00:00:00`),L=w.addDays(Q,1);v("fechaFin",w.format(L,"yyyy-MM-dd"))}u(!0)};return h.jsx(N.Modal,{open:e,onClose:t,children:h.jsxs(N.Box,{sx:lC,children:[h.jsx(N.IconButton,{"aria-label":"close",onClick:t,sx:{position:"absolute",right:8,top:12},children:h.jsx(tc,{})}),h.jsx(N.Typography,{variant:"h6",mb:2,children:i?"Editar evento":"Agregar evento"}),h.jsxs(N.Grid,{container:!0,spacing:1,marginBottom:l?0:1,children:[h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"titulo",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,label:"Título",fullWidth:!0,variant:"outlined",size:"small",error:!!j.titulo,helperText:j.titulo?.message,inputProps:{maxLength:100},sx:{"& .MuiInputLabel-root.Mui-focused":{color:"black"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"black"},"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(N.Divider,{})}),h.jsx(N.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"fechaInicio",control:R,render:({field:V})=>h.jsx(N.TextField,{fullWidth:!0,...V,type:"date",placeholder:"Fecha de inicio",size:"small",InputLabelProps:{shrink:!0},error:!!j.fechaInicio,helperText:j.fechaInicio?.message})})}),l?h.jsxs(h.Fragment,{children:[h.jsx(N.Grid,{size:{xs:1,md:3},sx:{display:{xs:"none",sm:"block"}}}),h.jsx(N.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"fechaFin",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,type:"date",placeholder:"Fecha de fin",fullWidth:!!l,size:"small",InputLabelProps:{shrink:!0},inputProps:{min:A||m},error:!!j.fechaFin,helperText:j.fechaFin?.message})})}),!i&&h.jsx(N.Grid,{size:{xs:1,md:1},children:h.jsx(N.IconButton,{onClick:()=>u(!1),sx:{fontSize:18},children:h.jsx(wp,{})})})]}):h.jsx(N.Grid,{size:{xs:12,md:7}})]}),l&&h.jsx(h.Fragment,{children:h.jsxs(N.Grid,{container:!0,spacing:0,sx:{margin:0,padding:0,width:"100%"},children:[h.jsx(N.Grid,{size:{xs:6,md:5}}),h.jsx(N.Grid,{size:{xs:12,md:6},sx:{margin:0,padding:0,width:"100%",display:{xs:"none",sm:"block"}},children:h.jsx(_p,{sx:{color:"#757575",margin:0,padding:0}})})]})}),h.jsxs(N.Grid,{container:!0,spacing:1,marginBottom:1,marginTop:1,children:[h.jsx(N.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaInicio",control:R,render:({field:{onChange:V,value:Q,...L}})=>h.jsx(N.Autocomplete,{freeSolo:!0,options:xp,value:Q||"",onChange:(U,ce)=>V(ce||""),onInputChange:(U,ce)=>V(ce),renderInput:U=>h.jsx(N.TextField,{...U,...L,size:"small",error:!!j.horaInicio,helperText:j.horaInicio?.message,InputProps:{...U.InputProps,endAdornment:h.jsx(N.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(ef,{})})}}),disabled:K("todoElDia")})})}),h.jsx(N.Grid,{size:{xs:1,md:1},sx:{display:"flex",alignItems:j.horaInicio?"start":"center",marginTop:j.horaInicio?"5px":"0px"},children:!l&&h.jsx(_p,{sx:{color:"#757575"}})}),l&&h.jsx(N.Grid,{size:{xs:2,md:2}}),h.jsx(N.Grid,{size:{xs:12,md:4},children:h.jsx(er,{name:"horaFin",control:R,render:({field:{onChange:V,value:Q,...L}})=>h.jsx(N.Autocomplete,{freeSolo:!0,options:xp,value:Q||"",onChange:(U,ce)=>V(ce||""),onInputChange:(U,ce)=>V(ce),renderInput:U=>h.jsx(N.TextField,{...U,...L,size:"small",error:!!j.horaFin,helperText:j.horaFin?.message,InputProps:{...U.InputProps,endAdornment:h.jsx(N.InputAdornment,{position:"end",sx:{position:"absolute",right:"10px"},children:h.jsx(ef,{})})}}),disabled:K("todoElDia")})})}),h.jsx(N.Grid,{size:{xs:12,md:3},hidden:l,children:h.jsx(er,{name:"todoElDia",control:R,render:({field:V})=>h.jsx(N.FormControlLabel,{control:h.jsx(N.Checkbox,{checked:V.value,onChange:Q=>V.onChange(Q.target.checked)}),label:h.jsx("label",{style:{fontSize:"0.7rem",fontWeight:"normal"},children:"Todo el día"}),sx:{whiteSpace:"nowrap"}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:!l&&h.jsx(h.Fragment,{children:h.jsxs(N.Button,{onClick:J,size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(aC,{}),"  Agregar fecha final"]})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(N.Divider,{})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:!d&&h.jsxs(N.Button,{onClick:()=>f(!0),size:"small",sx:{textTransform:"none",fontSize:16},children:[h.jsx(cC,{}),"  Vincular cliente"]})}),d&&h.jsxs(h.Fragment,{children:[h.jsx(N.Grid,{size:{xs:12,md:7},children:h.jsx(er,{name:"client",control:R,render:({field:V})=>h.jsx(N.Autocomplete,{options:y,loading:C,getOptionLabel:Q=>Q.nombreCliente?.trim()||"",value:y.find(Q=>Q.nombreCliente===V.value)||(V.value&&typeof V.value=="string"?{solID:-1,nombreCliente:V.value}:null),noOptionsText:"",onInputChange:(Q,L)=>{p(L)},onChange:(Q,L)=>{if(V.onChange(L?L.nombreCliente:""),v("solID",L?L.solID:null),L&&L.nombreCliente){const U=y.filter(ce=>ce.nombreCliente===L.nombreCliente&&ce.solID).map(ce=>ce.solID);O([...new Set(U)])}else O([])},renderInput:Q=>h.jsx(N.TextField,{...Q,placeholder:"Buscar cliente...",size:"small",InputProps:{...Q.InputProps,startAdornment:h.jsx("img",{src:iC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"5px"}}),endAdornment:h.jsxs(h.Fragment,{children:[C?h.jsx(N.CircularProgress,{color:"inherit",size:20}):null,Q.InputProps.endAdornment]})}})})})}),h.jsx(N.Grid,{size:{xs:11,md:4},children:h.jsx(er,{name:"solID",control:R,render:({field:V})=>h.jsx(N.Autocomplete,{options:_,getOptionLabel:Q=>Q.toString(),value:V.value??null,onChange:(Q,L)=>V.onChange(L),renderInput:Q=>h.jsx(N.TextField,{...Q,label:"#Registro",variant:"outlined",size:"small",sx:{"& .MuiInputLabel-root":{backgroundColor:"transparent !important",padding:"0 !important"}}}),disabled:!y})})}),h.jsx(N.Grid,{size:{xs:1,md:1},children:h.jsx(N.IconButton,{onClick:()=>f(!1),sx:{fontSize:18},children:h.jsx(wp,{})})})]}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(N.Divider,{})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"link",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,placeholder:" Agregar enlace de reunión",fullWidth:!0,variant:"outlined",size:"small",error:!!j.link,helperText:j.link?.message,InputProps:{startAdornment:h.jsx("img",{src:nC,width:20,style:{alignSelf:"flex-start",marginRight:"8px",marginTop:"8px"}})}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsx(er,{name:"descripcion",control:R,render:({field:V})=>h.jsx(N.TextField,{...V,placeholder:" Agregar descripción aquí...",fullWidth:!0,multiline:!0,rows:3,inputProps:{maxLength:500},variant:"outlined",size:"small",InputProps:{startAdornment:h.jsx("img",{src:sC,width:20,style:{alignSelf:"flex-start",marginRight:"8px"}})}})})}),h.jsx(N.Grid,{size:{xs:12,md:12},children:h.jsxs(N.Box,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap"},children:[h.jsx(oC,{}),rc.map(V=>h.jsx(er,{name:"color",control:R,render:({field:Q})=>h.jsx(N.IconButton,{onClick:()=>Q.onChange(V),sx:{width:24,height:24,borderRadius:"50%",bgcolor:V,border:Q.value===V?"2px solid":"none",borderColor:Q.value===V?"primary.main":"transparent"}})},V))]})})]}),h.jsxs(N.Box,{sx:{display:"flex",justifyContent:"flex-end",mt:3,gap:2},children:[i&&h.jsx(N.Button,{onClick:n,variant:"outlined",color:"error",children:"Eliminar"}),h.jsx(N.Button,{onClick:t,variant:"outlined",sx:{textTransform:"none"},children:"Cancelar"}),h.jsx(N.Button,{onClick:W,variant:"contained",sx:{textTransform:"none"},children:"Guardar"})]})]})})},dC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='49'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M34.559%2048.077c-7.413%200-13.44-6.039-13.44-13.44s6.027-13.44%2013.44-13.44%2013.44%206.027%2013.44%2013.44c0%207.414-6.027%2013.44-13.44%2013.44'/%3e%3cpath%20fill='%23fff'%20d='M39.827%2029.346c.583.583.605%201.505.05%202.06l-3.218%203.219%203.219%203.218c.555.556.532%201.48-.051%202.062-.584.583-1.506.605-2.062.05l-3.218-3.218-3.218%203.218c-.556.555-1.478.533-2.061-.05s-.606-1.506-.05-2.062l3.217-3.218-3.218-3.218c-.555-.555-.533-1.478.05-2.061.583-.584%201.507-.606%202.063-.05l3.217%203.217%203.218-3.218c.556-.555%201.478-.533%202.062.05'/%3e%3cpath%20fill='%23404756'%20d='M30.367.078c1.112%200%202.001.868%202.001%201.954v1.195h.979c4.913%200%208.892%203.887%208.892%208.686v9.237a15.4%2015.4%200%200%200-4.424-1.691v-1.312H4.468V33.63c0%202.389%202%204.343%204.446%204.343H19.4a15.4%2015.4%200%200%200%201.676%204.343H8.892C3.979%2042.317%200%2038.43%200%2033.631V11.913c0-4.8%203.979-8.686%208.892-8.686h1V2.032c0-1.086.89-1.954%202.002-1.954s2%20.868%202%201.954v1.195h14.473V2.032c0-1.085.889-1.954%202-1.954'/%3e%3c/svg%3e",fC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4,borderRadius:2,textAlign:"center"},pC=({isOpen:e,onClose:t,onConfirm:r,title:n,message:o})=>h.jsx(N.Modal,{open:e,onClose:t,children:h.jsxs(N.Box,{sx:fC,children:[h.jsx("img",{src:dC}),h.jsx(N.Typography,{variant:"h6",component:"h2",sx:{mt:1},children:n}),h.jsx(N.Typography,{sx:{mt:2},children:o}),h.jsxs(N.Box,{sx:{mt:4,display:"flex",justifyContent:"center",gap:2},children:[h.jsx(N.Button,{variant:"outlined",onClick:t,sx:{textTransform:"none"},children:"Regresar"}),h.jsxs(N.Button,{variant:"contained",color:"error",onClick:r,sx:{textTransform:"none"},children:[h.jsx("span",{className:"icon-eliminar",children:"  "})," Eliminar"]})]})]})}),hC={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:450,bgcolor:"background.paper",boxShadow:24,p:2,borderRadius:2},mC=({isOpen:e,onClose:t,events:r,date:n,onEventClick:o})=>{if(!n)return null;const i=a=>{o(a),t()};return h.jsx(N.Modal,{open:e,onClose:t,children:h.jsxs(N.Box,{sx:hC,children:[h.jsxs(N.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1},children:[h.jsxs(N.Typography,{sx:{fontSize:"20px"},component:"h2",children:["Eventos del"," ",n.toLocaleDateString("es-ES",{weekday:"long",day:"numeric",month:"long"})]}),h.jsx(N.IconButton,{onClick:t,children:h.jsx(tc,{})})]}),h.jsx(N.Divider,{}),h.jsx(N.List,{children:r.map(a=>h.jsx(N.ListItem,{disablePadding:!0,children:h.jsxs(N.ListItemButton,{onClick:()=>i(a),sx:{py:.5},children:[h.jsx(N.Box,{sx:{width:"15px",height:"15px",borderRadius:"50%",backgroundColor:a.color||"#ccc",mr:2,flexShrink:0,minWidth:"10px"}}),h.jsx(N.ListItemText,{primary:a.titulo,secondary:`${w.format(a.fechaInicio,"HH:mm")} - ${w.format(a.fechaFin,"HH:mm")}`,sx:{my:0,"& .MuiListItemText-primary":{display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},"& .MuiListItemText-secondary":{display:"-webkit-box",WebkitLineClamp:1,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px"}}})]})},a.eventoID))})]})})},gC=qt(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error"),vC=qt(h.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"}),"Info"),yC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23E40B1C'%20d='M20.36%204.14H16c0-1.65-1.35-3-3-3h-2c-1.65%200-3%201.35-3%203H3.64c-.55%200-1%20.45-1%201s.45%201%201%201h1.04l.84%2013.91a3%203%200%200%200%202.99%202.82h6.98c1.58%200%202.9-1.24%203-2.82l.84-13.91h1.04c.55%200%201-.45%201-1s-.45-1-1-1zm-9.36-1h2c.55%200%201%20.45%201%201h-4c0-.55.45-1%201-1m-.39%2014.9c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201zm4.78%200c0%20.55-.45%201-1%201s-1-.45-1-1V9.99c0-.55.45-1%201-1s1%20.45%201%201z'/%3e%3c/svg%3e",bC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M19.378%204.405a1.813%201.813%200%201%201%202.565%202.565L9.571%2019.342a1.813%201.813%200%200%201-2.565%200l-4.949-4.949a1.814%201.814%200%200%201%202.428-2.69l.137.126%203.666%203.666z'/%3e%3c/svg%3e",Sp=x.forwardRef(({id:e,message:t,variant:r},n)=>{const{closeSnackbar:o}=ga.useSnackbar(),i={success:{color:"#fff",icon:h.jsx("img",{width:25,src:bC,style:{borderRadius:"50%",backgroundColor:"#4caf50",color:"white",fontSize:"12px",padding:3}})},error:{color:"#f44336",icon:h.jsx(gC,{sx:{color:"#f44336"}})},info:{color:"#2196f3",icon:h.jsx(vC,{sx:{color:"#2196f3"}})},delete:{color:"#fff",icon:h.jsx("img",{src:yC,width:25,style:{borderRadius:"50%",backgroundColor:"#ffdfd4",color:"red",fontSize:"16px",padding:3}})}},a=i[r]||i.info;return h.jsx(ga.SnackbarContent,{ref:n,children:h.jsxs(N.Box,{sx:{backgroundColor:"white",color:"#333",padding:"8px 16px",borderRadius:"8px",boxShadow:"0 3px 10px rgba(0,0,0,0.2)",display:"flex",alignItems:"center",width:{xs:"90%",sm:"auto"},minWidth:"300px",borderLeft:`5px solid ${a.color}`},children:[h.jsx(N.Box,{sx:{mr:1.5},children:a.icon}),h.jsx(N.Typography,{variant:"body2",sx:{flexGrow:1},children:t}),h.jsx(N.IconButton,{size:"small",onClick:()=>o(e),children:h.jsx(tc,{fontSize:"small"})})]})})}),wC=({userId:e,leads30Days:t,leads90Days:r,disId:n,masNombreBD:o})=>{const[i,a]=x.useState(new Date),[s,c]=x.useState([]),[l,u]=x.useState(!1),[d,f]=x.useState(null),[m,g]=x.useState(!1),[p,y]=x.useState(null),[S,C]=x.useState([]),{enqueueSnackbar:k}=ga.useSnackbar(),E=Ps(),[_,O]=x.useState(!1),[R,q]=x.useState([]),[Z,j]=x.useState(null),K=(ee,G)=>{q(ee),j(G),O(!0)},v=x.useRef(null);x.useEffect(()=>{const ee=async()=>{try{if(e){const G=await E.getEventsByUser(e);c(G)}}catch{console.log("No se pudieron cargar los eventos. Revisa la consola para más detalles.")}finally{console.log("Eventos han sido cargados")}};return ee(),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{console.log("Iniciando recarga programada de eventos (2 segundos después del inicio)..."),ee()},4e3),()=>{v.current&&clearTimeout(v.current)}},[i,e]),x.useEffect(()=>{const ee=new Date,G=w.startOfDay(ee),se=w.endOfDay(w.addDays(G,6)),le={start:G,end:se},me=s.filter(ue=>{const Te={start:ue.fechaInicio,end:ue.fechaFin};return nd(Te,le)}).sort((ue,Te)=>ue.fechaInicio.getTime()-Te.fechaInicio.getTime());C(me)},[s]);const A=async ee=>{try{const G=await E.getEventById(ee.eventoID);f(G),u(!0)}catch(G){console.error(G)}},P=()=>{u(!1),f(null)},H=async(ee,G)=>{let se,le;ee.todoElDia?(se=new Date(`${ee.fechaInicio}T${ee.horaInicio}`),le=new Date(`${ee.fechaInicio}T${ee.horaFin}`)):(se=new Date(`${ee.fechaInicio}T${ee.horaInicio}`),le=ee.fechaFin&&ee.horaInicio2?new Date(`${ee.fechaFin}T${ee.horaInicio2}`):new Date(`${ee.fechaInicio}T${ee.horaInicio2}`));const me=w.format(se,"yyyy-MM-dd HH:mm:ss.SSS"),ue=w.format(le,"yyyy-MM-dd HH:mm:ss.SSS");if(G){const B={...ee,eventoID:G,fechaInicio:me,fechaFin:ue,solID:ee.solID??null,disID:n??null,client:ee.client};try{const Ve=await E.updateEvent(B);var Te=s.map(Qe=>Qe.eventoID===Ve.eventoID?Ve:Qe);c(Te),k("El evento se ha actualizado correctamente.",{variant:"success"}),P()}catch{k("Error al eliactualizar Evento",{variant:"error"})}}else{const B={...ee,fechaInicio:me,fechaFin:ue,todoElDia:ee.todoElDia,solID:ee.solID??null,disID:n??null,client:ee.client};try{const Ve=await E.createEvent(B,e);c(Qe=>[...Qe,Ve]),k("El evento se ha creado con éxito",{variant:"success"}),P()}catch{k("Error al guardar Evento",{variant:"error"})}}if(e){const B=await E.getEventsByUser(e);c(B)}},W=()=>{a(ee=>new Date(ee.getFullYear(),ee.getMonth()-1,1))},J=()=>{a(ee=>new Date(ee.getFullYear(),ee.getMonth()+1,1))},V=()=>{g(!0)},Q=()=>{y(new Date),u(!0)},L=()=>alert("Sincronizar con Google Calendar"),U=()=>alert("Sincronizar con Outlook Calendar"),ce=ee=>{ee&&a(ee)},ge=ee=>{y(ee),u(!0),f(null)},he=async()=>{if(d)try{await E.deleteEvent(d.eventoID),c(s.filter(ee=>ee.eventoID!==d.eventoID)),k("El evento se ha eliminado de tu calendario",{content:(ee,G)=>h.jsx(Sp,{id:ee,message:String(G),variant:"delete"})})}catch{k("Error al eliminar Evento",{variant:"error"})}finally{P(),g(!1)}};return h.jsxs("div",{id:"Agenda",style:{height:"100%",width:"100%"},children:[h.jsx(I0,{header:h.jsx(Jy,{currentDate:i,onPrevMonth:W,onNextMonth:J,onAddEvent:Q,onDateChange:ce}),sidebar:h.jsx(Nb,{onEventClick:A,upcomingEvents:S,onSyncGoogle:L,onSyncOutlook:U,leads30Days:t,leads90Days:r}),mainContent:h.jsx(Ub,{onSeeMoreClick:K,currentDate:i,events:s,onDayClick:ge,onEventClick:A})}),h.jsx(uC,{isVisible:l,onClose:P,onSave:H,onDelete:V,selectedDate:p,initialEvent:d,userId:e,masNombreBD:o,disId:n}),h.jsx(pC,{isOpen:m,onClose:()=>g(!1),onConfirm:he,title:"Eliminar evento",message:"¿De verdad deseas eliminar este evento? Esta acción no se puede deshacer."}),h.jsx(mC,{isOpen:_,onClose:()=>O(!1),events:R,date:Z,onEventClick:A})]})},_C="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='22'%20height='22'%3e%3cpath%20fill='%23070c10'%20d='M18.575%203.172A10.829%2010.829%200%200%200%201.564%2016.284l-.028-.051L0%2021.843l5.739-1.506a10.7%2010.7%200%200%200%205.173%201.318%2010.83%2010.83%200%200%200%207.663-18.483m-7.658%2016.655a8.94%208.94%200%200%201-4.62-1.277l.041.023-.329-.194-3.405.894.908-3.321-.214-.34a8.9%208.9%200%200%201-1.376-4.782%209%209%200%201%201%209%209Zm4.935-6.736c-.27-.135-1.6-.789-1.848-.88s-.429-.135-.61.136-.7.879-.856%201.06-.316.2-.586.068a7.5%207.5%200%200%201-2.183-1.349l.007.007a8.2%208.2%200%200%201-1.483-1.842l-.02-.038c-.157-.27-.017-.417.118-.551s.271-.316.406-.473a1.9%201.9%200%200%200%20.267-.44v-.012a.5.5%200%200%200%20.05-.216.5.5%200%200%200-.074-.26c-.068-.135-.609-1.467-.834-2.009s-.444-.455-.609-.464-.338-.009-.519-.009a.99.99%200%200%200-.72.337%203.03%203.03%200%200%200-.947%202.2v.058a5.27%205.27%200%200%200%201.114%202.815v-.011a12.16%2012.16%200%200%200%204.553%204.053l.068.031a14%2014%200%200%200%201.434.539l.109.03a3.6%203.6%200%200%200%201.077.161%203.7%203.7%200%200%200%20.648-.057h-.023a2.8%202.8%200%200%200%201.819-1.274l.007-.012a2.2%202.2%200%200%200%20.19-.9%202.3%202.3%200%200%200-.034-.395v.014c-.067-.113-.248-.18-.519-.316Z'/%3e%3c/svg%3e",xC="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='25.085'%20height='18.5'%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='none'%20d='M0%200h25.085v18.5H0z'%20data-name='Rectángulo%204598'/%3e%3c/clipPath%3e%3c/defs%3e%3cg%20clip-path='url(%23a)'%20data-name='Grupo%207946'%3e%3cpath%20d='M23.12%205.809V3.226a3.2%203.2%200%200%200-.068-.656l-3.141%202.21a7.8%207.8%200%200%201%203.209%201.032'%20data-name='Trazado%2013329'/%3e%3cpath%20d='M11.847%209.791c-.1.009-.2.023-.308.023a3.78%203.78%200%200%201-2.18-.688L.067%202.58A3.2%203.2%200%200%200%200%203.227V13.98a3.23%203.23%200%200%200%203.226%203.226h9.611a7.86%207.86%200%200%201-.99-7.414'%20data-name='Trazado%2013330'/%3e%3cpath%20d='M12.478%207.369%2021.92.737A3.2%203.2%200%200%200%2019.894%200H3.226a3.2%203.2%200%200%200-2.031.74l9.4%206.628a1.64%201.64%200%200%200%201.881%200'%20data-name='Trazado%2013331'/%3e%3cpath%20d='M23.356%208.407a5.914%205.914%200%201%200%200%208.364%205.92%205.92%200%200%200%200-8.364m-1.833%204.842a.54.54%200%200%201-1.081%200v-1.164l-2.513%202.516a.54.54%200%200%201-.765-.763l2.515-2.515h-1.167a.54.54%200%201%201%200-1.081h2.471a.54.54%200%200%201%20.54.54Z'%20data-name='Trazado%2013332'/%3e%3c/g%3e%3c/svg%3e";function nc(e,t,r){return e.accessor?e.accessor(t,r):e.field?t?.[e.field]:t?.[e?.key||""]}function SC(e,t){const r=e??"",n=t??"";return r instanceof Date&&n instanceof Date?r.getTime()-n.getTime():typeof r=="number"&&typeof n=="number"?r-n:typeof r=="boolean"&&typeof n=="boolean"?Number(r)-Number(n):String(r).localeCompare(String(n),void 0,{numeric:!0,sensitivity:"base"})}function oc(e,t,r=!0){return typeof e=="function"?e(t):e??r}function CC(e){return e.replace(/[^\d]/g,"")}function EC(e,t){return t}const Cp=qt(h.jsx("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"}),"AttachFileOutlined"),kC=qt(h.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),DC=qt(h.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp"),TC=Et("MuiBox",["root"]),OC=ru(),ic=_g({themeId:Ga,defaultTheme:OC,defaultClassName:TC.root,generateClassName:Pc.generate});process.env.NODE_ENV!=="production"&&(ic.propTypes={children:b.node,component:b.elementType,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object])});function Ep(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ac(e,t){return ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ac(e,t)}function kp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ac(e,t)}const Dp={disabled:!1};var MC=process.env.NODE_ENV!=="production"?b.oneOfType([b.number,b.shape({enter:b.number,exit:b.number,appear:b.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&b.oneOfType([b.string,b.shape({enter:b.string,exit:b.string,active:b.string}),b.shape({enter:b.string,enterDone:b.string,enterActive:b.string,exit:b.string,exitDone:b.string,exitActive:b.string})]);const ua=x.createContext(null);var PC=function(t){return t.scrollTop},Eo="unmounted",rn="exited",nn="entering",In="entered",sc="exiting",Cr=(function(e){kp(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?s?(c=rn,i.appearStatus=nn):c=In:n.unmountOnExit||n.mountOnEnter?c=Eo:c=rn,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Eo?{status:rn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==nn&&a!==In&&(i=nn):(a===nn||a===In)&&(i=sc)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===nn){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this);a&&PC(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rn&&this.setState({status:Eo})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,c=this.props.nodeRef?[s]:[ln.findDOMNode(this),s],l=c[0],u=c[1],d=this.getTimeouts(),f=s?d.appear:d.enter;if(!o&&!a||Dp.disabled){this.safeSetState({status:In},function(){i.props.onEntered(l)});return}this.props.onEnter(l,u),this.safeSetState({status:nn},function(){i.props.onEntering(l,u),i.onTransitionEnd(f,function(){i.safeSetState({status:In},function(){i.props.onEntered(l,u)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:ln.findDOMNode(this);if(!i||Dp.disabled){this.safeSetState({status:rn},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:sc},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:rn},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:ln.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=c[0],u=c[1];this.props.addEndListener(l,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Eo)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Ep(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(ua.Provider,{value:null},typeof a=="function"?a(o,s):x.cloneElement(x.Children.only(a),s))},t})(x.Component);Cr.contextType=ua,Cr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:b.shape({current:typeof Element>"u"?b.any:function(e,t,r,n,o,i){var a=e[t];return b.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:b.oneOfType([b.func.isRequired,b.element.isRequired]).isRequired,in:b.bool,mountOnEnter:b.bool,unmountOnExit:b.bool,appear:b.bool,enter:b.bool,exit:b.bool,timeout:function(t){var r=MC;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:b.func,onEnter:b.func,onEntering:b.func,onEntered:b.func,onExit:b.func,onExiting:b.func,onExited:b.func}:{};function Rn(){}Cr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rn,onEntering:Rn,onEntered:Rn,onExit:Rn,onExiting:Rn,onExited:Rn},Cr.UNMOUNTED=Eo,Cr.EXITED=rn,Cr.ENTERING=nn,Cr.ENTERED=In,Cr.EXITING=sc;function AC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cc(e,t){var r=function(i){return t&&x.isValidElement(i)?t(i):i},n=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function IC(e,t){e=e||{},t=t||{};function r(u){return u in t?t[u]:e[u]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var c in t){if(n[c])for(a=0;a<n[c].length;a++){var l=n[c][a];s[n[c][a]]=r(l)}s[c]=r(c)}for(a=0;a<o.length;a++)s[o[a]]=r(o[a]);return s}function on(e,t,r){return r[t]!=null?r[t]:e.props[t]}function RC(e,t){return cc(e.children,function(r){return x.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:on(r,"appear",e),enter:on(r,"enter",e),exit:on(r,"exit",e)})})}function NC(e,t,r){var n=cc(e.children),o=IC(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(x.isValidElement(a)){var s=i in t,c=i in n,l=t[i],u=x.isValidElement(l)&&!l.props.in;c&&(!s||u)?o[i]=x.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:on(a,"exit",e),enter:on(a,"enter",e)}):!c&&s&&!u?o[i]=x.cloneElement(a,{in:!1}):c&&s&&x.isValidElement(l)&&(o[i]=x.cloneElement(a,{onExited:r.bind(null,a),in:l.props.in,exit:on(a,"exit",e),enter:on(a,"enter",e)}))}}),o}var $C=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},jC={component:"div",childFactory:function(t){return t}},lc=(function(e){kp(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(AC(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,c=i.firstRender;return{children:c?RC(o,s):NC(o,a,s),firstRender:!1}},r.handleExited=function(o,i){var a=cc(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var c=Uo({},s.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=Ep(o,["component","childFactory"]),c=this.state.contextValue,l=$C(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?x.createElement(ua.Provider,{value:c},l):x.createElement(ua.Provider,{value:c},x.createElement(i,s,l))},t})(x.Component);lc.propTypes=process.env.NODE_ENV!=="production"?{component:b.any,children:b.node,appear:b.bool,enter:b.bool,exit:b.bool,childFactory:b.func}:{},lc.defaultProps=jC;const Tp={};function Op(e,t){const r=$.useRef(Tp);return r.current===Tp&&(r.current=e(t)),r}const LC=[];function zC(e){$.useEffect(e,LC)}class uc{static create(){return new uc}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Mp(){const e=Op(uc.create).current;return zC(e.disposeEffect),e}function da(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function BC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function VC(e,t,r,n,o){const i=e[t],a=o||t;if(i==null||typeof window>"u")return null;let s;return typeof i=="function"&&!BC(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${a}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Pp=da(b.elementType,VC);function Ap(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function FC(e){return Ct("MuiCollapse",e)}Et("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const YC=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Lt(n,FC,r)},UC=ut("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(cr(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),HC=ut("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),WC=ut("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),fa=$.forwardRef(function(t,r){const n=Rt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:s="0px",component:c,easing:l,in:u,onEnter:d,onEntered:f,onEntering:m,onExit:g,onExited:p,onExiting:y,orientation:S="vertical",style:C,timeout:k=Kl.standard,TransitionComponent:E=Cr,..._}=n,O={...n,orientation:S,collapsedSize:s},R=YC(O),q=ou(),Z=Mp(),j=$.useRef(null),K=$.useRef(),v=typeof s=="number"?`${s}px`:s,A=S==="horizontal",P=A?"width":"height",H=$.useRef(null),W=Qa(r,H),J=G=>se=>{if(G){const le=H.current;se===void 0?G(le):G(le,se)}},V=()=>j.current?j.current[A?"clientWidth":"clientHeight"]:0,Q=J((G,se)=>{j.current&&A&&(j.current.style.position="absolute"),G.style[P]=v,d&&d(G,se)}),L=J((G,se)=>{const le=V();j.current&&A&&(j.current.style.position="");const{duration:me,easing:ue}=Ap({style:C,timeout:k,easing:l},{mode:"enter"});if(k==="auto"){const Te=q.transitions.getAutoHeightDuration(le);G.style.transitionDuration=`${Te}ms`,K.current=Te}else G.style.transitionDuration=typeof me=="string"?me:`${me}ms`;G.style[P]=`${le}px`,G.style.transitionTimingFunction=ue,m&&m(G,se)}),U=J((G,se)=>{G.style[P]="auto",f&&f(G,se)}),ce=J(G=>{G.style[P]=`${V()}px`,g&&g(G)}),ge=J(p),he=J(G=>{const se=V(),{duration:le,easing:me}=Ap({style:C,timeout:k,easing:l},{mode:"exit"});if(k==="auto"){const ue=q.transitions.getAutoHeightDuration(se);G.style.transitionDuration=`${ue}ms`,K.current=ue}else G.style.transitionDuration=typeof le=="string"?le:`${le}ms`;G.style[P]=v,G.style.transitionTimingFunction=me,y&&y(G)}),ee=G=>{k==="auto"&&Z.start(K.current||0,G),o&&o(H.current,G)};return h.jsx(E,{in:u,onEnter:Q,onEntered:U,onEntering:L,onExit:ce,onExited:ge,onExiting:he,addEndListener:ee,nodeRef:H,timeout:k==="auto"?null:k,..._,children:(G,{ownerState:se,...le})=>h.jsx(UC,{as:c,className:be(R.root,a,{entered:R.entered,exited:!u&&v==="0px"&&R.hidden}[G]),style:{[A?"minWidth":"minHeight"]:v,...C},ref:W,ownerState:{...O,state:G},...le,children:h.jsx(HC,{ownerState:{...O,state:G},className:R.wrapper,ref:j,children:h.jsx(WC,{ownerState:{...O,state:G},className:R.wrapperInner,children:i})})})})});process.env.NODE_ENV!=="production"&&(fa.propTypes={addEndListener:b.func,children:b.node,classes:b.object,className:b.string,collapsedSize:b.oneOfType([b.number,b.string]),component:Pp,easing:b.oneOfType([b.shape({enter:b.string,exit:b.string}),b.string]),in:b.bool,onEnter:b.func,onEntered:b.func,onEntering:b.func,onExit:b.func,onExited:b.func,onExiting:b.func,orientation:b.oneOf(["horizontal","vertical"]),style:b.object,sx:b.oneOfType([b.arrayOf(b.oneOfType([b.func,b.object,b.bool])),b.func,b.object]),timeout:b.oneOfType([b.oneOf(["auto"]),b.number,b.shape({appear:b.number,enter:b.number,exit:b.number})])}),fa&&(fa.muiSupportAuto=!0);function ZC(e){return typeof e.main=="string"}function qC(e,t=[]){if(!ZC(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function dc(e=[]){return([,t])=>t&&qC(t,e)}const KC=b.oneOfType([b.func,b.object]);function Ip(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
189
189
  `))}return!1}class pa{static create(){return new pa}static use(){const t=Op(pa.create).current,[r,n]=$.useState(!1);return t.shouldMount=r,t.setShouldMount=n,$.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=QC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function GC(){return pa.use()}function QC(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function Rp(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:c,timeout:l}=e,[u,d]=$.useState(!1),f=be(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},g=be(r.child,u&&r.childLeaving,n&&r.childPulsate);return!s&&!u&&d(!0),$.useEffect(()=>{if(!s&&c!=null){const p=setTimeout(c,l);return()=>{clearTimeout(p)}}},[c,s,l]),h.jsx("span",{className:f,style:m,children:h.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Rp.propTypes={classes:b.object.isRequired,className:b.string,in:b.bool,onExited:b.func,pulsate:b.bool,rippleSize:b.number,rippleX:b.number,rippleY:b.number,timeout:b.number.isRequired});const Ht=Et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fc=550,XC=80,JC=Kn`
190
190
  0% {
191
191
  transform: scale(0);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "componentes-exagono",
3
3
  "private": false,
4
- "version": "0.1.28",
4
+ "version": "0.1.29",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.es.js",