soff-date 1.2.4 → 1.3.0

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.
Files changed (59) hide show
  1. package/dist/ar-Br72xIAo.d.ts +31 -0
  2. package/dist/ar-BzotUQyb.d.cts +31 -0
  3. package/dist/br-6mG4bT2v.d.cts +31 -0
  4. package/dist/br-BZijEnzK.d.ts +31 -0
  5. package/dist/co-BV19Ey8m.d.cts +31 -0
  6. package/dist/co-DqYkl-kH.d.ts +31 -0
  7. package/dist/locales/ar.cjs +1 -1
  8. package/dist/locales/ar.cjs.map +1 -1
  9. package/dist/locales/ar.d.cts +2 -1
  10. package/dist/locales/ar.d.ts +2 -1
  11. package/dist/locales/ar.js +1 -1
  12. package/dist/locales/ar.js.map +1 -1
  13. package/dist/locales/br.cjs +1 -1
  14. package/dist/locales/br.cjs.map +1 -1
  15. package/dist/locales/br.d.cts +2 -1
  16. package/dist/locales/br.d.ts +2 -1
  17. package/dist/locales/br.js +1 -1
  18. package/dist/locales/br.js.map +1 -1
  19. package/dist/locales/co.cjs +1 -1
  20. package/dist/locales/co.cjs.map +1 -1
  21. package/dist/locales/co.d.cts +2 -1
  22. package/dist/locales/co.d.ts +2 -1
  23. package/dist/locales/co.js +1 -1
  24. package/dist/locales/co.js.map +1 -1
  25. package/dist/locales/index.cjs +1 -1
  26. package/dist/locales/index.cjs.map +1 -1
  27. package/dist/locales/index.d.cts +40 -49
  28. package/dist/locales/index.d.ts +40 -49
  29. package/dist/locales/index.js +1 -1
  30. package/dist/locales/index.js.map +1 -1
  31. package/dist/locales/mx.cjs +1 -1
  32. package/dist/locales/mx.cjs.map +1 -1
  33. package/dist/locales/mx.d.cts +2 -1
  34. package/dist/locales/mx.d.ts +2 -1
  35. package/dist/locales/mx.js +1 -1
  36. package/dist/locales/mx.js.map +1 -1
  37. package/dist/locales/us.cjs +1 -1
  38. package/dist/locales/us.cjs.map +1 -1
  39. package/dist/locales/us.d.cts +2 -1
  40. package/dist/locales/us.d.ts +2 -1
  41. package/dist/locales/us.js +1 -1
  42. package/dist/locales/us.js.map +1 -1
  43. package/dist/manager-cCTMxYzq.d.cts +7 -0
  44. package/dist/manager-t1ZTM9nD.d.ts +7 -0
  45. package/dist/mx-BkWemPZ9.d.cts +31 -0
  46. package/dist/mx-CWOzeLjN.d.ts +31 -0
  47. package/dist/us-CIIYd5iU.d.ts +31 -0
  48. package/dist/us-CLaBwY8j.d.cts +31 -0
  49. package/package.json +1 -1
  50. package/dist/ar-CNAX4AXU.d.cts +0 -34
  51. package/dist/ar-_eSj0FME.d.ts +0 -34
  52. package/dist/br-BIyP6mEM.d.cts +0 -34
  53. package/dist/br-Di1CEYYU.d.ts +0 -34
  54. package/dist/co-Bb6COouQ.d.ts +0 -34
  55. package/dist/co-dfSeYeOC.d.cts +0 -34
  56. package/dist/mx-Dkg3F0zK.d.cts +0 -34
  57. package/dist/mx-DkxwI7mx.d.ts +0 -34
  58. package/dist/us-C_k8GbK5.d.cts +0 -34
  59. package/dist/us-D2p4ot2H.d.ts +0 -34
@@ -1,73 +1,64 @@
1
- export { a as ar } from '../ar-_eSj0FME.js';
2
- export { b as br } from '../br-Di1CEYYU.js';
3
- export { c as co } from '../co-Bb6COouQ.js';
4
- export { m as mx } from '../mx-DkxwI7mx.js';
5
- export { u as us } from '../us-D2p4ot2H.js';
6
- import { HolidayNames, Holiday } from '../core/types.js';
1
+ export { a as ar } from '../ar-Br72xIAo.js';
2
+ export { b as br } from '../br-BZijEnzK.js';
3
+ export { c as co } from '../co-DqYkl-kH.js';
4
+ export { m as mx } from '../mx-CWOzeLjN.js';
5
+ export { u as us } from '../us-CIIYd5iU.js';
6
+ import { Holiday } from '../core/types.js';
7
+ import { G as GetHolidaysOptions } from '../manager-t1ZTM9nD.js';
7
8
 
8
- interface GetHolidaysOptions$2 {
9
- lang?: HolidayNames;
10
- }
11
- declare function getHolidays$2(year: number, options?: GetHolidaysOptions$2): Holiday[];
12
- declare function isHoliday$2(date: Date, options?: GetHolidaysOptions$2): Holiday | null;
13
- declare function getNextHoliday$2(from?: Date, options?: GetHolidaysOptions$2): Holiday | null;
14
- declare function isBusinessDay$2(date: Date): boolean;
15
- declare function businessDays$2(date: Date, amount: number): Date;
16
- declare function diffBusinessDays$2(startDate: Date, endDate: Date): number;
17
- declare function businessHours$2(date: Date, amount: number, businessHours?: {
9
+ declare const getHolidays$2: (year: number, options?: GetHolidaysOptions) => Holiday[];
10
+ declare const isHoliday$2: (date: Date, options?: GetHolidaysOptions) => Holiday | null;
11
+ declare const getNextHoliday$2: (from?: Date, options?: GetHolidaysOptions) => Holiday | null;
12
+ declare const isBusinessDay$2: (date: Date) => boolean;
13
+ declare const businessDays$2: (date: Date, amount: number) => Date;
14
+ declare const diffBusinessDays$2: (startDate: Date, endDate: Date) => number;
15
+ declare const businessHours$2: (date: Date, amount: number, businessHours?: {
18
16
  start: string;
19
17
  end: string;
20
- }): Date;
21
- declare function diffBusinessHours$2(startDate: Date, endDate: Date, businessHours?: {
18
+ }) => Date;
19
+ declare const diffBusinessHours$2: (startDate: Date, endDate: Date, businessHours?: {
22
20
  start: string;
23
21
  end: string;
24
- }): number;
22
+ }) => number;
25
23
 
26
24
  declare namespace pe {
27
- export { type GetHolidaysOptions$2 as GetHolidaysOptions, businessDays$2 as businessDays, businessHours$2 as businessHours, diffBusinessDays$2 as diffBusinessDays, diffBusinessHours$2 as diffBusinessHours, getHolidays$2 as getHolidays, getNextHoliday$2 as getNextHoliday, isBusinessDay$2 as isBusinessDay, isHoliday$2 as isHoliday };
25
+ export { businessDays$2 as businessDays, businessHours$2 as businessHours, diffBusinessDays$2 as diffBusinessDays, diffBusinessHours$2 as diffBusinessHours, getHolidays$2 as getHolidays, getNextHoliday$2 as getNextHoliday, isBusinessDay$2 as isBusinessDay, isHoliday$2 as isHoliday };
28
26
  }
29
27
 
30
- interface GetHolidaysOptions$1 {
31
- lang?: HolidayNames;
32
- }
33
- declare function getHolidays$1(year: number, options?: GetHolidaysOptions$1): Holiday[];
34
- declare function isHoliday$1(date: Date, options?: GetHolidaysOptions$1): Holiday | null;
35
- declare function getNextHoliday$1(from?: Date, options?: GetHolidaysOptions$1): Holiday | null;
36
- declare function isBusinessDay$1(date: Date): boolean;
37
- declare function businessDays$1(date: Date, amount: number): Date;
38
- declare function diffBusinessDays$1(startDate: Date, endDate: Date): number;
39
- declare function businessHours$1(date: Date, amount: number, businessHours?: {
28
+ declare const getHolidays$1: (year: number, options?: GetHolidaysOptions) => Holiday[];
29
+ declare const isHoliday$1: (date: Date, options?: GetHolidaysOptions) => Holiday | null;
30
+ declare const getNextHoliday$1: (from?: Date, options?: GetHolidaysOptions) => Holiday | null;
31
+ declare const isBusinessDay$1: (date: Date) => boolean;
32
+ declare const businessDays$1: (date: Date, amount: number) => Date;
33
+ declare const diffBusinessDays$1: (startDate: Date, endDate: Date) => number;
34
+ declare const businessHours$1: (date: Date, amount: number, businessHours?: {
40
35
  start: string;
41
36
  end: string;
42
- }): Date;
43
- declare function diffBusinessHours$1(startDate: Date, endDate: Date, businessHours?: {
37
+ }) => Date;
38
+ declare const diffBusinessHours$1: (startDate: Date, endDate: Date, businessHours?: {
44
39
  start: string;
45
40
  end: string;
46
- }): number;
41
+ }) => number;
47
42
 
