@luzmo/analytics-components-kit 1.0.1-alpha.98 → 1.0.1-alpha.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/angular/README.md +2 -2
- package/angular/components/ai-interaction-textarea.component.ts +8 -0
- package/angular/components/{filter-data-item-picker.component.ts → data-items-select.component.ts} +34 -17
- package/angular/components/edit-filters/index.ts +1 -0
- package/angular/components/edit-filters/types.ts +10 -0
- package/angular/components/edit-filters.component.ts +41 -0
- package/angular/components/slot-contents-picker.component.ts +8 -6
- package/angular/esm/components/ai-interaction-textarea.component.d.ts +5 -1
- package/angular/esm/components/ai-interaction-textarea.component.js +22 -2
- package/angular/esm/components/data-items-select.component.d.ts +33 -0
- package/angular/esm/components/{filter-data-item-picker.component.js → data-items-select.component.js} +41 -26
- package/angular/esm/components/edit-filters/index.d.ts +1 -0
- package/angular/esm/components/edit-filters/index.js +1 -0
- package/angular/esm/components/edit-filters/types.d.ts +8 -0
- package/angular/esm/components/edit-filters/types.js +1 -0
- package/angular/esm/components/edit-filters.component.d.ts +21 -0
- package/angular/esm/components/edit-filters.component.js +89 -0
- package/angular/esm/components/slot-contents-picker.component.d.ts +7 -6
- package/angular/esm/components/slot-contents-picker.component.js +11 -6
- package/angular/esm/index.d.ts +5 -5
- package/angular/esm/index.js +6 -6
- package/angular/esm/types.d.ts +9 -0
- package/angular/index.ts +6 -6
- package/angular/types.ts +17 -0
- package/angular/utils/filters/expressions.d.ts +1 -1
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +0 -1
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/ai-interaction-textarea.d.ts +21 -0
- package/components/ai-interaction-textarea/index.cjs +17 -15
- package/components/ai-interaction-textarea/index.js +91 -67
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
- package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/{filter-data-item-picker/filter-data-item-picker.d.ts → data-items-select/data-items-select.d.ts} +36 -21
- package/components/data-items-select/index.cjs +39 -0
- package/components/data-items-select/index.d.ts +6 -0
- package/components/data-items-select/index.js +209 -0
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +32 -35
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +50 -52
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/{de-COKGBX9L.cjs → de-DOYL4txr.cjs} +1 -1
- package/components/{de-DU0DlXuf.js → de-SDzGVifr.js} +10 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +23 -24
- package/components/display-settings-numeric/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +190 -206
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +91 -97
- package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
- package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
- package/components/draggable-data-item/index.cjs +5 -5
- package/components/draggable-data-item/index.js +45 -46
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +70 -73
- package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
- package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +174 -265
- package/components/edit-filters/edit-filters.d.ts +79 -0
- package/components/edit-filters/index.cjs +144 -0
- package/components/edit-filters/index.d.ts +8 -0
- package/components/edit-filters/index.js +341 -0
- package/components/edit-filters/types.d.ts +8 -0
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +116 -119
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +52 -53
- package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
- package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +106 -117
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +26 -27
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +21 -25
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +76 -81
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +21 -22
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +22 -23
- package/components/en-D3ihEGXg.js +1483 -0
- package/components/en-DZcn_iz_.cjs +20 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
- package/components/{es-BxR1uGKR.js → es-B1TeapPZ.js} +10 -1
- package/components/{es-CaKfa7fn.cjs → es-DcQvrHgz.cjs} +1 -1
- package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
- package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
- package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
- package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/filter-item.d.ts +1 -1
- package/components/filter-item/index.cjs +9 -7
- package/components/filter-item/index.js +123 -123
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +34 -36
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +56 -71
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +113 -124
- package/components/filter-value-picker-numeric/index.cjs +9 -8
- package/components/filter-value-picker-numeric/index.js +102 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{fr-DiZbjx_a.cjs → fr-D6QmA3Ve.cjs} +1 -1
- package/components/{fr-CvltYxR_.js → fr-sZFBmltf.js} +10 -1
- package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
- package/components/get-css-variable-C0B_Sxqf.cjs +24 -0
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-DgTBQV3c.js} +39 -38
- package/components/grid/index.cjs +43 -49
- package/components/grid/index.js +2610 -1878
- package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
- package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
- package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
- package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
- package/components/helpers-9I0oLoUB.cjs +20 -0
- package/components/helpers-bR8Ibjqh.js +79 -0
- package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
- package/components/index-BekTY3Em.cjs +121 -0
- package/components/index-BikhVAa1.js +1755 -0
- package/components/index-CAbDIHYI.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/{index-BPNsFiyq.cjs → index-DM58h73U.cjs} +4 -4
- package/components/{index-D0GBF6tg.js → index-DR5275fa.js} +122 -102
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -1
- package/components/index.js +105 -106
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{nl-CLs7FmRK.js → nl-BYXZ-qNp.js} +10 -1
- package/components/{nl-Bot6bJ4g.cjs → nl-D7oNsLn0.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-Dp3N_gXN.js → set-locale-B5562CBM.js} +2 -9
- package/components/{set-locale-BRRalqne.cjs → set-locale-B8iQGfk0.cjs} +1 -1
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +35 -31
- package/components/slot-contents-picker/index.js +202 -200
- package/components/slot-contents-picker/slot-contents-picker.d.ts +26 -5
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +189 -202
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/slot-store-CRfN0nD3.js +98 -0
- package/components/slot-store-Dd_cPNXk.cjs +20 -0
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
- package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
- package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
- package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
- package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
- package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
- package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
- package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
- package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +94 -97
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/viz-item-menu/index.cjs +5 -5
- package/components/viz-item-menu/index.js +26 -28
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +1936 -1625
- package/index.d.ts +1 -1
- package/package.json +12 -12
- package/types.d.ts +9 -0
- package/utils/filters/expressions.d.ts +1 -1
- package/angular/components/filter-group.component.ts +0 -29
- package/angular/esm/components/filter-data-item-picker.component.d.ts +0 -30
- package/angular/esm/components/filter-group.component.d.ts +0 -12
- package/angular/esm/components/filter-group.component.js +0 -56
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-CEa82-5u.cjs +0 -20
- package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/filter-data-item-picker/index.cjs +0 -47
- package/components/filter-data-item-picker/index.d.ts +0 -7
- package/components/filter-data-item-picker/index.js +0 -192
- package/components/filter-group/filter-group.d.ts +0 -26
- package/components/filter-group/index.d.ts +0 -7
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/get-css-variable-DLiZYZEi.cjs +0 -24
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/helpers-v1bPALRP.js +0 -91
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/index-CDi4fe3N.js +0 -1716
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-Cz9vSXy6.cjs +0 -20
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
|
@@ -1,1488 +0,0 @@
|
|
|
1
|
-
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
-
* must be used according to the Luzmo Terms of Service.
|
|
7
|
-
* This license allows users with a current active Luzmo account
|
|
8
|
-
* to use the Luzmo Web Components. This license terminates
|
|
9
|
-
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
-
*
|
|
12
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
-
* SOFTWARE.
|
|
19
|
-
* */
|
|
20
|
-
import { i as z, l as lr, a as mr, b as ge } from "./localize-BX7q0S0M.js";
|
|
21
|
-
import { d as sr } from "./decompose-numeric-format-BuZcjH2k.js";
|
|
22
|
-
function cr(e) {
|
|
23
|
-
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
24
|
-
}
|
|
25
|
-
function me(e, r) {
|
|
26
|
-
if ((t = (e = r ? e.toExponential(r - 1) : e.toExponential()).indexOf("e")) < 0) return null;
|
|
27
|
-
var t, n = e.slice(0, t);
|
|
28
|
-
return [
|
|
29
|
-
n.length > 1 ? n[0] + n.slice(2) : n,
|
|
30
|
-
+e.slice(t + 1)
|
|
31
|
-
];
|
|
32
|
-
}
|
|
33
|
-
function fr(e) {
|
|
34
|
-
return e = me(Math.abs(e)), e ? e[1] : NaN;
|
|
35
|
-
}
|
|
36
|
-
function hr(e, r) {
|
|
37
|
-
return function(t, n) {
|
|
38
|
-
for (var i = t.length, u = [], m = 0, T = e[0], C = 0; i > 0 && T > 0 && (C + T + 1 > n && (T = Math.max(1, n - C)), u.push(t.substring(i -= T, i + T)), !((C += T + 1) > n)); )
|
|
39
|
-
T = e[m = (m + 1) % e.length];
|
|
40
|
-
return u.reverse().join(r);
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function gr(e) {
|
|
44
|
-
return function(r) {
|
|
45
|
-
return r.replace(/[0-9]/g, function(t) {
|
|
46
|
-
return e[+t];
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
var yr = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
51
|
-
function ve(e) {
|
|
52
|
-
if (!(r = yr.exec(e))) throw new Error("invalid format: " + e);
|
|
53
|
-
var r;
|
|
54
|
-
return new Se({
|
|
55
|
-
fill: r[1],
|
|
56
|
-
align: r[2],
|
|
57
|
-
sign: r[3],
|
|
58
|
-
symbol: r[4],
|
|
59
|
-
zero: r[5],
|
|
60
|
-
width: r[6],
|
|
61
|
-
comma: r[7],
|
|
62
|
-
precision: r[8] && r[8].slice(1),
|
|
63
|
-
trim: r[9],
|
|
64
|
-
type: r[10]
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
ve.prototype = Se.prototype;
|
|
68
|
-
function Se(e) {
|
|
69
|
-
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
70
|
-
}
|
|
71
|
-
Se.prototype.toString = function() {
|
|
72
|
-
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
73
|
-
};
|
|
74
|
-
function dr(e) {
|
|
75
|
-
e: for (var r = e.length, t = 1, n = -1, i; t < r; ++t)
|
|
76
|
-
switch (e[t]) {
|
|
77
|
-
case ".":
|
|
78
|
-
n = i = t;
|
|
79
|
-
break;
|
|
80
|
-
case "0":
|
|
81
|
-
n === 0 && (n = t), i = t;
|
|
82
|
-
break;
|
|
83
|
-
default:
|
|
84
|
-
if (!+e[t]) break e;
|
|
85
|
-
n > 0 && (n = 0);
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
return n > 0 ? e.slice(0, n) + e.slice(i + 1) : e;
|
|
89
|
-
}
|
|
90
|
-
var $e;
|
|
91
|
-
function Mr(e, r) {
|
|
92
|
-
var t = me(e, r);
|
|
93
|
-
if (!t) return e + "";
|
|
94
|
-
var n = t[0], i = t[1], u = i - ($e = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, m = n.length;
|
|
95
|
-
return u === m ? n : u > m ? n + new Array(u - m + 1).join("0") : u > 0 ? n.slice(0, u) + "." + n.slice(u) : "0." + new Array(1 - u).join("0") + me(e, Math.max(0, r + u - 1))[0];
|
|
96
|
-
}
|
|
97
|
-
function we(e, r) {
|
|
98
|
-
var t = me(e, r);
|
|
99
|
-
if (!t) return e + "";
|
|
100
|
-
var n = t[0], i = t[1];
|
|
101
|
-
return i < 0 ? "0." + new Array(-i).join("0") + n : n.length > i + 1 ? n.slice(0, i + 1) + "." + n.slice(i + 1) : n + new Array(i - n.length + 2).join("0");
|
|
102
|
-
}
|
|
103
|
-
const Fe = {
|
|
104
|
-
"%": (e, r) => (e * 100).toFixed(r),
|
|
105
|
-
b: (e) => Math.round(e).toString(2),
|
|
106
|
-
c: (e) => e + "",
|
|
107
|
-
d: cr,
|
|
108
|
-
e: (e, r) => e.toExponential(r),
|
|
109
|
-
f: (e, r) => e.toFixed(r),
|
|
110
|
-
g: (e, r) => e.toPrecision(r),
|
|
111
|
-
o: (e) => Math.round(e).toString(8),
|
|
112
|
-
p: (e, r) => we(e * 100, r),
|
|
113
|
-
r: we,
|
|
114
|
-
s: Mr,
|
|
115
|
-
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
116
|
-
x: (e) => Math.round(e).toString(16)
|
|
117
|
-
};
|
|
118
|
-
function ke(e) {
|
|
119
|
-
return e;
|
|
120
|
-
}
|
|
121
|
-
var xe = Array.prototype.map, We = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
|
|
122
|
-
function Tr(e) {
|
|
123
|
-
var r = e.grouping === void 0 || e.thousands === void 0 ? ke : hr(xe.call(e.grouping, Number), e.thousands + ""), t = e.currency === void 0 ? "" : e.currency[0] + "", n = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", u = e.numerals === void 0 ? ke : gr(xe.call(e.numerals, String)), m = e.percent === void 0 ? "%" : e.percent + "", T = e.minus === void 0 ? "−" : e.minus + "", C = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
124
|
-
function s(y) {
|
|
125
|
-
y = ve(y);
|
|
126
|
-
var H = y.fill, l = y.align, h = y.sign, f = y.symbol, p = y.zero, c = y.width, F = y.comma, S = y.precision, w = y.trim, d = y.type;
|
|
127
|
-
d === "n" ? (F = !0, d = "g") : Fe[d] || (S === void 0 && (S = 12), w = !0, d = "g"), (p || H === "0" && l === "=") && (p = !0, H = "0", l = "=");
|
|
128
|
-
var U = f === "$" ? t : f === "#" && /[boxX]/.test(d) ? "0" + d.toLowerCase() : "", oe = f === "$" ? n : /[%p]/.test(d) ? m : "", $ = Fe[d], he = /[defgprs%]/.test(d);
|
|
129
|
-
S = S === void 0 ? 6 : /[gprs]/.test(d) ? Math.max(1, Math.min(21, S)) : Math.max(0, Math.min(20, S));
|
|
130
|
-
function ie(M) {
|
|
131
|
-
var O = U, W = oe, q, le, E;
|
|
132
|
-
if (d === "c")
|
|
133
|
-
W = $(M) + W, M = "";
|
|
134
|
-
else {
|
|
135
|
-
M = +M;
|
|
136
|
-
var j = M < 0 || 1 / M < 0;
|
|
137
|
-
if (M = isNaN(M) ? C : $(Math.abs(M), S), w && (M = dr(M)), j && +M == 0 && h !== "+" && (j = !1), O = (j ? h === "(" ? h : T : h === "-" || h === "(" ? "" : h) + O, W = (d === "s" ? We[8 + $e / 3] : "") + W + (j && h === "(" ? ")" : ""), he) {
|
|
138
|
-
for (q = -1, le = M.length; ++q < le; )
|
|
139
|
-
if (E = M.charCodeAt(q), 48 > E || E > 57) {
|
|
140
|
-
W = (E === 46 ? i + M.slice(q + 1) : M.slice(q)) + W, M = M.slice(0, q);
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
F && !p && (M = r(M, 1 / 0));
|
|
146
|
-
var B = O.length + M.length + W.length, L = B < c ? new Array(c - B + 1).join(H) : "";
|
|
147
|
-
switch (F && p && (M = r(L + M, L.length ? c - W.length : 1 / 0), L = ""), l) {
|
|
148
|
-
case "<":
|
|
149
|
-
M = O + M + W + L;
|
|
150
|
-
break;
|
|
151
|
-
case "=":
|
|
152
|
-
M = O + L + M + W;
|
|
153
|
-
break;
|
|
154
|
-
case "^":
|
|
155
|
-
M = L.slice(0, B = L.length >> 1) + O + M + W + L.slice(B);
|
|
156
|
-
break;
|
|
157
|
-
default:
|
|
158
|
-
M = L + O + M + W;
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
return u(M);
|
|
162
|
-
}
|
|
163
|
-
return ie.toString = function() {
|
|
164
|
-
return y + "";
|
|
165
|
-
}, ie;
|
|
166
|
-
}
|
|
167
|
-
function D(y, H) {
|
|
168
|
-
var l = s((y = ve(y), y.type = "f", y)), h = Math.max(-8, Math.min(8, Math.floor(fr(H) / 3))) * 3, f = Math.pow(10, -h), p = We[8 + h / 3];
|
|
169
|
-
return function(c) {
|
|
170
|
-
return l(f * c) + p;
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
return {
|
|
174
|
-
format: s,
|
|
175
|
-
formatPrefix: D
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
const ye = /* @__PURE__ */ new Date(), de = /* @__PURE__ */ new Date();
|
|
179
|
-
function x(e, r, t, n) {
|
|
180
|
-
function i(u) {
|
|
181
|
-
return e(u = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+u)), u;
|
|
182
|
-
}
|
|
183
|
-
return i.floor = (u) => (e(u = /* @__PURE__ */ new Date(+u)), u), i.ceil = (u) => (e(u = new Date(u - 1)), r(u, 1), e(u), u), i.round = (u) => {
|
|
184
|
-
const m = i(u), T = i.ceil(u);
|
|
185
|
-
return u - m < T - u ? m : T;
|
|
186
|
-
}, i.offset = (u, m) => (r(u = /* @__PURE__ */ new Date(+u), m == null ? 1 : Math.floor(m)), u), i.range = (u, m, T) => {
|
|
187
|
-
const C = [];
|
|
188
|
-
if (u = i.ceil(u), T = T == null ? 1 : Math.floor(T), !(u < m) || !(T > 0)) return C;
|
|
189
|
-
let s;
|
|
190
|
-
do
|
|
191
|
-
C.push(s = /* @__PURE__ */ new Date(+u)), r(u, T), e(u);
|
|
192
|
-
while (s < u && u < m);
|
|
193
|
-
return C;
|
|
194
|
-
}, i.filter = (u) => x((m) => {
|
|
195
|
-
if (m >= m) for (; e(m), !u(m); ) m.setTime(m - 1);
|
|
196
|
-
}, (m, T) => {
|
|
197
|
-
if (m >= m)
|
|
198
|
-
if (T < 0) for (; ++T <= 0; )
|
|
199
|
-
for (; r(m, -1), !u(m); )
|
|
200
|
-
;
|
|
201
|
-
else for (; --T >= 0; )
|
|
202
|
-
for (; r(m, 1), !u(m); )
|
|
203
|
-
;
|
|
204
|
-
}), t && (i.count = (u, m) => (ye.setTime(+u), de.setTime(+m), e(ye), e(de), Math.floor(t(ye, de))), i.every = (u) => (u = Math.floor(u), !isFinite(u) || !(u > 0) ? null : u > 1 ? i.filter(n ? (m) => n(m) % u === 0 : (m) => i.count(0, m) % u === 0) : i)), i;
|
|
205
|
-
}
|
|
206
|
-
const ne = 1e3, I = ne * 60, ae = I * 60, ue = ae * 24, Ge = ue * 7, ze = x((e) => {
|
|
207
|
-
e.setTime(e - e.getMilliseconds());
|
|
208
|
-
}, (e, r) => {
|
|
209
|
-
e.setTime(+e + r * ne);
|
|
210
|
-
}, (e, r) => (r - e) / ne, (e) => e.getUTCSeconds());
|
|
211
|
-
ze.range;
|
|
212
|
-
const Pe = x((e) => {
|
|
213
|
-
e.setTime(e - e.getMilliseconds() - e.getSeconds() * ne);
|
|
214
|
-
}, (e, r) => {
|
|
215
|
-
e.setTime(+e + r * I);
|
|
216
|
-
}, (e, r) => (r - e) / I, (e) => e.getMinutes());
|
|
217
|
-
Pe.range;
|
|
218
|
-
const vr = x((e) => {
|
|
219
|
-
e.setUTCSeconds(0, 0);
|
|
220
|
-
}, (e, r) => {
|
|
221
|
-
e.setTime(+e + r * I);
|
|
222
|
-
}, (e, r) => (r - e) / I, (e) => e.getUTCMinutes());
|
|
223
|
-
vr.range;
|
|
224
|
-
const Re = x((e) => {
|
|
225
|
-
e.setTime(e - e.getMilliseconds() - e.getSeconds() * ne - e.getMinutes() * I);
|
|
226
|
-
}, (e, r) => {
|
|
227
|
-
e.setTime(+e + r * ae);
|
|
228
|
-
}, (e, r) => (r - e) / ae, (e) => e.getHours());
|
|
229
|
-
Re.range;
|
|
230
|
-
const Yr = x((e) => {
|
|
231
|
-
e.setUTCMinutes(0, 0, 0);
|
|
232
|
-
}, (e, r) => {
|
|
233
|
-
e.setTime(+e + r * ae);
|
|
234
|
-
}, (e, r) => (r - e) / ae, (e) => e.getUTCHours());
|
|
235
|
-
Yr.range;
|
|
236
|
-
const fe = x(
|
|
237
|
-
(e) => e.setHours(0, 0, 0, 0),
|
|
238
|
-
(e, r) => e.setDate(e.getDate() + r),
|
|
239
|
-
(e, r) => (r - e - (r.getTimezoneOffset() - e.getTimezoneOffset()) * I) / ue,
|
|
240
|
-
(e) => e.getDate() - 1
|
|
241
|
-
);
|
|
242
|
-
fe.range;
|
|
243
|
-
const Ce = x((e) => {
|
|
244
|
-
e.setUTCHours(0, 0, 0, 0);
|
|
245
|
-
}, (e, r) => {
|
|
246
|
-
e.setUTCDate(e.getUTCDate() + r);
|
|
247
|
-
}, (e, r) => (r - e) / ue, (e) => e.getUTCDate() - 1);
|
|
248
|
-
Ce.range;
|
|
249
|
-
const pr = x((e) => {
|
|
250
|
-
e.setUTCHours(0, 0, 0, 0);
|
|
251
|
-
}, (e, r) => {
|
|
252
|
-
e.setUTCDate(e.getUTCDate() + r);
|
|
253
|
-
}, (e, r) => (r - e) / ue, (e) => Math.floor(e / ue));
|
|
254
|
-
pr.range;
|
|
255
|
-
function R(e) {
|
|
256
|
-
return x((r) => {
|
|
257
|
-
r.setDate(r.getDate() - (r.getDay() + 7 - e) % 7), r.setHours(0, 0, 0, 0);
|
|
258
|
-
}, (r, t) => {
|
|
259
|
-
r.setDate(r.getDate() + t * 7);
|
|
260
|
-
}, (r, t) => (t - r - (t.getTimezoneOffset() - r.getTimezoneOffset()) * I) / Ge);
|
|
261
|
-
}
|
|
262
|
-
const De = R(0), se = R(1), Sr = R(2), Cr = R(3), X = R(4), Dr = R(5), br = R(6);
|
|
263
|
-
De.range;
|
|
264
|
-
se.range;
|
|
265
|
-
Sr.range;
|
|
266
|
-
Cr.range;
|
|
267
|
-
X.range;
|
|
268
|
-
Dr.range;
|
|
269
|
-
br.range;
|
|
270
|
-
function Z(e) {
|
|
271
|
-
return x((r) => {
|
|
272
|
-
r.setUTCDate(r.getUTCDate() - (r.getUTCDay() + 7 - e) % 7), r.setUTCHours(0, 0, 0, 0);
|
|
273
|
-
}, (r, t) => {
|
|
274
|
-
r.setUTCDate(r.getUTCDate() + t * 7);
|
|
275
|
-
}, (r, t) => (t - r) / Ge);
|
|
276
|
-
}
|
|
277
|
-
const Ze = Z(0), ce = Z(1), Ur = Z(2), wr = Z(3), K = Z(4), Fr = Z(5), kr = Z(6);
|
|
278
|
-
Ze.range;
|
|
279
|
-
ce.range;
|
|
280
|
-
Ur.range;
|
|
281
|
-
wr.range;
|
|
282
|
-
K.range;
|
|
283
|
-
Fr.range;
|
|
284
|
-
kr.range;
|
|
285
|
-
const Ee = x((e) => {
|
|
286
|
-
e.setDate(1), e.setHours(0, 0, 0, 0);
|
|
287
|
-
}, (e, r) => {
|
|
288
|
-
e.setMonth(e.getMonth() + r);
|
|
289
|
-
}, (e, r) => r.getMonth() - e.getMonth() + (r.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth());
|
|
290
|
-
Ee.range;
|
|
291
|
-
const xr = x((e) => {
|
|
292
|
-
e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0);
|
|
293
|
-
}, (e, r) => {
|
|
294
|
-
e.setUTCMonth(e.getUTCMonth() + r);
|
|
295
|
-
}, (e, r) => r.getUTCMonth() - e.getUTCMonth() + (r.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth());
|
|
296
|
-
xr.range;
|
|
297
|
-
const Q = x((e) => {
|
|
298
|
-
e.setMonth(0, 1), e.setHours(0, 0, 0, 0);
|
|
299
|
-
}, (e, r) => {
|
|
300
|
-
e.setFullYear(e.getFullYear() + r);
|
|
301
|
-
}, (e, r) => r.getFullYear() - e.getFullYear(), (e) => e.getFullYear());
|
|
302
|
-
Q.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : x((r) => {
|
|
303
|
-
r.setFullYear(Math.floor(r.getFullYear() / e) * e), r.setMonth(0, 1), r.setHours(0, 0, 0, 0);
|
|
304
|
-
}, (r, t) => {
|
|
305
|
-
r.setFullYear(r.getFullYear() + t * e);
|
|
306
|
-
});
|
|
307
|
-
Q.range;
|
|
308
|
-
const P = x((e) => {
|
|
309
|
-
e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0);
|
|
310
|
-
}, (e, r) => {
|
|
311
|
-
e.setUTCFullYear(e.getUTCFullYear() + r);
|
|
312
|
-
}, (e, r) => r.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear());
|
|
313
|
-
P.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : x((r) => {
|
|
314
|
-
r.setUTCFullYear(Math.floor(r.getUTCFullYear() / e) * e), r.setUTCMonth(0, 1), r.setUTCHours(0, 0, 0, 0);
|
|
315
|
-
}, (r, t) => {
|
|
316
|
-
r.setUTCFullYear(r.getUTCFullYear() + t * e);
|
|
317
|
-
});
|
|
318
|
-
P.range;
|
|
319
|
-
function Me(e) {
|
|
320
|
-
if (0 <= e.y && e.y < 100) {
|
|
321
|
-
var r = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L);
|
|
322
|
-
return r.setFullYear(e.y), r;
|
|
323
|
-
}
|
|
324
|
-
return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L);
|
|
325
|
-
}
|
|
326
|
-
function Te(e) {
|
|
327
|
-
if (0 <= e.y && e.y < 100) {
|
|
328
|
-
var r = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L));
|
|
329
|
-
return r.setUTCFullYear(e.y), r;
|
|
330
|
-
}
|
|
331
|
-
return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L));
|
|
332
|
-
}
|
|
333
|
-
function ee(e, r, t) {
|
|
334
|
-
return { y: e, m: r, d: t, H: 0, M: 0, S: 0, L: 0 };
|
|
335
|
-
}
|
|
336
|
-
function Ye(e) {
|
|
337
|
-
var r = e.dateTime, t = e.date, n = e.time, i = e.periods, u = e.days, m = e.shortDays, T = e.months, C = e.shortMonths, s = re(i), D = te(i), y = re(u), H = te(u), l = re(m), h = te(m), f = re(T), p = te(T), c = re(C), F = te(C), S = {
|
|
338
|
-
a: j,
|
|
339
|
-
A: B,
|
|
340
|
-
b: L,
|
|
341
|
-
B: Ke,
|
|
342
|
-
c: null,
|
|
343
|
-
d: Oe,
|
|
344
|
-
e: Oe,
|
|
345
|
-
f: Kr,
|
|
346
|
-
g: mt,
|
|
347
|
-
G: ct,
|
|
348
|
-
H: Br,
|
|
349
|
-
I: Jr,
|
|
350
|
-
j: Xr,
|
|
351
|
-
L: je,
|
|
352
|
-
m: et,
|
|
353
|
-
M: rt,
|
|
354
|
-
p: er,
|
|
355
|
-
q: rr,
|
|
356
|
-
Q: Ie,
|
|
357
|
-
s: Qe,
|
|
358
|
-
S: tt,
|
|
359
|
-
u: nt,
|
|
360
|
-
U: at,
|
|
361
|
-
V: ut,
|
|
362
|
-
w: ot,
|
|
363
|
-
W: it,
|
|
364
|
-
x: null,
|
|
365
|
-
X: null,
|
|
366
|
-
y: lt,
|
|
367
|
-
Y: st,
|
|
368
|
-
Z: ft,
|
|
369
|
-
"%": qe
|
|
370
|
-
}, w = {
|
|
371
|
-
a: tr,
|
|
372
|
-
A: nr,
|
|
373
|
-
b: ar,
|
|
374
|
-
B: ur,
|
|
375
|
-
c: null,
|
|
376
|
-
d: Ve,
|
|
377
|
-
e: Ve,
|
|
378
|
-
f: dt,
|
|
379
|
-
g: Ut,
|
|
380
|
-
G: Ft,
|
|
381
|
-
H: ht,
|
|
382
|
-
I: gt,
|
|
383
|
-
j: yt,
|
|
384
|
-
L: Je,
|
|
385
|
-
m: Mt,
|
|
386
|
-
M: Tt,
|
|
387
|
-
p: or,
|
|
388
|
-
q: ir,
|
|
389
|
-
Q: Ie,
|
|
390
|
-
s: Qe,
|
|
391
|
-
S: vt,
|
|
392
|
-
u: Yt,
|
|
393
|
-
U: pt,
|
|
394
|
-
V: St,
|
|
395
|
-
w: Ct,
|
|
396
|
-
W: Dt,
|
|
397
|
-
x: null,
|
|
398
|
-
X: null,
|
|
399
|
-
y: bt,
|
|
400
|
-
Y: wt,
|
|
401
|
-
Z: kt,
|
|
402
|
-
"%": qe
|
|
403
|
-
}, d = {
|
|
404
|
-
a: ie,
|
|
405
|
-
A: M,
|
|
406
|
-
b: O,
|
|
407
|
-
B: W,
|
|
408
|
-
c: q,
|
|
409
|
-
d: Le,
|
|
410
|
-
e: Le,
|
|
411
|
-
f: Rr,
|
|
412
|
-
g: Ne,
|
|
413
|
-
G: _e,
|
|
414
|
-
H: He,
|
|
415
|
-
I: He,
|
|
416
|
-
j: $r,
|
|
417
|
-
L: Pr,
|
|
418
|
-
m: Qr,
|
|
419
|
-
M: Gr,
|
|
420
|
-
p: he,
|
|
421
|
-
q: Ir,
|
|
422
|
-
Q: Er,
|
|
423
|
-
s: jr,
|
|
424
|
-
S: zr,
|
|
425
|
-
u: Lr,
|
|
426
|
-
U: Hr,
|
|
427
|
-
V: Or,
|
|
428
|
-
w: Nr,
|
|
429
|
-
W: Vr,
|
|
430
|
-
x: le,
|
|
431
|
-
X: E,
|
|
432
|
-
y: Ne,
|
|
433
|
-
Y: _e,
|
|
434
|
-
Z: qr,
|
|
435
|
-
"%": Zr
|
|
436
|
-
};
|
|
437
|
-
S.x = U(t, S), S.X = U(n, S), S.c = U(r, S), w.x = U(t, w), w.X = U(n, w), w.c = U(r, w);
|
|
438
|
-
function U(o, g) {
|
|
439
|
-
return function(v) {
|
|
440
|
-
var a = [], A = -1, b = 0, _ = o.length, N, G, Ue;
|
|
441
|
-
for (v instanceof Date || (v = /* @__PURE__ */ new Date(+v)); ++A < _; )
|
|
442
|
-
o.charCodeAt(A) === 37 && (a.push(o.slice(b, A)), (G = Ae[N = o.charAt(++A)]) != null ? N = o.charAt(++A) : G = N === "e" ? " " : "0", (Ue = g[N]) && (N = Ue(v, G)), a.push(N), b = A + 1);
|
|
443
|
-
return a.push(o.slice(b, A)), a.join("");
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
function oe(o, g) {
|
|
447
|
-
return function(v) {
|
|
448
|
-
var a = ee(1900, void 0, 1), A = $(a, o, v += "", 0), b, _;
|
|
449
|
-
if (A != v.length) return null;
|
|
450
|
-
if ("Q" in a) return new Date(a.Q);
|
|
451
|
-
if ("s" in a) return new Date(a.s * 1e3 + ("L" in a ? a.L : 0));
|
|
452
|
-
if (g && !("Z" in a) && (a.Z = 0), "p" in a && (a.H = a.H % 12 + a.p * 12), a.m === void 0 && (a.m = "q" in a ? a.q : 0), "V" in a) {
|
|
453
|
-
if (a.V < 1 || a.V > 53) return null;
|
|
454
|
-
"w" in a || (a.w = 1), "Z" in a ? (b = Te(ee(a.y, 0, 1)), _ = b.getUTCDay(), b = _ > 4 || _ === 0 ? ce.ceil(b) : ce(b), b = Ce.offset(b, (a.V - 1) * 7), a.y = b.getUTCFullYear(), a.m = b.getUTCMonth(), a.d = b.getUTCDate() + (a.w + 6) % 7) : (b = Me(ee(a.y, 0, 1)), _ = b.getDay(), b = _ > 4 || _ === 0 ? se.ceil(b) : se(b), b = fe.offset(b, (a.V - 1) * 7), a.y = b.getFullYear(), a.m = b.getMonth(), a.d = b.getDate() + (a.w + 6) % 7);
|
|
455
|
-
} else ("W" in a || "U" in a) && ("w" in a || (a.w = "u" in a ? a.u % 7 : "W" in a ? 1 : 0), _ = "Z" in a ? Te(ee(a.y, 0, 1)).getUTCDay() : Me(ee(a.y, 0, 1)).getDay(), a.m = 0, a.d = "W" in a ? (a.w + 6) % 7 + a.W * 7 - (_ + 5) % 7 : a.w + a.U * 7 - (_ + 6) % 7);
|
|
456
|
-
return "Z" in a ? (a.H += a.Z / 100 | 0, a.M += a.Z % 100, Te(a)) : Me(a);
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
function $(o, g, v, a) {
|
|
460
|
-
for (var A = 0, b = g.length, _ = v.length, N, G; A < b; ) {
|
|
461
|
-
if (a >= _) return -1;
|
|
462
|
-
if (N = g.charCodeAt(A++), N === 37) {
|
|
463
|
-
if (N = g.charAt(A++), G = d[N in Ae ? g.charAt(A++) : N], !G || (a = G(o, v, a)) < 0) return -1;
|
|
464
|
-
} else if (N != v.charCodeAt(a++))
|
|
465
|
-
return -1;
|
|
466
|
-
}
|
|
467
|
-
return a;
|
|
468
|
-
}
|
|
469
|
-
function he(o, g, v) {
|
|
470
|
-
var a = s.exec(g.slice(v));
|
|
471
|
-
return a ? (o.p = D.get(a[0].toLowerCase()), v + a[0].length) : -1;
|
|
472
|
-
}
|
|
473
|
-
function ie(o, g, v) {
|
|
474
|
-
var a = l.exec(g.slice(v));
|
|
475
|
-
return a ? (o.w = h.get(a[0].toLowerCase()), v + a[0].length) : -1;
|
|
476
|
-
}
|
|
477
|
-
function M(o, g, v) {
|
|
478
|
-
var a = y.exec(g.slice(v));
|
|
479
|
-
return a ? (o.w = H.get(a[0].toLowerCase()), v + a[0].length) : -1;
|
|
480
|
-
}
|
|
481
|
-
function O(o, g, v) {
|
|
482
|
-
var a = c.exec(g.slice(v));
|
|
483
|
-
return a ? (o.m = F.get(a[0].toLowerCase()), v + a[0].length) : -1;
|
|
484
|
-
}
|
|
485
|
-
function W(o, g, v) {
|
|
486
|
-
var a = f.exec(g.slice(v));
|
|
487
|
-
return a ? (o.m = p.get(a[0].toLowerCase()), v + a[0].length) : -1;
|
|
488
|
-
}
|
|
489
|
-
function q(o, g, v) {
|
|
490
|
-
return $(o, r, g, v);
|
|
491
|
-
}
|
|
492
|
-
function le(o, g, v) {
|
|
493
|
-
return $(o, t, g, v);
|
|
494
|
-
}
|
|
495
|
-
function E(o, g, v) {
|
|
496
|
-
return $(o, n, g, v);
|
|
497
|
-
}
|
|
498
|
-
function j(o) {
|
|
499
|
-
return m[o.getDay()];
|
|
500
|
-
}
|
|
501
|
-
function B(o) {
|
|
502
|
-
return u[o.getDay()];
|
|
503
|
-
}
|
|
504
|
-
function L(o) {
|
|
505
|
-
return C[o.getMonth()];
|
|
506
|
-
}
|
|
507
|
-
function Ke(o) {
|
|
508
|
-
return T[o.getMonth()];
|
|
509
|
-
}
|
|
510
|
-
function er(o) {
|
|
511
|
-
return i[+(o.getHours() >= 12)];
|
|
512
|
-
}
|
|
513
|
-
function rr(o) {
|
|
514
|
-
return 1 + ~~(o.getMonth() / 3);
|
|
515
|
-
}
|
|
516
|
-
function tr(o) {
|
|
517
|
-
return m[o.getUTCDay()];
|
|
518
|
-
}
|
|
519
|
-
function nr(o) {
|
|
520
|
-
return u[o.getUTCDay()];
|
|
521
|
-
}
|
|
522
|
-
function ar(o) {
|
|
523
|
-
return C[o.getUTCMonth()];
|
|
524
|
-
}
|
|
525
|
-
function ur(o) {
|
|
526
|
-
return T[o.getUTCMonth()];
|
|
527
|
-
}
|
|
528
|
-
function or(o) {
|
|
529
|
-
return i[+(o.getUTCHours() >= 12)];
|
|
530
|
-
}
|
|
531
|
-
function ir(o) {
|
|
532
|
-
return 1 + ~~(o.getUTCMonth() / 3);
|
|
533
|
-
}
|
|
534
|
-
return {
|
|
535
|
-
format: function(o) {
|
|
536
|
-
var g = U(o += "", S);
|
|
537
|
-
return g.toString = function() {
|
|
538
|
-
return o;
|
|
539
|
-
}, g;
|
|
540
|
-
},
|
|
541
|
-
parse: function(o) {
|
|
542
|
-
var g = oe(o += "", !1);
|
|
543
|
-
return g.toString = function() {
|
|
544
|
-
return o;
|
|
545
|
-
}, g;
|
|
546
|
-
},
|
|
547
|
-
utcFormat: function(o) {
|
|
548
|
-
var g = U(o += "", w);
|
|
549
|
-
return g.toString = function() {
|
|
550
|
-
return o;
|
|
551
|
-
}, g;
|
|
552
|
-
},
|
|
553
|
-
utcParse: function(o) {
|
|
554
|
-
var g = oe(o += "", !0);
|
|
555
|
-
return g.toString = function() {
|
|
556
|
-
return o;
|
|
557
|
-
}, g;
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
var Ae = { "-": "", _: " ", 0: "0" }, k = /^\s*\d+/, Wr = /^%/, Ar = /[\\^$*+?|[\]().{}]/g;
|
|
562
|
-
function Y(e, r, t) {
|
|
563
|
-
var n = e < 0 ? "-" : "", i = (n ? -e : e) + "", u = i.length;
|
|
564
|
-
return n + (u < t ? new Array(t - u + 1).join(r) + i : i);
|
|
565
|
-
}
|
|
566
|
-
function _r(e) {
|
|
567
|
-
return e.replace(Ar, "\\$&");
|
|
568
|
-
}
|
|
569
|
-
function re(e) {
|
|
570
|
-
return new RegExp("^(?:" + e.map(_r).join("|") + ")", "i");
|
|
571
|
-
}
|
|
572
|
-
function te(e) {
|
|
573
|
-
return new Map(e.map((r, t) => [r.toLowerCase(), t]));
|
|
574
|
-
}
|
|
575
|
-
function Nr(e, r, t) {
|
|
576
|
-
var n = k.exec(r.slice(t, t + 1));
|
|
577
|
-
return n ? (e.w = +n[0], t + n[0].length) : -1;
|
|
578
|
-
}
|
|
579
|
-
function Lr(e, r, t) {
|
|
580
|
-
var n = k.exec(r.slice(t, t + 1));
|
|
581
|
-
return n ? (e.u = +n[0], t + n[0].length) : -1;
|
|
582
|
-
}
|
|
583
|
-
function Hr(e, r, t) {
|
|
584
|
-
var n = k.exec(r.slice(t, t + 2));
|
|
585
|
-
return n ? (e.U = +n[0], t + n[0].length) : -1;
|
|
586
|
-
}
|
|
587
|
-
function Or(e, r, t) {
|
|
588
|
-
var n = k.exec(r.slice(t, t + 2));
|
|
589
|
-
return n ? (e.V = +n[0], t + n[0].length) : -1;
|
|
590
|
-
}
|
|
591
|
-
function Vr(e, r, t) {
|
|
592
|
-
var n = k.exec(r.slice(t, t + 2));
|
|
593
|
-
return n ? (e.W = +n[0], t + n[0].length) : -1;
|
|
594
|
-
}
|
|
595
|
-
function _e(e, r, t) {
|
|
596
|
-
var n = k.exec(r.slice(t, t + 4));
|
|
597
|
-
return n ? (e.y = +n[0], t + n[0].length) : -1;
|
|
598
|
-
}
|
|
599
|
-
function Ne(e, r, t) {
|
|
600
|
-
var n = k.exec(r.slice(t, t + 2));
|
|
601
|
-
return n ? (e.y = +n[0] + (+n[0] > 68 ? 1900 : 2e3), t + n[0].length) : -1;
|
|
602
|
-
}
|
|
603
|
-
function qr(e, r, t) {
|
|
604
|
-
var n = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t, t + 6));
|
|
605
|
-
return n ? (e.Z = n[1] ? 0 : -(n[2] + (n[3] || "00")), t + n[0].length) : -1;
|
|
606
|
-
}
|
|
607
|
-
function Ir(e, r, t) {
|
|
608
|
-
var n = k.exec(r.slice(t, t + 1));
|
|
609
|
-
return n ? (e.q = n[0] * 3 - 3, t + n[0].length) : -1;
|
|
610
|
-
}
|
|
611
|
-
function Qr(e, r, t) {
|
|
612
|
-
var n = k.exec(r.slice(t, t + 2));
|
|
613
|
-
return n ? (e.m = n[0] - 1, t + n[0].length) : -1;
|
|
614
|
-
}
|
|
615
|
-
function Le(e, r, t) {
|
|
616
|
-
var n = k.exec(r.slice(t, t + 2));
|
|
617
|
-
return n ? (e.d = +n[0], t + n[0].length) : -1;
|
|
618
|
-
}
|
|
619
|
-
function $r(e, r, t) {
|
|
620
|
-
var n = k.exec(r.slice(t, t + 3));
|
|
621
|
-
return n ? (e.m = 0, e.d = +n[0], t + n[0].length) : -1;
|
|
622
|
-
}
|
|
623
|
-
function He(e, r, t) {
|
|
624
|
-
var n = k.exec(r.slice(t, t + 2));
|
|
625
|
-
return n ? (e.H = +n[0], t + n[0].length) : -1;
|
|
626
|
-
}
|
|
627
|
-
function Gr(e, r, t) {
|
|
628
|
-
var n = k.exec(r.slice(t, t + 2));
|
|
629
|
-
return n ? (e.M = +n[0], t + n[0].length) : -1;
|
|
630
|
-
}
|
|
631
|
-
function zr(e, r, t) {
|
|
632
|
-
var n = k.exec(r.slice(t, t + 2));
|
|
633
|
-
return n ? (e.S = +n[0], t + n[0].length) : -1;
|
|
634
|
-
}
|
|
635
|
-
function Pr(e, r, t) {
|
|
636
|
-
var n = k.exec(r.slice(t, t + 3));
|
|
637
|
-
return n ? (e.L = +n[0], t + n[0].length) : -1;
|
|
638
|
-
}
|
|
639
|
-
function Rr(e, r, t) {
|
|
640
|
-
var n = k.exec(r.slice(t, t + 6));
|
|
641
|
-
return n ? (e.L = Math.floor(n[0] / 1e3), t + n[0].length) : -1;
|
|
642
|
-
}
|
|
643
|
-
function Zr(e, r, t) {
|
|
644
|
-
var n = Wr.exec(r.slice(t, t + 1));
|
|
645
|
-
return n ? t + n[0].length : -1;
|
|
646
|
-
}
|
|
647
|
-
function Er(e, r, t) {
|
|
648
|
-
var n = k.exec(r.slice(t));
|
|
649
|
-
return n ? (e.Q = +n[0], t + n[0].length) : -1;
|
|
650
|
-
}
|
|
651
|
-
function jr(e, r, t) {
|
|
652
|
-
var n = k.exec(r.slice(t));
|
|
653
|
-
return n ? (e.s = +n[0], t + n[0].length) : -1;
|
|
654
|
-
}
|
|
655
|
-
function Oe(e, r) {
|
|
656
|
-
return Y(e.getDate(), r, 2);
|
|
657
|
-
}
|
|
658
|
-
function Br(e, r) {
|
|
659
|
-
return Y(e.getHours(), r, 2);
|
|
660
|
-
}
|
|
661
|
-
function Jr(e, r) {
|
|
662
|
-
return Y(e.getHours() % 12 || 12, r, 2);
|
|
663
|
-
}
|
|
664
|
-
function Xr(e, r) {
|
|
665
|
-
return Y(1 + fe.count(Q(e), e), r, 3);
|
|
666
|
-
}
|
|
667
|
-
function je(e, r) {
|
|
668
|
-
return Y(e.getMilliseconds(), r, 3);
|
|
669
|
-
}
|
|
670
|
-
function Kr(e, r) {
|
|
671
|
-
return je(e, r) + "000";
|
|
672
|
-
}
|
|
673
|
-
function et(e, r) {
|
|
674
|
-
return Y(e.getMonth() + 1, r, 2);
|
|
675
|
-
}
|
|
676
|
-
function rt(e, r) {
|
|
677
|
-
return Y(e.getMinutes(), r, 2);
|
|
678
|
-
}
|
|
679
|
-
function tt(e, r) {
|
|
680
|
-
return Y(e.getSeconds(), r, 2);
|
|
681
|
-
}
|
|
682
|
-
function nt(e) {
|
|
683
|
-
var r = e.getDay();
|
|
684
|
-
return r === 0 ? 7 : r;
|
|
685
|
-
}
|
|
686
|
-
function at(e, r) {
|
|
687
|
-
return Y(De.count(Q(e) - 1, e), r, 2);
|
|
688
|
-
}
|
|
689
|
-
function Be(e) {
|
|
690
|
-
var r = e.getDay();
|
|
691
|
-
return r >= 4 || r === 0 ? X(e) : X.ceil(e);
|
|
692
|
-
}
|
|
693
|
-
function ut(e, r) {
|
|
694
|
-
return e = Be(e), Y(X.count(Q(e), e) + (Q(e).getDay() === 4), r, 2);
|
|
695
|
-
}
|
|
696
|
-
function ot(e) {
|
|
697
|
-
return e.getDay();
|
|
698
|
-
}
|
|
699
|
-
function it(e, r) {
|
|
700
|
-
return Y(se.count(Q(e) - 1, e), r, 2);
|
|
701
|
-
}
|
|
702
|
-
function lt(e, r) {
|
|
703
|
-
return Y(e.getFullYear() % 100, r, 2);
|
|
704
|
-
}
|
|
705
|
-
function mt(e, r) {
|
|
706
|
-
return e = Be(e), Y(e.getFullYear() % 100, r, 2);
|
|
707
|
-
}
|
|
708
|
-
function st(e, r) {
|
|
709
|
-
return Y(e.getFullYear() % 1e4, r, 4);
|
|
710
|
-
}
|
|
711
|
-
function ct(e, r) {
|
|
712
|
-
var t = e.getDay();
|
|
713
|
-
return e = t >= 4 || t === 0 ? X(e) : X.ceil(e), Y(e.getFullYear() % 1e4, r, 4);
|
|
714
|
-
}
|
|
715
|
-
function ft(e) {
|
|
716
|
-
var r = e.getTimezoneOffset();
|
|
717
|
-
return (r > 0 ? "-" : (r *= -1, "+")) + Y(r / 60 | 0, "0", 2) + Y(r % 60, "0", 2);
|
|
718
|
-
}
|
|
719
|
-
function Ve(e, r) {
|
|
720
|
-
return Y(e.getUTCDate(), r, 2);
|
|
721
|
-
}
|
|
722
|
-
function ht(e, r) {
|
|
723
|
-
return Y(e.getUTCHours(), r, 2);
|
|
724
|
-
}
|
|
725
|
-
function gt(e, r) {
|
|
726
|
-
return Y(e.getUTCHours() % 12 || 12, r, 2);
|
|
727
|
-
}
|
|
728
|
-
function yt(e, r) {
|
|
729
|
-
return Y(1 + Ce.count(P(e), e), r, 3);
|
|
730
|
-
}
|
|
731
|
-
function Je(e, r) {
|
|
732
|
-
return Y(e.getUTCMilliseconds(), r, 3);
|
|
733
|
-
}
|
|
734
|
-
function dt(e, r) {
|
|
735
|
-
return Je(e, r) + "000";
|
|
736
|
-
}
|
|
737
|
-
function Mt(e, r) {
|
|
738
|
-
return Y(e.getUTCMonth() + 1, r, 2);
|
|
739
|
-
}
|
|
740
|
-
function Tt(e, r) {
|
|
741
|
-
return Y(e.getUTCMinutes(), r, 2);
|
|
742
|
-
}
|
|
743
|
-
function vt(e, r) {
|
|
744
|
-
return Y(e.getUTCSeconds(), r, 2);
|
|
745
|
-
}
|
|
746
|
-
function Yt(e) {
|
|
747
|
-
var r = e.getUTCDay();
|
|
748
|
-
return r === 0 ? 7 : r;
|
|
749
|
-
}
|
|
750
|
-
function pt(e, r) {
|
|
751
|
-
return Y(Ze.count(P(e) - 1, e), r, 2);
|
|
752
|
-
}
|
|
753
|
-
function Xe(e) {
|
|
754
|
-
var r = e.getUTCDay();
|
|
755
|
-
return r >= 4 || r === 0 ? K(e) : K.ceil(e);
|
|
756
|
-
}
|
|
757
|
-
function St(e, r) {
|
|
758
|
-
return e = Xe(e), Y(K.count(P(e), e) + (P(e).getUTCDay() === 4), r, 2);
|
|
759
|
-
}
|
|
760
|
-
function Ct(e) {
|
|
761
|
-
return e.getUTCDay();
|
|
762
|
-
}
|
|
763
|
-
function Dt(e, r) {
|
|
764
|
-
return Y(ce.count(P(e) - 1, e), r, 2);
|
|
765
|
-
}
|
|
766
|
-
function bt(e, r) {
|
|
767
|
-
return Y(e.getUTCFullYear() % 100, r, 2);
|
|
768
|
-
}
|
|
769
|
-
function Ut(e, r) {
|
|
770
|
-
return e = Xe(e), Y(e.getUTCFullYear() % 100, r, 2);
|
|
771
|
-
}
|
|
772
|
-
function wt(e, r) {
|
|
773
|
-
return Y(e.getUTCFullYear() % 1e4, r, 4);
|
|
774
|
-
}
|
|
775
|
-
function Ft(e, r) {
|
|
776
|
-
var t = e.getUTCDay();
|
|
777
|
-
return e = t >= 4 || t === 0 ? K(e) : K.ceil(e), Y(e.getUTCFullYear() % 1e4, r, 4);
|
|
778
|
-
}
|
|
779
|
-
function kt() {
|
|
780
|
-
return "+0000";
|
|
781
|
-
}
|
|
782
|
-
function qe() {
|
|
783
|
-
return "%";
|
|
784
|
-
}
|
|
785
|
-
function Ie(e) {
|
|
786
|
-
return +e;
|
|
787
|
-
}
|
|
788
|
-
function Qe(e) {
|
|
789
|
-
return Math.floor(+e / 1e3);
|
|
790
|
-
}
|
|
791
|
-
var J, V;
|
|
792
|
-
xt({
|
|
793
|
-
dateTime: "%x, %X",
|
|
794
|
-
date: "%-m/%-d/%Y",
|
|
795
|
-
time: "%-I:%M:%S %p",
|
|
796
|
-
periods: ["AM", "PM"],
|
|
797
|
-
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
798
|
-
shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
799
|
-
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
800
|
-
shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
801
|
-
});
|
|
802
|
-
function xt(e) {
|
|
803
|
-
return J = Ye(e), V = J.format, J.parse, J.utcFormat, J.utcParse, J;
|
|
804
|
-
}
|
|
805
|
-
const pe = [
|
|
806
|
-
// YEAR
|
|
807
|
-
[
|
|
808
|
-
1,
|
|
809
|
-
// years
|
|
810
|
-
4,
|
|
811
|
-
// quarters
|
|
812
|
-
12,
|
|
813
|
-
// months
|
|
814
|
-
52,
|
|
815
|
-
// weeks
|
|
816
|
-
365,
|
|
817
|
-
// days
|
|
818
|
-
365 * 24,
|
|
819
|
-
// hours
|
|
820
|
-
365 * 24 * 60,
|
|
821
|
-
// minutes
|
|
822
|
-
365 * 24 * 60 * 60,
|
|
823
|
-
// seconds
|
|
824
|
-
365 * 24 * 60 * 60 * 1e3
|
|
825
|
-
// milliseconds
|
|
826
|
-
],
|
|
827
|
-
// QUARTERS
|
|
828
|
-
[
|
|
829
|
-
1 / 4,
|
|
830
|
-
// year
|
|
831
|
-
1,
|
|
832
|
-
// quarters
|
|
833
|
-
3,
|
|
834
|
-
// months
|
|
835
|
-
13,
|
|
836
|
-
// weeks
|
|
837
|
-
91,
|
|
838
|
-
// days
|
|
839
|
-
91 * 24,
|
|
840
|
-
// hours
|
|
841
|
-
91 * 24 * 60,
|
|
842
|
-
// minutes
|
|
843
|
-
91 * 24 * 60 * 60,
|
|
844
|
-
// seconds
|
|
845
|
-
91 * 24 * 60 * 60 * 1e3
|
|
846
|
-
// milliseconds
|
|
847
|
-
],
|
|
848
|
-
// MONTHS
|
|
849
|
-
[
|
|
850
|
-
1 / 12,
|
|
851
|
-
// year
|
|
852
|
-
1 / 3,
|
|
853
|
-
// quarters
|
|
854
|
-
1,
|
|
855
|
-
// months
|
|
856
|
-
4,
|
|
857
|
-
// weeks
|
|
858
|
-
30,
|
|
859
|
-
// days
|
|
860
|
-
30 * 24,
|
|
861
|
-
// hours
|
|
862
|
-
30 * 24 * 60,
|
|
863
|
-
// minutes
|
|
864
|
-
30 * 24 * 60 * 60,
|
|
865
|
-
// seconds
|
|
866
|
-
30 * 24 * 60 * 60 * 1e3
|
|
867
|
-
// milliseconds
|
|
868
|
-
],
|
|
869
|
-
// WEEKS
|
|
870
|
-
[
|
|
871
|
-
1 / 52,
|
|
872
|
-
// year
|
|
873
|
-
1 / 13,
|
|
874
|
-
// quarters
|
|
875
|
-
1 / 4,
|
|
876
|
-
// months
|
|
877
|
-
1,
|
|
878
|
-
// weeks
|
|
879
|
-
7,
|
|
880
|
-
// days
|
|
881
|
-
7 * 24,
|
|
882
|
-
// hours
|
|
883
|
-
7 * 24 * 60,
|
|
884
|
-
// minutes
|
|
885
|
-
7 * 24 * 60 * 60,
|
|
886
|
-
// seconds
|
|
887
|
-
7 * 24 * 60 * 60 * 1e3
|
|
888
|
-
// milliseconds
|
|
889
|
-
],
|
|
890
|
-
// DAYS
|
|
891
|
-
[
|
|
892
|
-
1 / 365,
|
|
893
|
-
// year
|
|
894
|
-
1 / 91,
|
|
895
|
-
// quarters
|
|
896
|
-
1 / 30,
|
|
897
|
-
// months
|
|
898
|
-
1 / 7,
|
|
899
|
-
// weeks
|
|
900
|
-
1,
|
|
901
|
-
// days
|
|
902
|
-
24,
|
|
903
|
-
// hours
|
|
904
|
-
24 * 60,
|
|
905
|
-
// minutes
|
|
906
|
-
24 * 60 * 60,
|
|
907
|
-
// seconds
|
|
908
|
-
24 * 60 * 60 * 1e3
|
|
909
|
-
// milliseconds
|
|
910
|
-
],
|
|
911
|
-
// HOURS
|
|
912
|
-
[
|
|
913
|
-
1 / (365 * 24),
|
|
914
|
-
// year
|
|
915
|
-
1 / (91 * 24),
|
|
916
|
-
// quarters
|
|
917
|
-
1 / (30 * 24),
|
|
918
|
-
// months
|
|
919
|
-
1 / (7 * 24),
|
|
920
|
-
// weeks
|
|
921
|
-
1 / 24,
|
|
922
|
-
// days
|
|
923
|
-
1,
|
|
924
|
-
// hours
|
|
925
|
-
60,
|
|
926
|
-
// minutes
|
|
927
|
-
60 * 60,
|
|
928
|
-
// seconds
|
|
929
|
-
60 * 60 * 1e3
|
|
930
|
-
// milliseconds
|
|
931
|
-
],
|
|
932
|
-
// MINUTES
|
|
933
|
-
[
|
|
934
|
-
1 / (365 * 24 * 60),
|
|
935
|
-
// year
|
|
936
|
-
1 / (91 * 24 * 60),
|
|
937
|
-
// quarters
|
|
938
|
-
1 / (30 * 24 * 60),
|
|
939
|
-
// months
|
|
940
|
-
1 / (7 * 24 * 60),
|
|
941
|
-
// weeks
|
|
942
|
-
1 / (24 * 60),
|
|
943
|
-
// days
|
|
944
|
-
1 / 60,
|
|
945
|
-
// hours
|
|
946
|
-
1,
|
|
947
|
-
// minutes
|
|
948
|
-
60,
|
|
949
|
-
// seconds
|
|
950
|
-
60 * 1e3
|
|
951
|
-
// milliseconds
|
|
952
|
-
],
|
|
953
|
-
// SECONDS
|
|
954
|
-
[
|
|
955
|
-
1 / (365 * 24 * 60 * 60),
|
|
956
|
-
// year
|
|
957
|
-
1 / (91 * 24 * 60 * 60),
|
|
958
|
-
// quarters
|
|
959
|
-
1 / (30 * 24 * 60 * 60),
|
|
960
|
-
// months
|
|
961
|
-
1 / (7 * 24 * 60 * 60),
|
|
962
|
-
// weeks
|
|
963
|
-
1 / (24 * 60 * 60),
|
|
964
|
-
// days
|
|
965
|
-
1 / (60 * 60),
|
|
966
|
-
// hours
|
|
967
|
-
1 / 60,
|
|
968
|
-
// minutes
|
|
969
|
-
1,
|
|
970
|
-
// seconds
|
|
971
|
-
1e3
|
|
972
|
-
// milliseconds
|
|
973
|
-
],
|
|
974
|
-
// MILLISECONDS
|
|
975
|
-
[
|
|
976
|
-
1 / (365 * 24 * 60 * 60 * 1e3),
|
|
977
|
-
// year
|
|
978
|
-
1 / (91 * 24 * 60 * 60 * 1e3),
|
|
979
|
-
// quarters
|
|
980
|
-
1 / (30 * 24 * 60 * 60 * 1e3),
|
|
981
|
-
// months
|
|
982
|
-
1 / (7 * 24 * 60 * 60 * 1e3),
|
|
983
|
-
// weeks
|
|
984
|
-
1 / (24 * 60 * 60 * 1e3),
|
|
985
|
-
// days
|
|
986
|
-
1 / (60 * 60 * 1e3),
|
|
987
|
-
// hours
|
|
988
|
-
1 / (60 * 1e3),
|
|
989
|
-
// minutes
|
|
990
|
-
1 / 1e3,
|
|
991
|
-
// seconds
|
|
992
|
-
1
|
|
993
|
-
// milliseconds
|
|
994
|
-
]
|
|
995
|
-
];
|
|
996
|
-
function Wt(e, r, t) {
|
|
997
|
-
if (z(e))
|
|
998
|
-
return;
|
|
999
|
-
if (!r || !t || r === t)
|
|
1000
|
-
return e;
|
|
1001
|
-
const n = pe[r - 1][t - 1];
|
|
1002
|
-
if (n)
|
|
1003
|
-
return e * n;
|
|
1004
|
-
}
|
|
1005
|
-
function At(e, r, t, n) {
|
|
1006
|
-
if (z(e) || !r.lowestLevel || t.length === 0)
|
|
1007
|
-
return "";
|
|
1008
|
-
const i = [];
|
|
1009
|
-
let u = 0, m = Math.round(
|
|
1010
|
-
e * pe[r.lowestLevel - 1][8]
|
|
1011
|
-
);
|
|
1012
|
-
const T = 9;
|
|
1013
|
-
for (const [, s] of t.entries())
|
|
1014
|
-
if (e) {
|
|
1015
|
-
m = m - u;
|
|
1016
|
-
const D = pe[s - 1][T - 1], y = Math.floor(m / D);
|
|
1017
|
-
u = y * D, i.push({ level: s, value: y });
|
|
1018
|
-
} else
|
|
1019
|
-
i.push({ level: s, value: 0 });
|
|
1020
|
-
let C = "";
|
|
1021
|
-
for (const [s, D] of i.entries())
|
|
1022
|
-
if (r.duration.format === "time") {
|
|
1023
|
-
let y = D.value;
|
|
1024
|
-
[6, 7, 8].includes(D.level) && D.value < 10 ? y = "0" + D.value.toString() : D.level === 9 && D.value < 10 ? y = "00" + D.value.toString() : D.level === 9 && D.value < 100 && (y = "0" + D.value.toString()), C += (s === 0 ? "" : D.level === 9 ? "." : ":") + y;
|
|
1025
|
-
} else if (r.duration.format === "long") {
|
|
1026
|
-
const y = n.durationLongSuffix;
|
|
1027
|
-
C += D.value + " " + y[D.level] + (s === i.length - 1 ? "" : " ");
|
|
1028
|
-
} else {
|
|
1029
|
-
const y = n.durationShortSuffix;
|
|
1030
|
-
C += D.value + "" + y[D.level] + (s === i.length - 1 ? "" : " ");
|
|
1031
|
-
}
|
|
1032
|
-
return C;
|
|
1033
|
-
}
|
|
1034
|
-
const be = {
|
|
1035
|
-
decimal: ".",
|
|
1036
|
-
thousands: ",",
|
|
1037
|
-
grouping: [3],
|
|
1038
|
-
currency: ["$", ""],
|
|
1039
|
-
dateTime: "%a %b %e %X %Y",
|
|
1040
|
-
date: "%m/%d/%Y",
|
|
1041
|
-
dateSeparator: "/",
|
|
1042
|
-
time: "%H:%M:%S",
|
|
1043
|
-
periods: ["AM", "PM"],
|
|
1044
|
-
days: [
|
|
1045
|
-
"Sunday",
|
|
1046
|
-
"Monday",
|
|
1047
|
-
"Tuesday",
|
|
1048
|
-
"Wednesday",
|
|
1049
|
-
"Thursday",
|
|
1050
|
-
"Friday",
|
|
1051
|
-
"Saturday"
|
|
1052
|
-
],
|
|
1053
|
-
shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1054
|
-
months: [
|
|
1055
|
-
"January",
|
|
1056
|
-
"February",
|
|
1057
|
-
"March",
|
|
1058
|
-
"April",
|
|
1059
|
-
"May",
|
|
1060
|
-
"June",
|
|
1061
|
-
"July",
|
|
1062
|
-
"August",
|
|
1063
|
-
"September",
|
|
1064
|
-
"October",
|
|
1065
|
-
"November",
|
|
1066
|
-
"December"
|
|
1067
|
-
],
|
|
1068
|
-
shortMonths: [
|
|
1069
|
-
"Jan",
|
|
1070
|
-
"Feb",
|
|
1071
|
-
"Mar",
|
|
1072
|
-
"Apr",
|
|
1073
|
-
"May",
|
|
1074
|
-
"Jun",
|
|
1075
|
-
"Jul",
|
|
1076
|
-
"Aug",
|
|
1077
|
-
"Sep",
|
|
1078
|
-
"Oct",
|
|
1079
|
-
"Nov",
|
|
1080
|
-
"Dec"
|
|
1081
|
-
],
|
|
1082
|
-
levels: [
|
|
1083
|
-
"All",
|
|
1084
|
-
"Year",
|
|
1085
|
-
"Quarter",
|
|
1086
|
-
"Month",
|
|
1087
|
-
"Week",
|
|
1088
|
-
"Date",
|
|
1089
|
-
"Hour",
|
|
1090
|
-
"Minute",
|
|
1091
|
-
"Second",
|
|
1092
|
-
"Millisecond"
|
|
1093
|
-
],
|
|
1094
|
-
shortLevels: [
|
|
1095
|
-
"All",
|
|
1096
|
-
"Yr",
|
|
1097
|
-
"Qtr",
|
|
1098
|
-
"Mth",
|
|
1099
|
-
"Wk",
|
|
1100
|
-
"Date",
|
|
1101
|
-
"Hr",
|
|
1102
|
-
"Min",
|
|
1103
|
-
"Sec",
|
|
1104
|
-
"Msec"
|
|
1105
|
-
],
|
|
1106
|
-
durationLongSuffix: [
|
|
1107
|
-
"",
|
|
1108
|
-
"years",
|
|
1109
|
-
"quarters",
|
|
1110
|
-
"months",
|
|
1111
|
-
"weeks",
|
|
1112
|
-
"days",
|
|
1113
|
-
"hours",
|
|
1114
|
-
"minutes",
|
|
1115
|
-
"seconds",
|
|
1116
|
-
"milliseconds"
|
|
1117
|
-
],
|
|
1118
|
-
durationShortSuffix: ["", "y", "q", "mo", "w", "d", "h", "m", "s", "ms"],
|
|
1119
|
-
multi: [".%L", ":%S", "%I:%M", "%I %p", "%a %d", "W%G", "%b %d", "%B", "%Y"]
|
|
1120
|
-
}, _t = "%d-%m-%Y", Nt = [
|
|
1121
|
-
{
|
|
1122
|
-
key: "%a %e %b %Y",
|
|
1123
|
-
lev1: "%Y",
|
|
1124
|
-
lev2: "Q%q-%Y",
|
|
1125
|
-
lev3: "%b %Y",
|
|
1126
|
-
lev4: "Wk %V-%G",
|
|
1127
|
-
lev5: "%a %e %b %Y",
|
|
1128
|
-
monthType: "name",
|
|
1129
|
-
longText: !1,
|
|
1130
|
-
weekday: !0
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
key: "%e %b %Y",
|
|
1134
|
-
lev1: "%Y",
|
|
1135
|
-
lev2: "Q%q-%Y",
|
|
1136
|
-
lev3: "%b %Y",
|
|
1137
|
-
lev4: "Wk %V-%G",
|
|
1138
|
-
lev5: "%e %b %Y",
|
|
1139
|
-
monthType: "name",
|
|
1140
|
-
longText: !1,
|
|
1141
|
-
weekday: !1
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
key: "%a %e %B %Y",
|
|
1145
|
-
lev1: "%Y",
|
|
1146
|
-
lev2: "Q%q-%Y",
|
|
1147
|
-
lev3: "%B %Y",
|
|
1148
|
-
lev4: "Week %V, %G",
|
|
1149
|
-
lev5: "%a %e %B %Y",
|
|
1150
|
-
monthType: "name",
|
|
1151
|
-
longText: !0,
|
|
1152
|
-
weekday: !0
|
|
1153
|
-
},
|
|
1154
|
-
{
|
|
1155
|
-
key: "%e %B %Y",
|
|
1156
|
-
lev1: "%Y",
|
|
1157
|
-
lev2: "Q%q-%Y",
|
|
1158
|
-
lev3: "%B %Y",
|
|
1159
|
-
lev4: "Week %V, %G",
|
|
1160
|
-
lev5: "%e %B %Y",
|
|
1161
|
-
monthType: "name",
|
|
1162
|
-
longText: !0,
|
|
1163
|
-
weekday: !1
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
key: "%d/%m/%Y",
|
|
1167
|
-
lev1: "%Y",
|
|
1168
|
-
lev2: "Q%q/%Y",
|
|
1169
|
-
lev3: "%m/%Y",
|
|
1170
|
-
lev4: "W%V/%G",
|
|
1171
|
-
lev5: "%d/%m/%Y",
|
|
1172
|
-
monthType: "number",
|
|
1173
|
-
mmdd: !1,
|
|
1174
|
-
separator: "/"
|
|
1175
|
-
},
|
|
1176
|
-
{
|
|
1177
|
-
key: "%d-%m-%Y",
|
|
1178
|
-
lev1: "%Y",
|
|
1179
|
-
lev2: "Q%q-%Y",
|
|
1180
|
-
lev3: "%m-%Y",
|
|
1181
|
-
lev4: "W%V-%G",
|
|
1182
|
-
lev5: "%d-%m-%Y",
|
|
1183
|
-
monthType: "number",
|
|
1184
|
-
mmdd: !1,
|
|
1185
|
-
separator: "-"
|
|
1186
|
-
},
|
|
1187
|
-
{
|
|
1188
|
-
key: "%d.%m.%Y",
|
|
1189
|
-
lev1: "%Y",
|
|
1190
|
-
lev2: "Q%q.%Y",
|
|
1191
|
-
lev3: "%m.%Y",
|
|
1192
|
-
lev4: "W%V.%G",
|
|
1193
|
-
lev5: "%d.%m.%Y",
|
|
1194
|
-
monthType: "number",
|
|
1195
|
-
mmdd: !1,
|
|
1196
|
-
separator: "."
|
|
1197
|
-
},
|
|
1198
|
-
{
|
|
1199
|
-
key: "%d~%m~%Y",
|
|
1200
|
-
lev1: "%Y",
|
|
1201
|
-
lev2: "Q%q~%Y",
|
|
1202
|
-
lev3: "%m~%Y",
|
|
1203
|
-
lev4: "W%V~%G",
|
|
1204
|
-
lev5: "%d~%m~%Y",
|
|
1205
|
-
monthType: "number",
|
|
1206
|
-
mmdd: !1,
|
|
1207
|
-
separator: "~"
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
key: "%m/%d/%Y",
|
|
1211
|
-
lev1: "%Y",
|
|
1212
|
-
lev2: "Q%q/%Y",
|
|
1213
|
-
lev3: "%m/%Y",
|
|
1214
|
-
lev4: "%G/W%V",
|
|
1215
|
-
lev5: "%m/%d/%Y",
|
|
1216
|
-
monthType: "number",
|
|
1217
|
-
mmdd: !0,
|
|
1218
|
-
separator: "/"
|
|
1219
|
-
},
|
|
1220
|
-
{
|
|
1221
|
-
key: "%m-%d-%Y",
|
|
1222
|
-
lev1: "%Y",
|
|
1223
|
-
lev2: "Q%q-%Y",
|
|
1224
|
-
lev3: "%m-%Y",
|
|
1225
|
-
lev4: "%G-W%V",
|
|
1226
|
-
lev5: "%m-%d-%Y",
|
|
1227
|
-
monthType: "number",
|
|
1228
|
-
mmdd: !0,
|
|
1229
|
-
separator: "-"
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
key: "%m.%d.%Y",
|
|
1233
|
-
lev1: "%Y",
|
|
1234
|
-
lev2: "Q%q.%Y",
|
|
1235
|
-
lev3: "%m.%Y",
|
|
1236
|
-
lev4: "%G.W%V",
|
|
1237
|
-
lev5: "%m.%d.%Y",
|
|
1238
|
-
monthType: "number",
|
|
1239
|
-
mmdd: !0,
|
|
1240
|
-
separator: "."
|
|
1241
|
-
},
|
|
1242
|
-
{
|
|
1243
|
-
key: "%m~%d~%Y",
|
|
1244
|
-
lev1: "%Y",
|
|
1245
|
-
lev2: "Q%q~%Y",
|
|
1246
|
-
lev3: "%m~%Y",
|
|
1247
|
-
lev4: "%G~W%V",
|
|
1248
|
-
lev5: "%m~%d~%Y",
|
|
1249
|
-
monthType: "number",
|
|
1250
|
-
mmdd: !0,
|
|
1251
|
-
separator: "~"
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
key: "%amd/%Y",
|
|
1255
|
-
lev1: "%Y",
|
|
1256
|
-
lev2: "Q%q/%Y",
|
|
1257
|
-
lev3: "%m/%Y",
|
|
1258
|
-
lev4: "%G/W%V",
|
|
1259
|
-
lev5: "%amd/%Y",
|
|
1260
|
-
monthType: "number",
|
|
1261
|
-
mmdd: null,
|
|
1262
|
-
separator: "/"
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
1265
|
-
key: "%amd-%Y",
|
|
1266
|
-
lev1: "%Y",
|
|
1267
|
-
lev2: "Q%q-%Y",
|
|
1268
|
-
lev3: "%m-%Y",
|
|
1269
|
-
lev4: "%G-W%V",
|
|
1270
|
-
lev5: "%amd-%Y",
|
|
1271
|
-
monthType: "number",
|
|
1272
|
-
mmdd: null,
|
|
1273
|
-
separator: "-"
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
key: "%amd.%Y",
|
|
1277
|
-
lev1: "%Y",
|
|
1278
|
-
lev2: "Q%q.%Y",
|
|
1279
|
-
lev3: "%m.%Y",
|
|
1280
|
-
lev4: "%G.W%V",
|
|
1281
|
-
lev5: "%amd.%Y",
|
|
1282
|
-
monthType: "number",
|
|
1283
|
-
mmdd: null,
|
|
1284
|
-
separator: "."
|
|
1285
|
-
},
|
|
1286
|
-
{
|
|
1287
|
-
key: "%amd~%Y",
|
|
1288
|
-
lev1: "%Y",
|
|
1289
|
-
lev2: "Q%q~%Y",
|
|
1290
|
-
lev3: "%m~%Y",
|
|
1291
|
-
lev4: "%G~W%V",
|
|
1292
|
-
lev5: "%amd~%Y",
|
|
1293
|
-
monthType: "number",
|
|
1294
|
-
mmdd: null,
|
|
1295
|
-
separator: "~"
|
|
1296
|
-
}
|
|
1297
|
-
], Lt = [
|
|
1298
|
-
{
|
|
1299
|
-
key: "%H:%M:%S.%L",
|
|
1300
|
-
lev6: "%H:00",
|
|
1301
|
-
lev7: "%H:%M",
|
|
1302
|
-
lev8: "%H:%M:%S",
|
|
1303
|
-
lev9: "%H:%M:%S.%L",
|
|
1304
|
-
ampm: !1
|
|
1305
|
-
},
|
|
1306
|
-
{
|
|
1307
|
-
key: "%I:%M:%S.%L %p",
|
|
1308
|
-
lev6: "%I:00 %p",
|
|
1309
|
-
lev7: "%I:%M %p",
|
|
1310
|
-
lev8: "%I:%M:%S %p",
|
|
1311
|
-
lev9: "%I:%M:%S.%L %p",
|
|
1312
|
-
ampm: !0
|
|
1313
|
-
}
|
|
1314
|
-
];
|
|
1315
|
-
function Vt(e, r) {
|
|
1316
|
-
var y, H;
|
|
1317
|
-
r = r || {};
|
|
1318
|
-
const t = r.localFormats || be;
|
|
1319
|
-
let n, i, u, m = [], T = [], C = "datetime", s;
|
|
1320
|
-
r && r.multi && (C = "datetime"), (!e || !e.format) && (C = "hierarchy"), e && e.type && (C = e.type), e && e.format ? s = e.format : C === "numeric" ? s = ",.0f" : C === "datetime" ? s = _t : s = "";
|
|
1321
|
-
const D = sr(s);
|
|
1322
|
-
switch (D.precision && D.typeFormat && (C = "numeric"), C) {
|
|
1323
|
-
case "numeric": {
|
|
1324
|
-
if (e.subtype === "duration" && e.duration && e.duration.levels && e.duration.levels.length > 1 && !r.hideDuration)
|
|
1325
|
-
n = (l) => z(l) ? "" : At(
|
|
1326
|
-
l,
|
|
1327
|
-
e,
|
|
1328
|
-
e.duration.levels,
|
|
1329
|
-
t
|
|
1330
|
-
);
|
|
1331
|
-
else {
|
|
1332
|
-
const l = { ...t };
|
|
1333
|
-
let h = D.typeFormat, f = !1;
|
|
1334
|
-
switch (h.length === 2 && h.startsWith("a") && (f = !0, h = h.slice(1, 2), s = s.replace(/a/, "")), f ? (l.decimal = t.decimal, l.thousands = t.thousands) : ["z", "y", "w"].includes(h) ? (l.decimal = ",", l.thousands = ".") : (l.decimal = ".", l.thousands = ","), h) {
|
|
1335
|
-
case "z": {
|
|
1336
|
-
s = s.replace("z", "f");
|
|
1337
|
-
break;
|
|
1338
|
-
}
|
|
1339
|
-
case "y": {
|
|
1340
|
-
s = s.replace("y", "%");
|
|
1341
|
-
break;
|
|
1342
|
-
}
|
|
1343
|
-
case "w": {
|
|
1344
|
-
s = s.replace("w", "s");
|
|
1345
|
-
break;
|
|
1346
|
-
}
|
|
1347
|
-
}
|
|
1348
|
-
if ((e == null ? void 0 : e.subtype) === "currency" && e.currency) {
|
|
1349
|
-
const c = " ", F = l.currency.findIndex(
|
|
1350
|
-
(U) => U.length > 0
|
|
1351
|
-
), S = l.currency[F].startsWith(c), w = l.currency[F].endsWith(c), d = `${S ? c : ""}${e.currency}${w ? c : ""}`;
|
|
1352
|
-
l.currency[F] = d;
|
|
1353
|
-
}
|
|
1354
|
-
const p = Tr(l);
|
|
1355
|
-
h !== "%" && (e == null ? void 0 : e.subtype) === "currency" && e.currency && l.currency && !(r != null && r.hideCurrency) && !["count", "distinctcount"].includes(e.aggregationFunc) && !(e.aggregationFunc === "rate" && ((y = e.aggregationWeight) == null ? void 0 : y.columnSubType) === "currency") && ((H = e.periodOverPeriod) == null ? void 0 : H.type) !== "percentageChange" && (s = "$" + s), r != null && r.trimZero && ["y", "%"].includes(h) && l.decimal === "," ? i = (c) => p.format(s)(c).replace(/(,\d*?)0+%$/, "$1%").replace(/,%$/, "%") : r != null && r.trimZero && ["y", "%"].includes(h) && l.decimal === "." ? i = (c) => p.format(s)(c).replace(/(\.\d*?)0+%$/, "$1%").replace(/\.%$/, "%") : r != null && r.trimZero && ["z", "f"].includes(h) && l.decimal === "," ? i = (c) => p.format(s)(c).replace(/(,\d*?)0+$/, "$1").replace(/,$/, "") : r != null && r.trimZero && ["z", "f"].includes(h) && l.decimal === "." ? i = (c) => p.format(s)(c).replace(/(\.\d*?)0+$/, "$1").replace(/\.$/, "") : (e == null ? void 0 : e.subtype) === "currency" && e.currency && l.currency && h === "s" ? i = (c) => p.format(s)(c).replace(/G/, "B") : i = z(D.precision) ? p.format(",.0f") : p.format(s), n = (c) => {
|
|
1356
|
-
var F;
|
|
1357
|
-
if (z(c))
|
|
1358
|
-
return "";
|
|
1359
|
-
if (e.subtype === "duration" && e.duration && !r.hideDuration) {
|
|
1360
|
-
const S = e.duration.levels ? e.duration.levels[0] : e.lowestLevel;
|
|
1361
|
-
return S !== e.lowestLevel && (c = Wt(c, e.lowestLevel, S)), i(c) + ((F = t == null ? void 0 : t.durationShortSuffix) == null ? void 0 : F[S]);
|
|
1362
|
-
}
|
|
1363
|
-
return i(c);
|
|
1364
|
-
};
|
|
1365
|
-
}
|
|
1366
|
-
break;
|
|
1367
|
-
}
|
|
1368
|
-
case "datetime": {
|
|
1369
|
-
if (m = (t == null ? void 0 : t.smartDateFormats) ?? Nt, T = (t == null ? void 0 : t.smartTimeFormats) ?? Lt, z(e.datetimeDisplayMode)) {
|
|
1370
|
-
if (r != null && r.level) {
|
|
1371
|
-
const l = r.level, h = m.find(
|
|
1372
|
-
(w) => s.includes(w.key)
|
|
1373
|
-
), f = T.find(
|
|
1374
|
-
(w) => s.includes(w.key)
|
|
1375
|
-
), p = h ? h["lev" + Math.min(l, 5)] : m[0]["lev" + Math.min(l, 5)], c = l > 5 ? f ? f["lev" + l] : T[0]["lev" + l] : "";
|
|
1376
|
-
s = l > 5 ? p + ", " + c : p;
|
|
1377
|
-
const F = s.includes("%amd") && r.level >= 5, S = h ? r.level >= 2 && h.separator === "~" : !1;
|
|
1378
|
-
F ? s = S ? (
|
|
1379
|
-
// Fully use the date format defined in the locale JSON, including its separators.
|
|
1380
|
-
s.replaceAll(
|
|
1381
|
-
new RegExp(/%amd[.~\/-]%Y/g),
|
|
1382
|
-
t.date.slice(0, 8)
|
|
1383
|
-
)
|
|
1384
|
-
) : (
|
|
1385
|
-
// Use the date format defined in the locale JSON, but replace the seperators to the hardcoded separator configured in the slot menu.
|
|
1386
|
-
s.replaceAll(
|
|
1387
|
-
new RegExp(/%amd[.~\/-]%Y/g),
|
|
1388
|
-
t.date.slice(0, 8).replaceAll(
|
|
1389
|
-
new RegExp(/[.~\/-]/g),
|
|
1390
|
-
h.separator
|
|
1391
|
-
)
|
|
1392
|
-
)
|
|
1393
|
-
) : s = S ? (
|
|
1394
|
-
// No locale aware date format but locale aware separator: replace locale aware '~' separator by correct separator from locale JSON.
|
|
1395
|
-
s.replaceAll(
|
|
1396
|
-
new RegExp(/[~]/g),
|
|
1397
|
-
t.dateSeparator
|
|
1398
|
-
)
|
|
1399
|
-
) : (
|
|
1400
|
-
// No locale aware format and no locale aware separator: no action required.
|
|
1401
|
-
s
|
|
1402
|
-
);
|
|
1403
|
-
}
|
|
1404
|
-
if (r != null && r.multi) {
|
|
1405
|
-
const l = V(t.multi[0]), h = V(t.multi[1]), f = V(t.multi[2]), p = V(t.multi[3]), c = V(t.multi[4]), F = V(t.multi[6]), S = V(t.multi[7]), w = V(t.multi[8]);
|
|
1406
|
-
u = (d) => {
|
|
1407
|
-
let U;
|
|
1408
|
-
return ze(d) < d ? U = l : Pe(d) < d ? U = h : Re(d) < d ? U = f : fe(d) < d ? U = p : Ee(d) < d ? U = De(d) < d ? c : F : Q(d) < d ? U = S : U = w, U(d);
|
|
1409
|
-
};
|
|
1410
|
-
} else
|
|
1411
|
-
u = Ye(t).format(s);
|
|
1412
|
-
} else {
|
|
1413
|
-
const l = {
|
|
1414
|
-
quarter_number: { min: 1, max: 4 },
|
|
1415
|
-
month_name: { min: 1, max: 12 },
|
|
1416
|
-
month_number: { min: 1, max: 12 },
|
|
1417
|
-
week_number: { min: 1, max: 53 },
|
|
1418
|
-
day_in_month: { min: 1, max: 31 },
|
|
1419
|
-
day_in_year: { min: 1, max: 366 },
|
|
1420
|
-
weekday_name: { min: 0, max: 7 },
|
|
1421
|
-
weekday_number: { min: 0, max: 7 },
|
|
1422
|
-
hour_in_day: { min: 0, max: 23 },
|
|
1423
|
-
minute_in_hour: { min: 0, max: 59 },
|
|
1424
|
-
second_in_minute: { min: 0, max: 59 }
|
|
1425
|
-
}, h = (f, p, c) => {
|
|
1426
|
-
var F, S, w, d, U;
|
|
1427
|
-
return p === "letter" ? ((F = f.shortNames) == null ? void 0 : F.length) > 0 && ((S = f.shortNames[c]) == null ? void 0 : S.length) > 0 ? (w = f.shortNames[c]) == null ? void 0 : w.charAt(0) : "N/A" : p === "short" ? ((d = f.shortNames) == null ? void 0 : d.length) > 0 && f.shortNames[c] ? f.shortNames[c] : "N/A" : ((U = f.longNames) == null ? void 0 : U.length) > 0 && f.longNames[c] ? f.longNames[c] : "N/A";
|
|
1428
|
-
};
|
|
1429
|
-
[
|
|
1430
|
-
"quarter_number",
|
|
1431
|
-
"month_number",
|
|
1432
|
-
"week_number",
|
|
1433
|
-
"day_in_month",
|
|
1434
|
-
"day_in_year",
|
|
1435
|
-
"weekday_number",
|
|
1436
|
-
"hour_in_day",
|
|
1437
|
-
"minute_in_hour",
|
|
1438
|
-
"second_in_minute"
|
|
1439
|
-
].includes(e.datetimeDisplayMode) ? u = (f) => ge(f) && f >= l[e.datetimeDisplayMode].min && f <= l[e.datetimeDisplayMode].max ? f : "N/A" : e.datetimeDisplayMode === "month_name" ? u = (f) => {
|
|
1440
|
-
const p = [...t.shortMonths], c = [...t.months];
|
|
1441
|
-
return ge(f) && f >= l[e.datetimeDisplayMode].min && f <= l[e.datetimeDisplayMode].max ? h(
|
|
1442
|
-
{ shortNames: p, longNames: c },
|
|
1443
|
-
e.monthNameFormat,
|
|
1444
|
-
f - 1
|
|
1445
|
-
) : "N/A";
|
|
1446
|
-
} : e.datetimeDisplayMode === "weekday_name" ? u = (f) => {
|
|
1447
|
-
const p = [...t.shortDays], c = [...t.days];
|
|
1448
|
-
return e.weekStart === "monday" && (p.push(p.shift() ?? ""), c.push(c.shift() ?? "")), ge(f) && f >= l[e.datetimeDisplayMode].min && f <= l[e.datetimeDisplayMode].max ? h(
|
|
1449
|
-
{ shortNames: p, longNames: c },
|
|
1450
|
-
e.weekDayNameFormat,
|
|
1451
|
-
f - 1
|
|
1452
|
-
) : "N/A";
|
|
1453
|
-
} : u = Ye(t).format(s);
|
|
1454
|
-
}
|
|
1455
|
-
n = (l) => {
|
|
1456
|
-
if (z(l))
|
|
1457
|
-
return "";
|
|
1458
|
-
const h = u(l);
|
|
1459
|
-
return mr(h) ? h.trim() : h;
|
|
1460
|
-
};
|
|
1461
|
-
break;
|
|
1462
|
-
}
|
|
1463
|
-
case "hierarchy": {
|
|
1464
|
-
n = (l) => lr(l, r ? r.locale : void 0);
|
|
1465
|
-
break;
|
|
1466
|
-
}
|
|
1467
|
-
default: {
|
|
1468
|
-
n = (l) => l;
|
|
1469
|
-
break;
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
return n;
|
|
1473
|
-
}
|
|
1474
|
-
const qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1475
|
-
__proto__: null,
|
|
1476
|
-
default: be
|
|
1477
|
-
}, Symbol.toStringTag, { value: "Module" })), It = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1478
|
-
__proto__: null,
|
|
1479
|
-
default: be
|
|
1480
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1481
|
-
export {
|
|
1482
|
-
be as D,
|
|
1483
|
-
Nt as S,
|
|
1484
|
-
_t as a,
|
|
1485
|
-
It as b,
|
|
1486
|
-
qt as e,
|
|
1487
|
-
Vt as f
|
|
1488
|
-
};
|