@cardstack/boxel-cli 0.9.0 → 0.10.0-unstable.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/bundled-test-harness/assets/account-switch-failed-GCSVbJML.js +23 -0
- package/bundled-test-harness/assets/account-switch-failed-GsWni_Gk.css +18 -0
- package/bundled-test-harness/assets/account-switch-failed-test-CdZWNths.js +45 -0
- package/bundled-test-harness/assets/add-workspace-c7L50Gx8.js +141 -0
- package/bundled-test-harness/assets/add-workspace-test-BZxHa6Pe.js +72 -0
- package/bundled-test-harness/assets/advanced-color-picker-0pGF-3WG.js +504 -0
- package/bundled-test-harness/assets/advanced-color-picker-pbO4HWc_.js +2 -0
- package/bundled-test-harness/assets/ai-assistant-test-Dnm4o9vK.js +2211 -0
- package/bundled-test-harness/assets/ai-module-creation-test-C6253CMt.js +151 -0
- package/bundled-test-harness/assets/aibot-message-miKyGeKk.js +278 -0
- package/bundled-test-harness/assets/app-i8pGdQkw.js +22855 -0
- package/bundled-test-harness/assets/app-zC7o6PyQ.css +2718 -0
- package/bundled-test-harness/assets/audio-file-def-DHnydP0t.js +133 -0
- package/bundled-test-harness/assets/auth-container-BP2gSoo4.css +51 -0
- package/bundled-test-harness/assets/auth-container-DN94iVfX.js +24 -0
- package/bundled-test-harness/assets/avif-meta-extractor-Bo5zRX1V.js +162 -0
- package/bundled-test-harness/assets/base64-image-B0RYxzHT.js +2 -0
- package/bundled-test-harness/assets/base64-image-Bxjqdwew.js +262 -0
- package/bundled-test-harness/assets/big-integer-7RLj5_7H.js +89 -0
- package/bundled-test-harness/assets/big-integer-C9sJxKVy.js +2 -0
- package/bundled-test-harness/assets/binary-upload-dedupe-test-DZo3EaV0.js +308 -0
- package/bundled-test-harness/assets/boolean-CcKPYUph.js +94 -0
- package/bundled-test-harness/assets/boolean-DvsSmtM7.js +2 -0
- package/bundled-test-harness/assets/brand-functional-palette-KpVSY2Sa.js +137 -0
- package/bundled-test-harness/assets/brand-logo-DDiOec0t.js +295 -0
- package/bundled-test-harness/assets/broken-link-template-test-DAngUbFJ.js +192 -0
- package/bundled-test-harness/assets/bundled-base-C_lumba6.js +254 -0
- package/bundled-test-harness/assets/bundled-base-modules-test-CSF7Rl4Z.js +54 -0
- package/bundled-test-harness/assets/buried-stack-item-scroll-test-B0J_EP88.js +236 -0
- package/bundled-test-harness/assets/bxl-expression-test-Dej7WgI6.js +250 -0
- package/bundled-test-harness/assets/can-invoke-test-elyUcOKT.js +401 -0
- package/bundled-test-harness/assets/card-api-CjWXCkqh.js +8 -0
- package/bundled-test-harness/assets/card-api-Dzje0smT.js +4393 -0
- package/bundled-test-harness/assets/card-api-test-DA8d4Ooc.js +198 -0
- package/bundled-test-harness/assets/card-basics-test-mp1Odo-l.js +5364 -0
- package/bundled-test-harness/assets/card-chooser-paging-test-y8OfboYd.js +235 -0
- package/bundled-test-harness/assets/card-chooser-test-nmg2zkDj.js +393 -0
- package/bundled-test-harness/assets/card-collection-BXiO3i7R.js +118 -0
- package/bundled-test-harness/assets/card-context-search-results-Dbhn7lvW.js +30 -0
- package/bundled-test-harness/assets/card-context-search-results-test-DVXT-YC5.js +184 -0
- package/bundled-test-harness/assets/card-def-field-def-relationships-test-mX4rxrtO.js +562 -0
- package/bundled-test-harness/assets/card-delete-test-BxFsqFnX.js +466 -0
- package/bundled-test-harness/assets/card-error-C-7hjxu9.js +72 -0
- package/bundled-test-harness/assets/card-error-awaiting-index-test-BvfY2eaW.js +53 -0
- package/bundled-test-harness/assets/card-error-detail-nMwopDir.js +271 -0
- package/bundled-test-harness/assets/card-info-CTFxdohf.js +2 -0
- package/bundled-test-harness/assets/card-list-B9QrkJ97.js +2 -0
- package/bundled-test-harness/assets/card-list-XbwLCXZS.js +202 -0
- package/bundled-test-harness/assets/card-resource-JGLjQUy6.js +86 -0
- package/bundled-test-harness/assets/cards-grid-CWG41hZE.js +344 -0
- package/bundled-test-harness/assets/cards-grid-DSpX99p6.js +2 -0
- package/bundled-test-harness/assets/cards-grid-layout-Bht0LwZy.js +2 -0
- package/bundled-test-harness/assets/cards-grid-layout-CdpKlHUb.js +111 -0
- package/bundled-test-harness/assets/check-correctness-test-C4BrUeKA.js +554 -0
- package/bundled-test-harness/assets/clip-BEVvLrXx.js +2 -0
- package/bundled-test-harness/assets/clip-CoB714qX.js +92 -0
- package/bundled-test-harness/assets/code-ref-C2uguisI.js +2 -0
- package/bundled-test-harness/assets/code-ref-Cy7sV5a4.js +138 -0
- package/bundled-test-harness/assets/code-submode-availability-test-BsA_Ul01.js +198 -0
- package/bundled-test-harness/assets/code-submode-test-DkBhpEPB.js +1839 -0
- package/bundled-test-harness/assets/codeblocks-test-B1eZ2_JF.js +418 -0
- package/bundled-test-harness/assets/codemirror-editor-C6pxSm5y.js +2 -0
- package/bundled-test-harness/assets/codemirror-editor-DzM46Cd8.js +701 -0
- package/bundled-test-harness/assets/codemirror-embed-toolbar-test-BemP-ZdG.js +366 -0
- package/bundled-test-harness/assets/color-C-jGNFWZ.js +2 -0
- package/bundled-test-harness/assets/color-field-test-DPIRaBec.js +212 -0
- package/bundled-test-harness/assets/color-picker-field-Bv4IjS-d.js +139 -0
- package/bundled-test-harness/assets/color-picker-field-D1bYCQIg.js +2 -0
- package/bundled-test-harness/assets/color-wheel-picker-IIaCQplL.js +283 -0
- package/bundled-test-harness/assets/color-wheel-picker-Kw-UN3kV.js +2 -0
- package/bundled-test-harness/assets/color-zzCBneih.js +65 -0
- package/bundled-test-harness/assets/command-data-BMBtjT1E.js +95 -0
- package/bundled-test-harness/assets/command-data-BXC5Z0oA.js +2 -0
- package/bundled-test-harness/assets/compaction-test-CxUKnxlQ.js +150 -0
- package/bundled-test-harness/assets/components-Ct_agx0G.js +14294 -0
- package/bundled-test-harness/assets/computed-test-C-lpGQQ3.js +1320 -0
- package/bundled-test-harness/assets/container-BdPu8rvc.css +5565 -0
- package/bundled-test-harness/assets/container-Dj-5prh9.js +11288 -0
- package/bundled-test-harness/assets/contains-many-component-CAWqzX8W.js +2 -0
- package/bundled-test-harness/assets/contrast-checker-addon-BTLD7oMx.js +2 -0
- package/bundled-test-harness/assets/contrast-checker-addon-DBzizR04.js +71 -0
- package/bundled-test-harness/assets/convert-to-class-name-test-zZuKxYvF.js +17 -0
- package/bundled-test-harness/assets/coordinate-Bw8va6tO.js +48 -0
- package/bundled-test-harness/assets/copy-file-to-realm-test-DtCKPzqj.js +148 -0
- package/bundled-test-harness/assets/country-B_tWpLlO.js +199 -0
- package/bundled-test-harness/assets/create-file-modal-D-VPyEYp.js +570 -0
- package/bundled-test-harness/assets/create-listing-modal-test-hyLkQY0u.js +273 -0
- package/bundled-test-harness/assets/create-listing-pr-request-test-rjWFA_5S.js +117 -0
- package/bundled-test-harness/assets/create-spec-test-HKIxZGxK.js +256 -0
- package/bundled-test-harness/assets/create-specs-9-ELVyJP.js +215 -0
- package/bundled-test-harness/assets/create-submission-workflow-test-DNZrbRX8.js +132 -0
- package/bundled-test-harness/assets/credential-fields-test-xPEdA911.js +157 -0
- package/bundled-test-harness/assets/css-value-Du3HL39X.js +48 -0
- package/bundled-test-harness/assets/csv-file-def-EHRmilrp.js +277 -0
- package/bundled-test-harness/assets/currency-y6ZCHIqG.js +134 -0
- package/bundled-test-harness/assets/date-B27PrSFT.js +183 -0
- package/bundled-test-harness/assets/date-CiP5Eb9i.js +2 -0
- package/bundled-test-harness/assets/date-time-fields-test-Clf5vxRW.js +359 -0
- package/bundled-test-harness/assets/datetime-BEbR9YgU.js +201 -0
- package/bundled-test-harness/assets/datetime-DPnrt1wl.js +2 -0
- package/bundled-test-harness/assets/datetime-stamp-AuT7F7qn.js +2 -0
- package/bundled-test-harness/assets/datetime-stamp-CGwP2P3f.js +81 -0
- package/bundled-test-harness/assets/day-BFLxZ9bQ.js +2 -0
- package/bundled-test-harness/assets/day-CQoEkqgE.js +113 -0
- package/bundled-test-harness/assets/debug-message-test-CzgOpfcI.js +117 -0
- package/bundled-test-harness/assets/dist-B-fYvxfL.js +389 -0
- package/bundled-test-harness/assets/dist-C2IXvIKX.js +323 -0
- package/bundled-test-harness/assets/dist-CdNZu43l.js +1710 -0
- package/bundled-test-harness/assets/docx-file-def-BQMw460_.js +60 -0
- package/bundled-test-harness/assets/docx-meta-extractor-DBlmH_kV.js +60 -0
- package/bundled-test-harness/assets/docx-meta-extractor-Dw4gZ0ae.js +2 -0
- package/bundled-test-harness/assets/duration-B0SnEiw1.js +184 -0
- package/bundled-test-harness/assets/duration-DbjJTFeA.js +2 -0
- package/bundled-test-harness/assets/email-C-8cyWiQ.js +80 -0
- package/bundled-test-harness/assets/email-field-test-BOBmvQqx.js +75 -0
- package/bundled-test-harness/assets/email-xUgCst-p.js +2 -0
- package/bundled-test-harness/assets/enum-BWiCyJlu.js +167 -0
- package/bundled-test-harness/assets/enum-CzYjivhO.js +2 -0
- package/bundled-test-harness/assets/enum-field-test-Bea9EsQR.js +953 -0
- package/bundled-test-harness/assets/error-display-test-Cbl2D_0c.js +343 -0
- package/bundled-test-harness/assets/ethereum-address-Bw_J05bD.js +78 -0
- package/bundled-test-harness/assets/ethereum-address-C9wHMBt3.js +2 -0
- package/bundled-test-harness/assets/expiration-warning-BHcJEjZt.js +90 -0
- package/bundled-test-harness/assets/expiration-warning-_G8SKZd0.js +2 -0
- package/bundled-test-harness/assets/externals-CKblKBo1.js +4393 -0
- package/bundled-test-harness/assets/fallback-banner-BqCrvTDt.js +24 -0
- package/bundled-test-harness/assets/fallback-banner-live-delete-test-D_AYMvf6.js +207 -0
- package/bundled-test-harness/assets/fallback-banner-test-B8Ne9a5g.js +225 -0
- package/bundled-test-harness/assets/fallback-banner-test-C7oaSxd1.js +53 -0
- package/bundled-test-harness/assets/fallback-models-test-DY-PvU9k.js +161 -0
- package/bundled-test-harness/assets/field-component-Bj8YthPE.js +2 -0
- package/bundled-test-harness/assets/field-configuration-test-B5LztQ47.js +548 -0
- package/bundled-test-harness/assets/field-edit-Cx_haspD.js +36 -0
- package/bundled-test-harness/assets/field-edit-DQZWUz3F.js +2 -0
- package/bundled-test-harness/assets/field-markdown-domain-test-DnqK3CrE.js +616 -0
- package/bundled-test-harness/assets/field-markdown-oversize-test-BEpbXIvl.js +88 -0
- package/bundled-test-harness/assets/field-markdown-primitives-test-BDORWoOk.js +365 -0
- package/bundled-test-harness/assets/field-markdown-specialized-test-BmIzadYq.js +534 -0
- package/bundled-test-harness/assets/field-test-helpers-CRF9-jFw.js +45 -0
- package/bundled-test-harness/assets/file-api-DPMJghBY.js +7 -0
- package/bundled-test-harness/assets/file-attachment-test-DFLXg3xV.js +796 -0
- package/bundled-test-harness/assets/file-chooser-panel-test-B4DzCWkt.js +153 -0
- package/bundled-test-harness/assets/file-chooser-test-DpjOWgpB.js +504 -0
- package/bundled-test-harness/assets/file-def-edit-Bstl7Kkl.js +2 -0
- package/bundled-test-harness/assets/file-def-edit-C1dzJxmQ.js +26 -0
- package/bundled-test-harness/assets/file-def-embedded-CUy4G7Vc.js +2 -0
- package/bundled-test-harness/assets/file-def-embedded-DJs6P5t0.js +38 -0
- package/bundled-test-harness/assets/file-def-fitted-BlrBFfLh.js +38 -0
- package/bundled-test-harness/assets/file-def-fitted-Bo5Qfkyf.js +2 -0
- package/bundled-test-harness/assets/file-def-isolated-BsHydanv.js +38 -0
- package/bundled-test-harness/assets/file-def-isolated-Dp-Lc99-.js +2 -0
- package/bundled-test-harness/assets/file-def-serialization-test-CISKpt_o.js +89 -0
- package/bundled-test-harness/assets/file-menu-items-7_ltrFZq.js +117 -0
- package/bundled-test-harness/assets/file-menu-items-BnRG9ydE.js +2 -0
- package/bundled-test-harness/assets/file-preview-stage-CV3qZpiK.js +72 -0
- package/bundled-test-harness/assets/file-preview-stage-DTA5X8rX.js +2 -0
- package/bundled-test-harness/assets/file-shell-embedded-BpmiVzIG.js +2 -0
- package/bundled-test-harness/assets/file-shell-embedded-CEv0-6OE.js +68 -0
- package/bundled-test-harness/assets/file-shell-fitted-C6k3GnMc.js +2 -0
- package/bundled-test-harness/assets/file-shell-fitted-iSTg3PJa.js +98 -0
- package/bundled-test-harness/assets/file-shell-isolated-C-pEod2J.js +195 -0
- package/bundled-test-harness/assets/file-shell-isolated-DI9oU7ix.js +2 -0
- package/bundled-test-harness/assets/file-tree-from-index-BtOOMqnb.js +151 -0
- package/bundled-test-harness/assets/file-tree-from-index-test-T8w3hPw_.js +96 -0
- package/bundled-test-harness/assets/film-5n9_gRqZ.js +4074 -0
- package/bundled-test-harness/assets/film-Ca2Vzlfu.js +13 -0
- package/bundled-test-harness/assets/film-DEvhBbBu.js +2 -0
- package/bundled-test-harness/assets/fitted-6OGuHgoU.js +2 -0
- package/bundled-test-harness/assets/fitted-B2l1jlSp.js +34 -0
- package/bundled-test-harness/assets/flac-meta-extractor-BoJqvmDC.js +99 -0
- package/bundled-test-harness/assets/font-file-def-Czzt5paT.js +64 -0
- package/bundled-test-harness/assets/font-meta-extractor-DQYT_e5b.js +2 -0
- package/bundled-test-harness/assets/font-meta-extractor-IHD-pG8V.js +303 -0
- package/bundled-test-harness/assets/formatted-aibot-message-test-Djsl8RzE.js +109 -0
- package/bundled-test-harness/assets/from-elsewhere-BXcLYxxu.js +131 -0
- package/bundled-test-harness/assets/frontmatter-field-CciolgL3.js +41 -0
- package/bundled-test-harness/assets/garbage-collection-test-BTOLAfB6.js +403 -0
- package/bundled-test-harness/assets/gauge-C1loqGq3.js +2 -0
- package/bundled-test-harness/assets/gauge-u8dxl90d.js +106 -0
- package/bundled-test-harness/assets/general-test-Cd5WtVvd.js +926 -0
- package/bundled-test-harness/assets/get-relationship-membership-state-test-DJAuhOVM.js +1308 -0
- package/bundled-test-harness/assets/gif-meta-extractor-tSaPtuYW.js +114 -0
- package/bundled-test-harness/assets/glimmer-motion-and-choreo-in-cards-test-DNSy5l59.js +160 -0
- package/bundled-test-harness/assets/glimmer-motion-and-choreo-test-B6BbQxYq.js +74 -0
- package/bundled-test-harness/assets/helper-m6jA5HmU.js +478 -0
- package/bundled-test-harness/assets/host-submode-test-CsgdksBi.js +1243 -0
- package/bundled-test-harness/assets/html-file-def-yKtdMSa-.js +82 -0
- package/bundled-test-harness/assets/hydratable-card-CxNfbqly.js +147 -0
- package/bundled-test-harness/assets/hydratable-card-test-NJ4CI4ey.js +426 -0
- package/bundled-test-harness/assets/icons-B3SAtRoj.js +894 -0
- package/bundled-test-harness/assets/image-file-def-B0rpS3Yy.js +3 -0
- package/bundled-test-harness/assets/image-file-def-DUFmjNL8.js +65 -0
- package/bundled-test-harness/assets/image-olOUqgMQ.js +47 -0
- package/bundled-test-harness/assets/index-changes-test-D7OE-99k.js +367 -0
- package/bundled-test-harness/assets/index-query-engine-test-BBKqgSmg.js +2593 -0
- package/bundled-test-harness/assets/inspector-test-DV6Ms2uz.js +1930 -0
- package/bundled-test-harness/assets/instance-filter-matcher-test-Bs4kf7E8.js +788 -0
- package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-DIfgRhIN.js +475 -0
- package/bundled-test-harness/assets/interact-submode-setup-D4M_e580.js +566 -0
- package/bundled-test-harness/assets/is-component-declaration-test-jPGRTVh1.js +50 -0
- package/bundled-test-harness/assets/iso-bmff-DHtkSbQM.js +205 -0
- package/bundled-test-harness/assets/iso-bmff-zmOHoSVg.js +2 -0
- package/bundled-test-harness/assets/isolated-and-edit-BAnwcK1T.js +2 -0
- package/bundled-test-harness/assets/job-priority-header-test-7j2f3Dtl.js +81 -0
- package/bundled-test-harness/assets/job-scoped-instance-residency-test-DPzVQUL3.js +103 -0
- package/bundled-test-harness/assets/join-the-community-Ft5fjeIA.js +86 -0
- package/bundled-test-harness/assets/jpg-meta-extractor-Dsq6rZ8F.js +88 -0
- package/bundled-test-harness/assets/json-field-CxOZvp3k.js +19 -0
- package/bundled-test-harness/assets/json-field-ojdwGD6T.js +2 -0
- package/bundled-test-harness/assets/json-file-def-Da_5-zSM.js +298 -0
- package/bundled-test-harness/assets/last-modified-date-BnyJsc04.js +43 -0
- package/bundled-test-harness/assets/last-modified-date-test-DFl2mo1B.js +28 -0
- package/bundled-test-harness/assets/links-to-editor-DO24-71w.js +2 -0
- package/bundled-test-harness/assets/links-to-many-component-C7DabwAY.js +2 -0
- package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-D4lDhvnQ.js +398 -0
- package/bundled-test-harness/assets/linksto-error-sentinel-test-oWgDz00K.js +238 -0
- package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-CpSl7zJ7.js +354 -0
- package/bundled-test-harness/assets/linksto-many-per-slot-access-test-DJY3J8Xl.js +303 -0
- package/bundled-test-harness/assets/linksto-sentinel-reload-test-BxzfoONe.js +197 -0
- package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-DyE99km_.js +260 -0
- package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-dcWAAgxt.js +196 -0
- package/bundled-test-harness/assets/llm-model-DrswiczZ.js +64 -0
- package/bundled-test-harness/assets/login-C-EIG0-Q.css +543 -0
- package/bundled-test-harness/assets/login-CNeL-9IC.js +408 -0
- package/bundled-test-harness/assets/login-error-text-test-CEH2tjNP.js +51 -0
- package/bundled-test-harness/assets/login-test-BpMx7qwV.js +246 -0
- package/bundled-test-harness/assets/m4a-meta-extractor-BJkMHUIK.js +204 -0
- package/bundled-test-harness/assets/main-BaUgfpPE.js +5 -0
- package/bundled-test-harness/assets/markdown-ByEGbwov.js +7 -0
- package/bundled-test-harness/assets/markdown-KJzgTg-A.js +2 -0
- package/bundled-test-harness/assets/markdown-editor-mode-select-BUGPXaSE.js +2 -0
- package/bundled-test-harness/assets/markdown-editor-mode-select-DBk8dG0O.js +54 -0
- package/bundled-test-harness/assets/markdown-embed-chooser-modal-test-BIlEmna9.js +470 -0
- package/bundled-test-harness/assets/markdown-embed-preview-pane-test-B6rscKpk.js +447 -0
- package/bundled-test-harness/assets/markdown-embed-preview-test-CTQw1wq-.js +368 -0
- package/bundled-test-harness/assets/markdown-fallback-BVsco6gJ.js +2 -0
- package/bundled-test-harness/assets/markdown-fallback-test-C_CIFEzH.js +316 -0
- package/bundled-test-harness/assets/markdown-highlighting-test-D6YvywF5.js +244 -0
- package/bundled-test-harness/assets/markdown-preview-1TSMSUv0.js +64 -0
- package/bundled-test-harness/assets/markdown-preview-jbuUjLoD.js +72 -0
- package/bundled-test-harness/assets/markdown-preview-test-zuU5uoA_.js +238 -0
- package/bundled-test-harness/assets/markdown-skill-frontmatter-test-CoicGRkb.js +146 -0
- package/bundled-test-harness/assets/menu-items-DZ_uOoYu.js +2 -0
- package/bundled-test-harness/assets/message-tool-test-K6LgTq5d.js +33 -0
- package/bundled-test-harness/assets/metadata-fields-WiOuUCDl.js +1415 -0
- package/bundled-test-harness/assets/metadata-fields-iu5AfQp3.js +2 -0
- package/bundled-test-harness/assets/midi-audio-def-CD2-4Wjx.js +52 -0
- package/bundled-test-harness/assets/midi-meta-extractor-CE3sLiEV.js +284 -0
- package/bundled-test-harness/assets/midi-meta-extractor-O7c8LHYV.js +2 -0
- package/bundled-test-harness/assets/migrate-skill-test-Beh-AeSN.js +161 -0
- package/bundled-test-harness/assets/mini-BNXINKKF.js +85 -0
- package/bundled-test-harness/assets/mini-C43Q4BWp.js +1519 -0
- package/bundled-test-harness/assets/mini-card-chooser-test-B1GMp-31.js +272 -0
- package/bundled-test-harness/assets/mini-file-chooser-test-CbI1vrQn.js +201 -0
- package/bundled-test-harness/assets/missing-template-BPhJRbDs.js +48 -0
- package/bundled-test-harness/assets/missing-template-DP-Pi-HQ.js +2 -0
- package/bundled-test-harness/assets/modal-KpPz2f8x.js +322 -0
- package/bundled-test-harness/assets/modal-container-0Efz_h2z.js +40 -0
- package/bundled-test-harness/assets/model-cost-tier-test-D-5VSjh6.js +173 -0
- package/bundled-test-harness/assets/module-contents-service-BRkTETb6.js +256 -0
- package/bundled-test-harness/assets/moment-Cln59YUK.js +3474 -0
- package/bundled-test-harness/assets/monaco-AbHCoDJY.js +143 -0
- package/bundled-test-harness/assets/monaco-test-DCPi18sy.js +100 -0
- package/bundled-test-harness/assets/monaco-test-waiter-lvFEYpFj.js +190 -0
- package/bundled-test-harness/assets/month-1eUIsvWN.js +2 -0
- package/bundled-test-harness/assets/month-BeUdWMWQ.js +123 -0
- package/bundled-test-harness/assets/month-day-Bbsd8YbR.js +192 -0
- package/bundled-test-harness/assets/month-day-Dks5STJu.js +2 -0
- package/bundled-test-harness/assets/month-year-pL_rpUhX.js +2 -0
- package/bundled-test-harness/assets/month-year-wH_YnYgL.js +93 -0
- package/bundled-test-harness/assets/mp3-meta-extractor-C3u34UHM.js +476 -0
- package/bundled-test-harness/assets/mp4-meta-extractor-Bj3F7dxs.js +188 -0
- package/bundled-test-harness/assets/multiple-stacks-test-mkNdTUMI.js +208 -0
- package/bundled-test-harness/assets/nested-query-field-render-test-BQLn3wg9.js +249 -0
- package/bundled-test-harness/assets/no-stacks-test-DpwZQAJ-.js +48 -0
- package/bundled-test-harness/assets/number-DZa-fHpu.js +151 -0
- package/bundled-test-harness/assets/number-Dvua76YP.js +3 -0
- package/bundled-test-harness/assets/number-field-test-BiaH2eaB.js +184 -0
- package/bundled-test-harness/assets/number-input-D5nDYDkK.js +82 -0
- package/bundled-test-harness/assets/office-extract-JzYva33g.js +27 -0
- package/bundled-test-harness/assets/office-extract-XMpsyYRh.js +2 -0
- package/bundled-test-harness/assets/ogg-meta-extractor-DJosZ9LA.js +225 -0
- package/bundled-test-harness/assets/on-key-BBVkS8Bi.js +472 -0
- package/bundled-test-harness/assets/ooxml-BlAE2w4d.js +172 -0
- package/bundled-test-harness/assets/ooxml-D-p8OmuM.js +2 -0
- package/bundled-test-harness/assets/open-image-in-new-tab-test-DWBU5pw9.js +52 -0
- package/bundled-test-harness/assets/operation-lowering-test-nzqprueU.js +2812 -0
- package/bundled-test-harness/assets/operations-CPvfTuY3.js +766 -0
- package/bundled-test-harness/assets/operations-invocation-test-C75T6zn3.js +523 -0
- package/bundled-test-harness/assets/operations-query-test-BoCszQEW.js +459 -0
- package/bundled-test-harness/assets/operations-test-79ipSnpM.js +2518 -0
- package/bundled-test-harness/assets/operations-x3Aw2Nky.js +3 -0
- package/bundled-test-harness/assets/operator-mode-acceptance-test-jjsYtt96.js +1188 -0
- package/bundled-test-harness/assets/operator-mode-card-chooser-test-hZP9gEQK.js +1036 -0
- package/bundled-test-harness/assets/operator-mode-links-test-DN16SuIx.js +793 -0
- package/bundled-test-harness/assets/operator-mode-state-service-gwiTSiWX.js +1275 -0
- package/bundled-test-harness/assets/operator-mode-state-service-test-Dt2qnKKP.js +206 -0
- package/bundled-test-harness/assets/operator-mode-test-BZnnxO9q.js +683 -0
- package/bundled-test-harness/assets/operator-mode-ui-test-O--qEo-y.js +1027 -0
- package/bundled-test-harness/assets/overlay-menu-items-test-Bl2k0aAa.js +317 -0
- package/bundled-test-harness/assets/overlays-CdN_JokA.js +270 -0
- package/bundled-test-harness/assets/overlays-clip-test-DpbR1ZTz.js +91 -0
- package/bundled-test-harness/assets/overlays-detached-element-test-cLgEGvMs.js +56 -0
- package/bundled-test-harness/assets/pane-PYdezM7g.js +330 -0
- package/bundled-test-harness/assets/panel-7FDqkxrr.js +474 -0
- package/bundled-test-harness/assets/panel-C3E0s49q.js +3540 -0
- package/bundled-test-harness/assets/past-sessions-test-BsjEeoze.js +321 -0
- package/bundled-test-harness/assets/patch-fields-test-CsixJmSr.js +1014 -0
- package/bundled-test-harness/assets/patch-instance-test-CBDgTi0L.js +348 -0
- package/bundled-test-harness/assets/pdf-file-def-9VNjnqDa.js +76 -0
- package/bundled-test-harness/assets/pdf-meta-extractor-BF4e5kMR.js +156 -0
- package/bundled-test-harness/assets/pdf-meta-extractor-D8Bxh2cc.js +2 -0
- package/bundled-test-harness/assets/pdf-viewer-Bu413sN8.js +112 -0
- package/bundled-test-harness/assets/pdf-viewer-GKDi_xmf.js +2 -0
- package/bundled-test-harness/assets/percentage-TOr6qK2T.js +84 -0
- package/bundled-test-harness/assets/permission-checking-realm-test-BRNVYszm.js +306 -0
- package/bundled-test-harness/assets/phone-number-D5SR8nWu.js +236 -0
- package/bundled-test-harness/assets/phone-number-field-test-DffwtqGd.js +73 -0
- package/bundled-test-harness/assets/phone-number-hf_xIVGQ.js +2 -0
- package/bundled-test-harness/assets/plate-Vojc88hM.js +41 -0
- package/bundled-test-harness/assets/plate-dTUzEMj5.js +2 -0
- package/bundled-test-harness/assets/player-CmRw0uM5.js +82 -0
- package/bundled-test-harness/assets/player-Dt85lPZl.js +2 -0
- package/bundled-test-harness/assets/plural-field-components-test-DNpGuH1D.js +198 -0
- package/bundled-test-harness/assets/png-image-def-GY7gjqya.js +48 -0
- package/bundled-test-harness/assets/png-meta-extractor-4pI611re.js +2 -0
- package/bundled-test-harness/assets/png-meta-extractor-CHp_rpAi.js +111 -0
- package/bundled-test-harness/assets/policy-scoped-search-test-CipPu7tY.js +339 -0
- package/bundled-test-harness/assets/pptx-file-def-lBBiebvn.js +60 -0
- package/bundled-test-harness/assets/pptx-meta-extractor-BjJYWiOJ.js +77 -0
- package/bundled-test-harness/assets/pptx-meta-extractor-DbT-dPRg.js +2 -0
- package/bundled-test-harness/assets/prerender-persistence-block-test-ClHMVvJt.js +124 -0
- package/bundled-test-harness/assets/prerender-serialize-cycle-test-LdqaMTK8.js +134 -0
- package/bundled-test-harness/assets/preview-CYlam_aW.js +74 -0
- package/bundled-test-harness/assets/preview-format-CiSo4kEa.js +41 -0
- package/bundled-test-harness/assets/preview-format-test-MsB1TOLB.js +103 -0
- package/bundled-test-harness/assets/process-card-B3xBGkv1.js +2 -0
- package/bundled-test-harness/assets/process-card-DumVcx9E.js +114 -0
- package/bundled-test-harness/assets/process-card-test-C44H8yVy.js +94 -0
- package/bundled-test-harness/assets/profile-settings-modal-ipYzrVTz.js +708 -0
- package/bundled-test-harness/assets/progress-circle-DJ6WSO2E.js +95 -0
- package/bundled-test-harness/assets/progress-circle-q358_9Sn.js +2 -0
- package/bundled-test-harness/assets/quarter-BjO5DlU2.js +2 -0
- package/bundled-test-harness/assets/quarter-_D72FwfS.js +168 -0
- package/bundled-test-harness/assets/query-field-membership-status-test-CzDyfK49.js +323 -0
- package/bundled-test-harness/assets/query-field-page-optin-test-B-x3vsmC.js +126 -0
- package/bundled-test-harness/assets/query-field-schema-test-DFw6KuYv.js +231 -0
- package/bundled-test-harness/assets/query-field-stale-prerender-test-DSQ-cv_O.js +152 -0
- package/bundled-test-harness/assets/query-fields-test-DQiMFRCe.js +535 -0
- package/bundled-test-harness/assets/rail-CNspDFyn.js +44 -0
- package/bundled-test-harness/assets/rail-D2YcQ0VP.js +2 -0
- package/bundled-test-harness/assets/realm-82Z5RUM_.js +95 -0
- package/bundled-test-harness/assets/realm-config-SgrwqjRu.js +844 -0
- package/bundled-test-harness/assets/realm-config-policy-standing-test-C6sQNk2u.js +290 -0
- package/bundled-test-harness/assets/realm-config-routing-rule-edit-test-DcYXBlvi.js +274 -0
- package/bundled-test-harness/assets/realm-config-settings-test-DblJv06X.js +187 -0
- package/bundled-test-harness/assets/realm-dropdown-CDvL8k3B.js +560 -0
- package/bundled-test-harness/assets/realm-et890flh.js +2 -0
- package/bundled-test-harness/assets/realm-field-test-pBK_x-Xw.js +100 -0
- package/bundled-test-harness/assets/realm-indexing-test-DSFn2F8F.js +4380 -0
- package/bundled-test-harness/assets/realm-policy-test-DYnLqzTS.js +1141 -0
- package/bundled-test-harness/assets/realm-test-DOZT2EG5.js +2363 -0
- package/bundled-test-harness/assets/realm-url-tooltip-qaXTjRb-.js +56 -0
- package/bundled-test-harness/assets/realm-url-tooltip-test-DGTEeLH9.js +78 -0
- package/bundled-test-harness/assets/reasoning-test-BRkhvYjr.js +234 -0
- package/bundled-test-harness/assets/recent-colors-addon-BreXcpg8.js +2 -0
- package/bundled-test-harness/assets/recent-colors-addon-CmCkbJ2_.js +61 -0
- package/bundled-test-harness/assets/relationship-loading-state-test-B6UGYKzG.js +290 -0
- package/bundled-test-harness/assets/relative-time-BjHvL023.js +2 -0
- package/bundled-test-harness/assets/relative-time-ChYKOMIM.js +129 -0
- package/bundled-test-harness/assets/remix-card-test-CpV0kKfq.js +58 -0
- package/bundled-test-harness/assets/rendered-markdown-CJa7IzCC.js +263 -0
- package/bundled-test-harness/assets/rendered-markdown-test-CVKsHS4P.js +587 -0
- package/bundled-test-harness/assets/resident-instance-reuse-test-jQfW1NMn.js +82 -0
- package/bundled-test-harness/assets/response-field-B2-daCl2.js +38 -0
- package/bundled-test-harness/assets/result-tile-BSg4mzbc.js +140 -0
- package/bundled-test-harness/assets/rich-markdown-BtP1yamM.js +2 -0
- package/bundled-test-harness/assets/rich-markdown-C6rQUngb.js +218 -0
- package/bundled-test-harness/assets/rich-markdown-field-test-9yB6ykCe.js +1647 -0
- package/bundled-test-harness/assets/room-C7tKd02X.js +1008 -0
- package/bundled-test-harness/assets/room-message-test-DsMmRYpV.js +445 -0
- package/bundled-test-harness/assets/room-test-golI1H61.js +95 -0
- package/bundled-test-harness/assets/run-realm-code-CbXk6bnK.js +1600 -0
- package/bundled-test-harness/assets/run-realm-code-test-B9JeesaW.js +2468 -0
- package/bundled-test-harness/assets/schema-generation-test-uLLGm5Vh.js +28 -0
- package/bundled-test-harness/assets/score-BQhCQdUP.js +2 -0
- package/bundled-test-harness/assets/score-CoWEzENH.js +100 -0
- package/bundled-test-harness/assets/scrolling-test-WHWEkKeZ.js +384 -0
- package/bundled-test-harness/assets/search-BkQYpQDY.js +605 -0
- package/bundled-test-harness/assets/search-adorn-test-CW92JPOk.js +136 -0
- package/bundled-test-harness/assets/search-entries-BU4w6Ymc.js +472 -0
- package/bundled-test-harness/assets/search-entries-result-test-9eydsDtD.js +234 -0
- package/bundled-test-harness/assets/search-entries-test-ByUREx0G.js +1486 -0
- package/bundled-test-harness/assets/search-result-header-UFkdo0Bx.js +128 -0
- package/bundled-test-harness/assets/search-results-DrHTuVRZ.js +266 -0
- package/bundled-test-harness/assets/search-results-test-krtQQM57.js +578 -0
- package/bundled-test-harness/assets/search-selection-menu-test-DoqSbez7.js +108 -0
- package/bundled-test-harness/assets/search-sheet-persistence-test-4ZPaEY-y.js +131 -0
- package/bundled-test-harness/assets/search-test-BYpq32RM.js +2241 -0
- package/bundled-test-harness/assets/searchable-BXw4T11q.js +192 -0
- package/bundled-test-harness/assets/searchable-CVvPDA3Q.js +2 -0
- package/bundled-test-harness/assets/searchable-option-test-BhLFI4ei.js +322 -0
- package/bundled-test-harness/assets/searchable-search-doc-test-DrNLCF73.js +1271 -0
- package/bundled-test-harness/assets/secure-sign-in-VNQhe0ae.js +130 -0
- package/bundled-test-harness/assets/secure-sign-in-Za8PX9cD.css +24 -0
- package/bundled-test-harness/assets/secure-sign-in-aunWHCrB.js +73 -0
- package/bundled-test-harness/assets/secure-sign-in-test-BcY1TcNd.js +32 -0
- package/bundled-test-harness/assets/secure-sign-in-test-DRdz89BT.js +245 -0
- package/bundled-test-harness/assets/sending-test-mbHpGZUu.js +576 -0
- package/bundled-test-harness/assets/serialization-rri-form-audit-test-nypV9J82.js +136 -0
- package/bundled-test-harness/assets/serialization-test-aLwrFv4d.js +8758 -0
- package/bundled-test-harness/assets/setup-Dgn0s6Zk.js +772 -0
- package/bundled-test-harness/assets/shared-link-target-reuse-test-D9MR2UNc.js +207 -0
- package/bundled-test-harness/assets/show-card-Dwfk332M.js +67 -0
- package/bundled-test-harness/assets/show-card-test-CRPwwJvc.js +365 -0
- package/bundled-test-harness/assets/show-file-DLdFPHMR.js +34 -0
- package/bundled-test-harness/assets/signed-capture-DUR9PohQ.js +204 -0
- package/bundled-test-harness/assets/signed-capture-link-test-DfTAB6OT.js +132 -0
- package/bundled-test-harness/assets/single-stack-test-Crr_8nti.js +652 -0
- package/bundled-test-harness/assets/skill-DQ00VonZ.js +3 -0
- package/bundled-test-harness/assets/skill-reference-LEitQV9i.js +112 -0
- package/bundled-test-harness/assets/skill-yZXS1VHQ.js +76 -0
- package/bundled-test-harness/assets/skills-test-D3-C-Dbm.js +648 -0
- package/bundled-test-harness/assets/slider-picker-B6AxKL2j.js +245 -0
- package/bundled-test-harness/assets/slider-picker-C4Tc5o-s.js +2 -0
- package/bundled-test-harness/assets/spec-Cl_LB6nC.js +602 -0
- package/bundled-test-harness/assets/spinner-BHFM7zcR.js +39 -0
- package/bundled-test-harness/assets/spinner-DvAvsyDT.css +21 -0
- package/bundled-test-harness/assets/store-BV6WX8oV.js +2205 -0
- package/bundled-test-harness/assets/store-module-rebuild-test-HyphFJiF.js +454 -0
- package/bundled-test-harness/assets/store-search-test-nUeJ5opb.js +175 -0
- package/bundled-test-harness/assets/store-test-BebUIJAg.js +3460 -0
- package/bundled-test-harness/assets/string-BHZZwNlZ.js +9 -0
- package/bundled-test-harness/assets/submode-switcher-D-U9cXo0.js +169 -0
- package/bundled-test-harness/assets/svg-meta-extractor-BsG4w2nX.js +42 -0
- package/bundled-test-harness/assets/swatches-picker-4vFztxHo.js +33 -0
- package/bundled-test-harness/assets/swatches-picker-C7RE7uJ8.js +2 -0
- package/bundled-test-harness/assets/switch-submode-CuA0Zfjn.js +79 -0
- package/bundled-test-harness/assets/switch-submode-test-i1Qic_Cp.js +168 -0
- package/bundled-test-harness/assets/tag-CZNs3DPN.js +105 -0
- package/bundled-test-harness/assets/tests-BneuP252.js +3523 -0
- package/bundled-test-harness/assets/text-area-DAShQQBe.js +9 -0
- package/bundled-test-harness/assets/text-file-def-D2Rs6nS1.js +151 -0
- package/bundled-test-harness/assets/text-input-validator-test-C9IG-1GZ.js +156 -0
- package/bundled-test-harness/assets/theme-Dm8LWaRK.js +9 -0
- package/bundled-test-harness/assets/theme-card-test-Cbb6tAap.js +621 -0
- package/bundled-test-harness/assets/theme-scheme-island-test-DOVLakx3.js +264 -0
- package/bundled-test-harness/assets/three-d-model-def-DWSPQGgD.js +70 -0
- package/bundled-test-harness/assets/time--_Txqya1.js +126 -0
- package/bundled-test-harness/assets/time-DKD7Bdjd.js +2 -0
- package/bundled-test-harness/assets/time-slots-BZaugjq_.js +2 -0
- package/bundled-test-harness/assets/time-slots-C85M0rWl.js +85 -0
- package/bundled-test-harness/assets/timeline-B3KGDm3M.js +2 -0
- package/bundled-test-harness/assets/timeline-BMwgaZZu.js +59 -0
- package/bundled-test-harness/assets/to-device-streaming-test-CMp5bFiz.js +163 -0
- package/bundled-test-harness/assets/token-usage-test-CXA0b8Ep.js +166 -0
- package/bundled-test-harness/assets/tool-field-BGLelnsr.js +94 -0
- package/bundled-test-harness/assets/tool-field-BOFuDDt3.js +2 -0
- package/bundled-test-harness/assets/tools-CTjy7Aub.js +725 -0
- package/bundled-test-harness/assets/tools-calling-test--JR-7AK7.js +200 -0
- package/bundled-test-harness/assets/tools-test-6yAW3W5I.js +2820 -0
- package/bundled-test-harness/assets/tools-test-DhpMUQkz.js +1624 -0
- package/bundled-test-harness/assets/ts-file-def-CDbf8aw2.js +159 -0
- package/bundled-test-harness/assets/update-room-skills-test-DoKsS_1C.js +240 -0
- package/bundled-test-harness/assets/url-D0ooeJxC.js +2 -0
- package/bundled-test-harness/assets/url-mFskVPSX.js +96 -0
- package/bundled-test-harness/assets/video-file-def-AcmWqzev.js +76 -0
- package/bundled-test-harness/assets/wav-meta-extractor-CbTLruQf.js +368 -0
- package/bundled-test-harness/assets/webm-meta-extractor-C9JH-CMX.js +178 -0
- package/bundled-test-harness/assets/webp-meta-extractor-C6sHm4J7.js +98 -0
- package/bundled-test-harness/assets/website-Bxuk_OmR.js +92 -0
- package/bundled-test-harness/assets/week-Bxssxce7.js +2 -0
- package/bundled-test-harness/assets/week-DQLj9974.js +111 -0
- package/bundled-test-harness/assets/welcome-to-boxel-BH82RsW5.js +172 -0
- package/bundled-test-harness/assets/workspace-DJ_s2x4g.js +614 -0
- package/bundled-test-harness/assets/workspace-a11y-test-BJbZNgoP.js +197 -0
- package/bundled-test-harness/assets/workspace-behavior-test-BLBARTfb.js +200 -0
- package/bundled-test-harness/assets/workspace-chooser-BpmlVrVn.js +2219 -0
- package/bundled-test-harness/assets/workspace-chooser-CqLR2Dzh.css +1296 -0
- package/bundled-test-harness/assets/workspace-chooser-catalog-order-test-CmAVNAWC.js +36 -0
- package/bundled-test-harness/assets/workspace-chooser-unreachable-notice-test-DEfG7Uh9.js +60 -0
- package/bundled-test-harness/assets/workspace-delete-multiple-test-DE7Z8ooj.js +212 -0
- package/bundled-test-harness/assets/workspace-delete-summary-test-CwtG_zLH.js +63 -0
- package/bundled-test-harness/assets/workspace-timestamp-labels-test-DFAaRmJW.js +58 -0
- package/bundled-test-harness/assets/xlsx-file-def-DcvaRYnZ.js +60 -0
- package/bundled-test-harness/assets/xlsx-meta-extractor-0RlViVaf.js +101 -0
- package/bundled-test-harness/assets/xlsx-meta-extractor-BH30Vuem.js +2 -0
- package/bundled-test-harness/assets/year-B_MBk_hE.js +78 -0
- package/bundled-test-harness/assets/year-hSpccI9L.js +2 -0
- package/bundled-test-harness/assets/zip-file-def-c84iddi9.js +288 -0
- package/bundled-test-harness/index.html +78 -68
- package/bundled-test-harness/tests/index.html +78 -68
- package/bundled-types/host-app/components/matrix/account-switch-failed.gts +2 -2
- package/bundled-types/host-app/components/matrix/auth.gts +2 -2
- package/bundled-types/host-app/components/matrix/cli-auth.gts +7 -6
- package/bundled-types/host-app/components/matrix/forgot-password.gts +43 -129
- package/bundled-types/host-app/components/matrix/login.gts +15 -118
- package/bundled-types/host-app/components/matrix/register-user.gts +45 -226
- package/bundled-types/host-app/components/matrix/secure-sign-in.gts +235 -0
- package/bundled-types/host-app/components/operator-mode/container.gts +13 -1
- package/bundled-types/host-app/components/operator-mode/profile-info-popover.gts +1 -1
- package/bundled-types/host-app/config/environment.ts +1 -1
- package/bundled-types/host-app/lib/secure-sign-in.ts +130 -0
- package/bundled-types/host-app/services/matrix-service.ts +46 -0
- package/bundled-types/host-app/services/monaco-service.ts +0 -5
- package/bundled-types/host-app/utils/login-token.ts +23 -10
- package/dist/api.js +1 -1
- package/dist/index.js +289 -285
- package/package.json +1 -1
- package/src/build-program.ts +6 -2
- package/src/commands/profile.ts +72 -3
- package/src/lib/profile-manager.ts +5 -1
- package/src/lib/secure-session.ts +29 -0
- package/src/lib/sso-login.ts +94 -15
- package/bundled-test-harness/assets/account-switch-failed-B3pr_iC3.js +0 -32
- package/bundled-test-harness/assets/account-switch-failed-DTGZZo-G.css +0 -61
- package/bundled-test-harness/assets/account-switch-failed-test-9ENVgvlx.js +0 -45
- package/bundled-test-harness/assets/add-workspace-BAbk0250.js +0 -141
- package/bundled-test-harness/assets/add-workspace-test-ChAja_t-.js +0 -72
- package/bundled-test-harness/assets/advanced-color-picker-C-xBFJ2S.js +0 -504
- package/bundled-test-harness/assets/advanced-color-picker-bWAmCT-8.js +0 -2
- package/bundled-test-harness/assets/ai-assistant-test-BJ9yetuC.js +0 -2211
- package/bundled-test-harness/assets/ai-module-creation-test-Bw3TKS9d.js +0 -151
- package/bundled-test-harness/assets/aibot-message-DkgHT6eJ.js +0 -465
- package/bundled-test-harness/assets/app-DW5QjtRp.js +0 -22816
- package/bundled-test-harness/assets/app-yCDjO4mk.css +0 -2718
- package/bundled-test-harness/assets/audio-file-def-bJ3cXVmC.js +0 -133
- package/bundled-test-harness/assets/avif-meta-extractor-CrSDfYEt.js +0 -162
- package/bundled-test-harness/assets/base64-image-C7UBjK5W.js +0 -262
- package/bundled-test-harness/assets/base64-image-CjWpxROT.js +0 -2
- package/bundled-test-harness/assets/big-integer-BBql7oGZ.js +0 -89
- package/bundled-test-harness/assets/big-integer-B_TrzRy_.js +0 -2
- package/bundled-test-harness/assets/binary-upload-dedupe-test-BiX8kS7D.js +0 -308
- package/bundled-test-harness/assets/boolean-9LNUUTfw.js +0 -2
- package/bundled-test-harness/assets/boolean-BAmK01TF.js +0 -94
- package/bundled-test-harness/assets/brand-functional-palette-CFuoS-LS.js +0 -137
- package/bundled-test-harness/assets/brand-logo-By89eknI.js +0 -295
- package/bundled-test-harness/assets/broken-link-template-test-odBriDSP.js +0 -192
- package/bundled-test-harness/assets/bundled-base-CLQkkmN4.js +0 -254
- package/bundled-test-harness/assets/bundled-base-modules-test-BYrTaTwa.js +0 -54
- package/bundled-test-harness/assets/buried-stack-item-scroll-test-DU4bM5nd.js +0 -236
- package/bundled-test-harness/assets/bxl-expression-test-Cs9JaZbC.js +0 -250
- package/bundled-test-harness/assets/can-invoke-test-ccMc06BU.js +0 -401
- package/bundled-test-harness/assets/card-api-Bn65NUT0.js +0 -8
- package/bundled-test-harness/assets/card-api-test-COrFXu2i.js +0 -198
- package/bundled-test-harness/assets/card-api-u1pOrwS6.js +0 -4393
- package/bundled-test-harness/assets/card-basics-test-D4rn3iN-.js +0 -5364
- package/bundled-test-harness/assets/card-chooser-paging-test-bZhdrUXt.js +0 -235
- package/bundled-test-harness/assets/card-chooser-test-D9w1duob.js +0 -393
- package/bundled-test-harness/assets/card-collection-ClCV-__1.js +0 -118
- package/bundled-test-harness/assets/card-context-search-results-H_rN3Upz.js +0 -30
- package/bundled-test-harness/assets/card-context-search-results-test-jciyaouV.js +0 -184
- package/bundled-test-harness/assets/card-def-field-def-relationships-test-BVZoQzM8.js +0 -562
- package/bundled-test-harness/assets/card-delete-test-CuLcZFnY.js +0 -466
- package/bundled-test-harness/assets/card-error-DIOivSkD.js +0 -72
- package/bundled-test-harness/assets/card-error-awaiting-index-test-JMwcRONq.js +0 -53
- package/bundled-test-harness/assets/card-error-detail-96jWBx6B.js +0 -271
- package/bundled-test-harness/assets/card-info-BxPtwG1h.js +0 -2
- package/bundled-test-harness/assets/card-list-B34qY3io.js +0 -2
- package/bundled-test-harness/assets/card-list-BpCaKkZJ.js +0 -202
- package/bundled-test-harness/assets/card-resource-DcPbIwH9.js +0 -86
- package/bundled-test-harness/assets/cards-grid-CTN8nBT_.js +0 -344
- package/bundled-test-harness/assets/cards-grid-Cx44vL-M.js +0 -2
- package/bundled-test-harness/assets/cards-grid-layout-BdL0Uzxl.js +0 -111
- package/bundled-test-harness/assets/cards-grid-layout-Dn8Yb4ma.js +0 -2
- package/bundled-test-harness/assets/check-correctness-test-BfMV-MC0.js +0 -554
- package/bundled-test-harness/assets/clip-CK6mVuyN.js +0 -92
- package/bundled-test-harness/assets/clip-CfXD1JTr.js +0 -2
- package/bundled-test-harness/assets/code-ref-85Bih6Zl.js +0 -138
- package/bundled-test-harness/assets/code-ref-DATHaoyt.js +0 -2
- package/bundled-test-harness/assets/code-submode-availability-test-DLYlx0wo.js +0 -198
- package/bundled-test-harness/assets/code-submode-test-CDIi7MjD.js +0 -1824
- package/bundled-test-harness/assets/codeblocks-test-CNPyTvuv.js +0 -418
- package/bundled-test-harness/assets/codemirror-editor-BPOPTR-f.js +0 -2
- package/bundled-test-harness/assets/codemirror-editor-DPhG0pec.js +0 -701
- package/bundled-test-harness/assets/codemirror-embed-toolbar-test-Dk5lFOUq.js +0 -366
- package/bundled-test-harness/assets/color-BxN5gRSg.js +0 -65
- package/bundled-test-harness/assets/color-CrunRcis.js +0 -2
- package/bundled-test-harness/assets/color-field-test-COjFIpXV.js +0 -212
- package/bundled-test-harness/assets/color-picker-field-C-GS1CIw.js +0 -139
- package/bundled-test-harness/assets/color-picker-field-D3RXhbCK.js +0 -2
- package/bundled-test-harness/assets/color-wheel-picker-Bz8cBmf4.js +0 -283
- package/bundled-test-harness/assets/color-wheel-picker-DrwPrB8B.js +0 -2
- package/bundled-test-harness/assets/command-data-BxXgtNBf.js +0 -2
- package/bundled-test-harness/assets/command-data-ZdkcpEgG.js +0 -95
- package/bundled-test-harness/assets/compaction-test-DS7DTGT_.js +0 -150
- package/bundled-test-harness/assets/components-CbCTWAON.js +0 -17777
- package/bundled-test-harness/assets/computed-test-D_OrXDtR.js +0 -1320
- package/bundled-test-harness/assets/container-DDolu1gk.js +0 -11109
- package/bundled-test-harness/assets/container-DndcCIMv.css +0 -5169
- package/bundled-test-harness/assets/contains-many-component-BtgnAXih.js +0 -2
- package/bundled-test-harness/assets/contrast-checker-addon-kwtLKWdL.js +0 -2
- package/bundled-test-harness/assets/contrast-checker-addon-zFY5cen1.js +0 -71
- package/bundled-test-harness/assets/convert-to-class-name-test-BcGWl2K1.js +0 -17
- package/bundled-test-harness/assets/coordinate-D72EF1Pl.js +0 -48
- package/bundled-test-harness/assets/copy-file-to-realm-test-CYoDX4YV.js +0 -148
- package/bundled-test-harness/assets/country-B-iIe5v8.js +0 -199
- package/bundled-test-harness/assets/create-file-modal-PpvMksjR.js +0 -570
- package/bundled-test-harness/assets/create-listing-modal-test-CQtEf_UD.js +0 -273
- package/bundled-test-harness/assets/create-listing-pr-request-test-CDtKWyfk.js +0 -117
- package/bundled-test-harness/assets/create-spec-test-Cbqk8I9T.js +0 -256
- package/bundled-test-harness/assets/create-specs-CZg2cpnh.js +0 -215
- package/bundled-test-harness/assets/create-submission-workflow-test-CYrxF7bg.js +0 -132
- package/bundled-test-harness/assets/credential-fields-test-Di4jCJgU.js +0 -157
- package/bundled-test-harness/assets/css-value-CceJyI5o.js +0 -48
- package/bundled-test-harness/assets/csv-file-def-DJL2aZI9.js +0 -277
- package/bundled-test-harness/assets/currency-Bn5WIqzF.js +0 -134
- package/bundled-test-harness/assets/date-XI2CVYA2.js +0 -2
- package/bundled-test-harness/assets/date-h83UJcFR.js +0 -183
- package/bundled-test-harness/assets/date-time-fields-test-Cterr2mj.js +0 -359
- package/bundled-test-harness/assets/datetime-DadI80tC.js +0 -201
- package/bundled-test-harness/assets/datetime-Dpb_Sejj.js +0 -2
- package/bundled-test-harness/assets/datetime-stamp-C4vv397u.js +0 -81
- package/bundled-test-harness/assets/datetime-stamp-DIsJdQux.js +0 -2
- package/bundled-test-harness/assets/day-C4pZoGNM.js +0 -113
- package/bundled-test-harness/assets/day-D0goBhKb.js +0 -2
- package/bundled-test-harness/assets/debug-message-test-CV0sj-fl.js +0 -117
- package/bundled-test-harness/assets/dist-CAIttNZm.js +0 -1710
- package/bundled-test-harness/assets/dist-CLbqnmnm.js +0 -389
- package/bundled-test-harness/assets/dist-qkBOmIQy.js +0 -323
- package/bundled-test-harness/assets/docx-file-def-hz2tVQKf.js +0 -60
- package/bundled-test-harness/assets/docx-meta-extractor-CeRshlxL.js +0 -60
- package/bundled-test-harness/assets/docx-meta-extractor-muK5CKF3.js +0 -2
- package/bundled-test-harness/assets/duration-BYx1dLfm.js +0 -2
- package/bundled-test-harness/assets/duration-FAmTFeUa.js +0 -184
- package/bundled-test-harness/assets/email-D-bFy_C1.js +0 -80
- package/bundled-test-harness/assets/email-field-test-CY9K2zur.js +0 -75
- package/bundled-test-harness/assets/email-j4DZNH2-.js +0 -2
- package/bundled-test-harness/assets/enum-B7_baAn_.js +0 -167
- package/bundled-test-harness/assets/enum-BQqNzVQS.js +0 -2
- package/bundled-test-harness/assets/enum-field-test-BJ9Epz15.js +0 -953
- package/bundled-test-harness/assets/error-display-test-CbDWjJ2F.js +0 -343
- package/bundled-test-harness/assets/ethereum-address-BOLEnKsm.js +0 -78
- package/bundled-test-harness/assets/ethereum-address-s3Kvb2wG.js +0 -2
- package/bundled-test-harness/assets/expiration-warning-BaIP1MOZ.js +0 -2
- package/bundled-test-harness/assets/expiration-warning-gjEtxPk0.js +0 -90
- package/bundled-test-harness/assets/externals-Bih8ejPS.js +0 -4393
- package/bundled-test-harness/assets/fallback-banner-MlImHjSD.js +0 -24
- package/bundled-test-harness/assets/fallback-banner-live-delete-test-Bm7IKXPf.js +0 -207
- package/bundled-test-harness/assets/fallback-banner-test-C7TGA0Ob.js +0 -53
- package/bundled-test-harness/assets/fallback-banner-test-lvuaVRXu.js +0 -225
- package/bundled-test-harness/assets/fallback-models-test-Dy7iIKUS.js +0 -161
- package/bundled-test-harness/assets/field-component-DBoOxTke.js +0 -2
- package/bundled-test-harness/assets/field-configuration-test-DnAnzyC-.js +0 -548
- package/bundled-test-harness/assets/field-edit-DdJ8Akso.js +0 -2
- package/bundled-test-harness/assets/field-edit-XAop92l8.js +0 -36
- package/bundled-test-harness/assets/field-markdown-domain-test-cZCqbcjj.js +0 -616
- package/bundled-test-harness/assets/field-markdown-oversize-test-BuATetVz.js +0 -88
- package/bundled-test-harness/assets/field-markdown-primitives-test-BsubQfhv.js +0 -365
- package/bundled-test-harness/assets/field-markdown-specialized-test-4eNLiYpF.js +0 -534
- package/bundled-test-harness/assets/field-test-helpers-9I7cHnaU.js +0 -45
- package/bundled-test-harness/assets/file-api-CC86I7Er.js +0 -7
- package/bundled-test-harness/assets/file-attachment-test-o9191GMb.js +0 -796
- package/bundled-test-harness/assets/file-chooser-panel-test-C8aZuJlk.js +0 -153
- package/bundled-test-harness/assets/file-chooser-test-B0Tn8CCR.js +0 -504
- package/bundled-test-harness/assets/file-def-edit-BSiF2Lje.js +0 -2
- package/bundled-test-harness/assets/file-def-edit-C5TYBp_q.js +0 -26
- package/bundled-test-harness/assets/file-def-embedded-BLVTCiVB.js +0 -2
- package/bundled-test-harness/assets/file-def-embedded-Bep4iD6s.js +0 -38
- package/bundled-test-harness/assets/file-def-fitted-BTs-AS78.js +0 -2
- package/bundled-test-harness/assets/file-def-fitted-DcPitdYu.js +0 -38
- package/bundled-test-harness/assets/file-def-isolated-Kg1YVhm-.js +0 -38
- package/bundled-test-harness/assets/file-def-isolated-tK5JWCam.js +0 -2
- package/bundled-test-harness/assets/file-def-serialization-test-D4wnd5XK.js +0 -89
- package/bundled-test-harness/assets/file-menu-items-CH4-naSK.js +0 -117
- package/bundled-test-harness/assets/file-menu-items-emUxx3ZI.js +0 -2
- package/bundled-test-harness/assets/file-preview-stage-B1McIWwu.js +0 -2
- package/bundled-test-harness/assets/file-preview-stage-BgZLNMN4.js +0 -72
- package/bundled-test-harness/assets/file-shell-embedded-BmfuwWfU.js +0 -2
- package/bundled-test-harness/assets/file-shell-embedded-zh8CJanA.js +0 -68
- package/bundled-test-harness/assets/file-shell-fitted-DSFUNRGJ.js +0 -2
- package/bundled-test-harness/assets/file-shell-fitted-DXKDH0fn.js +0 -98
- package/bundled-test-harness/assets/file-shell-isolated-0F1MFv4q.js +0 -2
- package/bundled-test-harness/assets/file-shell-isolated-DduZZzmi.js +0 -195
- package/bundled-test-harness/assets/file-tree-from-index-BzDvvUHy.js +0 -151
- package/bundled-test-harness/assets/file-tree-from-index-test-D0hfI4a1.js +0 -96
- package/bundled-test-harness/assets/film-BN_HVXBU.js +0 -13
- package/bundled-test-harness/assets/film-CKkbUi0L.js +0 -2
- package/bundled-test-harness/assets/film-CMNJITZ-.js +0 -4074
- package/bundled-test-harness/assets/fitted-CAvdcKpu.js +0 -34
- package/bundled-test-harness/assets/fitted-CbKOwd1u.js +0 -2
- package/bundled-test-harness/assets/flac-meta-extractor-e8qajPSl.js +0 -99
- package/bundled-test-harness/assets/font-file-def-9atde5W8.js +0 -64
- package/bundled-test-harness/assets/font-meta-extractor-IralDC8M.js +0 -303
- package/bundled-test-harness/assets/font-meta-extractor-zPBVOfoR.js +0 -2
- package/bundled-test-harness/assets/formatted-aibot-message-test-CWOiZUng.js +0 -109
- package/bundled-test-harness/assets/from-elsewhere-ChxbtsBa.js +0 -131
- package/bundled-test-harness/assets/frontmatter-field-cdig7KR9.js +0 -41
- package/bundled-test-harness/assets/garbage-collection-test-Dg-ww_Sb.js +0 -403
- package/bundled-test-harness/assets/gauge-B45nLOGe.js +0 -106
- package/bundled-test-harness/assets/gauge-BK-768BM.js +0 -2
- package/bundled-test-harness/assets/general-test-D7cn7PUr.js +0 -926
- package/bundled-test-harness/assets/get-relationship-membership-state-test-Skmj9V6y.js +0 -1308
- package/bundled-test-harness/assets/gif-meta-extractor-BychhK9q.js +0 -114
- package/bundled-test-harness/assets/glimmer-motion-and-choreo-in-cards-test-C09YUmk4.js +0 -160
- package/bundled-test-harness/assets/glimmer-motion-and-choreo-test-DYskx_Kk.js +0 -74
- package/bundled-test-harness/assets/helper-BHX0HLF2.js +0 -478
- package/bundled-test-harness/assets/host-submode-test-Clw_QnvF.js +0 -1243
- package/bundled-test-harness/assets/html-file-def-C0P9giwU.js +0 -82
- package/bundled-test-harness/assets/hydratable-card-DnjrxKsT.js +0 -147
- package/bundled-test-harness/assets/hydratable-card-test-BAmWHfv1.js +0 -426
- package/bundled-test-harness/assets/icons-DBXBZgLe.js +0 -894
- package/bundled-test-harness/assets/image-Cip6ojDd.js +0 -47
- package/bundled-test-harness/assets/image-file-def-BdQxjZcN.js +0 -65
- package/bundled-test-harness/assets/image-file-def-DP4aqWcS.js +0 -3
- package/bundled-test-harness/assets/index-changes-test-D8b_56Ke.js +0 -367
- package/bundled-test-harness/assets/index-query-engine-test-CCyaUwMX.js +0 -2593
- package/bundled-test-harness/assets/inspector-test-BJTVGdOO.js +0 -1930
- package/bundled-test-harness/assets/instance-filter-matcher-test-DjsPrXL7.js +0 -788
- package/bundled-test-harness/assets/interact-submode-creation-and-permissions-test-DSqM0vxh.js +0 -475
- package/bundled-test-harness/assets/interact-submode-setup-DF31UMX-.js +0 -566
- package/bundled-test-harness/assets/is-component-declaration-test-Did47eG9.js +0 -50
- package/bundled-test-harness/assets/iso-bmff-LuWkGL__.js +0 -205
- package/bundled-test-harness/assets/iso-bmff-_flO6c20.js +0 -2
- package/bundled-test-harness/assets/isolated-and-edit-frocLHin.js +0 -2
- package/bundled-test-harness/assets/job-priority-header-test-DHLAXfp7.js +0 -81
- package/bundled-test-harness/assets/job-scoped-instance-residency-test-C1Bt5j98.js +0 -103
- package/bundled-test-harness/assets/join-the-community-BBUSO2cs.js +0 -86
- package/bundled-test-harness/assets/jpg-meta-extractor-CoybO4Hq.js +0 -88
- package/bundled-test-harness/assets/json-field-8sdH5RQb.js +0 -2
- package/bundled-test-harness/assets/json-field-BDD3iTUh.js +0 -19
- package/bundled-test-harness/assets/json-file-def-BKibsfc6.js +0 -298
- package/bundled-test-harness/assets/last-modified-date-CR5jru2m.js +0 -43
- package/bundled-test-harness/assets/last-modified-date-test-jJ00YdTm.js +0 -28
- package/bundled-test-harness/assets/links-to-editor-rDoCYaN-.js +0 -2
- package/bundled-test-harness/assets/links-to-many-component-BqZT88Fb.js +0 -2
- package/bundled-test-harness/assets/linksto-broken-link-placeholder-test-Cp1Eb_4U.js +0 -398
- package/bundled-test-harness/assets/linksto-error-sentinel-test-Bddavnh_.js +0 -238
- package/bundled-test-harness/assets/linksto-many-broken-link-placeholder-test-c5WegXnR.js +0 -354
- package/bundled-test-harness/assets/linksto-many-per-slot-access-test-CWskzfGW.js +0 -303
- package/bundled-test-harness/assets/linksto-sentinel-reload-test-ByeVNhr8.js +0 -197
- package/bundled-test-harness/assets/linksto-sentinel-roundtrip-test-DP26i6Gb.js +0 -260
- package/bundled-test-harness/assets/linksto-singular-js-access-contract-test-fDUXx8tO.js +0 -196
- package/bundled-test-harness/assets/llm-model-BcLEkTV7.js +0 -64
- package/bundled-test-harness/assets/login-CeuuNVvU.css +0 -139
- package/bundled-test-harness/assets/login-DV0WlJv-.js +0 -348
- package/bundled-test-harness/assets/login-error-text-test-BMGY_9gW.js +0 -51
- package/bundled-test-harness/assets/login-test-CL9YpMH5.js +0 -246
- package/bundled-test-harness/assets/m4a-meta-extractor-CHO1JQtb.js +0 -204
- package/bundled-test-harness/assets/main-CPLT8JNu.js +0 -5
- package/bundled-test-harness/assets/markdown-BvBALLGh.js +0 -7
- package/bundled-test-harness/assets/markdown-DFezmrFD.js +0 -2
- package/bundled-test-harness/assets/markdown-editor-mode-select-Au64bcIO.js +0 -2
- package/bundled-test-harness/assets/markdown-editor-mode-select-rK9PP8rv.js +0 -54
- package/bundled-test-harness/assets/markdown-embed-chooser-modal-test-CIxizf5k.js +0 -470
- package/bundled-test-harness/assets/markdown-embed-preview-pane-test-C7GoNN7l.js +0 -447
- package/bundled-test-harness/assets/markdown-embed-preview-test-CDnj4uhd.js +0 -368
- package/bundled-test-harness/assets/markdown-fallback-n7PsLNmO.js +0 -2
- package/bundled-test-harness/assets/markdown-fallback-test-DTHT6OwQ.js +0 -316
- package/bundled-test-harness/assets/markdown-highlighting-test-DJ-4WSE_.js +0 -244
- package/bundled-test-harness/assets/markdown-preview-Ccelx5W-.js +0 -64
- package/bundled-test-harness/assets/markdown-preview-JXuMC_ve.js +0 -72
- package/bundled-test-harness/assets/markdown-preview-test-ByZqrpPk.js +0 -238
- package/bundled-test-harness/assets/markdown-skill-frontmatter-test-DAHGeL4K.js +0 -146
- package/bundled-test-harness/assets/menu-items-DzJm9H_H.js +0 -2
- package/bundled-test-harness/assets/message-tool-test-lmdrIEdY.js +0 -33
- package/bundled-test-harness/assets/metadata-fields-BZZr4Qe5.js +0 -2
- package/bundled-test-harness/assets/metadata-fields-BtdjGsKE.js +0 -1415
- package/bundled-test-harness/assets/midi-audio-def-uYbYFmFi.js +0 -52
- package/bundled-test-harness/assets/midi-meta-extractor-DNI5gc1q.js +0 -284
- package/bundled-test-harness/assets/midi-meta-extractor-DbKZ4fMG.js +0 -2
- package/bundled-test-harness/assets/migrate-skill-test-DI1xceiL.js +0 -161
- package/bundled-test-harness/assets/mini-CNoDyHqG.js +0 -1519
- package/bundled-test-harness/assets/mini-DexlIeKK.js +0 -85
- package/bundled-test-harness/assets/mini-card-chooser-test-DT5eIf1_.js +0 -272
- package/bundled-test-harness/assets/mini-file-chooser-test-DTQnKTZJ.js +0 -201
- package/bundled-test-harness/assets/missing-template-DL2mwddM.js +0 -2
- package/bundled-test-harness/assets/missing-template-ltqlJ4JC.js +0 -48
- package/bundled-test-harness/assets/modal-container-DRnt95-S.js +0 -40
- package/bundled-test-harness/assets/modal-zE95eEFp.js +0 -322
- package/bundled-test-harness/assets/model-cost-tier-test-CcFz7hcv.js +0 -173
- package/bundled-test-harness/assets/module-contents-service-Dk_zWt-V.js +0 -256
- package/bundled-test-harness/assets/month-BqReBYWo.js +0 -2
- package/bundled-test-harness/assets/month-RhvmIp40.js +0 -123
- package/bundled-test-harness/assets/month-day-XFAQA72z.js +0 -2
- package/bundled-test-harness/assets/month-day-XzKpk6nz.js +0 -192
- package/bundled-test-harness/assets/month-year-BeuNr2Cl.js +0 -2
- package/bundled-test-harness/assets/month-year-DhU7hATV.js +0 -93
- package/bundled-test-harness/assets/mp3-meta-extractor-Dx2RnJc5.js +0 -476
- package/bundled-test-harness/assets/mp4-meta-extractor--k0m8KsT.js +0 -188
- package/bundled-test-harness/assets/multiple-stacks-test-bC24IWcJ.js +0 -208
- package/bundled-test-harness/assets/nested-query-field-render-test-qxElXx1e.js +0 -249
- package/bundled-test-harness/assets/no-stacks-test-Br7IGAgV.js +0 -48
- package/bundled-test-harness/assets/number-73SsCMEF.js +0 -3
- package/bundled-test-harness/assets/number-CicTBWQd.js +0 -151
- package/bundled-test-harness/assets/number-field-test-kV5zXo1J.js +0 -184
- package/bundled-test-harness/assets/number-input-CQy4xUeA.js +0 -82
- package/bundled-test-harness/assets/office-extract-Bo8sbNkK.js +0 -27
- package/bundled-test-harness/assets/office-extract-CfBaoRMD.js +0 -2
- package/bundled-test-harness/assets/ogg-meta-extractor-aIf5q_Rq.js +0 -225
- package/bundled-test-harness/assets/on-key-C8acaldQ.js +0 -472
- package/bundled-test-harness/assets/ooxml-Bu3iZezv.js +0 -172
- package/bundled-test-harness/assets/ooxml-jQPBQK25.js +0 -2
- package/bundled-test-harness/assets/open-image-in-new-tab-test-CP7q3kMm.js +0 -52
- package/bundled-test-harness/assets/operation-lowering-test-9Mdr0hRT.js +0 -2812
- package/bundled-test-harness/assets/operations-R9b661Qn.js +0 -3
- package/bundled-test-harness/assets/operations-Zv_V3Api.js +0 -766
- package/bundled-test-harness/assets/operations-invocation-test-BJPpWb2H.js +0 -523
- package/bundled-test-harness/assets/operations-query-test-DufdmPQF.js +0 -459
- package/bundled-test-harness/assets/operations-test-CzT051YH.js +0 -2518
- package/bundled-test-harness/assets/operator-mode-acceptance-test-ByOIOcD0.js +0 -1188
- package/bundled-test-harness/assets/operator-mode-card-chooser-test-CNhR9mvv.js +0 -1036
- package/bundled-test-harness/assets/operator-mode-links-test-CuxSVTPR.js +0 -793
- package/bundled-test-harness/assets/operator-mode-state-service-CCeHt5SH.js +0 -1275
- package/bundled-test-harness/assets/operator-mode-state-service-test-C8TI9WWg.js +0 -206
- package/bundled-test-harness/assets/operator-mode-test-DG-mG8Tn.js +0 -683
- package/bundled-test-harness/assets/operator-mode-ui-test-DB7xhjS0.js +0 -1027
- package/bundled-test-harness/assets/overlay-menu-items-test-C6rcdF_S.js +0 -317
- package/bundled-test-harness/assets/overlays-D2zmPxzK.js +0 -270
- package/bundled-test-harness/assets/overlays-clip-test-Clpq3JzQ.js +0 -91
- package/bundled-test-harness/assets/overlays-detached-element-test-BtsTeJch.js +0 -56
- package/bundled-test-harness/assets/pane-f-IYhcWT.js +0 -330
- package/bundled-test-harness/assets/panel-B3PCSBbf.js +0 -3540
- package/bundled-test-harness/assets/panel-Ban7zCBP.js +0 -474
- package/bundled-test-harness/assets/past-sessions-test-uM2m-oKV.js +0 -321
- package/bundled-test-harness/assets/patch-fields-test-COPjDhnt.js +0 -1014
- package/bundled-test-harness/assets/patch-instance-test-CRb3dfby.js +0 -348
- package/bundled-test-harness/assets/pdf-file-def-J_yOUU8_.js +0 -76
- package/bundled-test-harness/assets/pdf-meta-extractor-83T5Bdo7.js +0 -156
- package/bundled-test-harness/assets/pdf-meta-extractor-INFIklMy.js +0 -2
- package/bundled-test-harness/assets/pdf-viewer-B4rRluWA.js +0 -2
- package/bundled-test-harness/assets/pdf-viewer-vYem8ozk.js +0 -112
- package/bundled-test-harness/assets/percentage-ChagfNRG.js +0 -84
- package/bundled-test-harness/assets/permission-checking-realm-test-Dmb2a428.js +0 -306
- package/bundled-test-harness/assets/phone-number-BiD2eaSd.js +0 -236
- package/bundled-test-harness/assets/phone-number-C-wt4_UK.js +0 -2
- package/bundled-test-harness/assets/phone-number-field-test-BHzAmuBP.js +0 -73
- package/bundled-test-harness/assets/plate-CqN2nM6P.js +0 -41
- package/bundled-test-harness/assets/plate-DaIfpORN.js +0 -2
- package/bundled-test-harness/assets/player-CGt5fTd5.js +0 -2
- package/bundled-test-harness/assets/player-CN0l44LK.js +0 -82
- package/bundled-test-harness/assets/plural-field-components-test-CO2g2opW.js +0 -198
- package/bundled-test-harness/assets/png-image-def-B_oou2wS.js +0 -48
- package/bundled-test-harness/assets/png-meta-extractor-BfPz1qP_.js +0 -2
- package/bundled-test-harness/assets/png-meta-extractor-C8ai8sPw.js +0 -111
- package/bundled-test-harness/assets/policy-scoped-search-test-BRRp2a1A.js +0 -339
- package/bundled-test-harness/assets/pptx-file-def-C3qYEHDM.js +0 -60
- package/bundled-test-harness/assets/pptx-meta-extractor-8IuoBq4I.js +0 -77
- package/bundled-test-harness/assets/pptx-meta-extractor-BPhy9RMM.js +0 -2
- package/bundled-test-harness/assets/prerender-persistence-block-test-Cteb_Rs_.js +0 -124
- package/bundled-test-harness/assets/prerender-serialize-cycle-test-CH7b6Ra9.js +0 -134
- package/bundled-test-harness/assets/preview-CmERZpI6.js +0 -74
- package/bundled-test-harness/assets/preview-format-BPMlCSbb.js +0 -41
- package/bundled-test-harness/assets/preview-format-test-B7sA8fbZ.js +0 -103
- package/bundled-test-harness/assets/process-card-CtDzDB-_.js +0 -2
- package/bundled-test-harness/assets/process-card-erbWKY5h.js +0 -114
- package/bundled-test-harness/assets/process-card-test-DXOt1jDW.js +0 -94
- package/bundled-test-harness/assets/profile-settings-modal-11BrR058.js +0 -708
- package/bundled-test-harness/assets/progress-circle-Cd79Zqh2.js +0 -2
- package/bundled-test-harness/assets/progress-circle-sc-W5aUl.js +0 -95
- package/bundled-test-harness/assets/quarter-B61kCpcD.js +0 -168
- package/bundled-test-harness/assets/quarter-d5jkTzcz.js +0 -2
- package/bundled-test-harness/assets/query-field-membership-status-test-BmpVfohw.js +0 -323
- package/bundled-test-harness/assets/query-field-page-optin-test-9_Cce-OJ.js +0 -126
- package/bundled-test-harness/assets/query-field-schema-test-CwV7xanX.js +0 -231
- package/bundled-test-harness/assets/query-field-stale-prerender-test-RkdnZ-VV.js +0 -152
- package/bundled-test-harness/assets/query-fields-test-BLxYkTAM.js +0 -535
- package/bundled-test-harness/assets/rail-CFPU0tFe.js +0 -2
- package/bundled-test-harness/assets/rail-CQ53Dakr.js +0 -44
- package/bundled-test-harness/assets/realm-DdVH9lSZ.js +0 -95
- package/bundled-test-harness/assets/realm-DdsFw3b-.js +0 -2
- package/bundled-test-harness/assets/realm-config-DIslxoB7.js +0 -844
- package/bundled-test-harness/assets/realm-config-policy-standing-test-b4WxNDor.js +0 -290
- package/bundled-test-harness/assets/realm-config-routing-rule-edit-test-C-rcvkkD.js +0 -274
- package/bundled-test-harness/assets/realm-config-settings-test-DDUkM3zw.js +0 -187
- package/bundled-test-harness/assets/realm-dropdown-1j55Dy-1.js +0 -560
- package/bundled-test-harness/assets/realm-field-test-D-uEtFKO.js +0 -100
- package/bundled-test-harness/assets/realm-indexing-test-U9m0epR-.js +0 -4380
- package/bundled-test-harness/assets/realm-policy-test-DhKabhlk.js +0 -1141
- package/bundled-test-harness/assets/realm-test-BX6C9SS5.js +0 -2363
- package/bundled-test-harness/assets/realm-url-tooltip-BjjcKqBx.js +0 -56
- package/bundled-test-harness/assets/realm-url-tooltip-test-DW0ZwEEE.js +0 -78
- package/bundled-test-harness/assets/reasoning-test-BWT94KXG.js +0 -234
- package/bundled-test-harness/assets/recent-colors-addon-CfgmgilF.js +0 -61
- package/bundled-test-harness/assets/recent-colors-addon-D--Ry3Pf.js +0 -2
- package/bundled-test-harness/assets/relationship-loading-state-test-C5R6jao_.js +0 -290
- package/bundled-test-harness/assets/relative-time-Bq7pqums.js +0 -2
- package/bundled-test-harness/assets/relative-time-D0QyW4ig.js +0 -129
- package/bundled-test-harness/assets/remix-card-test-Cy0h3Xdf.js +0 -58
- package/bundled-test-harness/assets/rendered-markdown-Hw_EF8SO.js +0 -263
- package/bundled-test-harness/assets/rendered-markdown-test-CqeF-UZd.js +0 -587
- package/bundled-test-harness/assets/resident-instance-reuse-test-BiI6L40n.js +0 -82
- package/bundled-test-harness/assets/response-field-BCxG5phG.js +0 -38
- package/bundled-test-harness/assets/result-tile-DMzRnTP8.js +0 -140
- package/bundled-test-harness/assets/rich-markdown-C4RUl7L0.js +0 -2
- package/bundled-test-harness/assets/rich-markdown-DxQSCg-o.js +0 -218
- package/bundled-test-harness/assets/rich-markdown-field-test-B7wpedKs.js +0 -1647
- package/bundled-test-harness/assets/room-D0M0Zwrs.js +0 -1008
- package/bundled-test-harness/assets/room-message-test-BWWd4xC8.js +0 -445
- package/bundled-test-harness/assets/room-test-DFH-nOwi.js +0 -95
- package/bundled-test-harness/assets/run-realm-code-DyVyEDBl.js +0 -1600
- package/bundled-test-harness/assets/run-realm-code-test-BpxF-tOz.js +0 -2468
- package/bundled-test-harness/assets/schema-generation-test-DjaJqpYP.js +0 -28
- package/bundled-test-harness/assets/score-Cfp34BE7.js +0 -2
- package/bundled-test-harness/assets/score-DIWWpeyf.js +0 -100
- package/bundled-test-harness/assets/scrolling-test-hA_uBwBg.js +0 -384
- package/bundled-test-harness/assets/search-C0-b7dJI.js +0 -605
- package/bundled-test-harness/assets/search-adorn-test-C6KP3AwA.js +0 -136
- package/bundled-test-harness/assets/search-entries-BfPq5sPS.js +0 -472
- package/bundled-test-harness/assets/search-entries-result-test-Bl9u_BOD.js +0 -234
- package/bundled-test-harness/assets/search-entries-test-BDC_lS43.js +0 -1486
- package/bundled-test-harness/assets/search-result-header-DCAze_cg.js +0 -128
- package/bundled-test-harness/assets/search-results-Dd0enVun.js +0 -266
- package/bundled-test-harness/assets/search-results-test-T5KEEII4.js +0 -578
- package/bundled-test-harness/assets/search-selection-menu-test-CCssnBq1.js +0 -108
- package/bundled-test-harness/assets/search-sheet-persistence-test-BzQiO-FK.js +0 -131
- package/bundled-test-harness/assets/search-test-fyCWb24m.js +0 -2241
- package/bundled-test-harness/assets/searchable-BkgeKQMl.js +0 -2
- package/bundled-test-harness/assets/searchable-D_6p6fyb.js +0 -192
- package/bundled-test-harness/assets/searchable-option-test-CnCUYGaq.js +0 -322
- package/bundled-test-harness/assets/searchable-search-doc-test-B8Q0D98v.js +0 -1271
- package/bundled-test-harness/assets/sending-test-D5PGBDys.js +0 -576
- package/bundled-test-harness/assets/serialization-rri-form-audit-test-BRJ1cJ31.js +0 -136
- package/bundled-test-harness/assets/serialization-test-DM6hK258.js +0 -8758
- package/bundled-test-harness/assets/setup-C_GgVgzM.js +0 -772
- package/bundled-test-harness/assets/shared-link-target-reuse-test-Be-lSKib.js +0 -207
- package/bundled-test-harness/assets/show-card-BFG6KR1m.js +0 -67
- package/bundled-test-harness/assets/show-card-test-l0wMrfZq.js +0 -365
- package/bundled-test-harness/assets/show-file-B8-FRVHj.js +0 -34
- package/bundled-test-harness/assets/signed-capture-D_Q44TQ7.js +0 -204
- package/bundled-test-harness/assets/signed-capture-link-test-DOS5xpYv.js +0 -132
- package/bundled-test-harness/assets/single-stack-test-BIEtzHVS.js +0 -652
- package/bundled-test-harness/assets/skill-BUTGmSsm.js +0 -76
- package/bundled-test-harness/assets/skill-Bo7R_2Ud.js +0 -3
- package/bundled-test-harness/assets/skill-reference-Cs64py3k.js +0 -112
- package/bundled-test-harness/assets/skills-test-CXxSIkYa.js +0 -648
- package/bundled-test-harness/assets/slider-picker-C81errGI.js +0 -245
- package/bundled-test-harness/assets/slider-picker-mvKsy6cR.js +0 -2
- package/bundled-test-harness/assets/spec-B55lJurX.js +0 -602
- package/bundled-test-harness/assets/store-DyQ0KiyI.js +0 -2205
- package/bundled-test-harness/assets/store-module-rebuild-test-C7532_bS.js +0 -454
- package/bundled-test-harness/assets/store-search-test-80NMJuoW.js +0 -175
- package/bundled-test-harness/assets/store-test-dHiWXXMs.js +0 -3460
- package/bundled-test-harness/assets/string-DHlQEHYm.js +0 -9
- package/bundled-test-harness/assets/submode-switcher-DQv-CD6G.js +0 -169
- package/bundled-test-harness/assets/svg-meta-extractor-Uw_EJytF.js +0 -42
- package/bundled-test-harness/assets/swatches-picker-CaEoibN1.js +0 -33
- package/bundled-test-harness/assets/swatches-picker-gPl50JbP.js +0 -2
- package/bundled-test-harness/assets/switch-submode-BKDnJd4m.js +0 -79
- package/bundled-test-harness/assets/switch-submode-test-_E2mVk4z.js +0 -168
- package/bundled-test-harness/assets/tag-B60lDr-j.js +0 -105
- package/bundled-test-harness/assets/tests-BBBgPBB6.js +0 -3520
- package/bundled-test-harness/assets/text-area-CJjWmwpi.js +0 -9
- package/bundled-test-harness/assets/text-file-def-u_dl0i2z.js +0 -151
- package/bundled-test-harness/assets/text-input-validator-test-BTwnkSS2.js +0 -156
- package/bundled-test-harness/assets/theme-BK-fAHVn.js +0 -9
- package/bundled-test-harness/assets/theme-card-test-BQmT7rqr.js +0 -621
- package/bundled-test-harness/assets/theme-scheme-island-test-Oi3aeyp1.js +0 -264
- package/bundled-test-harness/assets/three-d-model-def-B4KckPVC.js +0 -70
- package/bundled-test-harness/assets/time-BcuaSkHg.js +0 -126
- package/bundled-test-harness/assets/time-f7Irg7Z7.js +0 -2
- package/bundled-test-harness/assets/time-slots-ClYIZN53.js +0 -2
- package/bundled-test-harness/assets/time-slots-TI1aaqRN.js +0 -85
- package/bundled-test-harness/assets/timeline-Cof9eyq0.js +0 -59
- package/bundled-test-harness/assets/timeline-DFWQtCWE.js +0 -2
- package/bundled-test-harness/assets/to-device-streaming-test-BDrUUlOt.js +0 -163
- package/bundled-test-harness/assets/token-usage-test-CiZo03fY.js +0 -166
- package/bundled-test-harness/assets/tool-field-BXHr9r0w.js +0 -94
- package/bundled-test-harness/assets/tool-field-CoRO5C4R.js +0 -2
- package/bundled-test-harness/assets/tools-CmVaYDIS.js +0 -725
- package/bundled-test-harness/assets/tools-calling-test-B454__XF.js +0 -200
- package/bundled-test-harness/assets/tools-test-CLu51dJO.js +0 -1624
- package/bundled-test-harness/assets/tools-test-XGRAvVug.js +0 -2820
- package/bundled-test-harness/assets/ts-file-def-C05BDwdg.js +0 -159
- package/bundled-test-harness/assets/update-room-skills-test-jOvP14JX.js +0 -240
- package/bundled-test-harness/assets/url-BFf2CNo-.js +0 -2
- package/bundled-test-harness/assets/url-CYm-CeXp.js +0 -96
- package/bundled-test-harness/assets/video-file-def-B2UIrOFS.js +0 -76
- package/bundled-test-harness/assets/wav-meta-extractor-BNkv7e2f.js +0 -368
- package/bundled-test-harness/assets/webm-meta-extractor-C933kYyc.js +0 -178
- package/bundled-test-harness/assets/webp-meta-extractor-BLz0z1pZ.js +0 -98
- package/bundled-test-harness/assets/website-BuOMUW1v.js +0 -92
- package/bundled-test-harness/assets/week-Bo0666ji.js +0 -111
- package/bundled-test-harness/assets/week-CaVFA8Vc.js +0 -2
- package/bundled-test-harness/assets/welcome-to-boxel-PWard7GF.js +0 -172
- package/bundled-test-harness/assets/workspace-KXfFTQNV.js +0 -614
- package/bundled-test-harness/assets/workspace-a11y-test-Buwb-rfO.js +0 -197
- package/bundled-test-harness/assets/workspace-behavior-test-CbgFUOOo.js +0 -200
- package/bundled-test-harness/assets/workspace-chooser-BmQvhhrl.js +0 -2248
- package/bundled-test-harness/assets/workspace-chooser-Cu84Gd_E.css +0 -1317
- package/bundled-test-harness/assets/workspace-chooser-catalog-order-test-rcRw6sni.js +0 -36
- package/bundled-test-harness/assets/workspace-chooser-unreachable-notice-test-DUXnBIdY.js +0 -60
- package/bundled-test-harness/assets/workspace-delete-multiple-test-DjRKhZ2g.js +0 -212
- package/bundled-test-harness/assets/workspace-delete-summary-test-CvkLVYyN.js +0 -63
- package/bundled-test-harness/assets/workspace-timestamp-labels-test-AYJT4inv.js +0 -58
- package/bundled-test-harness/assets/xlsx-file-def-DuKdbGrJ.js +0 -60
- package/bundled-test-harness/assets/xlsx-meta-extractor-Bz-C2JWP.js +0 -101
- package/bundled-test-harness/assets/xlsx-meta-extractor-ClwwgABg.js +0 -2
- package/bundled-test-harness/assets/year-B6ctHikl.js +0 -2
- package/bundled-test-harness/assets/year-C11uAQE6.js +0 -78
- package/bundled-test-harness/assets/zip-file-def-B8XN-OS_.js +0 -288
- package/bundled-types/host-app/components/matrix/auth-button.gts +0 -39
- package/bundled-types/host-app/components/matrix/auth-container.gts +0 -69
- package/bundled-types/host-app/components/matrix/auth-form-field.gts +0 -43
|
@@ -0,0 +1,3474 @@
|
|
|
1
|
+
import { a as __require, r as __exportAll } from "./chunk-Rp0pCe6z.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/moment@2.30.1/node_modules/moment/dist/moment.js
|
|
3
|
+
var moment_exports = /* @__PURE__ */ __exportAll({ default: () => hooks });
|
|
4
|
+
//! moment.js
|
|
5
|
+
//! version : 2.30.1
|
|
6
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
7
|
+
//! license : MIT
|
|
8
|
+
//! momentjs.com
|
|
9
|
+
var hookCallback;
|
|
10
|
+
function hooks() {
|
|
11
|
+
return hookCallback.apply(null, arguments);
|
|
12
|
+
}
|
|
13
|
+
function setHookCallback(callback) {
|
|
14
|
+
hookCallback = callback;
|
|
15
|
+
}
|
|
16
|
+
function isArray(input) {
|
|
17
|
+
return input instanceof Array || Object.prototype.toString.call(input) === "[object Array]";
|
|
18
|
+
}
|
|
19
|
+
function isObject(input) {
|
|
20
|
+
return input != null && Object.prototype.toString.call(input) === "[object Object]";
|
|
21
|
+
}
|
|
22
|
+
function hasOwnProp(a, b) {
|
|
23
|
+
return Object.prototype.hasOwnProperty.call(a, b);
|
|
24
|
+
}
|
|
25
|
+
function isObjectEmpty(obj) {
|
|
26
|
+
if (Object.getOwnPropertyNames) return Object.getOwnPropertyNames(obj).length === 0;
|
|
27
|
+
else {
|
|
28
|
+
var k;
|
|
29
|
+
for (k in obj) if (hasOwnProp(obj, k)) return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function isUndefined(input) {
|
|
34
|
+
return input === void 0;
|
|
35
|
+
}
|
|
36
|
+
function isNumber(input) {
|
|
37
|
+
return typeof input === "number" || Object.prototype.toString.call(input) === "[object Number]";
|
|
38
|
+
}
|
|
39
|
+
function isDate(input) {
|
|
40
|
+
return input instanceof Date || Object.prototype.toString.call(input) === "[object Date]";
|
|
41
|
+
}
|
|
42
|
+
function map(arr, fn) {
|
|
43
|
+
var res = [];
|
|
44
|
+
var i;
|
|
45
|
+
var arrLen = arr.length;
|
|
46
|
+
for (i = 0; i < arrLen; ++i) res.push(fn(arr[i], i));
|
|
47
|
+
return res;
|
|
48
|
+
}
|
|
49
|
+
function extend(a, b) {
|
|
50
|
+
for (var i in b) if (hasOwnProp(b, i)) a[i] = b[i];
|
|
51
|
+
if (hasOwnProp(b, "toString")) a.toString = b.toString;
|
|
52
|
+
if (hasOwnProp(b, "valueOf")) a.valueOf = b.valueOf;
|
|
53
|
+
return a;
|
|
54
|
+
}
|
|
55
|
+
function createUTC(input, format, locale, strict) {
|
|
56
|
+
return createLocalOrUTC(input, format, locale, strict, true).utc();
|
|
57
|
+
}
|
|
58
|
+
function defaultParsingFlags() {
|
|
59
|
+
return {
|
|
60
|
+
empty: false,
|
|
61
|
+
unusedTokens: [],
|
|
62
|
+
unusedInput: [],
|
|
63
|
+
overflow: -2,
|
|
64
|
+
charsLeftOver: 0,
|
|
65
|
+
nullInput: false,
|
|
66
|
+
invalidEra: null,
|
|
67
|
+
invalidMonth: null,
|
|
68
|
+
invalidFormat: false,
|
|
69
|
+
userInvalidated: false,
|
|
70
|
+
iso: false,
|
|
71
|
+
parsedDateParts: [],
|
|
72
|
+
era: null,
|
|
73
|
+
meridiem: null,
|
|
74
|
+
rfc2822: false,
|
|
75
|
+
weekdayMismatch: false
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function getParsingFlags(m) {
|
|
79
|
+
if (m._pf == null) m._pf = defaultParsingFlags();
|
|
80
|
+
return m._pf;
|
|
81
|
+
}
|
|
82
|
+
var some;
|
|
83
|
+
if (Array.prototype.some) some = Array.prototype.some;
|
|
84
|
+
else some = function(fun) {
|
|
85
|
+
var t = Object(this);
|
|
86
|
+
var len = t.length >>> 0;
|
|
87
|
+
var i;
|
|
88
|
+
for (i = 0; i < len; i++) if (i in t && fun.call(this, t[i], i, t)) return true;
|
|
89
|
+
return false;
|
|
90
|
+
};
|
|
91
|
+
function isValid(m) {
|
|
92
|
+
var flags = null;
|
|
93
|
+
var parsedParts = false;
|
|
94
|
+
var isNowValid = m._d && !isNaN(m._d.getTime());
|
|
95
|
+
if (isNowValid) {
|
|
96
|
+
flags = getParsingFlags(m);
|
|
97
|
+
parsedParts = some.call(flags.parsedDateParts, function(i) {
|
|
98
|
+
return i != null;
|
|
99
|
+
});
|
|
100
|
+
isNowValid = flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
|
|
101
|
+
if (m._strict) isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === void 0;
|
|
102
|
+
}
|
|
103
|
+
if (Object.isFrozen == null || !Object.isFrozen(m)) m._isValid = isNowValid;
|
|
104
|
+
else return isNowValid;
|
|
105
|
+
return m._isValid;
|
|
106
|
+
}
|
|
107
|
+
function createInvalid(flags) {
|
|
108
|
+
var m = createUTC(NaN);
|
|
109
|
+
if (flags != null) extend(getParsingFlags(m), flags);
|
|
110
|
+
else getParsingFlags(m).userInvalidated = true;
|
|
111
|
+
return m;
|
|
112
|
+
}
|
|
113
|
+
var momentProperties = hooks.momentProperties = [];
|
|
114
|
+
var updateInProgress = false;
|
|
115
|
+
function copyConfig(to, from) {
|
|
116
|
+
var i;
|
|
117
|
+
var prop;
|
|
118
|
+
var val;
|
|
119
|
+
var momentPropertiesLen = momentProperties.length;
|
|
120
|
+
if (!isUndefined(from._isAMomentObject)) to._isAMomentObject = from._isAMomentObject;
|
|
121
|
+
if (!isUndefined(from._i)) to._i = from._i;
|
|
122
|
+
if (!isUndefined(from._f)) to._f = from._f;
|
|
123
|
+
if (!isUndefined(from._l)) to._l = from._l;
|
|
124
|
+
if (!isUndefined(from._strict)) to._strict = from._strict;
|
|
125
|
+
if (!isUndefined(from._tzm)) to._tzm = from._tzm;
|
|
126
|
+
if (!isUndefined(from._isUTC)) to._isUTC = from._isUTC;
|
|
127
|
+
if (!isUndefined(from._offset)) to._offset = from._offset;
|
|
128
|
+
if (!isUndefined(from._pf)) to._pf = getParsingFlags(from);
|
|
129
|
+
if (!isUndefined(from._locale)) to._locale = from._locale;
|
|
130
|
+
if (momentPropertiesLen > 0) for (i = 0; i < momentPropertiesLen; i++) {
|
|
131
|
+
prop = momentProperties[i];
|
|
132
|
+
val = from[prop];
|
|
133
|
+
if (!isUndefined(val)) to[prop] = val;
|
|
134
|
+
}
|
|
135
|
+
return to;
|
|
136
|
+
}
|
|
137
|
+
function Moment(config) {
|
|
138
|
+
copyConfig(this, config);
|
|
139
|
+
this._d = new Date(config._d != null ? config._d.getTime() : NaN);
|
|
140
|
+
if (!this.isValid()) this._d = /* @__PURE__ */ new Date(NaN);
|
|
141
|
+
if (updateInProgress === false) {
|
|
142
|
+
updateInProgress = true;
|
|
143
|
+
hooks.updateOffset(this);
|
|
144
|
+
updateInProgress = false;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
function isMoment(obj) {
|
|
148
|
+
return obj instanceof Moment || obj != null && obj._isAMomentObject != null;
|
|
149
|
+
}
|
|
150
|
+
function warn(msg) {
|
|
151
|
+
if (hooks.suppressDeprecationWarnings === false && typeof console !== "undefined" && console.warn) console.warn("Deprecation warning: " + msg);
|
|
152
|
+
}
|
|
153
|
+
function deprecate(msg, fn) {
|
|
154
|
+
var firstTime = true;
|
|
155
|
+
return extend(function() {
|
|
156
|
+
if (hooks.deprecationHandler != null) hooks.deprecationHandler(null, msg);
|
|
157
|
+
if (firstTime) {
|
|
158
|
+
var args = [];
|
|
159
|
+
var arg;
|
|
160
|
+
var i;
|
|
161
|
+
var key;
|
|
162
|
+
var argLen = arguments.length;
|
|
163
|
+
for (i = 0; i < argLen; i++) {
|
|
164
|
+
arg = "";
|
|
165
|
+
if (typeof arguments[i] === "object") {
|
|
166
|
+
arg += "\n[" + i + "] ";
|
|
167
|
+
for (key in arguments[0]) if (hasOwnProp(arguments[0], key)) arg += key + ": " + arguments[0][key] + ", ";
|
|
168
|
+
arg = arg.slice(0, -2);
|
|
169
|
+
} else arg = arguments[i];
|
|
170
|
+
args.push(arg);
|
|
171
|
+
}
|
|
172
|
+
warn(msg + "\nArguments: " + Array.prototype.slice.call(args).join("") + "\n" + (/* @__PURE__ */ new Error()).stack);
|
|
173
|
+
firstTime = false;
|
|
174
|
+
}
|
|
175
|
+
return fn.apply(this, arguments);
|
|
176
|
+
}, fn);
|
|
177
|
+
}
|
|
178
|
+
var deprecations = {};
|
|
179
|
+
function deprecateSimple(name, msg) {
|
|
180
|
+
if (hooks.deprecationHandler != null) hooks.deprecationHandler(name, msg);
|
|
181
|
+
if (!deprecations[name]) {
|
|
182
|
+
warn(msg);
|
|
183
|
+
deprecations[name] = true;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
hooks.suppressDeprecationWarnings = false;
|
|
187
|
+
hooks.deprecationHandler = null;
|
|
188
|
+
function isFunction(input) {
|
|
189
|
+
return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]";
|
|
190
|
+
}
|
|
191
|
+
function set(config) {
|
|
192
|
+
var prop;
|
|
193
|
+
var i;
|
|
194
|
+
for (i in config) if (hasOwnProp(config, i)) {
|
|
195
|
+
prop = config[i];
|
|
196
|
+
if (isFunction(prop)) this[i] = prop;
|
|
197
|
+
else this["_" + i] = prop;
|
|
198
|
+
}
|
|
199
|
+
this._config = config;
|
|
200
|
+
this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source);
|
|
201
|
+
}
|
|
202
|
+
function mergeConfigs(parentConfig, childConfig) {
|
|
203
|
+
var res = extend({}, parentConfig);
|
|
204
|
+
var prop;
|
|
205
|
+
for (prop in childConfig) if (hasOwnProp(childConfig, prop)) if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
|
|
206
|
+
res[prop] = {};
|
|
207
|
+
extend(res[prop], parentConfig[prop]);
|
|
208
|
+
extend(res[prop], childConfig[prop]);
|
|
209
|
+
} else if (childConfig[prop] != null) res[prop] = childConfig[prop];
|
|
210
|
+
else delete res[prop];
|
|
211
|
+
for (prop in parentConfig) if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) res[prop] = extend({}, res[prop]);
|
|
212
|
+
return res;
|
|
213
|
+
}
|
|
214
|
+
function Locale(config) {
|
|
215
|
+
if (config != null) this.set(config);
|
|
216
|
+
}
|
|
217
|
+
var keys;
|
|
218
|
+
if (Object.keys) keys = Object.keys;
|
|
219
|
+
else keys = function(obj) {
|
|
220
|
+
var i;
|
|
221
|
+
var res = [];
|
|
222
|
+
for (i in obj) if (hasOwnProp(obj, i)) res.push(i);
|
|
223
|
+
return res;
|
|
224
|
+
};
|
|
225
|
+
var defaultCalendar = {
|
|
226
|
+
sameDay: "[Today at] LT",
|
|
227
|
+
nextDay: "[Tomorrow at] LT",
|
|
228
|
+
nextWeek: "dddd [at] LT",
|
|
229
|
+
lastDay: "[Yesterday at] LT",
|
|
230
|
+
lastWeek: "[Last] dddd [at] LT",
|
|
231
|
+
sameElse: "L"
|
|
232
|
+
};
|
|
233
|
+
function calendar(key, mom, now) {
|
|
234
|
+
var output = this._calendar[key] || this._calendar["sameElse"];
|
|
235
|
+
return isFunction(output) ? output.call(mom, now) : output;
|
|
236
|
+
}
|
|
237
|
+
function zeroFill(number, targetLength, forceSign) {
|
|
238
|
+
var absNumber = "" + Math.abs(number);
|
|
239
|
+
var zerosToFill = targetLength - absNumber.length;
|
|
240
|
+
return (number >= 0 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
|
|
241
|
+
}
|
|
242
|
+
var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
|
|
243
|
+
var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
|
|
244
|
+
var formatFunctions = {};
|
|
245
|
+
var formatTokenFunctions = {};
|
|
246
|
+
function addFormatToken(token, padded, ordinal, callback) {
|
|
247
|
+
var func = callback;
|
|
248
|
+
if (typeof callback === "string") func = function() {
|
|
249
|
+
return this[callback]();
|
|
250
|
+
};
|
|
251
|
+
if (token) formatTokenFunctions[token] = func;
|
|
252
|
+
if (padded) formatTokenFunctions[padded[0]] = function() {
|
|
253
|
+
return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
|
|
254
|
+
};
|
|
255
|
+
if (ordinal) formatTokenFunctions[ordinal] = function() {
|
|
256
|
+
return this.localeData().ordinal(func.apply(this, arguments), token);
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
function removeFormattingTokens(input) {
|
|
260
|
+
if (input.match(/\[[\s\S]/)) return input.replace(/^\[|\]$/g, "");
|
|
261
|
+
return input.replace(/\\/g, "");
|
|
262
|
+
}
|
|
263
|
+
function makeFormatFunction(format) {
|
|
264
|
+
var array = format.match(formattingTokens);
|
|
265
|
+
var i;
|
|
266
|
+
var length;
|
|
267
|
+
for (i = 0, length = array.length; i < length; i++) if (formatTokenFunctions[array[i]]) array[i] = formatTokenFunctions[array[i]];
|
|
268
|
+
else array[i] = removeFormattingTokens(array[i]);
|
|
269
|
+
return function(mom) {
|
|
270
|
+
var output = "";
|
|
271
|
+
var i;
|
|
272
|
+
for (i = 0; i < length; i++) output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
|
|
273
|
+
return output;
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
function formatMoment(m, format) {
|
|
277
|
+
if (!m.isValid()) return m.localeData().invalidDate();
|
|
278
|
+
format = expandFormat(format, m.localeData());
|
|
279
|
+
formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
|
|
280
|
+
return formatFunctions[format](m);
|
|
281
|
+
}
|
|
282
|
+
function expandFormat(format, locale) {
|
|
283
|
+
var i = 5;
|
|
284
|
+
function replaceLongDateFormatTokens(input) {
|
|
285
|
+
return locale.longDateFormat(input) || input;
|
|
286
|
+
}
|
|
287
|
+
localFormattingTokens.lastIndex = 0;
|
|
288
|
+
while (i >= 0 && localFormattingTokens.test(format)) {
|
|
289
|
+
format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
|
|
290
|
+
localFormattingTokens.lastIndex = 0;
|
|
291
|
+
i -= 1;
|
|
292
|
+
}
|
|
293
|
+
return format;
|
|
294
|
+
}
|
|
295
|
+
var defaultLongDateFormat = {
|
|
296
|
+
LTS: "h:mm:ss A",
|
|
297
|
+
LT: "h:mm A",
|
|
298
|
+
L: "MM/DD/YYYY",
|
|
299
|
+
LL: "MMMM D, YYYY",
|
|
300
|
+
LLL: "MMMM D, YYYY h:mm A",
|
|
301
|
+
LLLL: "dddd, MMMM D, YYYY h:mm A"
|
|
302
|
+
};
|
|
303
|
+
function longDateFormat(key) {
|
|
304
|
+
var format = this._longDateFormat[key];
|
|
305
|
+
var formatUpper = this._longDateFormat[key.toUpperCase()];
|
|
306
|
+
if (format || !formatUpper) return format;
|
|
307
|
+
this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function(tok) {
|
|
308
|
+
if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") return tok.slice(1);
|
|
309
|
+
return tok;
|
|
310
|
+
}).join("");
|
|
311
|
+
return this._longDateFormat[key];
|
|
312
|
+
}
|
|
313
|
+
var defaultInvalidDate = "Invalid date";
|
|
314
|
+
function invalidDate() {
|
|
315
|
+
return this._invalidDate;
|
|
316
|
+
}
|
|
317
|
+
var defaultOrdinal = "%d";
|
|
318
|
+
var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
|
|
319
|
+
function ordinal(number) {
|
|
320
|
+
return this._ordinal.replace("%d", number);
|
|
321
|
+
}
|
|
322
|
+
var defaultRelativeTime = {
|
|
323
|
+
future: "in %s",
|
|
324
|
+
past: "%s ago",
|
|
325
|
+
s: "a few seconds",
|
|
326
|
+
ss: "%d seconds",
|
|
327
|
+
m: "a minute",
|
|
328
|
+
mm: "%d minutes",
|
|
329
|
+
h: "an hour",
|
|
330
|
+
hh: "%d hours",
|
|
331
|
+
d: "a day",
|
|
332
|
+
dd: "%d days",
|
|
333
|
+
w: "a week",
|
|
334
|
+
ww: "%d weeks",
|
|
335
|
+
M: "a month",
|
|
336
|
+
MM: "%d months",
|
|
337
|
+
y: "a year",
|
|
338
|
+
yy: "%d years"
|
|
339
|
+
};
|
|
340
|
+
function relativeTime(number, withoutSuffix, string, isFuture) {
|
|
341
|
+
var output = this._relativeTime[string];
|
|
342
|
+
return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
|
343
|
+
}
|
|
344
|
+
function pastFuture(diff, output) {
|
|
345
|
+
var format = this._relativeTime[diff > 0 ? "future" : "past"];
|
|
346
|
+
return isFunction(format) ? format(output) : format.replace(/%s/i, output);
|
|
347
|
+
}
|
|
348
|
+
var aliases = {
|
|
349
|
+
D: "date",
|
|
350
|
+
dates: "date",
|
|
351
|
+
date: "date",
|
|
352
|
+
d: "day",
|
|
353
|
+
days: "day",
|
|
354
|
+
day: "day",
|
|
355
|
+
e: "weekday",
|
|
356
|
+
weekdays: "weekday",
|
|
357
|
+
weekday: "weekday",
|
|
358
|
+
E: "isoWeekday",
|
|
359
|
+
isoweekdays: "isoWeekday",
|
|
360
|
+
isoweekday: "isoWeekday",
|
|
361
|
+
DDD: "dayOfYear",
|
|
362
|
+
dayofyears: "dayOfYear",
|
|
363
|
+
dayofyear: "dayOfYear",
|
|
364
|
+
h: "hour",
|
|
365
|
+
hours: "hour",
|
|
366
|
+
hour: "hour",
|
|
367
|
+
ms: "millisecond",
|
|
368
|
+
milliseconds: "millisecond",
|
|
369
|
+
millisecond: "millisecond",
|
|
370
|
+
m: "minute",
|
|
371
|
+
minutes: "minute",
|
|
372
|
+
minute: "minute",
|
|
373
|
+
M: "month",
|
|
374
|
+
months: "month",
|
|
375
|
+
month: "month",
|
|
376
|
+
Q: "quarter",
|
|
377
|
+
quarters: "quarter",
|
|
378
|
+
quarter: "quarter",
|
|
379
|
+
s: "second",
|
|
380
|
+
seconds: "second",
|
|
381
|
+
second: "second",
|
|
382
|
+
gg: "weekYear",
|
|
383
|
+
weekyears: "weekYear",
|
|
384
|
+
weekyear: "weekYear",
|
|
385
|
+
GG: "isoWeekYear",
|
|
386
|
+
isoweekyears: "isoWeekYear",
|
|
387
|
+
isoweekyear: "isoWeekYear",
|
|
388
|
+
w: "week",
|
|
389
|
+
weeks: "week",
|
|
390
|
+
week: "week",
|
|
391
|
+
W: "isoWeek",
|
|
392
|
+
isoweeks: "isoWeek",
|
|
393
|
+
isoweek: "isoWeek",
|
|
394
|
+
y: "year",
|
|
395
|
+
years: "year",
|
|
396
|
+
year: "year"
|
|
397
|
+
};
|
|
398
|
+
function normalizeUnits(units) {
|
|
399
|
+
return typeof units === "string" ? aliases[units] || aliases[units.toLowerCase()] : void 0;
|
|
400
|
+
}
|
|
401
|
+
function normalizeObjectUnits(inputObject) {
|
|
402
|
+
var normalizedInput = {};
|
|
403
|
+
var normalizedProp;
|
|
404
|
+
var prop;
|
|
405
|
+
for (prop in inputObject) if (hasOwnProp(inputObject, prop)) {
|
|
406
|
+
normalizedProp = normalizeUnits(prop);
|
|
407
|
+
if (normalizedProp) normalizedInput[normalizedProp] = inputObject[prop];
|
|
408
|
+
}
|
|
409
|
+
return normalizedInput;
|
|
410
|
+
}
|
|
411
|
+
var priorities = {
|
|
412
|
+
date: 9,
|
|
413
|
+
day: 11,
|
|
414
|
+
weekday: 11,
|
|
415
|
+
isoWeekday: 11,
|
|
416
|
+
dayOfYear: 4,
|
|
417
|
+
hour: 13,
|
|
418
|
+
millisecond: 16,
|
|
419
|
+
minute: 14,
|
|
420
|
+
month: 8,
|
|
421
|
+
quarter: 7,
|
|
422
|
+
second: 15,
|
|
423
|
+
weekYear: 1,
|
|
424
|
+
isoWeekYear: 1,
|
|
425
|
+
week: 5,
|
|
426
|
+
isoWeek: 5,
|
|
427
|
+
year: 1
|
|
428
|
+
};
|
|
429
|
+
function getPrioritizedUnits(unitsObj) {
|
|
430
|
+
var units = [];
|
|
431
|
+
var u;
|
|
432
|
+
for (u in unitsObj) if (hasOwnProp(unitsObj, u)) units.push({
|
|
433
|
+
unit: u,
|
|
434
|
+
priority: priorities[u]
|
|
435
|
+
});
|
|
436
|
+
units.sort(function(a, b) {
|
|
437
|
+
return a.priority - b.priority;
|
|
438
|
+
});
|
|
439
|
+
return units;
|
|
440
|
+
}
|
|
441
|
+
var match1 = /\d/;
|
|
442
|
+
var match2 = /\d\d/;
|
|
443
|
+
var match3 = /\d{3}/;
|
|
444
|
+
var match4 = /\d{4}/;
|
|
445
|
+
var match6 = /[+-]?\d{6}/;
|
|
446
|
+
var match1to2 = /\d\d?/;
|
|
447
|
+
var match3to4 = /\d\d\d\d?/;
|
|
448
|
+
var match5to6 = /\d\d\d\d\d\d?/;
|
|
449
|
+
var match1to3 = /\d{1,3}/;
|
|
450
|
+
var match1to4 = /\d{1,4}/;
|
|
451
|
+
var match1to6 = /[+-]?\d{1,6}/;
|
|
452
|
+
var matchUnsigned = /\d+/;
|
|
453
|
+
var matchSigned = /[+-]?\d+/;
|
|
454
|
+
var matchOffset = /Z|[+-]\d\d:?\d\d/gi;
|
|
455
|
+
var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi;
|
|
456
|
+
var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/;
|
|
457
|
+
var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
|
|
458
|
+
var match1to2NoLeadingZero = /^[1-9]\d?/;
|
|
459
|
+
var match1to2HasZero = /^([1-9]\d|\d)/;
|
|
460
|
+
var regexes = {};
|
|
461
|
+
function addRegexToken(token, regex, strictRegex) {
|
|
462
|
+
regexes[token] = isFunction(regex) ? regex : function(isStrict, localeData) {
|
|
463
|
+
return isStrict && strictRegex ? strictRegex : regex;
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
function getParseRegexForToken(token, config) {
|
|
467
|
+
if (!hasOwnProp(regexes, token)) return new RegExp(unescapeFormat(token));
|
|
468
|
+
return regexes[token](config._strict, config._locale);
|
|
469
|
+
}
|
|
470
|
+
function unescapeFormat(s) {
|
|
471
|
+
return regexEscape(s.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(matched, p1, p2, p3, p4) {
|
|
472
|
+
return p1 || p2 || p3 || p4;
|
|
473
|
+
}));
|
|
474
|
+
}
|
|
475
|
+
function regexEscape(s) {
|
|
476
|
+
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
477
|
+
}
|
|
478
|
+
function absFloor(number) {
|
|
479
|
+
if (number < 0) return Math.ceil(number) || 0;
|
|
480
|
+
else return Math.floor(number);
|
|
481
|
+
}
|
|
482
|
+
function toInt(argumentForCoercion) {
|
|
483
|
+
var coercedNumber = +argumentForCoercion;
|
|
484
|
+
var value = 0;
|
|
485
|
+
if (coercedNumber !== 0 && isFinite(coercedNumber)) value = absFloor(coercedNumber);
|
|
486
|
+
return value;
|
|
487
|
+
}
|
|
488
|
+
var tokens = {};
|
|
489
|
+
function addParseToken(token, callback) {
|
|
490
|
+
var i;
|
|
491
|
+
var func = callback;
|
|
492
|
+
var tokenLen;
|
|
493
|
+
if (typeof token === "string") token = [token];
|
|
494
|
+
if (isNumber(callback)) func = function(input, array) {
|
|
495
|
+
array[callback] = toInt(input);
|
|
496
|
+
};
|
|
497
|
+
tokenLen = token.length;
|
|
498
|
+
for (i = 0; i < tokenLen; i++) tokens[token[i]] = func;
|
|
499
|
+
}
|
|
500
|
+
function addWeekParseToken(token, callback) {
|
|
501
|
+
addParseToken(token, function(input, array, config, token) {
|
|
502
|
+
config._w = config._w || {};
|
|
503
|
+
callback(input, config._w, config, token);
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
function addTimeToArrayFromToken(token, input, config) {
|
|
507
|
+
if (input != null && hasOwnProp(tokens, token)) tokens[token](input, config._a, config, token);
|
|
508
|
+
}
|
|
509
|
+
function isLeapYear(year) {
|
|
510
|
+
return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
|
511
|
+
}
|
|
512
|
+
var YEAR = 0;
|
|
513
|
+
var MONTH = 1;
|
|
514
|
+
var DATE = 2;
|
|
515
|
+
var HOUR = 3;
|
|
516
|
+
var MINUTE = 4;
|
|
517
|
+
var SECOND = 5;
|
|
518
|
+
var MILLISECOND = 6;
|
|
519
|
+
var WEEK = 7;
|
|
520
|
+
var WEEKDAY = 8;
|
|
521
|
+
addFormatToken("Y", 0, 0, function() {
|
|
522
|
+
var y = this.year();
|
|
523
|
+
return y <= 9999 ? zeroFill(y, 4) : "+" + y;
|
|
524
|
+
});
|
|
525
|
+
addFormatToken(0, ["YY", 2], 0, function() {
|
|
526
|
+
return this.year() % 100;
|
|
527
|
+
});
|
|
528
|
+
addFormatToken(0, ["YYYY", 4], 0, "year");
|
|
529
|
+
addFormatToken(0, ["YYYYY", 5], 0, "year");
|
|
530
|
+
addFormatToken(0, [
|
|
531
|
+
"YYYYYY",
|
|
532
|
+
6,
|
|
533
|
+
true
|
|
534
|
+
], 0, "year");
|
|
535
|
+
addRegexToken("Y", matchSigned);
|
|
536
|
+
addRegexToken("YY", match1to2, match2);
|
|
537
|
+
addRegexToken("YYYY", match1to4, match4);
|
|
538
|
+
addRegexToken("YYYYY", match1to6, match6);
|
|
539
|
+
addRegexToken("YYYYYY", match1to6, match6);
|
|
540
|
+
addParseToken(["YYYYY", "YYYYYY"], YEAR);
|
|
541
|
+
addParseToken("YYYY", function(input, array) {
|
|
542
|
+
array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
|
543
|
+
});
|
|
544
|
+
addParseToken("YY", function(input, array) {
|
|
545
|
+
array[YEAR] = hooks.parseTwoDigitYear(input);
|
|
546
|
+
});
|
|
547
|
+
addParseToken("Y", function(input, array) {
|
|
548
|
+
array[YEAR] = parseInt(input, 10);
|
|
549
|
+
});
|
|
550
|
+
function daysInYear(year) {
|
|
551
|
+
return isLeapYear(year) ? 366 : 365;
|
|
552
|
+
}
|
|
553
|
+
hooks.parseTwoDigitYear = function(input) {
|
|
554
|
+
return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3);
|
|
555
|
+
};
|
|
556
|
+
var getSetYear = makeGetSet("FullYear", true);
|
|
557
|
+
function getIsLeapYear() {
|
|
558
|
+
return isLeapYear(this.year());
|
|
559
|
+
}
|
|
560
|
+
function makeGetSet(unit, keepTime) {
|
|
561
|
+
return function(value) {
|
|
562
|
+
if (value != null) {
|
|
563
|
+
set$1(this, unit, value);
|
|
564
|
+
hooks.updateOffset(this, keepTime);
|
|
565
|
+
return this;
|
|
566
|
+
} else return get(this, unit);
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
function get(mom, unit) {
|
|
570
|
+
if (!mom.isValid()) return NaN;
|
|
571
|
+
var d = mom._d;
|
|
572
|
+
var isUTC = mom._isUTC;
|
|
573
|
+
switch (unit) {
|
|
574
|
+
case "Milliseconds": return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
|
|
575
|
+
case "Seconds": return isUTC ? d.getUTCSeconds() : d.getSeconds();
|
|
576
|
+
case "Minutes": return isUTC ? d.getUTCMinutes() : d.getMinutes();
|
|
577
|
+
case "Hours": return isUTC ? d.getUTCHours() : d.getHours();
|
|
578
|
+
case "Date": return isUTC ? d.getUTCDate() : d.getDate();
|
|
579
|
+
case "Day": return isUTC ? d.getUTCDay() : d.getDay();
|
|
580
|
+
case "Month": return isUTC ? d.getUTCMonth() : d.getMonth();
|
|
581
|
+
case "FullYear": return isUTC ? d.getUTCFullYear() : d.getFullYear();
|
|
582
|
+
default: return NaN;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
function set$1(mom, unit, value) {
|
|
586
|
+
var d;
|
|
587
|
+
var isUTC;
|
|
588
|
+
var year;
|
|
589
|
+
var month;
|
|
590
|
+
var date;
|
|
591
|
+
if (!mom.isValid() || isNaN(value)) return;
|
|
592
|
+
d = mom._d;
|
|
593
|
+
isUTC = mom._isUTC;
|
|
594
|
+
switch (unit) {
|
|
595
|
+
case "Milliseconds":
|
|
596
|
+
isUTC ? d.setUTCMilliseconds(value) : d.setMilliseconds(value);
|
|
597
|
+
return;
|
|
598
|
+
case "Seconds":
|
|
599
|
+
isUTC ? d.setUTCSeconds(value) : d.setSeconds(value);
|
|
600
|
+
return;
|
|
601
|
+
case "Minutes":
|
|
602
|
+
isUTC ? d.setUTCMinutes(value) : d.setMinutes(value);
|
|
603
|
+
return;
|
|
604
|
+
case "Hours":
|
|
605
|
+
isUTC ? d.setUTCHours(value) : d.setHours(value);
|
|
606
|
+
return;
|
|
607
|
+
case "Date":
|
|
608
|
+
isUTC ? d.setUTCDate(value) : d.setDate(value);
|
|
609
|
+
return;
|
|
610
|
+
case "FullYear": break;
|
|
611
|
+
default: return;
|
|
612
|
+
}
|
|
613
|
+
year = value;
|
|
614
|
+
month = mom.month();
|
|
615
|
+
date = mom.date();
|
|
616
|
+
date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
|
|
617
|
+
isUTC ? d.setUTCFullYear(year, month, date) : d.setFullYear(year, month, date);
|
|
618
|
+
}
|
|
619
|
+
function stringGet(units) {
|
|
620
|
+
units = normalizeUnits(units);
|
|
621
|
+
if (isFunction(this[units])) return this[units]();
|
|
622
|
+
return this;
|
|
623
|
+
}
|
|
624
|
+
function stringSet(units, value) {
|
|
625
|
+
if (typeof units === "object") {
|
|
626
|
+
units = normalizeObjectUnits(units);
|
|
627
|
+
var prioritized = getPrioritizedUnits(units);
|
|
628
|
+
var i;
|
|
629
|
+
var prioritizedLen = prioritized.length;
|
|
630
|
+
for (i = 0; i < prioritizedLen; i++) this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
631
|
+
} else {
|
|
632
|
+
units = normalizeUnits(units);
|
|
633
|
+
if (isFunction(this[units])) return this[units](value);
|
|
634
|
+
}
|
|
635
|
+
return this;
|
|
636
|
+
}
|
|
637
|
+
function mod(n, x) {
|
|
638
|
+
return (n % x + x) % x;
|
|
639
|
+
}
|
|
640
|
+
var indexOf;
|
|
641
|
+
if (Array.prototype.indexOf) indexOf = Array.prototype.indexOf;
|
|
642
|
+
else indexOf = function(o) {
|
|
643
|
+
var i;
|
|
644
|
+
for (i = 0; i < this.length; ++i) if (this[i] === o) return i;
|
|
645
|
+
return -1;
|
|
646
|
+
};
|
|
647
|
+
function daysInMonth(year, month) {
|
|
648
|
+
if (isNaN(year) || isNaN(month)) return NaN;
|
|
649
|
+
var modMonth = mod(month, 12);
|
|
650
|
+
year += (month - modMonth) / 12;
|
|
651
|
+
return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
|
|
652
|
+
}
|
|
653
|
+
addFormatToken("M", ["MM", 2], "Mo", function() {
|
|
654
|
+
return this.month() + 1;
|
|
655
|
+
});
|
|
656
|
+
addFormatToken("MMM", 0, 0, function(format) {
|
|
657
|
+
return this.localeData().monthsShort(this, format);
|
|
658
|
+
});
|
|
659
|
+
addFormatToken("MMMM", 0, 0, function(format) {
|
|
660
|
+
return this.localeData().months(this, format);
|
|
661
|
+
});
|
|
662
|
+
addRegexToken("M", match1to2, match1to2NoLeadingZero);
|
|
663
|
+
addRegexToken("MM", match1to2, match2);
|
|
664
|
+
addRegexToken("MMM", function(isStrict, locale) {
|
|
665
|
+
return locale.monthsShortRegex(isStrict);
|
|
666
|
+
});
|
|
667
|
+
addRegexToken("MMMM", function(isStrict, locale) {
|
|
668
|
+
return locale.monthsRegex(isStrict);
|
|
669
|
+
});
|
|
670
|
+
addParseToken(["M", "MM"], function(input, array) {
|
|
671
|
+
array[MONTH] = toInt(input) - 1;
|
|
672
|
+
});
|
|
673
|
+
addParseToken(["MMM", "MMMM"], function(input, array, config, token) {
|
|
674
|
+
var month = config._locale.monthsParse(input, token, config._strict);
|
|
675
|
+
if (month != null) array[MONTH] = month;
|
|
676
|
+
else getParsingFlags(config).invalidMonth = input;
|
|
677
|
+
});
|
|
678
|
+
var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split("_");
|
|
679
|
+
var defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");
|
|
680
|
+
var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
|
|
681
|
+
var defaultMonthsShortRegex = matchWord;
|
|
682
|
+
var defaultMonthsRegex = matchWord;
|
|
683
|
+
function localeMonths(m, format) {
|
|
684
|
+
if (!m) return isArray(this._months) ? this._months : this._months["standalone"];
|
|
685
|
+
return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? "format" : "standalone"][m.month()];
|
|
686
|
+
}
|
|
687
|
+
function localeMonthsShort(m, format) {
|
|
688
|
+
if (!m) return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"];
|
|
689
|
+
return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? "format" : "standalone"][m.month()];
|
|
690
|
+
}
|
|
691
|
+
function handleStrictParse(monthName, format, strict) {
|
|
692
|
+
var i;
|
|
693
|
+
var ii;
|
|
694
|
+
var mom;
|
|
695
|
+
var llc = monthName.toLocaleLowerCase();
|
|
696
|
+
if (!this._monthsParse) {
|
|
697
|
+
this._monthsParse = [];
|
|
698
|
+
this._longMonthsParse = [];
|
|
699
|
+
this._shortMonthsParse = [];
|
|
700
|
+
for (i = 0; i < 12; ++i) {
|
|
701
|
+
mom = createUTC([2e3, i]);
|
|
702
|
+
this._shortMonthsParse[i] = this.monthsShort(mom, "").toLocaleLowerCase();
|
|
703
|
+
this._longMonthsParse[i] = this.months(mom, "").toLocaleLowerCase();
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
if (strict) if (format === "MMM") {
|
|
707
|
+
ii = indexOf.call(this._shortMonthsParse, llc);
|
|
708
|
+
return ii !== -1 ? ii : null;
|
|
709
|
+
} else {
|
|
710
|
+
ii = indexOf.call(this._longMonthsParse, llc);
|
|
711
|
+
return ii !== -1 ? ii : null;
|
|
712
|
+
}
|
|
713
|
+
else if (format === "MMM") {
|
|
714
|
+
ii = indexOf.call(this._shortMonthsParse, llc);
|
|
715
|
+
if (ii !== -1) return ii;
|
|
716
|
+
ii = indexOf.call(this._longMonthsParse, llc);
|
|
717
|
+
return ii !== -1 ? ii : null;
|
|
718
|
+
} else {
|
|
719
|
+
ii = indexOf.call(this._longMonthsParse, llc);
|
|
720
|
+
if (ii !== -1) return ii;
|
|
721
|
+
ii = indexOf.call(this._shortMonthsParse, llc);
|
|
722
|
+
return ii !== -1 ? ii : null;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
function localeMonthsParse(monthName, format, strict) {
|
|
726
|
+
var i;
|
|
727
|
+
var mom;
|
|
728
|
+
var regex;
|
|
729
|
+
if (this._monthsParseExact) return handleStrictParse.call(this, monthName, format, strict);
|
|
730
|
+
if (!this._monthsParse) {
|
|
731
|
+
this._monthsParse = [];
|
|
732
|
+
this._longMonthsParse = [];
|
|
733
|
+
this._shortMonthsParse = [];
|
|
734
|
+
}
|
|
735
|
+
for (i = 0; i < 12; i++) {
|
|
736
|
+
mom = createUTC([2e3, i]);
|
|
737
|
+
if (strict && !this._longMonthsParse[i]) {
|
|
738
|
+
this._longMonthsParse[i] = new RegExp("^" + this.months(mom, "").replace(".", "") + "$", "i");
|
|
739
|
+
this._shortMonthsParse[i] = new RegExp("^" + this.monthsShort(mom, "").replace(".", "") + "$", "i");
|
|
740
|
+
}
|
|
741
|
+
if (!strict && !this._monthsParse[i]) {
|
|
742
|
+
regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, "");
|
|
743
|
+
this._monthsParse[i] = new RegExp(regex.replace(".", ""), "i");
|
|
744
|
+
}
|
|
745
|
+
if (strict && format === "MMMM" && this._longMonthsParse[i].test(monthName)) return i;
|
|
746
|
+
else if (strict && format === "MMM" && this._shortMonthsParse[i].test(monthName)) return i;
|
|
747
|
+
else if (!strict && this._monthsParse[i].test(monthName)) return i;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
function setMonth(mom, value) {
|
|
751
|
+
if (!mom.isValid()) return mom;
|
|
752
|
+
if (typeof value === "string") if (/^\d+$/.test(value)) value = toInt(value);
|
|
753
|
+
else {
|
|
754
|
+
value = mom.localeData().monthsParse(value);
|
|
755
|
+
if (!isNumber(value)) return mom;
|
|
756
|
+
}
|
|
757
|
+
var month = value;
|
|
758
|
+
var date = mom.date();
|
|
759
|
+
date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
|
|
760
|
+
mom._isUTC ? mom._d.setUTCMonth(month, date) : mom._d.setMonth(month, date);
|
|
761
|
+
return mom;
|
|
762
|
+
}
|
|
763
|
+
function getSetMonth(value) {
|
|
764
|
+
if (value != null) {
|
|
765
|
+
setMonth(this, value);
|
|
766
|
+
hooks.updateOffset(this, true);
|
|
767
|
+
return this;
|
|
768
|
+
} else return get(this, "Month");
|
|
769
|
+
}
|
|
770
|
+
function getDaysInMonth() {
|
|
771
|
+
return daysInMonth(this.year(), this.month());
|
|
772
|
+
}
|
|
773
|
+
function monthsShortRegex(isStrict) {
|
|
774
|
+
if (this._monthsParseExact) {
|
|
775
|
+
if (!hasOwnProp(this, "_monthsRegex")) computeMonthsParse.call(this);
|
|
776
|
+
if (isStrict) return this._monthsShortStrictRegex;
|
|
777
|
+
else return this._monthsShortRegex;
|
|
778
|
+
} else {
|
|
779
|
+
if (!hasOwnProp(this, "_monthsShortRegex")) this._monthsShortRegex = defaultMonthsShortRegex;
|
|
780
|
+
return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
function monthsRegex(isStrict) {
|
|
784
|
+
if (this._monthsParseExact) {
|
|
785
|
+
if (!hasOwnProp(this, "_monthsRegex")) computeMonthsParse.call(this);
|
|
786
|
+
if (isStrict) return this._monthsStrictRegex;
|
|
787
|
+
else return this._monthsRegex;
|
|
788
|
+
} else {
|
|
789
|
+
if (!hasOwnProp(this, "_monthsRegex")) this._monthsRegex = defaultMonthsRegex;
|
|
790
|
+
return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
function computeMonthsParse() {
|
|
794
|
+
function cmpLenRev(a, b) {
|
|
795
|
+
return b.length - a.length;
|
|
796
|
+
}
|
|
797
|
+
var shortPieces = [];
|
|
798
|
+
var longPieces = [];
|
|
799
|
+
var mixedPieces = [];
|
|
800
|
+
var i;
|
|
801
|
+
var mom;
|
|
802
|
+
var shortP;
|
|
803
|
+
var longP;
|
|
804
|
+
for (i = 0; i < 12; i++) {
|
|
805
|
+
mom = createUTC([2e3, i]);
|
|
806
|
+
shortP = regexEscape(this.monthsShort(mom, ""));
|
|
807
|
+
longP = regexEscape(this.months(mom, ""));
|
|
808
|
+
shortPieces.push(shortP);
|
|
809
|
+
longPieces.push(longP);
|
|
810
|
+
mixedPieces.push(longP);
|
|
811
|
+
mixedPieces.push(shortP);
|
|
812
|
+
}
|
|
813
|
+
shortPieces.sort(cmpLenRev);
|
|
814
|
+
longPieces.sort(cmpLenRev);
|
|
815
|
+
mixedPieces.sort(cmpLenRev);
|
|
816
|
+
this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
817
|
+
this._monthsShortRegex = this._monthsRegex;
|
|
818
|
+
this._monthsStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i");
|
|
819
|
+
this._monthsShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i");
|
|
820
|
+
}
|
|
821
|
+
function createDate(y, m, d, h, M, s, ms) {
|
|
822
|
+
var date;
|
|
823
|
+
if (y < 100 && y >= 0) {
|
|
824
|
+
date = new Date(y + 400, m, d, h, M, s, ms);
|
|
825
|
+
if (isFinite(date.getFullYear())) date.setFullYear(y);
|
|
826
|
+
} else date = new Date(y, m, d, h, M, s, ms);
|
|
827
|
+
return date;
|
|
828
|
+
}
|
|
829
|
+
function createUTCDate(y) {
|
|
830
|
+
var date;
|
|
831
|
+
var args;
|
|
832
|
+
if (y < 100 && y >= 0) {
|
|
833
|
+
args = Array.prototype.slice.call(arguments);
|
|
834
|
+
args[0] = y + 400;
|
|
835
|
+
date = new Date(Date.UTC.apply(null, args));
|
|
836
|
+
if (isFinite(date.getUTCFullYear())) date.setUTCFullYear(y);
|
|
837
|
+
} else date = new Date(Date.UTC.apply(null, arguments));
|
|
838
|
+
return date;
|
|
839
|
+
}
|
|
840
|
+
function firstWeekOffset(year, dow, doy) {
|
|
841
|
+
var fwd = 7 + dow - doy;
|
|
842
|
+
return -((7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7) + fwd - 1;
|
|
843
|
+
}
|
|
844
|
+
function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
|
|
845
|
+
var localWeekday = (7 + weekday - dow) % 7;
|
|
846
|
+
var weekOffset = firstWeekOffset(year, dow, doy);
|
|
847
|
+
var dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset;
|
|
848
|
+
var resYear;
|
|
849
|
+
var resDayOfYear;
|
|
850
|
+
if (dayOfYear <= 0) {
|
|
851
|
+
resYear = year - 1;
|
|
852
|
+
resDayOfYear = daysInYear(resYear) + dayOfYear;
|
|
853
|
+
} else if (dayOfYear > daysInYear(year)) {
|
|
854
|
+
resYear = year + 1;
|
|
855
|
+
resDayOfYear = dayOfYear - daysInYear(year);
|
|
856
|
+
} else {
|
|
857
|
+
resYear = year;
|
|
858
|
+
resDayOfYear = dayOfYear;
|
|
859
|
+
}
|
|
860
|
+
return {
|
|
861
|
+
year: resYear,
|
|
862
|
+
dayOfYear: resDayOfYear
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
function weekOfYear(mom, dow, doy) {
|
|
866
|
+
var weekOffset = firstWeekOffset(mom.year(), dow, doy);
|
|
867
|
+
var week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1;
|
|
868
|
+
var resWeek;
|
|
869
|
+
var resYear;
|
|
870
|
+
if (week < 1) {
|
|
871
|
+
resYear = mom.year() - 1;
|
|
872
|
+
resWeek = week + weeksInYear(resYear, dow, doy);
|
|
873
|
+
} else if (week > weeksInYear(mom.year(), dow, doy)) {
|
|
874
|
+
resWeek = week - weeksInYear(mom.year(), dow, doy);
|
|
875
|
+
resYear = mom.year() + 1;
|
|
876
|
+
} else {
|
|
877
|
+
resYear = mom.year();
|
|
878
|
+
resWeek = week;
|
|
879
|
+
}
|
|
880
|
+
return {
|
|
881
|
+
week: resWeek,
|
|
882
|
+
year: resYear
|
|
883
|
+
};
|
|
884
|
+
}
|
|
885
|
+
function weeksInYear(year, dow, doy) {
|
|
886
|
+
var weekOffset = firstWeekOffset(year, dow, doy);
|
|
887
|
+
var weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
|
888
|
+
return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
|
889
|
+
}
|
|
890
|
+
addFormatToken("w", ["ww", 2], "wo", "week");
|
|
891
|
+
addFormatToken("W", ["WW", 2], "Wo", "isoWeek");
|
|
892
|
+
addRegexToken("w", match1to2, match1to2NoLeadingZero);
|
|
893
|
+
addRegexToken("ww", match1to2, match2);
|
|
894
|
+
addRegexToken("W", match1to2, match1to2NoLeadingZero);
|
|
895
|
+
addRegexToken("WW", match1to2, match2);
|
|
896
|
+
addWeekParseToken([
|
|
897
|
+
"w",
|
|
898
|
+
"ww",
|
|
899
|
+
"W",
|
|
900
|
+
"WW"
|
|
901
|
+
], function(input, week, config, token) {
|
|
902
|
+
week[token.substr(0, 1)] = toInt(input);
|
|
903
|
+
});
|
|
904
|
+
function localeWeek(mom) {
|
|
905
|
+
return weekOfYear(mom, this._week.dow, this._week.doy).week;
|
|
906
|
+
}
|
|
907
|
+
var defaultLocaleWeek = {
|
|
908
|
+
dow: 0,
|
|
909
|
+
doy: 6
|
|
910
|
+
};
|
|
911
|
+
function localeFirstDayOfWeek() {
|
|
912
|
+
return this._week.dow;
|
|
913
|
+
}
|
|
914
|
+
function localeFirstDayOfYear() {
|
|
915
|
+
return this._week.doy;
|
|
916
|
+
}
|
|
917
|
+
function getSetWeek(input) {
|
|
918
|
+
var week = this.localeData().week(this);
|
|
919
|
+
return input == null ? week : this.add((input - week) * 7, "d");
|
|
920
|
+
}
|
|
921
|
+
function getSetISOWeek(input) {
|
|
922
|
+
var week = weekOfYear(this, 1, 4).week;
|
|
923
|
+
return input == null ? week : this.add((input - week) * 7, "d");
|
|
924
|
+
}
|
|
925
|
+
addFormatToken("d", 0, "do", "day");
|
|
926
|
+
addFormatToken("dd", 0, 0, function(format) {
|
|
927
|
+
return this.localeData().weekdaysMin(this, format);
|
|
928
|
+
});
|
|
929
|
+
addFormatToken("ddd", 0, 0, function(format) {
|
|
930
|
+
return this.localeData().weekdaysShort(this, format);
|
|
931
|
+
});
|
|
932
|
+
addFormatToken("dddd", 0, 0, function(format) {
|
|
933
|
+
return this.localeData().weekdays(this, format);
|
|
934
|
+
});
|
|
935
|
+
addFormatToken("e", 0, 0, "weekday");
|
|
936
|
+
addFormatToken("E", 0, 0, "isoWeekday");
|
|
937
|
+
addRegexToken("d", match1to2);
|
|
938
|
+
addRegexToken("e", match1to2);
|
|
939
|
+
addRegexToken("E", match1to2);
|
|
940
|
+
addRegexToken("dd", function(isStrict, locale) {
|
|
941
|
+
return locale.weekdaysMinRegex(isStrict);
|
|
942
|
+
});
|
|
943
|
+
addRegexToken("ddd", function(isStrict, locale) {
|
|
944
|
+
return locale.weekdaysShortRegex(isStrict);
|
|
945
|
+
});
|
|
946
|
+
addRegexToken("dddd", function(isStrict, locale) {
|
|
947
|
+
return locale.weekdaysRegex(isStrict);
|
|
948
|
+
});
|
|
949
|
+
addWeekParseToken([
|
|
950
|
+
"dd",
|
|
951
|
+
"ddd",
|
|
952
|
+
"dddd"
|
|
953
|
+
], function(input, week, config, token) {
|
|
954
|
+
var weekday = config._locale.weekdaysParse(input, token, config._strict);
|
|
955
|
+
if (weekday != null) week.d = weekday;
|
|
956
|
+
else getParsingFlags(config).invalidWeekday = input;
|
|
957
|
+
});
|
|
958
|
+
addWeekParseToken([
|
|
959
|
+
"d",
|
|
960
|
+
"e",
|
|
961
|
+
"E"
|
|
962
|
+
], function(input, week, config, token) {
|
|
963
|
+
week[token] = toInt(input);
|
|
964
|
+
});
|
|
965
|
+
function parseWeekday(input, locale) {
|
|
966
|
+
if (typeof input !== "string") return input;
|
|
967
|
+
if (!isNaN(input)) return parseInt(input, 10);
|
|
968
|
+
input = locale.weekdaysParse(input);
|
|
969
|
+
if (typeof input === "number") return input;
|
|
970
|
+
return null;
|
|
971
|
+
}
|
|
972
|
+
function parseIsoWeekday(input, locale) {
|
|
973
|
+
if (typeof input === "string") return locale.weekdaysParse(input) % 7 || 7;
|
|
974
|
+
return isNaN(input) ? null : input;
|
|
975
|
+
}
|
|
976
|
+
function shiftWeekdays(ws, n) {
|
|
977
|
+
return ws.slice(n, 7).concat(ws.slice(0, n));
|
|
978
|
+
}
|
|
979
|
+
var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");
|
|
980
|
+
var defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");
|
|
981
|
+
var defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_");
|
|
982
|
+
var defaultWeekdaysRegex = matchWord;
|
|
983
|
+
var defaultWeekdaysShortRegex = matchWord;
|
|
984
|
+
var defaultWeekdaysMinRegex = matchWord;
|
|
985
|
+
function localeWeekdays(m, format) {
|
|
986
|
+
var weekdays = isArray(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format) ? "format" : "standalone"];
|
|
987
|
+
return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
|
|
988
|
+
}
|
|
989
|
+
function localeWeekdaysShort(m) {
|
|
990
|
+
return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;
|
|
991
|
+
}
|
|
992
|
+
function localeWeekdaysMin(m) {
|
|
993
|
+
return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
|
994
|
+
}
|
|
995
|
+
function handleStrictParse$1(weekdayName, format, strict) {
|
|
996
|
+
var i;
|
|
997
|
+
var ii;
|
|
998
|
+
var mom;
|
|
999
|
+
var llc = weekdayName.toLocaleLowerCase();
|
|
1000
|
+
if (!this._weekdaysParse) {
|
|
1001
|
+
this._weekdaysParse = [];
|
|
1002
|
+
this._shortWeekdaysParse = [];
|
|
1003
|
+
this._minWeekdaysParse = [];
|
|
1004
|
+
for (i = 0; i < 7; ++i) {
|
|
1005
|
+
mom = createUTC([2e3, 1]).day(i);
|
|
1006
|
+
this._minWeekdaysParse[i] = this.weekdaysMin(mom, "").toLocaleLowerCase();
|
|
1007
|
+
this._shortWeekdaysParse[i] = this.weekdaysShort(mom, "").toLocaleLowerCase();
|
|
1008
|
+
this._weekdaysParse[i] = this.weekdays(mom, "").toLocaleLowerCase();
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
if (strict) if (format === "dddd") {
|
|
1012
|
+
ii = indexOf.call(this._weekdaysParse, llc);
|
|
1013
|
+
return ii !== -1 ? ii : null;
|
|
1014
|
+
} else if (format === "ddd") {
|
|
1015
|
+
ii = indexOf.call(this._shortWeekdaysParse, llc);
|
|
1016
|
+
return ii !== -1 ? ii : null;
|
|
1017
|
+
} else {
|
|
1018
|
+
ii = indexOf.call(this._minWeekdaysParse, llc);
|
|
1019
|
+
return ii !== -1 ? ii : null;
|
|
1020
|
+
}
|
|
1021
|
+
else if (format === "dddd") {
|
|
1022
|
+
ii = indexOf.call(this._weekdaysParse, llc);
|
|
1023
|
+
if (ii !== -1) return ii;
|
|
1024
|
+
ii = indexOf.call(this._shortWeekdaysParse, llc);
|
|
1025
|
+
if (ii !== -1) return ii;
|
|
1026
|
+
ii = indexOf.call(this._minWeekdaysParse, llc);
|
|
1027
|
+
return ii !== -1 ? ii : null;
|
|
1028
|
+
} else if (format === "ddd") {
|
|
1029
|
+
ii = indexOf.call(this._shortWeekdaysParse, llc);
|
|
1030
|
+
if (ii !== -1) return ii;
|
|
1031
|
+
ii = indexOf.call(this._weekdaysParse, llc);
|
|
1032
|
+
if (ii !== -1) return ii;
|
|
1033
|
+
ii = indexOf.call(this._minWeekdaysParse, llc);
|
|
1034
|
+
return ii !== -1 ? ii : null;
|
|
1035
|
+
} else {
|
|
1036
|
+
ii = indexOf.call(this._minWeekdaysParse, llc);
|
|
1037
|
+
if (ii !== -1) return ii;
|
|
1038
|
+
ii = indexOf.call(this._weekdaysParse, llc);
|
|
1039
|
+
if (ii !== -1) return ii;
|
|
1040
|
+
ii = indexOf.call(this._shortWeekdaysParse, llc);
|
|
1041
|
+
return ii !== -1 ? ii : null;
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
function localeWeekdaysParse(weekdayName, format, strict) {
|
|
1045
|
+
var i;
|
|
1046
|
+
var mom;
|
|
1047
|
+
var regex;
|
|
1048
|
+
if (this._weekdaysParseExact) return handleStrictParse$1.call(this, weekdayName, format, strict);
|
|
1049
|
+
if (!this._weekdaysParse) {
|
|
1050
|
+
this._weekdaysParse = [];
|
|
1051
|
+
this._minWeekdaysParse = [];
|
|
1052
|
+
this._shortWeekdaysParse = [];
|
|
1053
|
+
this._fullWeekdaysParse = [];
|
|
1054
|
+
}
|
|
1055
|
+
for (i = 0; i < 7; i++) {
|
|
1056
|
+
mom = createUTC([2e3, 1]).day(i);
|
|
1057
|
+
if (strict && !this._fullWeekdaysParse[i]) {
|
|
1058
|
+
this._fullWeekdaysParse[i] = new RegExp("^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", "i");
|
|
1059
|
+
this._shortWeekdaysParse[i] = new RegExp("^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", "i");
|
|
1060
|
+
this._minWeekdaysParse[i] = new RegExp("^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", "i");
|
|
1061
|
+
}
|
|
1062
|
+
if (!this._weekdaysParse[i]) {
|
|
1063
|
+
regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, "");
|
|
1064
|
+
this._weekdaysParse[i] = new RegExp(regex.replace(".", ""), "i");
|
|
1065
|
+
}
|
|
1066
|
+
if (strict && format === "dddd" && this._fullWeekdaysParse[i].test(weekdayName)) return i;
|
|
1067
|
+
else if (strict && format === "ddd" && this._shortWeekdaysParse[i].test(weekdayName)) return i;
|
|
1068
|
+
else if (strict && format === "dd" && this._minWeekdaysParse[i].test(weekdayName)) return i;
|
|
1069
|
+
else if (!strict && this._weekdaysParse[i].test(weekdayName)) return i;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
function getSetDayOfWeek(input) {
|
|
1073
|
+
if (!this.isValid()) return input != null ? this : NaN;
|
|
1074
|
+
var day = get(this, "Day");
|
|
1075
|
+
if (input != null) {
|
|
1076
|
+
input = parseWeekday(input, this.localeData());
|
|
1077
|
+
return this.add(input - day, "d");
|
|
1078
|
+
} else return day;
|
|
1079
|
+
}
|
|
1080
|
+
function getSetLocaleDayOfWeek(input) {
|
|
1081
|
+
if (!this.isValid()) return input != null ? this : NaN;
|
|
1082
|
+
var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
|
1083
|
+
return input == null ? weekday : this.add(input - weekday, "d");
|
|
1084
|
+
}
|
|
1085
|
+
function getSetISODayOfWeek(input) {
|
|
1086
|
+
if (!this.isValid()) return input != null ? this : NaN;
|
|
1087
|
+
if (input != null) {
|
|
1088
|
+
var weekday = parseIsoWeekday(input, this.localeData());
|
|
1089
|
+
return this.day(this.day() % 7 ? weekday : weekday - 7);
|
|
1090
|
+
} else return this.day() || 7;
|
|
1091
|
+
}
|
|
1092
|
+
function weekdaysRegex(isStrict) {
|
|
1093
|
+
if (this._weekdaysParseExact) {
|
|
1094
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) computeWeekdaysParse.call(this);
|
|
1095
|
+
if (isStrict) return this._weekdaysStrictRegex;
|
|
1096
|
+
else return this._weekdaysRegex;
|
|
1097
|
+
} else {
|
|
1098
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) this._weekdaysRegex = defaultWeekdaysRegex;
|
|
1099
|
+
return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
function weekdaysShortRegex(isStrict) {
|
|
1103
|
+
if (this._weekdaysParseExact) {
|
|
1104
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) computeWeekdaysParse.call(this);
|
|
1105
|
+
if (isStrict) return this._weekdaysShortStrictRegex;
|
|
1106
|
+
else return this._weekdaysShortRegex;
|
|
1107
|
+
} else {
|
|
1108
|
+
if (!hasOwnProp(this, "_weekdaysShortRegex")) this._weekdaysShortRegex = defaultWeekdaysShortRegex;
|
|
1109
|
+
return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
function weekdaysMinRegex(isStrict) {
|
|
1113
|
+
if (this._weekdaysParseExact) {
|
|
1114
|
+
if (!hasOwnProp(this, "_weekdaysRegex")) computeWeekdaysParse.call(this);
|
|
1115
|
+
if (isStrict) return this._weekdaysMinStrictRegex;
|
|
1116
|
+
else return this._weekdaysMinRegex;
|
|
1117
|
+
} else {
|
|
1118
|
+
if (!hasOwnProp(this, "_weekdaysMinRegex")) this._weekdaysMinRegex = defaultWeekdaysMinRegex;
|
|
1119
|
+
return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
function computeWeekdaysParse() {
|
|
1123
|
+
function cmpLenRev(a, b) {
|
|
1124
|
+
return b.length - a.length;
|
|
1125
|
+
}
|
|
1126
|
+
var minPieces = [];
|
|
1127
|
+
var shortPieces = [];
|
|
1128
|
+
var longPieces = [];
|
|
1129
|
+
var mixedPieces = [];
|
|
1130
|
+
var i;
|
|
1131
|
+
var mom;
|
|
1132
|
+
var minp;
|
|
1133
|
+
var shortp;
|
|
1134
|
+
var longp;
|
|
1135
|
+
for (i = 0; i < 7; i++) {
|
|
1136
|
+
mom = createUTC([2e3, 1]).day(i);
|
|
1137
|
+
minp = regexEscape(this.weekdaysMin(mom, ""));
|
|
1138
|
+
shortp = regexEscape(this.weekdaysShort(mom, ""));
|
|
1139
|
+
longp = regexEscape(this.weekdays(mom, ""));
|
|
1140
|
+
minPieces.push(minp);
|
|
1141
|
+
shortPieces.push(shortp);
|
|
1142
|
+
longPieces.push(longp);
|
|
1143
|
+
mixedPieces.push(minp);
|
|
1144
|
+
mixedPieces.push(shortp);
|
|
1145
|
+
mixedPieces.push(longp);
|
|
1146
|
+
}
|
|
1147
|
+
minPieces.sort(cmpLenRev);
|
|
1148
|
+
shortPieces.sort(cmpLenRev);
|
|
1149
|
+
longPieces.sort(cmpLenRev);
|
|
1150
|
+
mixedPieces.sort(cmpLenRev);
|
|
1151
|
+
this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
1152
|
+
this._weekdaysShortRegex = this._weekdaysRegex;
|
|
1153
|
+
this._weekdaysMinRegex = this._weekdaysRegex;
|
|
1154
|
+
this._weekdaysStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i");
|
|
1155
|
+
this._weekdaysShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i");
|
|
1156
|
+
this._weekdaysMinStrictRegex = new RegExp("^(" + minPieces.join("|") + ")", "i");
|
|
1157
|
+
}
|
|
1158
|
+
function hFormat() {
|
|
1159
|
+
return this.hours() % 12 || 12;
|
|
1160
|
+
}
|
|
1161
|
+
function kFormat() {
|
|
1162
|
+
return this.hours() || 24;
|
|
1163
|
+
}
|
|
1164
|
+
addFormatToken("H", ["HH", 2], 0, "hour");
|
|
1165
|
+
addFormatToken("h", ["hh", 2], 0, hFormat);
|
|
1166
|
+
addFormatToken("k", ["kk", 2], 0, kFormat);
|
|
1167
|
+
addFormatToken("hmm", 0, 0, function() {
|
|
1168
|
+
return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2);
|
|
1169
|
+
});
|
|
1170
|
+
addFormatToken("hmmss", 0, 0, function() {
|
|
1171
|
+
return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
|
|
1172
|
+
});
|
|
1173
|
+
addFormatToken("Hmm", 0, 0, function() {
|
|
1174
|
+
return "" + this.hours() + zeroFill(this.minutes(), 2);
|
|
1175
|
+
});
|
|
1176
|
+
addFormatToken("Hmmss", 0, 0, function() {
|
|
1177
|
+
return "" + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
|
|
1178
|
+
});
|
|
1179
|
+
function meridiem(token, lowercase) {
|
|
1180
|
+
addFormatToken(token, 0, 0, function() {
|
|
1181
|
+
return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
meridiem("a", true);
|
|
1185
|
+
meridiem("A", false);
|
|
1186
|
+
function matchMeridiem(isStrict, locale) {
|
|
1187
|
+
return locale._meridiemParse;
|
|
1188
|
+
}
|
|
1189
|
+
addRegexToken("a", matchMeridiem);
|
|
1190
|
+
addRegexToken("A", matchMeridiem);
|
|
1191
|
+
addRegexToken("H", match1to2, match1to2HasZero);
|
|
1192
|
+
addRegexToken("h", match1to2, match1to2NoLeadingZero);
|
|
1193
|
+
addRegexToken("k", match1to2, match1to2NoLeadingZero);
|
|
1194
|
+
addRegexToken("HH", match1to2, match2);
|
|
1195
|
+
addRegexToken("hh", match1to2, match2);
|
|
1196
|
+
addRegexToken("kk", match1to2, match2);
|
|
1197
|
+
addRegexToken("hmm", match3to4);
|
|
1198
|
+
addRegexToken("hmmss", match5to6);
|
|
1199
|
+
addRegexToken("Hmm", match3to4);
|
|
1200
|
+
addRegexToken("Hmmss", match5to6);
|
|
1201
|
+
addParseToken(["H", "HH"], HOUR);
|
|
1202
|
+
addParseToken(["k", "kk"], function(input, array, config) {
|
|
1203
|
+
var kInput = toInt(input);
|
|
1204
|
+
array[HOUR] = kInput === 24 ? 0 : kInput;
|
|
1205
|
+
});
|
|
1206
|
+
addParseToken(["a", "A"], function(input, array, config) {
|
|
1207
|
+
config._isPm = config._locale.isPM(input);
|
|
1208
|
+
config._meridiem = input;
|
|
1209
|
+
});
|
|
1210
|
+
addParseToken(["h", "hh"], function(input, array, config) {
|
|
1211
|
+
array[HOUR] = toInt(input);
|
|
1212
|
+
getParsingFlags(config).bigHour = true;
|
|
1213
|
+
});
|
|
1214
|
+
addParseToken("hmm", function(input, array, config) {
|
|
1215
|
+
var pos = input.length - 2;
|
|
1216
|
+
array[HOUR] = toInt(input.substr(0, pos));
|
|
1217
|
+
array[MINUTE] = toInt(input.substr(pos));
|
|
1218
|
+
getParsingFlags(config).bigHour = true;
|
|
1219
|
+
});
|
|
1220
|
+
addParseToken("hmmss", function(input, array, config) {
|
|
1221
|
+
var pos1 = input.length - 4;
|
|
1222
|
+
var pos2 = input.length - 2;
|
|
1223
|
+
array[HOUR] = toInt(input.substr(0, pos1));
|
|
1224
|
+
array[MINUTE] = toInt(input.substr(pos1, 2));
|
|
1225
|
+
array[SECOND] = toInt(input.substr(pos2));
|
|
1226
|
+
getParsingFlags(config).bigHour = true;
|
|
1227
|
+
});
|
|
1228
|
+
addParseToken("Hmm", function(input, array, config) {
|
|
1229
|
+
var pos = input.length - 2;
|
|
1230
|
+
array[HOUR] = toInt(input.substr(0, pos));
|
|
1231
|
+
array[MINUTE] = toInt(input.substr(pos));
|
|
1232
|
+
});
|
|
1233
|
+
addParseToken("Hmmss", function(input, array, config) {
|
|
1234
|
+
var pos1 = input.length - 4;
|
|
1235
|
+
var pos2 = input.length - 2;
|
|
1236
|
+
array[HOUR] = toInt(input.substr(0, pos1));
|
|
1237
|
+
array[MINUTE] = toInt(input.substr(pos1, 2));
|
|
1238
|
+
array[SECOND] = toInt(input.substr(pos2));
|
|
1239
|
+
});
|
|
1240
|
+
function localeIsPM(input) {
|
|
1241
|
+
return (input + "").toLowerCase().charAt(0) === "p";
|
|
1242
|
+
}
|
|
1243
|
+
var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
|
|
1244
|
+
var getSetHour = makeGetSet("Hours", true);
|
|
1245
|
+
function localeMeridiem(hours, minutes, isLower) {
|
|
1246
|
+
if (hours > 11) return isLower ? "pm" : "PM";
|
|
1247
|
+
else return isLower ? "am" : "AM";
|
|
1248
|
+
}
|
|
1249
|
+
var baseConfig = {
|
|
1250
|
+
calendar: defaultCalendar,
|
|
1251
|
+
longDateFormat: defaultLongDateFormat,
|
|
1252
|
+
invalidDate: defaultInvalidDate,
|
|
1253
|
+
ordinal: defaultOrdinal,
|
|
1254
|
+
dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
|
|
1255
|
+
relativeTime: defaultRelativeTime,
|
|
1256
|
+
months: defaultLocaleMonths,
|
|
1257
|
+
monthsShort: defaultLocaleMonthsShort,
|
|
1258
|
+
week: defaultLocaleWeek,
|
|
1259
|
+
weekdays: defaultLocaleWeekdays,
|
|
1260
|
+
weekdaysMin: defaultLocaleWeekdaysMin,
|
|
1261
|
+
weekdaysShort: defaultLocaleWeekdaysShort,
|
|
1262
|
+
meridiemParse: defaultLocaleMeridiemParse
|
|
1263
|
+
};
|
|
1264
|
+
var locales = {};
|
|
1265
|
+
var localeFamilies = {};
|
|
1266
|
+
var globalLocale;
|
|
1267
|
+
function commonPrefix(arr1, arr2) {
|
|
1268
|
+
var i;
|
|
1269
|
+
var minl = Math.min(arr1.length, arr2.length);
|
|
1270
|
+
for (i = 0; i < minl; i += 1) if (arr1[i] !== arr2[i]) return i;
|
|
1271
|
+
return minl;
|
|
1272
|
+
}
|
|
1273
|
+
function normalizeLocale(key) {
|
|
1274
|
+
return key ? key.toLowerCase().replace("_", "-") : key;
|
|
1275
|
+
}
|
|
1276
|
+
function chooseLocale(names) {
|
|
1277
|
+
var i = 0;
|
|
1278
|
+
var j;
|
|
1279
|
+
var next;
|
|
1280
|
+
var locale;
|
|
1281
|
+
var split;
|
|
1282
|
+
while (i < names.length) {
|
|
1283
|
+
split = normalizeLocale(names[i]).split("-");
|
|
1284
|
+
j = split.length;
|
|
1285
|
+
next = normalizeLocale(names[i + 1]);
|
|
1286
|
+
next = next ? next.split("-") : null;
|
|
1287
|
+
while (j > 0) {
|
|
1288
|
+
locale = loadLocale(split.slice(0, j).join("-"));
|
|
1289
|
+
if (locale) return locale;
|
|
1290
|
+
if (next && next.length >= j && commonPrefix(split, next) >= j - 1) break;
|
|
1291
|
+
j--;
|
|
1292
|
+
}
|
|
1293
|
+
i++;
|
|
1294
|
+
}
|
|
1295
|
+
return globalLocale;
|
|
1296
|
+
}
|
|
1297
|
+
function isLocaleNameSane(name) {
|
|
1298
|
+
return !!(name && name.match("^[^/\\\\]*$"));
|
|
1299
|
+
}
|
|
1300
|
+
function loadLocale(name) {
|
|
1301
|
+
var oldLocale = null;
|
|
1302
|
+
var aliasedRequire;
|
|
1303
|
+
if (locales[name] === void 0 && typeof module !== "undefined" && module && module.exports && isLocaleNameSane(name)) try {
|
|
1304
|
+
oldLocale = globalLocale._abbr;
|
|
1305
|
+
aliasedRequire = __require;
|
|
1306
|
+
aliasedRequire("./locale/" + name);
|
|
1307
|
+
getSetGlobalLocale(oldLocale);
|
|
1308
|
+
} catch (e) {
|
|
1309
|
+
locales[name] = null;
|
|
1310
|
+
}
|
|
1311
|
+
return locales[name];
|
|
1312
|
+
}
|
|
1313
|
+
function getSetGlobalLocale(key, values) {
|
|
1314
|
+
var data;
|
|
1315
|
+
if (key) {
|
|
1316
|
+
if (isUndefined(values)) data = getLocale(key);
|
|
1317
|
+
else data = defineLocale(key, values);
|
|
1318
|
+
if (data) globalLocale = data;
|
|
1319
|
+
else if (typeof console !== "undefined" && console.warn) console.warn("Locale " + key + " not found. Did you forget to load it?");
|
|
1320
|
+
}
|
|
1321
|
+
return globalLocale._abbr;
|
|
1322
|
+
}
|
|
1323
|
+
function defineLocale(name, config) {
|
|
1324
|
+
if (config !== null) {
|
|
1325
|
+
var locale;
|
|
1326
|
+
var parentConfig = baseConfig;
|
|
1327
|
+
config.abbr = name;
|
|
1328
|
+
if (locales[name] != null) {
|
|
1329
|
+
deprecateSimple("defineLocaleOverride", "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");
|
|
1330
|
+
parentConfig = locales[name]._config;
|
|
1331
|
+
} else if (config.parentLocale != null) if (locales[config.parentLocale] != null) parentConfig = locales[config.parentLocale]._config;
|
|
1332
|
+
else {
|
|
1333
|
+
locale = loadLocale(config.parentLocale);
|
|
1334
|
+
if (locale != null) parentConfig = locale._config;
|
|
1335
|
+
else {
|
|
1336
|
+
if (!localeFamilies[config.parentLocale]) localeFamilies[config.parentLocale] = [];
|
|
1337
|
+
localeFamilies[config.parentLocale].push({
|
|
1338
|
+
name,
|
|
1339
|
+
config
|
|
1340
|
+
});
|
|
1341
|
+
return null;
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
locales[name] = new Locale(mergeConfigs(parentConfig, config));
|
|
1345
|
+
if (localeFamilies[name]) localeFamilies[name].forEach(function(x) {
|
|
1346
|
+
defineLocale(x.name, x.config);
|
|
1347
|
+
});
|
|
1348
|
+
getSetGlobalLocale(name);
|
|
1349
|
+
return locales[name];
|
|
1350
|
+
} else {
|
|
1351
|
+
delete locales[name];
|
|
1352
|
+
return null;
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
function updateLocale(name, config) {
|
|
1356
|
+
if (config != null) {
|
|
1357
|
+
var locale;
|
|
1358
|
+
var tmpLocale;
|
|
1359
|
+
var parentConfig = baseConfig;
|
|
1360
|
+
if (locales[name] != null && locales[name].parentLocale != null) locales[name].set(mergeConfigs(locales[name]._config, config));
|
|
1361
|
+
else {
|
|
1362
|
+
tmpLocale = loadLocale(name);
|
|
1363
|
+
if (tmpLocale != null) parentConfig = tmpLocale._config;
|
|
1364
|
+
config = mergeConfigs(parentConfig, config);
|
|
1365
|
+
if (tmpLocale == null) config.abbr = name;
|
|
1366
|
+
locale = new Locale(config);
|
|
1367
|
+
locale.parentLocale = locales[name];
|
|
1368
|
+
locales[name] = locale;
|
|
1369
|
+
}
|
|
1370
|
+
getSetGlobalLocale(name);
|
|
1371
|
+
} else if (locales[name] != null) {
|
|
1372
|
+
if (locales[name].parentLocale != null) {
|
|
1373
|
+
locales[name] = locales[name].parentLocale;
|
|
1374
|
+
if (name === getSetGlobalLocale()) getSetGlobalLocale(name);
|
|
1375
|
+
} else if (locales[name] != null) delete locales[name];
|
|
1376
|
+
}
|
|
1377
|
+
return locales[name];
|
|
1378
|
+
}
|
|
1379
|
+
function getLocale(key) {
|
|
1380
|
+
var locale;
|
|
1381
|
+
if (key && key._locale && key._locale._abbr) key = key._locale._abbr;
|
|
1382
|
+
if (!key) return globalLocale;
|
|
1383
|
+
if (!isArray(key)) {
|
|
1384
|
+
locale = loadLocale(key);
|
|
1385
|
+
if (locale) return locale;
|
|
1386
|
+
key = [key];
|
|
1387
|
+
}
|
|
1388
|
+
return chooseLocale(key);
|
|
1389
|
+
}
|
|
1390
|
+
function listLocales() {
|
|
1391
|
+
return keys(locales);
|
|
1392
|
+
}
|
|
1393
|
+
function checkOverflow(m) {
|
|
1394
|
+
var overflow;
|
|
1395
|
+
var a = m._a;
|
|
1396
|
+
if (a && getParsingFlags(m).overflow === -2) {
|
|
1397
|
+
overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;
|
|
1398
|
+
if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) overflow = DATE;
|
|
1399
|
+
if (getParsingFlags(m)._overflowWeeks && overflow === -1) overflow = WEEK;
|
|
1400
|
+
if (getParsingFlags(m)._overflowWeekday && overflow === -1) overflow = WEEKDAY;
|
|
1401
|
+
getParsingFlags(m).overflow = overflow;
|
|
1402
|
+
}
|
|
1403
|
+
return m;
|
|
1404
|
+
}
|
|
1405
|
+
var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
|
|
1406
|
+
var basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/;
|
|
1407
|
+
var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
|
|
1408
|
+
var isoDates = [
|
|
1409
|
+
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
1410
|
+
["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
|
1411
|
+
["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
|
1412
|
+
[
|
|
1413
|
+
"GGGG-[W]WW",
|
|
1414
|
+
/\d{4}-W\d\d/,
|
|
1415
|
+
false
|
|
1416
|
+
],
|
|
1417
|
+
["YYYY-DDD", /\d{4}-\d{3}/],
|
|
1418
|
+
[
|
|
1419
|
+
"YYYY-MM",
|
|
1420
|
+
/\d{4}-\d\d/,
|
|
1421
|
+
false
|
|
1422
|
+
],
|
|
1423
|
+
["YYYYYYMMDD", /[+-]\d{10}/],
|
|
1424
|
+
["YYYYMMDD", /\d{8}/],
|
|
1425
|
+
["GGGG[W]WWE", /\d{4}W\d{3}/],
|
|
1426
|
+
[
|
|
1427
|
+
"GGGG[W]WW",
|
|
1428
|
+
/\d{4}W\d{2}/,
|
|
1429
|
+
false
|
|
1430
|
+
],
|
|
1431
|
+
["YYYYDDD", /\d{7}/],
|
|
1432
|
+
[
|
|
1433
|
+
"YYYYMM",
|
|
1434
|
+
/\d{6}/,
|
|
1435
|
+
false
|
|
1436
|
+
],
|
|
1437
|
+
[
|
|
1438
|
+
"YYYY",
|
|
1439
|
+
/\d{4}/,
|
|
1440
|
+
false
|
|
1441
|
+
]
|
|
1442
|
+
];
|
|
1443
|
+
var isoTimes = [
|
|
1444
|
+
["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
|
|
1445
|
+
["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
|
|
1446
|
+
["HH:mm:ss", /\d\d:\d\d:\d\d/],
|
|
1447
|
+
["HH:mm", /\d\d:\d\d/],
|
|
1448
|
+
["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
|
|
1449
|
+
["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
|
|
1450
|
+
["HHmmss", /\d\d\d\d\d\d/],
|
|
1451
|
+
["HHmm", /\d\d\d\d/],
|
|
1452
|
+
["HH", /\d\d/]
|
|
1453
|
+
];
|
|
1454
|
+
var aspNetJsonRegex = /^\/?Date\((-?\d+)/i;
|
|
1455
|
+
var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
|
|
1456
|
+
var obsOffsets = {
|
|
1457
|
+
UT: 0,
|
|
1458
|
+
GMT: 0,
|
|
1459
|
+
EDT: -240,
|
|
1460
|
+
EST: -300,
|
|
1461
|
+
CDT: -300,
|
|
1462
|
+
CST: -360,
|
|
1463
|
+
MDT: -360,
|
|
1464
|
+
MST: -420,
|
|
1465
|
+
PDT: -420,
|
|
1466
|
+
PST: -480
|
|
1467
|
+
};
|
|
1468
|
+
function configFromISO(config) {
|
|
1469
|
+
var i;
|
|
1470
|
+
var l;
|
|
1471
|
+
var string = config._i;
|
|
1472
|
+
var match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string);
|
|
1473
|
+
var allowTime;
|
|
1474
|
+
var dateFormat;
|
|
1475
|
+
var timeFormat;
|
|
1476
|
+
var tzFormat;
|
|
1477
|
+
var isoDatesLen = isoDates.length;
|
|
1478
|
+
var isoTimesLen = isoTimes.length;
|
|
1479
|
+
if (match) {
|
|
1480
|
+
getParsingFlags(config).iso = true;
|
|
1481
|
+
for (i = 0, l = isoDatesLen; i < l; i++) if (isoDates[i][1].exec(match[1])) {
|
|
1482
|
+
dateFormat = isoDates[i][0];
|
|
1483
|
+
allowTime = isoDates[i][2] !== false;
|
|
1484
|
+
break;
|
|
1485
|
+
}
|
|
1486
|
+
if (dateFormat == null) {
|
|
1487
|
+
config._isValid = false;
|
|
1488
|
+
return;
|
|
1489
|
+
}
|
|
1490
|
+
if (match[3]) {
|
|
1491
|
+
for (i = 0, l = isoTimesLen; i < l; i++) if (isoTimes[i][1].exec(match[3])) {
|
|
1492
|
+
timeFormat = (match[2] || " ") + isoTimes[i][0];
|
|
1493
|
+
break;
|
|
1494
|
+
}
|
|
1495
|
+
if (timeFormat == null) {
|
|
1496
|
+
config._isValid = false;
|
|
1497
|
+
return;
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
if (!allowTime && timeFormat != null) {
|
|
1501
|
+
config._isValid = false;
|
|
1502
|
+
return;
|
|
1503
|
+
}
|
|
1504
|
+
if (match[4]) if (tzRegex.exec(match[4])) tzFormat = "Z";
|
|
1505
|
+
else {
|
|
1506
|
+
config._isValid = false;
|
|
1507
|
+
return;
|
|
1508
|
+
}
|
|
1509
|
+
config._f = dateFormat + (timeFormat || "") + (tzFormat || "");
|
|
1510
|
+
configFromStringAndFormat(config);
|
|
1511
|
+
} else config._isValid = false;
|
|
1512
|
+
}
|
|
1513
|
+
function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
|
|
1514
|
+
var result = [
|
|
1515
|
+
untruncateYear(yearStr),
|
|
1516
|
+
defaultLocaleMonthsShort.indexOf(monthStr),
|
|
1517
|
+
parseInt(dayStr, 10),
|
|
1518
|
+
parseInt(hourStr, 10),
|
|
1519
|
+
parseInt(minuteStr, 10)
|
|
1520
|
+
];
|
|
1521
|
+
if (secondStr) result.push(parseInt(secondStr, 10));
|
|
1522
|
+
return result;
|
|
1523
|
+
}
|
|
1524
|
+
function untruncateYear(yearStr) {
|
|
1525
|
+
var year = parseInt(yearStr, 10);
|
|
1526
|
+
if (year <= 49) return 2e3 + year;
|
|
1527
|
+
else if (year <= 999) return 1900 + year;
|
|
1528
|
+
return year;
|
|
1529
|
+
}
|
|
1530
|
+
function preprocessRFC2822(s) {
|
|
1531
|
+
return s.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
1532
|
+
}
|
|
1533
|
+
function checkWeekday(weekdayStr, parsedInput, config) {
|
|
1534
|
+
if (weekdayStr) {
|
|
1535
|
+
if (defaultLocaleWeekdaysShort.indexOf(weekdayStr) !== new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay()) {
|
|
1536
|
+
getParsingFlags(config).weekdayMismatch = true;
|
|
1537
|
+
config._isValid = false;
|
|
1538
|
+
return false;
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
return true;
|
|
1542
|
+
}
|
|
1543
|
+
function calculateOffset(obsOffset, militaryOffset, numOffset) {
|
|
1544
|
+
if (obsOffset) return obsOffsets[obsOffset];
|
|
1545
|
+
else if (militaryOffset) return 0;
|
|
1546
|
+
else {
|
|
1547
|
+
var hm = parseInt(numOffset, 10);
|
|
1548
|
+
var m = hm % 100;
|
|
1549
|
+
return (hm - m) / 100 * 60 + m;
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
function configFromRFC2822(config) {
|
|
1553
|
+
var match = rfc2822.exec(preprocessRFC2822(config._i));
|
|
1554
|
+
var parsedArray;
|
|
1555
|
+
if (match) {
|
|
1556
|
+
parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
|
|
1557
|
+
if (!checkWeekday(match[1], parsedArray, config)) return;
|
|
1558
|
+
config._a = parsedArray;
|
|
1559
|
+
config._tzm = calculateOffset(match[8], match[9], match[10]);
|
|
1560
|
+
config._d = createUTCDate.apply(null, config._a);
|
|
1561
|
+
config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
|
|
1562
|
+
getParsingFlags(config).rfc2822 = true;
|
|
1563
|
+
} else config._isValid = false;
|
|
1564
|
+
}
|
|
1565
|
+
function configFromString(config) {
|
|
1566
|
+
var matched = aspNetJsonRegex.exec(config._i);
|
|
1567
|
+
if (matched !== null) {
|
|
1568
|
+
config._d = /* @__PURE__ */ new Date(+matched[1]);
|
|
1569
|
+
return;
|
|
1570
|
+
}
|
|
1571
|
+
configFromISO(config);
|
|
1572
|
+
if (config._isValid === false) delete config._isValid;
|
|
1573
|
+
else return;
|
|
1574
|
+
configFromRFC2822(config);
|
|
1575
|
+
if (config._isValid === false) delete config._isValid;
|
|
1576
|
+
else return;
|
|
1577
|
+
if (config._strict) config._isValid = false;
|
|
1578
|
+
else hooks.createFromInputFallback(config);
|
|
1579
|
+
}
|
|
1580
|
+
hooks.createFromInputFallback = deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function(config) {
|
|
1581
|
+
config._d = /* @__PURE__ */ new Date(config._i + (config._useUTC ? " UTC" : ""));
|
|
1582
|
+
});
|
|
1583
|
+
function defaults(a, b, c) {
|
|
1584
|
+
if (a != null) return a;
|
|
1585
|
+
if (b != null) return b;
|
|
1586
|
+
return c;
|
|
1587
|
+
}
|
|
1588
|
+
function currentDateArray(config) {
|
|
1589
|
+
var nowValue = new Date(hooks.now());
|
|
1590
|
+
if (config._useUTC) return [
|
|
1591
|
+
nowValue.getUTCFullYear(),
|
|
1592
|
+
nowValue.getUTCMonth(),
|
|
1593
|
+
nowValue.getUTCDate()
|
|
1594
|
+
];
|
|
1595
|
+
return [
|
|
1596
|
+
nowValue.getFullYear(),
|
|
1597
|
+
nowValue.getMonth(),
|
|
1598
|
+
nowValue.getDate()
|
|
1599
|
+
];
|
|
1600
|
+
}
|
|
1601
|
+
function configFromArray(config) {
|
|
1602
|
+
var i;
|
|
1603
|
+
var date;
|
|
1604
|
+
var input = [];
|
|
1605
|
+
var currentDate;
|
|
1606
|
+
var expectedWeekday;
|
|
1607
|
+
var yearToUse;
|
|
1608
|
+
if (config._d) return;
|
|
1609
|
+
currentDate = currentDateArray(config);
|
|
1610
|
+
if (config._w && config._a[DATE] == null && config._a[MONTH] == null) dayOfYearFromWeekInfo(config);
|
|
1611
|
+
if (config._dayOfYear != null) {
|
|
1612
|
+
yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
|
|
1613
|
+
if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) getParsingFlags(config)._overflowDayOfYear = true;
|
|
1614
|
+
date = createUTCDate(yearToUse, 0, config._dayOfYear);
|
|
1615
|
+
config._a[MONTH] = date.getUTCMonth();
|
|
1616
|
+
config._a[DATE] = date.getUTCDate();
|
|
1617
|
+
}
|
|
1618
|
+
for (i = 0; i < 3 && config._a[i] == null; ++i) config._a[i] = input[i] = currentDate[i];
|
|
1619
|
+
for (; i < 7; i++) config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];
|
|
1620
|
+
if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {
|
|
1621
|
+
config._nextDay = true;
|
|
1622
|
+
config._a[HOUR] = 0;
|
|
1623
|
+
}
|
|
1624
|
+
config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
|
|
1625
|
+
expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
|
|
1626
|
+
if (config._tzm != null) config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
|
|
1627
|
+
if (config._nextDay) config._a[HOUR] = 24;
|
|
1628
|
+
if (config._w && typeof config._w.d !== "undefined" && config._w.d !== expectedWeekday) getParsingFlags(config).weekdayMismatch = true;
|
|
1629
|
+
}
|
|
1630
|
+
function dayOfYearFromWeekInfo(config) {
|
|
1631
|
+
var w = config._w;
|
|
1632
|
+
var weekYear;
|
|
1633
|
+
var week;
|
|
1634
|
+
var weekday;
|
|
1635
|
+
var dow;
|
|
1636
|
+
var doy;
|
|
1637
|
+
var temp;
|
|
1638
|
+
var weekdayOverflow;
|
|
1639
|
+
var curWeek;
|
|
1640
|
+
if (w.GG != null || w.W != null || w.E != null) {
|
|
1641
|
+
dow = 1;
|
|
1642
|
+
doy = 4;
|
|
1643
|
+
weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
|
|
1644
|
+
week = defaults(w.W, 1);
|
|
1645
|
+
weekday = defaults(w.E, 1);
|
|
1646
|
+
if (weekday < 1 || weekday > 7) weekdayOverflow = true;
|
|
1647
|
+
} else {
|
|
1648
|
+
dow = config._locale._week.dow;
|
|
1649
|
+
doy = config._locale._week.doy;
|
|
1650
|
+
curWeek = weekOfYear(createLocal(), dow, doy);
|
|
1651
|
+
weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
|
|
1652
|
+
week = defaults(w.w, curWeek.week);
|
|
1653
|
+
if (w.d != null) {
|
|
1654
|
+
weekday = w.d;
|
|
1655
|
+
if (weekday < 0 || weekday > 6) weekdayOverflow = true;
|
|
1656
|
+
} else if (w.e != null) {
|
|
1657
|
+
weekday = w.e + dow;
|
|
1658
|
+
if (w.e < 0 || w.e > 6) weekdayOverflow = true;
|
|
1659
|
+
} else weekday = dow;
|
|
1660
|
+
}
|
|
1661
|
+
if (week < 1 || week > weeksInYear(weekYear, dow, doy)) getParsingFlags(config)._overflowWeeks = true;
|
|
1662
|
+
else if (weekdayOverflow != null) getParsingFlags(config)._overflowWeekday = true;
|
|
1663
|
+
else {
|
|
1664
|
+
temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
|
|
1665
|
+
config._a[YEAR] = temp.year;
|
|
1666
|
+
config._dayOfYear = temp.dayOfYear;
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
hooks.ISO_8601 = function() {};
|
|
1670
|
+
hooks.RFC_2822 = function() {};
|
|
1671
|
+
function configFromStringAndFormat(config) {
|
|
1672
|
+
if (config._f === hooks.ISO_8601) {
|
|
1673
|
+
configFromISO(config);
|
|
1674
|
+
return;
|
|
1675
|
+
}
|
|
1676
|
+
if (config._f === hooks.RFC_2822) {
|
|
1677
|
+
configFromRFC2822(config);
|
|
1678
|
+
return;
|
|
1679
|
+
}
|
|
1680
|
+
config._a = [];
|
|
1681
|
+
getParsingFlags(config).empty = true;
|
|
1682
|
+
var string = "" + config._i;
|
|
1683
|
+
var i;
|
|
1684
|
+
var parsedInput;
|
|
1685
|
+
var tokens;
|
|
1686
|
+
var token;
|
|
1687
|
+
var skipped;
|
|
1688
|
+
var stringLength = string.length;
|
|
1689
|
+
var totalParsedInputLength = 0;
|
|
1690
|
+
var era;
|
|
1691
|
+
var tokenLen;
|
|
1692
|
+
tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
|
|
1693
|
+
tokenLen = tokens.length;
|
|
1694
|
+
for (i = 0; i < tokenLen; i++) {
|
|
1695
|
+
token = tokens[i];
|
|
1696
|
+
parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
|
|
1697
|
+
if (parsedInput) {
|
|
1698
|
+
skipped = string.substr(0, string.indexOf(parsedInput));
|
|
1699
|
+
if (skipped.length > 0) getParsingFlags(config).unusedInput.push(skipped);
|
|
1700
|
+
string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
|
|
1701
|
+
totalParsedInputLength += parsedInput.length;
|
|
1702
|
+
}
|
|
1703
|
+
if (formatTokenFunctions[token]) {
|
|
1704
|
+
if (parsedInput) getParsingFlags(config).empty = false;
|
|
1705
|
+
else getParsingFlags(config).unusedTokens.push(token);
|
|
1706
|
+
addTimeToArrayFromToken(token, parsedInput, config);
|
|
1707
|
+
} else if (config._strict && !parsedInput) getParsingFlags(config).unusedTokens.push(token);
|
|
1708
|
+
}
|
|
1709
|
+
getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
|
|
1710
|
+
if (string.length > 0) getParsingFlags(config).unusedInput.push(string);
|
|
1711
|
+
if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) getParsingFlags(config).bigHour = void 0;
|
|
1712
|
+
getParsingFlags(config).parsedDateParts = config._a.slice(0);
|
|
1713
|
+
getParsingFlags(config).meridiem = config._meridiem;
|
|
1714
|
+
config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
|
|
1715
|
+
era = getParsingFlags(config).era;
|
|
1716
|
+
if (era !== null) config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
|
|
1717
|
+
configFromArray(config);
|
|
1718
|
+
checkOverflow(config);
|
|
1719
|
+
}
|
|
1720
|
+
function meridiemFixWrap(locale, hour, meridiem) {
|
|
1721
|
+
var isPm;
|
|
1722
|
+
if (meridiem == null) return hour;
|
|
1723
|
+
if (locale.meridiemHour != null) return locale.meridiemHour(hour, meridiem);
|
|
1724
|
+
else if (locale.isPM != null) {
|
|
1725
|
+
isPm = locale.isPM(meridiem);
|
|
1726
|
+
if (isPm && hour < 12) hour += 12;
|
|
1727
|
+
if (!isPm && hour === 12) hour = 0;
|
|
1728
|
+
return hour;
|
|
1729
|
+
} else return hour;
|
|
1730
|
+
}
|
|
1731
|
+
function configFromStringAndArray(config) {
|
|
1732
|
+
var tempConfig;
|
|
1733
|
+
var bestMoment;
|
|
1734
|
+
var scoreToBeat;
|
|
1735
|
+
var i;
|
|
1736
|
+
var currentScore;
|
|
1737
|
+
var validFormatFound;
|
|
1738
|
+
var bestFormatIsValid = false;
|
|
1739
|
+
var configfLen = config._f.length;
|
|
1740
|
+
if (configfLen === 0) {
|
|
1741
|
+
getParsingFlags(config).invalidFormat = true;
|
|
1742
|
+
config._d = /* @__PURE__ */ new Date(NaN);
|
|
1743
|
+
return;
|
|
1744
|
+
}
|
|
1745
|
+
for (i = 0; i < configfLen; i++) {
|
|
1746
|
+
currentScore = 0;
|
|
1747
|
+
validFormatFound = false;
|
|
1748
|
+
tempConfig = copyConfig({}, config);
|
|
1749
|
+
if (config._useUTC != null) tempConfig._useUTC = config._useUTC;
|
|
1750
|
+
tempConfig._f = config._f[i];
|
|
1751
|
+
configFromStringAndFormat(tempConfig);
|
|
1752
|
+
if (isValid(tempConfig)) validFormatFound = true;
|
|
1753
|
+
currentScore += getParsingFlags(tempConfig).charsLeftOver;
|
|
1754
|
+
currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
|
|
1755
|
+
getParsingFlags(tempConfig).score = currentScore;
|
|
1756
|
+
if (!bestFormatIsValid) {
|
|
1757
|
+
if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) {
|
|
1758
|
+
scoreToBeat = currentScore;
|
|
1759
|
+
bestMoment = tempConfig;
|
|
1760
|
+
if (validFormatFound) bestFormatIsValid = true;
|
|
1761
|
+
}
|
|
1762
|
+
} else if (currentScore < scoreToBeat) {
|
|
1763
|
+
scoreToBeat = currentScore;
|
|
1764
|
+
bestMoment = tempConfig;
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
extend(config, bestMoment || tempConfig);
|
|
1768
|
+
}
|
|
1769
|
+
function configFromObject(config) {
|
|
1770
|
+
if (config._d) return;
|
|
1771
|
+
var i = normalizeObjectUnits(config._i);
|
|
1772
|
+
var dayOrDate = i.day === void 0 ? i.date : i.day;
|
|
1773
|
+
config._a = map([
|
|
1774
|
+
i.year,
|
|
1775
|
+
i.month,
|
|
1776
|
+
dayOrDate,
|
|
1777
|
+
i.hour,
|
|
1778
|
+
i.minute,
|
|
1779
|
+
i.second,
|
|
1780
|
+
i.millisecond
|
|
1781
|
+
], function(obj) {
|
|
1782
|
+
return obj && parseInt(obj, 10);
|
|
1783
|
+
});
|
|
1784
|
+
configFromArray(config);
|
|
1785
|
+
}
|
|
1786
|
+
function createFromConfig(config) {
|
|
1787
|
+
var res = new Moment(checkOverflow(prepareConfig(config)));
|
|
1788
|
+
if (res._nextDay) {
|
|
1789
|
+
res.add(1, "d");
|
|
1790
|
+
res._nextDay = void 0;
|
|
1791
|
+
}
|
|
1792
|
+
return res;
|
|
1793
|
+
}
|
|
1794
|
+
function prepareConfig(config) {
|
|
1795
|
+
var input = config._i;
|
|
1796
|
+
var format = config._f;
|
|
1797
|
+
config._locale = config._locale || getLocale(config._l);
|
|
1798
|
+
if (input === null || format === void 0 && input === "") return createInvalid({ nullInput: true });
|
|
1799
|
+
if (typeof input === "string") config._i = input = config._locale.preparse(input);
|
|
1800
|
+
if (isMoment(input)) return new Moment(checkOverflow(input));
|
|
1801
|
+
else if (isDate(input)) config._d = input;
|
|
1802
|
+
else if (isArray(format)) configFromStringAndArray(config);
|
|
1803
|
+
else if (format) configFromStringAndFormat(config);
|
|
1804
|
+
else configFromInput(config);
|
|
1805
|
+
if (!isValid(config)) config._d = null;
|
|
1806
|
+
return config;
|
|
1807
|
+
}
|
|
1808
|
+
function configFromInput(config) {
|
|
1809
|
+
var input = config._i;
|
|
1810
|
+
if (isUndefined(input)) config._d = new Date(hooks.now());
|
|
1811
|
+
else if (isDate(input)) config._d = new Date(input.valueOf());
|
|
1812
|
+
else if (typeof input === "string") configFromString(config);
|
|
1813
|
+
else if (isArray(input)) {
|
|
1814
|
+
config._a = map(input.slice(0), function(obj) {
|
|
1815
|
+
return parseInt(obj, 10);
|
|
1816
|
+
});
|
|
1817
|
+
configFromArray(config);
|
|
1818
|
+
} else if (isObject(input)) configFromObject(config);
|
|
1819
|
+
else if (isNumber(input)) config._d = new Date(input);
|
|
1820
|
+
else hooks.createFromInputFallback(config);
|
|
1821
|
+
}
|
|
1822
|
+
function createLocalOrUTC(input, format, locale, strict, isUTC) {
|
|
1823
|
+
var c = {};
|
|
1824
|
+
if (format === true || format === false) {
|
|
1825
|
+
strict = format;
|
|
1826
|
+
format = void 0;
|
|
1827
|
+
}
|
|
1828
|
+
if (locale === true || locale === false) {
|
|
1829
|
+
strict = locale;
|
|
1830
|
+
locale = void 0;
|
|
1831
|
+
}
|
|
1832
|
+
if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) input = void 0;
|
|
1833
|
+
c._isAMomentObject = true;
|
|
1834
|
+
c._useUTC = c._isUTC = isUTC;
|
|
1835
|
+
c._l = locale;
|
|
1836
|
+
c._i = input;
|
|
1837
|
+
c._f = format;
|
|
1838
|
+
c._strict = strict;
|
|
1839
|
+
return createFromConfig(c);
|
|
1840
|
+
}
|
|
1841
|
+
function createLocal(input, format, locale, strict) {
|
|
1842
|
+
return createLocalOrUTC(input, format, locale, strict, false);
|
|
1843
|
+
}
|
|
1844
|
+
var prototypeMin = deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
|
1845
|
+
var other = createLocal.apply(null, arguments);
|
|
1846
|
+
if (this.isValid() && other.isValid()) return other < this ? this : other;
|
|
1847
|
+
else return createInvalid();
|
|
1848
|
+
});
|
|
1849
|
+
var prototypeMax = deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
|
1850
|
+
var other = createLocal.apply(null, arguments);
|
|
1851
|
+
if (this.isValid() && other.isValid()) return other > this ? this : other;
|
|
1852
|
+
else return createInvalid();
|
|
1853
|
+
});
|
|
1854
|
+
function pickBy(fn, moments) {
|
|
1855
|
+
var res;
|
|
1856
|
+
var i;
|
|
1857
|
+
if (moments.length === 1 && isArray(moments[0])) moments = moments[0];
|
|
1858
|
+
if (!moments.length) return createLocal();
|
|
1859
|
+
res = moments[0];
|
|
1860
|
+
for (i = 1; i < moments.length; ++i) if (!moments[i].isValid() || moments[i][fn](res)) res = moments[i];
|
|
1861
|
+
return res;
|
|
1862
|
+
}
|
|
1863
|
+
function min() {
|
|
1864
|
+
return pickBy("isBefore", [].slice.call(arguments, 0));
|
|
1865
|
+
}
|
|
1866
|
+
function max() {
|
|
1867
|
+
return pickBy("isAfter", [].slice.call(arguments, 0));
|
|
1868
|
+
}
|
|
1869
|
+
var now = function() {
|
|
1870
|
+
return Date.now ? Date.now() : +/* @__PURE__ */ new Date();
|
|
1871
|
+
};
|
|
1872
|
+
var ordering = [
|
|
1873
|
+
"year",
|
|
1874
|
+
"quarter",
|
|
1875
|
+
"month",
|
|
1876
|
+
"week",
|
|
1877
|
+
"day",
|
|
1878
|
+
"hour",
|
|
1879
|
+
"minute",
|
|
1880
|
+
"second",
|
|
1881
|
+
"millisecond"
|
|
1882
|
+
];
|
|
1883
|
+
function isDurationValid(m) {
|
|
1884
|
+
var key;
|
|
1885
|
+
var unitHasDecimal = false;
|
|
1886
|
+
var i;
|
|
1887
|
+
var orderLen = ordering.length;
|
|
1888
|
+
for (key in m) if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) return false;
|
|
1889
|
+
for (i = 0; i < orderLen; ++i) if (m[ordering[i]]) {
|
|
1890
|
+
if (unitHasDecimal) return false;
|
|
1891
|
+
if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) unitHasDecimal = true;
|
|
1892
|
+
}
|
|
1893
|
+
return true;
|
|
1894
|
+
}
|
|
1895
|
+
function isValid$1() {
|
|
1896
|
+
return this._isValid;
|
|
1897
|
+
}
|
|
1898
|
+
function createInvalid$1() {
|
|
1899
|
+
return createDuration(NaN);
|
|
1900
|
+
}
|
|
1901
|
+
function Duration(duration) {
|
|
1902
|
+
var normalizedInput = normalizeObjectUnits(duration);
|
|
1903
|
+
var years = normalizedInput.year || 0;
|
|
1904
|
+
var quarters = normalizedInput.quarter || 0;
|
|
1905
|
+
var months = normalizedInput.month || 0;
|
|
1906
|
+
var weeks = normalizedInput.week || normalizedInput.isoWeek || 0;
|
|
1907
|
+
var days = normalizedInput.day || 0;
|
|
1908
|
+
var hours = normalizedInput.hour || 0;
|
|
1909
|
+
var minutes = normalizedInput.minute || 0;
|
|
1910
|
+
var seconds = normalizedInput.second || 0;
|
|
1911
|
+
var milliseconds = normalizedInput.millisecond || 0;
|
|
1912
|
+
this._isValid = isDurationValid(normalizedInput);
|
|
1913
|
+
this._milliseconds = +milliseconds + seconds * 1e3 + minutes * 6e4 + hours * 1e3 * 60 * 60;
|
|
1914
|
+
this._days = +days + weeks * 7;
|
|
1915
|
+
this._months = +months + quarters * 3 + years * 12;
|
|
1916
|
+
this._data = {};
|
|
1917
|
+
this._locale = getLocale();
|
|
1918
|
+
this._bubble();
|
|
1919
|
+
}
|
|
1920
|
+
function isDuration(obj) {
|
|
1921
|
+
return obj instanceof Duration;
|
|
1922
|
+
}
|
|
1923
|
+
function absRound(number) {
|
|
1924
|
+
if (number < 0) return Math.round(-1 * number) * -1;
|
|
1925
|
+
else return Math.round(number);
|
|
1926
|
+
}
|
|
1927
|
+
function compareArrays(array1, array2, dontConvert) {
|
|
1928
|
+
var len = Math.min(array1.length, array2.length);
|
|
1929
|
+
var lengthDiff = Math.abs(array1.length - array2.length);
|
|
1930
|
+
var diffs = 0;
|
|
1931
|
+
var i;
|
|
1932
|
+
for (i = 0; i < len; i++) if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) diffs++;
|
|
1933
|
+
return diffs + lengthDiff;
|
|
1934
|
+
}
|
|
1935
|
+
function offset(token, separator) {
|
|
1936
|
+
addFormatToken(token, 0, 0, function() {
|
|
1937
|
+
var offset = this.utcOffset();
|
|
1938
|
+
var sign = "+";
|
|
1939
|
+
if (offset < 0) {
|
|
1940
|
+
offset = -offset;
|
|
1941
|
+
sign = "-";
|
|
1942
|
+
}
|
|
1943
|
+
return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~offset % 60, 2);
|
|
1944
|
+
});
|
|
1945
|
+
}
|
|
1946
|
+
offset("Z", ":");
|
|
1947
|
+
offset("ZZ", "");
|
|
1948
|
+
addRegexToken("Z", matchShortOffset);
|
|
1949
|
+
addRegexToken("ZZ", matchShortOffset);
|
|
1950
|
+
addParseToken(["Z", "ZZ"], function(input, array, config) {
|
|
1951
|
+
config._useUTC = true;
|
|
1952
|
+
config._tzm = offsetFromString(matchShortOffset, input);
|
|
1953
|
+
});
|
|
1954
|
+
var chunkOffset = /([\+\-]|\d\d)/gi;
|
|
1955
|
+
function offsetFromString(matcher, string) {
|
|
1956
|
+
var matches = (string || "").match(matcher);
|
|
1957
|
+
var chunk;
|
|
1958
|
+
var parts;
|
|
1959
|
+
var minutes;
|
|
1960
|
+
if (matches === null) return null;
|
|
1961
|
+
chunk = matches[matches.length - 1] || [];
|
|
1962
|
+
parts = (chunk + "").match(chunkOffset) || [
|
|
1963
|
+
"-",
|
|
1964
|
+
0,
|
|
1965
|
+
0
|
|
1966
|
+
];
|
|
1967
|
+
minutes = +(parts[1] * 60) + toInt(parts[2]);
|
|
1968
|
+
return minutes === 0 ? 0 : parts[0] === "+" ? minutes : -minutes;
|
|
1969
|
+
}
|
|
1970
|
+
function cloneWithOffset(input, model) {
|
|
1971
|
+
var res;
|
|
1972
|
+
var diff;
|
|
1973
|
+
if (model._isUTC) {
|
|
1974
|
+
res = model.clone();
|
|
1975
|
+
diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
|
|
1976
|
+
res._d.setTime(res._d.valueOf() + diff);
|
|
1977
|
+
hooks.updateOffset(res, false);
|
|
1978
|
+
return res;
|
|
1979
|
+
} else return createLocal(input).local();
|
|
1980
|
+
}
|
|
1981
|
+
function getDateOffset(m) {
|
|
1982
|
+
return -Math.round(m._d.getTimezoneOffset());
|
|
1983
|
+
}
|
|
1984
|
+
hooks.updateOffset = function() {};
|
|
1985
|
+
function getSetOffset(input, keepLocalTime, keepMinutes) {
|
|
1986
|
+
var offset = this._offset || 0;
|
|
1987
|
+
var localAdjust;
|
|
1988
|
+
if (!this.isValid()) return input != null ? this : NaN;
|
|
1989
|
+
if (input != null) {
|
|
1990
|
+
if (typeof input === "string") {
|
|
1991
|
+
input = offsetFromString(matchShortOffset, input);
|
|
1992
|
+
if (input === null) return this;
|
|
1993
|
+
} else if (Math.abs(input) < 16 && !keepMinutes) input = input * 60;
|
|
1994
|
+
if (!this._isUTC && keepLocalTime) localAdjust = getDateOffset(this);
|
|
1995
|
+
this._offset = input;
|
|
1996
|
+
this._isUTC = true;
|
|
1997
|
+
if (localAdjust != null) this.add(localAdjust, "m");
|
|
1998
|
+
if (offset !== input) {
|
|
1999
|
+
if (!keepLocalTime || this._changeInProgress) addSubtract(this, createDuration(input - offset, "m"), 1, false);
|
|
2000
|
+
else if (!this._changeInProgress) {
|
|
2001
|
+
this._changeInProgress = true;
|
|
2002
|
+
hooks.updateOffset(this, true);
|
|
2003
|
+
this._changeInProgress = null;
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
return this;
|
|
2007
|
+
} else return this._isUTC ? offset : getDateOffset(this);
|
|
2008
|
+
}
|
|
2009
|
+
function getSetZone(input, keepLocalTime) {
|
|
2010
|
+
if (input != null) {
|
|
2011
|
+
if (typeof input !== "string") input = -input;
|
|
2012
|
+
this.utcOffset(input, keepLocalTime);
|
|
2013
|
+
return this;
|
|
2014
|
+
} else return -this.utcOffset();
|
|
2015
|
+
}
|
|
2016
|
+
function setOffsetToUTC(keepLocalTime) {
|
|
2017
|
+
return this.utcOffset(0, keepLocalTime);
|
|
2018
|
+
}
|
|
2019
|
+
function setOffsetToLocal(keepLocalTime) {
|
|
2020
|
+
if (this._isUTC) {
|
|
2021
|
+
this.utcOffset(0, keepLocalTime);
|
|
2022
|
+
this._isUTC = false;
|
|
2023
|
+
if (keepLocalTime) this.subtract(getDateOffset(this), "m");
|
|
2024
|
+
}
|
|
2025
|
+
return this;
|
|
2026
|
+
}
|
|
2027
|
+
function setOffsetToParsedOffset() {
|
|
2028
|
+
if (this._tzm != null) this.utcOffset(this._tzm, false, true);
|
|
2029
|
+
else if (typeof this._i === "string") {
|
|
2030
|
+
var tZone = offsetFromString(matchOffset, this._i);
|
|
2031
|
+
if (tZone != null) this.utcOffset(tZone);
|
|
2032
|
+
else this.utcOffset(0, true);
|
|
2033
|
+
}
|
|
2034
|
+
return this;
|
|
2035
|
+
}
|
|
2036
|
+
function hasAlignedHourOffset(input) {
|
|
2037
|
+
if (!this.isValid()) return false;
|
|
2038
|
+
input = input ? createLocal(input).utcOffset() : 0;
|
|
2039
|
+
return (this.utcOffset() - input) % 60 === 0;
|
|
2040
|
+
}
|
|
2041
|
+
function isDaylightSavingTime() {
|
|
2042
|
+
return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
|
2043
|
+
}
|
|
2044
|
+
function isDaylightSavingTimeShifted() {
|
|
2045
|
+
if (!isUndefined(this._isDSTShifted)) return this._isDSTShifted;
|
|
2046
|
+
var c = {};
|
|
2047
|
+
var other;
|
|
2048
|
+
copyConfig(c, this);
|
|
2049
|
+
c = prepareConfig(c);
|
|
2050
|
+
if (c._a) {
|
|
2051
|
+
other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
|
|
2052
|
+
this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;
|
|
2053
|
+
} else this._isDSTShifted = false;
|
|
2054
|
+
return this._isDSTShifted;
|
|
2055
|
+
}
|
|
2056
|
+
function isLocal() {
|
|
2057
|
+
return this.isValid() ? !this._isUTC : false;
|
|
2058
|
+
}
|
|
2059
|
+
function isUtcOffset() {
|
|
2060
|
+
return this.isValid() ? this._isUTC : false;
|
|
2061
|
+
}
|
|
2062
|
+
function isUtc() {
|
|
2063
|
+
return this.isValid() ? this._isUTC && this._offset === 0 : false;
|
|
2064
|
+
}
|
|
2065
|
+
var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/;
|
|
2066
|
+
var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
2067
|
+
function createDuration(input, key) {
|
|
2068
|
+
var duration = input;
|
|
2069
|
+
var match = null;
|
|
2070
|
+
var sign;
|
|
2071
|
+
var ret;
|
|
2072
|
+
var diffRes;
|
|
2073
|
+
if (isDuration(input)) duration = {
|
|
2074
|
+
ms: input._milliseconds,
|
|
2075
|
+
d: input._days,
|
|
2076
|
+
M: input._months
|
|
2077
|
+
};
|
|
2078
|
+
else if (isNumber(input) || !isNaN(+input)) {
|
|
2079
|
+
duration = {};
|
|
2080
|
+
if (key) duration[key] = +input;
|
|
2081
|
+
else duration.milliseconds = +input;
|
|
2082
|
+
} else if (match = aspNetRegex.exec(input)) {
|
|
2083
|
+
sign = match[1] === "-" ? -1 : 1;
|
|
2084
|
+
duration = {
|
|
2085
|
+
y: 0,
|
|
2086
|
+
d: toInt(match[DATE]) * sign,
|
|
2087
|
+
h: toInt(match[HOUR]) * sign,
|
|
2088
|
+
m: toInt(match[MINUTE]) * sign,
|
|
2089
|
+
s: toInt(match[SECOND]) * sign,
|
|
2090
|
+
ms: toInt(absRound(match[MILLISECOND] * 1e3)) * sign
|
|
2091
|
+
};
|
|
2092
|
+
} else if (match = isoRegex.exec(input)) {
|
|
2093
|
+
sign = match[1] === "-" ? -1 : 1;
|
|
2094
|
+
duration = {
|
|
2095
|
+
y: parseIso(match[2], sign),
|
|
2096
|
+
M: parseIso(match[3], sign),
|
|
2097
|
+
w: parseIso(match[4], sign),
|
|
2098
|
+
d: parseIso(match[5], sign),
|
|
2099
|
+
h: parseIso(match[6], sign),
|
|
2100
|
+
m: parseIso(match[7], sign),
|
|
2101
|
+
s: parseIso(match[8], sign)
|
|
2102
|
+
};
|
|
2103
|
+
} else if (duration == null) duration = {};
|
|
2104
|
+
else if (typeof duration === "object" && ("from" in duration || "to" in duration)) {
|
|
2105
|
+
diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
|
|
2106
|
+
duration = {};
|
|
2107
|
+
duration.ms = diffRes.milliseconds;
|
|
2108
|
+
duration.M = diffRes.months;
|
|
2109
|
+
}
|
|
2110
|
+
ret = new Duration(duration);
|
|
2111
|
+
if (isDuration(input) && hasOwnProp(input, "_locale")) ret._locale = input._locale;
|
|
2112
|
+
if (isDuration(input) && hasOwnProp(input, "_isValid")) ret._isValid = input._isValid;
|
|
2113
|
+
return ret;
|
|
2114
|
+
}
|
|
2115
|
+
createDuration.fn = Duration.prototype;
|
|
2116
|
+
createDuration.invalid = createInvalid$1;
|
|
2117
|
+
function parseIso(inp, sign) {
|
|
2118
|
+
var res = inp && parseFloat(inp.replace(",", "."));
|
|
2119
|
+
return (isNaN(res) ? 0 : res) * sign;
|
|
2120
|
+
}
|
|
2121
|
+
function positiveMomentsDifference(base, other) {
|
|
2122
|
+
var res = {};
|
|
2123
|
+
res.months = other.month() - base.month() + (other.year() - base.year()) * 12;
|
|
2124
|
+
if (base.clone().add(res.months, "M").isAfter(other)) --res.months;
|
|
2125
|
+
res.milliseconds = +other - +base.clone().add(res.months, "M");
|
|
2126
|
+
return res;
|
|
2127
|
+
}
|
|
2128
|
+
function momentsDifference(base, other) {
|
|
2129
|
+
var res;
|
|
2130
|
+
if (!(base.isValid() && other.isValid())) return {
|
|
2131
|
+
milliseconds: 0,
|
|
2132
|
+
months: 0
|
|
2133
|
+
};
|
|
2134
|
+
other = cloneWithOffset(other, base);
|
|
2135
|
+
if (base.isBefore(other)) res = positiveMomentsDifference(base, other);
|
|
2136
|
+
else {
|
|
2137
|
+
res = positiveMomentsDifference(other, base);
|
|
2138
|
+
res.milliseconds = -res.milliseconds;
|
|
2139
|
+
res.months = -res.months;
|
|
2140
|
+
}
|
|
2141
|
+
return res;
|
|
2142
|
+
}
|
|
2143
|
+
function createAdder(direction, name) {
|
|
2144
|
+
return function(val, period) {
|
|
2145
|
+
var dur;
|
|
2146
|
+
var tmp;
|
|
2147
|
+
if (period !== null && !isNaN(+period)) {
|
|
2148
|
+
deprecateSimple(name, "moment()." + name + "(period, number) is deprecated. Please use moment()." + name + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");
|
|
2149
|
+
tmp = val;
|
|
2150
|
+
val = period;
|
|
2151
|
+
period = tmp;
|
|
2152
|
+
}
|
|
2153
|
+
dur = createDuration(val, period);
|
|
2154
|
+
addSubtract(this, dur, direction);
|
|
2155
|
+
return this;
|
|
2156
|
+
};
|
|
2157
|
+
}
|
|
2158
|
+
function addSubtract(mom, duration, isAdding, updateOffset) {
|
|
2159
|
+
var milliseconds = duration._milliseconds;
|
|
2160
|
+
var days = absRound(duration._days);
|
|
2161
|
+
var months = absRound(duration._months);
|
|
2162
|
+
if (!mom.isValid()) return;
|
|
2163
|
+
updateOffset = updateOffset == null ? true : updateOffset;
|
|
2164
|
+
if (months) setMonth(mom, get(mom, "Month") + months * isAdding);
|
|
2165
|
+
if (days) set$1(mom, "Date", get(mom, "Date") + days * isAdding);
|
|
2166
|
+
if (milliseconds) mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
|
|
2167
|
+
if (updateOffset) hooks.updateOffset(mom, days || months);
|
|
2168
|
+
}
|
|
2169
|
+
var add = createAdder(1, "add");
|
|
2170
|
+
var subtract = createAdder(-1, "subtract");
|
|
2171
|
+
function isString(input) {
|
|
2172
|
+
return typeof input === "string" || input instanceof String;
|
|
2173
|
+
}
|
|
2174
|
+
function isMomentInput(input) {
|
|
2175
|
+
return isMoment(input) || isDate(input) || isString(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
|
|
2176
|
+
}
|
|
2177
|
+
function isMomentInputObject(input) {
|
|
2178
|
+
var objectTest = isObject(input) && !isObjectEmpty(input);
|
|
2179
|
+
var propertyTest = false;
|
|
2180
|
+
var properties = [
|
|
2181
|
+
"years",
|
|
2182
|
+
"year",
|
|
2183
|
+
"y",
|
|
2184
|
+
"months",
|
|
2185
|
+
"month",
|
|
2186
|
+
"M",
|
|
2187
|
+
"days",
|
|
2188
|
+
"day",
|
|
2189
|
+
"d",
|
|
2190
|
+
"dates",
|
|
2191
|
+
"date",
|
|
2192
|
+
"D",
|
|
2193
|
+
"hours",
|
|
2194
|
+
"hour",
|
|
2195
|
+
"h",
|
|
2196
|
+
"minutes",
|
|
2197
|
+
"minute",
|
|
2198
|
+
"m",
|
|
2199
|
+
"seconds",
|
|
2200
|
+
"second",
|
|
2201
|
+
"s",
|
|
2202
|
+
"milliseconds",
|
|
2203
|
+
"millisecond",
|
|
2204
|
+
"ms"
|
|
2205
|
+
];
|
|
2206
|
+
var i;
|
|
2207
|
+
var property;
|
|
2208
|
+
var propertyLen = properties.length;
|
|
2209
|
+
for (i = 0; i < propertyLen; i += 1) {
|
|
2210
|
+
property = properties[i];
|
|
2211
|
+
propertyTest = propertyTest || hasOwnProp(input, property);
|
|
2212
|
+
}
|
|
2213
|
+
return objectTest && propertyTest;
|
|
2214
|
+
}
|
|
2215
|
+
function isNumberOrStringArray(input) {
|
|
2216
|
+
var arrayTest = isArray(input);
|
|
2217
|
+
var dataTypeTest = false;
|
|
2218
|
+
if (arrayTest) dataTypeTest = input.filter(function(item) {
|
|
2219
|
+
return !isNumber(item) && isString(input);
|
|
2220
|
+
}).length === 0;
|
|
2221
|
+
return arrayTest && dataTypeTest;
|
|
2222
|
+
}
|
|
2223
|
+
function isCalendarSpec(input) {
|
|
2224
|
+
var objectTest = isObject(input) && !isObjectEmpty(input);
|
|
2225
|
+
var propertyTest = false;
|
|
2226
|
+
var properties = [
|
|
2227
|
+
"sameDay",
|
|
2228
|
+
"nextDay",
|
|
2229
|
+
"lastDay",
|
|
2230
|
+
"nextWeek",
|
|
2231
|
+
"lastWeek",
|
|
2232
|
+
"sameElse"
|
|
2233
|
+
];
|
|
2234
|
+
var i;
|
|
2235
|
+
var property;
|
|
2236
|
+
for (i = 0; i < properties.length; i += 1) {
|
|
2237
|
+
property = properties[i];
|
|
2238
|
+
propertyTest = propertyTest || hasOwnProp(input, property);
|
|
2239
|
+
}
|
|
2240
|
+
return objectTest && propertyTest;
|
|
2241
|
+
}
|
|
2242
|
+
function getCalendarFormat(myMoment, now) {
|
|
2243
|
+
var diff = myMoment.diff(now, "days", true);
|
|
2244
|
+
return diff < -6 ? "sameElse" : diff < -1 ? "lastWeek" : diff < 0 ? "lastDay" : diff < 1 ? "sameDay" : diff < 2 ? "nextDay" : diff < 7 ? "nextWeek" : "sameElse";
|
|
2245
|
+
}
|
|
2246
|
+
function calendar$1(time, formats) {
|
|
2247
|
+
if (arguments.length === 1) {
|
|
2248
|
+
if (!arguments[0]) {
|
|
2249
|
+
time = void 0;
|
|
2250
|
+
formats = void 0;
|
|
2251
|
+
} else if (isMomentInput(arguments[0])) {
|
|
2252
|
+
time = arguments[0];
|
|
2253
|
+
formats = void 0;
|
|
2254
|
+
} else if (isCalendarSpec(arguments[0])) {
|
|
2255
|
+
formats = arguments[0];
|
|
2256
|
+
time = void 0;
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
var now = time || createLocal();
|
|
2260
|
+
var sod = cloneWithOffset(now, this).startOf("day");
|
|
2261
|
+
var format = hooks.calendarFormat(this, sod) || "sameElse";
|
|
2262
|
+
var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
|
|
2263
|
+
return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
|
|
2264
|
+
}
|
|
2265
|
+
function clone() {
|
|
2266
|
+
return new Moment(this);
|
|
2267
|
+
}
|
|
2268
|
+
function isAfter(input, units) {
|
|
2269
|
+
var localInput = isMoment(input) ? input : createLocal(input);
|
|
2270
|
+
if (!(this.isValid() && localInput.isValid())) return false;
|
|
2271
|
+
units = normalizeUnits(units) || "millisecond";
|
|
2272
|
+
if (units === "millisecond") return this.valueOf() > localInput.valueOf();
|
|
2273
|
+
else return localInput.valueOf() < this.clone().startOf(units).valueOf();
|
|
2274
|
+
}
|
|
2275
|
+
function isBefore(input, units) {
|
|
2276
|
+
var localInput = isMoment(input) ? input : createLocal(input);
|
|
2277
|
+
if (!(this.isValid() && localInput.isValid())) return false;
|
|
2278
|
+
units = normalizeUnits(units) || "millisecond";
|
|
2279
|
+
if (units === "millisecond") return this.valueOf() < localInput.valueOf();
|
|
2280
|
+
else return this.clone().endOf(units).valueOf() < localInput.valueOf();
|
|
2281
|
+
}
|
|
2282
|
+
function isBetween(from, to, units, inclusivity) {
|
|
2283
|
+
var localFrom = isMoment(from) ? from : createLocal(from);
|
|
2284
|
+
var localTo = isMoment(to) ? to : createLocal(to);
|
|
2285
|
+
if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) return false;
|
|
2286
|
+
inclusivity = inclusivity || "()";
|
|
2287
|
+
return (inclusivity[0] === "(" ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ")" ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
|
|
2288
|
+
}
|
|
2289
|
+
function isSame(input, units) {
|
|
2290
|
+
var localInput = isMoment(input) ? input : createLocal(input);
|
|
2291
|
+
var inputMs;
|
|
2292
|
+
if (!(this.isValid() && localInput.isValid())) return false;
|
|
2293
|
+
units = normalizeUnits(units) || "millisecond";
|
|
2294
|
+
if (units === "millisecond") return this.valueOf() === localInput.valueOf();
|
|
2295
|
+
else {
|
|
2296
|
+
inputMs = localInput.valueOf();
|
|
2297
|
+
return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
function isSameOrAfter(input, units) {
|
|
2301
|
+
return this.isSame(input, units) || this.isAfter(input, units);
|
|
2302
|
+
}
|
|
2303
|
+
function isSameOrBefore(input, units) {
|
|
2304
|
+
return this.isSame(input, units) || this.isBefore(input, units);
|
|
2305
|
+
}
|
|
2306
|
+
function diff(input, units, asFloat) {
|
|
2307
|
+
var that;
|
|
2308
|
+
var zoneDelta;
|
|
2309
|
+
var output;
|
|
2310
|
+
if (!this.isValid()) return NaN;
|
|
2311
|
+
that = cloneWithOffset(input, this);
|
|
2312
|
+
if (!that.isValid()) return NaN;
|
|
2313
|
+
zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
|
|
2314
|
+
units = normalizeUnits(units);
|
|
2315
|
+
switch (units) {
|
|
2316
|
+
case "year":
|
|
2317
|
+
output = monthDiff(this, that) / 12;
|
|
2318
|
+
break;
|
|
2319
|
+
case "month":
|
|
2320
|
+
output = monthDiff(this, that);
|
|
2321
|
+
break;
|
|
2322
|
+
case "quarter":
|
|
2323
|
+
output = monthDiff(this, that) / 3;
|
|
2324
|
+
break;
|
|
2325
|
+
case "second":
|
|
2326
|
+
output = (this - that) / 1e3;
|
|
2327
|
+
break;
|
|
2328
|
+
case "minute":
|
|
2329
|
+
output = (this - that) / 6e4;
|
|
2330
|
+
break;
|
|
2331
|
+
case "hour":
|
|
2332
|
+
output = (this - that) / 36e5;
|
|
2333
|
+
break;
|
|
2334
|
+
case "day":
|
|
2335
|
+
output = (this - that - zoneDelta) / 864e5;
|
|
2336
|
+
break;
|
|
2337
|
+
case "week":
|
|
2338
|
+
output = (this - that - zoneDelta) / 6048e5;
|
|
2339
|
+
break;
|
|
2340
|
+
default: output = this - that;
|
|
2341
|
+
}
|
|
2342
|
+
return asFloat ? output : absFloor(output);
|
|
2343
|
+
}
|
|
2344
|
+
function monthDiff(a, b) {
|
|
2345
|
+
if (a.date() < b.date()) return -monthDiff(b, a);
|
|
2346
|
+
var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month());
|
|
2347
|
+
var anchor = a.clone().add(wholeMonthDiff, "months");
|
|
2348
|
+
var anchor2;
|
|
2349
|
+
var adjust;
|
|
2350
|
+
if (b - anchor < 0) {
|
|
2351
|
+
anchor2 = a.clone().add(wholeMonthDiff - 1, "months");
|
|
2352
|
+
adjust = (b - anchor) / (anchor - anchor2);
|
|
2353
|
+
} else {
|
|
2354
|
+
anchor2 = a.clone().add(wholeMonthDiff + 1, "months");
|
|
2355
|
+
adjust = (b - anchor) / (anchor2 - anchor);
|
|
2356
|
+
}
|
|
2357
|
+
return -(wholeMonthDiff + adjust) || 0;
|
|
2358
|
+
}
|
|
2359
|
+
hooks.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
2360
|
+
hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
2361
|
+
function toString() {
|
|
2362
|
+
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
2363
|
+
}
|
|
2364
|
+
function toISOString(keepOffset) {
|
|
2365
|
+
if (!this.isValid()) return null;
|
|
2366
|
+
var utc = keepOffset !== true;
|
|
2367
|
+
var m = utc ? this.clone().utc() : this;
|
|
2368
|
+
if (m.year() < 0 || m.year() > 9999) return formatMoment(m, utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");
|
|
2369
|
+
if (isFunction(Date.prototype.toISOString)) if (utc) return this.toDate().toISOString();
|
|
2370
|
+
else return new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", formatMoment(m, "Z"));
|
|
2371
|
+
return formatMoment(m, utc ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ");
|
|
2372
|
+
}
|
|
2373
|
+
/**
|
|
2374
|
+
* Return a human readable representation of a moment that can
|
|
2375
|
+
* also be evaluated to get a new moment which is the same
|
|
2376
|
+
*
|
|
2377
|
+
* @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
|
|
2378
|
+
*/
|
|
2379
|
+
function inspect() {
|
|
2380
|
+
if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)";
|
|
2381
|
+
var func = "moment";
|
|
2382
|
+
var zone = "";
|
|
2383
|
+
var prefix;
|
|
2384
|
+
var year;
|
|
2385
|
+
var datetime;
|
|
2386
|
+
var suffix;
|
|
2387
|
+
if (!this.isLocal()) {
|
|
2388
|
+
func = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone";
|
|
2389
|
+
zone = "Z";
|
|
2390
|
+
}
|
|
2391
|
+
prefix = "[" + func + "(\"]";
|
|
2392
|
+
year = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY";
|
|
2393
|
+
datetime = "-MM-DD[T]HH:mm:ss.SSS";
|
|
2394
|
+
suffix = zone + "[\")]";
|
|
2395
|
+
return this.format(prefix + year + datetime + suffix);
|
|
2396
|
+
}
|
|
2397
|
+
function format(inputString) {
|
|
2398
|
+
if (!inputString) inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
|
|
2399
|
+
var output = formatMoment(this, inputString);
|
|
2400
|
+
return this.localeData().postformat(output);
|
|
2401
|
+
}
|
|
2402
|
+
function from(time, withoutSuffix) {
|
|
2403
|
+
if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) return createDuration({
|
|
2404
|
+
to: this,
|
|
2405
|
+
from: time
|
|
2406
|
+
}).locale(this.locale()).humanize(!withoutSuffix);
|
|
2407
|
+
else return this.localeData().invalidDate();
|
|
2408
|
+
}
|
|
2409
|
+
function fromNow(withoutSuffix) {
|
|
2410
|
+
return this.from(createLocal(), withoutSuffix);
|
|
2411
|
+
}
|
|
2412
|
+
function to(time, withoutSuffix) {
|
|
2413
|
+
if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) return createDuration({
|
|
2414
|
+
from: this,
|
|
2415
|
+
to: time
|
|
2416
|
+
}).locale(this.locale()).humanize(!withoutSuffix);
|
|
2417
|
+
else return this.localeData().invalidDate();
|
|
2418
|
+
}
|
|
2419
|
+
function toNow(withoutSuffix) {
|
|
2420
|
+
return this.to(createLocal(), withoutSuffix);
|
|
2421
|
+
}
|
|
2422
|
+
function locale(key) {
|
|
2423
|
+
var newLocaleData;
|
|
2424
|
+
if (key === void 0) return this._locale._abbr;
|
|
2425
|
+
else {
|
|
2426
|
+
newLocaleData = getLocale(key);
|
|
2427
|
+
if (newLocaleData != null) this._locale = newLocaleData;
|
|
2428
|
+
return this;
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
var lang = deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function(key) {
|
|
2432
|
+
if (key === void 0) return this.localeData();
|
|
2433
|
+
else return this.locale(key);
|
|
2434
|
+
});
|
|
2435
|
+
function localeData() {
|
|
2436
|
+
return this._locale;
|
|
2437
|
+
}
|
|
2438
|
+
var MS_PER_SECOND = 1e3;
|
|
2439
|
+
var MS_PER_MINUTE = 60 * MS_PER_SECOND;
|
|
2440
|
+
var MS_PER_HOUR = 60 * MS_PER_MINUTE;
|
|
2441
|
+
var MS_PER_400_YEARS = 146097 * 24 * MS_PER_HOUR;
|
|
2442
|
+
function mod$1(dividend, divisor) {
|
|
2443
|
+
return (dividend % divisor + divisor) % divisor;
|
|
2444
|
+
}
|
|
2445
|
+
function localStartOfDate(y, m, d) {
|
|
2446
|
+
if (y < 100 && y >= 0) return new Date(y + 400, m, d) - MS_PER_400_YEARS;
|
|
2447
|
+
else return new Date(y, m, d).valueOf();
|
|
2448
|
+
}
|
|
2449
|
+
function utcStartOfDate(y, m, d) {
|
|
2450
|
+
if (y < 100 && y >= 0) return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
|
|
2451
|
+
else return Date.UTC(y, m, d);
|
|
2452
|
+
}
|
|
2453
|
+
function startOf(units) {
|
|
2454
|
+
var time;
|
|
2455
|
+
var startOfDate;
|
|
2456
|
+
units = normalizeUnits(units);
|
|
2457
|
+
if (units === void 0 || units === "millisecond" || !this.isValid()) return this;
|
|
2458
|
+
startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
|
2459
|
+
switch (units) {
|
|
2460
|
+
case "year":
|
|
2461
|
+
time = startOfDate(this.year(), 0, 1);
|
|
2462
|
+
break;
|
|
2463
|
+
case "quarter":
|
|
2464
|
+
time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
|
|
2465
|
+
break;
|
|
2466
|
+
case "month":
|
|
2467
|
+
time = startOfDate(this.year(), this.month(), 1);
|
|
2468
|
+
break;
|
|
2469
|
+
case "week":
|
|
2470
|
+
time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
|
|
2471
|
+
break;
|
|
2472
|
+
case "isoWeek":
|
|
2473
|
+
time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
|
|
2474
|
+
break;
|
|
2475
|
+
case "day":
|
|
2476
|
+
case "date":
|
|
2477
|
+
time = startOfDate(this.year(), this.month(), this.date());
|
|
2478
|
+
break;
|
|
2479
|
+
case "hour":
|
|
2480
|
+
time = this._d.valueOf();
|
|
2481
|
+
time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
|
|
2482
|
+
break;
|
|
2483
|
+
case "minute":
|
|
2484
|
+
time = this._d.valueOf();
|
|
2485
|
+
time -= mod$1(time, MS_PER_MINUTE);
|
|
2486
|
+
break;
|
|
2487
|
+
case "second":
|
|
2488
|
+
time = this._d.valueOf();
|
|
2489
|
+
time -= mod$1(time, MS_PER_SECOND);
|
|
2490
|
+
break;
|
|
2491
|
+
}
|
|
2492
|
+
this._d.setTime(time);
|
|
2493
|
+
hooks.updateOffset(this, true);
|
|
2494
|
+
return this;
|
|
2495
|
+
}
|
|
2496
|
+
function endOf(units) {
|
|
2497
|
+
var time;
|
|
2498
|
+
var startOfDate;
|
|
2499
|
+
units = normalizeUnits(units);
|
|
2500
|
+
if (units === void 0 || units === "millisecond" || !this.isValid()) return this;
|
|
2501
|
+
startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
|
2502
|
+
switch (units) {
|
|
2503
|
+
case "year":
|
|
2504
|
+
time = startOfDate(this.year() + 1, 0, 1) - 1;
|
|
2505
|
+
break;
|
|
2506
|
+
case "quarter":
|
|
2507
|
+
time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
|
|
2508
|
+
break;
|
|
2509
|
+
case "month":
|
|
2510
|
+
time = startOfDate(this.year(), this.month() + 1, 1) - 1;
|
|
2511
|
+
break;
|
|
2512
|
+
case "week":
|
|
2513
|
+
time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
|
|
2514
|
+
break;
|
|
2515
|
+
case "isoWeek":
|
|
2516
|
+
time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
|
|
2517
|
+
break;
|
|
2518
|
+
case "day":
|
|
2519
|
+
case "date":
|
|
2520
|
+
time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
|
|
2521
|
+
break;
|
|
2522
|
+
case "hour":
|
|
2523
|
+
time = this._d.valueOf();
|
|
2524
|
+
time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
|
|
2525
|
+
break;
|
|
2526
|
+
case "minute":
|
|
2527
|
+
time = this._d.valueOf();
|
|
2528
|
+
time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
|
|
2529
|
+
break;
|
|
2530
|
+
case "second":
|
|
2531
|
+
time = this._d.valueOf();
|
|
2532
|
+
time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
|
|
2533
|
+
break;
|
|
2534
|
+
}
|
|
2535
|
+
this._d.setTime(time);
|
|
2536
|
+
hooks.updateOffset(this, true);
|
|
2537
|
+
return this;
|
|
2538
|
+
}
|
|
2539
|
+
function valueOf() {
|
|
2540
|
+
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
2541
|
+
}
|
|
2542
|
+
function unix() {
|
|
2543
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
2544
|
+
}
|
|
2545
|
+
function toDate() {
|
|
2546
|
+
return new Date(this.valueOf());
|
|
2547
|
+
}
|
|
2548
|
+
function toArray() {
|
|
2549
|
+
var m = this;
|
|
2550
|
+
return [
|
|
2551
|
+
m.year(),
|
|
2552
|
+
m.month(),
|
|
2553
|
+
m.date(),
|
|
2554
|
+
m.hour(),
|
|
2555
|
+
m.minute(),
|
|
2556
|
+
m.second(),
|
|
2557
|
+
m.millisecond()
|
|
2558
|
+
];
|
|
2559
|
+
}
|
|
2560
|
+
function toObject() {
|
|
2561
|
+
var m = this;
|
|
2562
|
+
return {
|
|
2563
|
+
years: m.year(),
|
|
2564
|
+
months: m.month(),
|
|
2565
|
+
date: m.date(),
|
|
2566
|
+
hours: m.hours(),
|
|
2567
|
+
minutes: m.minutes(),
|
|
2568
|
+
seconds: m.seconds(),
|
|
2569
|
+
milliseconds: m.milliseconds()
|
|
2570
|
+
};
|
|
2571
|
+
}
|
|
2572
|
+
function toJSON() {
|
|
2573
|
+
return this.isValid() ? this.toISOString() : null;
|
|
2574
|
+
}
|
|
2575
|
+
function isValid$2() {
|
|
2576
|
+
return isValid(this);
|
|
2577
|
+
}
|
|
2578
|
+
function parsingFlags() {
|
|
2579
|
+
return extend({}, getParsingFlags(this));
|
|
2580
|
+
}
|
|
2581
|
+
function invalidAt() {
|
|
2582
|
+
return getParsingFlags(this).overflow;
|
|
2583
|
+
}
|
|
2584
|
+
function creationData() {
|
|
2585
|
+
return {
|
|
2586
|
+
input: this._i,
|
|
2587
|
+
format: this._f,
|
|
2588
|
+
locale: this._locale,
|
|
2589
|
+
isUTC: this._isUTC,
|
|
2590
|
+
strict: this._strict
|
|
2591
|
+
};
|
|
2592
|
+
}
|
|
2593
|
+
addFormatToken("N", 0, 0, "eraAbbr");
|
|
2594
|
+
addFormatToken("NN", 0, 0, "eraAbbr");
|
|
2595
|
+
addFormatToken("NNN", 0, 0, "eraAbbr");
|
|
2596
|
+
addFormatToken("NNNN", 0, 0, "eraName");
|
|
2597
|
+
addFormatToken("NNNNN", 0, 0, "eraNarrow");
|
|
2598
|
+
addFormatToken("y", ["y", 1], "yo", "eraYear");
|
|
2599
|
+
addFormatToken("y", ["yy", 2], 0, "eraYear");
|
|
2600
|
+
addFormatToken("y", ["yyy", 3], 0, "eraYear");
|
|
2601
|
+
addFormatToken("y", ["yyyy", 4], 0, "eraYear");
|
|
2602
|
+
addRegexToken("N", matchEraAbbr);
|
|
2603
|
+
addRegexToken("NN", matchEraAbbr);
|
|
2604
|
+
addRegexToken("NNN", matchEraAbbr);
|
|
2605
|
+
addRegexToken("NNNN", matchEraName);
|
|
2606
|
+
addRegexToken("NNNNN", matchEraNarrow);
|
|
2607
|
+
addParseToken([
|
|
2608
|
+
"N",
|
|
2609
|
+
"NN",
|
|
2610
|
+
"NNN",
|
|
2611
|
+
"NNNN",
|
|
2612
|
+
"NNNNN"
|
|
2613
|
+
], function(input, array, config, token) {
|
|
2614
|
+
var era = config._locale.erasParse(input, token, config._strict);
|
|
2615
|
+
if (era) getParsingFlags(config).era = era;
|
|
2616
|
+
else getParsingFlags(config).invalidEra = input;
|
|
2617
|
+
});
|
|
2618
|
+
addRegexToken("y", matchUnsigned);
|
|
2619
|
+
addRegexToken("yy", matchUnsigned);
|
|
2620
|
+
addRegexToken("yyy", matchUnsigned);
|
|
2621
|
+
addRegexToken("yyyy", matchUnsigned);
|
|
2622
|
+
addRegexToken("yo", matchEraYearOrdinal);
|
|
2623
|
+
addParseToken([
|
|
2624
|
+
"y",
|
|
2625
|
+
"yy",
|
|
2626
|
+
"yyy",
|
|
2627
|
+
"yyyy"
|
|
2628
|
+
], YEAR);
|
|
2629
|
+
addParseToken(["yo"], function(input, array, config, token) {
|
|
2630
|
+
var match;
|
|
2631
|
+
if (config._locale._eraYearOrdinalRegex) match = input.match(config._locale._eraYearOrdinalRegex);
|
|
2632
|
+
if (config._locale.eraYearOrdinalParse) array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
|
|
2633
|
+
else array[YEAR] = parseInt(input, 10);
|
|
2634
|
+
});
|
|
2635
|
+
function localeEras(m, format) {
|
|
2636
|
+
var i;
|
|
2637
|
+
var l;
|
|
2638
|
+
var date;
|
|
2639
|
+
var eras = this._eras || getLocale("en")._eras;
|
|
2640
|
+
for (i = 0, l = eras.length; i < l; ++i) {
|
|
2641
|
+
switch (typeof eras[i].since) {
|
|
2642
|
+
case "string":
|
|
2643
|
+
date = hooks(eras[i].since).startOf("day");
|
|
2644
|
+
eras[i].since = date.valueOf();
|
|
2645
|
+
break;
|
|
2646
|
+
}
|
|
2647
|
+
switch (typeof eras[i].until) {
|
|
2648
|
+
case "undefined":
|
|
2649
|
+
eras[i].until = Infinity;
|
|
2650
|
+
break;
|
|
2651
|
+
case "string":
|
|
2652
|
+
date = hooks(eras[i].until).startOf("day").valueOf();
|
|
2653
|
+
eras[i].until = date.valueOf();
|
|
2654
|
+
break;
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
return eras;
|
|
2658
|
+
}
|
|
2659
|
+
function localeErasParse(eraName, format, strict) {
|
|
2660
|
+
var i;
|
|
2661
|
+
var l;
|
|
2662
|
+
var eras = this.eras();
|
|
2663
|
+
var name;
|
|
2664
|
+
var abbr;
|
|
2665
|
+
var narrow;
|
|
2666
|
+
eraName = eraName.toUpperCase();
|
|
2667
|
+
for (i = 0, l = eras.length; i < l; ++i) {
|
|
2668
|
+
name = eras[i].name.toUpperCase();
|
|
2669
|
+
abbr = eras[i].abbr.toUpperCase();
|
|
2670
|
+
narrow = eras[i].narrow.toUpperCase();
|
|
2671
|
+
if (strict) switch (format) {
|
|
2672
|
+
case "N":
|
|
2673
|
+
case "NN":
|
|
2674
|
+
case "NNN":
|
|
2675
|
+
if (abbr === eraName) return eras[i];
|
|
2676
|
+
break;
|
|
2677
|
+
case "NNNN":
|
|
2678
|
+
if (name === eraName) return eras[i];
|
|
2679
|
+
break;
|
|
2680
|
+
case "NNNNN":
|
|
2681
|
+
if (narrow === eraName) return eras[i];
|
|
2682
|
+
break;
|
|
2683
|
+
}
|
|
2684
|
+
else if ([
|
|
2685
|
+
name,
|
|
2686
|
+
abbr,
|
|
2687
|
+
narrow
|
|
2688
|
+
].indexOf(eraName) >= 0) return eras[i];
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
function localeErasConvertYear(era, year) {
|
|
2692
|
+
var dir = era.since <= era.until ? 1 : -1;
|
|
2693
|
+
if (year === void 0) return hooks(era.since).year();
|
|
2694
|
+
else return hooks(era.since).year() + (year - era.offset) * dir;
|
|
2695
|
+
}
|
|
2696
|
+
function getEraName() {
|
|
2697
|
+
var i;
|
|
2698
|
+
var l;
|
|
2699
|
+
var val;
|
|
2700
|
+
var eras = this.localeData().eras();
|
|
2701
|
+
for (i = 0, l = eras.length; i < l; ++i) {
|
|
2702
|
+
val = this.clone().startOf("day").valueOf();
|
|
2703
|
+
if (eras[i].since <= val && val <= eras[i].until) return eras[i].name;
|
|
2704
|
+
if (eras[i].until <= val && val <= eras[i].since) return eras[i].name;
|
|
2705
|
+
}
|
|
2706
|
+
return "";
|
|
2707
|
+
}
|
|
2708
|
+
function getEraNarrow() {
|
|
2709
|
+
var i;
|
|
2710
|
+
var l;
|
|
2711
|
+
var val;
|
|
2712
|
+
var eras = this.localeData().eras();
|
|
2713
|
+
for (i = 0, l = eras.length; i < l; ++i) {
|
|
2714
|
+
val = this.clone().startOf("day").valueOf();
|
|
2715
|
+
if (eras[i].since <= val && val <= eras[i].until) return eras[i].narrow;
|
|
2716
|
+
if (eras[i].until <= val && val <= eras[i].since) return eras[i].narrow;
|
|
2717
|
+
}
|
|
2718
|
+
return "";
|
|
2719
|
+
}
|
|
2720
|
+
function getEraAbbr() {
|
|
2721
|
+
var i;
|
|
2722
|
+
var l;
|
|
2723
|
+
var val;
|
|
2724
|
+
var eras = this.localeData().eras();
|
|
2725
|
+
for (i = 0, l = eras.length; i < l; ++i) {
|
|
2726
|
+
val = this.clone().startOf("day").valueOf();
|
|
2727
|
+
if (eras[i].since <= val && val <= eras[i].until) return eras[i].abbr;
|
|
2728
|
+
if (eras[i].until <= val && val <= eras[i].since) return eras[i].abbr;
|
|
2729
|
+
}
|
|
2730
|
+
return "";
|
|
2731
|
+
}
|
|
2732
|
+
function getEraYear() {
|
|
2733
|
+
var i;
|
|
2734
|
+
var l;
|
|
2735
|
+
var dir;
|
|
2736
|
+
var val;
|
|
2737
|
+
var eras = this.localeData().eras();
|
|
2738
|
+
for (i = 0, l = eras.length; i < l; ++i) {
|
|
2739
|
+
dir = eras[i].since <= eras[i].until ? 1 : -1;
|
|
2740
|
+
val = this.clone().startOf("day").valueOf();
|
|
2741
|
+
if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;
|
|
2742
|
+
}
|
|
2743
|
+
return this.year();
|
|
2744
|
+
}
|
|
2745
|
+
function erasNameRegex(isStrict) {
|
|
2746
|
+
if (!hasOwnProp(this, "_erasNameRegex")) computeErasParse.call(this);
|
|
2747
|
+
return isStrict ? this._erasNameRegex : this._erasRegex;
|
|
2748
|
+
}
|
|
2749
|
+
function erasAbbrRegex(isStrict) {
|
|
2750
|
+
if (!hasOwnProp(this, "_erasAbbrRegex")) computeErasParse.call(this);
|
|
2751
|
+
return isStrict ? this._erasAbbrRegex : this._erasRegex;
|
|
2752
|
+
}
|
|
2753
|
+
function erasNarrowRegex(isStrict) {
|
|
2754
|
+
if (!hasOwnProp(this, "_erasNarrowRegex")) computeErasParse.call(this);
|
|
2755
|
+
return isStrict ? this._erasNarrowRegex : this._erasRegex;
|
|
2756
|
+
}
|
|
2757
|
+
function matchEraAbbr(isStrict, locale) {
|
|
2758
|
+
return locale.erasAbbrRegex(isStrict);
|
|
2759
|
+
}
|
|
2760
|
+
function matchEraName(isStrict, locale) {
|
|
2761
|
+
return locale.erasNameRegex(isStrict);
|
|
2762
|
+
}
|
|
2763
|
+
function matchEraNarrow(isStrict, locale) {
|
|
2764
|
+
return locale.erasNarrowRegex(isStrict);
|
|
2765
|
+
}
|
|
2766
|
+
function matchEraYearOrdinal(isStrict, locale) {
|
|
2767
|
+
return locale._eraYearOrdinalRegex || matchUnsigned;
|
|
2768
|
+
}
|
|
2769
|
+
function computeErasParse() {
|
|
2770
|
+
var abbrPieces = [];
|
|
2771
|
+
var namePieces = [];
|
|
2772
|
+
var narrowPieces = [];
|
|
2773
|
+
var mixedPieces = [];
|
|
2774
|
+
var i;
|
|
2775
|
+
var l;
|
|
2776
|
+
var erasName;
|
|
2777
|
+
var erasAbbr;
|
|
2778
|
+
var erasNarrow;
|
|
2779
|
+
var eras = this.eras();
|
|
2780
|
+
for (i = 0, l = eras.length; i < l; ++i) {
|
|
2781
|
+
erasName = regexEscape(eras[i].name);
|
|
2782
|
+
erasAbbr = regexEscape(eras[i].abbr);
|
|
2783
|
+
erasNarrow = regexEscape(eras[i].narrow);
|
|
2784
|
+
namePieces.push(erasName);
|
|
2785
|
+
abbrPieces.push(erasAbbr);
|
|
2786
|
+
narrowPieces.push(erasNarrow);
|
|
2787
|
+
mixedPieces.push(erasName);
|
|
2788
|
+
mixedPieces.push(erasAbbr);
|
|
2789
|
+
mixedPieces.push(erasNarrow);
|
|
2790
|
+
}
|
|
2791
|
+
this._erasRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
|
2792
|
+
this._erasNameRegex = new RegExp("^(" + namePieces.join("|") + ")", "i");
|
|
2793
|
+
this._erasAbbrRegex = new RegExp("^(" + abbrPieces.join("|") + ")", "i");
|
|
2794
|
+
this._erasNarrowRegex = new RegExp("^(" + narrowPieces.join("|") + ")", "i");
|
|
2795
|
+
}
|
|
2796
|
+
addFormatToken(0, ["gg", 2], 0, function() {
|
|
2797
|
+
return this.weekYear() % 100;
|
|
2798
|
+
});
|
|
2799
|
+
addFormatToken(0, ["GG", 2], 0, function() {
|
|
2800
|
+
return this.isoWeekYear() % 100;
|
|
2801
|
+
});
|
|
2802
|
+
function addWeekYearFormatToken(token, getter) {
|
|
2803
|
+
addFormatToken(0, [token, token.length], 0, getter);
|
|
2804
|
+
}
|
|
2805
|
+
addWeekYearFormatToken("gggg", "weekYear");
|
|
2806
|
+
addWeekYearFormatToken("ggggg", "weekYear");
|
|
2807
|
+
addWeekYearFormatToken("GGGG", "isoWeekYear");
|
|
2808
|
+
addWeekYearFormatToken("GGGGG", "isoWeekYear");
|
|
2809
|
+
addRegexToken("G", matchSigned);
|
|
2810
|
+
addRegexToken("g", matchSigned);
|
|
2811
|
+
addRegexToken("GG", match1to2, match2);
|
|
2812
|
+
addRegexToken("gg", match1to2, match2);
|
|
2813
|
+
addRegexToken("GGGG", match1to4, match4);
|
|
2814
|
+
addRegexToken("gggg", match1to4, match4);
|
|
2815
|
+
addRegexToken("GGGGG", match1to6, match6);
|
|
2816
|
+
addRegexToken("ggggg", match1to6, match6);
|
|
2817
|
+
addWeekParseToken([
|
|
2818
|
+
"gggg",
|
|
2819
|
+
"ggggg",
|
|
2820
|
+
"GGGG",
|
|
2821
|
+
"GGGGG"
|
|
2822
|
+
], function(input, week, config, token) {
|
|
2823
|
+
week[token.substr(0, 2)] = toInt(input);
|
|
2824
|
+
});
|
|
2825
|
+
addWeekParseToken(["gg", "GG"], function(input, week, config, token) {
|
|
2826
|
+
week[token] = hooks.parseTwoDigitYear(input);
|
|
2827
|
+
});
|
|
2828
|
+
function getSetWeekYear(input) {
|
|
2829
|
+
return getSetWeekYearHelper.call(this, input, this.week(), this.weekday() + this.localeData()._week.dow, this.localeData()._week.dow, this.localeData()._week.doy);
|
|
2830
|
+
}
|
|
2831
|
+
function getSetISOWeekYear(input) {
|
|
2832
|
+
return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);
|
|
2833
|
+
}
|
|
2834
|
+
function getISOWeeksInYear() {
|
|
2835
|
+
return weeksInYear(this.year(), 1, 4);
|
|
2836
|
+
}
|
|
2837
|
+
function getISOWeeksInISOWeekYear() {
|
|
2838
|
+
return weeksInYear(this.isoWeekYear(), 1, 4);
|
|
2839
|
+
}
|
|
2840
|
+
function getWeeksInYear() {
|
|
2841
|
+
var weekInfo = this.localeData()._week;
|
|
2842
|
+
return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
|
|
2843
|
+
}
|
|
2844
|
+
function getWeeksInWeekYear() {
|
|
2845
|
+
var weekInfo = this.localeData()._week;
|
|
2846
|
+
return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
|
|
2847
|
+
}
|
|
2848
|
+
function getSetWeekYearHelper(input, week, weekday, dow, doy) {
|
|
2849
|
+
var weeksTarget;
|
|
2850
|
+
if (input == null) return weekOfYear(this, dow, doy).year;
|
|
2851
|
+
else {
|
|
2852
|
+
weeksTarget = weeksInYear(input, dow, doy);
|
|
2853
|
+
if (week > weeksTarget) week = weeksTarget;
|
|
2854
|
+
return setWeekAll.call(this, input, week, weekday, dow, doy);
|
|
2855
|
+
}
|
|
2856
|
+
}
|
|
2857
|
+
function setWeekAll(weekYear, week, weekday, dow, doy) {
|
|
2858
|
+
var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
|
|
2859
|
+
var date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
|
|
2860
|
+
this.year(date.getUTCFullYear());
|
|
2861
|
+
this.month(date.getUTCMonth());
|
|
2862
|
+
this.date(date.getUTCDate());
|
|
2863
|
+
return this;
|
|
2864
|
+
}
|
|
2865
|
+
addFormatToken("Q", 0, "Qo", "quarter");
|
|
2866
|
+
addRegexToken("Q", match1);
|
|
2867
|
+
addParseToken("Q", function(input, array) {
|
|
2868
|
+
array[MONTH] = (toInt(input) - 1) * 3;
|
|
2869
|
+
});
|
|
2870
|
+
function getSetQuarter(input) {
|
|
2871
|
+
return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
|
|
2872
|
+
}
|
|
2873
|
+
addFormatToken("D", ["DD", 2], "Do", "date");
|
|
2874
|
+
addRegexToken("D", match1to2, match1to2NoLeadingZero);
|
|
2875
|
+
addRegexToken("DD", match1to2, match2);
|
|
2876
|
+
addRegexToken("Do", function(isStrict, locale) {
|
|
2877
|
+
return isStrict ? locale._dayOfMonthOrdinalParse || locale._ordinalParse : locale._dayOfMonthOrdinalParseLenient;
|
|
2878
|
+
});
|
|
2879
|
+
addParseToken(["D", "DD"], DATE);
|
|
2880
|
+
addParseToken("Do", function(input, array) {
|
|
2881
|
+
array[DATE] = toInt(input.match(match1to2)[0]);
|
|
2882
|
+
});
|
|
2883
|
+
var getSetDayOfMonth = makeGetSet("Date", true);
|
|
2884
|
+
addFormatToken("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
2885
|
+
addRegexToken("DDD", match1to3);
|
|
2886
|
+
addRegexToken("DDDD", match3);
|
|
2887
|
+
addParseToken(["DDD", "DDDD"], function(input, array, config) {
|
|
2888
|
+
config._dayOfYear = toInt(input);
|
|
2889
|
+
});
|
|
2890
|
+
function getSetDayOfYear(input) {
|
|
2891
|
+
var dayOfYear = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
|
|
2892
|
+
return input == null ? dayOfYear : this.add(input - dayOfYear, "d");
|
|
2893
|
+
}
|
|
2894
|
+
addFormatToken("m", ["mm", 2], 0, "minute");
|
|
2895
|
+
addRegexToken("m", match1to2, match1to2HasZero);
|
|
2896
|
+
addRegexToken("mm", match1to2, match2);
|
|
2897
|
+
addParseToken(["m", "mm"], MINUTE);
|
|
2898
|
+
var getSetMinute = makeGetSet("Minutes", false);
|
|
2899
|
+
addFormatToken("s", ["ss", 2], 0, "second");
|
|
2900
|
+
addRegexToken("s", match1to2, match1to2HasZero);
|
|
2901
|
+
addRegexToken("ss", match1to2, match2);
|
|
2902
|
+
addParseToken(["s", "ss"], SECOND);
|
|
2903
|
+
var getSetSecond = makeGetSet("Seconds", false);
|
|
2904
|
+
addFormatToken("S", 0, 0, function() {
|
|
2905
|
+
return ~~(this.millisecond() / 100);
|
|
2906
|
+
});
|
|
2907
|
+
addFormatToken(0, ["SS", 2], 0, function() {
|
|
2908
|
+
return ~~(this.millisecond() / 10);
|
|
2909
|
+
});
|
|
2910
|
+
addFormatToken(0, ["SSS", 3], 0, "millisecond");
|
|
2911
|
+
addFormatToken(0, ["SSSS", 4], 0, function() {
|
|
2912
|
+
return this.millisecond() * 10;
|
|
2913
|
+
});
|
|
2914
|
+
addFormatToken(0, ["SSSSS", 5], 0, function() {
|
|
2915
|
+
return this.millisecond() * 100;
|
|
2916
|
+
});
|
|
2917
|
+
addFormatToken(0, ["SSSSSS", 6], 0, function() {
|
|
2918
|
+
return this.millisecond() * 1e3;
|
|
2919
|
+
});
|
|
2920
|
+
addFormatToken(0, ["SSSSSSS", 7], 0, function() {
|
|
2921
|
+
return this.millisecond() * 1e4;
|
|
2922
|
+
});
|
|
2923
|
+
addFormatToken(0, ["SSSSSSSS", 8], 0, function() {
|
|
2924
|
+
return this.millisecond() * 1e5;
|
|
2925
|
+
});
|
|
2926
|
+
addFormatToken(0, ["SSSSSSSSS", 9], 0, function() {
|
|
2927
|
+
return this.millisecond() * 1e6;
|
|
2928
|
+
});
|
|
2929
|
+
addRegexToken("S", match1to3, match1);
|
|
2930
|
+
addRegexToken("SS", match1to3, match2);
|
|
2931
|
+
addRegexToken("SSS", match1to3, match3);
|
|
2932
|
+
var token;
|
|
2933
|
+
var getSetMillisecond;
|
|
2934
|
+
for (token = "SSSS"; token.length <= 9; token += "S") addRegexToken(token, matchUnsigned);
|
|
2935
|
+
function parseMs(input, array) {
|
|
2936
|
+
array[MILLISECOND] = toInt(("0." + input) * 1e3);
|
|
2937
|
+
}
|
|
2938
|
+
for (token = "S"; token.length <= 9; token += "S") addParseToken(token, parseMs);
|
|
2939
|
+
getSetMillisecond = makeGetSet("Milliseconds", false);
|
|
2940
|
+
addFormatToken("z", 0, 0, "zoneAbbr");
|
|
2941
|
+
addFormatToken("zz", 0, 0, "zoneName");
|
|
2942
|
+
function getZoneAbbr() {
|
|
2943
|
+
return this._isUTC ? "UTC" : "";
|
|
2944
|
+
}
|
|
2945
|
+
function getZoneName() {
|
|
2946
|
+
return this._isUTC ? "Coordinated Universal Time" : "";
|
|
2947
|
+
}
|
|
2948
|
+
var proto = Moment.prototype;
|
|
2949
|
+
proto.add = add;
|
|
2950
|
+
proto.calendar = calendar$1;
|
|
2951
|
+
proto.clone = clone;
|
|
2952
|
+
proto.diff = diff;
|
|
2953
|
+
proto.endOf = endOf;
|
|
2954
|
+
proto.format = format;
|
|
2955
|
+
proto.from = from;
|
|
2956
|
+
proto.fromNow = fromNow;
|
|
2957
|
+
proto.to = to;
|
|
2958
|
+
proto.toNow = toNow;
|
|
2959
|
+
proto.get = stringGet;
|
|
2960
|
+
proto.invalidAt = invalidAt;
|
|
2961
|
+
proto.isAfter = isAfter;
|
|
2962
|
+
proto.isBefore = isBefore;
|
|
2963
|
+
proto.isBetween = isBetween;
|
|
2964
|
+
proto.isSame = isSame;
|
|
2965
|
+
proto.isSameOrAfter = isSameOrAfter;
|
|
2966
|
+
proto.isSameOrBefore = isSameOrBefore;
|
|
2967
|
+
proto.isValid = isValid$2;
|
|
2968
|
+
proto.lang = lang;
|
|
2969
|
+
proto.locale = locale;
|
|
2970
|
+
proto.localeData = localeData;
|
|
2971
|
+
proto.max = prototypeMax;
|
|
2972
|
+
proto.min = prototypeMin;
|
|
2973
|
+
proto.parsingFlags = parsingFlags;
|
|
2974
|
+
proto.set = stringSet;
|
|
2975
|
+
proto.startOf = startOf;
|
|
2976
|
+
proto.subtract = subtract;
|
|
2977
|
+
proto.toArray = toArray;
|
|
2978
|
+
proto.toObject = toObject;
|
|
2979
|
+
proto.toDate = toDate;
|
|
2980
|
+
proto.toISOString = toISOString;
|
|
2981
|
+
proto.inspect = inspect;
|
|
2982
|
+
if (typeof Symbol !== "undefined" && Symbol.for != null) proto[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
|
2983
|
+
return "Moment<" + this.format() + ">";
|
|
2984
|
+
};
|
|
2985
|
+
proto.toJSON = toJSON;
|
|
2986
|
+
proto.toString = toString;
|
|
2987
|
+
proto.unix = unix;
|
|
2988
|
+
proto.valueOf = valueOf;
|
|
2989
|
+
proto.creationData = creationData;
|
|
2990
|
+
proto.eraName = getEraName;
|
|
2991
|
+
proto.eraNarrow = getEraNarrow;
|
|
2992
|
+
proto.eraAbbr = getEraAbbr;
|
|
2993
|
+
proto.eraYear = getEraYear;
|
|
2994
|
+
proto.year = getSetYear;
|
|
2995
|
+
proto.isLeapYear = getIsLeapYear;
|
|
2996
|
+
proto.weekYear = getSetWeekYear;
|
|
2997
|
+
proto.isoWeekYear = getSetISOWeekYear;
|
|
2998
|
+
proto.quarter = proto.quarters = getSetQuarter;
|
|
2999
|
+
proto.month = getSetMonth;
|
|
3000
|
+
proto.daysInMonth = getDaysInMonth;
|
|
3001
|
+
proto.week = proto.weeks = getSetWeek;
|
|
3002
|
+
proto.isoWeek = proto.isoWeeks = getSetISOWeek;
|
|
3003
|
+
proto.weeksInYear = getWeeksInYear;
|
|
3004
|
+
proto.weeksInWeekYear = getWeeksInWeekYear;
|
|
3005
|
+
proto.isoWeeksInYear = getISOWeeksInYear;
|
|
3006
|
+
proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
|
|
3007
|
+
proto.date = getSetDayOfMonth;
|
|
3008
|
+
proto.day = proto.days = getSetDayOfWeek;
|
|
3009
|
+
proto.weekday = getSetLocaleDayOfWeek;
|
|
3010
|
+
proto.isoWeekday = getSetISODayOfWeek;
|
|
3011
|
+
proto.dayOfYear = getSetDayOfYear;
|
|
3012
|
+
proto.hour = proto.hours = getSetHour;
|
|
3013
|
+
proto.minute = proto.minutes = getSetMinute;
|
|
3014
|
+
proto.second = proto.seconds = getSetSecond;
|
|
3015
|
+
proto.millisecond = proto.milliseconds = getSetMillisecond;
|
|
3016
|
+
proto.utcOffset = getSetOffset;
|
|
3017
|
+
proto.utc = setOffsetToUTC;
|
|
3018
|
+
proto.local = setOffsetToLocal;
|
|
3019
|
+
proto.parseZone = setOffsetToParsedOffset;
|
|
3020
|
+
proto.hasAlignedHourOffset = hasAlignedHourOffset;
|
|
3021
|
+
proto.isDST = isDaylightSavingTime;
|
|
3022
|
+
proto.isLocal = isLocal;
|
|
3023
|
+
proto.isUtcOffset = isUtcOffset;
|
|
3024
|
+
proto.isUtc = isUtc;
|
|
3025
|
+
proto.isUTC = isUtc;
|
|
3026
|
+
proto.zoneAbbr = getZoneAbbr;
|
|
3027
|
+
proto.zoneName = getZoneName;
|
|
3028
|
+
proto.dates = deprecate("dates accessor is deprecated. Use date instead.", getSetDayOfMonth);
|
|
3029
|
+
proto.months = deprecate("months accessor is deprecated. Use month instead", getSetMonth);
|
|
3030
|
+
proto.years = deprecate("years accessor is deprecated. Use year instead", getSetYear);
|
|
3031
|
+
proto.zone = deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", getSetZone);
|
|
3032
|
+
proto.isDSTShifted = deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", isDaylightSavingTimeShifted);
|
|
3033
|
+
function createUnix(input) {
|
|
3034
|
+
return createLocal(input * 1e3);
|
|
3035
|
+
}
|
|
3036
|
+
function createInZone() {
|
|
3037
|
+
return createLocal.apply(null, arguments).parseZone();
|
|
3038
|
+
}
|
|
3039
|
+
function preParsePostFormat(string) {
|
|
3040
|
+
return string;
|
|
3041
|
+
}
|
|
3042
|
+
var proto$1 = Locale.prototype;
|
|
3043
|
+
proto$1.calendar = calendar;
|
|
3044
|
+
proto$1.longDateFormat = longDateFormat;
|
|
3045
|
+
proto$1.invalidDate = invalidDate;
|
|
3046
|
+
proto$1.ordinal = ordinal;
|
|
3047
|
+
proto$1.preparse = preParsePostFormat;
|
|
3048
|
+
proto$1.postformat = preParsePostFormat;
|
|
3049
|
+
proto$1.relativeTime = relativeTime;
|
|
3050
|
+
proto$1.pastFuture = pastFuture;
|
|
3051
|
+
proto$1.set = set;
|
|
3052
|
+
proto$1.eras = localeEras;
|
|
3053
|
+
proto$1.erasParse = localeErasParse;
|
|
3054
|
+
proto$1.erasConvertYear = localeErasConvertYear;
|
|
3055
|
+
proto$1.erasAbbrRegex = erasAbbrRegex;
|
|
3056
|
+
proto$1.erasNameRegex = erasNameRegex;
|
|
3057
|
+
proto$1.erasNarrowRegex = erasNarrowRegex;
|
|
3058
|
+
proto$1.months = localeMonths;
|
|
3059
|
+
proto$1.monthsShort = localeMonthsShort;
|
|
3060
|
+
proto$1.monthsParse = localeMonthsParse;
|
|
3061
|
+
proto$1.monthsRegex = monthsRegex;
|
|
3062
|
+
proto$1.monthsShortRegex = monthsShortRegex;
|
|
3063
|
+
proto$1.week = localeWeek;
|
|
3064
|
+
proto$1.firstDayOfYear = localeFirstDayOfYear;
|
|
3065
|
+
proto$1.firstDayOfWeek = localeFirstDayOfWeek;
|
|
3066
|
+
proto$1.weekdays = localeWeekdays;
|
|
3067
|
+
proto$1.weekdaysMin = localeWeekdaysMin;
|
|
3068
|
+
proto$1.weekdaysShort = localeWeekdaysShort;
|
|
3069
|
+
proto$1.weekdaysParse = localeWeekdaysParse;
|
|
3070
|
+
proto$1.weekdaysRegex = weekdaysRegex;
|
|
3071
|
+
proto$1.weekdaysShortRegex = weekdaysShortRegex;
|
|
3072
|
+
proto$1.weekdaysMinRegex = weekdaysMinRegex;
|
|
3073
|
+
proto$1.isPM = localeIsPM;
|
|
3074
|
+
proto$1.meridiem = localeMeridiem;
|
|
3075
|
+
function get$1(format, index, field, setter) {
|
|
3076
|
+
var locale = getLocale();
|
|
3077
|
+
var utc = createUTC().set(setter, index);
|
|
3078
|
+
return locale[field](utc, format);
|
|
3079
|
+
}
|
|
3080
|
+
function listMonthsImpl(format, index, field) {
|
|
3081
|
+
if (isNumber(format)) {
|
|
3082
|
+
index = format;
|
|
3083
|
+
format = void 0;
|
|
3084
|
+
}
|
|
3085
|
+
format = format || "";
|
|
3086
|
+
if (index != null) return get$1(format, index, field, "month");
|
|
3087
|
+
var i;
|
|
3088
|
+
var out = [];
|
|
3089
|
+
for (i = 0; i < 12; i++) out[i] = get$1(format, i, field, "month");
|
|
3090
|
+
return out;
|
|
3091
|
+
}
|
|
3092
|
+
function listWeekdaysImpl(localeSorted, format, index, field) {
|
|
3093
|
+
if (typeof localeSorted === "boolean") {
|
|
3094
|
+
if (isNumber(format)) {
|
|
3095
|
+
index = format;
|
|
3096
|
+
format = void 0;
|
|
3097
|
+
}
|
|
3098
|
+
format = format || "";
|
|
3099
|
+
} else {
|
|
3100
|
+
format = localeSorted;
|
|
3101
|
+
index = format;
|
|
3102
|
+
localeSorted = false;
|
|
3103
|
+
if (isNumber(format)) {
|
|
3104
|
+
index = format;
|
|
3105
|
+
format = void 0;
|
|
3106
|
+
}
|
|
3107
|
+
format = format || "";
|
|
3108
|
+
}
|
|
3109
|
+
var locale = getLocale();
|
|
3110
|
+
var shift = localeSorted ? locale._week.dow : 0;
|
|
3111
|
+
var i;
|
|
3112
|
+
var out = [];
|
|
3113
|
+
if (index != null) return get$1(format, (index + shift) % 7, field, "day");
|
|
3114
|
+
for (i = 0; i < 7; i++) out[i] = get$1(format, (i + shift) % 7, field, "day");
|
|
3115
|
+
return out;
|
|
3116
|
+
}
|
|
3117
|
+
function listMonths(format, index) {
|
|
3118
|
+
return listMonthsImpl(format, index, "months");
|
|
3119
|
+
}
|
|
3120
|
+
function listMonthsShort(format, index) {
|
|
3121
|
+
return listMonthsImpl(format, index, "monthsShort");
|
|
3122
|
+
}
|
|
3123
|
+
function listWeekdays(localeSorted, format, index) {
|
|
3124
|
+
return listWeekdaysImpl(localeSorted, format, index, "weekdays");
|
|
3125
|
+
}
|
|
3126
|
+
function listWeekdaysShort(localeSorted, format, index) {
|
|
3127
|
+
return listWeekdaysImpl(localeSorted, format, index, "weekdaysShort");
|
|
3128
|
+
}
|
|
3129
|
+
function listWeekdaysMin(localeSorted, format, index) {
|
|
3130
|
+
return listWeekdaysImpl(localeSorted, format, index, "weekdaysMin");
|
|
3131
|
+
}
|
|
3132
|
+
getSetGlobalLocale("en", {
|
|
3133
|
+
eras: [{
|
|
3134
|
+
since: "0001-01-01",
|
|
3135
|
+
until: Infinity,
|
|
3136
|
+
offset: 1,
|
|
3137
|
+
name: "Anno Domini",
|
|
3138
|
+
narrow: "AD",
|
|
3139
|
+
abbr: "AD"
|
|
3140
|
+
}, {
|
|
3141
|
+
since: "0000-12-31",
|
|
3142
|
+
until: -Infinity,
|
|
3143
|
+
offset: 1,
|
|
3144
|
+
name: "Before Christ",
|
|
3145
|
+
narrow: "BC",
|
|
3146
|
+
abbr: "BC"
|
|
3147
|
+
}],
|
|
3148
|
+
dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
|
3149
|
+
ordinal: function(number) {
|
|
3150
|
+
var b = number % 10;
|
|
3151
|
+
return number + (toInt(number % 100 / 10) === 1 ? "th" : b === 1 ? "st" : b === 2 ? "nd" : b === 3 ? "rd" : "th");
|
|
3152
|
+
}
|
|
3153
|
+
});
|
|
3154
|
+
hooks.lang = deprecate("moment.lang is deprecated. Use moment.locale instead.", getSetGlobalLocale);
|
|
3155
|
+
hooks.langData = deprecate("moment.langData is deprecated. Use moment.localeData instead.", getLocale);
|
|
3156
|
+
var mathAbs = Math.abs;
|
|
3157
|
+
function abs() {
|
|
3158
|
+
var data = this._data;
|
|
3159
|
+
this._milliseconds = mathAbs(this._milliseconds);
|
|
3160
|
+
this._days = mathAbs(this._days);
|
|
3161
|
+
this._months = mathAbs(this._months);
|
|
3162
|
+
data.milliseconds = mathAbs(data.milliseconds);
|
|
3163
|
+
data.seconds = mathAbs(data.seconds);
|
|
3164
|
+
data.minutes = mathAbs(data.minutes);
|
|
3165
|
+
data.hours = mathAbs(data.hours);
|
|
3166
|
+
data.months = mathAbs(data.months);
|
|
3167
|
+
data.years = mathAbs(data.years);
|
|
3168
|
+
return this;
|
|
3169
|
+
}
|
|
3170
|
+
function addSubtract$1(duration, input, value, direction) {
|
|
3171
|
+
var other = createDuration(input, value);
|
|
3172
|
+
duration._milliseconds += direction * other._milliseconds;
|
|
3173
|
+
duration._days += direction * other._days;
|
|
3174
|
+
duration._months += direction * other._months;
|
|
3175
|
+
return duration._bubble();
|
|
3176
|
+
}
|
|
3177
|
+
function add$1(input, value) {
|
|
3178
|
+
return addSubtract$1(this, input, value, 1);
|
|
3179
|
+
}
|
|
3180
|
+
function subtract$1(input, value) {
|
|
3181
|
+
return addSubtract$1(this, input, value, -1);
|
|
3182
|
+
}
|
|
3183
|
+
function absCeil(number) {
|
|
3184
|
+
if (number < 0) return Math.floor(number);
|
|
3185
|
+
else return Math.ceil(number);
|
|
3186
|
+
}
|
|
3187
|
+
function bubble() {
|
|
3188
|
+
var milliseconds = this._milliseconds;
|
|
3189
|
+
var days = this._days;
|
|
3190
|
+
var months = this._months;
|
|
3191
|
+
var data = this._data;
|
|
3192
|
+
var seconds;
|
|
3193
|
+
var minutes;
|
|
3194
|
+
var hours;
|
|
3195
|
+
var years;
|
|
3196
|
+
var monthsFromDays;
|
|
3197
|
+
if (!(milliseconds >= 0 && days >= 0 && months >= 0 || milliseconds <= 0 && days <= 0 && months <= 0)) {
|
|
3198
|
+
milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
|
|
3199
|
+
days = 0;
|
|
3200
|
+
months = 0;
|
|
3201
|
+
}
|
|
3202
|
+
data.milliseconds = milliseconds % 1e3;
|
|
3203
|
+
seconds = absFloor(milliseconds / 1e3);
|
|
3204
|
+
data.seconds = seconds % 60;
|
|
3205
|
+
minutes = absFloor(seconds / 60);
|
|
3206
|
+
data.minutes = minutes % 60;
|
|
3207
|
+
hours = absFloor(minutes / 60);
|
|
3208
|
+
data.hours = hours % 24;
|
|
3209
|
+
days += absFloor(hours / 24);
|
|
3210
|
+
monthsFromDays = absFloor(daysToMonths(days));
|
|
3211
|
+
months += monthsFromDays;
|
|
3212
|
+
days -= absCeil(monthsToDays(monthsFromDays));
|
|
3213
|
+
years = absFloor(months / 12);
|
|
3214
|
+
months %= 12;
|
|
3215
|
+
data.days = days;
|
|
3216
|
+
data.months = months;
|
|
3217
|
+
data.years = years;
|
|
3218
|
+
return this;
|
|
3219
|
+
}
|
|
3220
|
+
function daysToMonths(days) {
|
|
3221
|
+
return days * 4800 / 146097;
|
|
3222
|
+
}
|
|
3223
|
+
function monthsToDays(months) {
|
|
3224
|
+
return months * 146097 / 4800;
|
|
3225
|
+
}
|
|
3226
|
+
function as(units) {
|
|
3227
|
+
if (!this.isValid()) return NaN;
|
|
3228
|
+
var days;
|
|
3229
|
+
var months;
|
|
3230
|
+
var milliseconds = this._milliseconds;
|
|
3231
|
+
units = normalizeUnits(units);
|
|
3232
|
+
if (units === "month" || units === "quarter" || units === "year") {
|
|
3233
|
+
days = this._days + milliseconds / 864e5;
|
|
3234
|
+
months = this._months + daysToMonths(days);
|
|
3235
|
+
switch (units) {
|
|
3236
|
+
case "month": return months;
|
|
3237
|
+
case "quarter": return months / 3;
|
|
3238
|
+
case "year": return months / 12;
|
|
3239
|
+
}
|
|
3240
|
+
} else {
|
|
3241
|
+
days = this._days + Math.round(monthsToDays(this._months));
|
|
3242
|
+
switch (units) {
|
|
3243
|
+
case "week": return days / 7 + milliseconds / 6048e5;
|
|
3244
|
+
case "day": return days + milliseconds / 864e5;
|
|
3245
|
+
case "hour": return days * 24 + milliseconds / 36e5;
|
|
3246
|
+
case "minute": return days * 1440 + milliseconds / 6e4;
|
|
3247
|
+
case "second": return days * 86400 + milliseconds / 1e3;
|
|
3248
|
+
case "millisecond": return Math.floor(days * 864e5) + milliseconds;
|
|
3249
|
+
default: throw new Error("Unknown unit " + units);
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
}
|
|
3253
|
+
function makeAs(alias) {
|
|
3254
|
+
return function() {
|
|
3255
|
+
return this.as(alias);
|
|
3256
|
+
};
|
|
3257
|
+
}
|
|
3258
|
+
var asMilliseconds = makeAs("ms");
|
|
3259
|
+
var asSeconds = makeAs("s");
|
|
3260
|
+
var asMinutes = makeAs("m");
|
|
3261
|
+
var asHours = makeAs("h");
|
|
3262
|
+
var asDays = makeAs("d");
|
|
3263
|
+
var asWeeks = makeAs("w");
|
|
3264
|
+
var asMonths = makeAs("M");
|
|
3265
|
+
var asQuarters = makeAs("Q");
|
|
3266
|
+
var asYears = makeAs("y");
|
|
3267
|
+
var valueOf$1 = asMilliseconds;
|
|
3268
|
+
function clone$1() {
|
|
3269
|
+
return createDuration(this);
|
|
3270
|
+
}
|
|
3271
|
+
function get$2(units) {
|
|
3272
|
+
units = normalizeUnits(units);
|
|
3273
|
+
return this.isValid() ? this[units + "s"]() : NaN;
|
|
3274
|
+
}
|
|
3275
|
+
function makeGetter(name) {
|
|
3276
|
+
return function() {
|
|
3277
|
+
return this.isValid() ? this._data[name] : NaN;
|
|
3278
|
+
};
|
|
3279
|
+
}
|
|
3280
|
+
var milliseconds = makeGetter("milliseconds");
|
|
3281
|
+
var seconds = makeGetter("seconds");
|
|
3282
|
+
var minutes = makeGetter("minutes");
|
|
3283
|
+
var hours = makeGetter("hours");
|
|
3284
|
+
var days = makeGetter("days");
|
|
3285
|
+
var months = makeGetter("months");
|
|
3286
|
+
var years = makeGetter("years");
|
|
3287
|
+
function weeks() {
|
|
3288
|
+
return absFloor(this.days() / 7);
|
|
3289
|
+
}
|
|
3290
|
+
var round = Math.round;
|
|
3291
|
+
var thresholds = {
|
|
3292
|
+
ss: 44,
|
|
3293
|
+
s: 45,
|
|
3294
|
+
m: 45,
|
|
3295
|
+
h: 22,
|
|
3296
|
+
d: 26,
|
|
3297
|
+
w: null,
|
|
3298
|
+
M: 11
|
|
3299
|
+
};
|
|
3300
|
+
function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
|
|
3301
|
+
return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
|
|
3302
|
+
}
|
|
3303
|
+
function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
|
|
3304
|
+
var duration = createDuration(posNegDuration).abs();
|
|
3305
|
+
var seconds = round(duration.as("s"));
|
|
3306
|
+
var minutes = round(duration.as("m"));
|
|
3307
|
+
var hours = round(duration.as("h"));
|
|
3308
|
+
var days = round(duration.as("d"));
|
|
3309
|
+
var months = round(duration.as("M"));
|
|
3310
|
+
var weeks = round(duration.as("w"));
|
|
3311
|
+
var years = round(duration.as("y"));
|
|
3312
|
+
var a = seconds <= thresholds.ss && ["s", seconds] || seconds < thresholds.s && ["ss", seconds] || minutes <= 1 && ["m"] || minutes < thresholds.m && ["mm", minutes] || hours <= 1 && ["h"] || hours < thresholds.h && ["hh", hours] || days <= 1 && ["d"] || days < thresholds.d && ["dd", days];
|
|
3313
|
+
if (thresholds.w != null) a = a || weeks <= 1 && ["w"] || weeks < thresholds.w && ["ww", weeks];
|
|
3314
|
+
a = a || months <= 1 && ["M"] || months < thresholds.M && ["MM", months] || years <= 1 && ["y"] || ["yy", years];
|
|
3315
|
+
a[2] = withoutSuffix;
|
|
3316
|
+
a[3] = +posNegDuration > 0;
|
|
3317
|
+
a[4] = locale;
|
|
3318
|
+
return substituteTimeAgo.apply(null, a);
|
|
3319
|
+
}
|
|
3320
|
+
function getSetRelativeTimeRounding(roundingFunction) {
|
|
3321
|
+
if (roundingFunction === void 0) return round;
|
|
3322
|
+
if (typeof roundingFunction === "function") {
|
|
3323
|
+
round = roundingFunction;
|
|
3324
|
+
return true;
|
|
3325
|
+
}
|
|
3326
|
+
return false;
|
|
3327
|
+
}
|
|
3328
|
+
function getSetRelativeTimeThreshold(threshold, limit) {
|
|
3329
|
+
if (thresholds[threshold] === void 0) return false;
|
|
3330
|
+
if (limit === void 0) return thresholds[threshold];
|
|
3331
|
+
thresholds[threshold] = limit;
|
|
3332
|
+
if (threshold === "s") thresholds.ss = limit - 1;
|
|
3333
|
+
return true;
|
|
3334
|
+
}
|
|
3335
|
+
function humanize(argWithSuffix, argThresholds) {
|
|
3336
|
+
if (!this.isValid()) return this.localeData().invalidDate();
|
|
3337
|
+
var withSuffix = false;
|
|
3338
|
+
var th = thresholds;
|
|
3339
|
+
var locale;
|
|
3340
|
+
var output;
|
|
3341
|
+
if (typeof argWithSuffix === "object") {
|
|
3342
|
+
argThresholds = argWithSuffix;
|
|
3343
|
+
argWithSuffix = false;
|
|
3344
|
+
}
|
|
3345
|
+
if (typeof argWithSuffix === "boolean") withSuffix = argWithSuffix;
|
|
3346
|
+
if (typeof argThresholds === "object") {
|
|
3347
|
+
th = Object.assign({}, thresholds, argThresholds);
|
|
3348
|
+
if (argThresholds.s != null && argThresholds.ss == null) th.ss = argThresholds.s - 1;
|
|
3349
|
+
}
|
|
3350
|
+
locale = this.localeData();
|
|
3351
|
+
output = relativeTime$1(this, !withSuffix, th, locale);
|
|
3352
|
+
if (withSuffix) output = locale.pastFuture(+this, output);
|
|
3353
|
+
return locale.postformat(output);
|
|
3354
|
+
}
|
|
3355
|
+
var abs$1 = Math.abs;
|
|
3356
|
+
function sign(x) {
|
|
3357
|
+
return (x > 0) - (x < 0) || +x;
|
|
3358
|
+
}
|
|
3359
|
+
function toISOString$1() {
|
|
3360
|
+
if (!this.isValid()) return this.localeData().invalidDate();
|
|
3361
|
+
var seconds = abs$1(this._milliseconds) / 1e3;
|
|
3362
|
+
var days = abs$1(this._days);
|
|
3363
|
+
var months = abs$1(this._months);
|
|
3364
|
+
var minutes;
|
|
3365
|
+
var hours;
|
|
3366
|
+
var years;
|
|
3367
|
+
var s;
|
|
3368
|
+
var total = this.asSeconds();
|
|
3369
|
+
var totalSign;
|
|
3370
|
+
var ymSign;
|
|
3371
|
+
var daysSign;
|
|
3372
|
+
var hmsSign;
|
|
3373
|
+
if (!total) return "P0D";
|
|
3374
|
+
minutes = absFloor(seconds / 60);
|
|
3375
|
+
hours = absFloor(minutes / 60);
|
|
3376
|
+
seconds %= 60;
|
|
3377
|
+
minutes %= 60;
|
|
3378
|
+
years = absFloor(months / 12);
|
|
3379
|
+
months %= 12;
|
|
3380
|
+
s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, "") : "";
|
|
3381
|
+
totalSign = total < 0 ? "-" : "";
|
|
3382
|
+
ymSign = sign(this._months) !== sign(total) ? "-" : "";
|
|
3383
|
+
daysSign = sign(this._days) !== sign(total) ? "-" : "";
|
|
3384
|
+
hmsSign = sign(this._milliseconds) !== sign(total) ? "-" : "";
|
|
3385
|
+
return totalSign + "P" + (years ? ymSign + years + "Y" : "") + (months ? ymSign + months + "M" : "") + (days ? daysSign + days + "D" : "") + (hours || minutes || seconds ? "T" : "") + (hours ? hmsSign + hours + "H" : "") + (minutes ? hmsSign + minutes + "M" : "") + (seconds ? hmsSign + s + "S" : "");
|
|
3386
|
+
}
|
|
3387
|
+
var proto$2 = Duration.prototype;
|
|
3388
|
+
proto$2.isValid = isValid$1;
|
|
3389
|
+
proto$2.abs = abs;
|
|
3390
|
+
proto$2.add = add$1;
|
|
3391
|
+
proto$2.subtract = subtract$1;
|
|
3392
|
+
proto$2.as = as;
|
|
3393
|
+
proto$2.asMilliseconds = asMilliseconds;
|
|
3394
|
+
proto$2.asSeconds = asSeconds;
|
|
3395
|
+
proto$2.asMinutes = asMinutes;
|
|
3396
|
+
proto$2.asHours = asHours;
|
|
3397
|
+
proto$2.asDays = asDays;
|
|
3398
|
+
proto$2.asWeeks = asWeeks;
|
|
3399
|
+
proto$2.asMonths = asMonths;
|
|
3400
|
+
proto$2.asQuarters = asQuarters;
|
|
3401
|
+
proto$2.asYears = asYears;
|
|
3402
|
+
proto$2.valueOf = valueOf$1;
|
|
3403
|
+
proto$2._bubble = bubble;
|
|
3404
|
+
proto$2.clone = clone$1;
|
|
3405
|
+
proto$2.get = get$2;
|
|
3406
|
+
proto$2.milliseconds = milliseconds;
|
|
3407
|
+
proto$2.seconds = seconds;
|
|
3408
|
+
proto$2.minutes = minutes;
|
|
3409
|
+
proto$2.hours = hours;
|
|
3410
|
+
proto$2.days = days;
|
|
3411
|
+
proto$2.weeks = weeks;
|
|
3412
|
+
proto$2.months = months;
|
|
3413
|
+
proto$2.years = years;
|
|
3414
|
+
proto$2.humanize = humanize;
|
|
3415
|
+
proto$2.toISOString = toISOString$1;
|
|
3416
|
+
proto$2.toString = toISOString$1;
|
|
3417
|
+
proto$2.toJSON = toISOString$1;
|
|
3418
|
+
proto$2.locale = locale;
|
|
3419
|
+
proto$2.localeData = localeData;
|
|
3420
|
+
proto$2.toIsoString = deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", toISOString$1);
|
|
3421
|
+
proto$2.lang = lang;
|
|
3422
|
+
addFormatToken("X", 0, 0, "unix");
|
|
3423
|
+
addFormatToken("x", 0, 0, "valueOf");
|
|
3424
|
+
addRegexToken("x", matchSigned);
|
|
3425
|
+
addRegexToken("X", matchTimestamp);
|
|
3426
|
+
addParseToken("X", function(input, array, config) {
|
|
3427
|
+
config._d = /* @__PURE__ */ new Date(parseFloat(input) * 1e3);
|
|
3428
|
+
});
|
|
3429
|
+
addParseToken("x", function(input, array, config) {
|
|
3430
|
+
config._d = new Date(toInt(input));
|
|
3431
|
+
});
|
|
3432
|
+
//! moment.js
|
|
3433
|
+
hooks.version = "2.30.1";
|
|
3434
|
+
setHookCallback(createLocal);
|
|
3435
|
+
hooks.fn = proto;
|
|
3436
|
+
hooks.min = min;
|
|
3437
|
+
hooks.max = max;
|
|
3438
|
+
hooks.now = now;
|
|
3439
|
+
hooks.utc = createUTC;
|
|
3440
|
+
hooks.unix = createUnix;
|
|
3441
|
+
hooks.months = listMonths;
|
|
3442
|
+
hooks.isDate = isDate;
|
|
3443
|
+
hooks.locale = getSetGlobalLocale;
|
|
3444
|
+
hooks.invalid = createInvalid;
|
|
3445
|
+
hooks.duration = createDuration;
|
|
3446
|
+
hooks.isMoment = isMoment;
|
|
3447
|
+
hooks.weekdays = listWeekdays;
|
|
3448
|
+
hooks.parseZone = createInZone;
|
|
3449
|
+
hooks.localeData = getLocale;
|
|
3450
|
+
hooks.isDuration = isDuration;
|
|
3451
|
+
hooks.monthsShort = listMonthsShort;
|
|
3452
|
+
hooks.weekdaysMin = listWeekdaysMin;
|
|
3453
|
+
hooks.defineLocale = defineLocale;
|
|
3454
|
+
hooks.updateLocale = updateLocale;
|
|
3455
|
+
hooks.locales = listLocales;
|
|
3456
|
+
hooks.weekdaysShort = listWeekdaysShort;
|
|
3457
|
+
hooks.normalizeUnits = normalizeUnits;
|
|
3458
|
+
hooks.relativeTimeRounding = getSetRelativeTimeRounding;
|
|
3459
|
+
hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
|
|
3460
|
+
hooks.calendarFormat = getCalendarFormat;
|
|
3461
|
+
hooks.prototype = proto;
|
|
3462
|
+
hooks.HTML5_FMT = {
|
|
3463
|
+
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
3464
|
+
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
3465
|
+
DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
|
|
3466
|
+
DATE: "YYYY-MM-DD",
|
|
3467
|
+
TIME: "HH:mm",
|
|
3468
|
+
TIME_SECONDS: "HH:mm:ss",
|
|
3469
|
+
TIME_MS: "HH:mm:ss.SSS",
|
|
3470
|
+
WEEK: "GGGG-[W]WW",
|
|
3471
|
+
MONTH: "YYYY-MM"
|
|
3472
|
+
};
|
|
3473
|
+
//#endregion
|
|
3474
|
+
export { moment_exports as n, hooks as t };
|