48
43
  declare namespace cl {
49
- export { type GetHolidaysOptions$1 as GetHolidaysOptions, businessDays$1 as businessDays, businessHours$1 as businessHours, diffBusinessDays$1 as diffBusinessDays, diffBusinessHours$1 as diffBusinessHours, getHolidays$1 as getHolidays, getNextHoliday$1 as getNextHoliday, isBusinessDay$1 as isBusinessDay, isHoliday$1 as isHoliday };
44
+ export { businessDays$1 as businessDays, businessHours$1 as businessHours, diffBusinessDays$1 as diffBusinessDays, diffBusinessHours$1 as diffBusinessHours, getHolidays$1 as getHolidays, getNextHoliday$1 as getNextHoliday, isBusinessDay$1 as isBusinessDay, isHoliday$1 as isHoliday };
50
45
  }
51
46
 
52
- interface GetHolidaysOptions {
53
- lang?: HolidayNames;
54
- }
55
- declare function getHolidays(year: number, options?: GetHolidaysOptions): Holiday[];
56
- declare function isHoliday(date: Date, options?: GetHolidaysOptions): Holiday | null;
57
- declare function getNextHoliday(from?: Date, options?: GetHolidaysOptions): Holiday | null;
58
- declare function isBusinessDay(date: Date): boolean;
59
- declare function businessDays(date: Date, amount: number): Date;
60
- declare function diffBusinessDays(startDate: Date, endDate: Date): number;
61
- declare function businessHours(date: Date, amount: number, businessHours?: {
47
+ declare const getHolidays: (year: number, options?: GetHolidaysOptions) => Holiday[];
48
+ declare const isHoliday: (date: Date, options?: GetHolidaysOptions) => Holiday | null;
49
+ declare const getNextHoliday: (from?: Date, options?: GetHolidaysOptions) => Holiday | null;
50
+ declare const isBusinessDay: (date: Date) => boolean;
51
+ declare const businessDays: (date: Date, amount: number) => Date;
52
+ declare const diffBusinessDays: (startDate: Date, endDate: Date) => number;
53
+ declare const businessHours: (date: Date, amount: number, businessHours?: {
62
54
  start: string;
63
55
  end: string;
64
- }): Date;
65
- declare function diffBusinessHours(startDate: Date, endDate: Date, businessHours?: {
56
+ }) => Date;
57
+ declare const diffBusinessHours: (startDate: Date, endDate: Date, businessHours?: {
66
58
  start: string;
67
59
  end: string;
68
- }): number;
60
+ }) => number;
69
61
 
70
- type ec_GetHolidaysOptions = GetHolidaysOptions;
71
62
  declare const ec_businessDays: typeof businessDays;
72
63
  declare const ec_businessHours: typeof businessHours;
73
64
  declare const ec_diffBusinessDays: typeof diffBusinessDays;
@@ -77,7 +68,7 @@ declare const ec_getNextHoliday: typeof getNextHoliday;
77
68
  declare const ec_isBusinessDay: typeof isBusinessDay;
78
69
  declare const ec_isHoliday: typeof isHoliday;
79
70
  declare namespace ec {
80
- export { type ec_GetHolidaysOptions as GetHolidaysOptions, ec_businessDays as businessDays, ec_businessHours as businessHours, ec_diffBusinessDays as diffBusinessDays, ec_diffBusinessHours as diffBusinessHours, ec_getHolidays as getHolidays, ec_getNextHoliday as getNextHoliday, ec_isBusinessDay as isBusinessDay, ec_isHoliday as isHoliday };
71
+ export { ec_businessDays as businessDays, ec_businessHours as businessHours, ec_diffBusinessDays as diffBusinessDays, ec_diffBusinessHours as diffBusinessHours, ec_getHolidays as getHolidays, ec_getNextHoliday as getNextHoliday, ec_isBusinessDay as isBusinessDay, ec_isHoliday as isHoliday };
81
72
  }
82
73
 
83
74
  export { cl, ec, pe };
