@mmb-digital/ds-lilly 1.0.0-alpha.4 → 1.0.0-alpha.6

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 (106) hide show
  1. package/cjs/components/Components/Dropdown/Dropdown.d.ts +3 -1
  2. package/cjs/components/Components/Dropdown/Dropdown.d.ts.map +1 -1
  3. package/cjs/components/Components/Dropdown/Dropdown.js +1 -1
  4. package/cjs/components/Components/Dropdown/Dropdown.js.map +1 -1
  5. package/cjs/components/Form/DatePicker/DatePicker.d.ts +3 -3
  6. package/cjs/components/Form/DatePicker/DatePicker.d.ts.map +1 -1
  7. package/cjs/components/Form/DatePicker/DatePicker.js +1 -1
  8. package/cjs/components/Form/DatePicker/DatePicker.js.map +1 -1
  9. package/cjs/components/Form/Multiselect/Multiselect.d.ts.map +1 -1
  10. package/cjs/components/Form/Multiselect/Multiselect.js +1 -1
  11. package/cjs/components/Form/Multiselect/Multiselect.js.map +1 -1
  12. package/cjs/components/Navigation/Stepper/Stepper.d.ts +2 -2
  13. package/cjs/components/Navigation/Stepper/Stepper.d.ts.map +1 -1
  14. package/cjs/components/Navigation/Stepper/_parts_/Step.d.ts.map +1 -1
  15. package/cjs/components/Navigation/Stepper/_parts_/Step.js +1 -1
  16. package/cjs/components/Navigation/Stepper/_parts_/Step.js.map +1 -1
  17. package/cjs/ds-lilly.css +75 -24
  18. package/cjs/ext/date-fns/differenceInBusinessDays.js +1 -1
  19. package/cjs/ext/date-fns/differenceInBusinessDays.js.map +1 -1
  20. package/cjs/ext/date-fns/format.js +1 -1
  21. package/cjs/ext/date-fns/format.js.map +1 -1
  22. package/cjs/ext/date-fns/format2.js +1 -1
  23. package/cjs/ext/date-fns/format2.js.map +1 -1
  24. package/cjs/ext/date-fns/formatISO9075.js +1 -1
  25. package/cjs/ext/date-fns/formatISO9075.js.map +1 -1
  26. package/cjs/ext/date-fns/formatRFC3339.js +1 -1
  27. package/cjs/ext/date-fns/formatRFC3339.js.map +1 -1
  28. package/cjs/ext/date-fns/formatRFC7231.js +1 -1
  29. package/cjs/ext/date-fns/formatRFC7231.js.map +1 -1
  30. package/cjs/ext/date-fns/index.js +1 -1
  31. package/cjs/ext/date-fns/index.js.map +1 -1
  32. package/cjs/ext/date-fns/isMatch.js +1 -1
  33. package/cjs/ext/date-fns/isMatch.js.map +1 -1
  34. package/cjs/ext/date-fns/isValid.js +1 -1
  35. package/cjs/ext/date-fns/isValid.js.map +1 -1
  36. package/cjs/ext/date-fns/isValid2.js +1 -1
  37. package/cjs/ext/date-fns/isValid2.js.map +1 -1
  38. package/cjs/ext/date-fns/lightFormat.js +1 -1
  39. package/cjs/ext/date-fns/lightFormat.js.map +1 -1
  40. package/cjs/ext/react-datepicker/dist/react-datepicker.min.js +1 -1
  41. package/cjs/index.js +1 -1
  42. package/cjs/utils/index.js +1 -1
  43. package/cjs/utils/parseDateValue.d.ts +2 -0
  44. package/cjs/utils/parseDateValue.d.ts.map +1 -1
  45. package/cjs/utils/parseDateValue.js +1 -1
  46. package/cjs/utils/parseDateValue.js.map +1 -1
  47. package/components/Components/Dropdown/Dropdown.d.ts +3 -1
  48. package/components/Components/Dropdown/Dropdown.d.ts.map +1 -1
  49. package/components/Components/Dropdown/Dropdown.js +1 -1
  50. package/components/Components/Dropdown/Dropdown.js.map +1 -1
  51. package/components/Form/DatePicker/DatePicker.d.ts +3 -3
  52. package/components/Form/DatePicker/DatePicker.d.ts.map +1 -1
  53. package/components/Form/DatePicker/DatePicker.js +1 -1
  54. package/components/Form/DatePicker/DatePicker.js.map +1 -1
  55. package/components/Form/Multiselect/Multiselect.d.ts.map +1 -1
  56. package/components/Form/Multiselect/Multiselect.js +1 -1
  57. package/components/Form/Multiselect/Multiselect.js.map +1 -1
  58. package/components/Navigation/Stepper/Stepper.d.ts +2 -2
  59. package/components/Navigation/Stepper/Stepper.d.ts.map +1 -1
  60. package/components/Navigation/Stepper/_parts_/Step.d.ts.map +1 -1
  61. package/components/Navigation/Stepper/_parts_/Step.js +1 -1
  62. package/components/Navigation/Stepper/_parts_/Step.js.map +1 -1
  63. package/ds-lilly.css +75 -24
  64. package/ext/date-fns/differenceInBusinessDays.js +1 -1
  65. package/ext/date-fns/differenceInBusinessDays.js.map +1 -1
  66. package/ext/date-fns/format.js +1 -1
  67. package/ext/date-fns/format.js.map +1 -1
  68. package/ext/date-fns/format2.js +1 -1
  69. package/ext/date-fns/format2.js.map +1 -1
  70. package/ext/date-fns/formatISO9075.js +1 -1
  71. package/ext/date-fns/formatISO9075.js.map +1 -1
  72. package/ext/date-fns/formatRFC3339.js +1 -1
  73. package/ext/date-fns/formatRFC3339.js.map +1 -1
  74. package/ext/date-fns/formatRFC7231.js +1 -1
  75. package/ext/date-fns/formatRFC7231.js.map +1 -1
  76. package/ext/date-fns/index.js +1 -1
  77. package/ext/date-fns/index.js.map +1 -1
  78. package/ext/date-fns/isMatch.js +1 -1
  79. package/ext/date-fns/isMatch.js.map +1 -1
  80. package/ext/date-fns/isValid.js +1 -1
  81. package/ext/date-fns/isValid.js.map +1 -1
  82. package/ext/date-fns/isValid2.js +1 -1
  83. package/ext/date-fns/isValid2.js.map +1 -1
  84. package/ext/date-fns/lightFormat.js +1 -1
  85. package/ext/date-fns/lightFormat.js.map +1 -1
  86. package/ext/react-datepicker/dist/react-datepicker.min.js +1 -1
  87. package/index.js +1 -1
  88. package/index.js.map +1 -1
  89. package/package.json +1 -1
  90. package/utils/index.js +1 -1
  91. package/utils/parseDateValue.d.ts +2 -0
  92. package/utils/parseDateValue.d.ts.map +1 -1
  93. package/utils/parseDateValue.js +1 -1
  94. package/utils/parseDateValue.js.map +1 -1
  95. /package/assets/{154a34b27713ce60ed87.ttf → 0144096826fba60c6b42.ttf} +0 -0
  96. /package/assets/{29b223051fcdc7e647a0.ttf → 07397a2b6aafb84679e0.ttf} +0 -0
  97. /package/assets/{10146f5a107bfe9737e0.eot → 23bb9886bdd0dc44dff6.eot} +0 -0
  98. /package/assets/{72397667f316684c1ff6.svg → 46aada24ff89321385d2.svg} +0 -0
  99. /package/assets/{274e10c008ea8aa50da6.gif → 7cb188cf12d09151747a.gif} +0 -0
  100. /package/assets/{596bf97f56b7c6c7abad.woff → 7d9de53606f21f2f6c45.woff} +0 -0
  101. /package/assets/{56db5bf5e458eeeeb90b.eot → 7e361d8bd5c55bf6c21c.eot} +0 -0
  102. /package/assets/{918cf18b4b3ca0c91376.eot → d40c7e6631a0d677a706.eot} +0 -0
  103. /package/assets/{cd0adb734822b7516b9c.woff → d9c1330c1f1ced96701f.woff} +0 -0
  104. /package/assets/{e148828367c82bf994ea.svg → f5385a37dd88672e239c.svg} +0 -0
  105. /package/assets/{d0da91c728d096b8fc29.gif → f71f0ecf662dfd59d6bb.gif} +0 -0
  106. /package/assets/{e4aef169e3e6a64573c1.eot → ff96897ac09f3966a01a.eot} +0 -0
package/cjs/ds-lilly.css CHANGED
@@ -1473,6 +1473,15 @@ body {
1473
1473
  --fontSizeListMobileMenu: var(--fontSizeSmall);
1474
1474
  --marginTopItemMobileMenu: 0;
1475
1475
  --paddingLinkMobileMenu: var(--spaceMedium) var(--spaceXSmall);
1476
+ --fontSizeTitleStepper: var(--fontSizeXSmall);
1477
+ --fontSizeIconStepper: var(--fontSizeSmall);
1478
+ --fontWeightIconStepper: var(--fontWeightBold);
1479
+ --colorIconStepper: var(--fgInverseDefault);
1480
+ --colorTitleStepper: var(--fgNeutralSubtlest);
1481
+ --colorActiveTitleStepper: var(--fgNeutralDefault);
1482
+ --fontWeightItemDoneTitleStepper: var(--fontWeightBold);
1483
+ --leftLineStepper: calc(50% + 35px);
1484
+ --widthLineStepper: calc(100% - 45px);
1476
1485
  --fontSizeAmount: var(--fontSizeMedium);
1477
1486
  --fontWeightAmount: var(--fontWeightNormal);
1478
1487
  --lineHeightAmount: var(--lineHeightMedium);
@@ -7290,6 +7299,9 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
7290
7299
  z-index: 1;
7291
7300
  }
