componentes-exagono 0.1.19 → 0.1.20

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
@@ -10756,7 +10756,7 @@ const pd = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
10756
10756
  eventTitle: Bw,
10757
10757
  eventTime: Uw,
10758
10758
  seeMoreLink: Yw
10759
- }, hd = 22, Hw = 22, Ww = ({ dayNumber: e, date: t, events: r, isToday: n, isCurrentMonth: o, onDayClick: a, onEventClick: i, onSeeMoreClick: s }) => {
10759
+ }, hd = 25, Hw = 22, Ww = ({ dayNumber: e, date: t, events: r, isToday: n, isCurrentMonth: o, onDayClick: a, onEventClick: i, onSeeMoreClick: s }) => {
10760
10760
  const c = [er.dayCell, o ? "" : er.notCurrentMonth, er.CurrentDay].join(" ").trim(), l = Ya(null), [u, d] = Xe(r.length), f = () => {
10761
10761
  a?.(t);
10762
10762
  };
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"}]]),td=Symbol.for("constructDateFrom");function vs(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&td in e?e[td](t):e instanceof Date?new e.constructor(t):new Date(t)}function Nr(e,t){return vs(t||e,e)}function rd(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=cd(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=od(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString: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.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=nd(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=nd(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 id(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[id(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ad(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=de(t);n="#"+ad(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(sd,[3])},tetrad:function(){return this._applyCombination(sd,[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=cd(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 nd(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 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,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 id(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(ld(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 ad(e,t,r,n){var o=[Kt(ld(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 sd(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 cd(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 ld(e){return Math.round(parseFloat(e)*255).toString(16)}function ud(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:ud(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:ud(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 dd="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 rd(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:dd})}),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:dd})}),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(ed,{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(ed,{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"},fd=22,$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/fd);if(S<r.length){const C=Math.floor((y-$b)/fd);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..."]})]})]})},pd={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:pd.weekDaysContainer,children:e.map(t=>h.jsx("div",{className:pd.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 hd(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hb}=Object.prototype,{getPrototypeOf:bs}=Object,{iterator:Ri,toStringTag:md}=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 gd=Xt("ArrayBuffer");function Wb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gd(e.buffer),t}const Zb=$i("string"),kt=$i("function"),vd=$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)&&!(md 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 yd(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,bd=e=>!uo(e)&&e!==Kr;function ws(){const{caseless:e}=bd(this)&&this||{},t={},r=(n,o)=>{const i=e&&yd(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]=hd(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(!vd(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}),wd=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),b1=Xt("RegExp"),_d=(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=>{_d(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[md]==="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),xd=((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||xd,z={isArray:kn,isArrayBuffer:gd,isBuffer:fo,isFormData:t1,isArrayBufferView:Wb,isString:Zb,isNumber:vd,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:wd,hasOwnProp:wd,reduceDescriptors:_d,freezeMethods:w1,toObjectSet:_1,toCamelCase:y1,noop:x1,toFiniteNumber:S1,findKey:yd,global:Kr,isContextDefined:bd,isSpecCompliantForm:C1,toJSONObject:E1,isAsyncFn:k1,isThenable:D1,setImmediate:xd,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 Sd=ye.prototype,Cd={};["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=>{Cd[e]={value:e}}),Object.defineProperties(ye,Cd),Object.defineProperty(Sd,"isAxiosError",{value:!0}),ye.from=(e,t,r,n,o,i)=>{const a=Object.create(Sd);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 Ed(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function kd(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ed(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=Ed(p),S.forEach(function(k,E){!(z.isUndefined(k)||k===null)&&t.append(a===!0?kd([p],E,i):a===null?p:p+"[]",l(k))}),!1}return _s(g)?!0:(t.append(kd(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 Dd(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 Td=xs.prototype;Td.append=function(t,r){this._pairs.push([t,r])},Td.toString=function(t){const r=t?function(n){return t.call(this,n,Dd)}:Dd;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 Od(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 Md{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 Pd={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 Ad(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:Pd,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(Ad(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"}]]),td=Symbol.for("constructDateFrom");function vs(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&td in e?e[td](t):e instanceof Date?new e.constructor(t):new Date(t)}function Nr(e,t){return vs(t||e,e)}function rd(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=cd(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=od(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString: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.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+o+"%)":"hsva("+r+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=nd(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=nd(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 id(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[id(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+ad(this._r,this._g,this._b,this._a),n=r,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=de(t);n="#"+ad(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(sd,[3])},tetrad:function(){return this._applyCombination(sd,[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=cd(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 nd(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 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,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 id(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(ld(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 ad(e,t,r,n){var o=[Kt(ld(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 sd(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 cd(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 ld(e){return Math.round(parseFloat(e)*255).toString(16)}function ud(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:ud(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:ud(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 dd="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 rd(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:dd})}),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:dd})}),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(ed,{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(ed,{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"},fd=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/fd);if(S<r.length){const C=Math.floor((y-$b)/fd);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..."]})]})]})},pd={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:pd.weekDaysContainer,children:e.map(t=>h.jsx("div",{className:pd.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 hd(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hb}=Object.prototype,{getPrototypeOf:bs}=Object,{iterator:Ri,toStringTag:md}=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 gd=Xt("ArrayBuffer");function Wb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gd(e.buffer),t}const Zb=$i("string"),kt=$i("function"),vd=$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)&&!(md 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 yd(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,bd=e=>!uo(e)&&e!==Kr;function ws(){const{caseless:e}=bd(this)&&this||{},t={},r=(n,o)=>{const i=e&&yd(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]=hd(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(!vd(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}),wd=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),b1=Xt("RegExp"),_d=(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=>{_d(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[md]==="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),xd=((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||xd,z={isArray:kn,isArrayBuffer:gd,isBuffer:fo,isFormData:t1,isArrayBufferView:Wb,isString:Zb,isNumber:vd,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:wd,hasOwnProp:wd,reduceDescriptors:_d,freezeMethods:w1,toObjectSet:_1,toCamelCase:y1,noop:x1,toFiniteNumber:S1,findKey:yd,global:Kr,isContextDefined:bd,isSpecCompliantForm:C1,toJSONObject:E1,isAsyncFn:k1,isThenable:D1,setImmediate:xd,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 Sd=ye.prototype,Cd={};["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=>{Cd[e]={value:e}}),Object.defineProperties(ye,Cd),Object.defineProperty(Sd,"isAxiosError",{value:!0}),ye.from=(e,t,r,n,o,i)=>{const a=Object.create(Sd);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 Ed(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function kd(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ed(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=Ed(p),S.forEach(function(k,E){!(z.isUndefined(k)||k===null)&&t.append(a===!0?kd([p],E,i):a===null?p:p+"[]",l(k))}),!1}return _s(g)?!0:(t.append(kd(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 Dd(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 Td=xs.prototype;Td.append=function(t,r){this._pairs.push([t,r])},Td.toString=function(t){const r=t?function(n){return t.call(this,n,Dd)}:Dd;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 Od(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 Md{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 Pd={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 Ad(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:Pd,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(Ad(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},Id=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[Id]=this[Id]={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 Rd(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 Nd(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)},$d=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},jd=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 Ld(e,t,r){let n=!X1(t);return e&&(n||r==!1)?J1(e,t):t}const zd=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(zd(l),zd(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 Bd=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=Od(Ld(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=Bd(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};Nd(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||Pd;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()}},Vd=(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",Fd=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())),Yd=(e,...t)=>{try{return!!e(...t)}catch{return!1}},a2=Fd&&Yd(()=>{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}),Ud=64*1024,Ds=Fd&&Yd(()=>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}=Bd(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]=$d(y,Bi(jd(c)));n=Vd(_.body,Ud,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&&$d(O,Bi(jd(s),!0))||[];C=new Response(Vd(C.body,Ud,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)=>{Nd(_,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 Hd=e=>`- ${e}`,l2=e=>z.isFunction(e)||e===null||e===!1,Wd={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(Hd).join(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "componentes-exagono",
3
3
  "private": false,
4
- "version": "0.1.19",
4
+ "version": "0.1.20",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.es.js",