@@ -1,2 +1,2 @@
1
- var ne=Object.defineProperty;var T=(e,t)=>{for(var a in t)ne(e,a,{get:t[a],enumerable:true});};var K={};T(K,{businessDays:()=>ue,businessHours:()=>ce,diffBusinessDays:()=>fe,diffBusinessHours:()=>me,getHolidays:()=>re,getNextHoliday:()=>de,isBusinessDay:()=>le,isHoliday:()=>ye});function V(e){if(!Number.isInteger(e)||e<1583)return new Date(Number.NaN);let t=e%19,a=Math.floor(e/100),n=e%100,i=Math.floor(a/4),o=a%4,r=Math.floor((a+8)/25),l=Math.floor((a-r+1)/3),H=(19*t+a-i-l+15)%30,x=Math.floor(n/4),G=n%4,u=(32+2*o+2*x-H-G)%7,b=Math.floor((t+11*H+22*u)/451),s=Math.floor((H+u-7*b+114)/31),k=(H+u-7*b+114)%31+1;return new Date(Date.UTC(e,s-1,k))}function z(e,t,a,n){if(!Number.isInteger(e)||!Number.isInteger(t)||t<1||t>12||!Number.isInteger(a)||a<0||a>6||!Number.isInteger(n)||n===0)return new Date(Number.NaN);let i=t-1;if(n>0){let r=new Date(Date.UTC(e,t-1,1)).getUTCDay(),H=1+(a-r+7)%7+(n-1)*7,x=new Date(Date.UTC(e,t-1,H));return x.getUTCMonth()===i?x:new Date(Number.NaN)}else {let o=new Date(Date.UTC(e,t,0)),l=(o.getUTCDay()-a+7)%7,H=o.getUTCDate()-l+(n+1)*7,x=new Date(Date.UTC(e,t-1,H));return x.getUTCMonth()===i?x:new Date(Number.NaN)}}function ie(e){return e instanceof Date&&Number.isFinite(e.getTime())}function j(e,t){if(!ie(e))return {date:e,shifted:false};let a=e.getUTCDay();if(t==="none")return {date:e,shifted:false};let n=new Date(e);switch(t){case "emiliani":case "nextMonday":{if(a===1)return {date:e,shifted:false};let i=(8-a)%7;n.setUTCDate(e.getUTCDate()+i);break}case "observedUS":if(a===0)n.setUTCDate(e.getUTCDate()+1);else if(a===6)n.setUTCDate(e.getUTCDate()-1);else return {date:e,shifted:false};break;case "nearestMonday":if(a===2)n.setUTCDate(e.getUTCDate()-1);else if(a===3)n.setUTCDate(e.getUTCDate()-2);else if(a===4)n.setUTCDate(e.getUTCDate()+4);else if(a===5)n.setUTCDate(e.getUTCDate()+3);else return {date:e,shifted:false};break;default:return {date:e,shifted:false}}return {date:n,shifted:true}}function se(e,t){switch(e.type){case "fixed":return new Date(Date.UTC(t,e.month-1,e.day));case "nthWeekday":return z(t,e.month,e.weekday,e.n);case "easterRelative":{let a=V(t),n=new Date(a);return n.setUTCDate(a.getUTCDate()+e.offset),n}case "custom":return e.calc(t)}}function Y(e){try{return e.toISOString().split("T")[0]}catch{return ""}}function P(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function f(e,t,a={}){return typeof t!="number"||!Number.isInteger(t)?[]:e.map(n=>{let i=se(n.rule,t);if(!i||!P(i))return null;let{date:o,shifted:r}=j(i,n.shift??"none");return P(o)?{date:Y(o),key:n.key,name:a[n.key]??n.key,...r&&{isShifted:true}}:null}).filter(n=>n!==null).sort((n,i)=>n.date.localeCompare(i.date))}function c(e,t,a){if(!P(t))return null;let n=t.getUTCFullYear(),i=Y(t);return i?f(e,n,a).find(r=>r.date===i)??null:null}function m(e,t,a){if(!P(t))return null;let n=Y(t);if(!n)return null;let i=t.getUTCFullYear(),o=f(e,i,a),r=o.find(l=>l.date>=n);return r||(o=f(e,i+1,a),r=o[0]),r??null}function R(e){return e instanceof Date&&Number.isFinite(e.getTime())}function W(){return new Date(Number.NaN)}function oe(e){let t=e.getUTCDay();return t===0||t===6}function d(e,t){return !R(t)||oe(t)?false:c(e,t)===null}function D(e,t,a){if(!R(t)||!Number.isFinite(a))return W();let n=new Date(t),i=Math.abs(a),o=a>=0?1:-1;for(;i>0;)n.setUTCDate(n.getUTCDate()+o),d(e,n)&&i--;return n}function p(e,t,a){if(!R(t)||!R(a))return Number.NaN;let n=new Date(t),i=new Date(a);if(n.setUTCHours(0,0,0,0),i.setUTCHours(0,0,0,0),n.getTime()===i.getTime())return 0;let o=n<i?1:-1,r=0,l=new Date(n);for(;l.getTime()!==i.getTime();)l.setUTCDate(l.getUTCDate()+o),d(e,l)&&(r+=o);return r}function A(e){let[t,a]=e.split(":").map(Number);return {h:t||0,m:a||0}}function F(e){return e.getUTCHours()*60+e.getUTCMinutes()}function h(e,t,a,n={start:"08:00",end:"17:00"}){if(!R(t)||!R(a))return Number.NaN;let{h:i,m:o}=A(n.start),{h:r,m:l}=A(n.end),H=i*60+o,x=r*60+l;if(H>=x)return 0;let G=t.getTime(),u=a.getTime();if(G===u)return 0;let b=new Date(Math.min(G,u)),s=new Date(Math.max(G,u)),k=G>u,B=0,C=new Date(b);for(;C.getTime()<s.getTime();){if(d(e,C)){let ae=F(C),q=C.getUTCFullYear()===s.getUTCFullYear()&&C.getUTCMonth()===s.getUTCMonth()&&C.getUTCDate()===s.getUTCDate()?Math.min(F(s),x):x,L=Math.max(ae,H);q>L&&(B+=q-L);}C.setUTCDate(C.getUTCDate()+1),C.setUTCHours(0,0,0,0);}return k?-(B/60):B/60}function g(e,t,a,n={start:"08:00",end:"17:00"}){if(!R(t)||!Number.isFinite(a))return W();if(a===0)return new Date(t);let{h:i,m:o}=A(n.start),{h:r,m:l}=A(n.end),H=i*60+o,x=r*60+l;if(x-H<=0)return W();let u=a<0,b=Math.abs(a)*60,s=new Date(t);if(!d(e,s))u?s.setUTCHours(r,l,0,0):s.setUTCHours(i,o,0,0);else {let k=F(s);k<H?u?(s.setUTCDate(s.getUTCDate()-1),s.setUTCHours(r,l,0,0)):s.setUTCHours(i,o,0,0):k>x&&(u?s.setUTCHours(r,l,0,0):(s.setUTCDate(s.getUTCDate()+1),s.setUTCHours(i,o,0,0)));}for(;b>0;){if(!d(e,s)){s.setUTCDate(s.getUTCDate()+(u?-1:1)),s.setUTCHours(u?r:i,u?l:o,0,0);continue}let k=F(s),B=u?k-H:x-k;B<0&&(B=0),b<=B?(u?s.setUTCMinutes(s.getUTCMinutes()-b):s.setUTCMinutes(s.getUTCMinutes()+b),b=0):(b-=B,s.setUTCDate(s.getUTCDate()+(u?-1:1)),s.setUTCHours(u?r:i,u?l:o,0,0));}return s}var y={newYear:"A\xF1o Nuevo",epiphany:"D\xEDa de los Reyes Magos",holyThursday:"Jueves Santo",goodFriday:"Viernes Santo",easterSunday:"Domingo de Pascua",laborDay:"D\xEDa del Trabajo",ascension:"Ascensi\xF3n del Se\xF1or",corpusChristi:"Corpus Christi",christmas:"Navidad",christmasEve:"Nochebuena",newYearsEve:"Nochevieja",allSaints:"D\xEDa de Todos los Santos",saintJoseph:"D\xEDa de San Jos\xE9",sacredHeart:"Sagrado Coraz\xF3n",saintPeterPaul:"San Pedro y San Pablo",independenceDay:"D\xEDa de la Independencia",boyacaBattle:"Batalla de Boyac\xE1",assumptionMary:"Asunci\xF3n de la Virgen",columbusDay:"D\xEDa de la Raza",independenceCartagena:"Independencia de Cartagena",immaculateConception:"Inmaculada Concepci\xF3n",chiquinquira:"D\xEDa de Nuestra Se\xF1ora del Rosario de Chiquinquir\xE1",constitutionDay:"D\xEDa de la Constituci\xF3n",benitoJuarez:"Natalicio de Benito Ju\xE1rez",revolutionDay:"D\xEDa de la Revoluci\xF3n",virginGuadalupe:"D\xEDa de la Virgen de Guadalupe",transmissionExecutive:"Transmisi\xF3n del Poder Ejecutivo Federal",carnivalMonday:"Lunes de Carnaval",carnivalTuesday:"Martes de Carnaval",memoryDay:"D\xEDa Nacional de la Memoria por la Verdad y la Justicia",malvinasDay:"D\xEDa del Veterano y de los Ca\xEDdos en la Guerra de Malvinas",mayRevolution:"D\xEDa de la Revoluci\xF3n de Mayo",guemesDay:"Paso a la Inmortalidad del Gral. Don Mart\xEDn Miguel de G\xFCemes",belgranoDay:"Paso a la Inmortalidad del Gral. Manuel Belgrano",sanMartinDay:"Paso a la Inmortalidad del Gral. Jos\xE9 de San Mart\xEDn",diversityDay:"D\xEDa del Respeto a la Diversidad Cultural",sovereigntyDay:"D\xEDa de la Soberan\xEDa Nacional",mlkDay:"D\xEDa de Martin Luther King Jr.",presidentsDay:"D\xEDa de los Presidentes",memorialDay:"D\xEDa de los Ca\xEDdos",independenceDayUS:"D\xEDa de la Independencia",thanksgivingDay:"D\xEDa de Acci\xF3n de Gracias",veteransDay:"D\xEDa de los Veteranos",independenceDay1:"D\xEDa de la Independencia",independenceDay2:"Fiestas Patrias",battleOfJunin:"Batalla de Jun\xEDn",santaRosaDeLima:"Santa Rosa de Lima",battleOfAngamos:"Combate de Angamos",battleOfAyacucho:"Batalla de Ayacucho",holySaturday:"S\xE1bado Santo",navyDay:"D\xEDa de las Glorias Navales",indigenousPeoplesDay:"D\xEDa Nacional de los Pueblos Ind\xEDgenas",ourLadyOfMountCarmel:"D\xEDa de la Virgen del Carmen",armyDay:"D\xEDa de las Glorias del Ej\xE9rcito",reformationDay:"D\xEDa de las Iglesias Evang\xE9licas y Protestantes",battleOfPichincha:"Batalla de Pichincha",firstCryOfIndependence:"Primer Grito de Independencia",independenceOfGuayaquil:"Independencia de Guayaquil",allSoulsDay:"D\xEDa de los Difuntos",independenceOfCuenca:"Independencia de Cuenca"};var v=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"carnivalMonday",rule:{type:"easterRelative",offset:-48}},{key:"carnivalTuesday",rule:{type:"easterRelative",offset:-47}},{key:"memoryDay",rule:{type:"fixed",month:3,day:24}},{key:"malvinasDay",rule:{type:"fixed",month:4,day:2}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"mayRevolution",rule:{type:"fixed",month:5,day:25}},{key:"guemesDay",rule:{type:"fixed",month:6,day:17},shift:"nearestMonday"},{key:"belgranoDay",rule:{type:"fixed",month:6,day:20}},{key:"independenceDay",rule:{type:"fixed",month:7,day:9}},{key:"sanMartinDay",rule:{type:"fixed",month:8,day:17},shift:"nearestMonday"},{key:"diversityDay",rule:{type:"fixed",month:10,day:12},shift:"nearestMonday"},{key:"sovereigntyDay",rule:{type:"fixed",month:11,day:20},shift:"nearestMonday"},{key:"immaculateConception",rule:{type:"fixed",month:12,day:8}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}];function re(e,t){let a=t?.lang??y;return f(v,e,a)}function ye(e,t){let a=t?.lang??y;return c(v,e,a)}function de(e=new Date,t){let a=t?.lang??y;return m(v,e,a)}function le(e){return d(v,e)}function ue(e,t){return D(v,e,t)}function fe(e,t){return p(v,e,t)}function ce(e,t,a){return g(v,e,t,a)}function me(e,t,a){return h(v,e,t,a)}var Q={};T(Q,{businessDays:()=>He,businessHours:()=>be,diffBusinessDays:()=>xe,diffBusinessHours:()=>ke,getHolidays:()=>De,getNextHoliday:()=>he,isBusinessDay:()=>ge,isHoliday:()=>pe});var E={newYear:"Ano Novo",epiphany:"Dia de Reis",holyThursday:"Quinta-feira Santa",goodFriday:"Sexta-feira Santa",easterSunday:"Domingo de P\xE1scoa",laborDay:"Dia do Trabalhador",ascension:"Ascens\xE3o do Senhor",corpusChristi:"Corpus Christi",christmas:"Natal",christmasEve:"V\xE9spera de Natal",newYearsEve:"V\xE9spera de Ano Novo",allSaints:"Dia de Todos os Santos",assumptionMary:"Assun\xE7\xE3o de Nossa Senhora",immaculateConception:"Imaculada Concei\xE7\xE3o",carnivalMonday:"Segunda-feira de Carnaval",carnivalTuesday:"Ter\xE7a-feira de Carnaval",tiradentesDay:"Tiradentes",independenceDay:"Independ\xEAncia do Brasil",ladyAparecida:"Nossa Senhora Aparecida",allSouls:"Finados",republicProclamation:"Proclama\xE7\xE3o da Rep\xFAblica",blackConsciousness:"Dia da Consci\xEAncia Negra"};var N=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"carnivalMonday",rule:{type:"easterRelative",offset:-48}},{key:"carnivalTuesday",rule:{type:"easterRelative",offset:-47}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"tiradentesDay",rule:{type:"fixed",month:4,day:21}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"corpusChristi",rule:{type:"easterRelative",offset:60}},{key:"independenceDay",rule:{type:"fixed",month:9,day:7}},{key:"ladyAparecida",rule:{type:"fixed",month:10,day:12}},{key:"allSouls",rule:{type:"fixed",month:11,day:2}},{key:"republicProclamation",rule:{type:"fixed",month:11,day:15}},{key:"blackConsciousness",rule:{type:"fixed",month:11,day:20}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}];function De(e,t){let a=t?.lang??E;return f(N,e,a)}function pe(e,t){let a=t?.lang??E;return c(N,e,a)}function he(e=new Date,t){let a=t?.lang??E;return m(N,e,a)}function ge(e){return d(N,e)}function He(e,t){return D(N,e,t)}function xe(e,t){return p(N,e,t)}function be(e,t,a){return g(N,e,t,a)}function ke(e,t,a){return h(N,e,t,a)}var X={};T(X,{businessDays:()=>Ne,businessHours:()=>we,diffBusinessDays:()=>Me,diffBusinessHours:()=>Ue,getHolidays:()=>Ce,getNextHoliday:()=>Te,isBusinessDay:()=>ve,isHoliday:()=>Be});var M=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"independenceDay",rule:{type:"fixed",month:7,day:20}},{key:"boyacaBattle",rule:{type:"fixed",month:8,day:7}},{key:"immaculateConception",rule:{type:"fixed",month:12,day:8}},{key:"christmas",rule:{type:"fixed",month:12,day:25}},{key:"epiphany",rule:{type:"fixed",month:1,day:6},shift:"emiliani"},{key:"saintJoseph",rule:{type:"fixed",month:3,day:19},shift:"emiliani"},{key:"saintPeterPaul",rule:{type:"fixed",month:6,day:29},shift:"emiliani"},{key:"assumptionMary",rule:{type:"fixed",month:8,day:15},shift:"emiliani"},{key:"columbusDay",rule:{type:"fixed",month:10,day:12},shift:"emiliani"},{key:"allSaints",rule:{type:"fixed",month:11,day:1},shift:"emiliani"},{key:"independenceCartagena",rule:{type:"fixed",month:11,day:11},shift:"emiliani"},{key:"chiquinquira",rule:{type:"custom",calc:e=>e>=2026?new Date(Date.UTC(e,6,9)):null},shift:"emiliani"},{key:"holyThursday",rule:{type:"easterRelative",offset:-3}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"ascension",rule:{type:"easterRelative",offset:39},shift:"emiliani"},{key:"corpusChristi",rule:{type:"easterRelative",offset:60},shift:"emiliani"},{key:"sacredHeart",rule:{type:"easterRelative",offset:68},shift:"emiliani"}];function Ce(e,t){let a=t?.lang??y;return f(M,e,a)}function Be(e,t){let a=t?.lang??y;return c(M,e,a)}function Te(e=new Date,t){let a=t?.lang??y;return m(M,e,a)}function ve(e){return d(M,e)}function Ne(e,t){return D(M,e,t)}function Me(e,t){return p(M,e,t)}function we(e,t,a){return g(M,e,t,a)}function Ue(e,t,a){return h(M,e,t,a)}var Z={};T(Z,{businessDays:()=>Re,businessHours:()=>Ae,diffBusinessDays:()=>Pe,diffBusinessHours:()=>Fe,getHolidays:()=>Se,getNextHoliday:()=>Ie,isBusinessDay:()=>Ge,isHoliday:()=>Oe});var w=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"constitutionDay",rule:{type:"nthWeekday",month:2,weekday:1,n:1}},{key:"benitoJuarez",rule:{type:"nthWeekday",month:3,weekday:1,n:3}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"independenceDay",rule:{type:"fixed",month:9,day:16}},{key:"revolutionDay",rule:{type:"nthWeekday",month:11,weekday:1,n:3}},{key:"transmissionExecutive",rule:{type:"custom",calc:e=>{if(e>=2024){if((e-2024)%6===0)return new Date(Date.UTC(e,9,1))}else if((e-2018)%6===0)return new Date(Date.UTC(e,11,1));return null}}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}];function Se(e,t){let a=t?.lang??y;return f(w,e,a)}function Oe(e,t){let a=t?.lang??y;return c(w,e,a)}function Ie(e=new Date,t){let a=t?.lang??y;return m(w,e,a)}function Ge(e){return d(w,e)}function Re(e,t){return D(w,e,t)}function Pe(e,t){return p(w,e,t)}function Ae(e,t,a){return g(w,e,t,a)}function Fe(e,t,a){return h(w,e,t,a)}var _={};T(_,{businessDays:()=>qe,businessHours:()=>Ve,diffBusinessDays:()=>Le,diffBusinessHours:()=>ze,getHolidays:()=>Ee,getNextHoliday:()=>Ye,isBusinessDay:()=>We,isHoliday:()=>Je});var J={newYear:"New Year's Day",epiphany:"Epiphany",holyThursday:"Holy Thursday",goodFriday:"Good Friday",easterSunday:"Easter Sunday",laborDay:"Labor Day",ascension:"Ascension Day",corpusChristi:"Corpus Christi",christmas:"Christmas Day",christmasEve:"Christmas Eve",newYearsEve:"New Year's Eve",allSaints:"All Saints' Day",saintJoseph:"Saint Joseph's Day",sacredHeart:"Sacred Heart",saintPeterPaul:"Saint Peter and Saint Paul",independenceDay:"Independence Day",boyacaBattle:"Battle of Boyac\xE1",assumptionMary:"Assumption of Mary",columbusDay:"Columbus Day",independenceCartagena:"Independence of Cartagena",immaculateConception:"Immaculate Conception",chiquinquira:"Our Lady of the Rosary of Chiquinquir\xE1",constitutionDay:"Constitution Day",benitoJuarez:"Benito Ju\xE1rez Birthday",revolutionDay:"Revolution Day",virginGuadalupe:"Our Lady of Guadalupe",mlkDay:"Martin Luther King Jr. Day",presidentsDay:"Presidents' Day",memorialDay:"Memorial Day",independenceDayUS:"Independence Day",thanksgivingDay:"Thanksgiving Day",veteransDay:"Veterans Day",independenceDay1:"Independence Day",independenceDay2:"National Holidays",battleOfJunin:"Battle of Junin",santaRosaDeLima:"Santa Rosa de Lima",battleOfAngamos:"Battle of Angamos",battleOfAyacucho:"Battle of Ayacucho",holySaturday:"Holy Saturday",navyDay:"Navy Day",indigenousPeoplesDay:"National Day of Indigenous Peoples",ourLadyOfMountCarmel:"Our Lady of Mount Carmel",armyDay:"Army Day",reformationDay:"Reformation Day",battleOfPichincha:"Battle of Pichincha",firstCryOfIndependence:"First Cry of Independence",independenceOfGuayaquil:"Independence of Guayaquil",allSoulsDay:"All Souls Day",independenceOfCuenca:"Independence of Cuenca"};var U=[{key:"newYear",rule:{type:"fixed",month:1,day:1},shift:"observedUS"},{key:"independenceDayUS",rule:{type:"fixed",month:7,day:4},shift:"observedUS"},{key:"veteransDay",rule:{type:"fixed",month:11,day:11},shift:"observedUS"},{key:"christmas",rule:{type:"fixed",month:12,day:25},shift:"observedUS"},{key:"mlkDay",rule:{type:"nthWeekday",month:1,weekday:1,n:3}},{key:"presidentsDay",rule:{type:"nthWeekday",month:2,weekday:1,n:3}},{key:"memorialDay",rule:{type:"nthWeekday",month:5,weekday:1,n:-1}},{key:"laborDay",rule:{type:"nthWeekday",month:9,weekday:1,n:1}},{key:"columbusDay",rule:{type:"nthWeekday",month:10,weekday:1,n:2}},{key:"thanksgivingDay",rule:{type:"nthWeekday",month:11,weekday:4,n:4}}];function Ee(e,t){let a=t?.lang??J;return f(U,e,a)}function Je(e,t){let a=t?.lang??J;return c(U,e,a)}function Ye(e=new Date,t){let a=t?.lang??J;return m(U,e,a)}function We(e){return d(U,e)}function qe(e,t){return D(U,e,t)}function Le(e,t){return p(U,e,t)}function Ve(e,t,a){return g(U,e,t,a)}function ze(e,t,a){return h(U,e,t,a)}var $={};T($,{businessDays:()=>Ze,businessHours:()=>$e,diffBusinessDays:()=>_e,diffBusinessHours:()=>et,getHolidays:()=>je,getNextHoliday:()=>Qe,isBusinessDay:()=>Xe,isHoliday:()=>Ke});var S=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"holyThursday",rule:{type:"easterRelative",offset:-3}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"saintPeterPaul",rule:{type:"fixed",month:6,day:29}},{key:"independenceDay1",rule:{type:"fixed",month:7,day:28}},{key:"independenceDay2",rule:{type:"fixed",month:7,day:29}},{key:"battleOfJunin",rule:{type:"fixed",month:8,day:6}},{key:"santaRosaDeLima",rule:{type:"fixed",month:8,day:30}},{key:"battleOfAngamos",rule:{type:"fixed",month:10,day:8}},{key:"allSaints",rule:{type:"fixed",month:11,day:1}},{key:"immaculateConception",rule:{type:"fixed",month:12,day:8}},{key:"battleOfAyacucho",rule:{type:"fixed",month:12,day:9}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}];function je(e,t){let a=t?.lang??y;return f(S,e,a)}function Ke(e,t){let a=t?.lang??y;return c(S,e,a)}function Qe(e=new Date,t){let a=t?.lang??y;return m(S,e,a)}function Xe(e){return d(S,e)}function Ze(e,t){return D(S,e,t)}function _e(e,t){return p(S,e,t)}function $e(e,t,a){return g(S,e,t,a)}function et(e,t,a){return h(S,e,t,a)}var ee={};T(ee,{businessDays:()=>st,businessHours:()=>rt,diffBusinessDays:()=>ot,diffBusinessHours:()=>yt,getHolidays:()=>tt,getNextHoliday:()=>nt,isBusinessDay:()=>it,isHoliday:()=>at});var O=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"holySaturday",rule:{type:"easterRelative",offset:-1}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"navyDay",rule:{type:"fixed",month:5,day:21}},{key:"indigenousPeoplesDay",rule:{type:"fixed",month:6,day:21}},{key:"saintPeterPaul",rule:{type:"fixed",month:6,day:29},shift:"nearestMonday"},{key:"ourLadyOfMountCarmel",rule:{type:"fixed",month:7,day:16}},{key:"assumptionMary",rule:{type:"fixed",month:8,day:15}},{key:"independenceDay",rule:{type:"fixed",month:9,day:18}},{key:"armyDay",rule:{type:"fixed",month:9,day:19}},{key:"columbusDay",rule:{type:"fixed",month:10,day:12},shift:"nearestMonday"},{key:"reformationDay",rule:{type:"fixed",month:10,day:31},shift:"nearestMonday"},{key:"allSaints",rule:{type:"fixed",month:11,day:1}},{key:"immaculateConception",rule:{type:"fixed",month:12,day:8}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}];function tt(e,t){let a=t?.lang??y;return f(O,e,a)}function at(e,t){let a=t?.lang??y;return c(O,e,a)}function nt(e=new Date,t){let a=t?.lang??y;return m(O,e,a)}function it(e){return d(O,e)}function st(e,t){return D(O,e,t)}function ot(e,t){return p(O,e,t)}function rt(e,t,a){return g(O,e,t,a)}function yt(e,t,a){return h(O,e,t,a)}var te={};T(te,{businessDays:()=>ct,businessHours:()=>Dt,diffBusinessDays:()=>mt,diffBusinessHours:()=>pt,getHolidays:()=>dt,getNextHoliday:()=>ut,isBusinessDay:()=>ft,isHoliday:()=>lt});var I=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"carnivalMonday",rule:{type:"easterRelative",offset:-48}},{key:"carnivalTuesday",rule:{type:"easterRelative",offset:-47}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"laborDay",rule:{type:"fixed",month:5,day:1},shift:"nearestMonday"},{key:"battleOfPichincha",rule:{type:"fixed",month:5,day:24},shift:"nearestMonday"},{key:"firstCryOfIndependence",rule:{type:"fixed",month:8,day:10},shift:"nearestMonday"},{key:"independenceOfGuayaquil",rule:{type:"fixed",month:10,day:9},shift:"nearestMonday"},{key:"allSoulsDay",rule:{type:"fixed",month:11,day:2}},{key:"independenceOfCuenca",rule:{type:"fixed",month:11,day:3}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}];function dt(e,t){let a=t?.lang??y;return f(I,e,a)}function lt(e,t){let a=t?.lang??y;return c(I,e,a)}function ut(e=new Date,t){let a=t?.lang??y;return m(I,e,a)}function ft(e){return d(I,e)}function ct(e,t){return D(I,e,t)}function mt(e,t){return p(I,e,t)}function Dt(e,t,a){return g(I,e,t,a)}function pt(e,t,a){return h(I,e,t,a)}export{K as ar,Q as br,ee as cl,X as co,te as ec,Z as mx,$ as pe,_ as us};//# sourceMappingURL=index.js.map
1
+ var X=Object.defineProperty;var g=(e,n)=>{for(var a in n)X(e,a,{get:n[a],enumerable:true});};var E={};g(E,{businessDays:()=>se,businessHours:()=>re,diffBusinessDays:()=>oe,diffBusinessHours:()=>ye,getHolidays:()=>ae,getNextHoliday:()=>ne,isBusinessDay:()=>ie,isHoliday:()=>te});function w(e){if(!Number.isInteger(e)||e<1583)return new Date(Number.NaN);let n=e%19,a=Math.floor(e/100),t=e%100,i=Math.floor(a/4),o=a%4,r=Math.floor((a+8)/25),y=Math.floor((a-r+1)/3),u=(19*n+a-i-y+15)%30,f=Math.floor(t/4),k=t%4,d=(32+2*o+2*f-u-k)%7,m=Math.floor((n+11*u+22*d)/451),s=Math.floor((u+d-7*m+114)/31),p=(u+d-7*m+114)%31+1;return new Date(Date.UTC(e,s-1,p))}function R(e,n,a,t){if(!Number.isInteger(e)||!Number.isInteger(n)||n<1||n>12||!Number.isInteger(a)||a<0||a>6||!Number.isInteger(t)||t===0)return new Date(Number.NaN);let i=n-1;if(t>0){let r=new Date(Date.UTC(e,n-1,1)).getUTCDay(),u=1+(a-r+7)%7+(t-1)*7,f=new Date(Date.UTC(e,n-1,u));return f.getUTCMonth()===i?f:new Date(Number.NaN)}else {let o=new Date(Date.UTC(e,n,0)),y=(o.getUTCDay()-a+7)%7,u=o.getUTCDate()-y+(t+1)*7,f=new Date(Date.UTC(e,n-1,u));return f.getUTCMonth()===i?f:new Date(Number.NaN)}}function Z(e){return e instanceof Date&&Number.isFinite(e.getTime())}function P(e,n){if(!Z(e))return {date:e,shifted:false};let a=e.getUTCDay();if(n==="none")return {date:e,shifted:false};let t=new Date(e);switch(n){case "emiliani":case "nextMonday":{if(a===1)return {date:e,shifted:false};let i=(8-a)%7;t.setUTCDate(e.getUTCDate()+i);break}case "observedUS":if(a===0)t.setUTCDate(e.getUTCDate()+1);else if(a===6)t.setUTCDate(e.getUTCDate()-1);else return {date:e,shifted:false};break;case "nearestMonday":if(a===2)t.setUTCDate(e.getUTCDate()-1);else if(a===3)t.setUTCDate(e.getUTCDate()-2);else if(a===4)t.setUTCDate(e.getUTCDate()+4);else if(a===5)t.setUTCDate(e.getUTCDate()+3);else return {date:e,shifted:false};break;default:return {date:e,shifted:false}}return {date:t,shifted:true}}function _(e,n){switch(e.type){case "fixed":return new Date(Date.UTC(n,e.month-1,e.day));case "nthWeekday":return R(n,e.month,e.weekday,e.n);case "easterRelative":{let a=w(n),t=new Date(a);return t.setUTCDate(a.getUTCDate()+e.offset),t}case "custom":return e.calc(n)}}function N(e){try{return e.toISOString().split("T")[0]}catch{return ""}}function b(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function C(e,n,a={}){return typeof n!="number"||!Number.isInteger(n)?[]:e.map(t=>{let i=_(t.rule,n);if(!i||!b(i))return null;let{date:o,shifted:r}=P(i,t.shift??"none");return b(o)?{date:N(o),key:t.key,name:a[t.key]??t.key,...r&&{isShifted:true}}:null}).filter(t=>t!==null).sort((t,i)=>t.date.localeCompare(i.date))}function T(e,n,a){if(!b(n))return null;let t=n.getUTCFullYear(),i=N(n);return i?C(e,t,a).find(r=>r.date===i)??null:null}function I(e,n,a){if(!b(n))return null;let t=N(n);if(!t)return null;let i=n.getUTCFullYear(),o=C(e,i,a),r=o.find(y=>y.date>=t);return r||(o=C(e,i+1,a),r=o[0]),r??null}function H(e){return e instanceof Date&&Number.isFinite(e.getTime())}function U(){return new Date(Number.NaN)}function $(e){let n=e.getUTCDay();return n===0||n===6}function x(e,n){return !H(n)||$(n)?false:T(e,n)===null}function O(e,n,a){if(!H(n)||!Number.isFinite(a))return U();let t=new Date(n),i=Math.abs(a),o=a>=0?1:-1;for(;i>0;)t.setUTCDate(t.getUTCDate()+o),x(e,t)&&i--;return t}function A(e,n,a){if(!H(n)||!H(a))return Number.NaN;let t=new Date(n),i=new Date(a);if(t.setUTCHours(0,0,0,0),i.setUTCHours(0,0,0,0),t.getTime()===i.getTime())return 0;let o=t<i?1:-1,r=0,y=new Date(t);for(;y.getTime()!==i.getTime();)y.setUTCDate(y.getUTCDate()+o),x(e,y)&&(r+=o);return r}function v(e){let[n,a]=e.split(":").map(Number);return {h:n||0,m:a||0}}function M(e){return e.getUTCHours()*60+e.getUTCMinutes()}function F(e,n,a,t={start:"08:00",end:"17:00"}){if(!H(n)||!H(a))return Number.NaN;let{h:i,m:o}=v(t.start),{h:r,m:y}=v(t.end),u=i*60+o,f=r*60+y;if(u>=f)return 0;let k=n.getTime(),d=a.getTime();if(k===d)return 0;let m=new Date(Math.min(k,d)),s=new Date(Math.max(k,d)),p=k>d,h=0,D=new Date(m);for(;D.getTime()<s.getTime();){if(x(e,D)){let Q=M(D),S=D.getUTCFullYear()===s.getUTCFullYear()&&D.getUTCMonth()===s.getUTCMonth()&&D.getUTCDate()===s.getUTCDate()?Math.min(M(s),f):f,B=Math.max(Q,u);S>B&&(h+=S-B);}D.setUTCDate(D.getUTCDate()+1),D.setUTCHours(0,0,0,0);}return p?-(h/60):h/60}function G(e,n,a,t={start:"08:00",end:"17:00"}){if(!H(n)||!Number.isFinite(a))return U();if(a===0)return new Date(n);let{h:i,m:o}=v(t.start),{h:r,m:y}=v(t.end),u=i*60+o,f=r*60+y;if(f-u<=0)return U();let d=a<0,m=Math.abs(a)*60,s=new Date(n);if(!x(e,s))d?s.setUTCHours(r,y,0,0):s.setUTCHours(i,o,0,0);else {let p=M(s);p<u?d?(s.setUTCDate(s.getUTCDate()-1),s.setUTCHours(r,y,0,0)):s.setUTCHours(i,o,0,0):p>f&&(d?s.setUTCHours(r,y,0,0):(s.setUTCDate(s.getUTCDate()+1),s.setUTCHours(i,o,0,0)));}for(;m>0;){if(!x(e,s)){s.setUTCDate(s.getUTCDate()+(d?-1:1)),s.setUTCHours(d?r:i,d?y:o,0,0);continue}let p=M(s),h=d?p-u:f-p;h<0&&(h=0),m<=h?(d?s.setUTCMinutes(s.getUTCMinutes()-m):s.setUTCMinutes(s.getUTCMinutes()+m),m=0):(m-=h,s.setUTCDate(s.getUTCDate()+(d?-1:1)),s.setUTCHours(d?r:i,d?y:o,0,0));}return s}function l(e,n){return {getHolidays:(a,t)=>{let i=t?.lang??n;return C(e,a,i)},isHoliday:(a,t)=>{let i=t?.lang??n;return T(e,a,i)},getNextHoliday:(a=new Date,t)=>{let i=t?.lang??n;return I(e,a,i)},isBusinessDay:a=>x(e,a),businessDays:(a,t)=>O(e,a,t),diffBusinessDays:(a,t)=>A(e,a,t),businessHours:(a,t,i)=>G(e,a,t,i),diffBusinessHours:(a,t,i)=>F(e,a,t,i)}}var c={newYear:"A\xF1o Nuevo",epiphany:"D\xEDa de los Reyes Magos",holyThursday:"Jueves Santo",goodFriday:"Viernes Santo",easterSunday:"Domingo de Pascua",laborDay:"D\xEDa del Trabajo",ascension:"Ascensi\xF3n del Se\xF1or",corpusChristi:"Corpus Christi",christmas:"Navidad",christmasEve:"Nochebuena",newYearsEve:"Nochevieja",allSaints:"D\xEDa de Todos los Santos",saintJoseph:"D\xEDa de San Jos\xE9",sacredHeart:"Sagrado Coraz\xF3n",saintPeterPaul:"San Pedro y San Pablo",independenceDay:"D\xEDa de la Independencia",boyacaBattle:"Batalla de Boyac\xE1",assumptionMary:"Asunci\xF3n de la Virgen",columbusDay:"D\xEDa de la Raza",independenceCartagena:"Independencia de Cartagena",immaculateConception:"Inmaculada Concepci\xF3n",chiquinquira:"D\xEDa de Nuestra Se\xF1ora del Rosario de Chiquinquir\xE1",constitutionDay:"D\xEDa de la Constituci\xF3n",benitoJuarez:"Natalicio de Benito Ju\xE1rez",revolutionDay:"D\xEDa de la Revoluci\xF3n",virginGuadalupe:"D\xEDa de la Virgen de Guadalupe",transmissionExecutive:"Transmisi\xF3n del Poder Ejecutivo Federal",carnivalMonday:"Lunes de Carnaval",carnivalTuesday:"Martes de Carnaval",memoryDay:"D\xEDa Nacional de la Memoria por la Verdad y la Justicia",malvinasDay:"D\xEDa del Veterano y de los Ca\xEDdos en la Guerra de Malvinas",mayRevolution:"D\xEDa de la Revoluci\xF3n de Mayo",guemesDay:"Paso a la Inmortalidad del Gral. Don Mart\xEDn Miguel de G\xFCemes",belgranoDay:"Paso a la Inmortalidad del Gral. Manuel Belgrano",sanMartinDay:"Paso a la Inmortalidad del Gral. Jos\xE9 de San Mart\xEDn",diversityDay:"D\xEDa del Respeto a la Diversidad Cultural",sovereigntyDay:"D\xEDa de la Soberan\xEDa Nacional",mlkDay:"D\xEDa de Martin Luther King Jr.",presidentsDay:"D\xEDa de los Presidentes",memorialDay:"D\xEDa de los Ca\xEDdos",independenceDayUS:"D\xEDa de la Independencia",thanksgivingDay:"D\xEDa de Acci\xF3n de Gracias",veteransDay:"D\xEDa de los Veteranos",independenceDay1:"D\xEDa de la Independencia",independenceDay2:"Fiestas Patrias",battleOfJunin:"Batalla de Jun\xEDn",santaRosaDeLima:"Santa Rosa de Lima",battleOfAngamos:"Combate de Angamos",battleOfAyacucho:"Batalla de Ayacucho",holySaturday:"S\xE1bado Santo",navyDay:"D\xEDa de las Glorias Navales",indigenousPeoplesDay:"D\xEDa Nacional de los Pueblos Ind\xEDgenas",ourLadyOfMountCarmel:"D\xEDa de la Virgen del Carmen",armyDay:"D\xEDa de las Glorias del Ej\xE9rcito",reformationDay:"D\xEDa de las Iglesias Evang\xE9licas y Protestantes",battleOfPichincha:"Batalla de Pichincha",firstCryOfIndependence:"Primer Grito de Independencia",independenceOfGuayaquil:"Independencia de Guayaquil",allSoulsDay:"D\xEDa de los Difuntos",independenceOfCuenca:"Independencia de Cuenca"};var ee=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"carnivalMonday",rule:{type:"easterRelative",offset:-48}},{key:"carnivalTuesday",rule:{type:"easterRelative",offset:-47}},{key:"memoryDay",rule:{type:"fixed",month:3,day:24}},{key:"malvinasDay",rule:{type:"fixed",month:4,day:2}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"mayRevolution",rule:{type:"fixed",month:5,day:25}},{key:"guemesDay",rule:{type:"fixed",month:6,day:17},shift:"nearestMonday"},{key:"belgranoDay",rule:{type:"fixed",month:6,day:20}},{key:"independenceDay",rule:{type:"fixed",month:7,day:9}},{key:"sanMartinDay",rule:{type:"fixed",month:8,day:17},shift:"nearestMonday"},{key:"diversityDay",rule:{type:"fixed",month:10,day:12},shift:"nearestMonday"},{key:"sovereigntyDay",rule:{type:"fixed",month:11,day:20},shift:"nearestMonday"},{key:"immaculateConception",rule:{type:"fixed",month:12,day:8}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}],{getHolidays:ae,isHoliday:te,getNextHoliday:ne,isBusinessDay:ie,businessDays:se,diffBusinessDays:oe,businessHours:re,diffBusinessHours:ye}=l(ee,c);var Y={};g(Y,{businessDays:()=>me,businessHours:()=>De,diffBusinessDays:()=>pe,diffBusinessHours:()=>he,getHolidays:()=>le,getNextHoliday:()=>fe,isBusinessDay:()=>ce,isHoliday:()=>ue});var J={newYear:"Ano Novo",epiphany:"Dia de Reis",holyThursday:"Quinta-feira Santa",goodFriday:"Sexta-feira Santa",easterSunday:"Domingo de P\xE1scoa",laborDay:"Dia do Trabalhador",ascension:"Ascens\xE3o do Senhor",corpusChristi:"Corpus Christi",christmas:"Natal",christmasEve:"V\xE9spera de Natal",newYearsEve:"V\xE9spera de Ano Novo",allSaints:"Dia de Todos os Santos",assumptionMary:"Assun\xE7\xE3o de Nossa Senhora",immaculateConception:"Imaculada Concei\xE7\xE3o",carnivalMonday:"Segunda-feira de Carnaval",carnivalTuesday:"Ter\xE7a-feira de Carnaval",tiradentesDay:"Tiradentes",independenceDay:"Independ\xEAncia do Brasil",ladyAparecida:"Nossa Senhora Aparecida",allSouls:"Finados",republicProclamation:"Proclama\xE7\xE3o da Rep\xFAblica",blackConsciousness:"Dia da Consci\xEAncia Negra"};var de=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"carnivalMonday",rule:{type:"easterRelative",offset:-48}},{key:"carnivalTuesday",rule:{type:"easterRelative",offset:-47}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"tiradentesDay",rule:{type:"fixed",month:4,day:21}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"corpusChristi",rule:{type:"easterRelative",offset:60}},{key:"independenceDay",rule:{type:"fixed",month:9,day:7}},{key:"ladyAparecida",rule:{type:"fixed",month:10,day:12}},{key:"allSouls",rule:{type:"fixed",month:11,day:2}},{key:"republicProclamation",rule:{type:"fixed",month:11,day:15}},{key:"blackConsciousness",rule:{type:"fixed",month:11,day:20}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}],{getHolidays:le,isHoliday:ue,getNextHoliday:fe,isBusinessDay:ce,businessDays:me,diffBusinessDays:pe,businessHours:De,diffBusinessHours:he}=l(de,J);var W={};g(W,{businessDays:()=>be,businessHours:()=>ve,diffBusinessDays:()=>Te,diffBusinessHours:()=>Me,getHolidays:()=>ke,getNextHoliday:()=>xe,isBusinessDay:()=>Ce,isHoliday:()=>He});var ge=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"independenceDay",rule:{type:"fixed",month:7,day:20}},{key:"boyacaBattle",rule:{type:"fixed",month:8,day:7}},{key:"immaculateConception",rule:{type:"fixed",month:12,day:8}},{key:"christmas",rule:{type:"fixed",month:12,day:25}},{key:"epiphany",rule:{type:"fixed",month:1,day:6},shift:"emiliani"},{key:"saintJoseph",rule:{type:"fixed",month:3,day:19},shift:"emiliani"},{key:"saintPeterPaul",rule:{type:"fixed",month:6,day:29},shift:"emiliani"},{key:"assumptionMary",rule:{type:"fixed",month:8,day:15},shift:"emiliani"},{key:"columbusDay",rule:{type:"fixed",month:10,day:12},shift:"emiliani"},{key:"allSaints",rule:{type:"fixed",month:11,day:1},shift:"emiliani"},{key:"independenceCartagena",rule:{type:"fixed",month:11,day:11},shift:"emiliani"},{key:"chiquinquira",rule:{type:"custom",calc:e=>e>=2026?new Date(Date.UTC(e,6,9)):null},shift:"emiliani"},{key:"holyThursday",rule:{type:"easterRelative",offset:-3}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"ascension",rule:{type:"easterRelative",offset:39},shift:"emiliani"},{key:"corpusChristi",rule:{type:"easterRelative",offset:60},shift:"emiliani"},{key:"sacredHeart",rule:{type:"easterRelative",offset:68},shift:"emiliani"}],{getHolidays:ke,isHoliday:He,getNextHoliday:xe,isBusinessDay:Ce,businessDays:be,diffBusinessDays:Te,businessHours:ve,diffBusinessHours:Me}=l(ge,c);var q={};g(q,{businessDays:()=>Re,businessHours:()=>Ie,diffBusinessDays:()=>Pe,diffBusinessHours:()=>Oe,getHolidays:()=>Ue,getNextHoliday:()=>Be,isBusinessDay:()=>we,isHoliday:()=>Se});var Ne=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"constitutionDay",rule:{type:"nthWeekday",month:2,weekday:1,n:1}},{key:"benitoJuarez",rule:{type:"nthWeekday",month:3,weekday:1,n:3}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"independenceDay",rule:{type:"fixed",month:9,day:16}},{key:"revolutionDay",rule:{type:"nthWeekday",month:11,weekday:1,n:3}},{key:"transmissionExecutive",rule:{type:"custom",calc:e=>{if(e>=2024){if((e-2024)%6===0)return new Date(Date.UTC(e,9,1))}else if((e-2018)%6===0)return new Date(Date.UTC(e,11,1));return null}}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}],{getHolidays:Ue,isHoliday:Se,getNextHoliday:Be,isBusinessDay:we,businessDays:Re,diffBusinessDays:Pe,businessHours:Ie,diffBusinessHours:Oe}=l(Ne,c);var V={};g(V,{businessDays:()=>Ye,businessHours:()=>qe,diffBusinessDays:()=>We,diffBusinessHours:()=>Le,getHolidays:()=>Fe,getNextHoliday:()=>Ee,isBusinessDay:()=>Je,isHoliday:()=>Ge});var L={newYear:"New Year's Day",epiphany:"Epiphany",holyThursday:"Holy Thursday",goodFriday:"Good Friday",easterSunday:"Easter Sunday",laborDay:"Labor Day",ascension:"Ascension Day",corpusChristi:"Corpus Christi",christmas:"Christmas Day",christmasEve:"Christmas Eve",newYearsEve:"New Year's Eve",allSaints:"All Saints' Day",saintJoseph:"Saint Joseph's Day",sacredHeart:"Sacred Heart",saintPeterPaul:"Saint Peter and Saint Paul",independenceDay:"Independence Day",boyacaBattle:"Battle of Boyac\xE1",assumptionMary:"Assumption of Mary",columbusDay:"Columbus Day",independenceCartagena:"Independence of Cartagena",immaculateConception:"Immaculate Conception",chiquinquira:"Our Lady of the Rosary of Chiquinquir\xE1",constitutionDay:"Constitution Day",benitoJuarez:"Benito Ju\xE1rez Birthday",revolutionDay:"Revolution Day",virginGuadalupe:"Our Lady of Guadalupe",mlkDay:"Martin Luther King Jr. Day",presidentsDay:"Presidents' Day",memorialDay:"Memorial Day",independenceDayUS:"Independence Day",thanksgivingDay:"Thanksgiving Day",veteransDay:"Veterans Day",independenceDay1:"Independence Day",independenceDay2:"National Holidays",battleOfJunin:"Battle of Junin",santaRosaDeLima:"Santa Rosa de Lima",battleOfAngamos:"Battle of Angamos",battleOfAyacucho:"Battle of Ayacucho",holySaturday:"Holy Saturday",navyDay:"Navy Day",indigenousPeoplesDay:"National Day of Indigenous Peoples",ourLadyOfMountCarmel:"Our Lady of Mount Carmel",armyDay:"Army Day",reformationDay:"Reformation Day",battleOfPichincha:"Battle of Pichincha",firstCryOfIndependence:"First Cry of Independence",independenceOfGuayaquil:"Independence of Guayaquil",allSoulsDay:"All Souls Day",independenceOfCuenca:"Independence of Cuenca"};var Ae=[{key:"newYear",rule:{type:"fixed",month:1,day:1},shift:"observedUS"},{key:"independenceDayUS",rule:{type:"fixed",month:7,day:4},shift:"observedUS"},{key:"veteransDay",rule:{type:"fixed",month:11,day:11},shift:"observedUS"},{key:"christmas",rule:{type:"fixed",month:12,day:25},shift:"observedUS"},{key:"mlkDay",rule:{type:"nthWeekday",month:1,weekday:1,n:3}},{key:"presidentsDay",rule:{type:"nthWeekday",month:2,weekday:1,n:3}},{key:"memorialDay",rule:{type:"nthWeekday",month:5,weekday:1,n:-1}},{key:"laborDay",rule:{type:"nthWeekday",month:9,weekday:1,n:1}},{key:"columbusDay",rule:{type:"nthWeekday",month:10,weekday:1,n:2}},{key:"thanksgivingDay",rule:{type:"nthWeekday",month:11,weekday:4,n:4}}],{getHolidays:Fe,isHoliday:Ge,getNextHoliday:Ee,isBusinessDay:Je,businessDays:Ye,diffBusinessDays:We,businessHours:qe,diffBusinessHours:Le}=l(Ae,L);var z={};g(z,{businessDays:()=>Xe,businessHours:()=>_e,diffBusinessDays:()=>Ze,diffBusinessHours:()=>$e,getHolidays:()=>ze,getNextHoliday:()=>Ke,isBusinessDay:()=>Qe,isHoliday:()=>je});var Ve=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"holyThursday",rule:{type:"easterRelative",offset:-3}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"saintPeterPaul",rule:{type:"fixed",month:6,day:29}},{key:"independenceDay1",rule:{type:"fixed",month:7,day:28}},{key:"independenceDay2",rule:{type:"fixed",month:7,day:29}},{key:"battleOfJunin",rule:{type:"fixed",month:8,day:6}},{key:"santaRosaDeLima",rule:{type:"fixed",month:8,day:30}},{key:"battleOfAngamos",rule:{type:"fixed",month:10,day:8}},{key:"allSaints",rule:{type:"fixed",month:11,day:1}},{key:"immaculateConception",rule:{type:"fixed",month:12,day:8}},{key:"battleOfAyacucho",rule:{type:"fixed",month:12,day:9}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}],{getHolidays:ze,isHoliday:je,getNextHoliday:Ke,isBusinessDay:Qe,businessDays:Xe,diffBusinessDays:Ze,businessHours:_e,diffBusinessHours:$e}=l(Ve,c);var j={};g(j,{businessDays:()=>sa,businessHours:()=>ra,diffBusinessDays:()=>oa,diffBusinessHours:()=>ya,getHolidays:()=>aa,getNextHoliday:()=>na,isBusinessDay:()=>ia,isHoliday:()=>ta});var ea=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"holySaturday",rule:{type:"easterRelative",offset:-1}},{key:"laborDay",rule:{type:"fixed",month:5,day:1}},{key:"navyDay",rule:{type:"fixed",month:5,day:21}},{key:"indigenousPeoplesDay",rule:{type:"fixed",month:6,day:21}},{key:"saintPeterPaul",rule:{type:"fixed",month:6,day:29},shift:"nearestMonday"},{key:"ourLadyOfMountCarmel",rule:{type:"fixed",month:7,day:16}},{key:"assumptionMary",rule:{type:"fixed",month:8,day:15}},{key:"independenceDay",rule:{type:"fixed",month:9,day:18}},{key:"armyDay",rule:{type:"fixed",month:9,day:19}},{key:"columbusDay",rule:{type:"fixed",month:10,day:12},shift:"nearestMonday"},{key:"reformationDay",rule:{type:"fixed",month:10,day:31},shift:"nearestMonday"},{key:"allSaints",rule:{type:"fixed",month:11,day:1}},{key:"immaculateConception",rule:{type:"fixed",month:12,day:8}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}],{getHolidays:aa,isHoliday:ta,getNextHoliday:na,isBusinessDay:ia,businessDays:sa,diffBusinessDays:oa,businessHours:ra,diffBusinessHours:ya}=l(ea,c);var K={};g(K,{businessDays:()=>ma,businessHours:()=>Da,diffBusinessDays:()=>pa,diffBusinessHours:()=>ha,getHolidays:()=>la,getNextHoliday:()=>fa,isBusinessDay:()=>ca,isHoliday:()=>ua});var da=[{key:"newYear",rule:{type:"fixed",month:1,day:1}},{key:"carnivalMonday",rule:{type:"easterRelative",offset:-48}},{key:"carnivalTuesday",rule:{type:"easterRelative",offset:-47}},{key:"goodFriday",rule:{type:"easterRelative",offset:-2}},{key:"laborDay",rule:{type:"fixed",month:5,day:1},shift:"nearestMonday"},{key:"battleOfPichincha",rule:{type:"fixed",month:5,day:24},shift:"nearestMonday"},{key:"firstCryOfIndependence",rule:{type:"fixed",month:8,day:10},shift:"nearestMonday"},{key:"independenceOfGuayaquil",rule:{type:"fixed",month:10,day:9},shift:"nearestMonday"},{key:"allSoulsDay",rule:{type:"fixed",month:11,day:2}},{key:"independenceOfCuenca",rule:{type:"fixed",month:11,day:3}},{key:"christmas",rule:{type:"fixed",month:12,day:25}}],{getHolidays:la,isHoliday:ua,getNextHoliday:fa,isBusinessDay:ca,businessDays:ma,diffBusinessDays:pa,businessHours:Da,diffBusinessHours:ha}=l(da,c);export{E as ar,Y as br,j as cl,W as co,K as ec,q as mx,z as pe,V as us};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map