7292
7301
 
7302
+ .custom-datepicker {
7303
+ z-index: 1000 !important;
7304
+ }
7293
7305
  .custom-datepicker .react-datepicker {
7294
7306
  border: 0 !important;
7295
7307
  box-shadow: var(--boxShadowXXSmall);
@@ -7310,9 +7322,11 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
7310
7322
  padding-bottom: 3px;
7311
7323
  }
7312
7324
  .custom-datepicker .react-datepicker__triangle {
7325
+ display: none;
7313
7326
  stroke: unset !important;
7314
- fill: var(--bgBrandDefaultHover) !important;
7315
- color: var(--bgBrandDefaultHover) !important;
7327
+ margin-top: 1px;
7328
+ fill: var(--fgInverseDefault) !important;
7329
+ color: var(--fgInverseDefault) !important;
7316
7330
  }
7317
7331
  .custom-datepicker .react-datepicker-year-header {
7318
7332
  background: var(--bgBrandDefaultHover);
@@ -7325,6 +7339,7 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
7325
7339
  }
7326
7340
  .custom-datepicker .react-datepicker__header {
7327
7341
  padding-top: 0;
7342
+ border-bottom: none;
7328
7343
  }
7329
7344
  .custom-datepicker .react-datepicker__header__dropdown {
7330
7345
  background: var(--bgBrandDefaultHover);
@@ -7341,15 +7356,18 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
7341
7356
  line-height: 26px;
7342
7357
  height: 26px;
7343
7358
  user-select: none;
7359
+ color: var(--bgBrandBold);
7344
7360
  }
7345
7361
  .custom-datepicker .react-datepicker__month-option:hover, .custom-datepicker .react-datepicker__month-option:focus, .custom-datepicker .react-datepicker__year-option:hover, .custom-datepicker .react-datepicker__year-option:focus {
7346
- background: var(--bgBrandDefaultHover);
7347
- color: var(--bgBrandBold);
7362
+ background: none;
7348
7363
  cursor: pointer;
7349
7364
  outline: 0;
7365
+ font-weight: 600;
7350
7366
  }
7351
- .custom-datepicker .react-datepicker__month-option--selected_month, .custom-datepicker .react-datepicker__month-option--selected_year, .custom-datepicker .react-datepicker__year-option--selected_month, .custom-datepicker .react-datepicker__year-option--selected_year {
7352
- color: var(--fgBrandDefault);
7367
+ .custom-datepicker .react-datepicker__month-option--selected_month, .custom-datepicker .react-datepicker__month-option--selected_year, .custom-datepicker .react-datepicker__month-option--selected_month:hover, .custom-datepicker .react-datepicker__month-option--selected_year:hover, .custom-datepicker .react-datepicker__year-option--selected_month, .custom-datepicker .react-datepicker__year-option--selected_year, .custom-datepicker .react-datepicker__year-option--selected_month:hover, .custom-datepicker .react-datepicker__year-option--selected_year:hover {
7368
+ background: var(--bgBrandBold);
7369
+ color: var(--fgInverseDefault);
7370
+ font-weight: 500;
7353
7371
  }
7354
7372
  .custom-datepicker .react-datepicker__month-option--selected, .custom-datepicker .react-datepicker__year-option--selected {
7355
7373
  display: none;
@@ -7401,9 +7419,9 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
7401
7419
  height: 2.25rem;
7402
7420
  line-height: 2.25rem;
7403
7421
  margin: 0.025rem;
7404
- color: var(--fgNeutralDefault);
7422
+ color: var(--bgBrandBold);
7405
7423
  }
7406
- .custom-datepicker .react-datepicker__month-text--outside-month, .custom-datepicker .react-datepicker__day--outside-month {
7424
+ .custom-datepicker .react-datepicker__month-text--outside-month, .custom-datepicker .react-datepicker__month-text--disabled, .custom-datepicker .react-datepicker__day--outside-month, .custom-datepicker .react-datepicker__day--disabled {
7407
7425
  color: var(--fgDisabledDefault);
7408
7426
  }
7409
7427
  .custom-datepicker .react-datepicker__month-text:hover, .custom-datepicker .react-datepicker__month-text:focus, .custom-datepicker .react-datepicker__day:hover, .custom-datepicker .react-datepicker__day:focus {
@@ -7413,6 +7431,13 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
7413
7431
  cursor: pointer;
7414
7432
  outline: 0;
7415
7433
  }
7434
+ .custom-datepicker .react-datepicker__month-text--disabled:hover, .custom-datepicker .react-datepicker__month-text--disabled:focus, .custom-datepicker .react-datepicker__day--disabled:hover, .custom-datepicker .react-datepicker__day--disabled:focus {
7435
+ background: unset !important;
7436
+ cursor: default !important;
7437
+ color: var(--fgDisabledDefault) !important;
7438
+ outline: unset !important;
7439
+ border-color: unset !important;
7440
+ }
7416
7441
  .custom-datepicker .react-datepicker__month-text--selected, .custom-datepicker .react-datepicker__month-text--today, .custom-datepicker .react-datepicker__month-text--keyboard-selected, .custom-datepicker .react-datepicker__month-text:hover, .custom-datepicker .react-datepicker__month-text:focus, .custom-datepicker .react-datepicker__day--selected, .custom-datepicker .react-datepicker__day--today, .custom-datepicker .react-datepicker__day--keyboard-selected, .custom-datepicker .react-datepicker__day:hover, .custom-datepicker .react-datepicker__day:focus {
7417
7442
  border-radius: 50% !important;
7418
7443
  }
@@ -7440,11 +7465,11 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
7440
7465
  border-radius: 20px !important;
7441
7466
  }
7442
7467
  .custom-datepicker .react-datepicker__month-dropdown, .custom-datepicker .react-datepicker__year-dropdown {
7443
- border-radius: 0;
7444
- border: 0;
7445
- box-shadow: var(--boxShadowXXSmall);
7446
- background: var(--fgInverseDefault);
7447
- color: var(--fgNeutralDefault);
7468
+ border-radius: var(--borderRadiusControl2);
7469
+ border: var(--borderControl2);
7470
+ box-shadow: none;
7471
+ background: var(--fgInverseDefault) !important;
7472
+ color: var(--fgNeutralDefault) !important;
7448
7473
  }
7449
7474
  .custom-datepicker .react-datepicker__month-read-view, .custom-datepicker .react-datepicker__year-read-view, .custom-datepicker .react-datepicker__month-option {
7450
7475
  visibility: visible !important;
@@ -8330,8 +8355,10 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
8330
8355
  .m-stepper__icon {
8331
8356
  align-items: center;
8332
8357
  background: var(--bgNeutralDefault);
8358
+ font-size: var(--fontSizeIconStepper);
8359
+ font-weight: var(--fontWeightIconStepper);
8333
8360
  border-radius: 50%;
8334
- color: var(--fgNeutralDefault);
8361
+ color: var(--colorIconStepper);
8335
8362
  display: flex;
8336
8363
  height: 32px;
8337
8364
  justify-content: center;
@@ -8345,23 +8372,25 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
8345
8372
  }
8346
8373
 
8347
8374
  .m-stepper__title {
8375
+ color: var(--colorTitleStepper);
8348
8376
  display: inline-block;
8349
- font-size: var(--fontSizeSmall);
8377
+ font-size: var(--fontSizeTitleStepper);
8350
8378
  font-weight: normal;
8351
8379
  line-height: var(--lineHeightSmall);
8352
8380
  margin: var(--spaceXSmall) 0 0 0;
8353
8381
  }
8354
8382
 
8355
8383
  .m-stepper__line {
8356
- background: var(--bgNeutralDefault);
8357
8384
  display: block;
8358
8385
  height: 2px;
8359
- left: 50%;
8386
+ left: var(--leftLineStepper);
8360
8387
  position: absolute;
8361
8388
  top: 16px;
8362
- width: 100%;
8389
+ width: var(--widthLineStepper);
8390
+ background: var(--bgNeutralDefault);
8363
8391
  }
8364
8392
  .m-stepper__line .col {
8393
+ float: left;
8365
8394
  height: 2px;
8366
8395
  }
8367
8396
 
@@ -8369,15 +8398,37 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
8369
8398
  font-weight: var(--fontWeightBold);
8370
8399
  }
8371
8400
 
8401
+ .m-stepper__item--active .m-stepper__title,
8402
+ .m-stepper__item--done .m-stepper__title {
8403
+ color: var(--colorActiveTitleStepper);
8404
+ font-weight: var(--fontWeightItemDoneTitleStepper);
8405
+ }
8372
8406
  .m-stepper__item--active .m-stepper__icon,
8373
8407
  .m-stepper__item--done .m-stepper__icon {
8374
8408
  background: var(--bgBrandBold);
8375
- color: var(--fgInverseDefault);
8376
8409
  }
8377
- .m-stepper__item--active .m-stepper__line .col,
8378
- .m-stepper__item--done .m-stepper__line .col {
8410
+ .m-stepper__item--active .m-stepper__line .col:first-child,
8411
+ .m-stepper__item--done .m-stepper__line .col:first-child {
8412
+ background: var(--bgBrandBold);
8413
+ }
8414
+
8415
+ .m-stepper__item--active .m-stepper__line--with-substep {
8416
+ background: none;
8417
+ }
8418
+ .m-stepper__item--active .m-stepper__line .col:first-child {
8379
8419
  background: var(--bgBrandBold);
8380
8420
  }
8421
+ .m-stepper__item--active .m-stepper__line .col:nth-child(2) {
8422
+ position: relative;
8423
+ }
8424
+ .m-stepper__item--active .m-stepper__line .col:nth-child(2)::before {
8425
+ content: "";
8426
+ position: absolute;
8427
+ left: 10px;
8428
+ height: 100%;
8429
+ width: calc(100% - 10px);
8430
+ background: var(--bgNeutralDefault);
8431
+ }
8381
8432
 
8382
8433
  .u-vHide {
8383
8434
  border: 0;
@@ -9268,7 +9319,7 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
9268
9319
  /* Slider */
9269
9320
  .slick-loading .slick-list
9270
9321
  {
9271
- background: #fff url('assets/d0da91c728d096b8fc29.gif') center center no-repeat;
9322
+ background: #fff url('assets/7cb188cf12d09151747a.gif') center center no-repeat;
9272
9323
  }
9273
9324
 
9274
9325
  /* Icons */
@@ -9278,8 +9329,8 @@ body.dark .l-mobilePanel--secondary .l-mobilePanel__close {
9278
9329
  font-weight: normal;
9279
9330
  font-style: normal;
9280
9331
 
9281
- src: url('assets/10146f5a107bfe9737e0.eot');
9282
- src: url('assets/918cf18b4b3ca0c91376.eot') format('embedded-opentype'), url('assets/cd0adb734822b7516b9c.woff') format('woff'), url('assets/154a34b27713ce60ed87.ttf') format('truetype'), url('assets/72397667f316684c1ff6.svg') format('svg');
9332
+ src: url('assets/ff96897ac09f3966a01a.eot');
9333
+ src: url('assets/23bb9886bdd0dc44dff6.eot') format('embedded-opentype'), url('assets/7d9de53606f21f2f6c45.woff') format('woff'), url('assets/07397a2b6aafb84679e0.ttf') format('truetype'), url('assets/46aada24ff89321385d2.svg') format('svg');
9283
9334
  }
9284
9335
  /* Arrows */
9285
9336
  .slick-prev,
@@ -1,2 +1,2 @@
1
- "use strict";var e,r=require("../../_virtual/differenceInBusinessDays.js"),i=require("./addDays.js"),s=require("./differenceInCalendarDays.js"),a=require("./isSameDay.js"),n=require("./isValid.js"),t=require("./isWeekend.js"),u=require("./toDate.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.differenceInBusinessDays=function(e,r){const i=(0,D.toDate)(e);let s=(0,D.toDate)(r);if(!(0,f.isValid)(i)||!(0,f.isValid)(s))return NaN;const a=(0,d.differenceInCalendarDays)(i,s),n=a<0?-1:1,t=Math.trunc(a/7);let u=5*t;s=(0,_.addDays)(s,7*t);for(;!(0,q.isSameDay)(i,s);)u+=(0,o.isWeekend)(s)?0:n,s=(0,_.addDays)(s,n);return 0===u?0:u};var _=i.__require(),d=s.__require(),q=a.__require(),f=n.__require(),o=t.__require(),D=u.__require();return r.__exports};
1
+ "use strict";var e,r=require("../../_virtual/differenceInBusinessDays.js"),i=require("./addDays.js"),s=require("./differenceInCalendarDays.js"),a=require("./isSameDay.js"),n=require("./isValid2.js"),t=require("./isWeekend.js"),u=require("./toDate.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.differenceInBusinessDays=function(e,r){const i=(0,D.toDate)(e);let s=(0,D.toDate)(r);if(!(0,f.isValid)(i)||!(0,f.isValid)(s))return NaN;const a=(0,d.differenceInCalendarDays)(i,s),n=a<0?-1:1,t=Math.trunc(a/7);let u=5*t;s=(0,_.addDays)(s,7*t);for(;!(0,q.isSameDay)(i,s);)u+=(0,o.isWeekend)(s)?0:n,s=(0,_.addDays)(s,n);return 0===u?0:u};var _=i.__require(),d=s.__require(),q=a.__require(),f=n.__require(),o=t.__require(),D=u.__require();return r.__exports};
2
2
  //# sourceMappingURL=differenceInBusinessDays.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"differenceInBusinessDays.js","sources":["../../../../node_modules/date-fns/differenceInBusinessDays.js"],"sourcesContent":["\"use strict\";\nexports.differenceInBusinessDays = differenceInBusinessDays;\nvar _index = require(\"./addDays.js\");\nvar _index2 = require(\"./differenceInCalendarDays.js\");\nvar _index3 = require(\"./isSameDay.js\");\nvar _index4 = require(\"./isValid.js\");\nvar _index5 = require(\"./isWeekend.js\");\nvar _index6 = require(\"./toDate.js\");\n\n/**\n * @name differenceInBusinessDays\n * @category Day Helpers\n * @summary Get the number of business days between the given dates.\n *\n * @description\n * Get the number of business day periods between the given dates.\n * Business days being days that arent in the weekend.\n * Like `differenceInCalendarDays`, the function removes the times from\n * the dates before calculating the difference.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of business days\n *\n * @example\n * // How many business days are between\n * // 10 January 2014 and 20 July 2014?\n * const result = differenceInBusinessDays(\n * new Date(2014, 6, 20),\n * new Date(2014, 0, 10)\n * )\n * //=> 136\n *\n * // How many business days are between\n * // 30 November 2021 and 1 November 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 30),\n * new Date(2021, 10, 1)\n * )\n * //=> 21\n *\n * // How many business days are between\n * // 1 November 2021 and 1 December 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 11, 1)\n * )\n * //=> -22\n *\n * // How many business days are between\n * // 1 November 2021 and 1 November 2021 ?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 10, 1)\n * )\n * //=> 0\n */\nfunction differenceInBusinessDays(dateLeft, dateRight) {\n const _dateLeft = (0, _index6.toDate)(dateLeft);\n let _dateRight = (0, _index6.toDate)(dateRight);\n\n if (!(0, _index4.isValid)(_dateLeft) || !(0, _index4.isValid)(_dateRight))\n return NaN;\n\n const calendarDifference = (0, _index2.differenceInCalendarDays)(\n _dateLeft,\n _dateRight,\n );\n const sign = calendarDifference < 0 ? -1 : 1;\n\n const weeks = Math.trunc(calendarDifference / 7);\n\n let result = weeks * 5;\n _dateRight = (0, _index.addDays)(_dateRight, weeks * 7);\n\n // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week\n while (!(0, _index3.isSameDay)(_dateLeft, _dateRight)) {\n // sign is used to account for both negative and positive differences\n result += (0, _index5.isWeekend)(_dateRight) ? 0 : sign;\n _dateRight = (0, _index.addDays)(_dateRight, sign);\n }\n\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\n"],"names":["differenceInBusinessDays_1","__exports","differenceInBusinessDays","dateLeft","dateRight","_dateLeft","_index6","toDate","_dateRight","_index4","isValid","NaN","calendarDifference","_index2","differenceInCalendarDays","sign","weeks","Math","trunc","result","_index","addDays","_index3","isSameDay","_index5","isWeekend","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":"oTACgCA,EAAAC,UAAAC,yBA2DhC,SAAkCC,EAAUC,GAC1C,MAAMC,GAAY,EAAIC,EAAQC,QAAQJ,GACtC,IAAIK,GAAa,EAAIF,EAAQC,QAAQH,GAErC,KAAK,EAAIK,EAAQC,SAASL,MAAe,EAAII,EAAQC,SAASF,GAC5D,OAAOG,IAET,MAAMC,GAAqB,EAAIC,EAAQC,0BACrCT,EACAG,GAEIO,EAAOH,EAAqB,GAAK,EAAI,EAErCI,EAAQC,KAAKC,MAAMN,EAAqB,GAE9C,IAAIO,EAAiB,EAARH,EACbR,GAAa,EAAIY,EAAOC,SAASb,EAAoB,EAARQ,GAG7C,OAAQ,EAAIM,EAAQC,WAAWlB,EAAWG,IAExCW,IAAU,EAAIK,EAAQC,WAAWjB,GAAc,EAAIO,EACnDP,GAAa,EAAIY,EAAOC,SAASb,EAAYO,GAI/C,OAAkB,IAAXI,EAAe,EAAIA,CAC5B,EArFA,IAAIC,EAASM,EAAAA,YACTb,EAAUc,EAAAA,YACVL,EAAUM,EAAAA,YACVnB,EAAUoB,EAAAA,YACVL,EAAUM,EAAAA,YACVxB,EAAUyB,EAAAA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"differenceInBusinessDays.js","sources":["../../../../node_modules/date-fns/differenceInBusinessDays.js"],"sourcesContent":["\"use strict\";\nexports.differenceInBusinessDays = differenceInBusinessDays;\nvar _index = require(\"./addDays.js\");\nvar _index2 = require(\"./differenceInCalendarDays.js\");\nvar _index3 = require(\"./isSameDay.js\");\nvar _index4 = require(\"./isValid.js\");\nvar _index5 = require(\"./isWeekend.js\");\nvar _index6 = require(\"./toDate.js\");\n\n/**\n * @name differenceInBusinessDays\n * @category Day Helpers\n * @summary Get the number of business days between the given dates.\n *\n * @description\n * Get the number of business day periods between the given dates.\n * Business days being days that arent in the weekend.\n * Like `differenceInCalendarDays`, the function removes the times from\n * the dates before calculating the difference.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param dateLeft - The later date\n * @param dateRight - The earlier date\n *\n * @returns The number of business days\n *\n * @example\n * // How many business days are between\n * // 10 January 2014 and 20 July 2014?\n * const result = differenceInBusinessDays(\n * new Date(2014, 6, 20),\n * new Date(2014, 0, 10)\n * )\n * //=> 136\n *\n * // How many business days are between\n * // 30 November 2021 and 1 November 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 30),\n * new Date(2021, 10, 1)\n * )\n * //=> 21\n *\n * // How many business days are between\n * // 1 November 2021 and 1 December 2021?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 11, 1)\n * )\n * //=> -22\n *\n * // How many business days are between\n * // 1 November 2021 and 1 November 2021 ?\n * const result = differenceInBusinessDays(\n * new Date(2021, 10, 1),\n * new Date(2021, 10, 1)\n * )\n * //=> 0\n */\nfunction differenceInBusinessDays(dateLeft, dateRight) {\n const _dateLeft = (0, _index6.toDate)(dateLeft);\n let _dateRight = (0, _index6.toDate)(dateRight);\n\n if (!(0, _index4.isValid)(_dateLeft) || !(0, _index4.isValid)(_dateRight))\n return NaN;\n\n const calendarDifference = (0, _index2.differenceInCalendarDays)(\n _dateLeft,\n _dateRight,\n );\n const sign = calendarDifference < 0 ? -1 : 1;\n\n const weeks = Math.trunc(calendarDifference / 7);\n\n let result = weeks * 5;\n _dateRight = (0, _index.addDays)(_dateRight, weeks * 7);\n\n // the loop below will run at most 6 times to account for the remaining days that don't makeup a full week\n while (!(0, _index3.isSameDay)(_dateLeft, _dateRight)) {\n // sign is used to account for both negative and positive differences\n result += (0, _index5.isWeekend)(_dateRight) ? 0 : sign;\n _dateRight = (0, _index.addDays)(_dateRight, sign);\n }\n\n // Prevent negative zero\n return result === 0 ? 0 : result;\n}\n"],"names":["differenceInBusinessDays_1","__exports","differenceInBusinessDays","dateLeft","dateRight","_dateLeft","_index6","toDate","_dateRight","_index4","isValid","NaN","calendarDifference","_index2","differenceInCalendarDays","sign","weeks","Math","trunc","result","_index","addDays","_index3","isSameDay","_index5","isWeekend","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5"],"mappings":"qTACgCA,EAAAC,UAAAC,yBA2DhC,SAAkCC,EAAUC,GAC1C,MAAMC,GAAY,EAAIC,EAAQC,QAAQJ,GACtC,IAAIK,GAAa,EAAIF,EAAQC,QAAQH,GAErC,KAAK,EAAIK,EAAQC,SAASL,MAAe,EAAII,EAAQC,SAASF,GAC5D,OAAOG,IAET,MAAMC,GAAqB,EAAIC,EAAQC,0BACrCT,EACAG,GAEIO,EAAOH,EAAqB,GAAK,EAAI,EAErCI,EAAQC,KAAKC,MAAMN,EAAqB,GAE9C,IAAIO,EAAiB,EAARH,EACbR,GAAa,EAAIY,EAAOC,SAASb,EAAoB,EAARQ,GAG7C,OAAQ,EAAIM,EAAQC,WAAWlB,EAAWG,IAExCW,IAAU,EAAIK,EAAQC,WAAWjB,GAAc,EAAIO,EACnDP,GAAa,EAAIY,EAAOC,SAASb,EAAYO,GAI/C,OAAkB,IAAXI,EAAe,EAAIA,CAC5B,EArFA,IAAIC,EAASM,EAAAA,YACTb,EAAUc,EAAAA,YACVL,EAAUM,EAAAA,YACVnB,EAAUoB,EAAAA,YACVL,EAAUM,EAAAA,YACVxB,EAAUyB,EAAAA","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./_lib/defaultOptions.js"),t=require("./_lib/format/formatters.js"),r=require("./_lib/format/longFormatters.js"),o=require("./_lib/protectedTokens.js"),a=require("./isValid2.js"),n=require("./toDate2.js"),s=require("./locale/en-US.js");const i=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c=/^'([^]*?)'?$/,u=/''/g,f=/[a-zA-Z]/;function p(c,u,p){const k=e.getDefaultOptions(),d=p?.locale??k.locale??s.enUS,g=p?.firstWeekContainsDate??p?.locale?.options?.firstWeekContainsDate??k.firstWeekContainsDate??k.locale?.options?.firstWeekContainsDate??1,w=p?.weekStartsOn??p?.locale?.options?.weekStartsOn??k.weekStartsOn??k.locale?.options?.weekStartsOn??0,D=n.toDate(c);if(!a.isValid(D))throw new RangeError("Invalid time value");let O=u.match(l).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,r.longFormatters[t])(e,d.formatLong)}return e})).join("").match(i).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const r=e[0];if("'"===r)return{isToken:!1,value:m(e)};if(t.formatters[r])return{isToken:!0,value:e};if(r.match(f))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return{isToken:!1,value:e}}));d.localize.preprocessor&&(O=d.localize.preprocessor(D,O));const T={firstWeekContainsDate:g,weekStartsOn:w,locale:d};return O.map((e=>{if(!e.isToken)return e.value;const r=e.value;(!p?.useAdditionalWeekYearTokens&&o.isProtectedWeekYearToken(r)||!p?.useAdditionalDayOfYearTokens&&o.isProtectedDayOfYearToken(r))&&o.warnOrThrowProtectedError(r,u,String(c));return(0,t.formatters[r[0]])(D,r,d.localize,T)})).join("")}function m(e){const t=e.match(c);return t?t[1].replace(u,"'"):e}exports.formatters=t.formatters,exports.longFormatters=r.longFormatters,exports.default=p,exports.format=p,exports.formatDate=p;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./_lib/defaultOptions.js"),t=require("./_lib/format/formatters.js"),r=require("./_lib/format/longFormatters.js"),o=require("./_lib/protectedTokens.js"),a=require("./isValid.js"),n=require("./toDate2.js"),s=require("./locale/en-US.js");const i=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c=/^'([^]*?)'?$/,u=/''/g,f=/[a-zA-Z]/;function p(c,u,p){const k=e.getDefaultOptions(),d=p?.locale??k.locale??s.enUS,g=p?.firstWeekContainsDate??p?.locale?.options?.firstWeekContainsDate??k.firstWeekContainsDate??k.locale?.options?.firstWeekContainsDate??1,w=p?.weekStartsOn??p?.locale?.options?.weekStartsOn??k.weekStartsOn??k.locale?.options?.weekStartsOn??0,D=n.toDate(c);if(!a.isValid(D))throw new RangeError("Invalid time value");let O=u.match(l).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,r.longFormatters[t])(e,d.formatLong)}return e})).join("").match(i).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const r=e[0];if("'"===r)return{isToken:!1,value:m(e)};if(t.formatters[r])return{isToken:!0,value:e};if(r.match(f))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return{isToken:!1,value:e}}));d.localize.preprocessor&&(O=d.localize.preprocessor(D,O));const T={firstWeekContainsDate:g,weekStartsOn:w,locale:d};return O.map((e=>{if(!e.isToken)return e.value;const r=e.value;(!p?.useAdditionalWeekYearTokens&&o.isProtectedWeekYearToken(r)||!p?.useAdditionalDayOfYearTokens&&o.isProtectedDayOfYearToken(r))&&o.warnOrThrowProtectedError(r,u,String(c));return(0,t.formatters[r[0]])(D,r,d.localize,T)})).join("")}function m(e){const t=e.match(c);return t?t[1].replace(u,"'"):e}exports.formatters=t.formatters,exports.longFormatters=r.longFormatters,exports.default=p,exports.format=p,exports.formatDate=p;
2
2
  //# sourceMappingURL=format.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sources":["../../../../node_modules/date-fns/format.mjs"],"sourcesContent":["import { defaultLocale } from \"./_lib/defaultLocale.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\nimport { formatters } from \"./_lib/format/formatters.mjs\";\nimport { longFormatters } from \"./_lib/format/longFormatters.mjs\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.mjs\";\nimport { isValid } from \"./isValid.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = toDate(date);\n\n if (!isValid(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token))\n ) {\n warnOrThrowProtectedError(token, formatStr, String(date));\n }\n\n const formatter = formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n"],"names":["formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","format","date","formatStr","options","defaultOptions","getDefaultOptions","locale","defaultLocale","firstWeekContainsDate","weekStartsOn","originalDate","toDate","isValid","RangeError","parts","match","map","substring","firstCharacter","longFormatter","longFormatters","formatLong","join","isToken","value","cleanEscapedString","formatters","localize","preprocessor","formatterOptions","part","token","useAdditionalWeekYearTokens","isProtectedWeekYearToken","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","warnOrThrowProtectedError","String","formatter","input","matched","replace"],"mappings":"+TA2BA,MAAMA,EACJ,wDAIIC,EAA6B,oCAE7BC,EAAsB,eACtBC,EAAoB,MACpBC,EAAgC,WAsS/B,SAASC,EAAOC,EAAMC,EAAWC,GACtC,MAAMC,EAAiBC,EAAAA,oBACjBC,EAASH,GAASG,QAAUF,EAAeE,QAAUC,EAAAA,KAErDC,EACJL,GAASK,uBACTL,GAASG,QAAQH,SAASK,uBAC1BJ,EAAeI,uBACfJ,EAAeE,QAAQH,SAASK,uBAChC,EAEIC,EACJN,GAASM,cACTN,GAASG,QAAQH,SAASM,cAC1BL,EAAeK,cACfL,EAAeE,QAAQH,SAASM,cAChC,EAEIC,EAAeC,SAAOV,GAE5B,IAAKW,EAAAA,QAAQF,GACX,MAAM,IAAIG,WAAW,sBAGvB,IAAIC,EAAQZ,EACTa,MAAMnB,GACNoB,KAAKC,IACJ,MAAMC,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,GAA6C,MAAnBA,EAAwB,CAEpD,OAAOC,EADeC,iBAAeF,IAChBD,EAAWX,EAAOe,WACxC,CACD,OAAOJ,CAAS,IAEjBK,KAAK,IACLP,MAAMpB,GACNqB,KAAKC,IAEJ,GAAkB,OAAdA,EACF,MAAO,CAAEM,SAAS,EAAOC,MAAO,KAGlC,MAAMN,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,EACF,MAAO,CAAEK,SAAS,EAAOC,MAAOC,EAAmBR,IAGrD,GAAIS,EAAAA,WAAWR,GACb,MAAO,CAAEK,SAAS,EAAMC,MAAOP,GAGjC,GAAIC,EAAeH,MAAMhB,GACvB,MAAM,IAAIc,WACR,iEACEK,EACA,KAIN,MAAO,CAAEK,SAAS,EAAOC,MAAOP,EAAW,IAI3CX,EAAOqB,SAASC,eAClBd,EAAQR,EAAOqB,SAASC,aAAalB,EAAcI,IAGrD,MAAMe,EAAmB,CACvBrB,wBACAC,eACAH,UAGF,OAAOQ,EACJE,KAAKc,IACJ,IAAKA,EAAKP,QAAS,OAAOO,EAAKN,MAE/B,MAAMO,EAAQD,EAAKN,QAGfrB,GAAS6B,6BACTC,EAAAA,yBAAyBF,KACzB5B,GAAS+B,8BACTC,EAAyBA,0BAACJ,KAE5BK,EAAAA,0BAA0BL,EAAO7B,EAAWmC,OAAOpC,IAIrD,OAAOqC,EADWZ,EAAUA,WAACK,EAAM,KAClBrB,EAAcqB,EAAOzB,EAAOqB,SAAUE,EAAiB,IAEzEP,KAAK,GACV,CAEA,SAASG,EAAmBc,GAC1B,MAAMC,EAAUD,EAAMxB,MAAMlB,GAE5B,OAAK2C,EAIEA,EAAQ,GAAGC,QAAQ3C,EAAmB,KAHpCyC,CAIX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"format.js","sources":["../../../../node_modules/date-fns/format.mjs"],"sourcesContent":["import { defaultLocale } from \"./_lib/defaultLocale.mjs\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.mjs\";\nimport { formatters } from \"./_lib/format/formatters.mjs\";\nimport { longFormatters } from \"./_lib/format/longFormatters.mjs\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.mjs\";\nimport { isValid } from \"./isValid.mjs\";\nimport { toDate } from \"./toDate.mjs\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = toDate(date);\n\n if (!isValid(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token))\n ) {\n warnOrThrowProtectedError(token, formatStr, String(date));\n }\n\n const formatter = formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n"],"names":["formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","format","date","formatStr","options","defaultOptions","getDefaultOptions","locale","defaultLocale","firstWeekContainsDate","weekStartsOn","originalDate","toDate","isValid","RangeError","parts","match","map","substring","firstCharacter","longFormatter","longFormatters","formatLong","join","isToken","value","cleanEscapedString","formatters","localize","preprocessor","formatterOptions","part","token","useAdditionalWeekYearTokens","isProtectedWeekYearToken","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","warnOrThrowProtectedError","String","formatter","input","matched","replace"],"mappings":"8TA2BA,MAAMA,EACJ,wDAIIC,EAA6B,oCAE7BC,EAAsB,eACtBC,EAAoB,MACpBC,EAAgC,WAsS/B,SAASC,EAAOC,EAAMC,EAAWC,GACtC,MAAMC,EAAiBC,EAAAA,oBACjBC,EAASH,GAASG,QAAUF,EAAeE,QAAUC,EAAAA,KAErDC,EACJL,GAASK,uBACTL,GAASG,QAAQH,SAASK,uBAC1BJ,EAAeI,uBACfJ,EAAeE,QAAQH,SAASK,uBAChC,EAEIC,EACJN,GAASM,cACTN,GAASG,QAAQH,SAASM,cAC1BL,EAAeK,cACfL,EAAeE,QAAQH,SAASM,cAChC,EAEIC,EAAeC,SAAOV,GAE5B,IAAKW,EAAAA,QAAQF,GACX,MAAM,IAAIG,WAAW,sBAGvB,IAAIC,EAAQZ,EACTa,MAAMnB,GACNoB,KAAKC,IACJ,MAAMC,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,GAA6C,MAAnBA,EAAwB,CAEpD,OAAOC,EADeC,iBAAeF,IAChBD,EAAWX,EAAOe,WACxC,CACD,OAAOJ,CAAS,IAEjBK,KAAK,IACLP,MAAMpB,GACNqB,KAAKC,IAEJ,GAAkB,OAAdA,EACF,MAAO,CAAEM,SAAS,EAAOC,MAAO,KAGlC,MAAMN,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,EACF,MAAO,CAAEK,SAAS,EAAOC,MAAOC,EAAmBR,IAGrD,GAAIS,EAAAA,WAAWR,GACb,MAAO,CAAEK,SAAS,EAAMC,MAAOP,GAGjC,GAAIC,EAAeH,MAAMhB,GACvB,MAAM,IAAIc,WACR,iEACEK,EACA,KAIN,MAAO,CAAEK,SAAS,EAAOC,MAAOP,EAAW,IAI3CX,EAAOqB,SAASC,eAClBd,EAAQR,EAAOqB,SAASC,aAAalB,EAAcI,IAGrD,MAAMe,EAAmB,CACvBrB,wBACAC,eACAH,UAGF,OAAOQ,EACJE,KAAKc,IACJ,IAAKA,EAAKP,QAAS,OAAOO,EAAKN,MAE/B,MAAMO,EAAQD,EAAKN,QAGfrB,GAAS6B,6BACTC,EAAAA,yBAAyBF,KACzB5B,GAAS+B,8BACTC,EAAyBA,0BAACJ,KAE5BK,EAAAA,0BAA0BL,EAAO7B,EAAWmC,OAAOpC,IAIrD,OAAOqC,EADWZ,EAAUA,WAACK,EAAM,KAClBrB,EAAcqB,EAAOzB,EAAOqB,SAAUE,EAAiB,IAEzEP,KAAK,GACV,CAEA,SAASG,EAAmBc,GAC1B,MAAMC,EAAUD,EAAMxB,MAAMlB,GAE5B,OAAK2C,EAIEA,EAAQ,GAAGC,QAAQ3C,EAAmB,KAHpCyC,CAIX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";var e,r=require("../../_virtual/format.js"),t=require("./_lib/defaultLocale.js"),o=require("./_lib/defaultOptions2.js"),a=require("./_lib/format/formatters2.js"),n=require("./_lib/format/longFormatters2.js"),i=require("./_lib/protectedTokens2.js"),s=require("./isValid.js"),l=require("./toDate.js");exports.__require=function(){return e||(e=1,function(e){e.format=e.formatDate=function(e,t,o){const a=(0,u.getDefaultOptions)(),n=o?.locale??a.locale??r.defaultLocale,i=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=(0,p.toDate)(e);if(!(0,_.isValid)(l))throw new RangeError("Invalid time value");let q=t.match(d).map((e=>{const r=e[0];if("p"===r||"P"===r){return(0,f.longFormatters[r])(e,n.formatLong)}return e})).join("").match(k).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const r=e[0];if("'"===r)return{isToken:!1,value:j(e)};if(c.formatters[r])return{isToken:!0,value:e};if(r.match(w))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return{isToken:!1,value:e}}));n.localize.preprocessor&&(q=n.localize.preprocessor(l,q));const g={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return q.map((r=>{if(!r.isToken)return r.value;const a=r.value;(!o?.useAdditionalWeekYearTokens&&(0,m.isProtectedWeekYearToken)(a)||!o?.useAdditionalDayOfYearTokens&&(0,m.isProtectedDayOfYearToken)(a))&&(0,m.warnOrThrowProtectedError)(a,t,String(e));return(0,c.formatters[a[0]])(l,a,n.localize,g)})).join("")},Object.defineProperty(e,"formatters",{enumerable:!0,get:function(){return c.formatters}}),Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return f.longFormatters}});var r=t.__require(),u=o.__require(),c=a.__require(),f=n.__require(),m=i.__require(),_=s.__require(),p=l.__require();const k=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,q=/^'([^]*?)'?$/,g=/''/g,w=/[a-zA-Z]/;function j(e){const r=e.match(q);return r?r[1].replace(g,"'"):e}}(r.__exports)),r.__exports};
1
+ "use strict";var e,r=require("../../_virtual/format.js"),t=require("./_lib/defaultLocale.js"),o=require("./_lib/defaultOptions2.js"),a=require("./_lib/format/formatters2.js"),n=require("./_lib/format/longFormatters2.js"),i=require("./_lib/protectedTokens2.js"),s=require("./isValid2.js"),l=require("./toDate.js");exports.__require=function(){return e||(e=1,function(e){e.format=e.formatDate=function(e,t,o){const a=(0,u.getDefaultOptions)(),n=o?.locale??a.locale??r.defaultLocale,i=o?.firstWeekContainsDate??o?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=(0,p.toDate)(e);if(!(0,_.isValid)(l))throw new RangeError("Invalid time value");let q=t.match(d).map((e=>{const r=e[0];if("p"===r||"P"===r){return(0,f.longFormatters[r])(e,n.formatLong)}return e})).join("").match(k).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const r=e[0];if("'"===r)return{isToken:!1,value:j(e)};if(c.formatters[r])return{isToken:!0,value:e};if(r.match(w))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return{isToken:!1,value:e}}));n.localize.preprocessor&&(q=n.localize.preprocessor(l,q));const g={firstWeekContainsDate:i,weekStartsOn:s,locale:n};return q.map((r=>{if(!r.isToken)return r.value;const a=r.value;(!o?.useAdditionalWeekYearTokens&&(0,m.isProtectedWeekYearToken)(a)||!o?.useAdditionalDayOfYearTokens&&(0,m.isProtectedDayOfYearToken)(a))&&(0,m.warnOrThrowProtectedError)(a,t,String(e));return(0,c.formatters[a[0]])(l,a,n.localize,g)})).join("")},Object.defineProperty(e,"formatters",{enumerable:!0,get:function(){return c.formatters}}),Object.defineProperty(e,"longFormatters",{enumerable:!0,get:function(){return f.longFormatters}});var r=t.__require(),u=o.__require(),c=a.__require(),f=n.__require(),m=i.__require(),_=s.__require(),p=l.__require();const k=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,q=/^'([^]*?)'?$/,g=/''/g,w=/[a-zA-Z]/;function j(e){const r=e.match(q);return r?r[1].replace(g,"'"):e}}(r.__exports)),r.__exports};
2
2
  //# sourceMappingURL=format2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"format2.js","sources":["../../../../node_modules/date-fns/format.js"],"sourcesContent":["\"use strict\";\nexports.format = exports.formatDate = format;\nObject.defineProperty(exports, \"formatters\", {\n enumerable: true,\n get: function () {\n return _index3.formatters;\n },\n});\nObject.defineProperty(exports, \"longFormatters\", {\n enumerable: true,\n get: function () {\n return _index4.longFormatters;\n },\n});\nvar _index = require(\"./_lib/defaultLocale.js\");\nvar _index2 = require(\"./_lib/defaultOptions.js\");\nvar _index3 = require(\"./_lib/format/formatters.js\");\nvar _index4 = require(\"./_lib/format/longFormatters.js\");\nvar _index5 = require(\"./_lib/protectedTokens.js\");\n\nvar _index6 = require(\"./isValid.js\");\nvar _index7 = require(\"./toDate.js\");\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nfunction format(date, formatStr, options) {\n const defaultOptions = (0, _index2.getDefaultOptions)();\n const locale =\n options?.locale ?? defaultOptions.locale ?? _index.defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = (0, _index7.toDate)(date);\n\n if (!(0, _index6.isValid)(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = _index4.longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (_index3.formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n (0, _index5.isProtectedWeekYearToken)(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n (0, _index5.isProtectedDayOfYearToken)(token))\n ) {\n (0, _index5.warnOrThrowProtectedError)(token, formatStr, String(date));\n }\n\n const formatter = _index3.formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n"],"names":["exports","format","formatDate","date","formatStr","options","defaultOptions","_index2","getDefaultOptions","locale","_index","defaultLocale","firstWeekContainsDate","weekStartsOn","originalDate","_index7","toDate","_index6","isValid","RangeError","parts","match","longFormattingTokensRegExp","map","substring","firstCharacter","longFormatter","_index4","longFormatters","formatLong","join","formattingTokensRegExp","isToken","value","cleanEscapedString","_index3","formatters","unescapedLatinCharacterRegExp","localize","preprocessor","formatterOptions","part","token","useAdditionalWeekYearTokens","_index5","isProtectedWeekYearToken","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","warnOrThrowProtectedError","String","formatter","Object","defineProperty","enumerable","get","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","escapedStringRegExp","doubleQuoteRegExp","input","matched","replace"],"mappings":"gXACAA,EAAiBC,OAAAD,EAAAE,WAiVjB,SAAgBC,EAAMC,EAAWC,GAC/B,MAAMC,GAAiB,EAAIC,EAAQC,qBAC7BC,EACJJ,GAASI,QAAUH,EAAeG,QAAUC,EAAOC,cAE/CC,EACJP,GAASO,uBACTP,GAASI,QAAQJ,SAASO,uBAC1BN,EAAeM,uBACfN,EAAeG,QAAQJ,SAASO,uBAChC,EAEIC,EACJR,GAASQ,cACTR,GAASI,QAAQJ,SAASQ,cAC1BP,EAAeO,cACfP,EAAeG,QAAQJ,SAASQ,cAChC,EAEIC,GAAe,EAAIC,EAAQC,QAAQb,GAEzC,KAAK,EAAIc,EAAQC,SAASJ,GACxB,MAAM,IAAIK,WAAW,sBAGvB,IAAIC,EAAQhB,EACTiB,MAAMC,GACNC,KAAKC,IACJ,MAAMC,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,GAA6C,MAAnBA,EAAwB,CAEpD,OAAOC,EADeC,EAAQC,eAAeH,IACxBD,EAAWf,EAAOoB,WACxC,CACD,OAAOL,CAAS,IAEjBM,KAAK,IACLT,MAAMU,GACNR,KAAKC,IAEJ,GAAkB,OAAdA,EACF,MAAO,CAAEQ,SAAS,EAAOC,MAAO,KAGlC,MAAMR,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,EACF,MAAO,CAAEO,SAAS,EAAOC,MAAOC,EAAmBV,IAGrD,GAAIW,EAAQC,WAAWX,GACrB,MAAO,CAAEO,SAAS,EAAMC,MAAOT,GAGjC,GAAIC,EAAeJ,MAAMgB,GACvB,MAAM,IAAIlB,WACR,iEACEM,EACA,KAIN,MAAO,CAAEO,SAAS,EAAOC,MAAOT,EAAW,IAI3Cf,EAAO6B,SAASC,eAClBnB,EAAQX,EAAO6B,SAASC,aAAazB,EAAcM,IAGrD,MAAMoB,EAAmB,CACvB5B,wBACAC,eACAJ,UAGF,OAAOW,EACJG,KAAKkB,IACJ,IAAKA,EAAKT,QAAS,OAAOS,EAAKR,MAE/B,MAAMS,EAAQD,EAAKR,QAGf5B,GAASsC,8BACT,EAAIC,EAAQC,0BAA0BH,KACtCrC,GAASyC,+BACT,EAAIF,EAAQG,2BAA2BL,MAEzC,EAAIE,EAAQI,2BAA2BN,EAAOtC,EAAW6C,OAAO9C,IAIlE,OAAO+C,EADWf,EAAQC,WAAWM,EAAM,KAC1B5B,EAAc4B,EAAOjC,EAAO6B,SAAUE,EAAiB,IAEzEV,KAAK,GACT,EA7aDqB,OAAOC,eAAepD,EAAS,aAAc,CAC3CqD,YAAY,EACZC,IAAK,WACH,OAAOnB,EAAQC,UAChB,IAEHe,OAAOC,eAAepD,EAAS,iBAAkB,CAC/CqD,YAAY,EACZC,IAAK,WACH,OAAO3B,EAAQC,cAChB,IAEH,IAAIlB,EAAS6C,EAAAA,YACThD,EAAUiD,EAAAA,YACVrB,EAAUsB,EAAAA,YACV9B,EAAU+B,EAAAA,YACVd,EAAUe,EAAAA,YAEV1C,EAAU2C,EAAAA,YACV7C,EAAU8C,EAAAA,YAgBd,MAAM9B,EACJ,wDAIIT,EAA6B,oCAE7BwC,EAAsB,eACtBC,EAAoB,MACpB1B,EAAgC,WAmYtC,SAASH,EAAmB8B,GAC1B,MAAMC,EAAUD,EAAM3C,MAAMyC,GAE5B,OAAKG,EAIEA,EAAQ,GAAGC,QAAQH,EAAmB,KAHpCC,CAIX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"format2.js","sources":["../../../../node_modules/date-fns/format.js"],"sourcesContent":["\"use strict\";\nexports.format = exports.formatDate = format;\nObject.defineProperty(exports, \"formatters\", {\n enumerable: true,\n get: function () {\n return _index3.formatters;\n },\n});\nObject.defineProperty(exports, \"longFormatters\", {\n enumerable: true,\n get: function () {\n return _index4.longFormatters;\n },\n});\nvar _index = require(\"./_lib/defaultLocale.js\");\nvar _index2 = require(\"./_lib/defaultOptions.js\");\nvar _index3 = require(\"./_lib/format/formatters.js\");\nvar _index4 = require(\"./_lib/format/longFormatters.js\");\nvar _index5 = require(\"./_lib/protectedTokens.js\");\n\nvar _index6 = require(\"./isValid.js\");\nvar _index7 = require(\"./toDate.js\");\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nfunction format(date, formatStr, options) {\n const defaultOptions = (0, _index2.getDefaultOptions)();\n const locale =\n options?.locale ?? defaultOptions.locale ?? _index.defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = (0, _index7.toDate)(date);\n\n if (!(0, _index6.isValid)(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = _index4.longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (_index3.formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n (0, _index5.isProtectedWeekYearToken)(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n (0, _index5.isProtectedDayOfYearToken)(token))\n ) {\n (0, _index5.warnOrThrowProtectedError)(token, formatStr, String(date));\n }\n\n const formatter = _index3.formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n"],"names":["exports","format","formatDate","date","formatStr","options","defaultOptions","_index2","getDefaultOptions","locale","_index","defaultLocale","firstWeekContainsDate","weekStartsOn","originalDate","_index7","toDate","_index6","isValid","RangeError","parts","match","longFormattingTokensRegExp","map","substring","firstCharacter","longFormatter","_index4","longFormatters","formatLong","join","formattingTokensRegExp","isToken","value","cleanEscapedString","_index3","formatters","unescapedLatinCharacterRegExp","localize","preprocessor","formatterOptions","part","token","useAdditionalWeekYearTokens","_index5","isProtectedWeekYearToken","useAdditionalDayOfYearTokens","isProtectedDayOfYearToken","warnOrThrowProtectedError","String","formatter","Object","defineProperty","enumerable","get","require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","escapedStringRegExp","doubleQuoteRegExp","input","matched","replace"],"mappings":"iXACAA,EAAiBC,OAAAD,EAAAE,WAiVjB,SAAgBC,EAAMC,EAAWC,GAC/B,MAAMC,GAAiB,EAAIC,EAAQC,qBAC7BC,EACJJ,GAASI,QAAUH,EAAeG,QAAUC,EAAOC,cAE/CC,EACJP,GAASO,uBACTP,GAASI,QAAQJ,SAASO,uBAC1BN,EAAeM,uBACfN,EAAeG,QAAQJ,SAASO,uBAChC,EAEIC,EACJR,GAASQ,cACTR,GAASI,QAAQJ,SAASQ,cAC1BP,EAAeO,cACfP,EAAeG,QAAQJ,SAASQ,cAChC,EAEIC,GAAe,EAAIC,EAAQC,QAAQb,GAEzC,KAAK,EAAIc,EAAQC,SAASJ,GACxB,MAAM,IAAIK,WAAW,sBAGvB,IAAIC,EAAQhB,EACTiB,MAAMC,GACNC,KAAKC,IACJ,MAAMC,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,GAA6C,MAAnBA,EAAwB,CAEpD,OAAOC,EADeC,EAAQC,eAAeH,IACxBD,EAAWf,EAAOoB,WACxC,CACD,OAAOL,CAAS,IAEjBM,KAAK,IACLT,MAAMU,GACNR,KAAKC,IAEJ,GAAkB,OAAdA,EACF,MAAO,CAAEQ,SAAS,EAAOC,MAAO,KAGlC,MAAMR,EAAiBD,EAAU,GACjC,GAAuB,MAAnBC,EACF,MAAO,CAAEO,SAAS,EAAOC,MAAOC,EAAmBV,IAGrD,GAAIW,EAAQC,WAAWX,GACrB,MAAO,CAAEO,SAAS,EAAMC,MAAOT,GAGjC,GAAIC,EAAeJ,MAAMgB,GACvB,MAAM,IAAIlB,WACR,iEACEM,EACA,KAIN,MAAO,CAAEO,SAAS,EAAOC,MAAOT,EAAW,IAI3Cf,EAAO6B,SAASC,eAClBnB,EAAQX,EAAO6B,SAASC,aAAazB,EAAcM,IAGrD,MAAMoB,EAAmB,CACvB5B,wBACAC,eACAJ,UAGF,OAAOW,EACJG,KAAKkB,IACJ,IAAKA,EAAKT,QAAS,OAAOS,EAAKR,MAE/B,MAAMS,EAAQD,EAAKR,QAGf5B,GAASsC,8BACT,EAAIC,EAAQC,0BAA0BH,KACtCrC,GAASyC,+BACT,EAAIF,EAAQG,2BAA2BL,MAEzC,EAAIE,EAAQI,2BAA2BN,EAAOtC,EAAW6C,OAAO9C,IAIlE,OAAO+C,EADWf,EAAQC,WAAWM,EAAM,KAC1B5B,EAAc4B,EAAOjC,EAAO6B,SAAUE,EAAiB,IAEzEV,KAAK,GACT,EA7aDqB,OAAOC,eAAepD,EAAS,aAAc,CAC3CqD,YAAY,EACZC,IAAK,WACH,OAAOnB,EAAQC,UAChB,IAEHe,OAAOC,eAAepD,EAAS,iBAAkB,CAC/CqD,YAAY,EACZC,IAAK,WACH,OAAO3B,EAAQC,cAChB,IAEH,IAAIlB,EAAS6C,EAAAA,YACThD,EAAUiD,EAAAA,YACVrB,EAAUsB,EAAAA,YACV9B,EAAU+B,EAAAA,YACVd,EAAUe,EAAAA,YAEV1C,EAAU2C,EAAAA,YACV7C,EAAU8C,EAAAA,YAgBd,MAAM9B,EACJ,wDAIIT,EAA6B,oCAE7BwC,EAAsB,eACtBC,EAAoB,MACpB1B,EAAgC,WAmYtC,SAASH,EAAmB8B,GAC1B,MAAMC,EAAUD,EAAM3C,MAAMyC,GAE5B,OAAKG,EAIEA,EAAQ,GAAGC,QAAQH,EAAmB,KAHpCC,CAIX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";var e,r=require("../../_virtual/formatISO9075.js"),t=require("./isValid.js"),i=require("./toDate.js"),d=require("./_lib/addLeadingZeros2.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.formatISO9075=function(e,r){const t=(0,n.toDate)(e);if(!(0,a.isValid)(t))throw new RangeError("Invalid time value");const i=r?.format??"extended",d=r?.representation??"complete";let s="";const u="extended"===i?"-":"",_="extended"===i?":":"";if("time"!==d){const e=(0,o.addLeadingZeros)(t.getDate(),2),r=(0,o.addLeadingZeros)(t.getMonth()+1,2);s=`${(0,o.addLeadingZeros)(t.getFullYear(),4)}${u}${r}${u}${e}`}if("date"!==d){s=`${s}${""===s?"":" "}${(0,o.addLeadingZeros)(t.getHours(),2)}${_}${(0,o.addLeadingZeros)(t.getMinutes(),2)}${_}${(0,o.addLeadingZeros)(t.getSeconds(),2)}`}return s};var a=t.__require(),n=i.__require(),o=d.__require();return r.__exports};
1
+ "use strict";var e,r=require("../../_virtual/formatISO9075.js"),t=require("./isValid2.js"),i=require("./toDate.js"),d=require("./_lib/addLeadingZeros2.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.formatISO9075=function(e,r){const t=(0,n.toDate)(e);if(!(0,a.isValid)(t))throw new RangeError("Invalid time value");const i=r?.format??"extended",d=r?.representation??"complete";let s="";const u="extended"===i?"-":"",_="extended"===i?":":"";if("time"!==d){const e=(0,o.addLeadingZeros)(t.getDate(),2),r=(0,o.addLeadingZeros)(t.getMonth()+1,2);s=`${(0,o.addLeadingZeros)(t.getFullYear(),4)}${u}${r}${u}${e}`}if("date"!==d){s=`${s}${""===s?"":" "}${(0,o.addLeadingZeros)(t.getHours(),2)}${_}${(0,o.addLeadingZeros)(t.getMinutes(),2)}${_}${(0,o.addLeadingZeros)(t.getSeconds(),2)}`}return s};var a=t.__require(),n=i.__require(),o=d.__require();return r.__exports};
2
2
  //# sourceMappingURL=formatISO9075.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatISO9075.js","sources":["../../../../node_modules/date-fns/formatISO9075.js"],"sourcesContent":["\"use strict\";\nexports.formatISO9075 = formatISO9075;\nvar _index = require(\"./isValid.js\");\nvar _index2 = require(\"./toDate.js\");\n\nvar _index3 = require(\"./_lib/addLeadingZeros.js\");\n\n/**\n * The {@link formatISO9075} function options.\n */\n\n/**\n * @name formatISO9075\n * @category Common Helpers\n * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format).\n *\n * @description\n * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options.\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18 19:00:52'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075, short format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918 190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, date only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, time only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52'\n */\nfunction formatISO9075(date, options) {\n const _date = (0, _index2.toDate)(date);\n\n if (!(0, _index.isValid)(_date)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n const format = options?.format ?? \"extended\";\n const representation = options?.representation ?? \"complete\";\n\n let result = \"\";\n\n const dateDelimiter = format === \"extended\" ? \"-\" : \"\";\n const timeDelimiter = format === \"extended\" ? \":\" : \"\";\n\n // Representation is either 'date' or 'complete'\n if (representation !== \"time\") {\n const day = (0, _index3.addLeadingZeros)(_date.getDate(), 2);\n const month = (0, _index3.addLeadingZeros)(_date.getMonth() + 1, 2);\n const year = (0, _index3.addLeadingZeros)(_date.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`;\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== \"date\") {\n const hour = (0, _index3.addLeadingZeros)(_date.getHours(), 2);\n const minute = (0, _index3.addLeadingZeros)(_date.getMinutes(), 2);\n const second = (0, _index3.addLeadingZeros)(_date.getSeconds(), 2);\n\n // If there's also date, separate it with time with a space\n const separator = result === \"\" ? \"\" : \" \";\n\n // HHmmss or HH:mm:ss.\n result = `${result}${separator}${hour}${timeDelimiter}${minute}${timeDelimiter}${second}`;\n }\n\n return result;\n}\n"],"names":["formatISO9075_1","__exports","formatISO9075","date","options","_date","_index2","toDate","_index","isValid","RangeError","format","representation","result","dateDelimiter","timeDelimiter","day","_index3","addLeadingZeros","getDate","month","getMonth","getFullYear","getHours","getMinutes","getSeconds","require$$0","require$$1","require$$2"],"mappings":"oNACqBA,EAAAC,UAAAC,cA+CrB,SAAuBC,EAAMC,GAC3B,MAAMC,GAAQ,EAAIC,EAAQC,QAAQJ,GAElC,KAAK,EAAIK,EAAOC,SAASJ,GACvB,MAAM,IAAIK,WAAW,sBAGvB,MAAMC,EAASP,GAASO,QAAU,WAC5BC,EAAiBR,GAASQ,gBAAkB,WAElD,IAAIC,EAAS,GAEb,MAAMC,EAA2B,aAAXH,EAAwB,IAAM,GAC9CI,EAA2B,aAAXJ,EAAwB,IAAM,GAGpD,GAAuB,SAAnBC,EAA2B,CAC7B,MAAMI,GAAM,EAAIC,EAAQC,iBAAiBb,EAAMc,UAAW,GACpDC,GAAQ,EAAIH,EAAQC,iBAAiBb,EAAMgB,WAAa,EAAG,GAIjER,EAAS,IAHI,EAAII,EAAQC,iBAAiBb,EAAMiB,cAAe,KAG5CR,IAAgBM,IAAQN,IAAgBE,GAC5D,CAGD,GAAuB,SAAnBJ,EAA2B,CAS7BC,EAAS,GAAGA,IAHiB,KAAXA,EAAgB,GAAK,OAL1B,EAAII,EAAQC,iBAAiBb,EAAMkB,WAAY,KAQpBR,KAPzB,EAAIE,EAAQC,iBAAiBb,EAAMmB,aAAc,KAOCT,KANlD,EAAIE,EAAQC,iBAAiBb,EAAMoB,aAAc,IAOjE,CAED,OAAOZ,CACT,EArFA,IAAIL,EAASkB,EAAAA,YACTpB,EAAUqB,EAAAA,YAEVV,EAAUW,EAAAA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"formatISO9075.js","sources":["../../../../node_modules/date-fns/formatISO9075.js"],"sourcesContent":["\"use strict\";\nexports.formatISO9075 = formatISO9075;\nvar _index = require(\"./isValid.js\");\nvar _index2 = require(\"./toDate.js\");\n\nvar _index3 = require(\"./_lib/addLeadingZeros.js\");\n\n/**\n * The {@link formatISO9075} function options.\n */\n\n/**\n * @name formatISO9075\n * @category Common Helpers\n * @summary Format the date according to the ISO 9075 standard (https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_get-format).\n *\n * @description\n * Return the formatted date string in ISO 9075 format. Options may be passed to control the parts and notations of the date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The original date\n * @param options - An object with options.\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52))\n * //=> '2019-09-18 19:00:52'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075, short format:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { format: 'basic' })\n * //=> '20190918 190052'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, date only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'date' })\n * //=> '2019-09-18'\n *\n * @example\n * // Represent 18 September 2019 in ISO 9075 format, time only:\n * const result = formatISO9075(new Date(2019, 8, 18, 19, 0, 52), { representation: 'time' })\n * //=> '19:00:52'\n */\nfunction formatISO9075(date, options) {\n const _date = (0, _index2.toDate)(date);\n\n if (!(0, _index.isValid)(_date)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n const format = options?.format ?? \"extended\";\n const representation = options?.representation ?? \"complete\";\n\n let result = \"\";\n\n const dateDelimiter = format === \"extended\" ? \"-\" : \"\";\n const timeDelimiter = format === \"extended\" ? \":\" : \"\";\n\n // Representation is either 'date' or 'complete'\n if (representation !== \"time\") {\n const day = (0, _index3.addLeadingZeros)(_date.getDate(), 2);\n const month = (0, _index3.addLeadingZeros)(_date.getMonth() + 1, 2);\n const year = (0, _index3.addLeadingZeros)(_date.getFullYear(), 4);\n\n // yyyyMMdd or yyyy-MM-dd.\n result = `${year}${dateDelimiter}${month}${dateDelimiter}${day}`;\n }\n\n // Representation is either 'time' or 'complete'\n if (representation !== \"date\") {\n const hour = (0, _index3.addLeadingZeros)(_date.getHours(), 2);\n const minute = (0, _index3.addLeadingZeros)(_date.getMinutes(), 2);\n const second = (0, _index3.addLeadingZeros)(_date.getSeconds(), 2);\n\n // If there's also date, separate it with time with a space\n const separator = result === \"\" ? \"\" : \" \";\n\n // HHmmss or HH:mm:ss.\n result = `${result}${separator}${hour}${timeDelimiter}${minute}${timeDelimiter}${second}`;\n }\n\n return result;\n}\n"],"names":["formatISO9075_1","__exports","formatISO9075","date","options","_date","_index2","toDate","_index","isValid","RangeError","format","representation","result","dateDelimiter","timeDelimiter","day","_index3","addLeadingZeros","getDate","month","getMonth","getFullYear","getHours","getMinutes","getSeconds","require$$0","require$$1","require$$2"],"mappings":"qNACqBA,EAAAC,UAAAC,cA+CrB,SAAuBC,EAAMC,GAC3B,MAAMC,GAAQ,EAAIC,EAAQC,QAAQJ,GAElC,KAAK,EAAIK,EAAOC,SAASJ,GACvB,MAAM,IAAIK,WAAW,sBAGvB,MAAMC,EAASP,GAASO,QAAU,WAC5BC,EAAiBR,GAASQ,gBAAkB,WAElD,IAAIC,EAAS,GAEb,MAAMC,EAA2B,aAAXH,EAAwB,IAAM,GAC9CI,EAA2B,aAAXJ,EAAwB,IAAM,GAGpD,GAAuB,SAAnBC,EAA2B,CAC7B,MAAMI,GAAM,EAAIC,EAAQC,iBAAiBb,EAAMc,UAAW,GACpDC,GAAQ,EAAIH,EAAQC,iBAAiBb,EAAMgB,WAAa,EAAG,GAIjER,EAAS,IAHI,EAAII,EAAQC,iBAAiBb,EAAMiB,cAAe,KAG5CR,IAAgBM,IAAQN,IAAgBE,GAC5D,CAGD,GAAuB,SAAnBJ,EAA2B,CAS7BC,EAAS,GAAGA,IAHiB,KAAXA,EAAgB,GAAK,OAL1B,EAAII,EAAQC,iBAAiBb,EAAMkB,WAAY,KAQpBR,KAPzB,EAAIE,EAAQC,iBAAiBb,EAAMmB,aAAc,KAOCT,KANlD,EAAIE,EAAQC,iBAAiBb,EAAMoB,aAAc,IAOjE,CAED,OAAOZ,CACT,EArFA,IAAIL,EAASkB,EAAAA,YACTpB,EAAUqB,EAAAA,YAEVV,EAAUW,EAAAA","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";var e,r=require("../../_virtual/formatRFC3339.js"),t=require("./isValid.js"),i=require("./toDate.js"),a=require("./_lib/addLeadingZeros2.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.formatRFC3339=function(e,r){const t=(0,o.toDate)(e);if(!(0,s.isValid)(t))throw new RangeError("Invalid time value");const i=r?.fractionDigits??0,a=(0,d.addLeadingZeros)(t.getDate(),2),n=(0,d.addLeadingZeros)(t.getMonth()+1,2),u=t.getFullYear(),g=(0,d.addLeadingZeros)(t.getHours(),2),_=(0,d.addLeadingZeros)(t.getMinutes(),2),c=(0,d.addLeadingZeros)(t.getSeconds(),2);let l="";if(i>0){const e=t.getMilliseconds(),r=Math.trunc(e*Math.pow(10,i-3));l="."+(0,d.addLeadingZeros)(r,i)}let f="";const $=t.getTimezoneOffset();if(0!==$){const e=Math.abs($);f=`${$<0?"+":"-"}${(0,d.addLeadingZeros)(Math.trunc(e/60),2)}:${(0,d.addLeadingZeros)(e%60,2)}`}else f="Z";return`${u}-${n}-${a}T${g}:${_}:${c}${l}${f}`};var s=t.__require(),o=i.__require(),d=a.__require();return r.__exports};
1
+ "use strict";var e,r=require("../../_virtual/formatRFC3339.js"),t=require("./isValid2.js"),i=require("./toDate.js"),a=require("./_lib/addLeadingZeros2.js");exports.__require=function(){if(e)return r.__exports;e=1,r.__exports.formatRFC3339=function(e,r){const t=(0,o.toDate)(e);if(!(0,s.isValid)(t))throw new RangeError("Invalid time value");const i=r?.fractionDigits??0,a=(0,d.addLeadingZeros)(t.getDate(),2),n=(0,d.addLeadingZeros)(t.getMonth()+1,2),u=t.getFullYear(),g=(0,d.addLeadingZeros)(t.getHours(),2),_=(0,d.addLeadingZeros)(t.getMinutes(),2),c=(0,d.addLeadingZeros)(t.getSeconds(),2);let l="";if(i>0){const e=t.getMilliseconds(),r=Math.trunc(e*Math.pow(10,i-3));l="."+(0,d.addLeadingZeros)(r,i)}let f="";const $=t.getTimezoneOffset();if(0!==$){const e=Math.abs($);f=`${$<0?"+":"-"}${(0,d.addLeadingZeros)(Math.trunc(e/60),2)}:${(0,d.addLeadingZeros)(e%60,2)}`}else f="Z";return`${u}-${n}-${a}T${g}:${_}:${c}${l}${f}`};var s=t.__require(),o=i.__require(),d=a.__require();return r.__exports};
2
2
  //# sourceMappingURL=formatRFC3339.js.map